-
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
WIP: tests/ieee802154_hal: extend radio hal test #15761
Conversation
With the following constellation the radios crash for unknown reasons: Two remote-revb, one as a sender and the other one as a receiver in reply mode.
If I replace the sender with a nrf52840dk and call spam again ("spam 5 100 0"), the receiver prints sometimes the following:
Using two nrf52840dk over IoT-Lab the receiver will crash with the following output, the sender however can catch one packet if printing is disabled at the receiver
|
Awesome!!
This could be either the fact that the Radio HAL API is not being respected by the Radio HAL test or that something in the driver is wrong (for both radios). We haven't tried spam testing without sending ACK's in the middle, so this puts the radio in lots of stress. I will investigate |
tests/ieee802154_hal/Makefile
Outdated
@@ -1,5 +1,6 @@ | |||
include ../Makefile.tests_common | |||
|
|||
TERMPROG := socat |
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.
Do we need to enforce socat here?
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.
Yes, because when running the test over Release-Specs the output, without socat, will be:
['> ', '[PEXPECT_PROMPT+']
Exception
I guess it is something related to RIOT Ctrl
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.
I will try to reproduce the issue here
9d06e9b
to
d482d1b
Compare
Closed in favor of #16591 |
Contribution description
This PR adds multiple functions for the IEEE 802.15.4
Testing procedure
There will be a automated test in riotctrl.
For manual testing you need two boards and flash it with tests/ieee802154_hal
Usage of the function spam:
Call spam on board with the parameters
spam <address_board2> <length_of_the_payload> <number_of_packets>
If you call spam with the parameters spam <address_board2> 5 3 1
The device will send a packet to device2 every 1 ms with a payload of 3 Chars in total 5 packets will be send.
You can set device2 in reply mode, means it will sends every packet back he receives, by calling the function reply. Just make sure to be easy on the delay otherwise the radio won't be able to handle this. You may disable the printing by calling the function enable_prints.
Issues/PRs references
None