LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-11-2008, 07:13 PM   #1
merlinn31
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Rep: Reputation: 0
xbox 360 USB kernel driver/USB redirect


I'd like to work on a project involving Xbox360s and controllers. Ultimately what I'd like to be able to do is hook a 360 controller to my Linux pc, record the button presses and be able to "replay" them to an Xbox 360. I think there are a few key parts to this:

1) I need some way to record raw data from the usb controller. I've played with the usbmon module, which I think might do the trick. It records a lot of raw data, although I'm not really sure if it's the right kind for me. Maybe some hacking of the xpad driver is called for?

2) I need to find a way to "trick" the xbox360 into thinking that my laptop is really a xbox360 controller.

I would imagine that this involves some kind of handshake between the controller and the xbox. To figure out what this protocol involves, I was thinking that I could redirect one usb's data out another usb to the xbox360, and log out the transactions between them. Ultimately, I'd like to replay this data into a PS3, so I'm going to need to use this same method, or find documentation on both.

Am I missing anything? If there's anyone that could point me in the right direction as to the specifics involved with redirecting usbdev output, documentation, or general reworking of these ideas, I'd appreciate the help.

-Andrew
 
Old 11-11-2008, 07:14 PM   #2
merlinn31
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I just realized that this is in the Non-*NIX forums, so I guess it'd be fine to use Windows do this, I'm not specific. I just figured it would be easier with Linux.
 
Old 11-12-2008, 06:12 AM   #3
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
You may want to look at the XFPS which is a device which bypasses the xbox 360 security for 3rd party controllers, which has been used in projects such as this which allows a wii controller to be used on a 360.
 
Old 11-12-2008, 05:27 PM   #4
merlinn31
LQ Newbie
 
Registered: Mar 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm... I hadn't heard of the 360 USB security before now, but I guess it makes sense. Else, why wouldn't way smarter people than me have already done this a hundred times and cut into Microsoft sales by now?

I still think that it should be possible to dump the data on a 360 controller's security chip to a file and pass this in the protocol when the console queries for it but...

What if I go the route of cannibalizing existing 360/PS3 controllers to bypass the security mechanisms in the consoles?

This changes the project a bit, but I still think it's doable. The biggest issue I see here is with interpreting the analog sticks on the different consoles. Basically it would look like:

Unmodified 360 controller -> PC -> (PIC?) -> cannibalized 360/cannibalized PS3 -> 360 console/PS3 console?

A parallel port or serial port (or even USB) with some software magic should be able to pass the button presses/analog stick values produced by the xpad driver to a PIC that would send these signals to the hacked controllers. Maybe the PC could do it natively. I'm not sure on the specifics of serial/parallel ports.

The analog sticks are still the issue, I think though. Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm a Noob and i don't know how to use my Xbox 360 controller! bman000 Linux - Hardware 2 03-02-2007 03:14 AM
xbox 360 suavecu Linux - Software 7 07-24-2006 09:15 PM
Linux fo xbox 360 randyvalpobb Linux - General 2 01-20-2006 04:15 PM
Xbox 360 stabile007 General 112 05-28-2005 09:23 PM


All times are GMT -5. The time now is 12:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration