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

[bluetooth-dev] multi connection (details)



Hello, all,
 
I keep the print-outs of the program. It looks like following (irrelevant info being cut out):
 
> con 00:80:37:13:ae:46 1
hci_receive_data :  (7)
   0x04 0x0f 0x04 0x00 0x01 0x05 0x04
process_event:  (4)
   0x00 0x01 0x05 0x04
hci_receive_data :  (14)
   0x04 0x03 0x0b 0x00 0x01 0x00 0x46 0xae 0x13 0x37 0x80 0x00 0x01 0x00
CONNECTION_COMPLETE  (11)
   0x00 0x01 0x00 0x46 0xae 0x13 0x37 0x80 0x00 0x01 0x00
 
This is the first connection initiated by the master (my system requires such a feature). The connection_complete event is "success!" (0x00). Then I made a second connection from master to another bt device:
 

con 00:80:37:13:ae:61 2
hci_receive_data :  (21)
   0x04 0x0f 0x04 0x00 0x01 0x05 0x04 0x04 0x03 0x0b 0x09 0x00 0x0f 0x46 0xae 0x13
   0x37 0x80 0x00 0x01 0x00
process_event:  (4)
   0x00 0x01 0x05 0x04
CONNECTION_COMPLETE  (11)
   0x09 0x00 0x0f 0x46 0xae 0x13 0x37 0x80 0x00 0x01 0x00
 
This time the connection_complete event is "Max Number of Connections" (0x09). It looks weird to me that in the second time, the connection_complete is received by HCI simultaneously with the command_status data. Does the Bluetooth module itself sends out the connection_complete event or it is the openBT stack generated?
 
If I still want to connect to the second and even the third bt device, can anybody give me some suggestions. Great thanks in advance.
 
Best regards,
 
Wang Kangning