- Posts: 40
USB HID Joystick & PPM-In program
- BitOne
- Offline
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.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
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.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- BitOne
- Offline
- Posts: 40
- 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.
=> 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.
- PhracturedBlue
- Offline
- Posts: 4402
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.
- vlad_vy
- Offline
- Posts: 3333
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.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please let me know if it works now.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- HornetMaX
- Offline
- Posts: 8
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.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- BitOne
- Offline
- Posts: 40
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.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- HeliBen
- Offline
- Posts: 7
Please Log in or Create an account to join the conversation.
- notyet
- Offline
- Posts: 25
Please Log in or Create an account to join the conversation.
- Damo
- Offline
- Posts: 31
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.
- Cestb
- Offline
- Posts: 3
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.
- Cestb
- Offline
- Posts: 3
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- USB HID Joystick & PPM-In program