Hello, I'm working with nRF5340 DK with Zigbee communication. I'm getting RSSI values between 0-255, but I'm more interested in the value in dBm, so I would like to convert the value to dBm. Could you tell me how I can do that?
Best regards.
Hello, I'm working with nRF5340 DK with Zigbee communication. I'm getting RSSI values between 0-255, but I'm more interested in the value in dBm, so I would like to convert the value to dBm. Could you tell me how I can do that?
Best regards.
Hi,
What are you using to get the RSSI value?
Best regards,
Marte
Hi,
I am using zb_zdo_get_diag_data()
Best regards,
Marwa
Hi Marwa,
I tried to use this myself, but was unable to figure out how to get RSSI as dBm. I have asked our developers for clarification regarding this, so I will come back to you when I hear from them.
Best regards,
Marte
Hi Marwa,
You can use the function nrf_802154_dbm_from_energy_level_calculate() to convert energy measured in 0-255 to dBm:
zb_uint8_t lqi, rssi; int8_t rssi_dbm; zb_zdo_get_diag_data(0x0000, &lqi, &rssi); rssi_dbm = nrf_802154_dbm_from_energy_level_calculate(rssi);
Best regards,
Marte
Hello, is it accurate that as the distance between the DK increases, the more negative value in dBm it will be?