java.lang.Object
org.mbari.vcr4j.rs422.RS422VideoIO
org.mbari.vcr4j.purejavacomm.PJCVideoIO
- All Implemented Interfaces:
Closeable,AutoCloseable,VCRVideoIO,VideoIO<RS422State,RS422Error>
- Since:
- 2016-02-03T14:02:00
- Author:
- Brian Schlining
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longWwe have to put the thread to sleep VERY briefly in order for the serial io to workstatic final longMaximum receive timeout in millisecs -
Constructor Summary
ConstructorsConstructorDescriptionPJCVideoIO(purejavacomm.SerialPort serialPort, InputStream inputStream, OutputStream outputStream) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static PJCVideoIOFactory method.static purejavacomm.SerialPortopenSerialPort(String serialPortName) Methods inherited from class org.mbari.vcr4j.rs422.RS422VideoIO
getCommandSubject, getErrorObservable, getIndexObservable, getInputStream, getOutputStream, getResponseParser, getStateObservable, getTimecodeObservable, getUserbitsObservable, readResponse, send, sendCommand
-
Field Details
-
IO_DELAY
public static final long IO_DELAYWwe have to put the thread to sleep VERY briefly in order for the serial io to work- See Also:
-
RECEIVE_TIMEOUT
public static final long RECEIVE_TIMEOUTMaximum receive timeout in millisecs- See Also:
-
-
Constructor Details
-
PJCVideoIO
public PJCVideoIO(purejavacomm.SerialPort serialPort, InputStream inputStream, OutputStream outputStream)
-
-
Method Details
-
close
public void close() -
open
Factory method. Use this to open a connection- Parameters:
portName-- Returns:
-
openSerialPort
public static purejavacomm.SerialPort openSerialPort(String serialPortName) throws purejavacomm.NoSuchPortException, purejavacomm.PortInUseException, purejavacomm.UnsupportedCommOperationException - Throws:
purejavacomm.NoSuchPortExceptionpurejavacomm.PortInUseExceptionpurejavacomm.UnsupportedCommOperationException
-
getConnectionID
-