Description:
Command controls the mode and adjustment parameters for genlock.
Form:
Command Handler: DCMD
DECODEGENLOCK|DGL|DG [SUBCOMMAND [VALUE]]
SUBCOMMAND VALUE DESCRIPTION
---------- ----- -----------
MODE OFF Disables genlock
SLAVE Enable genlock - Decode source is synchronous to SYNC IN signal
REMOTE Enable genlock - Decode source is not synchronous to SYNC IN signal
HADJUST any number Horizontal Adjust
VADJUST any number Vertical Adjust
PADJUST 0-63 Pixel Phase
STATUS No Arguments Shows the current genlock status
CVBS VIDEO CVBS output is video
SYNC CVBS output is black burst sync signal
RESET No Arguments Reset the genlock system
Response:
DECODEGENLOCK RESPONSE
Verbose- "OK\r\n" to acknowledge receipt of command, or
"ERROR- [Description]\r\n" if error, ending command
Terse- "0\r\n" to acknowledge receipt of command, or
"[NON-ZERO NUMERIC VALUE]\r\n" if error, ending command
"\r\n" concludes modify responses (empty line)
Examples:
Get the current settings:
*.DCMD DGL
OK
MODE= LOCAL
HADJUST= 40
VADJUST= 30
PADJUST= 20
CVBS= VIDEO
Turn genlock off:
*.DCMD DGL MODE OFF
OK
Terse response:
*.DCMD DG
0
0 40 30 20 0
Get the current status
*.DCMD DGL STATUS
OK
STATE= LOCKED
SYNC_SEP_FORMAT= NTSC_480_I
REF_VIDEO_STANDARD= 601_525_I
OUT_VIDEO_STANDARD= 601_525_I
VALID_CROSS_REF= TRUE
REF_LOCKED= TRUE
DEC_STATUS= DECODING
LOCK_LOST_COUNT= 0
REF_LOST_COUNT= 0
VIDEO_SKIP_COUNT= 13
VIDEO_REPEAT_COUNT= 2
Notes:
Genlock acquisition will cause a momentary loss of video and audio as the
internal clocks are synchronized with the SYNC IN input.
When in genlock mode, the system has a default calibration for each SYNC IN
format and video output resolution. Manual adjustments will need to be
re-calibrated any time the video output resolution changes.
Horizontal adjustment defines the difference in the SYNC IN HSYNC and output
HSYNC. Typically, this should be in the range of 0 to +1 line in clocks. For
example, a 1080I output could be adjusted from 0 to 2200.
Vertical adjustment defines the difference in the SYNC IN VSYNC and output
VSYNC. Typically, this should be in the range of 0 to +1 frame in lines. For
example, a 1080I output could be adjusted from 0 to 1125.
Pixel Phase adjustment is a very fine grain adjustment that can adjust within
a single clock. The increments are 1/64th of a clock. The valid range is
0 to 63.
A reset to the genlock system will use the current configuration values to
relock the system. Generally the input and output will be synchronous to
within a few pixel clocks. If the locked output is too far out of phase, the reset
can be used to relock the system to a closer value. The reset operation will
cause a temporary loss of the output video and audio as the clocks are
reacquired.