Hi all,
I need to get advice about behavior of BLE-stack library.
I'm using ble-stack in network processor project with master mode configuration. BLE-stack is driven externaly.
I discovered problem after establish connection with bad MAC address to slave device. When I send GAP_EstablishLinkReq command to device with bad MAC address, then is this task in progress forever until I stop this request by sending GAP_TerminateLinkReq to the loopback connection handle. The following GAP_EstablishLink event contains status 0x31( The connection was not connected) and null Mac address (00:00:00:00:00) or conn handle (0x0000).
I need to know why this event does not contain MAC address which was required to connect command. Is it bug or it conforms to the BLE core specification.
Below I attach an attechment with log file, where is problem captured.
[1] : <Tx> - 01:12:30.107 -Type : 0x01 (Command) -Opcode : 0xFE09 (GAP_EstablishLinkRequest) -Data Length : 0x09 (9) byte(s) HighDutyCycle : 0x00 (Disable) WhiteList : 0x00 (Disable) AddrTypePeer : 0x00 (Public) PeerAddr : 01:93:0C:AF:59:90 <- Bad MAC address Dump(Tx): 01 09 FE 09 00 00 00 01 93 0C AF 59 90 ------------------------------------------------------------------------------------------------------------------------ [2] : <Rx> - 01:12:30.126 -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 ------------------------------------------------------------------------------------------------------------------------ [3] : <Tx> - 01:12:33.821 -Type : 0x01 (Command) -Opcode : 0xFE0A (GAP_TerminateLinkRequest) -Data Length : 0x03 (3) byte(s) ConnHandle : 0xFFFE (65534) discReason : 0x13 (Remote User Terminated Connection) Dump(Tx): 01 0A FE 03 FE FF 13 ------------------------------------------------------------------------------------------------------------------------ [4] : <Rx> - 01:12:33.977 -Type : 0x04 (Event) -EventCode : 0xFF (HCI_LE_ExtEvent) -Data Length : 0x06 (6) bytes(s) Event : 0x067F (GAP_HCI_ExtentionCommandStatus) Status : 0x00 (Success) OpCode : 0xFE0A (GAP_TerminateLinkRequest) DataLength : 0x00 (0) Dump(Rx): 04 FF 06 7F 06 00 0A FE 00 ------------------------------------------------------------------------------------------------------------------------ [5] : <Rx> - 01:12:34.277 -Type : 0x04 (Event) -EventCode : 0xFF (HCI_LE_ExtEvent) -Data Length : 0x13 (19) bytes(s) Event : 0x0605 (GAP_EstablishLink) Status : 0x31 (The Connection Was Not Accepted) DevAddrType : 0x00 (Public) DevAddr : 00:00:00:00:00:00 <- null MAC address ConnHandle : 0x0000 (0) ConnInterval : 0x0000 (0) ConnLatency : 0x0000 (0) ConnTimeout : 0x0000 (0) ClockAccuracy : 0x00 (0) Dump(Rx): 04 FF 13 05 06 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ------------------------------------------------------------------------------------------------------------------------
I hope, that there will be someone who can advise me. Thank you in advance for your help.