PDA

View Full Version : bluetooth gps autoreconnect?


jlmalet
05-18-2008, 04:11 PM
hi everybody,
I bought a bluetooth gps device and wanted to use it as a tracking recording device.
so I installed maemo mapper, downloaded some maps from google.... and here I go!
my gps is a solar powered gps, so I put it on the backpack. I checked and got connection... after wandering a little checking the device connection regularly I concluded that it can keep the connection like this... so I put the n800 back in the pocket and didn't mind.... after a while I wanted to see the track I've done, and well I got a message box 'lost connection with the gps, do you wanna reconnect?' well... of course stupid! reconnect :mad: ... all fine... some time later.... same :mad::mad:.... looking at the recorded track... it replaced the whole time spent with the message box on by a straight line!:eek:
how do I configure the n800 / maemo mapper to auto reconnect to the bluetooth device? I don't mind loosing the connection from time to time... but loosing 1h of a trip :eek::eek:
thanks
JLM

jlmalet
05-23-2008, 05:28 PM
Hi,
after looking the web I saw several tutorial explaining how to use bluez-utils to bind to the device and keep the bluetooth connection alive... however I don't find rfcomm, hci* utils described there.....
can someone tell me where to find thoses tools? additional repositories etc
thanks
JLM

jlmalet
05-24-2008, 05:59 AM
for installing hci tools :
http://www.internettablettalk.com/forums/showthread.php?p=151336

edit file /etc/bluetooth/rfcomm.conf by rfcomm commands output:

rfcomm0 {
bind yes;
device 00:00:00:00:00:00; #your gps mac address here
channel 1;
comment "BT GPS";
}

http://www.labri.fr/perso/barrere/gpsBTLinux.html

however this don't solve the issue : if connection is lost to the gps device, maemo mapper display a dialog box and don't retry to connect... I was expecting gpsd to reconnect... and maemo mapper to not know about the lost. :(

jlmalet
05-24-2008, 06:28 AM
running gpsd -n don't solve the issue, the problem is in maemomapper since gpsd don't kill itself on connection loss... more with -n option it can reconnect to the gps device without any issue...