2007-09-20 15:04:16

by Andrea Galbusera

[permalink] [raw]
Subject: [Bluez-users] Basic serial communication over RFCOMM

Hi all,
I'm new to bluetooth programming and to serial communication too, but
I have a basic understanding of unix I/O.

I'm writing an application to communicate with some BT connected
devices. RFCOMM stuff is up and running ok.

I actually can do basic communication using minicom, but when I try to
do it in a simple open(), write() and read() program nothing happens!
I suspect this to be related to some basic setup of the tty attached
to the RFCOMM device I'm not managing correctly. If I keep minicom
open on a terminal and run my application on another this works fine
(I see correct answers from the device).

Could you please suggest any code examples or resources useful for
newbies on such a topic. I know there is a lot of stuff behind ttys
but hopefully only some parameters will be required.

TIA

Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users