[SOLVED] Radio sig not found on software

Post here to get support
Post Reply
daigo
Beginner
Posts: 6
Joined: Thu Oct 24, 2013 1:46 am

[SOLVED] Radio sig not found on software

Post by daigo » Thu Oct 24, 2013 1:55 am

Hi,

I wrote the following email to bitcraze support, and they suggested to post here as well for they do not have an immediate answer. So here we go:
Hello,

I am writing this email because my crazyflie radio signal is not found on cfclient, and I am wondering if this is a hardware defect on either crazyflie or crazyradio.

Here is what I did (I have not soldered the motors as I could not confirm the board is working):

I went to this page, and follow the instruction in "Check the electronics" section:
http://wiki.bitcraze.se/projects:crazyf ... s:assembly

I first connected crazyflie to my computer with a micro USB cable. This seemed to have gone well: It powered up and blinked 5 times with the green LED, and after that the green LED was fully on and the red LED kept blinking.

Then I attached the antenna to the crazyradio, and connected to my computer via USB (USB 2) port. The green and red LEDs on the crazyradio lit for a second and both went off.

Then I started cfclient software. The software seems to be working normally. I clicked connect button, expecting the radio from my crazyflie appears. But I only see "debug://0/0 - Debugdriver for UI testing".

The red LED on crazyflie kept on blinking while the blue and green LEDs are lit through out this session.

I also tried to click Scan button but no improvement.

I don't think there is radio interference when I tried this, and the crazyflie and crazyradio are very close to each other.

So, I am wondering if this is a hardware issue either on crazyflie or crazyradio.

Just to note that the above session was done on Mac OSX 10.7 (Lion) with USB 2.0 ports. I followed this blog to make cfclient work on Mac (http://crazyflie.blogspot.com/) I also tried the headless client on Raspberry Pi (using the custom SD-card image downloaded from here: http://wiki.bitcraze.se/projects:crazyf ... aspberrypi ). I could not make it work on Raspberry Pi either (the red LED on the crazyflie did not stop blinking. lsusb lists crazyradio.) I also tried with xubuntu 12.04 on VM: The same symptom, and not working. I do not have a Windows machine.

Can you help me?

Here is the console ouput from the session with Mac:

Code: Select all

cfclient-2013.4.2$ python bin/cfclient 
Info: Using config path:  /Users/daigotanaka/Projects/bitcraze/cfclient-2013.4.2/lib/../conf
Info: sys.path= ['/Users/daigotanaka/Projects/bitcraze/cfclient-2013.4.2/lib', '/Users/daigotanaka/Projects/bitcraze/cfclient-2013.4.2/lib/../conf', '/Users/daigotanaka/Projects/bitcraze/cfclient-2013.4.2/bin', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python27.zip', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/plat-darwin', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/plat-mac', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/daigotanaka/Projects/bitcraze/venv/Extras/lib/python', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/lib-tk', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/lib-old', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/daigotanaka/Projects/bitcraze/venv/lib/python2.7/site-packages']
INFO:cfclient.cfclient:Disabling STL printouts
INFO:cfclient.utils.config:Dist config read from /Users/daigotanaka/Projects/bitcraze/cfclient-2013.4.2/lib/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/Users/daigotanaka/Projects/bitcraze/cfclient-2013.4.2/lib/../conf/config.json]
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
2013-10-19 19:17:56.827 python[42660:60b] _createMenuRef called with existing principal MenuRef already associated with menu
2013-10-19 19:17:56.828 python[42660:60b] (
	0   CoreFoundation                      0x00007fff854e7f56 __exceptionPreprocess + 198
	1   libobjc.A.dylib                     0x00007fff8b2a2d5e objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff854e7d8a +[NSException raise:format:arguments:] + 106
	3   CoreFoundation                      0x00007fff854e7d14 +[NSException raise:format:] + 116
	4   AppKit                              0x00007fff8419a94b -[NSCarbonMenuImpl _createMenuRef] + 64
	5   AppKit                              0x00007fff8419a236 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 148
	6   AppKit                              0x00007fff8416eecf -[NSApplication finishLaunching] + 878
	7   AppKit                              0x00007fff8416e860 -[NSApplication run] + 125
	8   QtGui                               0x0000000103497473 _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 365
	9   QtCore                              0x000000010281521d _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE + 79
	10  QtCore                              0x000000010281537b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 341
	11  QtCore                              0x0000000102817dbc _ZN16QCoreApplication4execEv + 188
	12  QtGui.so                            0x0000000102e80b67 meth_QApplication_exec_ + 81
	13  .Python                             0x0000000101b8ed77 PyEval_EvalFrameEx + 13861
	14  .Python                             0x0000000101b91df7 PyEval_EvalCode + 224
	15  .Python                             0x0000000101b8ee0a PyEval_EvalFrameEx + 14008
	16  .Python                             0x0000000101b91cd8 PyEval_EvalCodeEx + 1996
	17  .Python                             0x0000000101b91d4d PyEval_EvalCode + 54
	18  .Python                             0x0000000101ba908f Py_CompileString + 62
	19  .Python                             0x0000000101ba914f PyRun_FileExFlags + 157
	20  .Python                             0x0000000101baa2a2 PyRun_SimpleFileExFlags + 392
	21  .Python                             0x0000000101bba2af Py_Main + 2715
	22  python                              0x0000000101b00e88 python + 3720
)
Thanks,
Daigo
Last edited by daigo on Sun Dec 08, 2013 3:25 am, edited 1 time in total.



tobias
Bitcraze
Posts: 1911
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Radio sig not found on software

Post by tobias » Fri Oct 25, 2013 11:56 am

Can you try connecting to the bootloader and report the result.

daigo
Beginner
Posts: 6
Joined: Thu Oct 24, 2013 1:46 am

Re: Radio sig not found on software

Post by daigo » Sun Oct 27, 2013 5:42 am

Thanks tobias for replying.
tobias wrote:Can you try connecting to the bootloader and report the result.
When I opened boot loader and clicked the button “Initiate bootloader cold boot”, the status says "Cannot find a Crazyradio Dongle". I did this on Mac OS 10.7.5. Since Mac is not fully supported, I also want to try some diagnosis on Raspberry Pi. Is there any console program I can run to see if crazyradio is actually working?

Thanks again for the help.

tobias
Bitcraze
Posts: 1911
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Radio sig not found on software

Post by tobias » Tue Oct 29, 2013 9:54 am

So the issue seem to be that the OS can't find the Crazyradio, probably due to that there is no driver or that the driver doesn't work.

You can thy the raspberry pi image.

daigo
Beginner
Posts: 6
Joined: Thu Oct 24, 2013 1:46 am

Re: Radio sig not found on software

Post by daigo » Wed Oct 30, 2013 3:04 am

Thanks for the reply, tobias.

Yes, as I wrote in the original post, I've also tried on RPi image, and it did not work. I am wondering if there is a console version of test script or diagnostic tool for RPi to make sure crazyradio is working.

Thanks,
Daigo

marcus
Bitcraze
Posts: 599
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Radio sig not found on software

Post by marcus » Wed Oct 30, 2013 8:51 am

If you would like to see the printouts on the Raspberry Pi then do the following steps:
  • Power on the Raspberry Pi and let it start up
  • ssh to the Raspberry Pi (username=bitcraze password=crazyflie)
  • Make sure your Crazyflie is powered off and then insert the Crazyradio into the Raspberry Pi
  • Wait for about 30 seconds to make sure the client starts up and fails to connect
  • Now power on your Crazyflie and from the commandline execute the start_cfheadless script:

    Code: Select all

    bitcraze@raspberrypi ~ $ ./start_cfheadless
    
  • You will now see the printouts

daigo
Beginner
Posts: 6
Joined: Thu Oct 24, 2013 1:46 am

Re: Radio sig not found on software

Post by daigo » Sun Nov 03, 2013 1:47 am

Thanks marcus for responding.
marcus wrote:If you would like to see the printouts on the Raspberry Pi then do the following steps:
  • Power on the Raspberry Pi and let it start up
  • ssh to the Raspberry Pi (username=bitcraze password=crazyflie)
  • Make sure your Crazyflie is powered off and then insert the Crazyradio into the Raspberry Pi
  • Wait for about 30 seconds to make sure the client starts up and fails to connect
  • Now power on your Crazyflie and from the commandline execute the start_cfheadless script:

    Code: Select all

    bitcraze@raspberrypi ~ $ ./start_cfheadless
    
  • You will now see the printouts
So, upon completion of the last step you listed, I noticed:
crazyradio: Turned on the green LED (until the previous step, none of the LEDs were lit)
crazyflie: Turned on the green LED together with the blue one, but red LED remained blinking (until the previous step, the blue LED was lit, the red LED was blinking, and the green one was off)

Now here is the output from start_cfheadless script:

Code: Select all

bitcraze@raspberrypi:~$ ./start_cfheadless
Info: Using config path:  /home/bitcraze/projects/crazyflie-pc-client/lib/../conf
Info: sys.path= ['/home/bitcraze/projects/crazyflie-pc-client/lib', '/home/bitcraze/projects/crazyfl
ie-pc-client/lib/../conf', '/home/bitcraze/projects/crazyflie-pc-client/bin', '/usr/lib/python2.7', 
'/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/l
ib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packag
es', '/usr/lib/pymodules/python2.7']
Disabling standard output for libraries!
INFO:cfclient.utils.config:Dist config read from /home/bitcraze/projects/crazyflie-pc-client/lib/cfc
lient/configs/config.json
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1_linux.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_3.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
Will use [Sony PLAYSTATION(R)3 Controller] for input
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/10/250K]
INFO:cflib.crazyflie:We are connected[radio://0/10/250K], request connection setup
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
WARNING:cflib.crazyflie:ExpectAnswer: ERROR! Older timer whas running while scheduling new one on [5]
INFO:cflib.crazyflie:Callback->Connected to [radio://0/10/250K]
ERROR:cflib.crazyflie.toc:Got packet that was not on TOC channel, TOC fetch will probably not succeed
INFO:cflib.crazyflie.toc:TOC for port [5] found in cache
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.toc:TOC for port [2] found in cache
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/10/250K]
Do you think my hardwares are just fine?

marcus
Bitcraze
Posts: 599
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Radio sig not found on software

Post by marcus » Tue Nov 05, 2013 8:44 am

Yeah, that looks perfect. So, if you try to fly using the PS3 controller it's not working? Could you try to press the found PS button in the middle of the controller and then try again?

daigo
Beginner
Posts: 6
Joined: Thu Oct 24, 2013 1:46 am

Re: Radio sig not found on software

Post by daigo » Wed Nov 06, 2013 5:47 am

marcus wrote:Yeah, that looks perfect. So, if you try to fly using the PS3 controller it's not working? Could you try to press the found PS button in the middle of the controller and then try again?
No, I have not assembled yet: The instruction told me to test it before assembling, and it did not go exactly as it was written, so I got cautious. Anyways, I am going to go ahead and assemble it this weekend. Thanks for the help!!!

Daigo

daigo
Beginner
Posts: 6
Joined: Thu Oct 24, 2013 1:46 am

Re: [SOLVED] Radio sig not found on software

Post by daigo » Sun Dec 08, 2013 3:26 am

I finally got some time to assemble it, and now it's working on my Mac OSX Lion :)
Thank you very much!!!

Post Reply