-
Notifications
You must be signed in to change notification settings - Fork 286
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
cannot get predicatble communicaiton with radio at 2 MBits #755
Comments
Hi is it all micro python or blocks and micro python? |
Hi @segrovets I've tried this code with a micro:bit V1.3 and a V2.00 with the micro:bit Python Editor and works correctly: https://python.microbit.org/v/beta from microbit import *
import radio
radio.on()
radio.config(channel=0)
while True:
try:
received = radio.receive()
if received:
print(received)
except Exception as e:
print("Exception!\n{}".format(e))
if button_a.is_pressed():
radio.send("hello")
sleep(300)
sleep(200) Pressing button A in either micro:bits and the Could you try this and see if it works for you? |
@microbit-carlos
Thank you. |
Hi @segrovets, thanks for confirming the test code works. I've given a try to the same code using 2 MBit data rate and I can confirm V1 to V2 doesn't work:
If I then change the V1 channel from
Is this the same issue you were encountering? Can you still replicate these results? |
This is the same issue I was encountering
Likewise this is also reproducible on my system.
Thank you for your follow up. |
hi i've got 2 version one and 2 version two microbits and would like to reproduce this. |
Hello,
I'm writing a script that involves communication between micro:bit devices. I want to at a later time isolate which m:b's on the network receive certain communications. So I was experimenting with manually setting the channel configuration. (if there is a better way to do this, e.g via setting address please let me know)
My issue is that my micro:bits cannot communicate to each other if set to the same channel. To replicate:
I have 2 m:b V2 devices and one m:b V1.
All devices are connected to my pc via micro-usb cable.
I am using vs-code with the micro:bit python extension by MAKintact, seems to work great.
The issue (and my attempts at debugging):
set channel = 0
m:b V2 devices can NOT communicate to each other
m:b V1 device will receive messages from both V2's
When I set channel = 1 only on m:b V2-B
m:b V2-B can send/receive to/from m:b V2-A
m:b V2-B can receive from m:b V1, but not send to V1
m:b V2-A can send to both V1 and m:b V2-B, but cannot receive from V1
When I set both V2's one channel higher than the V1,
V1 can send to both V2's, but nobody can receive signal from V2 A or B
When they are one channel apart V1:ch6 V2Ach7 V2Bch8
A and b can send/receive
V1 can send to A but receives from no one
If i set V1 to ch7 and V2Ach6 and V2Bch8
V1 can send to both and no one else can communicate.
My only conclusion is that there is a miss-match in how these different micro:bits are interpreting channel information!
Appreciate your help :)
minimal_working_error.txt
The text was updated successfully, but these errors were encountered: