USB HID Joystick & PPM-In program

More
10 Jun 2013 15:50 - 10 Jun 2013 16:06 #10768 by BitOne
Replied by BitOne on topic USB HID Joystick & PPM-In program
I got the very last sources 4 hours ago and I built them myself.

Edit: I've loaded an empty model and I just applied the USB HID protocol and got the reboot loop too.
See model8.ini here.

To build, I followed the instructions provided here bitbucket.org/PhracturedBlue/deviation for Linux. My last build from sources (to test PPM-IN) works perfectly.
Last edit: 10 Jun 2013 16:06 by BitOne.

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 17:48 #10770 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
I will look at it once I can be in front of my Tx again

Please Log in or Create an account to join the conversation.

More
11 Jun 2013 03:57 #10784 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
Hmm...Well, I loaded you tx.ini, model6.ini, and devo8.dfu onto my devo8 and it works fine.
So this indicates there may be some sort of timing problem that is tx specific. It might explain the issues victzh was seeing as well.
It works ok on my Devo8 and devo10. I will check my devo12 as well and see if I see any issue there.
Also:
Does it continue to happen if your Tx is not plugged in to the PC? What OS do you run on your PC? I doubt the answers matter, but I'm grasping at straws.

Please Log in or Create an account to join the conversation.

More
11 Jun 2013 04:09 #10786 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program
I have the same problem, Devo8 reboots with USB HID protocol. Default model setup, Tx not connected to PC, firmware compiled from source (f2266ea), Windows XP.

Please Log in or Create an account to join the conversation.

More
11 Jun 2013 13:38 #10790 by BitOne
Replied by BitOne on topic USB HID Joystick & PPM-In program
Some tests:
- load the model with USB-HID without connecting the USB cable
=> reboot loop
- connect the USB cable to a computer (Debian 7.0 64bits with Linux 3.8)
=> reboot loop

Maybe it's some hardware differences between our Devo 8S ?

I got my Devo 8S at the end of January 2013.
The FCC-ID at the back is S29Devo-8S.
The hardware is totally untouched: no additional module has been installed.

If you want me to do some other tests, please let me know !

Please Log in or Create an account to join the conversation.

More
11 Jun 2013 15:34 #10794 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
If you start with a normal protocol, and switch to USBHID and then 're-init' does it work?

A couple things to try:
in protocol/usbhid.c:
Change:
CLOCK_StartTimer(1000, usbhid_cb);
to
CLOCK_StartTimer(20000, usbhid_cb);

change:
return 50000;
to
return 60000;

In target/common_devo/hid/hid_devo.c
uncomment:
//PrevXferComplete = 0;

do each one at a time and in order, and see if it changes anything before moving on. The changes should be made cumulatively (don't take out one before adding the other). The last is the most likely to change the behavior, but it very well may disable HID altogether.

Please Log in or Create an account to join the conversation.

More
11 Jun 2013 15:37 - 11 Jun 2013 15:38 #10795 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program

PhracturedBlue wrote: If you start with a normal protocol, and switch to USBHID and then 're-init' does it work?


No, 're-init' button freeze in pressed state, then Tx reboot.
Last edit: 11 Jun 2013 15:38 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 00:51 #10813 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
Well, even though neither devo8 and devo10 see this issue, my devo12 does. So I can reproduce, and can confirm that none of the 3 ideas I posted above actually work. I'll spend some time working on it and see if i can fix it.

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 05:11 #10826 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
I believe I located the bug and I've checked in a fix. The problem was that I wasn't waiting until a connection from the PC before sending data which resulted in writing to uninitialized memory pointers.

Please let me know if it works now.

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 05:27 - 12 Jun 2013 05:28 #10829 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program
Now it works. Right now I cann't test it with simulator, but 'Deviation GamePad' at 'Control Panel'->'Game Controllers' responds to inputs.
Last edit: 12 Jun 2013 05:28 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 05:35 #10830 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
Good to hear. I can change the input types however it is most useful to have them. I could also define the device as a 'Flight control' instead of as a 'GamePad' easily. Since I don't have much use for this feature, I'd like feedback on what the most useful configuration is.

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 06:50 #10836 by HornetMaX
Replied by HornetMaX on topic USB HID Joystick & PPM-In program
I guess that maximum compatibility is achieved if the device "behaves" like a regular gamepad: 6 analog axes (2 joysticks, 2 triggers) and a bunch of buttons (typically 12).
But at the same time, in some cases it may be handy to have all the channels of the TX, so ...

MaX.

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 13:33 #10845 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
I checked out the Clearview demo, and all channels seem to be available

Please Log in or Create an account to join the conversation.

More
12 Jun 2013 15:12 #10855 by BitOne
Replied by BitOne on topic USB HID Joystick & PPM-In program
Hi PhracturedBlue,

I've just build the last sources and it works really well, thank you very much !

I can confirmed I can see 12 channels in jstest-gtk on Linux and I checked that the first 5 were working well (4 sticks + gear).

Works great as well with CRRCSim ( sourceforge.net/apps/mediawiki/crrcsim/i....php?title=Main_Page ).

Will try Flightgear soon as well ;) ( www.flightgear.org/ )

The only problem is the USB cable, as it stands in the way of my right hand when I'm holding my Devo8. I will try to find an USB cable with a bended mini USB connector to see if it helps.

Anyway, thanks again PB !

Please Log in or Create an account to join the conversation.

More
14 Jun 2013 16:41 #10963 by victzh
Replied by victzh on topic USB HID Joystick & PPM-In program
I also built from latest sources and my Devo10 does not misbehave anymore. I did not check the joystick functionality itself, just that the device is enumerated as such and Devo is not stuck in startup code. Thanks for the fix, I'll check joystick later.

Please Log in or Create an account to join the conversation.

More
18 Jun 2013 18:09 #11099 by HeliBen
Replied by HeliBen on topic USB HID Joystick & PPM-In program
USB joystick works great with my Devo 8s on my mac! Thanks everyone. Now I don't need my usb dongle.

Please Log in or Create an account to join the conversation.

More
17 Jul 2013 22:05 #12312 by notyet
Replied by notyet on topic USB HID Joystick & PPM-In program
Does USB HID work on Devo 7e? When I reboot the Devo 7e set to USB HID, it comes up and says "Bad/Missing Protocol Modules"

Please Log in or Create an account to join the conversation.

More
20 Jul 2013 00:19 #12354 by Damo
Replied by Damo on topic USB HID Joystick & PPM-In program
I have USB HID working on my devo 10 (nightly), but I cannot seem to work out which channels to output to for all the switches to work (in Clearview SE)
I should be able to work this out but I have limited time atm, does anyone have the answers already?
Thanks in advance,
Damo.

Please Log in or Create an account to join the conversation.

More
23 Jul 2013 12:22 #12448 by Cestb
Replied by Cestb on topic USB HID Joystick & PPM-In program
Hi,

i've tested it with my devo7e but usbhid.mod is missing in protocol directory...
How could i make it ?

I've tested with the last nightly build.

Thks

Please Log in or Create an account to join the conversation.

More
26 Jul 2013 07:51 #12506 by Cestb
Replied by Cestb on topic USB HID Joystick & PPM-In program
Nobody could help 7e owners?

Please Log in or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum