FaradayRF / Faraday-Software

Faraday node software
https://www.faradayrf.com
Other
48 stars 19 forks source link

Add "GPS_Present" Bit To GPS Bitmask Parsing #56

Open kb1lqd opened 7 years ago

kb1lqd commented 7 years ago

Overview An unused bit in the GPS bitmask of the FLASH parsing should be updated to communicate the presence of a GPS unit on the Faraday unit. This will be used to easily determine if a GPS should be onboard or not but does not indicate the status of the GPS unit if installed, for that the presence of the telemetry "GPS FIX" is used.

Implementation Details

Operation This bit is used simple to query the presence of a GPS.

kb1lqd commented 7 years ago

Post-pone since simply using default location whenever GPS fix not acquired or no GPS string is likely OK.

kb1lqd commented 7 years ago

False, need a flash bit since no GPS means no NMEA uart data from unit and thus we'll be stuck without a trigger to trigger the grab from flash or GPS dynamically. Need to add flash bit in and assume it is set correctly.

kb1lqd commented 7 years ago

Adding as BIT 1 in GPS Bitmask in flash memory:

image

kb1lqd commented 7 years ago

GPS Bitmask default in the factory reset can stay 0x01 since default should be no GPS installed and unit configured to have a GPS.

image

kb1lqd commented 7 years ago

Confirmed addition of bit and operation:

GPS_Present bit HIGH: image

GPS_Present bit LOW: Lon/Lat set to "123456..." along with defaults for all other fields.

image

kb1lqc commented 7 years ago

Is this implemented @kb1lqd ? Our manual method of telling a unit if it has a GPS installed seems to work fine right now during Faraday programming.

el-iso commented 7 years ago

@kb1lqc Setting the GPS_Present bit worked for me when I was doing setup.

kb1lqc commented 6 years ago

Hey @kb1lqd lets chat about this one, I can't tell if it's actually implemented haha...