From: aCiDBiTS <acidbits@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Re: "Wrong data" from my BT GPS Roylatek
Date: Tue, 18 Oct 2005 17:27:32 +0200 [thread overview]
Message-ID: <ae97cd740510180827o34a45078n@mail.gmail.com> (raw)
In-Reply-To: <20051015213050.GC12751@elmicha.333200002251-0001.dialin.t-online.de>
Finally I got everything clear, know how to make it work in the proper
way. Sure someone else will be stucked on this, I've spend some hours
on it.
Royaltek RBT-1000 has two operational modes, SiRF and NMEA. By default
it starts in SiRF mode. I read some documentation and I know how to
switch from SiRF to NMEA mode. There are 2 issues with this Bluetooth
GPS reciever and gpsd:
1. First time gpsd starts to request data to RBT-1000, gpsd forces it
to SiRF mode.
2. In SiRF mode there's some kind of issue between gpsd and RBT-1000,
that leads to have a lot of timeouts reading the data. This produces
timeouts in the applications that make requests to gpsd, and they
don't work properly.
I've been doing lots of tests and finally I found a trick to force
gpsd to get data from RBT-1000 in NMEA mode. Here we go:
Set up rfcomm & gpsd:
acid@pluto:~# hcitool scan
Scanning ...
00:02:C7:29:23:4F BlueGPS 29234F
acid@pluto:~# sudo rfcomm bind /dev/rfcomm0 00:02:C7:29:23:4F 1
acid@pluto:~# gpsd /dev/rfcomm0
Right now we have SiRF mode. Switching now to NMEA is useless,
although gpsd is running it won't connect with the GPS device (and
force SiRF mode) till some client request data to gpsd. There are
several ways to make it: "telnet localhost 2947" and type DATA, or=20
launching a simple app like xgps:
acid@pluto:~# xgps
Once gpsd has established the first connection with RBT-1000 and
forced it to be in SiRF mode comes the magic. First we have to close
the client app that we used to request data to gpsd thus making it to
establish the connection with RBT-1000. And now we send the magic
string to switch RBT-1000 to NMEA mode:
acid@pluto:~# echo -e -n
"\240\242\000\030\201\002\001\001\000\001\005\001\005\001\000\001\000\001\0=
00\001\000\001\000\001\000\001\022\300\001\152\260\263"
> /dev/rfcomm0
If you "cat < /dev/rfcomm0" you'll get those nice NMEA strings, no
binary chars anymore. Gpsd recognizes the new mode but doesn't switch
back to SiRF, it reads data in NMEA mode from RBT-1000. Now you can
launch any gpsd based app again (xgps, gpsdrive, kismet, ...) and no
more timeouts!! That's it!
It looks like in SiRF mode RBT-1000 can't answer the requests from
gpsd as fast as they are performed and this produces those timeouts.
Switching to NMEA mode using this trick is a workaround, it would be
better if gpsd had some option to force the GPS reciever to operate in
NMEA mode if availible.
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
prev parent reply other threads:[~2005-10-18 15:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-15 16:51 [Bluez-users] "Wrong data" from my BT GPS Roylatek aCiDBiTS
2005-10-15 21:19 ` [Bluez-users] " Michael Mauch
2005-10-15 21:30 ` Michael Mauch
2005-10-17 10:00 ` aCiDBiTS
2005-10-17 10:21 ` [Bluez-users] Bluetooth doggles Charles Majola
2005-10-18 15:27 ` aCiDBiTS [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae97cd740510180827o34a45078n@mail.gmail.com \
--to=acidbits@gmail.com \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).