FaradayRF / Faraday-Software

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

Fix Faraday-Telemetry For Use on Raspberry Pi #273

Closed kb1lqc closed 7 years ago

kb1lqc commented 7 years ago

Per Faraday-Software #272 and #270 the faraday-telemetry software did not run on the Raspberry Pi 3. @reillyeon suggested ensuring each thread had it's own database connection which this PR should do. Also, I found that that alone did not work and enabled SQLite3 Write-Ahead Logging (WAL) mode was also required. This prevented slower operations such as opening/closing the .journal file which is not usually an issue but slow enough on the Raspberry Pi to cause database access issues.

Changelog

Testing

Currently the code is running on a Raspberry Pi 3 with September 2017 Raspbian. It is updating KB1LQC-1 on aprs.fi with telemetry data in a duration test at the time of this PR submission.

image

Also here's a screenshot of the aprs.fi raw telemetry being sent with this branch faraday-telemetry code. image

kb1lqc commented 7 years ago

@reillyeon I just committed https://github.com/FaradayRF/Faraday-Software/pull/273/commits/cfdee3a9da35808b5a263ee7ffc104ce0d668d3d which fixes the telemetry sequence bug found on #272! I have it running on my Raspberry Pi now but it will take 8280 * 15 seconds interval = 124,200 seconds = 2,070 minutes = 34.5 hours to find out. This means the counter will get to the rollover point around 9AM Friday morning. I'll leave it running but feel that this is now ready to pull in!

kb1lqc commented 7 years ago

Noting that while not currently running on my RPi (bricked with power cycle) I have been running faraday-aprs on my computer for over 2 days and no issues! Lots of network drops on my end since my home modem is starting to fail.

image

kb1lqd commented 7 years ago

@kb1lqc Please add aprslib to pip install's requirements.txt file in the main directory.

kb1lqc commented 7 years ago

@kb1lqd added aprslib to requirements.txt