Update IEEE 802.15.4 receive example to show packets decode as data packets with appropriate frame control fields and header - #601
Conversation
| let sequence_number = frame[2]; | ||
| let mut offset = 3; | ||
| writeln!(Console::writer(), "Sequence number: {sequence_number}").unwrap(); | ||
| let mut offset = 2; |
There was a problem hiding this comment.
jrvanwhy added support for if the sequence number is suppressed. I'll need to fix the matching tx file to match these changes. I'll do that after the 31st.
There was a problem hiding this comment.
Okay, if I understand correctly you'd rather implement that in this PR before merging it. I'll approve (I'm happy with it as-is), but wait for your signal before merging.
There was a problem hiding this comment.
I am planning to update the TX pull request to be in line with this PRs changes for comments, documentation, and code changes. I will then rerun the over the air tests and comment on the results on both PRs
If that doesn't work let me know.
| let sequence_number = frame[2]; | ||
| let mut offset = 3; | ||
| writeln!(Console::writer(), "Sequence number: {sequence_number}").unwrap(); | ||
| let mut offset = 2; |
There was a problem hiding this comment.
Okay, if I understand correctly you'd rather implement that in this PR before merging it. I'll approve (I'm happy with it as-is), but wait for your signal before merging.
Overview
This closes #599 by modifying the existing receive example to show packets decode as data packets with appropriate frame control fields and header. My design decision for decoded receive output to be one line per decoded piece of information where the description terminated with a colon is before the value, is to make it both readable and machine decodable. The disadvantage is that it is somewhat voluminous with 20 lines per packet. I tested it by having the program decode packets from the PR #598 version of
examples/ieee802154_tx_raw.rs. An example for sequence numbers 92 and 93 is shown below.From the TX (
examples/ieee802154_tx_raw.rs) output:From the RX (
examples/ieee802154_rx_raw.rs.) output:Analyzer capture was used for confirmation of over the air packets. Specifically sequence number 93 is shown below (the error is from the analyzer decoding as 6LoWPAN).
AI Usage
I used OpenAI Codex for both code generation and evaluation. I reviewed all AI generated code and compared the received decoded output from the program with the decoded packets on the Wireless Protocol Suite analyzer software.
Testing
make testpassed locally