Find the answer to your Linux question:
Results 1 to 4 of 4
Hello I'm trying to find the way of distuguish between the same joysticks (logitech Extreme 3D) connected via usb to my machine. I have 3 of them and they should ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    2

    unique identify the same class of hid device(how to get joystick serial number)


    Hello
    I'm trying to find the way of distuguish between the same joysticks (logitech Extreme 3D) connected via usb to my machine. I have 3 of them and they should control different things. The problem is when U reboot your PC. Joystics have different /dev/input/jsX numbers. I have checked about 100 times(bash scripts) and usb device numbers and jsX where in many times differs. I have also studied pci names but they also changes from time to time.
    Is there any way on get some unique info that can be use to detect those joysticks.
    My last hope was lsusb -v info
    but listings for them is also indentical
    Code:
    Bus 003 Device 004: ID 046d:c215 Logitech, Inc. 
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0         8
      idVendor           0x046d Logitech, Inc.
      idProduct          0xc215 
      bcdDevice            2.04
      iManufacturer           1 Logitech
      iProduct                2 Logitech Extreme 3D
      iSerial                 0 
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           34
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
        MaxPower               30mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         3 Human Interface Devices
          bInterfaceSubClass      0 No Subclass
          bInterfaceProtocol      0 None
          iInterface              0 
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.10
              bCountryCode           33 US
              bNumDescriptors         1
              bDescriptorType        34 Report
              wDescriptorLength     122
    cannot get report descriptor
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0007  bytes 7 once
            bInterval              10
      Language IDs: (length=4)
         0409 English(US)
    
    Bus 003 Device 002: ID 046d:c215 Logitech, Inc. 
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0         8
      idVendor           0x046d Logitech, Inc.
      idProduct          0xc215 
      bcdDevice            2.04
      iManufacturer           1 Logitech
      iProduct                2 Logitech Extreme 3D
      iSerial                 0 
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           34
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
        MaxPower               30mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         3 Human Interface Devices
          bInterfaceSubClass      0 No Subclass
          bInterfaceProtocol      0 None
          iInterface              0 
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.10
              bCountryCode           33 US
              bNumDescriptors         1
              bDescriptorType        34 Report
              wDescriptorLength     122
    cannot get report descriptor
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0007  bytes 7 once
            bInterval              10
      Language IDs: (length=4)
         0409 English(US)
    
    Bus 003 Device 001: ID 0000:0000  
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            9 Hub
      bDeviceSubClass         0 Unused
      bDeviceProtocol         0 
      bMaxPacketSize0        64
      idVendor           0x0000 
      idProduct          0x0000 
      bcdDevice            2.06
      iManufacturer           3 Linux 2.6.15.3-0.7.etc.fc3-smp ohci_hcd
      iProduct                2 OHCI Host Controller
      iSerial                 1 0000:00:0b.1
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           25
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0xe0
          Self Powered
          Remote Wakeup
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         9 Hub
          bInterfaceSubClass      0 Unused
          bInterfaceProtocol      0 
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0002  bytes 2 once
            bInterval             255
    Hub Descriptor:
      bLength               9
      bDescriptorType      41
      nNbrPorts             5
      wHubCharacteristic 0x0002
        No power switching (usb 1.0)
        Ganged overcurrent protection
      bPwrOn2PwrGood        1 * 2 milli seconds
      bHubContrCurrent      0 milli Ampere
      DeviceRemovable    0x44
      PortPwrCtrlMask    0x00 
      Language IDs: (length=4)
         0409 English(US)
    
    Bus 002 Device 004: ID 046d:c215 Logitech, Inc. 
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0         8
      idVendor           0x046d Logitech, Inc.
      idProduct          0xc215 
      bcdDevice            2.04
      iManufacturer           1 Logitech
      iProduct                2 Logitech Extreme 3D
      iSerial                 0 
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           34
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
        MaxPower               30mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         3 Human Interface Devices
          bInterfaceSubClass      0 No Subclass
          bInterfaceProtocol      0 None
          iInterface              0 
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.10
              bCountryCode           33 US
              bNumDescriptors         1
              bDescriptorType        34 Report
              wDescriptorLength     122
    cannot get report descriptor
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0007  bytes 7 once
            bInterval              10
      Language IDs: (length=4)
         0409 English(US)
    
    Bus 002 Device 003: ID 046d:c215 Logitech, Inc. 
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 (Defined at Interface level)
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0         8
      idVendor           0x046d Logitech, Inc.
      idProduct          0xc215 
      bcdDevice            2.04
      iManufacturer           1 Logitech
      iProduct                2 Logitech Extreme 3D
      iSerial                 0 
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           34
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
        MaxPower               30mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         3 Human Interface Devices
          bInterfaceSubClass      0 No Subclass
          bInterfaceProtocol      0 None
          iInterface              0 
            HID Device Descriptor:
              bLength                 9
              bDescriptorType        33
              bcdHID               1.10
              bCountryCode           33 US
              bNumDescriptors         1
              bDescriptorType        34 Report
              wDescriptorLength     122
    cannot get report descriptor
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0007  bytes 7 once
            bInterval              10
      Language IDs: (length=4)
         0409 English(US)
    
    Bus 002 Device 001: ID 0000:0000  
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            9 Hub
      bDeviceSubClass         0 Unused
      bDeviceProtocol         0 
      bMaxPacketSize0        64
      idVendor           0x0000 
      idProduct          0x0000 
      bcdDevice            2.06
      iManufacturer           3 Linux 2.6.15.3-0.7.etc.fc3-smp ohci_hcd
      iProduct                2 OHCI Host Controller
      iSerial                 1 0000:00:0b.0
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           25
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0xe0
          Self Powered
          Remote Wakeup
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         9 Hub
          bInterfaceSubClass      0 Unused
          bInterfaceProtocol      0 
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0002  bytes 2 once
            bInterval             255
    Hub Descriptor:
      bLength               9
      bDescriptorType      41
      nNbrPorts             5
      wHubCharacteristic 0x0002
        No power switching (usb 1.0)
        Ganged overcurrent protection
      bPwrOn2PwrGood        1 * 2 milli seconds
      bHubContrCurrent      0 milli Ampere
      DeviceRemovable    0x44
      PortPwrCtrlMask    0x00 
      Language IDs: (length=4)
         0409 English(US)
    
    Bus 001 Device 001: ID 0000:0000  
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            9 Hub
      bDeviceSubClass         0 Unused
      bDeviceProtocol         1 Single TT
      bMaxPacketSize0        64
      idVendor           0x0000 
      idProduct          0x0000 
      bcdDevice            2.06
      iManufacturer           3 Linux 2.6.15.3-0.7.etc.fc3-smp ehci_hcd
      iProduct                2 EHCI Host Controller
      iSerial                 1 0000:00:0b.2
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           25
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0xc0
          Self Powered
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         9 Hub
          bInterfaceSubClass      0 Unused
          bInterfaceProtocol      0 
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               none
              Usage Type               Data
            wMaxPacketSize     0x0002  bytes 2 once
            bInterval              12
    Hub Descriptor:
      bLength              11
      bDescriptorType      41
      nNbrPorts            10
      wHubCharacteristic 0x000a
        No power switching (usb 1.0)
        Per-port overcurrent protection
        TT think time 8 FS bits
      bPwrOn2PwrGood       10 * 2 milli seconds
      bHubContrCurrent      0 milli Ampere
      DeviceRemovable    0x44 0x00
      PortPwrCtrlMask    0x00  0x00 
      Language IDs: (length=4)
         0409 English(US)
    Is it possible to get joystick S/N ?
    Rafal

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums, ravjak!

    If you haven't already done so, take a look at lshw to see if it might work for you:

    HardwareLiSter - ezIX

    I really don't know off hand if it gives info that detailed, or not, but it looks like it might.
    oz

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Posts
    2
    Hello ozar

    this info from lshw

    Code:
    *-usb:0
                    description: Human interface device
                    product: Saitek Cyborg USB Stick
                    vendor: Saitek PLC
                    physical id: 1
                    bus info: usb@2:1
                    version: 1.11
                    capabilities: usb-2.00
                    configuration: driver=usbhid maxpower=100mA speed=1.5MB/s
               *-usb:1
                    description: Human interface device
                    product: Saitek Cyborg USB Stick
                    vendor: Saitek PLC
                    physical id: 2
                    bus info: usb@2:2
                    version: 1.10
                    capabilities: usb-2.00
                    configuration: driver=usbhid maxpower=100mA speed=1.5MB/s
    lsusb -v gives more info

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Sorry it didn't work out. I'll post again if I should run across anything else that might work.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •