Class PJCVideoIO

java.lang.Object
org.mbari.vcr4j.rs422.RS422VideoIO
org.mbari.vcr4j.purejavacomm.PJCVideoIO
All Implemented Interfaces:
Closeable, AutoCloseable, VCRVideoIO, VideoIO<RS422State,RS422Error>

public class PJCVideoIO extends RS422VideoIO
Since:
2016-02-03T14:02:00
Author:
Brian Schlining
  • Field Details

    • IO_DELAY

      public static final long IO_DELAY
      Wwe 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_TIMEOUT
      Maximum 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

      public static PJCVideoIO open(String portName)
      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.NoSuchPortException
      purejavacomm.PortInUseException
      purejavacomm.UnsupportedCommOperationException
    • getConnectionID

      public String getConnectionID()