public class FTDITransport extends Object implements Transport
MODBUS_FRAME_TERMINATOR, SERIAL_BAUD, SERIAL_CHARACTERISTICS| Constructor and Description |
|---|
FTDITransport(String ident)
Opens the FTDI chip.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the comm link to the device.
|
String |
receive(java.time.Duration timeout)
Receives a response from the device.
|
void |
send(String command)
Sends a command to the device.
|
public FTDITransport(String ident) throws org.lsst.ccs.drivers.commons.DriverException
ident - The serial number string of the interface, optionally
prepended with the node name of a remote FTDI server
and separated from it by a ":"org.lsst.ccs.drivers.commons.DriverException - if the open fails.public void send(String command) throws org.lsst.ccs.drivers.commons.DriverException
public String receive(java.time.Duration timeout) throws org.lsst.ccs.drivers.commons.DriverException
receive in interface Transporttimeout - 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.Copyright © 2016 LSST. All rights reserved.