gpsd-users
[Top][All Lists]
Advanced

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

[gpsd-users] Trying to set Stationary Mode on ublox - possible bug in gp


From: Anthony Stirk
Subject: [gpsd-users] Trying to set Stationary Mode on ublox - possible bug in gpsctl ?
Date: Sat, 26 Oct 2013 21:07:30 +0100

Evening, 

I've been trying for a while to work out how to use gpsctl to issue the binary UBX command to put a Ublox GPS module into Stationary dynamic model. As i'm unable to verify this I decided to test this with something that has a more tangible effect on the GPS Module, a cold boot. 

Using Windows U-Center I've ascertained that sending the following binary string to a Ublox module  will result in a cold boot of the module :

B5 62 06 04 04 00 FF 87 00 00 94 F5

The 94 F5 at the end of there is the 2 checksum bytes as calculated by U-Center. Issuing this command via u-Center to a connected module result in the module cold booting. 

Using a Raspberry Pi with a Ublox module attached to the serial port which is working fine I issue the following command :

sudo gpsctl -b -D 5 -t "uBlox UBX binary" -e /dev/ttyAMA0 -x  '\xB5\x62\x06\x04\x04\x00\xFF\x87\x00\x00'

Note excluding the checksum bytes as gpsctl calculates these itself. The following output is observed :
gpsctl:PROG: uBlox UBX binary driver selected.
gpsctl:PROG: switch_driver(uBlox UBX binary) called...
gpsctl:PROG: selecting uBlox UBX binary driver...
gpsctl:SHOUT: switching to mode BINARY.
gpsctl:IO: => GPS: UBX class: b5, id: 62, len: 8, crc: b3f7
¦b¦¦¦¦¦gpsctl:IO: => GPS: b562b562080006040400ff870000b3f7

Note the check sum calculate is different and possibly incorrect ? Could anyone check what I've done here and advise if I'm making a mistake or this is a genuine bug with gpsctl not calculating the checksums correctly ? I'm happy to log this as a bug but I'm not confident that I'm issuing the correct command in the first place so would appreciate anyone with more knowledge on these matters to comment.

Regards,

Anthony Stirk M0UPU


reply via email to

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