gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] Binary protocol using


From: Beat Bolli
Subject: Re: [gpsd-users] Binary protocol using
Date: Tue, 03 Sep 2013 21:25:37 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 03.09.13 21:13, Anthony Stirk wrote:
> The binary command for this (obtained via uCenter) is :
> 
> B5 62 06 24 24 00 FF FF 02 03 00 00 00 00 10 27 00 00 05 00 FA 00 FA 00
> 64 00 2C 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 54
> 
> Or 
> 
> \xB5\x62\x06\x24\x24\x00\xFF\xFF\x02\x03\x00\x00\x00\x00\x10\x27\x00\x00\x05\x00\xFA\x00\xFA\x00\x64\x00\x2C\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x54
...

> address@hidden ~ $ sudo gpsctl -b -D 5 -t "uBlox UBX binary" -e /dev/ttyAMA0
> -x
>  
> \xB5\x62\x06\x00\x14\x00\x01\x00\x00\x00\xD0\x08\x00\x00\x80\x25\x00\x00\x07\x00\x01\x00\x00\x00\x00\x00
> 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: 78, id: 42, len: 76, crc: 9a68
> ▒bxBL5x62x06x00x14x00x01x00x00x00xD0x08x00x00x80x25x00x00x07x00x01x00x00x00x00x00▒hgpsctl:IO:
> => GPS:
> b56278424c00357836327830367830307831347830307830317830307830307830307844307830387830307830307838307832357830307830307830377830307830317830307830307830307830307830309a68
> 
> So basically I'm a little confused. If I plug the module into a machine
> with ucenter on it and issue the commands or if I issue them via an
> Arduino for example they work. Working code from Arduino that sets and
> verifies here : http://pastebin.com/1mH1bQt2

Are you sure you don't have a shell quoting problem? The backslashes
should be part of the argument, so you have to use single quotes around
the -x argument.

Beat
-- 
mail: echo '<address@hidden>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F  D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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