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
Exception
public void shutdown()
public void serialEvent(gnu.io.SerialPortEvent serialPortEvent)
serialEvent
in interface gnu.io.SerialPortEventListener
public byte[] query(int waitTimeSinceLastReceive, byte[] sendBytes, int receiveTimeout) throws InterruptedException, IOException
InterruptedException
IOException
public byte[] readBytes(long timeout) throws InterruptedException
InterruptedException