Offline
Newbie
Karma: 0
Posts: 3
|
 |
« on: November 20, 2012, 04:35:26 am » |
Hey everyone,
we have an idea that basically needs to read out the USB communication of an arcade-stick (or a simple Playstation 3 Controller) while playing. We are willing to read out the pressed buttons/directions and send them to a computer that visualizes the collected data. Is this possible in any way? As far as I found out by now, USB Signals are not easily splitted. Is it possible to use an Arduino with an USB-Host Shield to read the incoming signal, send the necessary data to the computer AND the unmodified signal to the Playstation? We do not want to tinker around inside the controllers as we would like to have some kind of "Plug&Play" Solution in the end where you just plug in your cable into some "box" and connect the box to the PS3 and the visualizing computer.
Thanks for the help!
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 29
Posts: 1586
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #1 on: November 20, 2012, 07:59:10 am » |
Im not 100% about reading the data from a PS3 controller, but there is a library and sample code to read a PS2 controller, which I've used myself. You may need a USB shield and a modified code for the PS3. Again not sure though.
|
|
|
|
« Last Edit: November 20, 2012, 08:25:08 am by HazardsMind »
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #2 on: November 20, 2012, 08:37:47 am » |
Just reading the inputs from the PS3 Controller or the arcade stick should not be the big deal here. The problem I am trying to solve is if I can use it while it is used on the PS3. I just want to read out what input is beeing pressed while someone is playing on the Console.
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Online
Edison Member
Karma: 29
Posts: 1586
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #3 on: November 20, 2012, 08:40:04 am » |
I dont think that is possible then.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #4 on: November 21, 2012, 04:01:58 am » |
Hm.. really? I've seen some hardware usb-analyzers on the internet that unfortunately cost over 300$. But at least this shows that there must be some way to do something similar to the thing I want to do. Doesn't anyone have a clue for a workaround or a way to make the project possible?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 30
|
 |
« Reply #5 on: November 21, 2012, 09:01:56 am » |
reading the data should be pretty easy  just hook up a host shield and ur good to go, other than that, to connect the usb to the computer AND the ps3 u should build ur own spliter  to do this just grab 3 usb inputs and solder their cords together, i have done this plenty of times with usb's, aux's etc....
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6400
-
|
 |
« Reply #6 on: November 21, 2012, 09:07:08 am » |
I suspect that if you use an Arduino with a USB host port then somebody familiar with USB could program the Arduino to act as a 'man in the middle' and simply pass all the USB traffic through both ways. This would give you visibility of the traffic. You would still need to make sense of it, and I expect that would need considerable knowledge of USB protocols too.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 37
Posts: 974
Get Bitlash: http://bitlash.net
|
 |
« Reply #7 on: November 21, 2012, 09:07:42 am » |
Another approach to consider might be to intercept the data stream in software once it's already on the PC, particularly since that's where you want it to end up anyway. Search for "usb sniffing" and you may find something that fits into your project. I found this one, for example, that looked promising: http://hackaday.com/2009/03/19/usb-sniffing-in-linux/ -br http://bitlash.net
|
|
|
|
|
Logged
|
|
|
|
|
|