Dongle communication error when running python scripts

Firmware/software/electronics/mechanics
Post Reply
animan
Beginner
Posts: 6
Joined: Sun May 04, 2014 7:28 pm

Dongle communication error when running python scripts

Post by animan »

Hello,

I am new to crazyflie programming, trying to run some python scripts to control the quadcopter.
When I run the ramp.py example I always get the following:

Scanning interfaces for Crazyflies...
Crazyflies found:
radio: //0/7/2M
Connecting to radio://0/7/2M
Disconnected from radio://0/7/2M
Connection to radio://0/7/2M lost: Dongle communication error (ackStatus==None)

I have tried other python scripts but invariably get communication error.
Connecting to the crazyflie via "Crazyflie PC client" works fine and I am able to fly it around. So this problem seems to happen only while running python scripts.

I am using the Bitcraze VM 0.5 on a Windows 8.1. I have updated the crazyflie projects directory using update_all repos script.
Any help will be greatly appreciated.
Thanks!
animan
Beginner
Posts: 6
Joined: Sun May 04, 2014 7:28 pm

Re: Dongle communication error when running python scripts

Post by animan »

Is anyone else using else using python scripts to control the crazyflie?
If it is working for you, can you please provide some guidance on what might the problem in my case.
Thanks.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Dongle communication error when running python scripts

Post by marcus »

Hi,

This is a bug that has been seen from time to time (issue here). If you remove the dongle from the computer and insert it again this error should be fixed.
animan
Beginner
Posts: 6
Joined: Sun May 04, 2014 7:28 pm

Re: Dongle communication error when running python scripts

Post by animan »

Hi,

Thanks for the information. I have seen this issue on clean exits also... seems to work the first time, then requires several tries, unplugging dongle etc to work again.
Do you know when the bug is expected to be fixed?
Thanks.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Dongle communication error when running python scripts

Post by marcus »

Do you only see the issue when you are running the ramp example (or other examples) or is it also when running the normal cf-client? We haven't prioritized this one since it hasn't been see under normal circumstances, but we might have to change that. Currently there's no estimated date on fixing it.
animan
Beginner
Posts: 6
Joined: Sun May 04, 2014 7:28 pm

Re: Dongle communication error when running python scripts

Post by animan »

marcus wrote:Do you only see the issue when you are running the ramp example (or other examples) or is it also when running the normal cf-client? We haven't prioritized this one since it hasn't been see under normal circumstances, but we might have to change that. Currently there's no estimated date on fixing it.
Hi, I don't have any issues with the crazy flie client application, I can open close connection multiple times without removing the dongle. I see the issue only with the ramp application and while running other python scripts I am experimenting with.
Thanks.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Dongle communication error when running python scripts

Post by marcus »

animan wrote:
marcus wrote:Do you only see the issue when you are running the ramp example (or other examples) or is it also when running the normal cf-client? We haven't prioritized this one since it hasn't been see under normal circumstances, but we might have to change that. Currently there's no estimated date on fixing it.
Hi, I don't have any issues with the crazy flie client application, I can open close connection multiple times without removing the dongle. I see the issue only with the ramp application and while running other python scripts I am experimenting with.
Thanks.
I think this is an error in the example scripts. They don't seem to wait long enough for the dongle to close. I've added an issue for the examples here.
Post Reply