Skip to contentSkip to conversation

EVT_CONN_COMPLETE not received on HCI socket when RFComm connected

Bluez-devel Frederic Danis 2 participants 2 messages Jul 28, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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

Signature · 19 lines
-----------------------------------------------
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
maintainer
#1 lore raw

Hi Fred,

Quoted 7 lines

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