I had setup the test device with HostTestRelease as Master, and KeyFobDemo as slave device. And the device could be detected correctly with Btool. But after I click on "establish" after scan completed, it will disconnect the slave device very quickly. Here is the dump message from btool. Could any body help to advice possible cause of this failure? I were using blestack rev1.2 on CC2540F256 chip.
------------------------------------------------------------------------------------------------------------------------
[33] : <Tx> - 02:06:25.710
-Type : 0x01 (Command)
-Opcode : 0xFE09 (GAP_EstablishLinkRequest)
-Data Length : 0x09 (9) byte(s)
HighDutyCycle : 0x00 (Disable)
WhiteList : 0x00 (Disable)
AddrTypePeer : 0x00 (Public)
PeerAddr : BF:26:B1:EB:D7:90
Dump(Tx):
01 09 FE 09 00 00 00 BF 26 B1 EB D7 90
------------------------------------------------------------------------------------------------------------------------
[34] : <Rx> - 02:06:25.802
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (Success)
OpCode : 0xFE09 (GAP_EstablishLinkRequest)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 09 FE 00
------------------------------------------------------------------------------------------------------------------------
[35] : <Rx> - 02:06:26.492
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x13 (19) bytes(s)
Event : 0x0605 (GAP_EstablishLink)
Status : 0x00 (Success)
DevAddrType : 0x00 (Public)
DevAddr : 90:D7:EB:B1:26:BF
ConnHandle : 0x0000 (0)
ConnInterval : 0x0050 (80)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x0C80 (3200)
ClockAccuracy : 0x00 (0)
Dump(Rx):
04 FF 13 05 06 00 00 BF 26 B1 EB D7 90 00 00 50
00 00 00 80 0C 00
------------------------------------------------------------------------------------------------------------------------
[36] : <Rx> - 02:06:27.077
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0606 (GAP_TerminateLink)
Status : 0x00 (Success)
ConnHandle : 0x0000 (0)
Reason : 0x3E (Failed To Establish)
Dump(Rx):
04 FF 06 06 06 00 00 00 3E
------------------------------------------------------------------------------------------------------------------------
Thanks!
Michael