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