I'll ask again because the previous issue was not resolved.
previous issue: https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/p/887712/3300402
I am using Host test program in Periperal mode using Btool.
I follow your advice, I am referring to http://processors.wiki.ti.com/index.php/LPRF_BLE_NPGATT
The host test program sends an ATT_ReadByGrpTypeReq event message when connected to an Android phone.
It responds by sending ATT_ReadByGrpTypeRsp, but after that, it does not connect normally.
Am I sending the ATT_ReadByGrpTypeRsp wrong? Or is there any additional data that needs to be transferred?
[1] : <Tx> - 04:10:25.413
-Type : 0x01 (Command)
-OpCode : 0xFE00 (GAP_DeviceInit)
-Data Length : 0x26 (38) byte(s)
ProfileRole : 0x0C (12) (Peripheral Central)
MaxScanRsps : 0x05 (5)
IRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
CSRK : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
SignCounter : 0x00000001 (1)
Dump(Tx):
0000:01 00 FE 26 0C 05 00 00 00 00 00 00 00 00 00 00 ...&............
0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0020:00 00 00 00 00 00 01 00 00 00 ..........
--------------------------------------------------------------------
[2] : <Rx> - 04:10:25.428
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFE00 (GAP_DeviceInit)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 00 FE 00 .........
--------------------------------------------------------------------
[3] : <Rx> - 04:10:25.439
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x2C (44) bytes(s)
Event : 0x0600 (1536) (GAP_DeviceInitDone)
Status : 0x00 (0) (Success)
DevAddr : CC:78:AB:76:E5:02
DataPktLen : 0x001B (27)
NumDataPkts : 0x05 (5)
IRK : 12:FF:93:9B:1D:A2:9D:E2:B2:10:2F:F2:C8:EA:3A:66
CSRK : A7:B6:51:39:2D:D0:FB:1C:AF:E1:34:1C:B2:6E:A5:AD
Dump(Rx):
0000:04 FF 2C 00 06 00 02 E5 76 AB 78 CC 1B 00 05 12 ..,.....v.x.....
0010:FF 93 9B 1D A2 9D E2 B2 10 2F F2 C8 EA 3A 66 A7 ........./...:f.
0020:B6 51 39 2D D0 FB 1C AF E1 34 1C B2 6E A5 AD .Q9-.....4..n..
--------------------------------------------------------------------
[4] : <Tx> - 04:10:33.048
-Type : 0x01 (Command)
-OpCode : 0xFDFC (GATT_AddService)
-Data Length : 0x05 (5) byte(s)
UUID : 0x2800 (10240)
NumAttrs : 0x0003 (3)
EncKeySize : 0x10 (16)
Dump(Tx):
0000:01 FC FD 05 00 28 03 00 10 .....(...
--------------------------------------------------------------------
[5] : <Rx> - 04:10:33.071
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFDFC (GATT_AddService)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 FC FD 00 .........
--------------------------------------------------------------------
[6] : <Tx> - 04:10:39.781
-Type : 0x01 (Command)
-OpCode : 0xFDFE (GATT_AddAttribute)
-Data Length : 0x03 (3) byte(s)
UUID : 03:28
Permissions : 0x03 (3) (GATT_PERMIT_READ
GATT_PERMIT_WRITE)
Dump(Tx):
0000:01 FE FD 03 03 28 03 .....(.
--------------------------------------------------------------------
[7] : <Rx> - 04:10:39.807
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFDFE (GATT_AddAttribute)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 FE FD 00 .........
--------------------------------------------------------------------
[8] : <Tx> - 04:10:44.254
-Type : 0x01 (Command)
-OpCode : 0xFDFE (GATT_AddAttribute)
-Data Length : 0x03 (3) byte(s)
UUID : 00:2A
Permissions : 0x03 (3) (GATT_PERMIT_READ
GATT_PERMIT_WRITE)
Dump(Tx):
0000:01 FE FD 03 00 2A 03 .....*.
--------------------------------------------------------------------
[9] : <Warning> - 04:10:44.288
The Last 4 Bytes In The Following Message Were Not Decoded
(Message Has More Than The Expected Number Of Data Bytes)
--------------------------------------------------------------------
[10] : <Rx> - 04:10:44.281
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0A (10) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFDFE (GATT_AddAttribute)
DataLength : 0x04 (4)
Dump(Rx):
0000:04 FF 0A 7F 06 00 FE FD 04 01 00 03 00 .............
--------------------------------------------------------------------
[11] : <Tx> - 04:10:47.340
-Type : 0x01 (Command)
-OpCode : 0xFD05 (ATT_FindInfoRsp)
-Data Length : 0x07 (7) byte(s)
ConnHandle : 0xFFFE (65534)
Format : 0x01 (1) (A List Of 1 Or More Handles With Their 16-bit Bluetooth UUIDs)
Handle : 0000
Data : 00:00
Dump(Tx):
0000:01 05 FD 07 FE FF 01 00 00 00 00 ...........
--------------------------------------------------------------------
[12] : <Rx> - 04:10:47.355
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD05 (ATT_FindInfoRsp)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 05 FD 00 .........
--------------------------------------------------------------------
[13] : <Tx> - 04:10:49.421
-Type : 0x01 (Command)
-OpCode : 0xFD04 (ATT_FindInfoReq)
-Data Length : 0x06 (6) byte(s)
ConnHandle : 0xFFFE (65534)
StartHandle : 0x0001 (1)
EndHandle : 0xFFFF (65535)
Dump(Tx):
0000:01 04 FD 06 FE FF 01 00 FF FF ..........
--------------------------------------------------------------------
[14] : <Rx> - 04:10:49.448
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD04 (ATT_FindInfoReq)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 04 FD 00 .........
--------------------------------------------------------------------
[15] : <Rx> - 04:10:49.459
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x13 (19) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0xFFFE (65534)
PduLen : 0x0D (13)
Format : 0x01 (1) (A List Of 1 Or More Handles With Their 16-bit Bluetooth UUIDs)
Handle : 0001
Uuid : 00:28
Handle : 0002
Uuid : 03:28
Handle : 0003
Uuid : 00:2A
Dump(Rx):
0000:04 FF 13 05 05 00 FE FF 0D 01 01 00 00 28 02 00 .............(..
0010:03 28 03 00 00 2A .(...*
--------------------------------------------------------------------
[16] : <Rx> - 04:10:49.470
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0505 (1285) (ATT_FindInfoRsp)
Status : 0x1A (26) (The Procedure Is Completed)
ConnHandle : 0xFFFE (65534)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 05 05 1A FE FF 00 .........
--------------------------------------------------------------------
[17] : <Tx> - 04:11:57.149
-Type : 0x01 (Command)
-OpCode : 0xFE07 (GAP_UpdateAdvertisingData)
-Data Length : 0x05 (5) byte(s)
AdType : 0x01 (1) (Advertisement Data)
DataLength : 0x03 (3)
AdvertData : 02:01:06
Dump(Tx):
0000:01 07 FE 05 01 03 02 01 06 .........
--------------------------------------------------------------------
[18] : <Rx> - 04:11:57.184
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFE07 (GAP_UpdateAdvertisingData)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 07 FE 00 .........
--------------------------------------------------------------------
[19] : <Rx> - 04:11:57.195
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x04 (4) bytes(s)
Event : 0x0602 (1538) (GAP_AdvertDataUpdate)
Status : 0x00 (0) (Success)
AdType : 0x01 (1) (Advertisement Data)
Dump(Rx):
0000:04 FF 04 02 06 00 01 .......
--------------------------------------------------------------------
[20] : <Tx> - 04:11:59.836
-Type : 0x01 (Command)
-OpCode : 0xFE07 (GAP_UpdateAdvertisingData)
-Data Length : 0x05 (5) byte(s)
AdType : 0x00 (0) (Scan Rsp Data)
DataLength : 0x03 (3)
AdvertData : 02:01:06
Dump(Tx):
0000:01 07 FE 05 00 03 02 01 06 .........
--------------------------------------------------------------------
[21] : <Rx> - 04:11:59.861
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFE07 (GAP_UpdateAdvertisingData)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 07 FE 00 .........
--------------------------------------------------------------------
[22] : <Rx> - 04:11:59.872
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x04 (4) bytes(s)
Event : 0x0602 (1538) (GAP_AdvertDataUpdate)
Status : 0x00 (0) (Success)
AdType : 0x00 (0) (Scan Rsp Data)
Dump(Rx):
0000:04 FF 04 02 06 00 00 .......
--------------------------------------------------------------------
[23] : <Tx> - 04:12:02.044
-Type : 0x01 (Command)
-OpCode : 0xFE06 (GAP_MakeDiscoverable)
-Data Length : 0x0A (10) byte(s)
EventType : 0x00 (0) (Connectable Undirect Advertisement)
InitAddrType : 0x00 (0) (Public)
InitAddrs : 00:00:00:00:00:00
ChannelMap : 0x07 (7) (Channel 37
Channel 38
Channel 39)
FilterPolicy : 0x00 (0) (Allow Scan Requests From Any, Allow
Connect Request From Any.)
Dump(Tx):
0000:01 06 FE 0A 00 00 00 00 00 00 00 00 07 00 ..............
--------------------------------------------------------------------
[24] : <Rx> - 04:12:02.063
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFE06 (GAP_MakeDiscoverable)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 06 FE 00 .........
--------------------------------------------------------------------
[25] : <Rx> - 04:12:02.074
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x03 (3) bytes(s)
Event : 0x0603 (1539) (GAP_MakeDiscoverable)
Status : 0x00 (0) (Success)
Dump(Rx):
0000:04 FF 03 03 06 00 ......
--------------------------------------------------------------------
[26] : <Info> - 04:13:18.677
Device Connected
Handle = 0x0000
Addr Type = 0x01 (Static)
BDAddr = 43:B2:4C:3F:41:11
--------------------------------------------------------------------
[27] : <Rx> - 04:13:18.663
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x14 (20) bytes(s)
Event : 0x0605 (1541) (GAP_EstablishLink)
Status : 0x00 (0) (Success)
DevAddrType : 0x01 (1) (Random)
DevAddr : 43:B2:4C:3F:41:11
ConnHandle : 0x0000 (0)
ConnRole : 0x04 (4) (Peripheral)
ConnInterval : 0x0027 (39)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x01F4 (500)
ClockAccuracy : 0x01 (1)
Dump(Rx):
0000:04 FF 14 05 06 00 01 11 41 3F 4C B2 43 00 00 04 ........A?L.C...
0010:27 00 00 00 F4 01 01 '......
--------------------------------------------------------------------
[28] : <Error> - 04:13:18.870
Could Not Convert Some Of The Data In The Following Message
(A Specific Message Handler Is Needed To Process The Data)
--------------------------------------------------------------------
[29] : <Warning> - 04:13:18.877
The Last 10 Bytes In The Following Message Were Not Decoded
(Message Has More Than The Expected Number Of Data Bytes)
--------------------------------------------------------------------
[30] : <Rx> - 04:13:18.870
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0D (13) bytes(s)
Event : 0x0612 (1554) (Unknown Op Code)
Status : 0x00 (0) (Success)
Raw : 00 00 00 06 00 06 00 00 00 F4 01
Dump(Rx):
0000:04 FF 0D 12 06 00 00 00 06 00 06 00 00 00 F4 01 ................
--------------------------------------------------------------------
[31] : <Rx> - 04:13:18.913
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0C (12) bytes(s)
Event : 0x0510 (1296) (ATT_ReadByGrpTypeReq)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x06 (6)
StartHandle : 0x0001 (1)
EndHandle : 0xFFFF (65535)
GroupType : 00:28
Dump(Rx):
0000:04 FF 0C 10 05 00 00 00 06 01 00 FF FF 00 28 ..............(
--------------------------------------------------------------------
[32] : <Tx> - 04:13:21.053
-Type : 0x01 (Command)
-OpCode : 0xFD11 (ATT_ReadByGrpTypeRsp)
-Data Length : 0x09 (9) byte(s)
ConnHandle : 0x0000 (0)
Length : 0x06 (6)
DataList : 01:00:FF:FF:01:18
Dump(Tx):
0000:01 11 FD 09 00 00 06 01 00 FF FF 01 18 .............
--------------------------------------------------------------------
[33] : <Rx> - 04:13:21.093
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD11 (ATT_ReadByGrpTypeRsp)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 11 FD 00 .........
--------------------------------------------------------------------
[34] : <Rx> - 04:13:21.254
-Type : 0x04 (Event)
-EventCode : 0x00FF (HCI_LE_ExtEvent)
-Data Length : 0x0C (12) bytes(s)
Event : 0x0508 (1288) (ATT_ReadByTypeReq)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x06 (6)
StartHandle : 0x0001 (1)
EndHandle : 0xFFFF (65535)
Type : 03:28
Dump(Rx):
0000:04 FF 0C 08 05 00 00 00 06 01 00 FF FF 03 28 ..............(
--------------------------------------------------------------------
[35] : <Info> - 04:13:51.236
Device Disconnected
Handle = 0x0000
Addr Type = 0x01 (Static)
BDAddr = 43:B2:4C:3F:41:11
--------------------------------------------------------------------
[36] : <Rx> - 04:13:51.235
-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 : 0x13 (19) (Peer Requested)
Dump(Rx):
0000:04 FF 06 06 06 00 00 00 13 .........
--------------------------------------------------------------------
thanks,
SC Lee.