[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bluetooth-dev] How to use emulated serial port at RFCOMM?

Does the method that you mentioned below apply to both kernel and user
mode? Which is the header file that I need to include so that I can call
those functions?

Matthew Palmer wrote:
> On Mon, 19 Feb 2001, Chia Benham wrote:
> > I am writing an application that wish to communicate through the
> > emulated serial port at RFCOMM, how do I open an emulated serial port
> > and read/write to that port? What are the functions that I can call to
> > talk to the emulated serial port?
> As I understand it, open() the special file (/dev/ttyBT0) and then read()
> and write() (or their <stdio.h> equivalents after an fdopen()) followed by a
> close().  If you want to do funky control stuff, you can use ioctl(),
> perhaps only on the control device (/dev/ttyBTC).  I'm not yet sure what
> exactly you can do with it (still digesting source code).
> --
> -----------------------------------------------------------------------
> #include <disclaimer.h>
> Matthew Palmer
> mjp16@xxxxxxx.au

Do You Yahoo!?
Get your free @xxxxxxx.com">http://mail.yahoo.com

To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com