I'm transferring CC2540 firmware from keyfob to custom device (on the chip).
They differ in key and LED pin layout (so I changed source respectively).
While testing with UB dongle after standard advertizing and connection,
I'm trying to Discover Characteristic by UUID (no matter which profile)
device answers "Success" then drops connection after 10 sec (Supervision timeout though the timeout was set 20 sec - see log below).
Exactly the same thing happens if I try to load standard example firmware (for ex. heartrate).
Any ideas as to code changes, preprocessor directives, pins to note etc.?
[20] : <Tx> - 03:16:01.730
-Type : 0x01 (Command)
-Opcode : 0xFD88 (GATT_DiscCharsByUUID)
-Data Length : 0x08 (8) byte(s)
ConnHandle : 0x0000 (0)
StartHandle : 0x0001 (1)
EndHandle : 0xFFFF (65535)
Type : 08:18
Dump(Tx):
01 88 FD 08 00 00 01 00 FF FF 08 18
------------------------------------------------------------------------------------------------------------------------
[21] : <Rx> - 03:16:01.801
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (Success)
OpCode : 0xFD88 (GATT_DiscCharsByUUID)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 88 FD 00
------------------------------------------------------------------------------------------------------------------------
[22] : <Rx> - 03:16:11.087
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0509 (ATT_ReadByTypeRsp)
Status : 0x14 (Can't Perform Function When Not In A Connection)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
04 FF 06 09 05 14 00 00 00
------------------------------------------------------------------------------------------------------------------------
[23] : <Rx> - 03:16:11.155
-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 : 0x08 (Supervisor Timeout)
Dump(Rx):
04 FF 06 06 06 00 00 00 08