Module vcr4j.rs422

Class RS422State

java.lang.Object
org.mbari.vcr4j.rs422.RS422State
All Implemented Interfaces:
VideoState

public class RS422State extends Object implements VideoState
  • Field Details

    • OTHER_STATUS_REPLY

      public static final byte[] OTHER_STATUS_REPLY
      Corrected LTC time data
    • STATUS_REPLY

      public static final byte[] STATUS_REPLY
    • STS_BAD_COMM

      public static final long STS_BAD_COMM
      bit representing bad communications. 1 = bad comuunications, 0 = communications are OK.
      See Also:
    • STS_CUE_UP

      public static final long STS_CUE_UP
      bit representing cueing status. 1 = cueing up, 0 = not cueing up
      See Also:
    • STS_DIRECTION

      public static final long STS_DIRECTION
      Bit representing direction, 1 = reverse, 0= forward Sony documentation states STS_DIRECTION = 0x0040000L. However, we found it is STS_DIRECTION = 0x0000004L
      See Also:
    • STS_FAST_FWD

      public static final long STS_FAST_FWD
      Bit representing fast-forward mode. 1 if the VCR is fast-forwarding, 0 otherwise
      See Also:
    • STS_HW_ERROR

      public static final long STS_HW_ERROR
      bit representing hardware error, 1 = error, 0 = no error. A typical error is due to overheating. NOTE: Documentation states: STS_HW_ERROR = 0x0000004L; However we found that is used by the VCR to indicate direction
      See Also:
    • STS_JOG

      public static final long STS_JOG
      bit representing jog mode, 1 = jog mode, 0 = not jog mode.
      See Also:
    • STS_LOCAL

      public static final long STS_LOCAL
      See Also:
    • STS_PLAY

      public static final long STS_PLAY
      Bit representing play mode. 1 if the VCR is playing, 0 otherwise
      See Also:
    • STS_RECORD

      public static final long STS_RECORD
      Bit representing record mode. 1 if the VCR is recording, 0 otherwise
      See Also:
    • STS_REWIND

      public static final long STS_REWIND
      Bit representing rewind mode. 1 if the VCR is rewinding, 0 otherwise
      See Also:
    • STS_SERVO_LOCK

      public static final long STS_SERVO_LOCK
      Bit representing servo lock. 1 when the VCR is in the following conditions:
      1. The drum and capstan servos are locked in play mode
      2. The drum servo is locked in a mode other than play mode
      3. During STANDBY OFF
      See Also:
    • STS_SERVO_REF

      public static final long STS_SERVO_REF
      1 when the signal selected by the SERVO REF selector on the front panel is not inputted. (I don't know what this means either, thats a direct quote from the documentation.)
      See Also:
    • STS_SHUTTLE

      public static final long STS_SHUTTLE
      Bit representing shuttle mode, 1 = vcr is shuttiling, 0= is not shuttiling. Use in combintation with STS_DIRECTION to determine if the VCR is shuttiling forward or in reverse

      Note: Sony documentation says: STS_SHUTTLE = 0x0200000L. However we found it to be STS_SHUTTLE = 0x0000020
      See Also:
    • STS_STANDBY

      public static final long STS_STANDBY
      Bit representing stand-by mode. 1 if the VCR is standing-by, 0 otherwise. Note: The VCR always seems to be standing-by. I'm not sure what would cause the VCR to NOT stand-by.
      See Also:
    • STS_STILL

      public static final long STS_STILL
      bit reprepresenting still status, 1 when the tape stops during stop or search mode and the CONTROLLED DEVICE goes into the still mode. (Again, not sure exactly, when this occurs. Use isStopped() instead.
      See Also:
    • STS_STOP

      public static final long STS_STOP
      Bit representing stop mode. 1 if the VCR is stopped, 0 otherwise
      See Also:
    • STS_TAPE_END

      public static final long STS_TAPE_END
      Bit indicating if the end of the tape has been reached. 1 if it's the end of the tape, 0 otherwise
      See Also:
    • STS_TAPE_TROUBLE

      public static final long STS_TAPE_TROUBLE
      bit representing tape trouble, 1 = trouble, 0 = no trouble.
      See Also:
    • STS_TSO

      public static final long STS_TSO
      Bit representing auto edit mode, 1 when the VCR is in auto edit mode, 0 otherwise.
      See Also:
    • STS_UNTHREAD

      public static final long STS_UNTHREAD
      WARNING: This bit maks is incorrectly defined in the sony documentation. It is currently no implemented
      See Also:
    • STS_VARSPEED

      public static final long STS_VARSPEED
      bit representing var mode. 1 when the VCR is in the following modes:
      1. VAR SLOW mode
      2. VAR MEMORY PLAY mode
      3. CAPSTAN OVERRIDE mode
      See Also:
    • STOPPED

      public static final RS422State STOPPED
  • Constructor Details

    • RS422State

      public RS422State(long status)
  • Method Details

    • isBadCommunication

      public boolean isBadCommunication()
      TODO 20031001 brian: What does this mean? Not defined in the 9-pin protocol
      Returns:
      not really sure what this is.
    • isConnected

      public boolean isConnected()
      Specified by:
      isConnected in interface VideoState
    • isCueingUp

      public boolean isCueingUp()
      Specified by:
      isCueingUp in interface VideoState
      Returns:
      True when a cue-up operation is completed. Reruns false as soon as the tape starts running.
    • isFastForwarding

      public boolean isFastForwarding()
      Specified by:
      isFastForwarding in interface VideoState
      Returns:
      True if the VCR is fast-forwarding
    • isHardwareError

      public boolean isHardwareError()
      Returns:
      True if a hardware error occurs in the Sony VCR. Errors may be due to power supply overheating, motor drive circuitry overheating, tape path system error, or communication error between servo and system control.
    • isJogging

      public boolean isJogging()
      Returns:
      True if the CONTROLLED DEVICE is in jog mode.
    • isLocal

      public boolean isLocal()
      Returns:
      True when the REMOTE/LOCAL switch on the front panel is set to LOCAL or when the REMOTE/LOCAL switch is set to REMOTE and the REMOTE switch S6 on the SY-70 board is set to REMOTE-3
    • isPlaying

      public boolean isPlaying()
      Specified by:
      isPlaying in interface VideoState
      Returns:
      True if the VCR is playing.
    • isRecording

      public boolean isRecording()
      Returns:
      True if the VCR is recording
    • isReverseDirection

      public boolean isReverseDirection()
      Specified by:
      isReverseDirection in interface VideoState
      Returns:
      True if the tape in the vcr is moving backwards, i.e. during rewinds shuttiling backwards, or reverse playing. False if the VCR is playing, fast-forwarding, or shuttiling forwards
    • isRewinding

      public boolean isRewinding()
      Specified by:
      isRewinding in interface VideoState
      Returns:
      True if the VCR is rewinding.
    • isServoLock

      public boolean isServoLock()
      Returns:
      True when the VCR is in the following conditions:
      1. The drum and capstan servos are locked in play mode
      2. The drum servo is locked in a mode other than play mode
      3. During STANDBY OFF
    • isServoRef

      public boolean isServoRef()
      Returns:
      True when the signal selected by the SERVO REF selector on the front panel is not inputted. (I don't know what this means either, thats a direct quote from the documentation.)
    • isShuttling

      public boolean isShuttling()
      Specified by:
      isShuttling in interface VideoState
      Returns:
      True if the VCR is in shuttiling mode (either forward or reverse). Use the isReverseDirection() method in conjuncton with this isShuttling to determine if the VCR is shuttiling forward or backwards.
    • isStandingBy

      public boolean isStandingBy()
      Returns:
      True if the VCR is Standying by. (i.e When the CONTROLLED DEVICE recieves the "20.05: standby on" command and goes into stand-by on mode. Note: I've never seen the VCR return anything but true for this status bit. I'm not sure what would cause the VCR to NOT standby
    • isStill

      public boolean isStill()
      Returns:
      True when the tape stops during stop or search mode and the CONTROLLED DEVICE goes into the still mode. (Again, not sure exactly, when this occurs. Use isStopped() instead.
    • isStopped

      public boolean isStopped()
      Specified by:
      isStopped in interface VideoState
      Returns:
      True if the VCR is in stop mode.
    • isTapeEnd

      public boolean isTapeEnd()
      Returns:
      True if the end of the tape is reached
    • isTapeTrouble

      public boolean isTapeTrouble()
      Returns:
      True when a trouble such as he tape sticking to the drum occurs.
    • isTso

      public boolean isTso()
      Returns:
      True when the VCR is in auto edit mode.
    • isUnthreaded

      public boolean isUnthreaded()
      Returns:
      True when there is no tape threading on the controlled device.
    • isVarSpeed

      public boolean isVarSpeed()
      Returns:
      True when the VCR is in the following modes:
      1. VAR SLOW mode
      2. VAR MEMORY PLAY mode
      3. CAPSTAN OVERRIDE mode
    • isStatusReply

      public static boolean isStatusReply(byte[] cmd)