From 1945cd41652f846bd26b12d9c53750f3c1223b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20J=C3=A4ggi?= Date: Thu, 2 Apr 2020 14:30:22 +0200 Subject: [PATCH] gnss-save-on-shutdown: bugfix gpsd no NMEA data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../gnss-save-on-shutdown/files/gnss-save-on-shutdown.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-connectivity/gnss-save-on-shutdown/files/gnss-save-on-shutdown.py b/recipes-connectivity/gnss-save-on-shutdown/files/gnss-save-on-shutdown.py index 3e7a959..3414453 100755 --- a/recipes-connectivity/gnss-save-on-shutdown/files/gnss-save-on-shutdown.py +++ b/recipes-connectivity/gnss-save-on-shutdown/files/gnss-save-on-shutdown.py @@ -113,6 +113,8 @@ def persist_receiver_state(ubx, use_systemd_cat=None): # verifies loading of receiver state from flash to RAM 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 ubx_response = ubx.send_command(ubx_class='09', ubx_id='14') response = find_sos_response(ubx_response, '3') # 3 = System Restored from Backup