[riot-notifications] [RIOT-OS/RIOT] ieee802154: add helpers for RSSI and dBm conversion (#15629)

Francisco notifications at github.com
Wed Jan 13 08:52:09 CET 2021


> well... the original nrf802154 driver (`nrf802154.c`) has a different implementation of RSSI that's not compliant with the datasheet:
> 
> ```c
>             /* Calculate RSSI by subtracting the offset from the datasheet.
>              * Intentionally using a different calculation than the one from
>              * figure 122 of the v1.1 product specification. This appears to
>              * match real world performance better */
>             radio_info->rssi = (int16_t)hwlqi + ED_RSSIOFFS;
> ```
> 
> The datasheet says:
> 
> ```
> PRF[dBm] = ED_RSSIOFFS + ED_RSSISCALE x VALHARDWARE
> ```
> 
> I really think we should use the one from the datasheet

But isn't it weird that in @benpicco test results we get rssi's of `40dbm` and then `-52dbm`, that seems weird.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15629#issuecomment-759271712
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/1f335a47/attachment.htm>


More information about the notifications mailing list