Page 1 of 1

Streaming data to an xbox

Posted: Wed Apr 13, 2011 8:38 pm
by AerosolSP
Hey guys. I asked on the arduino forums, and I was directed here.

I'm trying to control my Xbox from my PC through it's controller port. The controller ports on the Xbox are literally just USB1.1 with a fancy shape. I'm actually trying to emulate a specific controller, the Steel Battalion controller. I already know that it sends 25 bytes of data. What I want to do is simulate this same data from my PC's USB port to the controller port on the Xbox. I can't just connect the two together with an A-A cable (or an A-A network cable, cause it emulates an ethernet cable...if I'm wrong someone correct me).

What do you guys think is the best way to do this? I thought this might be a fair chunk simpler than your normal projects, so I'm excited to hear a response!

USB HID emulator

Posted: Fri Apr 15, 2011 2:37 am
by Aerosol
I'm sorry. I was going to edit my original post but I can't! I thought I'd ask a bit more of a specific question, since my previous question was kind of vague, in the end!

I want hardware that emulates an HID device, such that when I send an input report to it with my PC, it forwards those commands to the target USB host, which thinks that it's receiving those commands from a legitimate HID device.

Re: Streaming data to an xbox

Posted: Fri Apr 15, 2011 7:08 am
by Bob
You can not connect an Xbox to a PC via a USB cable as they are both hosts, you need a bridge interface circuit in between them.

Re: USB HID emulator

Posted: Fri Apr 15, 2011 4:26 pm
by AerosolSP
That's what I'm asking! How would I go about making the bridge interface?

Re: USB HID emulator

Posted: Fri Apr 15, 2011 6:18 pm
by Daid
Sorry, but this isn't simple at all.

First off, you need to emulate a device you know almost nothing about. To communicate with the XBOX. This would be your first problem.
Secondly, you need to communicate with your PC. You could use USB for this, but this requires two V-USB stacks at the same time, which is impossible in a single AVR controller. So you'll need 2 controllers, or another way to get your data from PC to bridge.
Lastly, you all need to do this in the very limited environment that V-USB supplies.
And as a final word, I'm thinking you're not very experienced with all this. Have you programed a microcontroller before?

I suggest you start with step 1. Getting the XBOX controller emulated from V-USB, just connect a button to the microcontroller, add V-USB, and get the button to do something on the XBOX.

Re: USB HID emulator

Posted: Sat Apr 16, 2011 12:33 am
by Aerosol
I know all then HID information for the controller, including it's input report. The only information that I have that is a little sketchy is it's output report.

I did a bit of searching and found this: http://procrastineering.blogspot.com/20 ... r-for.html

It's literally almost exactly what I want to do, sans the autoplay and the target platform being the Xbox (USB1.1), not the PS2. This guy used a Teensy development board. Am I correct in assuming then I'd be better off using a Teensy? Like I said originally, the guys at the arduino board directed me here.

Re: USB HID emulator

Posted: Tue Apr 19, 2011 7:32 pm
by Cable Chimp
You can not connect an Xbox to a PC via a USB cable as they are both hosts

Here is more information about USB Cables http://www.freepressrelease.com/types-usb-connectors-cables/185796/

Re: USB HID emulator

Posted: Wed Apr 20, 2011 12:24 am
by ulao
If all you want is to use the xbox 1 controller on a pc just download the all so common drivers

http://www.redcl0ud.com/xbcd_install.html

Wire up the usb cable.

http://www.velocityreviews.com/forums/t ... apter.html

Re: USB HID emulator

Posted: Sun Oct 09, 2011 10:11 pm
by omagasohe
Not too hard in theory.
First is knowing exactly what the controler sends to the xbox.
then write a program that will mimic it.
once that works find a way to link your computer with that micro controler.

the execution is hard. Personally i'd just buy the controller and and if you just want to have a computer mash buttons, use an arduino and have it mash buttons. so much simpler. it wont look pretty, it might catch fire but it will mostly work.