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.

CC2640R2F: HCI_LE_EnhancedTransmitterTest using Btool(BLE5)

Part Number: CC2640R2F

HI,

when I tested the "HCI_LE_EnhancedTransmitterTest" by using Btool, I got below error message.

--------------------------------------------------------------------
[18] : <Tx> - 01:45:27.970
-Type           : 0x01 (Command)
-OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
-Data Length    : 0x04 (4) byte(s)
 TxChannel      : 0x00 (0)
 TestData       : 0x0A (10)
 DtmPktPattern  : 0x00 (0) (Dtm_PRBS9)
 TxPhyType      : 0x01 (1) (Phy 1 Mbps)
Dump(Tx):
0000:01 34 20 04 00 0A 00 01                         .4 .....
--------------------------------------------------------------------
[19] : <Error> - 01:45:27.990
Could Not Convert All The Data In The Following Message
Unable to read beyond the end of the stream.
(Message Maybe Missing Data Bytes To Process)
--------------------------------------------------------------------
[20] : <Rx> - 01:45:27.985
-Type           : 0x04 (Event)
-EventCode      : 0x000E (HCI_CommandCompleteEvent)
-Data Length    : 0x04 (4) bytes(s)
 Packets        : 0x01 (1)
 OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
 Status         : 0x21 (33) (ROLE_CHANGE_NOT_ALLOWED)
Dump(Rx):
0000:04 0E 04 01 34 20 21                            ....4 !

Test procedure is simple.

1. fusing the "cc2640r2lp_host_test.hex" (C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\examples\rtos\CC2640R2_LAUNCHXL\ble5stack\hexfiles) into CC2640R2F launchpad.

2. run Btool (C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\tools\ble5stack\btool)

please let me know how to test this.

please find attached log for more  info.

[1] : <Info> - 01:44:25.360
Port opened at 10/10/2018 1:44:25 PM
--------------------------------------------------------------------
[2] : <Tx> - 01:44:25.506
-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> - 01:44:25.797
-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> - 01:44:26.364
-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> - 01:44:26.520
-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> - 01:44:26.531
-Type           : 0x04 (Event)
-EventCode      : 0x00FF (HCI_LE_ExtEvent)
-Data Length    : 0x2C (44) bytes(s)
 Event          : 0x0600 (1536) (GAP_DeviceInitDone)
 Status         : 0x00 (0) (SUCCESS)
 DevAddr        : 54:6C:0E:83:2F:F3
 DataPktLen     : 0x00FF (255)
 NumDataPkts    : 0x05 (5)
 IRK            : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
 CSRK           : 7B:8D:4A:45:0E:33:5A:0B:CC:AB:E0:AF:81:06:F6:EB
Dump(Rx):
0000:04 FF 2C 00 06 00 F3 2F 83 0E 6C 54 FF 00 05 00 ..,..../..lT....
0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B ...............{
0020:8D 4A 45 0E 33 5A 0B CC AB E0 AF 81 06 F6 EB    .JE.3Z.........
--------------------------------------------------------------------
[7] : <Tx> - 01:44:26.592
-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> - 01:44:26.602
-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> - 01:44:26.612
-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> - 01:44:26.622
-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> - 01:44:26.631
-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> - 01:44:26.651
-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> - 01:44:26.662
-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> - 01:44:26.681
-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> - 01:45:16.993
-Type           : 0x01 (Command)
-OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
-Data Length    : 0x04 (4) byte(s)
 TxChannel      : 0x00 (0)
 TestData       : 0x0A (10)
 DtmPktPattern  : 0x01 (1) (Dtm_0x0F)
 TxPhyType      : 0x02 (2) (Phy 2 Mbps)
Dump(Tx):
0000:01 34 20 04 00 0A 01 02                         .4 .....
--------------------------------------------------------------------
[16] : <Error> - 01:45:17.020
Could Not Convert All The Data In The Following Message
Unable to read beyond the end of the stream.
(Message Maybe Missing Data Bytes To Process)
--------------------------------------------------------------------
[17] : <Rx> - 01:45:17.014
-Type           : 0x04 (Event)
-EventCode      : 0x000E (HCI_CommandCompleteEvent)
-Data Length    : 0x04 (4) bytes(s)
 Packets        : 0x01 (1)
 OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
 Status         : 0x00 (0) (SUCCESS)
Dump(Rx):
0000:04 0E 04 01 34 20 00                            ....4 .
--------------------------------------------------------------------
[18] : <Tx> - 01:45:27.970
-Type           : 0x01 (Command)
-OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
-Data Length    : 0x04 (4) byte(s)
 TxChannel      : 0x00 (0)
 TestData       : 0x0A (10)
 DtmPktPattern  : 0x00 (0) (Dtm_PRBS9)
 TxPhyType      : 0x01 (1) (Phy 1 Mbps)
Dump(Tx):
0000:01 34 20 04 00 0A 00 01                         .4 .....
--------------------------------------------------------------------
[19] : <Error> - 01:45:27.990
Could Not Convert All The Data In The Following Message
Unable to read beyond the end of the stream.
(Message Maybe Missing Data Bytes To Process)
--------------------------------------------------------------------
[20] : <Rx> - 01:45:27.985
-Type           : 0x04 (Event)
-EventCode      : 0x000E (HCI_CommandCompleteEvent)
-Data Length    : 0x04 (4) bytes(s)
 Packets        : 0x01 (1)
 OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
 Status         : 0x21 (33) (ROLE_CHANGE_NOT_ALLOWED)
Dump(Rx):
0000:04 0E 04 01 34 20 21                            ....4 !
--------------------------------------------------------------------

  • [1] : <Info> - 01:44:25.360
    Port opened at 10/10/2018 1:44:25 PM
    --------------------------------------------------------------------
    [2] : <Tx> - 01:44:25.506
    -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> - 01:44:25.797
    -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> - 01:44:26.364
    -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> - 01:44:26.520
    -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> - 01:44:26.531
    -Type           : 0x04 (Event)
    -EventCode      : 0x00FF (HCI_LE_ExtEvent)
    -Data Length    : 0x2C (44) bytes(s)
     Event          : 0x0600 (1536) (GAP_DeviceInitDone)
     Status         : 0x00 (0) (SUCCESS)
     DevAddr        : 54:6C:0E:83:2F:F3
     DataPktLen     : 0x00FF (255)
     NumDataPkts    : 0x05 (5)
     IRK            : 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
     CSRK           : 7B:8D:4A:45:0E:33:5A:0B:CC:AB:E0:AF:81:06:F6:EB
    Dump(Rx):
    0000:04 FF 2C 00 06 00 F3 2F 83 0E 6C 54 FF 00 05 00 ..,..../..lT....
    0010:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7B ...............{
    0020:8D 4A 45 0E 33 5A 0B CC AB E0 AF 81 06 F6 EB    .JE.3Z.........
    --------------------------------------------------------------------
    [7] : <Tx> - 01:44:26.592
    -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> - 01:44:26.602
    -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> - 01:44:26.612
    -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> - 01:44:26.622
    -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> - 01:44:26.631
    -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> - 01:44:26.651
    -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> - 01:44:26.662
    -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> - 01:44:26.681
    -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> - 01:45:16.993
    -Type           : 0x01 (Command)
    -OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
    -Data Length    : 0x04 (4) byte(s)
     TxChannel      : 0x00 (0)
     TestData       : 0x0A (10)
     DtmPktPattern  : 0x01 (1) (Dtm_0x0F)
     TxPhyType      : 0x02 (2) (Phy 2 Mbps)
    Dump(Tx):
    0000:01 34 20 04 00 0A 01 02                         .4 .....
    --------------------------------------------------------------------
    [16] : <Error> - 01:45:17.020
    Could Not Convert All The Data In The Following Message
    Unable to read beyond the end of the stream.
    (Message Maybe Missing Data Bytes To Process)
    --------------------------------------------------------------------
    [17] : <Rx> - 01:45:17.014
    -Type           : 0x04 (Event)
    -EventCode      : 0x000E (HCI_CommandCompleteEvent)
    -Data Length    : 0x04 (4) bytes(s)
     Packets        : 0x01 (1)
     OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
     Status         : 0x00 (0) (SUCCESS)
    Dump(Rx):
    0000:04 0E 04 01 34 20 00                            ....4 .
    --------------------------------------------------------------------
    [18] : <Tx> - 01:45:27.970
    -Type           : 0x01 (Command)
    -OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
    -Data Length    : 0x04 (4) byte(s)
     TxChannel      : 0x00 (0)
     TestData       : 0x0A (10)
     DtmPktPattern  : 0x00 (0) (Dtm_PRBS9)
     TxPhyType      : 0x01 (1) (Phy 1 Mbps)
    Dump(Tx):
    0000:01 34 20 04 00 0A 00 01                         .4 .....
    --------------------------------------------------------------------
    [19] : <Error> - 01:45:27.990
    Could Not Convert All The Data In The Following Message
    Unable to read beyond the end of the stream.
    (Message Maybe Missing Data Bytes To Process)
    --------------------------------------------------------------------
    [20] : <Rx> - 01:45:27.985
    -Type           : 0x04 (Event)
    -EventCode      : 0x000E (HCI_CommandCompleteEvent)
    -Data Length    : 0x04 (4) bytes(s)
     Packets        : 0x01 (1)
     OpCode         : 0x2034 (HCI_LE_EnhancedTransmitterTest)
     Status         : 0x21 (33) (ROLE_CHANGE_NOT_ALLOWED)
    Dump(Rx):
    0000:04 0E 04 01 34 20 21                            ....4 !
    --------------------------------------------------------------------
    

  • Hi Albert,

    Did you use the C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\tools\ble5stack\btool\Run_BTool.bat file to start BTool?

    Can you double-check that you're running the BLE5-Stack version of BTool?
  • Hi Marie,

    i used the ""C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\tools\ble5stack\btool\btool.exe. and i have also tested it with the "C:\ti\simplelink_cc2640r2_sdk_2_20_00_49\tools\ble5stack\btool\Run_BTool.bat file to start BTool". but result is the same.

    yes i used the ble5stack version of Btool.

    could you please test this on you side ?
  • Hi Albert,

    The error message you're seeing is a bug in BTool. I will file a bug tivket to get this corrected.

    The HCI_LE_EnhancedTransmitterTest command should still work. Let me know if you see any errors with this.