nfg.forums

NFG Forums => Controllers and Joysticks => Controller Technic => Topic started by: Piratero on July 22, 2012, 10:31:34 AM

Title: XBOX USB protocol?
Post by: Piratero on July 22, 2012, 10:31:34 AM
Hello everyone,

I just finished hacking up an old NES controller to work on the XBOX using a microcontroller. I've gotten to the point where it is fully recognized as a Microsoft XBOX controller by the XBCD Windows drivers.

I mapped A to A, B to X, Select to Back, etc.

But here's the problem: It doesn't work on an XBOX. I'm guessing that vendor-specific data is being sent to authenticate the device.

Does anyone have ANY information on this? Anyone have the ability to sniff the data coming from the XBOX itself to the controller?


I could connect an XBOX controller to my PC, but I would assume that it would have to ask for a vendor-specific request  first.



Any information would be greatly appreciated!
Title: Re: XBOX USB protocol?
Post by: NFG on July 22, 2012, 05:24:37 PM
If I remember correctly there's a fifth wire on Xbox pads, you might look into that.  I don't recall if it's a protection issue or what.

This sort of thing is certainly well documented already, right?  It must be.
Title: Re: XBOX USB protocol?
Post by: Piratero on July 22, 2012, 05:29:16 PM
Quote from: Lawrence on July 22, 2012, 05:24:37 PM
If I remember correctly there's a fifth wire on Xbox pads, you might look into that.  I don't recall if it's a protection issue or what.

This sort of thing is certainly well documented already, right?  It must be.

A wire that I might be able to probe?

To be clear, I'm attempting to spoof an XBOX controller rather than soldering wires directly on the inputs.

It's a microcontroller inside of a NES controller to USB
Title: Re: XBOX USB protocol?
Post by: NFG on July 22, 2012, 05:41:43 PM
Yeah, but what I mean is there are five wires in an Xbox pad, and 4 in a USB device.  You might need that extra wire, and actually communicate on it.
Title: Re: XBOX USB protocol?
Post by: Piratero on July 22, 2012, 05:48:40 PM
Quote from: Lawrence on July 22, 2012, 05:41:43 PM
Yeah, but what I mean is there are five wires in an Xbox pad, and 4 in a USB device.  You might need that extra wire, and actually communicate on it.

Oh I see. But what's weird is that I have a PS2 to XBOX converter. I ripped off the XBOX end and soldered a male USB connector. From there I used a female USB to XBOX cable and it works just fine. Without the need of a 5th wire...
Title: Re: XBOX USB protocol?
Post by: NFG on July 22, 2012, 06:23:13 PM
Well I guess the answer lies somewhere else then.  ^_^
Title: Re: XBOX USB protocol?
Post by: kendrick on July 22, 2012, 07:36:03 PM
If I remember correctly, a proper original Xbox controller contains an internal USB hub. The actual input device is recognized as a device connected to that hub, in addition to one or two memory cards (or a keyboard adapter). You may need to cannibalize the hub from another controller in order to make your NES pad work.
Title: Re: XBOX USB protocol?
Post by: Piratero on July 24, 2012, 09:08:28 AM
Quote from: kendrick on July 22, 2012, 07:36:03 PM
If I remember correctly, a proper original Xbox controller contains an internal USB hub. The actual input device is recognized as a device connected to that hub, in addition to one or two memory cards (or a keyboard adapter). You may need to cannibalize the hub from another controller in order to make your NES pad work.

Got it. Working on faking a HUB with 3 ports.