public class SerialPortControl extends Object implements gnu.io.SerialPortEventListener
| Constructor and Description |
|---|
SerialPortControl() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
query(int waitTimeSinceLastReceive,
byte[] sendBytes,
int receiveTimeout) |
byte[] |
readBytes(long timeout) |
void |
serialEvent(gnu.io.SerialPortEvent serialPortEvent) |
void |
shutdown() |
void |
start(PropertyQueryInterface propertyQueryInterface,
String applicationName) |
public void start(PropertyQueryInterface propertyQueryInterface, String applicationName) throws Exception
Exceptionpublic void shutdown()
public void serialEvent(gnu.io.SerialPortEvent serialPortEvent)
serialEvent in interface gnu.io.SerialPortEventListenerpublic byte[] query(int waitTimeSinceLastReceive,
byte[] sendBytes,
int receiveTimeout)
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic byte[] readBytes(long timeout)
throws InterruptedException
InterruptedException