Part Number: LAUNCHXL-CC2640R2
Hi,
My SDK version is simplelink_cc2640r2_sdk_1_50_00_58, and I used host_test example with "GATT_DB_OFF_CHIP" enabled.
I used HCITester to simulate switching peripheral and central role.
This is my test script :
idx=0 idxmax=1000 while idx < idxmax Send_HCI_Reset #Wait_HCI_Command_Complete_Reset_Event sleep 2000 Send_GAP_DeviceInit 0x04, 20, 0, 0, 1 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE00, Wait_HCI_Vendor_Specific_Event 10000, 0x0600, 0x00, , , , , Send_GATT_AddService 0x2800, 5 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFDFC, Send_GATT_AddAttribute "03:28", 3 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFDFE, Send_GATT_AddAttribute "e1:ff", 3 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFDFE, Send_GATT_AddAttribute "03:28", 3 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFDFE, Send_GATT_AddAttribute "e2:ff", 3 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFDFE, Send_GAP_UpdateAdvertisingData 1, "02:01:06" Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE07, Wait_HCI_Vendor_Specific_Event , 0x0602, 0x00, Send_GAP_MakeDiscoverable 0, 0x00, 0, 0x07, 0x00 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE06, Wait_HCI_Vendor_Specific_Event , 0x0603, sleep 5000 Send_GAP_EndDiscoverable Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE08, Wait_HCI_Vendor_Specific_Event , 0x0604, Send_HCI_Reset #Wait_HCI_Command_Complete_Reset_Event sleep 2000 Send_GAP_DeviceInit 0x08, 20, 0, 0, 1 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE00, Wait_HCI_Vendor_Specific_Event 10000, 0x0600, 0x00, , , , , Send_GAP_SetParam 36,-127 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE30, Send_GAP_SetParam 2,2000 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE30, index=0 indexMax=20 while index < indexMax #Send_GAP_SetParam 16,16 #Send_GAP_SetParam 17,16 Send_GAP_DeviceDiscoveryRequest 3, 0, 0 Wait_HCI_Vendor_Specific_Event , 0x067F, 0x00, 0xFE04, Wait_HCI_Vendor_Specific_Event , 0x060D, 0x00, , , , , , sleep 2100 index++ wend idx++ wend
Log : 3482.log.txt
When execute above script for a while, it received unexpected packet.
14:18:28.289 Incoming Dump:
14:18:28.289 0000: 00 40 00 20 69 e6 00 00 .@. i...
14:18:28.295 Incoming Dump:
14:18:28.295 0000: 01 c9 01 10 01 c9 01 10 01 c9 01 10 01 c9 01 10 ................
14:18:28.295 0010: 01 c9 01 10 01 c9 01 10 ........
14:18:28.302 Incoming Dump:
14:18:28.302 0000: 01 c9 01 10 01 c9 01 10 01 c9 01 10 01 c9 01 10 ................
14:18:28.303 0010: 01 c9 01 10 01 c9 01 10 3f c9 01 10 2d e9 fe 4f ........?...-..O
14:18:28.303 0020: 04 46 e0 48 00 21 2c 22 34 30 07 46 0c f0 62 f9 .F.H.!,"40.F..b.
14:18:28.303 0030: 00 20 02 90 20 78 a0 38 00 f0 fb 83 80 1e 00 f0 . .. x.8........
14:18:28.303 Incoming Dump:
14:18:28.303 0000: d0 83 0e 38 00 f0 cc 82 12 38 00 f0 88 82 0e 38 ...8.....8.....8
14:18:28.303 0010: 40 f0 31 84 a0 78 02 9d 11 28 a8 46 00 f2 7d 82 @.1..x...(.F..}.
14:18:28.303 0020: df e8 10 f0 5d 01 19 01 71 02 69 02 66 02 42 02 ....]...q.i.f.B.
14:18:28.303 0030: 36 02 1e 02 10 02 f8 01 78 00 dd 01 ca 01 49 00 6.......x.....I.
14:18:28.303 0040: be 01 12 00 7b 02 a2 ....
.
.
.
14:18:28.589 Packet "se", Opcode 0x0046
What is above packet ?