public interface IUsb2SerialManagerService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface.
|
static java.lang.String |
USB2SERIAL_ATTACHED_TOPIC |
static java.lang.String |
USB2SERIAL_DETACHED_TOPIC |
static java.lang.String |
USB2SERIAL_PROPERTY_USB_PORT_ADDRESS |
static java.lang.String |
USB2SERIAL_PROPERTY_USB_SERIAL_PORT |
Modifier and Type | Method and Description |
---|---|
boolean |
areDevicesPresent()
This method returns whether or not there are any devices currently attached.
|
java.lang.String[] |
getDeviceUsbPorts()
Returns an array of Strings that represent the USB port names of the connected devices
|
java.lang.String |
getProductID(java.lang.String usbPortAddress)
Reports product ID of USB-to-Serial device attached to a specified USB port.
|
java.lang.String |
getSerialPort(java.lang.String usbPortNumber)
This method returns the serial port that has been assigned to the USB-to-Serial device attached to a specified USB port.
|
java.lang.String |
getVendorID(java.lang.String usbPortAddress)
Reports vendor ID of USB-to-Serial device attached to a specified USB port.
|
void |
registerListener(Usb2SerialListener listener)
This method registers an USB-To-Serial Listener to be notified when a device has been attached or detached
|
void |
unregisterListener(Usb2SerialListener listener)
This method unregisters an USB-To-Serial Listener
|
static final java.lang.String SERVICE_NAME
static final java.lang.String USB2SERIAL_ATTACHED_TOPIC
static final java.lang.String USB2SERIAL_DETACHED_TOPIC
static final java.lang.String USB2SERIAL_PROPERTY_USB_PORT_ADDRESS
static final java.lang.String USB2SERIAL_PROPERTY_USB_SERIAL_PORT
boolean areDevicesPresent()
java.lang.String[] getDeviceUsbPorts()
java.lang.String getSerialPort(java.lang.String usbPortNumber)
usbPortNumber
- A String representing the USB port that the device is plugged into.java.lang.String getVendorID(java.lang.String usbPortAddress)
usbPortAddress
- - address of USB port as String
String
java.lang.String getProductID(java.lang.String usbPortAddress)
usbPortAddress
- - address of USB port as String
String
void registerListener(Usb2SerialListener listener)
listener
- A class implementing the Usb2SerialListener interfacevoid unregisterListener(Usb2SerialListener listener)
listener
- A class implementing the Usb2SerialListener interfaceCopyright © 2009 Eurotech Inc. All rights reserved.