Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,23 @@ attennas to the data-link bus all but the primary antenna should have a diode on
the tx line. If you don't plan on impersonating the remote starter you only need
one diode.

[Level Shifter](https://www.sparkfun.com/products/12009) Particle MCUs (photon, electron)
[Level Shifter](https://www.sparkfun.com/products/12009) Particle MCUs (Boron, Photon, Electron...)
use 3.3v logic levels. While the Fortin remote starter uses a 5v logic level. Thus if
you don't want to fry your Particle you will need to convert the 5v signal from the
remote starter to a 3.3v signal and vice-versa.

[Electron](https://store.particle.io/collections/cellular/products/electron-3g-americas) or
[Photon](https://store.particle.io/collections/wifi/products/photon) The electron has more
uarts than the photon, as such it is capable of monitoring the data-link connection in
[Electron](https://store.particle.io/collections/cellular/products/electron-3g-americas) (discontinued) or
[Photon](https://store.particle.io/collections/wifi/products/photon) (discontinued) or
[Boron](https://store.particle.io/products/boron-lte-cat-m1-noram-with-ethersim-4th-gen): The Electron has more
uarts than the Boron or Photon, as such it is capable of monitoring the data-link connection in
both directions.

[5v regulator](https://www.sparkfun.com/products/107) If you are using an electron you
[5v regulator](https://www.sparkfun.com/products/107) If you are using an Electron, you
will need some way to provide a 5v reference to your level shifter. DO NOT use this to
power the photon from the data-link 12v-14v source. If you need to power a photon you
power the Boron or Photon from the data-link 12v-14v source. If you need to power the Boron or Photon, you
should use a buck down DC->DC power supply, or other USB power source.

[Particle Asset Tracker](https://store.particle.io/products/asset-tracker-v2-components)
[Particle Asset Tracker](https://store.particle.io/products/asset-tracker-v2-components) (discontinued)
If you want to add a gps/accelerometer to your set up.

## How to connect to Fortin Evo-One
Expand Down
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name=openremotestart
dependencies.AssetTrackerRK=0.2.3
dependencies.AssetTrackerRK=0.4.2
14 changes: 11 additions & 3 deletions src/openremotestart.ino
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ SYSTEM_THREAD(ENABLED);
#define StarterUart Serial5
#define ORS_MS_BETWEEN_STATUS_PUBLISH 600000
#define ORS_ASSET_TRACKER

#elif (PLATFORM_ID == 13) // BORON
#ifdef ORS_PREFER_STARTER_UART
#define StarterUart Serial1
#else
#define RemoteUart Serial1
#endif
#define ORS_MS_BETWEEN_STATUS_PUBLISH 600000
#endif

#ifdef ORS_ASSET_TRACKER
Expand Down Expand Up @@ -222,6 +230,9 @@ float m_last_alt = 0;
// The current number of satellites being tracked
int m_satellite_count = 0;

// Is the gps currently turned on?
bool m_is_gps_on;

#ifdef ORS_ASSET_TRACKER
AssetTracker tracker = AssetTracker();

Expand All @@ -232,9 +243,6 @@ int m_satellite_count = 0;
// determine if it is time to shut the gps off
unsigned long m_gps_on_time;

// Is the gps currently turned on?
bool m_is_gps_on;

unsigned long m_last_gps_update = 0;
unsigned long m_last_gps_log_time = 0;

Expand Down