summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhii Voloshynov <serhii.voloshynov@globallogic.com>2021-02-11 13:56:28 +0200
committerJohn Klug <john.klug@multitech.com>2021-06-22 09:18:32 -0500
commitcd8eeb99399d149a4d636d278f93781665d7e538 (patch)
treef36cfdfbb971757125bc53cc277accff8ac06442
parent26efe7485d71d4e1df5358aa8bfb3815401f6daa (diff)
downloadmeta-mlinux-cd8eeb99399d149a4d636d278f93781665d7e538.tar.gz
meta-mlinux-cd8eeb99399d149a4d636d278f93781665d7e538.tar.bz2
meta-mlinux-cd8eeb99399d149a4d636d278f93781665d7e538.zip
[MTX-3858] Conduit 300: GPS issue on one of the MTCDT3AC unit - no data from GPS - GP-1052
-rwxr-xr-xrecipes-navigation/gpsd/gpsd/gpsd-default6
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