diff options
author | Serhii Voloshynov <serhii.voloshynov@globallogic.com> | 2021-02-11 13:56:28 +0200 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-02-11 10:07:15 -0600 |
commit | 85d676859ff536607b4ddf7f0175ae3442dd6aa2 (patch) | |
tree | 792690e25fbd8f0c2efd91d50e7425375cb2b565 | |
parent | 57cb15e9a612a89ebad57893c55b4dd83fded7ac (diff) | |
download | meta-mlinux-85d676859ff536607b4ddf7f0175ae3442dd6aa2.tar.gz meta-mlinux-85d676859ff536607b4ddf7f0175ae3442dd6aa2.tar.bz2 meta-mlinux-85d676859ff536607b4ddf7f0175ae3442dd6aa2.zip |
[MTX-3858] Conduit 300: GPS issue on one of the MTCDT3AC unit - no data from GPS - GP-1052
-rwxr-xr-x | recipes-navigation/gpsd/gpsd/gpsd-default | 6 |
1 files 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 |