Page 1 of 1

[SOLVED]Many crazyfies and two radios

Posted: Tue Apr 12, 2022 5:01 am
by kato
Hi, Bitcraze
I'm Japanese college student.
Now I use Crazyswarm and control ten crazyflies via one crazyradio dongle. And it is unstable.
So I want to use two radio dongle with one Desktop PC. I'm about to set up radio dongle address, [radio://0/80/2M/...] and [radio://1/90/2M/...].

But I cant set second radio address:[radio://1/90/2M/...].
Please tell me the way to set second radio address.

thanks in advance.

Re: Many crazyfies and two radios

Posted: Tue Apr 12, 2022 6:50 am
by kristoffer
Hi!

Changing channel takes some time for the radio so the best setup is to use one channel per radio dongle and different addresses for the Crazyflies.
Do not use the same channel on both radios as it leads to packet loss.

For instance do something like this:

Radio 1:
radio://0/50/2M/E7E7E7E701
radio://0/50/2M/E7E7E7E702
radio://0/50/2M/E7E7E7E703
...

Radio 2:
radio://0/100/2M/E7E7E7E701
radio://0/100/2M/E7E7E7E702
radio://0/100/2M/E7E7E7E703
...

Re: Many crazyfies and two radios

Posted: Tue Apr 12, 2022 8:00 am
by kato
Thank you for your early reply

I did it. but I can't figure out how to edit allcrazyflies.yaml. id is not use same time.
So I did this

Radio 1:
radio://0/50/2M/E7E7E7E701
radio://0/50/2M/E7E7E7E702
...
radio://0/50/2M/E7E7E7E705

Radio 2:
radio://0/100/2M/E7E7E7E706
radio://0/100/2M/E7E7E7E707
..
radio://0/100/2M/E7E7E7E70A.
and use id from 1 to 10. It worked.

But I’m not sure if two radios communicate with each drone.

thanks!!

Re: Many crazyfies and two radios

Posted: Tue Apr 12, 2022 12:09 pm
by kimberly
Hi! Let me just quickly pitch in here, you do have to still put the first number of the URI to 0 for crazyradio number 1 and to 1 for crazyradio number 2, just as you mentioned before. It was just a typo of kristoffer, as now all the crazyflies are only connecting to 1 radio on different channels.

So like this
Radio 1:
radio://0/50/2M/E7E7E7E701
radio://0/50/2M/E7E7E7E702
...
radio://0/50/2M/E7E7E7E705

Radio 2:
radio://1/100/2M/E7E7E7E706
radio://1/100/2M/E7E7E7E707
..
radio://1/100/2M/E7E7E7E70A.

make sure to read through the crazyswarm doc closely and use their support channels on the required support channels, see the readme of https://github.com/USC-ACTLab/crazyswarm

Re: Many crazyfies and two radios

Posted: Fri Apr 15, 2022 4:13 am
by kato
Thank you for your reply.

I'll give it a try !!