[riot-users] Getting CRC OK from radio

Robert Hartung hartung at ibr.cs.tu-bs.de
Mon Oct 31 08:51:18 CET 2016


Dear Thomas,

the CRC was generated already, also I need it for an evaluation and I am
interested in packets with wrong CRC, so in my opinion the packet should
be forwarded to the user, but with flag CRC_OK=0 set.

Best Regards,
Robert

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 [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
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users
> 

-- 
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


More information about the users mailing list