Other Parts Discussed in Thread: CC2340R5, SYSCONFIG, UNIFLASH
Tool/software:
Issue Description:
When we perform a scan using BTool and our scanning device initiates a connection, the connection is immediately dropped within a second, without any explicit disconnection event. This occurs even with the default BTool settings.
We have tested this behavior across multiple SDK versions: 7.10, 7.40, 8.10, and the latest 8.40.
Note: The same device connects seamlessly with a mobile app and does not exhibit this auto-disconnection behavior. This issue is currently a showstopper for us.
Questions:
Q1: What could be causing this automatic disconnection when using BTool, and how can we resolve it?See Log for your reference
Q2: Is there any way to detect the RSSI value, MAC address, and Tx Power of a scanning central device that sends a scan request without initiating a connection?
(Example: Device A is acting as a Central and scanning my device B, which is in peripheral mode. I want to obtain the RSSI, MAC address, and Tx Power of Device A based on the scan request.)
Logs for your reference
Dump(Rx):
0000:04 FF 3E 13 06 00 00 00 40 00
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x14 (20) bytes(s)
Event : 0x0605 (1541) (GAP_EstablishLink)
Status : 0x00 (0) (SUCCESS)
DevAddrType : 0x00 (0) (ADDRTYPE_PUBLIC)
DevAddr : 0C:AF:5A:00:00:FE
ConnHandle : 0x0000 (0)
ConnRole : 0x08 (8) (
Central)
ConnInterval : 0x0050 (80)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x07D0 (2000)
ClockAccuracy : 0x00 (0)
Dump(Rx):
04 FF 14 05 06 00 00 FE 00 00 5A AF 0C 00 00 08
50 00 00 00 D0 07 00
-Type : 0x01 (Command)
-OpCode : 0x2022 (HCI_LE_SetDataLength)
-Data Length : 0x06 (6) byte(s)
Handle : 0x0000 (0)
TxOctets : 0x00FB (251)
TxTime : 0x0848 (2120)
Dump(Tx):
01 22 20 06 00 00 FB 00 48 08
--------------------------------------------------------------------
-Type : 0x04 (Event)
-EventCode : 0x000E (HCI_CommandCompleteEvent)
-Data Length : 0x06 (6) bytes(s)
Packets : 0x01 (1)
OpCode : 0x2022 (HCI_LE_SetDataLength)
Status : 0x00 (0) (SUCCESS)
Handle : 0x0000 (0)
Dump(Rx):
04 0E 06 01 22 20 00 00 00
--------------------------------------------------------------------
Device Connected
Handle = 0x0000
Addr Type = 0x00 (ADDRTYPE_PUBLIC)
BDAddr = 0C:AF:5A:00:00:FE
--------------------------------------------------------------------
Device Disconnected
Handle = 0x0000
Addr Type = 0x00 (ADDRTYPE_PUBLIC)
BDAddr = 0C:AF:5A:26:35:3E
--------------------------------------------------------------------
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0606 (1542) (GAP_TerminateLink)
Status : 0x00 (0) (SUCCESS)
ConnHandle : 0x0000 (0)
Reason : 0x3E (62) (FAILED_TO_ESTABLISH)-
Dump(Rx):
0000:04 FF 06 06 06 00 00 00 3E