CC2652P7: Test the TX Power of the CC2652 using the diag command of OpenThread

Part Number: CC2652P7
Other Parts Discussed in Thread: CC1352P7, SYSCONFIG

Tool/software:

I used the same SDK (cc13xx_cc26xx SDK 7.40.00.77) to compile the CC2674 firmware and CC2652 firmware. With the same instrument configuration, I sent the same diag commands for testing TX power (diag start, diag channel 15, diag power 20, diag repeat 100 100). Both the CC2652 and CC2674 chips returned correct responses to these diag commands; however, regarding the test results: the CC2674 signal was detectable on the instrument, while no signal from the CC2652 was detected at all.

  • Hi zhimin,

    I apologize for the delay.  I had no issues with receiving diag messages on my LAUNCHXL-CC1352P7-4 device using a default RCP image.  Please ensure that you are using the LP_CC1352P7_4 parameter for your ot-ti build for the CC2652P7 device as they are binary compatible.

    Please be aware that the LP-CC1352P7-4 examples support a maximum 2.4 GHz output power of +10 dBm (the -1 is meant for High PA on the Sub-1 GHz frequency bands).  As such, +20 dBm is not supported by default. I've supported modifying the -4 examples for +20 dBm previously for other stacks which you can reference for your requirements:

    https://e2e.ti.com/f/1/t/1274602 
    https://e2e.ti.com/f/1/t/1268628 

    As a customized ti_radio_config.c file is required before rebuilding:

    1. Build the target project via ./script/build <BOARD>
    2. Open ot-ti/src/CMakeLists.txt
      1. Comment out the ti_devices_config.h file listed in the SYSCONFIG_OUTPUT_C structure
        1. if(TI_SIMPLELINK_KERNEL STREQUAL "freertos")
              set(SYSCONFIG_OUTPUT_C
                  ${CMAKE_CURRENT_BINARY_DIR}/syscfg/ti_devices_config.c
          #        ${CMAKE_CURRENT_BINARY_DIR}/syscfg/ti_devices_config.h
                  ${CMAKE_CURRENT_BINARY_DIR}/syscfg/ti_drivers_config.c
                  ${CMAKE_CURRENT_BINARY_DIR}/syscfg/ti_drivers_config.h

      2. Comment out the sysconfig custom command as follows:
        1. #add_custom_command(
          #    OUTPUT
          #        ${SYSCONFIG_OUTPUT_C}
          #        ${SYSCONFIG_OUTPUT_OTHER}
          #    COMMAND
          #        ${syscfg_cmd}
          #    DEPENDS
          #        ${sysconfig_file} 
          #    VERBATIM
          #)

    3. Open ti_radio_config.c in the project's build directory: ot-ti/build/src/syscfg/ti_radio_config.c
      1. Modify the tx power tables as demonstrated in the referenced E2E threads
    4. Build the target project via ./script/build <BOARD>

    Regards,
    Ryan