Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Acknowledge, Beacons, Data and MAC commands #21

Merged
merged 14 commits into from
Mar 29, 2019

Conversation

blueluna
Copy link
Collaborator

This PR adds support for encoding and decoding Beacons and MAC commands. This is my first time working with 802.15.4 so I might not understand all the concepts. But here goes.

There probably are opportunities for better naming in some part of the code (for example FrameContent?).

Testing done.
I have decoded Acknowledge, Beacon, Command::AssociationRequest, Command::AssociationResponse, Command::BeaconRequest, Command::DataRequest, Data from a coordinator or other devices in a PAN. I have encoded Command::AssociationRequest, Command::BeaconRequest, Command::DataRequest which has been understood (I believe) by a coordinator.

Copy link
Contributor

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @blueluna! I don't have the standard, and I don't have any hardware running other implementations of the protocol, so my ability to review and test this is limited. Still, I've looked over the code and left some comments.

Let me know what you think about the comments. Once they have been resolved, I'm happy to merge.

src/mac/beacon.rs Outdated Show resolved Hide resolved
src/mac/beacon.rs Outdated Show resolved Hide resolved
src/mac/command.rs Outdated Show resolved Hide resolved
src/mac/command.rs Outdated Show resolved Hide resolved
src/mac/mod.rs Outdated Show resolved Hide resolved
src/mac/mod.rs Show resolved Hide resolved
hannobraun and others added 2 commits March 28, 2019 20:53
 - Added more test cases for encoding and decoding Beacon
 - Fixed documentation for hopping sequence duplication
@hannobraun
Copy link
Contributor

Okay, this looks good to merge. Thank you again, @blueluna!

@hannobraun hannobraun merged commit 346f9dc into rust-iot:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants