maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   bluetooth gps autoreconnect? (https://talk.maemo.org/showthread.php?t=20197)

jlmalet 2008-05-18 20:11

bluetooth gps autoreconnect?
 
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 2008-05-23 21:28

Re: bluetooth gps autoreconnect?
 
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 2008-05-24 09:59

Re: bluetooth gps autoreconnect?
 
for installing hci tools :
http://www.internettablettalk.com/fo...d.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 2008-05-24 10:28

Re: bluetooth gps autoreconnect?
 
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...


All times are GMT. The time now is 20:15.

vBulletin® Version 3.8.8