|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.minetti.astrodevice.server.plugin.device.BaseDeviceSignature org.minetti.astrodevice.server.usb.object.UsbDeviceSignature
public final class UsbDeviceSignature
Signature used for recognize the USB devices.
It is composed of:
idVendor
,idProduct
,iManufacturer
,iProduct
,bcdDevice
,iSerialNumber
,bDeviceClass
,bDeviceSubClass
,bDeviceProtocol
.
Field Summary | |
---|---|
static String |
DEVICE_CLASS_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Class code of USB device. |
static String |
DEVICE_PROTOCOL_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Protocol code of USB device. |
static String |
DEVICE_SUB_CLASS_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Subclass code of USB device. |
static String |
MANUFACTURER_NAME_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Manufacturer name of USB device. |
static String |
PRODUCT_ID_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Product ID of USB device. |
static String |
PRODUCT_NAME_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Product name of USB device. |
static String |
PRODUCT_VERSION_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Product version of USB device. |
static String |
SERIAL_NUMBER_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Serial number of USB device. |
static String |
VENDOR_ID_MAP_KEY
DESCRIPTION MAP KEY CONSTANT: Vendor ID of USB device. |
Constructor Summary | |
---|---|
UsbDeviceSignature(int vendorId,
int productId,
String manufacturerName,
String productName,
int productVersion,
String serialNumber,
short deviceClass,
short deviceSubClass,
short deviceProtocol)
Constructor. |
Method Summary | |
---|---|
String |
getBus()
|
String |
getProductDescription()
|
String |
getProductId()
|
String |
getProductVersion()
|
Map<String,Object> |
getProperties()
|
String |
getSerialNumber()
|
Methods inherited from class org.minetti.astrodevice.server.plugin.device.BaseDeviceSignature |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String VENDOR_ID_MAP_KEY
This corresponds to idVendor
field of USB specification (assigned by the
USB-IF).
Vendor ID must be between 0 and 65535 (0xFFFF).
public static final String PRODUCT_ID_MAP_KEY
This corresponds to idProduct
field of USB specification (assigned by the
manufacturer).
Product ID must be between 0 and 65535 (0xFFFF).
public static final String MANUFACTURER_NAME_MAP_KEY
This corresponds to string indexed by the iManufacturer
field of USB
specification.
Manufacturer name must be less or equal than 127 characters.
public static final String PRODUCT_NAME_MAP_KEY
This corresponds to string indexed by the iProduct
field of USB specification.
Product description must be less or equal than 127 characters.
public static final String PRODUCT_VERSION_MAP_KEY
This corresponds to bcdDevice
field of USB specification.
Product version must be between 0 and 65535 (0xFFFF).
public static final String SERIAL_NUMBER_MAP_KEY
This corresponds to string indexed by the iSerialNumber
field of USB
specification.
Product description must be less or equal than 127 characters.
public static final String DEVICE_CLASS_MAP_KEY
This corresponds to bDeviceClass
field of USB specification (assigned by the
USB-IF).
Class code must be between 0 and 255 (0xFF).
public static final String DEVICE_SUB_CLASS_MAP_KEY
This corresponds to bDeviceSubClass
field of USB specification (assigned by the
USB-IF).
Class code must be between 0 and 255 (0xFF).
public static final String DEVICE_PROTOCOL_MAP_KEY
This corresponds to bDeviceProtocol
field of USB specification (assigned by the
USB-IF).
Class code must be between 0 and 255 (0xFF).
Constructor Detail |
---|
public UsbDeviceSignature(int vendorId, int productId, String manufacturerName, String productName, int productVersion, String serialNumber, short deviceClass, short deviceSubClass, short deviceProtocol)
vendorId
- Vendor ID of USB device (must be between 0 and 65535). This corresponds to
idVendor
field of USB specification (assigned by the USB-IF).productId
- Product ID of USB device (must be between 0 and 65535). This corresponds to
idProduct
field of USB specification (assigned by the manufacturer).manufacturerName
- Manufacturer name of USB device (must be less or equal than 127
characters). This corresponds to string indexed by the iManufacturer
field of USB specification.productName
- Product name of USB device (must be less or equal than 127 characters).
This corresponds to string indexed by the iProduct
field of USB
specification.productVersion
- Product version of USB device (must be between 0 and 65535). This
corresponds to bcdDevice
field of USB specification (assigned by the
manufacturer).serialNumber
- Serial number of USB device (must be less or equal than 127 characters).
This corresponds to string indexed by the iSerialNumber
field of USB
specification.deviceClass
- Class code of USB device (must be between 0 and 255). This corresponds to
bDeviceClass
field of USB specification (assigned by the USB-IF).deviceSubClass
- Subclass code of USB device (must be between 0 and 255). This
corresponds to bDeviceSubClass
field of USB specification (assigned
by the USB-IF).deviceProtocol
- Protocol code of USB device (must be between 0 and 255). This
corresponds to bDeviceProtocol
field of USB specification (assigned
by the USB-IF).Method Detail |
---|
public String getBus()
getBus
in interface org.minetti.astrodevice.common.device.DeviceSignature
public String getProductId()
getProductId
in interface org.minetti.astrodevice.common.device.DeviceSignature
public String getProductDescription()
getProductDescription
in interface org.minetti.astrodevice.common.device.DeviceSignature
public String getProductVersion()
getProductVersion
in interface org.minetti.astrodevice.common.device.DeviceSignature
public String getSerialNumber()
getSerialNumber
in interface org.minetti.astrodevice.common.device.DeviceSignature
public Map<String,Object> getProperties()
getProperties
in interface org.minetti.astrodevice.common.device.DeviceSignature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |