Thursday, August 16, 2012

Re: [LINUX_Newbies] Interacting with /dev/rfcomm0

 

On 15Aug2012 23:07, alexfishersalias <alexfishersmail@gmail.com> wrote:
| Hi - I have been using a bluetooth module (RN41) to connect an Arduino
| to an Android phone using an ap called 'Bluetooth Chat'. This lets me
| pass ascii characters between the devices.
|
| I'm trying to replace the Android device with a Bluetooth (adapter)
| enabled pc running Ubuntu 10.04 LTS.
|
| I'v connected to the Bluetooth module and been informed that the
| connection is available via /dev/rfcomm0.
|
| Does anyone know a simple(?) way to send & receive characters via /dev/rfcomm0?

I would naively expect it to be an normal looking serial device.
Open it, read and write strings. Use stty or ioctl or termios to set the
speed if relevant.

Otherwise, more background info needed.

Disclaimer: I've used serial devices including GSM modems but haven't
done anything technical with Bluetooth. But if it presents as a
character device (ls will tell you that) then it should just let you
open it and do I/O with read/write.

What's your implementation language?
--
Cameron Simpson <cs@zip.com.au>

The nice thing about standards is that you have so many to choose from;
furthermore, if you do not like any of them, you can just wait for next
year's model. - Andrew S. Tanenbaum

__._,_.___
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment