[riot-users] Getting CRC OK from radio
thomas at riot-os.org
Mon Oct 31 16:25:39 CET 2016
You are right, `AUTOCRC` is on after reset, so `CRC_OK` gets appended to
the frame but is currently not checked.
I understand that corrupted packets with CRC errors are interesting if
you are doing research, in general I am not convinced handing those on
to upper layers though. Would it be sufficient for you to include CRC
errors in netstats?
On 31 Oct 2016, at 0:51 PDT(-0700), Robert Hartung wrote:
> Dear Thomas,
> the CRC was generated already, also I need it for an evaluation and I
> interested in packets with wrong CRC, so in my opinion the packet
> be forwarded to the user, but with flag CRC_OK=0 set.
> Best Regards,
> On 29.10.2016 00:07, Thomas Eichinger wrote:
>> 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  to fix that. Thank you for leading us in that
>> Regarding a `crc_ok` bitfield I don't have a strong opinion.
>> Best, Thomas
>>  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
>>> 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
>>> I've also seen that there is the *info argument which is nothing
>>> than *netdev2_radio_rx_info* from drivers/include/net/netdev2.h.
>>> 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
>>> Best Regards,
>>> 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
>> users mailing list
>> users at riot-os.org
> 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
More information about the users