ubuntu / linux bluetooth connection issues
this is a repost of my thread here about the issues I have been having with a bluetooth gps device.
All info about the system / debug logs can be found in the above referenced post. As to my issue, I can get the connection paired. I can get rfcomm to stream data from the device. I can connect gpsd -b to the /dev location. I can not seem to get xgpsd or any other application to read from gpsd.
I have been told that this is a bluetooth issue and not a API issue with gpsd - 3rd party application. If anyone else has a functioning bluetooth connection ( this only seems to affect gps devices ) that works using the latest stable blueZ stack please let me know. I just cant seem to get it working.
Thanks for checking in!
Why fragment things into a different thread? It seems you were doing fine within the referenced post.
Find out why bluetooth is an issue for you. Keep it within the original so as not to confuse everything.
bluetooth gps on linux - short howto might help.
Can't even get NMEA stream to flow (Issue and Resolution)
May I butt in?
I have similar issues, yet perhaps more fundamental: I can't even get NMEA data to flow. Here's my output...
heviiguy@hevii-NtBk-1:~$ telnet localhost 2947
Connected to localhost.
Escape character is '^]'.
Tango reports that there is no gps nor gpsd.
I've checked to see whether the GPS available
I've bound gpsd to rfcomm0
I've killed gpsd
sudo service gpsd stop
I've restarted gpsd
gpsd -b -n /dev/rfcomm0
It's driving me (hah, a good pun!) nuts.
Background: I'm running a Global BT-GPS-35D8BC. It operates fine as an external GPS on my mobile phone as well as on Windoze 7. In fact, I've re-set it to factory defaults using SiRFDemo on the latter.
UPDATE : This is just too bizarre - I just cleared the BT-GPS from the bluetooth device manager, reconnected and... voila: xgps shows my position, Tango shows my position, and, OpenCPN does as well! Now I just have to get the known issues with gpsdrive and gpsd on Ubuntu 10.04 resolved!
Yeah, I've got the option of not sending this message since I no longer have a problem but, maybe if it's up here it'll help somebody else.
No changes made : Problem has returned!
I had mentioned bizarre in the previous post. I have to mention it again: I'm faced with the same problems as before... :banghead:
I cannot get gpsd to communicate with the BT-GPS
Tango was running while I was busy doing something else. At one point, I noticed that the BT icon in my panel suggested that nothing was connected. Sure enough, when I checked Tango, my position was gone.
I restarted Tango. No joy.
I started xgps. No joy
I shutdown Bluetooth
I cleared the BT-GPS from the list of devices
I found and added it again.
Started Tango. No joy
Started xgps. No joy
I can see that for the past 5 minutes, my Bluetooth connection is still active.
Any suggestions? All are welcome and actively sought! I'd really like to get this annoying situation resolved.
Changed the Bluetooth dongle
In case I may have had a defective USB Bluetooth dongle, I took out one and replaced it with another. Same story!
However, now my active rfcomm is 1 instead of 0! It's not my place to ask why. I just went ahead and changed all references to 1.
Same darn problem.:scratch:
See the gpsd homepage, which will explain this (and more).
If you lose your BT connection to your gps device, and it is later re-established, it may be allocated to /dev/rfcomm1 instead of /dev/rfcomm0. In which case gpsd will be listening to a non-existant device: you'll have to kill gpsd and restart it with the curent /dev/whatever
IMHO bluetooth and GPS are a PITA with linux at the moment.
My USB connected GPS device works very reliably.
My impression of BT is that it's a bit like USB on linux six years ago: It worked, but you had to fight with it all the time.
Maybe linux's handling of BT needs a little time to "catch up".
outside of configuration issues ( very possible) caused by forcing rfcomm to bind to a device that seems to hop channels everytime it is re-paired.i am with tredgar in thinking it may be an issue with blueZ and gpsd. If it was an api issue between gpsd and tangogps then i think the xgps that is packaged with gpsd ( current for buntu repos ) I would see something from the device. Anyhow, been busy with another issue regarding video ( something simple I think ) and have put the bluetooth on the back burner. I will try changing it again soon.
Bluetooth and Linux : Simply roll over and die?
Thanks for your reply, Tredegar. Being a newb to the entire Linux world, I suppose that I should accept the sage comments. However, is this really the case?
This is an older thread i started. I solved my gps over bluetooth here. Hope it helps. The solution is on the last page of the thread.
|All times are GMT -5. The time now is 08:05 AM.|