BLE range testing with two nRF5340 DKs: example code for PHY and TX power variation?

Hi everyone,

I'm currently working on a BLE project using two nRF5340 DKs and would like to perform range tests to evaluate the maximum connection distance under different conditions.

My main objectives are:

  • Test BLE connection range using different PHYs (1M, 2M, Coded S=2, Coded S=8).

  • Be able to change the TX power (e.g., from -20 dBm to +3 dBm).

  • If possible, display real-time RSSI and bitrate or throughput from the central device during the connection.

I've tried doing this with different examples from the SDK (such as central_uart / peripheral_uart and hci_rpmsg / hci_pwr_ctrl), but I haven't been able to achieve the setup I need.

If anyone has any example code that does something similar or any tips or suggestions on how to approach this properly,

I would really appreciate the help!

Thanks in advance!

Related