How to configure Linux to act as a Bluetooth RFCOMM SPP server?

Posted by regulatre on Super User See other posts from Super User or by regulatre
Published on 2010-05-18T00:10:36Z Indexed on 2010/05/18 0:11 UTC
Read the original article Hit count: 511

Filed under:
|
|

I'm writing a phone app for Android that connects to a bluetooth RFCOMM device in my car. My phone app talks AT commands with it. For development work, I often need to communicate with the device to try different commands and things.

My neighbors are starting to think I'm weird because I sit in my car for hours on end with my laptop screen shining on my face, typing away like a script kiddie.

I'd much rather configure one of my many Linux servers to act as a bluetooth RFCOMM device and allow me to connect to it (indoors, while I sit on my couch).

I imagine I have to start with something like sdptool add SP

But then what?

I'm perfectly happy writing a perl app to handle the I/O, but I just don't know how to make the bluez stack accept connections and subsequently pipe that stream to a perl app.

© Super User or respective owner

Related posts about linux

Related posts about server