Sony HSR-1-1P User Manual

A-A0R-107-11(1)
Digital Surveillance Recorder
Protocol Manual
HSR-1/1P
1999 by Sony Corporation
Purpose of This Manual
This manual describes the procedure for controling the HSR-1/1P Digital Surveillance Recorder using the RS-232C from an external computer, etc. The RS-232C is the EIA standard for the interface of the communication via a modem between data terminal equipment. In this interface, data are transferred serially bit by bit. Since the RS-232C interface is employed in most computers as a standard interface, it can be used in a wide range of applications.
Table of Contents
Overview ............................................................................................... 3
Signal Connections ........................................................................................3
Data Format ...................................................................................................3
Command Table.............................................................................................3
Communication Protocol .................................................................... 4
Detailed Descriptions of Commands ................................................. 5
VTR Return Commands ................................................................................5
Numerical Value Commands.........................................................................5
General Purpose Control Commands ............................................................6
Mode Control Commands..............................................................................6
Status Request Commands ..........................................................................10
Tape Run System Commands......................................................................16
Menu ITEM Numbers and Set Values.........................................................18
2
Overview
Signal Connections
The signals used in the HSR-1/1P are shown below.
PC
DCD RxD TxD DTR GND DSR RTS CTS RI
Connection cable
1 2 3 4 5 6 7 8 9
RS-232C interface
Use a cross-wire (flipped) cable to connect a computer to the HSR-1/1P. The RTS and CTS are not controlled and are shorted in a VTR. Therefore, either set the computer so as not to control the RTS/CTS signals or connect wires between the pin 7 and pin 8 as shown by the broken lines in the figure above.
VTR
1
RxD
2 3 4 5 6 7 8
TxD
DTR
GND
DSR RTS CTS
9
Data Format
The data format is preset as shown below. Only the baud rate can be changed.
Mode: Asynchronous Data Length: 8 bits Parity: None Stop Bit: 1 bit Baud Rate: 1200/2400/4800/9600/19200/38400
bps
Bit Structure
START
D0 D1 D2 D3 D4 D5 D6 D7
BIT
Note
This interface may not operate at 19200 or 38400 bps, depending upon the specifications of the computer and characteristics of the cable. Select a lower baud rate.
STOP
BIT
Command Table
0 1 2 3 4 5 6 7 8 1.9 3.9 A B C 3.C D E F
00RETNE
1
2RORRE2
3
44 NOKCOL 5 6NIMRALA6.L.C
77
88
99
AKCATCEJE
BKAN
C
DD
EE
F
-ELPMOC
NOIT
ETTESSAC
TUO
TON
TEGRAT
1.E.C
3
5 FFOKCOL
YALP
A/
PETSDWF
B
LLITSDNA PETSVER
C WER
LLITSDNA
POTS
F/
NOISREV
QNI
ECIVED
EPYT
TSEUQER
NEERCS
EDIVED
NEERCS
OTUA
+
EGNAHC AREMAC
TCELES
D/T
TESERP
MRALA
TES
DEVRESER
D/T
HCRAES
MRALA
HCRAES
CER
EDOM
CER
TESERP
MRALA
TESERP
REMIT
TESERP
RESU ATAD
TESERP
UNEM
TESERP
DEVRESERDEVRESER
DWF
ELTTUHS
VER
ELTTUHS
CER
DWF.F
SUTATS
ESNES
AREMAC
DAEH
ESNES
SRUOH
D/T
ESNES
MRALA
ESNES EMARF
ESNES
MRALA
TSIL
ESNES
CER
EDOM
ESNES
CER
ESNES
MRALA
ESNES
REMIT
ESNES
RESU ATAD
ESNES
UNEM
ESNES
-AREPO
NOIT
SRUOH
1-PXE
TESERP
TESERP
3-PXE
TESERP
CER
TSEUQER
QNIRCV
3
Communication Protocol
RxD TxD
3AH
0AH
3AH
0AH
3AH
0AH
CMD PARAM. PARAM.
RET RET RET
Communication is carried out in units of bytes in the following procedure. When the computer sends one byte of data, it waits for a return from the VTR before sending the next byte. The return from the VTR may not only be one byte of data, but can be multiple bytes of data. For a command, such as EJECT, which takes time to execute, not only the return immediately after receipt of the command is issued, but a return indicating the result of execution upon completion of operation is also issued. The command, the return from the VTR, and parameters are all defined as the command in the RS-232C protocol.
Commands to operate the VTR
When a command (CMD) has no parameter:
CMD
RxD
3AH
TxD
0AH RET
Commands from the VTR to the computer to notify of completion of an operation
This return is issued when execution of the following commands is completed: EJECT, FRAME SEARCH, T/D SEARCH, and ALARM SEARCH.
CMD
RxD
2AH
TxD
There are three kinds of return from the VTR: COMPLETION, NOT TARGET, and CASSETTE OUT. COMPLETION: Returned when command
execution is correctly completed.
NOT TARGET: Returned when the target point
specified by the command cannot be found.
CASSETTE OUT: Returned when the cassette is
ejected.
0AH 03H RET CASSETTE
OUT
When a command (CMD) has parameters (PARAM.):
There are three kinds of returns from the VTR: ACK, NAK, and ERROR.
ACK: Returned when data is correctly returned. NAK: Returned when communication error is
detected or an unidentified command is received.
ERROR: Returned when a command cannot be
executed because of tape slack and other errors.
Commands to sense VTR status
EXP-3 CMD RxD TxD
DAH
C7H 0AH ACK DATA DATA DATA DATA
xxH xxH xxH xxH
Extended commands
A command consists basically of one byte. Some commands may function when combined with another command.
Extended
RxD TxD
Notes
•Do not send the next command before receiving the return from the VTR. If the return from the VTR is not received within 10 msec or more after the transmission is completed, appropriate processing must be executed because the communication is judged not executed correctly.
•Do not send any other command between the extended command and the secondary command.
CMD DAH
0AH RET RET
Secondary
CMD CAH
31H
4
Detailed Descriptions of Commands
VTR Return Commands
When the VTR receives a command from the computer, it returns a VTR return command. The HSR-1/1P supports the following commands.
ACK (0AH)
ACK is returned when the VTR receives the defined command correctly. When the command from computer requests STATUS SENSE or other data, ACK is not returned, but only data is returned.
NAK (0BH)
NAK is returned if a command which is not defined for the current mode (for example, a numerical value command in a mode other than the numerical input mode) is received, or when a communication error is detected.
COMPLETION (01H)
COMPLETION is returned when the VTR has completed the operation of the T/D SEARCH or ALARM SEARCH command. The COMPLETION command will not be returned if the VTR receives a tape-run-related command or the C.L. command before completion of the above commands, because the VTR stops executing the above commands to execute a new command.
NOT TARGET (05H)
Notifies that the VTR could not find the specified position on the tape when executing the T/D SEARCH or ALARM SEARCH command.
CASSETTE OUT (03H)
Notifies that the cassette was ejected.
ALARM IN (06H)
Notifies of alarm input. Each time an alarm is generated, this command is issued. Which channel is in alarm status can be confirmed by using the ALARM SENSE (DAH+C4H) command.
Numerical Value Commands
The numerical value commands are used to specify numerical parameters. These commands are also used when returning numerical data, such as time data, from the VTR to the computer. The following four command formats are supported:
Numerical value commands 0 to 9 (30H to 39H)
To express numerical values 0 to 9 for each command.
ERROR (02H)
Notifies of generation of an error during operation. ERROR is returned when a VTR receives a command that cannot be executed because of an error, such as tape slack, etc., or when an error has occurred during execution of the T/D SEARCH or ALARM SEARCH command, and stopped the operation. Remove the cause of the error and release the error status using the C.E. and C.L. commands.
Numerical value commands A to F (3AH to 3FH)
To express numerical values A to F for each command.
Sign (+) command (A1H) and sign (–) command (A2H)
Used to specify the sign of numerical data.
ENTER (40H)
Used to specify completion of numerical parameter input.
5
Detailed Descriptions of Commands
General Purpose Control Commands
C.E. (41H)
This clears the error status or the last character of numerical data entered. A sign entered cannot be cleared with this command. To clear a sign, enter the new sign.
C.L. (56H)
This releases the error status and clears the present command. If the C.L. command is sent after issuing a command with numerical parameter but before confirming the numerical parameter, the numerical parameter input is stopped, and the command with numerical value parameter is cleared.
EXP-1 (D8H), EXP-3 (DAH)
EXP-1 and EXP-3 are the first and third extended commands. These commands become valid after they are combined with a secondary command. If any other command is issued between this command and the secondary command, the extended command is canceled, and NAK is returned.
Example: When the LOCK ON command is correctly
executed.
EXP-1 CMD
RxD
D8H 94H
TxD
0AH 0AH
ACK ACK
Mode Control Commands
REC REQUEST (FAH)
This command must be issued immediately before sending the REC command.
SCREEN DIVIDE (DAH+90H)
Selects the display structure. Two bytes for the number of divisions, another 2 bytes for the page number, and the ENTER command (40H) must follow.
Example: To select the second page of 4-division
mode:
EXP-3 CMD 0 4
RxD
DAH
TxD
SCREEN AUTO CHANGE (DAH+91H)
Automatically switches the display. Parameter bytes to specify the output port (A or B) and the cycle in seconds and the ENTER command (40H) must follow. If 00 is specified for the cycle, no automatic switching is executed. If the output port is not specified, output port A is selected.
90H 30H 34H 0AH ACK ACK ACK ACK
0AH 0AH 0AH
30H
0
32H 40H 0AH ACK
2 ENTER
0AH
ACK
0AH ACK
Example: This is a case in which the LOCK ON
command could not be correctly executed because a command other than a secondary command was issued after the extended command:
EXP-1 CMDother CMD
RxD
D8H 94H72H
TxD
0AH 0BH0BH
ACK NAKNAK
6
Example: To switch the display for output port A
every 5 seconds:
EXP-3 CMD A 5 RxD TxD
DAH
91H 3AH 35H 0AH ACK ACK ACK
0AH 0AH
ENTER
40H 0AH 0AH ACK ACK
CAMERA SELECT (DAH+92H)
7tib 6tib 5tib 4tib 3tib 2tib 1tib 0tib
1etyb 10000 EDOMCERLAMRON 2etyb0
REMIT
CER
TAEPER
CER
-UNITNOC
CERSUO
0
MRALA
CER
00
Directly selects the camera to be monitored. Parameter bytes to specify the output port (A or B) and the camera number and the ENTER command (40H) must follow. By setting the camera number to A (3AH) for output port B, the same signal as that from port A can be output from both ports.
Example: To select camera 16 for output port B:
EXP-3 CMD B 1 RxD TxD
DAH
92H 3BH 31H 0AH ACK ACK ACK
0AH 0AH
0AH ACK
6
36H
0AH 0AH
ACK ACK
ENTER
40H
T/D PRESET (DAH+93H)
Sets the built-in clock. Parameter bytes to specify the year, month, day, hour (24H mode), minute and second in this sequence and the ENTER command (40H) must follow.
First byte Bits 1 and 0: Specify the alarm input common to all
cameras. 00: Cancel alarm input 01: Specify the alarm input 11: No change
Second to fifth bytes
Each two bits specifies the alarm input of the corresponding camera.
00: Cancel alarm input 01: Specify the alarm input 11: No change
REC MODE (DAH+98H)
Specifies the Recording mode.
Example: To specify Recording mode 1 for normal
recording and activate Repeat recording:
Example: To set January 1, 1998, 3:10, and 58
seconds p.m.:
EXP-3 CMD 9 8 RxD TxD
DAH
93H 39H 38H 0AH ACK ACK
0AH
0AH 0AH
ACK ACK
0AH ACK
30H
0
ENTER
40H
ALARM SET (DAH+94H)
Sets the VTR to Alarm mode. Parameter bytes to control the alarm may follow. The parameters are of the same format as those of the return data for ALARM SENSE.
7tib 6tib 5tib 4tib 3tib 2tib 1tib 0tib
1etyb 100000 SAREMACLLA 2etyb4AREMAC3AREMAC2AREMAC1AREMAC 3etyb8AREMAC7AREMAC6AREMAC5AREMAC 4etyb21AREMAC11AREMAC01AREMAC9AREMAC 5etyb61AREMAC51AREMAC41AREMAC31AREMAC
EXP-3 CMD DATA DATA RxD TxD
DAH
94H 80H xxH 0AH ACK ACK
0AH
0AH
ACK
DATA
xxH
0AH 0AH
ACK ACK
DATA
xxH
EXP-3 CMD CMD CMD RxD TxD
DAH
98H 81H 20H
0AH
ACK ACK ACK ACK
0AH 0AH 0AH
First byte Bits 2 to 0: Specify the recording mode for normal
recording.
Second byte Bit 6: Activates/deactivates Timer recording.
0: Inactive 1: Active
Bit 5: Activates/deactivates Repeat recording.
0: Inactive 1: Active
Bit 4: Activates/deactivates Continuous recording.
0: Inactive 1: Active
Bit 2: Activates/deactivates Alarm recording.
0: Inactive 1: Active
7
Loading...
+ 15 hidden pages