PDA

View Full Version : Determining packet form controller



Markysparky
02-04-2005, 07:32 AM
OK I have an xbox controller.

the controller is USB

-need to determine the packets sent from it to the xbox console
-determine the packets sent from the xbox port (USB)

I want to make my own controller inorder to make it better.

How would I go about doing this...is it at all possible? The BS2 will be the slave usb device but I will first have to determine the code that the real controller sends in order to make this work on the BS2. I would assume that the xbox is master.

Jon Williams
02-04-2005, 07:45 AM
You might want to do an Internet search, but it's not likely Microsoft is very open with the Xbox controller protocol.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA

Markysparky
02-04-2005, 08:10 AM
I did a search and asked them numerous times with in the last week and had programmers from my robotics team talk to their sources but it is no where to be found. Is there a way to determine the xbox controller protocol using a computer or basic stamp? the basic stamp answe is probably no because it is not a master device right?

Jon Williams
02-04-2005, 10:34 AM
Not likely.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA

Paul Baker
02-04-2005, 03:40 PM
likely your only hope is to create a hardware USB sniffer, but a stamp isn't fast enough to record the data.

SteveW
02-04-2005, 04:54 PM
> "I want to make my own controller inorder to make it better"

If it's different from the XBox controller, the drivers in the XBox won't talk to it, so that's a showstopper.
If you want to make it better by changing its shape, changing the button layout, stuff like that, then why not take an exiting controller and chop it about? As long as you leave the wiring intact, you can pretty much do what you like. If you want to do things like insert sequences of button presses, the having a Stamp turn on relays across the switches themselves (or transistors, with a bit more thought) , would seem the easy way to do it.
The USB documentation is here:
http://www.usb.org/developers/docs/usbspec.zip
and devices like controllers (HID class) are described here:
http://www.usb.org/developers/devclass_docs/HID1_11.pdf

These are relatively heavyweight standards, and should give you some idea of the scale of your project, if you choose to do it from scratch.

Steve