public interface Transport
| Modifier and Type | Field and Description |
|---|---|
static org.lsst.ccs.drivers.ascii.Ascii.Terminator |
MODBUS_FRAME_TERMINATOR
All ASCII Modbus commands frames and response frames must end with this.
|
static int |
SERIAL_BAUD
The baud rate to use for serial-port or FTDI connections.
|
static int |
SERIAL_CHARACTERISTICS
The data characteristics to use for serial-port or FTDI connections.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the comm link to the device.
|
String |
receive(Duration timeout)
Receives a response from the device.
|
void |
send(String command)
Sends a command to the device.
|
static final int SERIAL_BAUD
static final int SERIAL_CHARACTERISTICS
static final org.lsst.ccs.drivers.ascii.Ascii.Terminator MODBUS_FRAME_TERMINATOR
void send(String command) throws org.lsst.ccs.drivers.commons.DriverException
command - The command string, w/o the final CRLF, to send.org.lsst.ccs.drivers.commons.DriverException - for any other problem.String receive(Duration timeout) throws org.lsst.ccs.drivers.commons.DriverException
timeout - timeout.getSeconds() is how long to wait for the start of a response.org.lsst.ccs.drivers.commons.DriverTimeoutException - if no response bytes arrive before the deadline.org.lsst.ccs.drivers.commons.DriverException - for any other problem.void close()
Copyright © 2018 LSST. All rights reserved.