LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Access serial port over Bluetooth (https://www.linuxquestions.org/questions/linux-software-2/access-serial-port-over-bluetooth-705171/)

Jaykob 02-16-2009 04:40 PM

Access serial port over Bluetooth
 
Hi,

I need to access a serial USB GPS device connected to one netbook from another netbook over Bluetooth. Both netbooks are running Ubuntu.
The GPS device opens a RS-232 connection via USB and appears as /dev/ttyACM0. Now I want to connect to that device from another netbook, ideally using it as it was plugged in directly.
I searched a lot on google and only found programs that do the same but over TCP/IP.

Is there anything out that I could use? If not how could I implement it by myself in C / C++?

Thanks in advance!
Jakob

MS3FGX 02-17-2009 08:54 AM

Are you using gpsd? gpsd allows you to connect to another machine over the network and use it's GPS device. You could run that ontop of TCP/IP over Bluetooth.

There may be some trickery with RFCOMM to allow you to tunnel the serial device directly to the remote machine, but if you are using gpsd you might as well make use of the included functionality.

Jaykob 02-17-2009 09:08 AM

Quote:

Originally Posted by MS3FGX (Post 3446943)
Are you using gpsd? gpsd allows you to connect to another machine over the network and use it's GPS device. You could run that ontop of TCP/IP over Bluetooth.

No, I'm using a proprietary U-Blox protocol and gpsd need NMEA, right?
I need the proprietary protocol because I need the raw data of the receiver which is not available in NMEA format.
So I would be interested in the RFCOMM trickery if someone knows anything about it ;)


All times are GMT -5. The time now is 09:37 PM.