gpsd-users
[Top][All Lists]
Advanced

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

[gpsd-users] Different behavior between GPSD socket command and GPSMON x


From: Andrea Oliveri
Subject: [gpsd-users] Different behavior between GPSD socket command and GPSMON x command
Date: Wed, 25 Jul 2012 22:53:30 +0200

Hi,
i send command to my device throw gpsmon in direct mode (with x command
in interactive mode): x41542a45324750534e5044 equal to AT*E2GPSNPD in
ascii format and device replys correctly. So i try to send the same
command (thanks to netcat) to the gpsd's unix socket (echo -n
'!/dev/ttyACM2=AT*E2GPSNPD' | nc -U /tmp/socket_gps) but the daemon
doesnt send correctly the command! It replys with 

> gpsd:SPIN: select() {3 4 5 6 7} -> { 3 } at 1343248552.013932 (errno 0)
> gpsd:INFO: control socket connect on fd 8
> gpsd:IO: <= control(8): !/dev/ttyACM2=AT*E2GPSNPD
> gpsd:INFO: <= control(8): writing to /dev/ttyACM2 
> gpsd:SPIN: close(8) of control socket
> gpsd:UNK: select waits
> gpsd:SPIN: select() {3 4 5 6 7} -> { 7 } at 1343248552.015205 (errno 0)
> gpsd:UNK: polling 7
> gpsd:UNK: Read 11 chars to buffer offset 0 (total 11): AT*E2GPSNPD
> gpsd:SPIN: packet_get() fd 7 -> 11 (0)
> gpsd:UNK: ISGPS syncing at byte 397: 0x50925e25
> gpsd:UNK: ISGPS syncing at byte 397: 0xa124bc4a
> gpsd:UNK: ISGPS syncing at byte 397: 0x42497894
> gpsd:UNK: ISGPS syncing at byte 397: 0x8492f128
> gpsd:UNK: ISGPS syncing at byte 397: 0x0925e250
> gpsd:UNK: ISGPS syncing at byte 397: 0x124bc4a0
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000397: character 'A' [41], new state: ASTRAL_1
> gpsd:UNK: 00000398: character 'T' [54], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 10 chars = T*E2GPSNPDD
> gpsd:UNK: ISGPS syncing at byte 399: 0x24978940
> gpsd:UNK: ISGPS syncing at byte 399: 0x492f1280
> gpsd:UNK: ISGPS syncing at byte 399: 0x925e2501
> gpsd:UNK: ISGPS syncing at byte 399: 0x24bc4a02
> gpsd:UNK: ISGPS syncing at byte 399: 0x49789405
> gpsd:UNK: ISGPS syncing at byte 399: 0x92f1280a
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000399: character 'T' [54], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 9 chars = *E2GPSNPDDD
> gpsd:UNK: ISGPS word tag not correct, skipping byte
> gpsd:UNK: 00000400: character '*' [2a], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 8 chars = E2GPSNPDDDD
> gpsd:UNK: ISGPS syncing at byte 401: 0x25e25015
> gpsd:UNK: ISGPS syncing at byte 401: 0x4bc4a02a
> gpsd:UNK: ISGPS syncing at byte 401: 0x97894055
> gpsd:UNK: ISGPS syncing at byte 401: 0x2f1280aa
> gpsd:UNK: ISGPS syncing at byte 401: 0x5e250154
> gpsd:UNK: ISGPS syncing at byte 401: 0xbc4a02a8
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000401: character 'E' [45], new state: EARTHA_1
> gpsd:UNK: 00000402: character '2' [32], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 7 chars = 2GPSNPDDDDD
> gpsd:UNK: ISGPS word tag not correct, skipping byte
> gpsd:UNK: 00000403: character '2' [32], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 6 chars = GPSNPDDDDDD
> gpsd:UNK: ISGPS syncing at byte 404: 0x78940551
> gpsd:UNK: ISGPS syncing at byte 404: 0xf1280aa3
> gpsd:UNK: ISGPS syncing at byte 404: 0xe2501547
> gpsd:UNK: ISGPS syncing at byte 404: 0xc4a02a8e
> gpsd:UNK: ISGPS syncing at byte 404: 0x8940551c
> gpsd:UNK: ISGPS syncing at byte 404: 0x1280aa38
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000404: character 'G' [47], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 5 chars = PSNPDDDDDDD
> gpsd:UNK: 00000405: character 'P' [50], new state: GEOSTAR_LEADER_1
> gpsd:UNK: 00000406: character 'S' [53], new state: GEOSTAR_LEADER_2
> gpsd:UNK: 00000407: character 'N' [4e], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 4 chars = SNPDDDDDDDD
> gpsd:UNK: ISGPS syncing at byte 408: 0x25015471
> gpsd:UNK: ISGPS syncing at byte 408: 0x4a02a8e3
> gpsd:UNK: ISGPS syncing at byte 408: 0x940551c6
> gpsd:UNK: ISGPS syncing at byte 408: 0x280aa38c
> gpsd:UNK: ISGPS syncing at byte 408: 0x50154719
> gpsd:UNK: ISGPS syncing at byte 408: 0xa02a8e32
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000408: character 'S' [53], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 3 chars = NPDDDDDDDDD
> gpsd:UNK: ISGPS syncing at byte 409: 0x40551c64
> gpsd:UNK: ISGPS syncing at byte 409: 0x80aa38c9
> gpsd:UNK: ISGPS syncing at byte 409: 0x01547193
> gpsd:UNK: ISGPS syncing at byte 409: 0x02a8e327
> gpsd:UNK: ISGPS syncing at byte 409: 0x0551c64e
> gpsd:UNK: ISGPS syncing at byte 409: 0x0aa38c9c
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000409: character 'N' [4e], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 2 chars = PDDDDDDDDDD
> gpsd:UNK: 00000410: character 'P' [50], new state: GEOSTAR_LEADER_1
> gpsd:UNK: 00000411: character 'D' [44], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 1 chars = DDDDDDDDDDD
> gpsd:UNK: ISGPS syncing at byte 412: 0x15471938
> gpsd:UNK: ISGPS syncing at byte 412: 0x2a8e3270
> gpsd:UNK: ISGPS syncing at byte 412: 0x551c64e1
> gpsd:UNK: ISGPS syncing at byte 412: 0xaa38c9c2
> gpsd:UNK: ISGPS syncing at byte 412: 0x54719384
> gpsd:UNK: ISGPS syncing at byte 412: 0xa8e32708
> gpsd:UNK: ISGPS lock never achieved
> gpsd:UNK: 00000412: character 'D' [44], new state: GROUND_STATE
> gpsd:UNK: Character discarded, buffer 0 chars = DDDDDDDDDDD
> gpsd:RAW: /dev/ttyACM2 is known to be Generic NMEA
> gpsd:UNK: /dev/ttyACM2 sent 11 new characters
> gpsd:RAW: packet sniff on /dev/ttyACM2 finds type 1
> gpsd:UNK: New data on /dev/ttyACM2, not yet a packet
> gpsd:UNK: select waits

and doesnt send the string to the device.
How can i send the same command like gpsmon with gpsd socket?
Thank you




reply via email to

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