|
From: | Yunchuan Geng |
Subject: | [gpsd-users] control ublox-M8 by gpsctl |
Date: | Wed, 01 Apr 2015 12:55:08 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
Hello, I am trying to start ublox-M8 on a embedded device based on freescale's iMX6 processor. The processor communicate with ublox MAX-M8W chip via a UART port. The default setting of ublox-M8 works well, and I can see the NMEA message output which report my current coordinate very well. Then I would like to configure my ublox-M8 to custom mode other than default. The first step I would like to confirm is that I would like to read out the current configuration for example "GNSS system configuration" (CFG-GNSS class=0x06 id=0x3e). I have found in the previous thread http://lists.nongnu.org/archive/html/gpsd-users/2013-08/msg00007.html which indicate using command like this sudo gpsctl -t "uBlox UBX binary" -b -D 5 -x \xB5 \x62 \x06 \x04 \x04 \x00 \xFF \x87 \x00 \x00 \x94 \xF5 However, in my version gpsd: 3.11~dev (revision 2015-02-28T08:41:57.03) looks like "uBlox UBX binary" is not a valid option. so I use the following command and log is attached at the end of the mail. Looks like the ublox was identified, and also GNSS system configuration was returned, but the problem is the message body does not match protocol. The doc says it should be a 4 + 8*numConfigBlocks bytes payload, but only return 2 bytes. What could be the problem, do I have wrong understanding about the UBX protocol or do I use gpsctl in a wrong way. Thanks in advance for any help. -Yunchuan gpsctl -t "u-blox" -b -D 5 -x '\x06\x3E\x00\x00' /dev/ttymxc2 gpsctl:INFO: opening GPS data source type 2 at '/dev/ttymxc2' gpsctl:INFO: speed 9600, 8N1 gpsctl:IO: => GPS: $PASHQ,RID*28\x0d\x0a gpsctl:IO: => GPS: @F0.3=1*67\x0d\x0a gpsctl:IO: => GPS: @F0.3=1*67\x0d\x0a gpsctl:IO: => GPS: @F2.2=1*64\x0d\x0a gpsctl:IO: => GPS: @F2.2=1*64\x0d\x0a gpsctl:PROG: writing oncore control type Cj gpsctl:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a gpsctl:PROG: Probing "Garmin USB binary" driver... gpsctl:PROG: Probe not found "Garmin USB binary" driver... gpsctl:PROG: Probing "GeoStar" driver... gpsctl:PROG: Sent GeoStar packet id 0xc1 gpsctl:IO: => GPS: 5053474700c100010000000050924746 gpsctl:PROG: Probe not found "GeoStar" driver... gpsctl:PROG: Probing "Trimble TSIP" driver... gpsctl:INFO: speed 9600, 8O1 gpsctl:IO: => GPS: $PASHQ,RID*28\x0d\x0a gpsctl:IO: => GPS: @F0.3=1*67\x0d\x0a gpsctl:IO: => GPS: @F0.3=1*67\x0d\x0a gpsctl:IO: => GPS: @F2.2=1*64\x0d\x0a gpsctl:IO: => GPS: @F2.2=1*64\x0d\x0a gpsctl:PROG: writing oncore control type Cj gpsctl:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a gpsctl:INFO: speed 9600, 8N1 gpsctl:IO: => GPS: $PASHQ,RID*28\x0d\x0a gpsctl:IO: => GPS: @F0.3=1*67\x0d\x0a gpsctl:IO: => GPS: @F0.3=1*67\x0d\x0a gpsctl:IO: => GPS: @F2.2=1*64\x0d\x0a gpsctl:IO: => GPS: @F2.2=1*64\x0d\x0a gpsctl:PROG: writing oncore control type Cj gpsctl:IO: => GPS: @@Cj)\x0d\x0aRID*28\x0d\x0a gpsctl:PROG: Probe not found "Trimble TSIP" driver... gpsctl:PROG: no probe matched... gpsctl:INFO: gpsd_activate(1): activated GPS (fd 3) gpsctl:INFO: device /dev/ttymxc2 activated gpsctl:INFO: startup at 2015-03-26T02:52:36.000Z (1427338356) gpsctl:IO: UBX: len 60 gpsctl:PROG: switching to match packet type 11: b5620106340008a34811cdfa03002e00 gpsctl:PROG: switch_driver(u-blox) called... gpsctl:PROG: selecting u-blox driver... gpsctl:INFO: /dev/ttymxc2 identified as type u-blox, 0.758667 sec @ 9600bps gpsctl:PROG: => GPS: UBX class: 06, id: 16, len: 8, crc: 31e5 gpsctl:IO: => GPS: b56206160800030703000000000031e5 gpsctl:PROG: => GPS: UBX class: 0a, id: 04, len: 0, crc: 0e34 gpsctl:IO: => GPS: b5620a0400000e34 gpsctl:PROG: UBX_NAV_SOL gpsctl:IO: UBX: len 26 gpsctl:PROG: UBX_NAV_DOP gpsctl:IO: UBX: len 24 gpsctl:PROG: UBX_NAV_TIMEGPS gpsctl:IO: UBX: len 10 gpsctl:IO: UBX: len 108 gpsctl:IO: UBX: len 60 gpsctl:PROG: UBX_NAV_SOL gpsctl:IO: UBX: len 26 gpsctl:PROG: UBX_NAV_DOP gpsctl:IO: UBX: len 24 gpsctl:PROG: UBX_NAV_TIMEGPS gpsctl:IO: UBX: len 60 gpsctl:PROG: UBX_NAV_SOL gpsctl:IO: UBX: len 26 gpsctl:PROG: UBX_NAV_DOP gpsctl:IO: UBX: len 24 gpsctl:PROG: UBX_NAV_TIMEGPS gpsctl:IO: UBX: len 60 gpsctl:PROG: UBX_NAV_SOL gpsctl:IO: UBX: len 26 gpsctl:PROG: UBX_NAV_DOP gpsctl:IO: UBX: len 24 gpsctl:PROG: UBX_NAV_TIMEGPS gpsctl:IO: UBX: len 60 gpsctl:PROG: UBX_NAV_SOL gpsctl:IO: UBX: len 352 gpsctl:PROG: UBX_NAV_SVINFO gpsctl:PROG: /dev/ttymxc2 looks like a u-blox 2.01 (75331) at 9600. /dev/ttymxc2 identified as a u-blox 2.01 (75331) at 9600 baud. gpsctl:SHOUT: switching to mode BINARY. gpsctl:PROG: => GPS: UBX class: 06, id: 01, len: 3, crc: 104b gpsctl:IO: => GPS: b56206010300010401104b gpsctl:PROG: => GPS: UBX class: 06, id: 01, len: 3, crc: 124f gpsctl:IO: => GPS: b56206010300010601124f gpsctl:PROG: => GPS: UBX class: 06, id: 01, len: 3, crc: 2c83 gpsctl:IO: => GPS: b562060103000120012c83 gpsctl:PROG: => GPS: UBX class: 06, id: 01, len: 3, crc: 45ac gpsctl:IO: => GPS: b5620601030001300a45ac gpsctl:PROG: => GPS: UBX class: 06, id: 01, len: 3, crc: 47b0 gpsctl:IO: => GPS: b5620601030001320a47b0 gpsctl:PROG: => GPS: UBX class: 06, id: 00, len: 20, crc: a0a9 gpsctl:IO: => GPS: b5620600140001000000d0080000802500000700010000000000a0a9 gpsctl:PROG: => GPS: UBX class: 06, id: 3e, len: 2, crc: 4662 gpsctl:IO: => GPS: b562063e020000004662 |
[Prev in Thread] | Current Thread | [Next in Thread] |