gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-users] gps source detection problem (GNS1301 receiver, serial port


From: Arndt Kritzner
Subject: [gpsd-users] gps source detection problem (GNS1301 receiver, serial port, gpsd 3.15 and current git, ARM cortex A8)
Date: Wed, 30 Sep 2015 14:27:07 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080522 Thunderbird/2.0.0.14 Mnenhy/0.7.5.0

Hello,

with a board with AM335x-CPU I I cannot get gpsd to work, although NMEA 
telegrams are received via the serial port. If I
don't use a fixed baudrate gpsd loops infinitely trough alle possible baudrate 
settings. Gpsd was built in a buildroot
configuration (Versions 3.15 and current GIT). The serial port already has 
before gpsd starts the correct settings, but
gpsd has another opinion.
Anyone any ideas to fix this?

Thanks in advance
Arndt

GPSD output (with predefined baud rate and only NMEA driver)
============================================================
address@hidden ~]# gpsd -D 5 -n -N /dev/ttyO3
gpsd:INFO: launching (Version 3.15)
gpsd:IO: opening IPv4 socket
gpsd:IO: opening IPv6 socket
gpsd:ERROR: can't create IPv6 socket
gpsd:INFO: listening on port 2947
gpsd:PROG: successfully connected to the DBUS system bus
gpsd:PROG: shmget(0x47505344, 8928, 0666) for SHM export succeeded
gpsd:PROG: shmat() for SHM export succeeded, segment 65538
gpsd:INFO: stashing device /dev/ttyO3 at slot 0
gpsd:INFO: opening GPS data source type 2 at '/dev/ttyO3'
gpsd:INFO: speed 9600, 8N1
gpsd:INFO: gpsd_activate(2): activated GPS (fd 5)
gpsd:INFO: device /dev/ttyO3 activated
gpsd:INFO: running with effective group ID 0
gpsd:INFO: running with effective user ID 99
gpsd:INFO: startup at 2015-09-30T11:56:32.000Z (1443614192)
gpsd:INFO: hunt on /dev/ttyO3 failed (1.588642 sec since data)
gpsd:WARN: device read of /dev/ttyO3 returned error or packet sniffer failed 
sync (flags {ERROR})
gpsd:INFO: closing GPS=/dev/ttyO3 (5)
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running DEACTIVATE hook
^CSegmentation fault
address@hidden ~]#


gpsmon output
=============
tcp://localhost:2947          JSON slave driver>
(82) 
{"class":"VERSION","release":"3.15","rev":"3.15","proto_major":3,"proto_minor":11}
(170)
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/dev/ttyO3","activated":"2015-09-30T12:00:43.471Z","native":0,"bps":9600,"parity":"N","stopbits":1,"cycle":1.00}]}
(122)
{"class":"WATCH","enable":true,"json":false,"nmea":false,"raw":2,"scaled":false,"timing":false,"split24":false,"pps":true}


cat on GPS telegrams from serial port (9600 8N1) before gpsd was started
========================================================================
address@hidden ~]# cat /dev/ttyO3
$GPGGA,115847.000,5336.0836,N,01125.1334,E,1,10,0.97,52.3,M,45.4,M,,*50

$GNGSA,A,3,22,04,08,,,,,,,,,,1.29,0.97,0.85*19

$GNGSA,A,3,70,69,86,84,71,75,85,,,,,,1.29,0.97,0.85*16

$GNRMC,115847.000,A,5336.0836,N,01125.1334,E,0.00,319.60,300915,,,A*71

$GPVTG,319.60,T,,M,0.00,N,0.00,K,A*30

$GPGGA,115848.000,5336.0836,N,01125.1334,E,1,10,0.97,52.3,M,45.4,M,,*5F

$GNGSA,A,3,22,04,08,,,,,,,,,,1.29,0.97,0.85*19

$GNGSA,A,3,70,69,86,84,71,75,85,,,,,,1.29,0.97,0.85*16

$GNRMC,115848.000,A,5336.0836,N,01125.1334,E,0.00,319.60,300915,,,A*7E

$GPVTG,319.60,T,,M,0.00,N,0.00,K,A*30

$GPGGA,115849.000,5336.0836,N,01125.1334,E,1,11,0.92,52.3,M,45.4,M,,*5A

$GNGSA,A,3,22,04,19,08,,,,,,,,,1.24,0.92,0.83*1F

$GNGSA,A,3,70,69,86,84,71,75,85,,,,,,1.24,0.92,0.83*18

$GNRMC,115849.000,A,5336.0836,N,01125.1334,E,0.00,319.60,300915,,,A*7F

$GPVTG,319.60,T,,M,0.00,N,0.00,K,A*30

$GPGGA,115850.000,5336.0836,N,01125.1334,E,1,11,1.05,52.3,M,45.4,M,,*5D

$GNGSA,A,3,22,04,19,08,,,,,,,,,1.83,1.05,1.50*12

$GNGSA,A,3,70,69,86,84,71,75,85,,,,,,1.83,1.05,1.50*15

$GPGSV,5,1,17,27,80,178,,22,62,136,40,08,54,293,28,18,45,067,*7E

$GPGSV,5,2,17,37,28,167,,04,27,258,32,16,24,194,,19,24,298,26*7D

$GPGSV,5,3,17,21,21,079,,11,13,272,23,15,12,032,,30,09,318,*75

$GPGSV,5,4,17,07,05,288,16,14,04,133,,01,03,257,,26,01,179,*71

$GPGSV,5,5,17,13,01,003,*4F

$GLGSV,3,1,10,85,78,040,10,70,49,147,48,69,46,052,20,86,36,302,20*65

$GLGSV,3,2,10,84,32,102,36,76,25,289,,77,18,345,,71,08,181,33*66



Packet configuration from build
===================================
scons: Reading SConscript files ...
Checking if compiler accepts -Wextra ...(cached) yes
Checking if compiler accepts -Wall ...(cached) yes
Checking if compiler accepts -Wno-uninitialized ...(cached) yes
Checking if compiler accepts -Wno-missing-field-initializers ...(cached) yes
Checking if compiler accepts -Wcast-align ...(cached) yes
Checking if compiler accepts -Wmissing-declarations ...(cached) yes
Checking if compiler accepts -Wmissing-prototypes ...(cached) yes
Checking if compiler accepts -Wstrict-prototypes ...(cached) yes
Checking if compiler accepts -Wpointer-arith ...(cached) yes
Checking if compiler accepts -Wreturn-type ...(cached) yes
Checking if compiler accepts -pthread ...(cached) yes
Checking whether the C++ compiler works(cached) yes
Checking for ncurses... (cached) yes
Checking for tinfo... (cached) no
Checking for C library librt... (cached) yes
Checking for dbus-1... (cached) yes
Checking for C type in_port_t... (cached) yes
Checking whether SUN_LEN is declared... (cached) yes
Checking for C header file linux/can.h... (cached) yes
You have kernel CANbus available.
Checking if compiler is C11 ...(cached) no
Checking for C header file libkern/OSAtomic.h... (cached) no
No memory barriers - SHM export and time hinting may not be reliable.
Checking if compiler supplies __ORDER_BIG_ENDIAN__ ...(cached) yes
Checking if compiler supplies __ORDER_LITTLE_ENDIAN__ ...(cached) yes
Checking if compiler supplies __BYTE_ORDER__ ...(cached) yes
Your compiler has built-in endianness support.
Checking for C function daemon()... (cached) yes
Checking for C function strlcpy()... (cached) yes
Checking for C function strlcat()... (cached) yes
Checking for C function clock_gettime()... (cached) yes
Checking for C library libdbus-1... (cached) yes
Checking for C header file sys/timepps.h... (cached) no
Checking if sys/ioctl.h supplies TIOCMIWAIT ...(cached) yes
Checking that xsltproc can make man pages... (cached) yes
Checking for QtNetwork... (cached) no
Altered configuration variables:
ashtech = False (default True): Ashtech support
earthmate = False (default True): DeLorme EarthMate Zodiac support
evermore = False (default True): EverMore binary support
fv18 = False (default True): San Jose Navigation FV-18 support
garmin = False (default True): Garmin kernel driver support
garmintxt = False (default True): Garmin Simple Text support
geostar = False (default True): Geostar Protocol support
itrax = False (default True): iTrax hardware support
mtk3301 = False (default True): MTK-3301 support
navcom = False (default True): Navcom NCT support
oncore = False (default True): Motorola OnCore chipset support
sirf = False (default True): SiRF chipset support
superstar2 = False (default True): Novatel SuperStarII chipset support
tnt = False (default True): True North Technologies support
tripmate = False (default True): DeLorme TripMate support
tsip = False (default True): Trimble TSIP support
ublox = False (default True): u-blox Protocol support
fury = False (default True): Jackson Labs Fury and Firefly support
nmea2000 = False (default True): NMEA2000/CAN support
aivdm = False (default True): AIVDM support
gpsclock = False (default True): GPSClock support
ntrip = False (default True): NTRIP support
oceanserver = False (default True): OceanServer support
rtcm104v2 = False (default True): rtcm104v2 support
rtcm104v3 = False (default True): rtcm104v3 support
ntpshm = False (default True): NTP time hinting via shared memory
pps = False (default True): PPS time syncing support
usb = False (default True): libusb support for USB devices
bluez = False (default True): BlueZ support for Bluetooth devices
systemd = False (default True): systemd socket activation
clientdebug = False (default True): client debugging support
qt = False (default True): build QT bindings
reconfigure = False (default True): allow gpsd to change device settings
controlsend = False (default True): allow gpsctl/gpsmon to change device 
settings
python = False (default True): build Python support and modules.
prefix = /usr (default /usr/local): installation directory prefix
fixed_port_speed = 9600 (default 0): fixed serial port speed
sysroot =
/var/autofs/misc/extern-2TB-USB3/Entwicklung/buildroot-2014.11.2/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot
(default ): cross-development system root
GPS regression tests suppressed because socket_export or python is off.
RTCM2 regression tests suppressed because rtcm104v2 is off.
AIVDM regression tests suppressed because aivdm is off.
scons: done reading SConscript files.
scons: Building targets ...

-- 

--
###############################################################
Dipl. Ing Arndt Kritzner    Tel:    (0385) 3993 448
Logic Way GmbH              Fax:    (0385) 3993 458
Hagenower Strasse 73        HTTP:   http://www.logicway.de
19061 Schwerin              email:  mailto:address@hidden
###############################################################



reply via email to

[Prev in Thread] Current Thread [Next in Thread]