2005-01-10 13:49:54

by Luiz Fernando Capitulino

[permalink] [raw]
Subject: [Bluez-users] RS232 Control Signals.


Hi there!

I'd like to know if the RS232 Control Signals are available when
using Bluetooth through Serial Emulation whith the rfcomm program.

I'm writing a program which should detect when a serial device
(which also suports bluetooth) is turned off. The program does its
job using an ioctl() call:

ioctl(fd, TIOCMGET, &status);

and then checking for the DSR signal.

It works as expected for the (true) serial port, but when I use
Bluetooth through Serial Emulation with the rfcomm program the signal
doesn't change its state, and my program fails.

Are the RS232 Control Signals available?

I'm using the kernel linux version 2.6.10, and the rfcomm program
from the bluez-utils-2.13.

I tryed the rfcomm program with the "bind" and "connect" options.

PS: Didn't find an answer for that question in the
Mailing List archieves.

TIA,

--
Luiz Fernando N. Capitulino


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-01-10 16:19:55

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] RS232 Control Signals.

Hi Luiz,

> I'd like to know if the RS232 Control Signals are available when
> using Bluetooth through Serial Emulation whith the rfcomm program.
>
> I'm writing a program which should detect when a serial device
> (which also suports bluetooth) is turned off. The program does its
> job using an ioctl() call:
>
> ioctl(fd, TIOCMGET, &status);
>
> and then checking for the DSR signal.
>
> It works as expected for the (true) serial port, but when I use
> Bluetooth through Serial Emulation with the rfcomm program the signal
> doesn't change its state, and my program fails.
>
> Are the RS232 Control Signals available?

I think they are missing. However feel free to send a patch for the
kernel that implements support for it.

Regards

Marcel




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users