public class AP9630UPS
extends org.lsst.ccs.drivers.ascii.Session
| Modifier and Type | Field and Description |
|---|---|
static int |
ST_BATTERY
Public constants
|
static int |
ST_OFFLINE
Public constants
|
static int |
ST_ONLINE
Public constants
|
| Constructor and Description |
|---|
AP9630UPS()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection
|
double |
getBatteryCharge()
Gets the battery charge state
|
double |
getBatteryVoltage()
Gets the battery voltage
|
String |
getFWVersion()
Gets the firmware version
|
double |
getOutputCurrent()
Gets the output current
|
double |
getOutputPower()
Gets the output power percent
|
double |
getOutputVoltage()
Gets the output voltage
|
String |
getProductName()
Gets the product name
|
int |
getRunTime()
Gets the remaining run time
|
int |
getStatus()
Gets the UPS status
|
double |
getTemperature()
Gets the battery temperature
|
void |
open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident)
Opens a connection.
|
void |
open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident,
String username,
String password)
Opens a connection and logs in.
|
String[] |
receiveString(String command)
Sends a command and receives a string array
|
public static final int ST_ONLINE
public static final int ST_BATTERY
public static final int ST_OFFLINE
public void open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident,
String username,
String password)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The enumerated connection type: TELNET, FTDI or SERIALident - The host name (TELNET), USB ID (FTDI) or port name (SERIAL)username - The user namepassword - The passwordorg.lsst.ccs.drivers.commons.DriverExceptionpublic void open(org.lsst.ccs.drivers.ascii.Session.ConnType connType,
String ident)
throws org.lsst.ccs.drivers.commons.DriverException
connType - The enumerated connection type: TELNET, FTDI or SERIALident - The host name (TELNET), USB ID (FTDI) or port name (SERIAL)org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Sessionorg.lsst.ccs.drivers.commons.DriverExceptionpublic String getProductName() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getFWVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getOutputVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getOutputCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getOutputPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getBatteryVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double getBatteryCharge()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getRunTime()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.