-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ieee802154/hal: adapt to latest changes of #13943 #16946
Conversation
needs a rebase 😉 |
23789e9
to
0f19998
Compare
done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but Murdock is not happy
ping? |
addressed all comments |
Murdock still has some comments |
fixed it. 43e40f0 was wrong |
Murdock is still not happy |
ping @jia200x |
it should work now |
oh... I totally forgot the OpenWSN functions :/... I need to update that first |
@fjmolinas I updated the HAL port of OpenWSN. Could you please check if it still works as expected? |
looks like |
yup... luckily only an arrange of functions :) |
a40c888
to
01dad92
Compare
@benpicco I adapted
Any idea? |
This is what fails. Looks like the HAL does not send packets with an empty payload. The RX test appears to fail because the address does not match anymore.
Unfortunately the test is not run by CI because Murdock does not support IPv6, so it was not discovered earlier. This should be fixed with this patch
Then specify the expected MAC address with |
Please squash, the test should be fixed now. |
Hmmm the HAL documentation states that the frame is a valid PSDU (full MAC frame). I'm not sure if an empty PSDU is a valid frame, but what I find strange is that the implementation should have (accidentally) handled that. |
squashed! |
01dad92
to
874a13e
Compare
awesome! thank you for the review! |
Contribution description
This PR implements the latest proposals of the Radio HAL described in #13943 (comment).
request_op
andconfirm_op
mechanism in order to simplify the TX logicxxx_transmit
are not needed anymoreThis changes make drivers easier to implemented and provide extra guarantees to both the driver and upper layer. I tested this one with the ongoing port of OpenDSME and it seems to be compatible.
Testing procedure
A stress ping test would be optimal. Also, make sure
tests/ieee802154_hal
work as expected.Here are some stress ping results:
cc2538_rf:
nrf802154:
Issues/PRs references
#13943
Although on-going Radio HAL PRs (e.g #16535 or #13943 would require a minor API change, this change should be straightforward.
Depends on #16821