gnss-save-on-shutdown: bugfix gpsd no NMEA data

Issue: after a reboot with no power cycle the gnss reveiver
was in the wrong state and did not send any NMEA data for gpsd to use.
Solution: Added a controlled GNSS start on boot to make sure that
the receiver is in the correct state.

BugzID: 62382

Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
This commit is contained in:
Tobias Jäggi 2020-04-02 14:30:22 +02:00 committed by Gitea
parent aaef6af80c
commit 1945cd4165
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ def persist_receiver_state(ubx, use_systemd_cat=None):
# verifies loading of receiver state from flash to RAM # verifies loading of receiver state from flash to RAM
def verify_load_of_receiver_state(ubx, use_systemd_cat=None): def verify_load_of_receiver_state(ubx, use_systemd_cat=None):
# Controlled GNSS start & Hotstart
ubx_response = ubx.send_command(ubx_class='06', ubx_id='04', payload='00,00,09,00')
# check if restore was successful # check if restore was successful
ubx_response = ubx.send_command(ubx_class='09', ubx_id='14') ubx_response = ubx.send_command(ubx_class='09', ubx_id='14')
response = find_sos_response(ubx_response, '3') # 3 = System Restored from Backup response = find_sos_response(ubx_response, '3') # 3 = System Restored from Backup