Re: Meaning of hcitool -i dev con

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

 



Jui-Hao Chiang <windtracekimo <at> gmail.com> writes:

> 
> Hi, dear all:
> I am currently using Cyber-Blue Bluetooth USB adapter and Motorola
> Razr V3 for experiments.
> My goal is to use one adapter to open 3 SCO connections with 3 V3 cell phones.
> The chan_mobile in Asterisk gives me the way to connect the adapter to
> one phone. But when I use hcitool -i hci1 con to show the connections,
> I don't know how to explain the output (00:19:2C:D5:90:DF is cell
> phone's address):
> 
> Connections:
> 	> SCO 00:19:2C:D5:90:DF handle 2 state 1 lm SLAVE
> 	< ACL 00:19:2C:D5:90:DF handle 1 state 1 lm MASTER ENCRYPT
> 
> Does this mean that the USB adapter is playing TWO roles (master and
> slave) at the same moment??
> 
> Hope some one can give some hint.
> Best regards
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> 


I just tried to use the following to query the link mode of the adapter
[command]
hcitool -i hci1 cmd 0x02 0x0009 0x02 0x00
[output]
< HCI Command: ogf 0x02, ocf 0x0009, plen 2
  02 00 
> HCI Event: 0x0e plen 7
  01 09 08 00 02 00 00 
(If I did not make anything wrong)
0x02 is the OGF for Link Policy Command
0x0009 is the OCF for HCI_Role_Discovery
0x02 0x00 is the unit16 of connection handle

At the same time, I use "hcidump -i hci1 -w log" to listen, and then use
wireshark to view the log.
The last byte of HCI Event shows the current role is Master for this connection
handle.
So it seems confusing that "hcitool -i hci1 con" shows "Slave".




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bluez-devel

[Index of Archives]     [Linux Bluetooth Devel]     [Linux USB Devel]     [Network Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux