|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.BaseInstrumentPort
org.mbari.siam.core.SerialInstrumentPort
org.mbari.siam.core.PuckSerialInstrumentPort
public class PuckSerialInstrumentPort
Implements power control and communications to an instrument via serial port. Assumes a pucked instrument.
| Field Summary |
|---|
| Fields inherited from class org.mbari.siam.core.SerialInstrumentPort |
|---|
_fromInstrument, _instrumentPortSuspeneded, _serialOpen, _serialPort, _serialPortName, _toInstrument |
| Fields inherited from class org.mbari.siam.core.BaseInstrumentPort |
|---|
_powerPort |
| Fields inherited from interface org.mbari.siam.core.InstrumentPort |
|---|
RTS_SENSE |
| Constructor Summary | |
|---|---|
PuckSerialInstrumentPort(gnu.io.SerialPort serial,
java.lang.String serialName,
PowerPort power)
create a PuckSerialInstrumentPort |
|
| Method Summary | |
|---|---|
void |
connectPower()
Connect instrument to power. |
void |
disconnectPower()
Disconnect instrument power. |
InstrumentDatasheet |
getDatasheet()
get the size of the puck payload |
void |
getPuckAttention()
get the attention of the puck |
java.io.InputStream |
getPuckInputStream()
get an input stream to the puck payload |
byte[] |
getPuckPayloadMD5()
get payload MD5 bytes |
int |
getPuckPayloadSize()
get the size of the puck payload |
void |
initialize()
initialize the InstrumentPort |
boolean |
isPayloadAvailable()
returns true is a SIAM payload was found on the PUCK |
boolean |
isSensorModeSet()
if the instrument port is talking to the instrument or the puck |
boolean |
setPuckBaudRate(int baud)
set the baud rate of the puck |
void |
setPuckMode()
put the port into puck mode |
void |
setSensorMode()
put the port into sensor mode |
void |
setSensorMode(boolean force)
put the port into sensor mode. |
void |
setSerialPortParams(SerialPortParameters params)
set the serial port parameters for the serial port associated with this instrument port |
| Methods inherited from class org.mbari.siam.core.SerialInstrumentPort |
|---|
getCarrierDetectStatus, getClearToSendStatus, getCommPortName, getInputStream, getInstrumentConsole, getOutputStream, getSerialPort, getSerialPortParams, isCTS, resume, sendBreak, setCommsMode, setRTS, shutDown, suspend |
| Methods inherited from class org.mbari.siam.core.BaseInstrumentPort |
|---|
disableCommunications, enableCommunications, getCurrentLevel, getCurrentLimit, getStatusMessage, getStatusSummaryMessage, getTemperature, getTerseStatus, getVoltageLevel, isolatePort, isSuspended, resetStatus, setCurrentLimit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mbari.siam.core.InstrumentPort |
|---|
disableCommunications, enableCommunications, getCurrentLevel, getCurrentLimit, getStatusMessage, getStatusSummaryMessage, getTerseStatus, getVoltageLevel, isolatePort, isSuspended, resetStatus, setCurrentLimit |
| Constructor Detail |
|---|
public PuckSerialInstrumentPort(gnu.io.SerialPort serial,
java.lang.String serialName,
PowerPort power)
| Method Detail |
|---|
public void initialize()
throws InitializeException
initialize in interface InstrumentPortinitialize in class SerialInstrumentPortInitializeExceptionpublic void connectPower()
connectPower in interface InstrumentPortconnectPower in class BaseInstrumentPortpublic void disconnectPower()
disconnectPower in interface InstrumentPortdisconnectPower in class BaseInstrumentPort
public void setSerialPortParams(SerialPortParameters params)
throws java.io.IOException,
gnu.io.UnsupportedCommOperationException
setSerialPortParams in class SerialInstrumentPortjava.io.IOException
gnu.io.UnsupportedCommOperationException
public void getPuckAttention()
throws java.io.IOException
java.io.IOException
public java.io.InputStream getPuckInputStream()
throws java.io.IOException
java.io.IOException
public InstrumentDatasheet getDatasheet()
throws java.io.IOException
java.io.IOException
public int getPuckPayloadSize()
throws java.io.IOException
java.io.IOException
public byte[] getPuckPayloadMD5()
throws java.io.IOException
java.io.IOException
public boolean setPuckBaudRate(int baud)
throws java.io.IOException
java.io.IOException
public void setPuckMode()
throws java.io.IOException
java.io.IOException
public void setSensorMode()
throws java.io.IOException
java.io.IOException
public void setSensorMode(boolean force)
throws java.io.IOException
java.io.IOExceptionpublic boolean isSensorModeSet()
public boolean isPayloadAvailable()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||