This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652R: BTool - no PassKey entry box

Part Number: CC2652R

Hi,

I am following the instructions in SimpleLink Academy (task 3 - simplelink_academy_cc13x2_26x2sdk_3_20_03_00/modules/ble5stack/ble_02_security/ble_02_sec_funds.html) to enable pairing on a CC2652R1LP (running project zero) and a CC2652R1LP running host test using BTool.

The instructions state there should be a passkey box to enter the passcode shown on the project zero terminal. However, I have a blank box between "initiate pairing" and "long term key" as shown below

Is this box only enabled when certain conditions are met?

If I issue a GAPBondMgr_PasscodeRsp message from btool with the required password then projectzero terminal shows that pairing was successful, however btool times out after ~60 seconds with a pairing error and is not usable after that.

Also attached is the btool log showing that there is no GAP_AuthenticationComplete event generated even although project zero says it is successfull

000027 [ 23.766 ] INFO: (project_zero.c:1726) Updated params for F0:F8:F2:D2:B7:68, interval: 45.0 ms, latency: 0, timeout: 2000 ms
#000028 [ 29.447 ] INFO: (project_zero.c:1500) Pairing started
#000029 [ 29.447 ] INFO: (project_zero.c:1500) Pairing started
#000030 [ 29.447 ] INFO: (project_zero.c:1552) BondMgr Requested passcode. We are Displaying passcode 123456
#000031 [ 42.992 ] INFO: (project_zero.c:1506) Pairing success

I suspect I am missing something but think I have followed the simplelink academy instructions.

[1] : <Info> - 10:50:14.064
Port opened at 24/10/2019 10:50:14
--------------------------------------------------------------------
[2] : <Tx> - 10:50:14.167
-Type           : 0x01 (Command)
-OpCode         : 0xFC1D (HCIExt_ResetSystemCmd)
-Data Length    : 0x01 (1) byte(s)
 Type           : 0x00 (0) (Chip Reset)
Dump(Tx):
0000:01 1D FC 01 00                                  .....
--------------------------------------------------------------------
[3] : <Rx> - 10:50:14.270
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x05 (5) bytes(s)
 Event          : 0x041D (1053) (HCIExt_ResetSystemCmdDone)
 Status         : 0x00 (0) (SUCCESS)
 CmdOpCode      : 0xFC1D (HCIExt_ResetSystemCmd)
Dump(Rx):
0000:04 FF 05 1D 04 00 1D FC                         ........
--------------------------------------------------------------------
[4] : <Tx> - 10:50:14.778
-Type           : 0x01 (Command)
-OpCode         : 0xFE00 (GAP_DeviceInit)
-Data Length    : 0x08 (8) byte(s)
 ProfileRole    : 0x08 (8) (
                  Central)
 AddrMode       : 0x00 (0) (ADDRMODE_PUBLIC)
 RandomAddr     : 00:00:00:00:00:00
Dump(Tx):
0000:01 00 FE 08 08 00 00 00 00 00 00 00             ............
--------------------------------------------------------------------
[5] : <Rx> - 10:50:14.962
-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                      .........
--------------------------------------------------------------------
[6] : <Rx> - 10:50:14.972
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x2C (44) bytes(s)
 Event          : 0x0600 (1536) (GAP_DeviceInitDone)
 Status         : 0x00 (0) (SUCCESS)
 DevAddr        : F0:F8:F2:D2:B7:68
 DataPktLen     : 0x00FF (255)
 NumDataPkts    : 0x05 (5)
 IRK            : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 CSRK           : 22:63:42:CA:1B:21:8F:DD:E5:DF:36:8F:29:03:7B:22
Dump(Rx):
0000:04 FF 2C 00 06 00 68 B7 D2 F2 F8 F0 FF 00 05 00 ..,...h.........
0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 22 ..............."
0020:63 42 CA 1B 21 8F DD E5 DF 36 8F 29 03 7B 22    cB..!....6.).{"
--------------------------------------------------------------------
[7] : <Tx> - 10:50:14.998
-Type           : 0x01 (Command)
-OpCode         : 0xFE61 (GapInit_getPhyParam)
-Data Length    : 0x02 (2) byte(s)
 PHY            : 0x01 (1) (INIT_PHY_1M)
 ParamId        : 0x02 (2) (INIT_PHYPARAM_CONN_INT_MIN)
Dump(Tx):
0000:01 61 FE 02 01 02                               .a....
--------------------------------------------------------------------
[8] : <Tx> - 10:50:15.009
-Type           : 0x01 (Command)
-OpCode         : 0xFE61 (GapInit_getPhyParam)
-Data Length    : 0x02 (2) byte(s)
 PHY            : 0x01 (1) (INIT_PHY_1M)
 ParamId        : 0x03 (3) (INIT_PHYPARAM_CONN_INT_MAX)
Dump(Tx):
0000:01 61 FE 02 01 03                               .a....
--------------------------------------------------------------------
[9] : <Tx> - 10:50:15.019
-Type           : 0x01 (Command)
-OpCode         : 0xFE61 (GapInit_getPhyParam)
-Data Length    : 0x02 (2) byte(s)
 PHY            : 0x01 (1) (INIT_PHY_1M)
 ParamId        : 0x04 (4) (INIT_PHYPARAM_CONN_LATENCY)
Dump(Tx):
0000:01 61 FE 02 01 04                               .a....
--------------------------------------------------------------------
[10] : <Tx> - 10:50:15.030
-Type           : 0x01 (Command)
-OpCode         : 0xFE61 (GapInit_getPhyParam)
-Data Length    : 0x02 (2) byte(s)
 PHY            : 0x01 (1) (INIT_PHY_1M)
 ParamId        : 0x05 (5) (INIT_PHYPARAM_SUP_TIMEOUT)
Dump(Tx):
0000:01 61 FE 02 01 05                               .a....
--------------------------------------------------------------------
[11] : <Rx> - 10:50:15.079
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x09 (9) bytes(s)
 Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
 Status         : 0x00 (0) (SUCCESS)
 OpCode         : 0xFE61 (GapInit_getPhyParam)
 DataLength     : 0x03 (3)
 ParamId        : 0x02 (2) (INIT_PHYPARAM_CONN_INT_MIN)
 MinConnectInter: 0x0050 (80)
Dump(Rx):
0000:04 FF 09 7F 06 00 61 FE 03 02 50 00             ......a...P.
--------------------------------------------------------------------
[12] : <Rx> - 10:50:15.100
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x09 (9) bytes(s)
 Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
 Status         : 0x00 (0) (SUCCESS)
 OpCode         : 0xFE61 (GapInit_getPhyParam)
 DataLength     : 0x03 (3)
 ParamId        : 0x03 (3) (INIT_PHYPARAM_CONN_INT_MAX)
 MaxConnectInter: 0x0050 (80)
Dump(Rx):
0000:04 FF 09 7F 06 00 61 FE 03 03 50 00             ......a...P.
--------------------------------------------------------------------
[13] : <Rx> - 10:50:15.122
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x09 (9) bytes(s)
 Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
 Status         : 0x00 (0) (SUCCESS)
 OpCode         : 0xFE61 (GapInit_getPhyParam)
 DataLength     : 0x03 (3)
 ParamId        : 0x04 (4) (INIT_PHYPARAM_CONN_LATENCY)
 ConnectLatency : 0x0000 (0)
Dump(Rx):
0000:04 FF 09 7F 06 00 61 FE 03 04 00 00             ......a.....
--------------------------------------------------------------------
[14] : <Rx> - 10:50:15.143
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x09 (9) bytes(s)
 Event          : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
 Status         : 0x00 (0) (SUCCESS)
 OpCode         : 0xFE61 (GapInit_getPhyParam)
 DataLength     : 0x03 (3)
 ParamId        : 0x05 (5) (INIT_PHYPARAM_SUP_TIMEOUT)
 SuperTimeout   : 0x07D0 (2000)
Dump(Rx):
0000:04 FF 09 7F 06 00 61 FE 03 05 D0 07             ......a.....
--------------------------------------------------------------------
[15] : <Tx> - 10:50:26.504
-Type           : 0x01 (Command)
-OpCode         : 0xFE51 (GapScan_enable)
-Data Length    : 0x06 (6) byte(s)
 Period         : 0x0000 (0)
 Duration       : 0x01F4 (500)
 MaxNumRecords  : 0x0028 (40)
Dump(Tx):
0000:01 51 FE 06 00 00 F4 01 28 00                   .Q......(.
--------------------------------------------------------------------
[16] : <Rx> - 10:50:26.523
-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         : 0xFE51 (GapScan_enable)
 DataLength     : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 51 FE 00                      ......Q..
--------------------------------------------------------------------
[17] : <Rx> - 10:50:26.533
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x07 (7) bytes(s)
 Event          : 0x0613 (1555) (GAP_AdvertiserScannerEvent)
 Status         : 0x00 (0) (SUCCESS)
 EventId        : 0x00010000 (65536) (
                  GAP_EVT_SCAN_ENABLED)
Dump(Rx):
0000:04 FF 07 13 06 00 00 00 01 00                   ..........
--------------------------------------------------------------------
[18] : <Rx> - 10:50:26.575
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x2F (47) bytes(s)
 Event          : 0x0613 (1555) (GAP_AdvertiserScannerEvent)
 Status         : 0x00 (0) (SUCCESS)
 EventId        : 0x00400000 (4194304) (
                  GAP_EVT_ADV_REPORT)
 AdvRptEventType: 0x13 (19) (Legacy_ADV_IND_or_Data_Complete)
 AddressType    : 0x00 (0) (ADDRTYPE_PUBLIC)
 Address        : 80:6F:B0:EE:A9:E5
 PrimaryPHY     : 0x01 (1) (SCANNED_PHY_1M)
 SecondaryPHY   : 0x00 (0) (SCANNED_PHY_NONE)
 AdvSid         : 0xFF (255)
 TxPower        : 0x7F (127)
 RSSI           : 0xD9 (217)
 DirectAddrType : 0xFF (255) (ADDRTYPE_NONE)
 DirectAddr     : 00:00:00:00:00:00
 PeriodicAdvInt : 0x0000 (0)
 DataLength     : 0x0010 (16)
 Data           : 02:01:06:0C:09:50:72:6F:6A:65:63:74:50:61:69:72
Dump(Rx):
0000:04 FF 2F 13 06 00 00 00 40 00 13 00 E5 A9 EE B0 ../.....@.......
0010:6F 80 01 00 FF 7F D9 FF 00 00 00 00 00 00 00 00 o...............
0020:10 00 02 01 06 0C 09 50 72 6F 6A 65 63 74 50 61 .......ProjectPa
0030:69 72                                           ir
--------------------------------------------------------------------
[19] : <Rx> - 10:50:26.660
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x30 (48) bytes(s)
 Event          : 0x0613 (1555) (GAP_AdvertiserScannerEvent)
 Status         : 0x00 (0) (SUCCESS)
 EventId        : 0x00400000 (4194304) (
                  GAP_EVT_ADV_REPORT)
 AdvRptEventType: 0x13 (19) (Legacy_ADV_IND_or_Data_Complete)
 AddressType    : 0x01 (1) (ADDRTYPE_RANDOM)
 Address        : 72:D4:30:37:18:60
 PrimaryPHY     : 0x01 (1) (SCANNED_PHY_1M)
 SecondaryPHY   : 0x00 (0) (SCANNED_PHY_NONE)
 AdvSid         : 0xFF (255)
 TxPower        : 0x7F (127)
 RSSI           : 0xC2 (194)
 DirectAddrType : 0xFF (255) (ADDRTYPE_NONE)
 DirectAddr     : 00:00:00:00:00:00
 PeriodicAdvInt : 0x0000 (0)
 DataLength     : 0x0011 (17)
 Data           : 02:01:1A:02:0A:0C:0A:FF:4C:00:10:05:41:1C:AC:3B:
                  ED
Dump(Rx):
0000:04 FF 30 13 06 00 00 00 40 00 13 01 60 18 37 30 ..0.....@...`.70
0010:D4 72 01 00 FF 7F C2 FF 00 00 00 00 00 00 00 00 .r..............
0020:11 00 02 01 1A 02 0A 0C 0A FF 4C 00 10 05 41 1C ..........L...A.
0030:AC 3B ED                                        .;.
--------------------------------------------------------------------
[20] : <Rx> - 10:50:28.430
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x2C (44) bytes(s)
 Event          : 0x0613 (1555) (GAP_AdvertiserScannerEvent)
 Status         : 0x00 (0) (SUCCESS)
 EventId        : 0x00400000 (4194304) (
                  GAP_EVT_ADV_REPORT)
 AdvRptEventType: 0x13 (19) (Legacy_ADV_IND_or_Data_Complete)
 AddressType    : 0x01 (1) (ADDRTYPE_RANDOM)
 Address        : E8:B7:3B:D4:56:19
 PrimaryPHY     : 0x01 (1) (SCANNED_PHY_1M)
 SecondaryPHY   : 0x00 (0) (SCANNED_PHY_NONE)
 AdvSid         : 0xFF (255)
 TxPower        : 0x7F (127)
 RSSI           : 0xA6 (166)
 DirectAddrType : 0xFF (255) (ADDRTYPE_NONE)
 DirectAddr     : 00:00:00:00:00:00
 PeriodicAdvInt : 0x0000 (0)
 DataLength     : 0x000D (13)
 Data           : 02:01:06:03:03:ED:FE:05:09:54:69:6C:65
Dump(Rx):
0000:04 FF 2C 13 06 00 00 00 40 00 13 01 19 56 D4 3B ..,.....@....V.;
0010:B7 E8 01 00 FF 7F A6 FF 00 00 00 00 00 00 00 00 ................
0020:0D 00 02 01 06 03 03 ED FE 05 09 54 69 6C 65    ...........Tile
--------------------------------------------------------------------
[21] : <Rx> - 10:50:30.357
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x3D (61) bytes(s)
 Event          : 0x0613 (1555) (GAP_AdvertiserScannerEvent)
 Status         : 0x00 (0) (SUCCESS)
 EventId        : 0x00400000 (4194304) (
                  GAP_EVT_ADV_REPORT)
 AdvRptEventType: 0x13 (19) (Legacy_ADV_IND_or_Data_Complete)
 AddressType    : 0x01 (1) (ADDRTYPE_RANDOM)
 Address        : C5:2A:BB:1C:FD:68
 PrimaryPHY     : 0x01 (1) (SCANNED_PHY_1M)
 SecondaryPHY   : 0x00 (0) (SCANNED_PHY_NONE)
 AdvSid         : 0xFF (255)
 TxPower        : 0x7F (127)
 RSSI           : 0xA0 (160)
 DirectAddrType : 0xFF (255) (ADDRTYPE_NONE)
 DirectAddr     : 00:00:00:00:00:00
 PeriodicAdvInt : 0x0000 (0)
 DataLength     : 0x001E (30)
 Data           : 02:01:06:11:07:B1:AA:32:95:5B:A4:43:2A:5F:6A:4D:
                  9F:65:9C:83:45:08:FF:59:00:00:FF:FF:FF:FF
Dump(Rx):
0000:04 FF 3D 13 06 00 00 00 40 00 13 01 68 FD 1C BB ..=.....@...h...
0010:2A C5 01 00 FF 7F A0 FF 00 00 00 00 00 00 00 00 *...............
0020:1E 00 02 01 06 11 07 B1 AA 32 95 5B A4 43 2A 5F .........2.[.C*_
0030:6A 4D 9F 65 9C 83 45 08 FF 59 00 00 FF FF FF FF jM.e..E..Y......
--------------------------------------------------------------------
[22] : <Rx> - 10:50:31.520
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x09 (9) bytes(s)
 Event          : 0x0613 (1555) (GAP_AdvertiserScannerEvent)
 Status         : 0x00 (0) (SUCCESS)
 EventId        : 0x00020000 (131072) (
                  GAP_EVT_SCAN_DISABLED)
 EndReason      : 0x01 (1) (SCAN_END_REASON_DUR_EXP)
 NumberOfReports: 0x04 (4)
Dump(Rx):
0000:04 FF 09 13 06 00 00 00 02 00 01 04             ............
--------------------------------------------------------------------
[23] : <Tx> - 10:50:37.405
-Type           : 0x01 (Command)
-OpCode         : 0xFE62 (GapInit_connect)
-Data Length    : 0x0A (10) byte(s)
 PeerAddrType   : 0x00 (0) (PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID)
 PeerAddr       : 80:6F:B0:EE:A9:E5
 InitiatingPhy  : 0x01 (1) (
                  INIT_PHY_1M)
 Timeout        : 0x0000 (0)
Dump(Tx):
0000:01 62 FE 0A 00 E5 A9 EE B0 6F 80 01 00 00       .b.......o....
--------------------------------------------------------------------
[24] : <Rx> - 10:50:37.441
-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         : 0xFE62 (GapInit_connect)
 DataLength     : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 62 FE 00                      ......b..
--------------------------------------------------------------------
[25] : <Rx> - 10:50:37.461
-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        : 80:6F:B0:EE:A9:E5
 ConnHandle     : 0x0000 (0)
 ConnRole       : 0x08 (8) (
                  Central)
 ConnInterval   : 0x0050 (80)
 ConnLatency    : 0x0000 (0)
 ConnTimeout    : 0x07D0 (2000)
 ClockAccuracy  : 0x00 (0)
Dump(Rx):
0000:04 FF 14 05 06 00 00 E5 A9 EE B0 6F 80 00 00 08 ...........o....
0010:50 00 00 00 D0 07 00                            P......
--------------------------------------------------------------------
[26] : <Tx> - 10:50:37.463
-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):
0000:01 22 20 06 00 00 FB 00 48 08                   ." .....H.
--------------------------------------------------------------------
[27] : <Info> - 10:50:37.554
Device Connected
Handle = 0x0000
Addr Type = 0x00 (ADDRTYPE_PUBLIC)
BDAddr = 80:6F:B0:EE:A9:E5
--------------------------------------------------------------------
[28] : <Rx> - 10:50:37.514
-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):
0000:04 0E 06 01 22 20 00 00 00                      ...." ...
--------------------------------------------------------------------
[29] : <Rx> - 10:50:37.754
-Type           : 0x04 (Event)
-EventCode      : 0x003E (HCI_LE_GenericReportEvent)
-Data Length    : 0x0C (12) bytes(s)
 LE Event Code  : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
 LE Event Code  : 0x04 (4) (HCI_LE_ReadRemoteUsedFeaturesCompleteEvent)
 Status         : 0x00 (0) (SUCCESS)
 ConnectionId   : 0x0000 (0)
 Features       : 0x00000000000059FF (23039) (
                  Encryption
                  Connection_Parameters_Request
                  Reject_Extended_Indication
                  Slave_Features_Exchange
                  Ping
                  Data_Packet_Length_Extension
                  Privacy
                  Extended_Scanner_Filter_Policies
                  PHY_2M
                  Coded_PHY
                  Extended_Advertising
                  Channel_Selection_Algorithm_2)
Dump(Rx):
0000:04 3E 0C 04 00 00 00 FF 59 00 00 00 00 00 00    .>......Y......
--------------------------------------------------------------------
[30] : <Rx> - 10:50:43.673
-Type           : 0x04 (Event)
-EventCode      : 0x000E (HCI_CommandCompleteEvent)
-Data Length    : 0x06 (6) bytes(s)
 Packets        : 0x01 (1)
 OpCode         : 0x2020 (HCI_LE_RemoteConnectionParameterRequestReply)
 Status         : 0x00 (0) (SUCCESS)
 Handle         : 0x0000 (0)
Dump(Rx):
0000:04 0E 06 01 20 20 00 00 00                      ....  ...
--------------------------------------------------------------------
[31] : <Rx> - 10:50:44.874
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x0B (11) bytes(s)
 Event          : 0x0607 (1543) (GAP_LinkParamUpdate)
 Status         : 0x00 (0) (SUCCESS)
 ConnHandle     : 0x0000 (0)
 ConnInterval   : 0x0024 (36)
 ConnLatency    : 0x0000 (0)
 ConnTimeout    : 0x00C8 (200)
Dump(Rx):
0000:04 FF 0B 07 06 00 00 00 24 00 00 00 C8 00       ........$.....
--------------------------------------------------------------------
[32] : <Tx> - 10:50:50.496
-Type           : 0x01 (Command)
-OpCode         : 0xFE0B (GAP_Authenticate)
-Data Length    : 0xA0 (160) byte(s)
 ConnHandle     : 0x0000 (0)
 sec.ioCaps     : 0x04 (4) (GAPBOND_IO_CAP_KEYBOARD_DISPLAY)
 sec.oobAvail   : 0x00 (0) (False)
 sec.oob        : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 sec.oobConfirm : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 sec.locOobAval : 0x00 (0)
 sec.localOob   : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 sec.isSCOnlyMod: 0x00 (0)
 sec.eccKs_isUse: 0x00 (0)
 sec.eccKs_sK   : BD:1A:3C:CD:A6:B8:99:58:99:B7:40:EB:7B:60:FF:4A:
                  50:3F:10:D2:E3:B3:C9:74:38:5F:C5:A3:D4:F6:49:3F
 sec.eccKs_pK_x : E6:9D:35:0E:48:01:03:CC:DB:FD:F4:AC:11:91:F4:EF:
                  B9:A5:F9:E9:A7:83:2C:5E:2C:BE:97:F2:D2:03:B0:20
 sec.eccKs_pK_y : 8B:D2:89:15:D0:8E:1C:74:24:30:ED:8F:C2:45:63:76:
                  5C:15:52:5A:BF:9A:32:63:6D:EB:2A:65:49:9C:80:DC
 sec.authReq    : 0x04 (4) (
                  Man_In_The_Middle)
 sec.maxEKeySize: 0x10 (16)
 sec.keyDist    : 0x77 (119) (
                  GAPBOND_KEYDIST_SENCKEY
                  GAPBOND_KEYDIST_SIDKEY
                  GAPBOND_KEYDIST_SSIGN
                  GAPBOND_KEYDIST_MENCKEY
                  GAPBOND_KEYDIST_MIDKEY
                  GAPBOND_KEYDIST_MSIGN)
 pair.Enable    : 0x00 (0) (Disable)
 pair.ioCaps    : 0x03 (3) (GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT)
 pair.oobDFlag  : 0x00 (0) (Disable)
 pair.authReq   : 0x01 (1) (
                  Bonding)
 pair.maxEKeySiz: 0x10 (16)
 pair.keyDist   : 0x77 (119) (
                  GAPBOND_KEYDIST_SENCKEY
                  GAPBOND_KEYDIST_SIDKEY
                  GAPBOND_KEYDIST_SSIGN
                  GAPBOND_KEYDIST_MENCKEY
                  GAPBOND_KEYDIST_MIDKEY
                  GAPBOND_KEYDIST_MSIGN)
Dump(Tx):
0000:01 0B FE A0 00 00 04 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 00 00 00 00 00 00 00 00 00 00 ................
0030:00 00 00 00 00 00 00 00 00 00 00 BD 1A 3C CD A6 .............<..
0040:B8 99 58 99 B7 40 EB 7B 60 FF 4A 50 3F 10 D2 E3 ..X..@.{`.JP?...
0050:B3 C9 74 38 5F C5 A3 D4 F6 49 3F E6 9D 35 0E 48 ..t8_....I?..5.H
0060:01 03 CC DB FD F4 AC 11 91 F4 EF B9 A5 F9 E9 A7 ................
0070:83 2C 5E 2C BE 97 F2 D2 03 B0 20 8B D2 89 15 D0 .,^,...... .....
0080:8E 1C 74 24 30 ED 8F C2 45 63 76 5C 15 52 5A BF ..t$0...Ecv\.RZ.
0090:9A 32 63 6D EB 2A 65 49 9C 80 DC 04 10 77 00 03 .2cm.*eI.....w..
00A0:00 01 10 77                                     ...w
--------------------------------------------------------------------
[33] : <Rx> - 10:50:50.532
-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         : 0xFE0B (GAP_Authenticate)
 DataLength     : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 0B FE 00                      .........
--------------------------------------------------------------------
[34] : <Tx> - 10:51:03.121
-Type           : 0x09 (ExtCommand)
-OpCode         : 0xFE4A (GAPBondMgr_PasscodeRsp)
-Data Length    : 0x0700 (1792) byte(s)
 ConnHandle     : 0x0000 (0)
 Status         : 0x00 (0) (SUCCESS)
 Passcode       : 0x0001E240 (123456)
Dump(Tx):
0000:09 4A FE 07 00 00 00 00 40 E2 01 00             .J......@...
--------------------------------------------------------------------
[35] : <Rx> - 10:51:03.148
-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         : 0xFE4A (GAPBondMgr_PasscodeRsp)
 DataLength     : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 4A FE 00                      ......J..
--------------------------------------------------------------------

Thanks, Iain

  • Hi Iain,

    The passcode entry box will pop up during the pairing process. Did you configure the pairing parameters for Project Zero (and possibly BTool) according to the task? (Sounds like your device did an unauthenticated pairing.)

  • Hi Marie,

    I set the bond parameters in project zero to:

    uint8_t pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
    uint8_t mitm = TRUE;
    uint8_t ioCap = GAPBOND_IO_CAP_DISPLAY_ONLY;
    uint8_t bonding = FALSE;

    I hadn't set the GATT permissions for an attribute to

    GATT_PERMIT_ENCRYPT_READ | GATT_PERMIT_ENCRYPT_WRITE

    Is that mandatory?

    What BTool pairing parameters are required? Do the set parameters in Task 1 need to be run for Task 3 to function?

    Iain

  • Hi Iain,

    Sorry for the delayed response.

    I will recreate your setup, and get back to you in the following days.

    Best regards,

    Vetle

  • Hi Iain,

    Have you tried to click the "Send Pairing Request" button in the "Pairing Bonding" tab  (after link established)?

    The "Passkey Input" box is dependent on this request event:

    Best regards,

    Vetle

  • Hi Vetle,

    Sorry for the delay. I was fighting more fundamental problems with the project than pairing.

    I still cannot get the Pass Key box up. I do the steps:

    1.Set Pairing mode to initiate

    [16] : <Tx> - 06:34:10.966
    -Type : 0x01 (Command)
    -OpCode : 0xFE36 (GAPBondMgr_SetParameter)
    -Data Length : 0x04 (4) byte(s)
    ParamID : 0x0400 (1024) (GAPBOND_PAIRING_MODE)
    ParamLength : 0x01 (1)
    PairingMode : 0x02 (2) (GAPBOND_PAIRING_MODE_INITIATE)

    2 Set IO capabilities to NO_INPUT_NO_OUTPUT

    [18] : <Tx> - 06:34:21.748
    -Type : 0x01 (Command)
    -OpCode : 0xFE36 (GAPBondMgr_SetParameter)
    -Data Length : 0x04 (4) byte(s)
    ParamID : 0x0403 (1027) (GAPBOND_IO_CAPABILITIES)
    ParamLength : 0x01 (1)
    BondIOCaps : 0x03 (3) (GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT)

    3 scan and connect

    [25] : <Tx> - 06:34:34.755
    -Type : 0x01 (Command)
    -OpCode : 0xFE62 (GapInit_connect)
    -Data Length : 0x0A (10) byte(s)
    PeerAddrType : 0x00 (0) (PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID)
    PeerAddr : F0:F8:F2:21:E0:60
    InitiatingPhy : 0x01 (1) (
    INIT_PHY_1M)
    Timeout : 0x0000 (0)
    Dump(Tx):
    0000:01 62 FE 0A 00 60 E0 21 F2 F8 F0 01 00 00 .b...`.!......
    --------------------------------------------------------------------
    [26] : <Rx> - 06:34:34.785
    -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 : 0xFE62 (GapInit_connect)
    DataLength : 0x00 (0)
    Dump(Rx):
    0000:04 FF 06 7F 06 00 62 FE 00 ......b..
    --------------------------------------------------------------------
    [27] : <Rx> - 06:34:34.942
    -Type : 0x04 (Event)
    -EventCode : 0x00FF (HCI_LE_ExtEvent)
    -Data Length : 0x14 (20) bytes(s)
    Event : 0x0605 (1541) (GAP_EstablishLink)
    Status : 0x00 (0) (SUCCESS)
    DevAddrType : 0x02 (2) (ADDRTYPE_PUBLIC_ID)
    DevAddr : F0:F8:F2:21:E0:60
    ConnHandle : 0x0000 (0)
    ConnRole : 0x08 (8) (
    Central)
    ConnInterval : 0x0050 (80)
    ConnLatency : 0x0000 (0)
    ConnTimeout : 0x07D0 (2000)
    ClockAccuracy : 0x00 (0)

    4 tick MTIM and press Send Pairing Request

    This triggers an authentication request

    [34] : <Tx> - 06:52:47.665
    -Type : 0x01 (Command)
    -OpCode : 0xFE0B (GAP_Authenticate)
    -Data Length : 0xA0 (160) byte(s)
    ConnHandle : 0x0000 (0)
    sec.ioCaps : 0x04 (4) (GAPBOND_IO_CAP_KEYBOARD_DISPLAY)
    sec.oobAvail : 0x00 (0) (False)
    sec.oob : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    sec.oobConfirm : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    sec.locOobAval : 0x00 (0)
    sec.localOob : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
    sec.isSCOnlyMod: 0x00 (0)
    sec.eccKs_isUse: 0x00 (0)
    sec.eccKs_sK : BD:1A:3C:CD:A6:B8:99:58:99:B7:40:EB:7B:60:FF:4A:
    50:3F:10:D2:E3:B3:C9:74:38:5F:C5:A3:D4:F6:49:3F
    sec.eccKs_pK_x : E6:9D:35:0E:48:01:03:CC:DB:FD:F4:AC:11:91:F4:EF:
    B9:A5:F9:E9:A7:83:2C:5E:2C:BE:97:F2:D2:03:B0:20
    sec.eccKs_pK_y : 8B:D2:89:15:D0:8E:1C:74:24:30:ED:8F:C2:45:63:76:
    5C:15:52:5A:BF:9A:32:63:6D:EB:2A:65:49:9C:80:DC
    sec.authReq : 0x04 (4) (
    Man_In_The_Middle)
    sec.maxEKeySize: 0x10 (16)
    sec.keyDist : 0x77 (119) (
    GAPBOND_KEYDIST_SENCKEY
    GAPBOND_KEYDIST_SIDKEY
    GAPBOND_KEYDIST_SSIGN
    GAPBOND_KEYDIST_MENCKEY
    GAPBOND_KEYDIST_MIDKEY
    GAPBOND_KEYDIST_MSIGN)
    pair.Enable : 0x00 (0) (Disable)
    pair.ioCaps : 0x03 (3) (GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT)
    pair.oobDFlag : 0x00 (0) (Disable)
    pair.authReq : 0x01 (1) (
    Bonding)
    pair.maxEKeySiz: 0x10 (16)
    pair.keyDist : 0x77 (119) (
    GAPBOND_KEYDIST_SENCKEY
    GAPBOND_KEYDIST_SIDKEY
    GAPBOND_KEYDIST_SSIGN
    GAPBOND_KEYDIST_MENCKEY
    GAPBOND_KEYDIST_MIDKEY
    GAPBOND_KEYDIST_MSIGN)
    Dump(Tx):
    0000:01 0B FE A0 00 00 04 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 00 00 00 00 00 00 00 00 00 00 ................
    0030:00 00 00 00 00 00 00 00 00 00 00 BD 1A 3C CD A6 .............<..
    0040:B8 99 58 99 B7 40 EB 7B 60 FF 4A 50 3F 10 D2 E3 ..X..@.{`.JP?...
    0050:B3 C9 74 38 5F C5 A3 D4 F6 49 3F E6 9D 35 0E 48 ..t8_....I?..5.H
    0060:01 03 CC DB FD F4 AC 11 91 F4 EF B9 A5 F9 E9 A7 ................
    0070:83 2C 5E 2C BE 97 F2 D2 03 B0 20 8B D2 89 15 D0 .,^,...... .....
    0080:8E 1C 74 24 30 ED 8F C2 45 63 76 5C 15 52 5A BF ..t$0...Ecv\.RZ.
    0090:9A 32 63 6D EB 2A 65 49 9C 80 DC 04 10 77 00 03 .2cm.*eI.....w..
    00A0:00 01 10 77 ...w
    --------------------------------------------------------------------
    [35] : <Rx> - 06:52:47.690
    -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 : 0xFE0B (GAP_Authenticate)
    DataLength : 0x00 (0)

    There is no authentication event after this. Is this required to trigger the pass key request?

    Iain

  • Hi,

    In your initiator(BTool), you need to set your IO capability to Keyboard only instead of no input no output.

    When you set one device to have display but the other device has no input no output capability, then just work will be chosen based on the figure 84 in the following chapter in user's guide.

    For more information, please take a look at the software user's guide.

    http://dev.ti.com/tirex/content/simplelink_cc13x2_26x2_sdk_3_30_00_03/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/gapbondmngr.html#selection-of-pairing-method

  • Hi Christin,

    Thanks for the follow up. It appears that the step of setting IO to keypad is missing from the SLA instructions.

    Iain