[riot-users] Getting CRC OK from radio

Thomas Eichinger thomas at riot-os.org
Sat Oct 29 00:07:08 CEST 2016


Hi Robert,

First, to read and use the CRC_OK bit we will have to generate it.
Apparently that slipped through and we didn't notice so far, anyhow
I opened PR #6015 [1] to fix that. Thank you for leading us in that
direction!

Regarding a `crc_ok` bitfield I don't have a strong opinion.

Best, Thomas

[1] https://github.com/RIOT-OS/RIOT/pull/6015

On 28 Oct 2016, at 4:27 PDT(-0700), Robert Hartung wrote:

> Hey everyone,
>
> I try to get CRC information for the received packet with the CC2420.
> When searching for CRC_OK there isn't really a way in RIOT.
>
> I've looked at the *cc2420_rx* method and found that rssi is already
> extracted. The same can be applied easily for the CRC of the last packet.
>
> I've also seen that there is the *info argument which is nothing else
> than *netdev2_radio_rx_info* from drivers/include/net/netdev2.h. Would
> it makes sense to add a "unsigned int crc_ok : 1" bit field to that
> struct to indcate the CRC status or should it be implemented as a NETOPT?
>
> Best Regards,
> Robert
>
> -- 
> Robert Hartung, M.Sc.
>
> Technische Universität Braunschweig
> Institut für Betriebssysteme und Rechnerverbund
> Mühlenpfordtstr. 23, Raum 115
> 38106 Braunschweig
>
> Fon: +49 (531) 391 - 3264
> Fax: +49 (531) 391 - 5936
> E-Mail: hartung at ibr.cs.tu-bs.de
>
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users


More information about the users mailing list