LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-18-2010, 02:04 PM   #1
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
Question ubuntu / linux bluetooth connection issues


Hi,

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!
 
Old 07-19-2010, 07:09 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,023
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Hi,

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.

 
1 members found this post helpful.
Old 07-19-2010, 08:25 AM   #3
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
Why fragment things into a different thread?
... Because I asked him to: His original thread refers to tangogps & gpsd when I think his problems are bluetooth-related. So, new problem, new thread.
 
Old 07-19-2010, 11:50 AM   #4
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
new idea

Quote:
Originally Posted by onebuck View Post
Hi,

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.

thanks! i did not try linking the /dev/rfcomm to a serial port! Thats a new approach that may fix it. If it works i will post in one chunk what worked. Odd thing is...i would have thought that gpsd could talk to /dev/rfcomm directly?? o well, thanks again guys. I put this post up due to a suggestion. Feel free to move it back.
 
Old 07-21-2010, 11:41 AM   #5
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Rep: Reputation: 0
Talking 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
Trying ::1...
Connected to localhost.
Escape character is '^]'.
{"class":"VERSION","release":"2.92","rev":"svn","proto_major":3,"proto_minor":1}

Tango reports that there is no gps nor gpsd.

I've checked to see whether the GPS available
hcitool scan
Scanning ...
00:0D:B5:358:BC BT-GPS-35D8BC

I've bound gpsd to rfcomm0
gpsd /dev/rfcomm0

I've killed gpsd
sudo service gpsd stop

I've restarted gpsd
gpsd -b -n /dev/rfcomm0

xgps shows:
{"class":"DEVICES","devices":[{"class":"DEVICE","path":"/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.
 
Old 07-21-2010, 12:02 PM   #6
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Rep: Reputation: 0
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...

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.

Thanks.
 
Old 07-21-2010, 12:39 PM   #7
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Rep: Reputation: 0
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.
 
Old 07-21-2010, 01:03 PM   #8
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
heviiguy@hevii-NtBk-1:~$ telnet localhost 2947
The current version of gpsd no longer supports the telnet option, because it has been extensively rewritten over the last year.

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".

HTH
 
Old 07-21-2010, 04:46 PM   #9
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
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.
 
Old 07-22-2010, 10:27 AM   #10
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Rep: Reputation: 0
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?
  • Is nobody experiencing satisfactory functionality with bluetooth gps devices on Linux?
Please, somebody out there must have developed some weird and fancy ways to get this stuff working together! I can't believe that the massive community of Tango, Viking, gpsdrive and OpenCPN users out there are only "getting by" through constant battling and struggling
 
Old 12-19-2010, 01:42 PM   #11
mrmnemo
Member
 
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
hi,

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.
 
  


Reply

Tags
bluetooth, bluez, gps, gpsd, rfcomm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection between linux and windows using bluetooth DeepSeaNautilus Linux - Networking 1 10-17-2009 02:35 PM
Wireless Connection issues with Ubuntu 9.04 shiquemano Linux - Wireless Networking 7 10-05-2009 01:44 PM
Bluetooth dial-up connection with nokia 6600 in ubuntu 7.04 kaykay.mudgle Linux - Newbie 1 09-19-2007 04:18 PM
Ubuntu 5.10 PPPoE/VPN Connection Issues Schnoid Linux - Networking 0 04-27-2006 11:21 AM
bluetooth connection between 2 linux hosts polrus Linux - Hardware 0 09-01-2005 06:59 PM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration