Page 2 of 2

Re: Sending control message failed, Windows 10

Posted: Thu Feb 22, 2018 8:12 am
by arnaud
This is most likely a problem with access right. You can try to run your script with sudo, if it works with sudo there is access right problem.

You can create a udev rule file to solve the problem: https://github.com/bitcraze/crazyflie-l ... ermissions
After the udev rules file has been created, remove and re-insert the radio and you should be able to use it without sudo.

Re: Sending control message failed, Windows 10

Posted: Sat Feb 24, 2018 2:48 pm
by MBurdett
Hi,

I have just tried running a basic script using a sudo command and the same thing happens. I am not sure what to try next.

Is there anything different I need to do to get this working with a raspberry pi at all?

Re: Sending control message failed, Windows 10

Posted: Sun Feb 25, 2018 12:01 pm
by arnaud
Can you maybe describe a bit more what does not work. Ie. what are you running, what is the intended result and what is your observed result?

Re: Sending control message failed, Windows 10

Posted: Mon Feb 26, 2018 9:56 pm
by MBurdett
Certainly, the code I'm running is partly the test code you suggested. I then set the power output and tell the radio to produce a continuous wave:

Code: Select all

from crazyradio import Crazyradio
cr = Crazyradio()
cr.send_packet([0xff])
POWER_SETTING = 2
cr.set_power(POWER_SETTING)
cr.set_cont_carrier(True)
The error I am receiving is this:

Traceback (most recent call last):
File "piradiotest.py", line 3, in <module>
cr = Crazyradio()
File "/home/pi/crazyradio-firmware/lib/crazyradio.py", line 123, in __init__
raise Exception("Cannot find a Crazyradio Dongle")
Exception: Cannot find a Crazyradio Dongle
When I run this on Windows is runs fine, but this error keeps occurring on my Pi.

Re: Sending control message failed, Windows 10

Posted: Wed Feb 28, 2018 3:28 pm
by arnaud
Do you see the radio when typing "lsusb" and does the radio appear in "dmesg" just after inserting it in the Raspberry pi.

What happen if you are running this script with sudo?

Re: Sending control message failed, Windows 10

Posted: Sat Mar 03, 2018 9:58 pm
by MBurdett
Hi,

It is not listed when I run lsusb. The message I posted previously happens with and without the sudo command.

Re: Sending control message failed, Windows 10

Posted: Sat Mar 03, 2018 10:28 pm
by MBurdett
:mrgreen:

I have solved this! I had to change to use a USB power adapter to connect the radio to my Pi. I switched this back afterwards and I noticed that a Nordic Device was now showing in lsusb. I ran my code with sudo and this works perfectly the same as I had it on a Windows 10 machine. Thank you for your help!

:D :D

Re: Sending control message failed, Windows 10

Posted: Mon Mar 05, 2018 12:07 pm
by arnaud
Great! Glad that the problem is solved :).