From cd8eeb99399d149a4d636d278f93781665d7e538 Mon Sep 17 00:00:00 2001 From: Serhii Voloshynov Date: Thu, 11 Feb 2021 13:56:28 +0200 Subject: [MTX-3858] Conduit 300: GPS issue on one of the MTCDT3AC unit - no data from GPS - GP-1052 --- recipes-navigation/gpsd/gpsd/gpsd-default | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default index b4bf11b..1e52546 100755 --- a/recipes-navigation/gpsd/gpsd/gpsd-default +++ b/recipes-navigation/gpsd/gpsd/gpsd-default @@ -70,7 +70,7 @@ if [[ $(cat /run/config/gpstype) == u-blox ]] ; then mts-io-sysfs store gnss-reset 0 usleep 50 mts-io-sysfs store gnss-reset 1 - sleep 2 + sleep 5 fi # Reset at maxtries == 5 # Set the baud rate to default speed if having issues @@ -81,7 +81,7 @@ if [[ $(cat /run/config/gpstype) == u-blox ]] ; then # Set the baud rate. Works better with ntp at a higher baud rate. gpsctlout=$(gpsctl -T 20 -t 'u-blox' -s $GPS_BAUD -b -f $GPS_LINE 2>&1) result=$? - if [[ $gpsctlout =~ u-blox[[:space:]]at[[:space:]]115200[[:space:]]baud ]] ; then + if [[ $gpsctlout =~ u-blox.*at[[:space:]]115200 ]] ; then break fi @@ -92,7 +92,7 @@ if [[ $(cat /run/config/gpstype) == u-blox ]] ; then # The next line is needed due to a bug in gpsctl. # We will go back to the default baud rate if we don't do this step. gpsctlout=$(gpsctl -T 2 -f $GPS_LINE 2>&1) - if [[ $gpsctlout =~ u-blox[[:space:]]at[[:space:]]115200[[:space:]]baud ]] ; then + if [[ $gpsctlout =~ u-blox.*at[[:space:]]115200 ]] ; then break fi stty -F $GPS_LINE $GPS_BAUD -- cgit v1.2.3