[meta-freescale] GPS problem with SABRE Platform board.

Juha Vuorivirta jvp.vuorivirta at gmail.com
Wed Apr 17 01:12:54 PDT 2013


Hi!

I have tried to use GPS module AH-1613 on Freescale SABRE Platform for
Smart Devices. I have installed gpsd to see messages from module. I get
this:

root at imx6qsabresd:~# gpsd -N -n -D9 -F /var/run/gpsd.sock /dev/ttymxc2
gpsd:SPIN: control socket /var/run/gpsd.sock is fd 3
gpsd:PROG: control socket opened at /var/run/gpsd.sock
gpsd:INFO: launching (Version 3.7)
gpsd:IO: opening IPv4 socket
gpsd:SPIN: passivesock_af() -> 4
gpsd:IO: opening IPv6 socket
gpsd:ERROR: can't create IPv6 socket
gpsd:INFO: listening on port gpsd
gpsd:PROG: NTPD shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTPD shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTPD shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTPD shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: PPS thread launched
gpsd:INFO: NTPD ntpd_link_activate: 1
gpsd:INFO: stashing device /dev/ttymxc2 at slot 0
gpsd:PROG: PPS Create Thread gpsd_ppsmonitor
gpsd:PROG: PPS thread awaiting device activation
gpsd:PROG: no etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: opening GPS data source type 2 at '/dev/ttymxc2'
gpsd:INFO: speed 9600, 8N1
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a
gpsd:IO: => GPS: @F0.3=1*67\x0d\x0a
gpsd:IO: => GPS: @F2.2=1*64\x0d\x0a
gpsd:IO: writing oncore control type Cj
gpsd:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
gpsd:SPIN: open(/dev/ttymxc2) -> 5 in gpsd_serial_open()
gpsd:PROG: Probing "Garmin USB binary" driver...
gpsd:PROG: Probe not found "Garmin USB binary" driver...
gpsd:PROG: Probing "GeoStar binary" driver...
gpsd:IO: Sent GeoStar packet id 0xc1
gpsd:IO: => GPS: 5053474700c100010000000050924746
gpsd:PROG: PPS chrony socket /var/run/chrony.ttymxc2.sock doesn't exist
gpsd:RAW: PPS pps-detect on /dev/ttymxc2 changed to 1
gpsd:INFO: PPS cycle: -1525001782, duration: -1525001782 @ 1366107312.771530
gpsd:RAW: PPS edge rejected no fix.
gpsd:PROG: Probe not found "GeoStar binary" driver...
gpsd:PROG: Probing "Trimble TSIP" driver...
gpsd:INFO: speed 9600, 8O1
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a
gpsd:IO: => GPS: @F0.3=1*67\x0d\x0a
gpsd:IO: => GPS: @F2.2=1*64\x0d\x0a
gpsd:IO: writing oncore control type Cj
gpsd:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
gpsd:INFO: speed 9600, 8N1
gpsd:IO: => GPS: $PASHQ,RID*28\x0d\x0a
gpsd:IO: => GPS: @F0.3=1*67\x0d\x0a
gpsd:IO: => GPS: @F2.2=1*64\x0d\x0a
gpsd:IO: writing oncore control type Cj
gpsd:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a
gpsd:PROG: Probe not found "Trimble TSIP" driver...
gpsd:PROG: no probe matched...
gpsd:INFO: gpsd_activate(): activated GPS (fd 5)
gpsd:INFO: device /dev/ttymxc2 activated
gpsd:INFO: running with effective group ID 20
gpsd:INFO: running with effective user ID 65534
gpsd:INFO: startup at 2013-04-16T10:15:14.000Z (1366107314)
gpsd:UNK: select waits

I used oscilloscope and module recieves messages from processor in startup,
but don't send nothing afterwards. I rewiewed code and in
board-mx6q_sabresd.c there is gps_power_on function enabling module. There
is also defined SABRESD_GPS_RESET and SABRESD_GPS_PPS variables,
but implementing them did not help either.

My question is, how to enable GPS correctly? UART driver is
there(/dev/ttymxc2) and communication get's started, but cannot get module
to answer. My goal is to sync ntpd to a GPS pps via gpsd.

In addition, I notice that some of ntp features are missing in image after
compiling it, example ntpq. How I get features to image? I'm using
core-image-sato.

br,

jv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130417/ef362e8d/attachment.html>


More information about the meta-freescale mailing list