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!

Parents Reply
  • Also, I’ve been using the throughput example you mentioned, and I actually added some logic to print the RSSI in real time and detect disconnections. It works fine most of the time, though once the connection is lost, the RSSI isn't updated anymore — which is expected, and not a big issue for now.

    The main problem I’m facing is that the connection drops very quickly, even when I'm using Coded PHY S=8. In fact, when I move the boards just around 10 meters apart, they already disconnect, which I didn’t expect given that S=8 should provide a much longer range.

    I'm not sure if I'm missing something — maybe a TX power setting, or antenna placement, or something else in the project configuration?

    Any ideas or advice would be very appreciated.

Children
No Data
Related