2005-07-28 14:55:52

by Frederic Danis

[permalink] [raw]
Subject: [Bluez-devel] EVT_CONN_COMPLETE not received on HCI socket when RFComm connected

Hello,

I am writing a daemon that watches over bluetooth states (up, down,
connected, disconnected, ...) to display this information to user.
I use HCI_FILTER (set to all events) to do this, but when a program make
a connection using RFComm I do not receive the EVT_CONN_COMPLETE event
(I use BlueZ 2.17 libs and utils).
Is it normal ? Is there a way to watch for connection/disconnection for
all protocols ?

Regards

Fred

--
-----------------------------------------------
It is not by improving the oil lamp that one invents the electric bulb!
-----------------------------------------------
Danis Frederic PalmSource Europe
Software engineer
Mail : mailto:[email protected]
-----------------------------------------------



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2005-07-28 23:13:46

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] EVT_CONN_COMPLETE not received on HCI socket when RFComm connected

Hi Fred,

> I am writing a daemon that watches over bluetooth states (up, down,
> connected, disconnected, ...) to display this information to user.
> I use HCI_FILTER (set to all events) to do this, but when a program make
> a connection using RFComm I do not receive the EVT_CONN_COMPLETE event
> (I use BlueZ 2.17 libs and utils).
> Is it normal ? Is there a way to watch for connection/disconnection for
> all protocols ?

you can only watch ACL and SCO connect complete events with it. With the
new bluetoothd and the new event mechanism from the kernel we can add
something like this. In general it is not possible to what RFCOMM events
for connection and disconnection.

Regards

Marcel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel