Skip to contentSkip to conversation

Signification of the state term

Bluez-users Michel Leconte 2 participants 2 messages Nov 15, 2006 – Nov 16, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

I search the signification of the "state" term given for each connection by the "hcitool con" command.

1. First, I have an ACL connection between 2 bluetooth kits : the state of the ACL connection is 1

2. I create an SCO connection on this ACL connection : the state of the ACL connection stills 1

3. I make an HCI_disconnect on one side of the connection.

With hcidump, after the HCI_disconnect command, I see consecutively two events of complete deconnection :

- the first one for the SCO link,
- the second one for the ACL link.

But, the "hcitool con" command shows again the ACL connection with 8 value for the "state".

When I try to disconnect this link I have a disconnect error.

Does someone have an idea ? What is the signification of a 8 value for the "state" ?

regards.

Michel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi,

Quoted 19 lines

I search the signification of the "state" term given for each connection
by the "hcitool con" command.

1. First, I have an ACL connection between 2 bluetooth kits : the
state of the ACL connection is 1

2. I create an SCO connection on this ACL connection : the
state of the ACL connection stills 1

3. I make an HCI_disconnect on one side of the connection.

With hcidump, after the HCI_disconnect command, I see consecutively two events of complete deconnection :

- the first one for the SCO link,
- the second one for the ACL link.

Quoted 7 lines

But, the "hcitool con" command shows again the ACL connection with 8 value for the "state".

When I try to disconnect this link I have a disconnect error.

Does someone have an idea ? What is the signification of a 8 value for the "state" ?

it is the connection state. Check /usr/include/bluetooth/bluetooth.h and its enum for all possible states.

Regards

Marcel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users