Hi,
is it possible to use V-USB as a USB Host for a HID Device?
That is, I want to connect a gamepad to an AVR and trigger something with the buttons.
If possible, are there any examples?
Thanks,
Faralla
Possible to use V-USB as a Host
Re: Possible to use V-USB as a Host
I have kind of looked in to this, I wanted to take a gamepad and connect it to a avr, read the inputs and do some math and send it back out as a new usb packet.
Short answers is no, long answer is with a mega 328, you "may" have enough room to wring a usb decoder. V-USB its self certainly does not. If your just interested in one device ( gamepade HID ) you could eliminate a lot of over head. However your going to need to fully understand how the uisb protocol works to emulate the host.
Are you limited to a usb controller? I designed a device that takes any console controller and interacts with it. So for example a psx to usb. Using a non usb controller would be a lot easier to do. Name the controller and I promises I have software to interface with it.
http://bliss-box.net/
Short answers is no, long answer is with a mega 328, you "may" have enough room to wring a usb decoder. V-USB its self certainly does not. If your just interested in one device ( gamepade HID ) you could eliminate a lot of over head. However your going to need to fully understand how the uisb protocol works to emulate the host.
Are you limited to a usb controller? I designed a device that takes any console controller and interacts with it. So for example a psx to usb. Using a non usb controller would be a lot easier to do. Name the controller and I promises I have software to interface with it.
http://bliss-box.net/
Re: Possible to use V-USB as a Host
Thanks for your answer. But implementing the whole protocol is way to much work for what I was planning to do.
My plan was to write something like a USB Proxy for PS3.
I have an USB Racing Wheel, which is unsupported by PS3. To I was thinking about building a converter box, which sends out a apid/vpid of a supported controller and tunnels the commands from the unsupported wheel.
But when thinking about it, I think i'll be going to buy a supported wheel.
My plan was to write something like a USB Proxy for PS3.
I have an USB Racing Wheel, which is unsupported by PS3. To I was thinking about building a converter box, which sends out a apid/vpid of a supported controller and tunnels the commands from the unsupported wheel.
But when thinking about it, I think i'll be going to buy a supported wheel.
Re: Possible to use V-USB as a Host
I was told the ps3 supports any Hid device. I'm sure there is a good HID racing wheel.
-
- Rank 1
- Posts: 28
- Joined: Wed Sep 30, 2009 3:36 am
- Location: Osaka, Japan
- Contact:
Re: Possible to use V-USB as a Host
You could also get all hardcore and re-wire the internals of your racing wheel into a new controller board that takes in data from the wheel, buttons, etc. and uses V-USB to send the data to the PS3. There are a number of projects (including mine!) that work as controllers for the PS3. You could even wire it all up in parallel to the existing PCB inside your wheel, and it would be dual-system!
Of course, that's pretty intense. But I would wager it's easier than writing V-USB-HOST at least...
Of course, that's pretty intense. But I would wager it's easier than writing V-USB-HOST at least...
Re: Possible to use V-USB as a Host
I would agree...
If the goal is personal that would suffice, but if its to be an add-on for (users/customers) then no so. However I'm sure there are other wheels you could just implements instead. The dreamCast protocol for example is understood and I it has a wheel.
If the goal is personal that would suffice, but if its to be an add-on for (users/customers) then no so. However I'm sure there are other wheels you could just implements instead. The dreamCast protocol for example is understood and I it has a wheel.