[riot-notifications] [RIOT-OS/RIOT] sys/inet/ieee802154/radio: fix wrong rssi conversions treewide (#15616)

José Alamos notifications at github.com
Wed Jan 13 15:00:22 CET 2021

@jia200x commented on this pull request.

> +            /* We calculate RSSI from LQI, since it's already 8-bit
+               saturated */

this comes from the datasheet:
When a packet is received a link quality indicator (LQI) is also generated and appended immediately after the last received octet. When using
IEEE 802.15.4 compliant frame this will be just after the MSDU since the FCS is not reported. In the case of a non-complient frame it will be
appended after the full frame. The LQI reported by hardware must be converted to IEEE 802.15.4 range by an 8-bit saturating multiplication by 4,
as shown in the code example for ED sampling. The LQI is only valid for frames equal to or longer than three octets. When receiving a frame the
RSSI (reported as negative dB) will be measured at three points during the reception. These three values will be sorted and the middle one selected
(median 3) for then to be remapped within the LQI range. The following figure illustrates the LQI measurement and how the data is arranged in
the DataRAM:

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/5c0a733c/attachment.htm>

More information about the notifications mailing list