-
Notifications
You must be signed in to change notification settings - Fork 26
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
radio packets are being dropped #144
Comments
If both micro:bits are transmitting on the same channel at the same time, then it's normal to get some collisions. |
but surely not like ethernet. the radio should listen that the airwaves are quiet, acquire the airwave, transmit, releasing the airwave on completion |
it's not just 2 microbit's communicating at the same time. I have this repo https://github.com/rhubarbdog/microbit-hands-up |
Right, but in your examples you can have two micro:bits transmitting data at exactly the same time and on the same channel, so the radio signals from each micro:bit can interfere with the other, and that can cause some data loss. There is a few things you can try to reduce packet loses, for example, you could request acknowledgements and retransmit if an ack has not been received. There is a Networking With The micro:bit online book that contains useful information on this area: https://microbit.nominetresearch.uk/networking-book-online-python/retransmissions/retransmissions/ |
but i still loose packets in my second example https://github.com/rhubarbdog/microbit-hands-up and there are no transmission problems |
also in the initial example |
microbit-hands-up fails because the length of str(id) is 35 but the message received is only 29 long. |
On the microbit's i have the string |
Thanks for the additional info @rhubarbdog. |
transmitting with program ... on one microbit
and receiving on another microbit with program
before i added the |
Should "length = 10" be included in both configs? |
Using 3 microbits, 2 transmitting and one counting packets, not all packets are being recieved by the counter.
yap.py
19682 received 318 droppedmessage.py
1822 received 178 droppedcounter.py.txt
message.py.txt
yap.py.txt
this may be related to bbcmicrobit/micropython#755
The text was updated successfully, but these errors were encountered: