USB HID Data Transfer for Gamepad

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Tillin9
Posts: 1
Joined: Sat Nov 28, 2009 8:05 am

USB HID Data Transfer for Gamepad

Post by Tillin9 » Sat Nov 28, 2009 8:09 am

Hi, I'm researching around on the best way to add a the ability to transfer small amounts of data (~32K) from an EEPROM on a USB game pad. I was hoping there might be an easy way to do this with pure USB HID so I won't have to do a composite device or write a custom driver.

Anybody have any useful information on how to do this? For example what descriptors I might need?

Thanks in advance.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: USB HID Data Transfer for Gamepad

Post by ulao » Sat Nov 28, 2009 7:33 pm

I too am interested in this. I was thinking of trying to implement this
viewtopic.php?f=8&t=3399
but figure there could be a more elegant way. However I have not yet started researching it much. If you do find a way please do report back, if no others here have a thought.

Guest

Re: USB HID Data Transfer for Gamepad

Post by Guest » Sat Nov 28, 2009 11:50 pm

I was debating a composite device with USB mass storage as one of the sub devices. The big problems there are complexity, need a whole other set of descriptors and to implement an appropriate interface. Also there is the bulk transfer issue with V-USB.

The option I was leaning towards was HID raw - see http://www.pjrc.com/teensy/rawhid.html while this example is for a Teensy (AVR with hardware USB), it is my belief that simply adding the descriptors and some basic code should make this work with any HID capable device.

ulao
Rank 4
Rank 4
Posts: 481
Joined: Mon Aug 25, 2008 8:45 pm

Re: USB HID Data Transfer for Gamepad

Post by ulao » Wed May 04, 2011 1:42 am

Sorry to dig this up but, any luck with this?

Post Reply