Brian Maher
Brian Maher

Reputation: 93

Capture USB traffic from an Afterglow ps3 controller

I'm about to start a raspberry pi rc car project, and I wanted to use a wired usb Afterglow ps3 controller. I figured I would need to first interpret the data sent over USB from the controller when a button is pressed or the joystick is moved. Maybe I don't totally understand what I'm doing, if so please let me know if there's a better option. Anyway, how would I go about capturing the data sent from the controller? Is there a better way to do this other than wireshark (I wasn't able to figure out how to capture usb data using wireshark) or do I not even need to do this in order to accomplish what I want to accomplish?

Upvotes: 0

Views: 888

Answers (1)

Mitch
Mitch

Reputation: 22281

Alternatively, if you are not bent on implementing it yourself, you can use any of the existing ps3 controller drivers for Linux. See sixlinux, openaxis, or any HID api if you are willing to use it over Bluetooth.

There is even an example of doing it with a Raspberry Pi.

Upvotes: 1

Related Questions