Talk:Move Motion Controller: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Device Descriptor) |
||
Line 1: | Line 1: | ||
http://www.acidmods.com/forum/index.php?topic=39107.0 | http://www.acidmods.com/forum/index.php?topic=39107.0 | ||
== Device Descriptor == | |||
http://www.motioninjoy.com/wiki/en/hardware/psmove | |||
{| class="wikitable" | |||
|- | |||
! colspan="5" style="background-color:#C0C0C0; color:#000000;" |[http://linuxcommand.org/man_pages/lsusb8.html Device Descriptor] | |||
|- | |||
! Offset | |||
! Field | |||
! Size | |||
! Value | |||
! Description | |||
|- | |||
| 0 || bLength || 1 || 0x12 || Size of this descriptor in bytes (18) | |||
|- | |||
| 1 || bDescriptorType || 1 || 0x01 || DEVICE descriptor type (Constant = 1) | |||
|- | |||
| 2 || bcdUSB || 2 || 0x0200 || USB Spec release number ([http://en.wikipedia.org/wiki/USB#USB_2.0 2.00]): | |||
<small>with which the device and is descriptors are compliant (e.g.: 0x0200 (USB2.0), 0x0300, | |||
(USB3.0))</small> | |||
|- | |||
| 4 || bDeviceClass || 1 || 0x00 || [http://www.usb.org/developers/defined_class Class code] assigned by [http://en.wikipedia.org/wiki/USB_Implementers_Forum USB-IF:] | |||
<small>(used by the operating system to find a class driver for your device)</small> | |||
<small> | |||
*00h means each interface defines its own class (identify itself at the interface level: bInterfaceClass) | |||
*FFh means vendor-defined class | |||
*Any other value must be a class code | |||
</small> | |||
|- | |||
| 5 || bDeviceSubClass || 1 || 0x00 || SubClass Code assigned by USB-IF | |||
<small>(used by the operating system to find a class driver for your device)</small> | |||
|- | |||
| 6 || bDeviceProtocol || 1 || 0x00 || Protocol Code assigned by USB-IF | |||
<small>(used by the operating system to find a class driver for your device)</small> | |||
|- | |||
| 7 || bMaxPacketSize0 || 1 || 0x40 || Max packet size for endpoint 0. (64) | |||
<small> | |||
*Must be 8, 16, 32 or 64 | |||
*Must be 9 according to [http://www.usb.org/developers/tools/USB30CVSpec_1_4.pdf Compliance Test Specification for the USB 3.0 Architecture p29 9.1] | |||
</small> | |||
|- | |||
| 8 || idVendor || 2 || 0x054C || [http://www.linux-usb.org/usb.ids Vendor ID (VID)] (Sony Corp.) | |||
<small> | |||
must be obtained from USB-IF | |||
(used by the operating system to find a driver for your device)</small> | |||
|- | |||
| 10 || idProduct || 2 || 0x03D5 || Product ID (PID) - | |||
<small> | |||
assigned by the manufacturer | |||
(used by the operating system to find a driver for your device)</small> | |||
|- | |||
| 12 || bcdDevice || 2 || 0x0220 || Device release number (Version: 2.20) | |||
<small>in binary coded decimal</small> | |||
|- | |||
| 14 || iManufacturer || 1 || 0x01 || Index of string descriptor describing manufacturer | |||
<small>set to 0 if no string</small> | |||
|- | |||
| 15 || iProduct || 1 || 0x02 || Index of string descriptor describing product | |||
<small>set to 0 if no string</small> | |||
|- | |||
| 16 || iSerialNumber || 1 || 0x00 || Index of string descriptor describing device serial number<BR /> <small>set to 0 if no string</small> | |||
|- | |||
| 17 || bNumConfigurations || 1 || 0x01 || Number of possible configurations | |||
|- | |||
|} |
Latest revision as of 13:38, 2 February 2014
http://www.acidmods.com/forum/index.php?topic=39107.0
Device Descriptor[edit source]
http://www.motioninjoy.com/wiki/en/hardware/psmove
Device Descriptor | ||||
---|---|---|---|---|
Offset | Field | Size | Value | Description |
0 | bLength | 1 | 0x12 | Size of this descriptor in bytes (18) |
1 | bDescriptorType | 1 | 0x01 | DEVICE descriptor type (Constant = 1) |
2 | bcdUSB | 2 | 0x0200 | USB Spec release number (2.00):
with which the device and is descriptors are compliant (e.g.: 0x0200 (USB2.0), 0x0300, (USB3.0)) |
4 | bDeviceClass | 1 | 0x00 | Class code assigned by USB-IF:
(used by the operating system to find a class driver for your device)
|
5 | bDeviceSubClass | 1 | 0x00 | SubClass Code assigned by USB-IF
(used by the operating system to find a class driver for your device) |
6 | bDeviceProtocol | 1 | 0x00 | Protocol Code assigned by USB-IF
(used by the operating system to find a class driver for your device) |
7 | bMaxPacketSize0 | 1 | 0x40 | Max packet size for endpoint 0. (64)
|
8 | idVendor | 2 | 0x054C | Vendor ID (VID) (Sony Corp.)
must be obtained from USB-IF (used by the operating system to find a driver for your device) |
10 | idProduct | 2 | 0x03D5 | Product ID (PID) -
assigned by the manufacturer (used by the operating system to find a driver for your device) |
12 | bcdDevice | 2 | 0x0220 | Device release number (Version: 2.20)
in binary coded decimal |
14 | iManufacturer | 1 | 0x01 | Index of string descriptor describing manufacturer
set to 0 if no string |
15 | iProduct | 1 | 0x02 | Index of string descriptor describing product
set to 0 if no string |
16 | iSerialNumber | 1 | 0x00 | Index of string descriptor describing device serial number set to 0 if no string |
17 | bNumConfigurations | 1 | 0x01 | Number of possible configurations |