Can anyone with a dualshock 3 confirm its vendorID:productID

Investigation into how Linux on the PS3 might lead to homebrew development.

Moderators: cheriff, emoon

Post Reply
ralferoo
Posts: 122
Joined: Sat Mar 03, 2007 9:14 am
Contact:

Can anyone with a dualshock 3 confirm its vendorID:productID

Post by ralferoo »

Just wondered if anyone out there who has a DualShock 3 and linux (not necessarily on the PS3) can confirm the USB productID.

The output from

Code: Select all

cat /proc/bus/input/devices
or

Code: Select all

cat /proc/bus/usb/devices
when the DualShock3 is plugged in should tell me everything I need to know... The vendor ID is probably 0x054c for Sony, but the product ID could be anything. You can probably also determine this information by plugging it into a Windows machine, but I don't know how!

Thanks!
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

this should be enough :D

Code: Select all

Bus 003 Device 005: ID 054c:0268 Sony Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x054c Sony Corp.
  idProduct          0x0268 
  bcdDevice            1.00
  iManufacturer           1 Sony
  iProduct                2 PLAYSTATION(R)3 Controller
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     148
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

Code: Select all

I: Bus=0003 Vendor=054c Product=0268 Version=0111
N: Name="Sony PLAYSTATION(R)3 Controller"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/class/input/input10
U: Uniq=
H: Handlers=event10 js0 
B: EV=b
B: KEY=7ffff 0 0 0 0 0 0 0 0 0
B: ABS=ffffff00 27

Code: Select all

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=054c ProdID=0268 Rev= 1.00
S:  Manufacturer=Sony
S:  Product=PLAYSTATION(R)3 Controller
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=02(O) Atr=03(Int.) MxPS=  64 Ivl=1ms
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=1ms
ralferoo
Posts: 122
Joined: Sat Mar 03, 2007 9:14 am
Contact:

Post by ralferoo »

weltall wrote:

Code: Select all

Bus 003 Device 005: ID 054c:0268 Sony Corp. 
Device Descriptor:
...
  idVendor           0x054c Sony Corp.
  idProduct          0x0268 
  bcdDevice            1.00
  iManufacturer           1 Sony
  iProduct                2 PLAYSTATION(R)3 Controller
Is that definitely a DualShock3? Those results look identical to the standard PS3 controller... Although, that does make like easier as I don't have to worry about the difference for now!

Cheers.
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

hum you asked the dual shock 3 oh sorry it's the standard controller i misslooked.
sorry to have made you lose time
CPhoenix
Posts: 4
Joined: Sat Apr 02, 2005 1:07 am

Post by CPhoenix »

Right I've plugged in my DS3 controller and got the info but youre probably not going to like the results :(


[CPhoenix@localhost ~]$ cat /proc/bus/input/devices
I: Bus=0003 Vendor=054c Product=0268 Version=0100
N: Name="Sony PLAYSTATION(R)3 Controller"
P: Phys=usb-0000:00:01.1-2.1/input0
S: Sysfs=/class/input/input0
H: Handlers=event0 js0
B: EV=b
B: KEY=7ffff00000000 0 0 0 0
B: ABS=ffffff0000000027

Looks like the same as the Sixaxis controller.... hope this still helps btw.
ralferoo
Posts: 122
Joined: Sat Mar 03, 2007 9:14 am
Contact:

Post by ralferoo »

CPhoenix wrote:Right I've plugged in my DS3 controller and got the info but youre probably not going to like the results :(


Looks like the same as the Sixaxis controller.... hope this still helps btw.
TBH, that makes life easier for me and probably most people, as existing code looks for deivce ID 054c:0268 in order to work around the bugs and these will work therefore work unchanged on the DS3!

I'd imagine the packets used to control rumble are ignored by the original controller. Also, there are several bytes of data sent by the controllers that I don't know what they're for; possibly there's a bit in there that signfies the device supports force feedback.

My main concern is that as europeans aren't allowed to buy DS3 yet, I had no way of knowing whether my code was still working with them or not. If the device ID is the same, then that's fine. I'll eventually buy a DS3 when they're available here and figure out how to get them rumbling!
User avatar
mc
Posts: 211
Joined: Wed Jan 12, 2005 7:32 am
Location: Linköping

Post by mc »

ralferoo wrote:My main concern is that as europeans aren't allowed to buy DS3 yet, I had no way of knowing whether my code was still working with them or not. If the device ID is the same, then that's fine. I'll eventually buy a DS3 when they're available here and figure out how to get them rumbling!
If you want one now and don't mind paying a bit extra, you can probably get one through Ooh!JAPAN.
Flying at a high speed
Having the courage
Getting over crisis
I rescue the people
CPhoenix
Posts: 4
Joined: Sat Apr 02, 2005 1:07 am

Post by CPhoenix »

mc wrote:If you want one now and don't mind paying a bit extra, you can probably get one through Ooh!JAPAN.
Shame... I bought a suitcase full of them back with me when I was out in Japan - If I'd have known... :(
ralferoo wrote:I had no way of knowing whether my code was still working with them or not. If the device ID is the same, then that's fine.
If there's anything else I can do to help (except flying back to Japan), just give me a prod.
User avatar
mc
Posts: 211
Joined: Wed Jan 12, 2005 7:32 am
Location: Linköping

Post by mc »

Note that play-asia don't ship these to Europe, though...
Flying at a high speed
Having the courage
Getting over crisis
I rescue the people
Frek
Posts: 18
Joined: Thu Dec 06, 2007 3:13 pm

Post by Frek »

yesasia.com do however and it's pretty cheap.
Post Reply