public class TrippLitePDU
extends org.lsst.ccs.drivers.ascii.Ascii
org.lsst.ccs.drivers.ascii.Ascii.DataBits, org.lsst.ccs.drivers.ascii.Ascii.FlowCtrl, org.lsst.ccs.drivers.ascii.Ascii.Option, org.lsst.ccs.drivers.ascii.Ascii.Parity, org.lsst.ccs.drivers.ascii.Ascii.StopBits, org.lsst.ccs.drivers.ascii.Ascii.Terminator| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BAUD |
static String |
DEFAULT_DEV |
static int |
timeout |
| Constructor and Description |
|---|
TrippLitePDU()
Constructor * *
**************************************************************************
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
boolean |
isOutletOn(int chan)
Gets the TrippLitePDU channel power state.
|
void |
open(String devname,
int port) |
void |
openftdi(String serialname,
int port,
int major_version)
Opens an FTDI connection.
|
void |
opennet(String netaddress,
int port,
int major_version)
Opens a Network connection.
|
void |
openserial(String serialname,
int port)
Opens an FTDI connection.
|
String |
readTrippLite()
Reads a response.
|
String |
readTrippLite(String command)
Reads a response after writing a command.
|
void |
setOutletState(int chan,
boolean state)
Gets the TrippLitePDU channel power state.
|
void |
setOutletState2(int chan,
boolean state)
Gets the TrippLitePDU channel power state.
|
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
void |
writeTrippLite(String command)
Writes a command.
|
closeSilent, flush, makeDataCharacteristics, open, open, open, open, openFtdi, openFtdi, openNet, openSerial, openSerial, read, read, readBytes, readBytes, setCommandTerm, setResponseTerm, setTerminator, setTerminator, setTimeout, setTimeout, write, writeBytes, writeBytespublic static int timeout
public static final int DEFAULT_BAUD
public static final String DEFAULT_DEV
public TrippLitePDU()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String devname, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void openserial(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int port, int major_version) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void opennet(String netaddress, int port, int major_version) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverException - *************************************************************************public boolean isOutletOn(int chan)
throws org.lsst.ccs.drivers.commons.DriverException,
org.lsst.ccs.drivers.commons.DriverTimeoutException
chan - org.lsst.ccs.drivers.commons.DriverException - **************************************************************************org.lsst.ccs.drivers.commons.DriverTimeoutExceptionpublic void setOutletState(int chan,
boolean state)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setOutletState2(int chan,
boolean state)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void writeTrippLite(String command) throws org.lsst.ccs.drivers.commons.DriverException
The - command to writeorg.lsst.ccs.drivers.commons.DriverException - *
*************************************************************************public String readTrippLite() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - *************************************************************************public String readTrippLite(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionpublic void Sleep(double secs)
Copyright © 2018 LSST. All rights reserved.