OpenPandora with Crazyflie
-
- Member
- Posts: 96
- Joined: Fri May 03, 2013 2:06 pm
Re: OpenPandora with Crazyflie
Bugger :/
Marcus, is there some kind of dump or information we could provide? It may help with your usb3 problem as well.
Marcus, is there some kind of dump or information we could provide? It may help with your usb3 problem as well.
Re: OpenPandora with Crazyflie
The USB3 issue is fixed in the latest version of the Crazyradio firmware repo so then it's something else that is wrong. Could you paste all the info that is written to the syslog when the device is inserted? Arnaud has done the firmware for the Crazyradio but he's gone for a few days and won't be back until Monday.SuperRoach wrote:Bugger :/
Marcus, is there some kind of dump or information we could provide? It may help with your usb3 problem as well.
/Marcus
-
- Member
- Posts: 96
- Joined: Fri May 03, 2013 2:06 pm
Re: OpenPandora with Crazyflie
Is this suitable?
Plloi, this is on the stock OP Angstorm os, but has a Usb hub plugged in.dmesg
[ 9619.184356] usb 1-2.3: new full-speed USB device number 3 using ehci-omap
[ 9619.306213] usb 1-2.3: New USB device found, idVendor=1915, idProduct=7777
[ 9619.306243] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=29
[ 9619.306243] usb 1-2.3: Product: Crazyradio USB Dongle
[ 9619.306243] usb 1-2.3: Manufacturer: Bitcraze
[ 9619.306274] usb 1-2.3: SerialNumber: B12D7090E4
superroach-openpandora:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 1915:7777 Linksys
Re: OpenPandora with Crazyflie
All I get in dmesg is:
hub 1-0:1.0: unable to enumerate USB device on port 2
It is somehow skipping putting anything into the syslog? i blame systemd for that, hate it so much.
hub 1-0:1.0: unable to enumerate USB device on port 2
It is somehow skipping putting anything into the syslog? i blame systemd for that, hate it so much.
-
- Member
- Posts: 96
- Joined: Fri May 03, 2013 2:06 pm
Re: OpenPandora with Crazyflie
Just to be sure, is the hub you are using truly a full speed hub, not just a hi-speed one?
Re: OpenPandora with Crazyflie
Yes, that looks good.SuperRoach wrote:Is this suitable?Plloi, this is on the stock OP Angstorm os, but has a Usb hub plugged in.dmesg
[ 9619.184356] usb 1-2.3: new full-speed USB device number 3 using ehci-omap
[ 9619.306213] usb 1-2.3: New USB device found, idVendor=1915, idProduct=7777
[ 9619.306243] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=29
[ 9619.306243] usb 1-2.3: Product: Crazyradio USB Dongle
[ 9619.306243] usb 1-2.3: Manufacturer: Bitcraze
[ 9619.306274] usb 1-2.3: SerialNumber: B12D7090E4
superroach-openpandora:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 1915:7777 Linksys
Re: OpenPandora with Crazyflie
Plloi and I are able to get the Crazyradio working with a 3rd party hub, but we have not been able to get it to load off the main OP USB 2.0 port, I need to get a OTG adapter to see how that works against the crazyradio dongle. Speaking of the OTG what are the power requirements for the crazyradio usb device as the OTG port on the OP can only do 100mA of power.
-
- Member
- Posts: 96
- Joined: Fri May 03, 2013 2:06 pm
Re: OpenPandora with Crazyflie
Awesine Allclone! Which distro did you use, and was it installed to nand or the sd?
With the OTG, It can supply 500mAh easily if it's set to host mode. The drivers will need to "ask" for the extra power though.
With the OTG, It can supply 500mAh easily if it's set to host mode. The drivers will need to "ask" for the extra power though.
Re: OpenPandora with Crazyflie
Hi! I'm watching this thread as a long-time Pandora owner with a parallel passion for building flying/drving/crashing RC devices (mostly planes, some cars, and recently heli's), and sure wishing I had a crazyflie to hack on right now!
I've used the Pandora nubs to control RC stuff over wifi - sending the raw data to both an Arduino with a Wifi shield (for servo control), and an rPi with video feed back to the Pandora's LCD. Basically, once you can control your RC servo's from a Linux box, the sky is literally the limit (or as you guys might have noticed: the batteries are actually always the limit, heh heh ..) We will attempt to use this configuration to make a submarine some point down the line, as we have an explorable lake.
Anyway .. Just wanted to say if you needed any help with the Pandora Nubs, there are some gotcha's that hopefully won't trip you up as you get closer to your goal - remember that you have to switch the nub mode on the Pandora, programmatically, to get through Joystick/KeyboardArrows/Mouse simulation. Each mode has a different event type and scale - I use Joystick, pretty much always, but for some applications you might find using the Pandora's own Mouse mode as a primitive filter/config. (All the details are described nicely here: http://pandorawiki.org/Nubs)
For my needs, I've been using a version of LOAD81 with device support for the Pandora. The joystick.lua example will give you a usable NUB gui and a way to test things, if you need it (See: http://github.com/seclorum/load81 and sample joystick code here: https://github.com/seclorum/load81/blob ... sticks.lua)
Something to think about: You can run LOAD81 on top of a Python (or C/whatever)-based daemon to do the nub->Crazyflie transfer, if you like, and just use it as a passive interface to what the joysticks (Nubs) are doing.
Anyway, good luck - I really look forward to seeing crazyflie/OpenPandora integration demo'ed by one of you lucky blokes soon, and I hope to join you soon enough .. got my name on the list, anyhow ..
I've used the Pandora nubs to control RC stuff over wifi - sending the raw data to both an Arduino with a Wifi shield (for servo control), and an rPi with video feed back to the Pandora's LCD. Basically, once you can control your RC servo's from a Linux box, the sky is literally the limit (or as you guys might have noticed: the batteries are actually always the limit, heh heh ..) We will attempt to use this configuration to make a submarine some point down the line, as we have an explorable lake.
Anyway .. Just wanted to say if you needed any help with the Pandora Nubs, there are some gotcha's that hopefully won't trip you up as you get closer to your goal - remember that you have to switch the nub mode on the Pandora, programmatically, to get through Joystick/KeyboardArrows/Mouse simulation. Each mode has a different event type and scale - I use Joystick, pretty much always, but for some applications you might find using the Pandora's own Mouse mode as a primitive filter/config. (All the details are described nicely here: http://pandorawiki.org/Nubs)
For my needs, I've been using a version of LOAD81 with device support for the Pandora. The joystick.lua example will give you a usable NUB gui and a way to test things, if you need it (See: http://github.com/seclorum/load81 and sample joystick code here: https://github.com/seclorum/load81/blob ... sticks.lua)
Something to think about: You can run LOAD81 on top of a Python (or C/whatever)-based daemon to do the nub->Crazyflie transfer, if you like, and just use it as a passive interface to what the joysticks (Nubs) are doing.
Anyway, good luck - I really look forward to seeing crazyflie/OpenPandora integration demo'ed by one of you lucky blokes soon, and I hope to join you soon enough .. got my name on the list, anyhow ..
-
- Member
- Posts: 96
- Joined: Fri May 03, 2013 2:06 pm
Re: OpenPandora with Crazyflie
Really good points ibisum. Forgot about the default mode of Open pandora being important for interfacing of the gui if it's being used. The advantage of a OpenPandora is there could be the stylus/resistive screen as an alternative input for screen options I guess.
I've noted that there is an easy install of Slackware available:
http://boards.openpandora.org/index.php ... are%20+imz
This could be put on a SD care and possibly be made with the proper python libraries needed. As a side bonus, it can apparently still use PND's!
My internet bandwidth will be shaped if I just download that image though, so I will research a bit more about it first.
I've noted that there is an easy install of Slackware available:
http://boards.openpandora.org/index.php ... are%20+imz
This could be put on a SD care and possibly be made with the proper python libraries needed. As a side bonus, it can apparently still use PND's!
My internet bandwidth will be shaped if I just download that image though, so I will research a bit more about it first.