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: DTM Test with custom board

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK

Hello everyone.

I have a custom board based on CC2640R2F and I want performing some test with HCI commands. I have the following database commands /cfs-file/__key/communityserver-discussions-components-files/538/Tester_5F00_HCILib_5F00_blestack_5F00_3_5F00_x.xml configured in HCITester software.

I sent the HCI_LE_Transmitter_Test command but the DUT returns to me a value different than displayed in CC2640: PTM CC2640 thread. In that thread the value should be 04 0E 04 01 1E 20 00 but my DUT returns 04 0E 04 01 1E 20 21.

The status code 0x21 means "Role Change Not Allowed". Why do I receive that status?

SDK version : simplelink_cc2640r2_sdk_5_30_00_03
Sample used : host_test

My trace log :

Thanks in advanced.

  • Hey Mariano,

    When executing the HCI_LE_Transmitter_Test command, the Role Change Not Allowed status is triggered by the link layer if the link layer is not in the idle state. What this indicates is that the link layer has not been reset before performing the transmitter test. Can you try executing this command after performing a reset of the device? Make sure the device is not in an ongoing connection, advertising, or scanning (i.e. keep it in idle state).

    To clarify, are you using the BLE-stack or the BLE5-stack?

  • I am using BLE-stack.

    You are right. After executing the HCI_LE_Test_End the previous command triggered success status.