[riot-notifications] [RIOT-OS/RIOT] pkg/openwsn: re-integrate the network stack as a package (#13824)

Francisco notifications at github.com
Thu May 28 09:49:27 CEST 2020


@PeterKietzmann I checked the `wdDataDuration`, before I had stated that it was due to the CRC, I removed that statement in the doc because I was not sure about it anymore. I added a print to verify this, and everytime I  get the `wdDataDuration` error it is indeed because of an invalid CRC where the received packet gets discarded on the RIOT side, see below.

<details><summary> <b> wdDataDuration overflows  do to invalid CRC </b></summary>

```
09:36:02 [JRC:VERBOSE] New node: 2bc:f665:106b:1114. Derive new OSCORE context from master secret.
09:36:02 [JRC:VERBOSE] received JRC join request
09:36:04 [ParserIEC:INFO] 5486 [CJOIN] node joined
09:36:20 [ParserIEC:INFO] 5486 [SIXTOP] sixtop return code 0 at sixtop state 7
09:36:38 [JRC:VERBOSE] New node: 36bd:fd65:106b:1114. Derive new OSCORE context from master secret.
09:36:38 [JRC:VERBOSE] received JRC join request
09:36:40 [ParserIEC:INFO] 6887 [CJOIN] node joined
09:36:49 [RPL:INFO] received RPL DAO from bbbb:0:0:0:2bc:f665:106b:1114
                - parents:
                   bbbb:0:0:0:328f:f765:106b:1114
                - children:
09:36:52 [ParserIEC:INFO] 6887 [SIXTOP] sixtop return code 0 at sixtop state 7
09:36:56 [ParserIEC:INFO] 6887 [FRAG] fragmenting a big packet, original size 89, number of fragments 2
09:36:59 [ParserIEC:INFO] 5486 [FRAG] fast-forwarded all fragments with tag 722 (total size: 89)
09:37:01 [RPL:INFO] received RPL DAO from bbbb:0:0:0:36bd:fd65:106b:1114
                - parents:
                   bbbb:0:0:0:2bc:f665:106b:1114
                - children:
                   bbbb:0:0:0:328f:f765:106b:1114
09:37:05 [ParserIEC:ERROR] 6887 [IEEE802154E] large timeCorr.: -6 ticks (code loc. 0)
09:37:45 [ParserIEC:INFO] 5486 [FRAG] fragmenting a big packet, original size 89, number of fragments 2
09:37:49 [RPL:INFO] received RPL DAO from bbbb:0:0:0:2bc:f665:106b:1114
                - parents:
                   bbbb:0:0:0:328f:f765:106b:1114
                - children:
                   bbbb:0:0:0:36bd:fd65:106b:1114
09:38:23 [ParserIEC:INFO] 5486 [FRAG] fragmenting a big packet, original size 89, number of fragments 2
09:38:26 [RPL:INFO] received RPL DAO from bbbb:0:0:0:2bc:f665:106b:1114
                - parents:
                   bbbb:0:0:0:328f:f765:106b:1114
                - children:
                   bbbb:0:0:0:36bd:fd65:106b:1114
09:39:40 [ParserIEC:ERROR] 64b5 [RADIO] crc failed on rx packet while at state 19 in slotOffset 0
09:39:40 [ParserIEC:ERROR] 64b5 [IEEE802154E] wdDataDuration overflows while at state 19 in slotOffset 0
09:39:50 [RPL:INFO] received RPL DAO from bbbb:0:0:0:36bd:fd65:106b:1114
                - parents:
                   bbbb:0:0:0:2bc:f665:106b:1114
                - children:
09:39:53 [ParserIEC:INFO] 5486 [FRAG] fragmenting a big packet, original size 89, number of fragments 2
09:39:57 [RPL:INFO] received RPL DAO from bbbb:0:0:0:2bc:f665:106b:1114
                - parents:
                   bbbb:0:0:0:328f:f765:106b:1114
                - children:
                   bbbb:0:0:0:36bd:fd65:106b:1114
09:41:40 [ParserIEC:INFO] 5486 [FRAG] fragmenting a big packet, original size 89, number of fragments 2
09:41:43 [ParserIEC:ERROR] 6887 [RADIO] crc failed on rx packet while at state 19 in slotOffset 0
09:41:43 [ParserIEC:ERROR] 6887 [IEEE802154E] wdDataDuration overflows while at state 19 in slotOffset 0
09:41:44 [RPL:INFO] received RPL DAO from bbbb:0:0:0:2bc:f665:106b:1114
                - parents:
                   bbbb:0:0:0:328f:f765:106b:1114
                - children:
                   bbbb:0:0:0:36bd:fd65:106b:1114
09:41:44 [ParserIEC:INFO] 5486 [FRAG] fragmenting a big packet, original size 89, number of fragments 2
09:41:48 [RPL:INFO] received RPL DAO from bbbb:0:0:0:2bc:f665:106b:1114
                - parents:
                   bbbb:0:0:0:328f:f765:106b:1114
                - children:
                   bbbb:0:0:0:36bd:fd65:106b:1114
09:42:20 [ParserIEC:ERROR] 6887 [RADIO] crc failed on rx packet while at state 19 in slotOffset 0
09:42:20 [ParserIEC:ERROR] 6887 [IEEE802154E] wdDataDuration overflows while at state 19 in slotOffset 0
```
</details>

So if we look at https://openwsn.atlassian.net/wiki/spaces/OW/pages/688251/State+Machine, this error occurs when the radio starts receving (receives the SFD) and therefore triggers a `NETDEV_RX_STARTED`. but then no `NETDEV_TX_STARTED` shows up. This will be resolved when I go back to #13878. For now I can add a more detailed explanation of this error, but it doesn't affect the stack operation and is only visible in openvisualizer. Does that seem ok for you?

-- 
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/13824#issuecomment-635176079
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200528/ce74c96b/attachment-0001.htm>


More information about the notifications mailing list