public class FTDITransport extends Object implements Transport
ftdi_sio and
usbserial in order to see the raw FTDI chip.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(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 preceded with the node name or IP
address 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(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 © 2018 LSST. All rights reserved.