summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-05-22 13:44:38 -0500
committerJohn Klug <john.klug@multitech.com>2019-07-03 17:08:20 -0500
commit71a53264e977a354c10711feaaa04dbc63630982 (patch)
tree7eac7c4008d77585575e369edcc299abee6ce5cd
parenta75d06401e5d72c0246794a4808a3561ec159dc6 (diff)
downloadmeta-mlinux-71a53264e977a354c10711feaaa04dbc63630982.tar.gz
meta-mlinux-71a53264e977a354c10711feaaa04dbc63630982.tar.bz2
meta-mlinux-71a53264e977a354c10711feaaa04dbc63630982.zip
Add MTHS u-blox initialization to mLinux 5
-rw-r--r--recipes-navigation/gpsd/gpsd/gpsd-default8
-rw-r--r--recipes-navigation/gpsd/gpsd_3.16.bb2
2 files changed, 9 insertions, 1 deletions
diff --git a/recipes-navigation/gpsd/gpsd/gpsd-default b/recipes-navigation/gpsd/gpsd/gpsd-default
index 7dd5372..fa67fd1 100644
--- a/recipes-navigation/gpsd/gpsd/gpsd-default
+++ b/recipes-navigation/gpsd/gpsd/gpsd-default
@@ -52,6 +52,14 @@ GPSFIX="3"
# should not need to change the baud rate.
#
function SET_GPS_SPEED {
+if [[ $(mts-io-sysfs show hw-version) =~ ^MTHS- ]] ; then
+ if gpsctl -t 'u-blox' -D 5 -x '\x06\x41\x00\x00\x03\x1F\x90\x47\x4F\xB1\xFF\xFF\xEA\xFF' $GPS_LINE ; then
+ logger -s -t 'gpsd info' -p daemon.info "GPS LNA set high"
+ else
+ logger -s -t 'gpsd info' -p daemon.alert "ERROR: GPS LNA not set"
+ fi
+fi
+
if [[ $(cat /run/config/gpstype) == u-blox ]] ; then
# Set the baud rate. Works better with ntp at a higher baud rate.
if ! gpsctl -T 20 -t 'u-blox' -s $GPS_BAUD -b -f $GPS_LINE ; then
diff --git a/recipes-navigation/gpsd/gpsd_3.16.bb b/recipes-navigation/gpsd/gpsd_3.16.bb
index 35719aa..2111399 100644
--- a/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -4,7 +4,7 @@ LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=d217a23f408e91c94359447735bc1800"
DEPENDS = "dbus dbus-glib ncurses python libusb1 chrpath-replacement-native pps-tools"
PROVIDES = "virtual/gpsd"
-PR="m12"
+PR="m13"
EXTRANATIVEPATH += "chrpath-native"