This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Entering DTM mode to test continuous TX @ fixed frequency for factory testing

Hi

We are trying to get the DTM mode working for the NRF52 2nd BLE for testing BLE TX power and RSSI at the factory.

(1)HW setup is shown

(2Procedure
We have referred to the link below and the example.py scripts. Below are the steps we have followed before we ran the python scripts
(3)BT module was flashed with the DTM firmware “2020_05_08_BLSD_DTM_CT40_V2.hex” along with serial# and MAC addresses.
Please let us know if we are missing any other step/config to put the device into DTM mode as we are reusing the hex files from another project.
What would be the SDK version that must be used for DTM tests in case we don't have the SDK which was originally used to generate the hex files?
(4)We have run the example.py  script on the PC with the DUT com port field updated to COM41.
We did not observe any UART transactions from PC when scripts were run. HW connections for the COM41 port were verified physically by looping TX to RX and it works fine.
(a)Can you please share the example code ( python script ) used in the factory to test constant_carrier-continuous TX power measurement?
(b)What is the value to be updated in ‘'GoldenSerialPortName'’ in the example.py code snippet shared below

Best Regards

Mahesh HM

Parents
  • Hi

    I tried 'direct_test_mode_pca10056.hex' in the path suggested by you from the nRF5_SDK_15.0.0.

    I think the UART pins are not correctly configured in this Hex file as I see no activity on the UART TX line (PC->nRF)

    P1.04 Pin-H1 is the UART TX (out direction)

    P1.07 Pin-G1 is the UART RX (in direction)

    From the main.c

    I can see that we need to configure the UART TX and RX. can you please share an example / hex file with about pins configured as TX and RX?

    static void uart_init(void)
    {
    uint32_t err_code;
    const app_uart_comm_params_t comm_params =
    {
    RX_PIN_NUMBER,
    TX_PIN_NUMBER,
    RTS_PIN_NUMBER,
    CTS_PIN_NUMBER,
    APP_UART_FLOW_CONTROL_DISABLED,
    false,
    DTM_BITRATE
    };

Reply
  • Hi

    I tried 'direct_test_mode_pca10056.hex' in the path suggested by you from the nRF5_SDK_15.0.0.

    I think the UART pins are not correctly configured in this Hex file as I see no activity on the UART TX line (PC->nRF)

    P1.04 Pin-H1 is the UART TX (out direction)

    P1.07 Pin-G1 is the UART RX (in direction)

    From the main.c

    I can see that we need to configure the UART TX and RX. can you please share an example / hex file with about pins configured as TX and RX?

    static void uart_init(void)
    {
    uint32_t err_code;
    const app_uart_comm_params_t comm_params =
    {
    RX_PIN_NUMBER,
    TX_PIN_NUMBER,
    RTS_PIN_NUMBER,
    CTS_PIN_NUMBER,
    APP_UART_FLOW_CONTROL_DISABLED,
    false,
    DTM_BITRATE
    };

Children
Related