Professional Documents
Culture Documents
SONY Corporation
Overview of VISCA
In VISCA, the device outputting commands, for example, a computer, is called the controller. The device receiving the commands, such as SNC-RZ50N/P is called the peripheral devices. The VISCA communication conforms to the RS232 standard. The parameters of RS-232C are as follows: - Communication speed : 9600bps / 38400bps - Data bits : 8bit - Start bit: 1bit - Stop bit: 1bit - parity: none Flow control using XON/XOFF and RTS/CTS, etc., is not supported. In VISCA, the peripheral device can be daisy-chained. In SNC-RZ50N/P, the controller and the peripheral device must be used in pairs because the hardware of SNC-RZ50N/P doesn't support the daisy-chain connection.
Byte 1
Byte 2
Byte 3
FF
1
Bit7 Bit6 (MSB)
Sender's address
Bit5 Bit4
0
Bit3
Receiver's address
Bit2 Bit1 Bit0 (LSB)
Command and Inquiry Command Sends operational commands to SNC-RZ50N/P. Inquiry Used for inquiring about the current state of SNC-RZ50N/P. Command Packet 81 QQ RR ... FF Note QQ *--- Command/Inquiry, RR *--- category code
*1) QQ = 01 (Command), 09 (Inquiry) *2) RR = 00 (Interface), 04 (Camera), 06 (Pan/Tilter) Responses for commands and inquiries ACK message Returned by SNC-RZ50N/P when it receives a command. No Ack message is returned for inquiries. Completion message Returned by SNC-RZ50N/P when execution of commands or inquiries is completed. In the case of inquiry commands, it will contain reply data for the inquiry after the 3rd byte of the packet. If the ACK message is omitted, the socket number will contain 0. Reply Packet Ack 90 4Y FF Completion (commands) 90 5Y FF Completion (Inquiries) 90 5Y ... FF Note Y = socket number Y = socket number Y = socket number
Error message When a command or inquiry command could not be executed or failed, an error message is returned instead of the completion message. Error Packet 90 6Y 01 FF 90 6Y 02 FF 90 6Y 04 FF 90 6Y 05 FF 90 6Y 41 FF Socket number When command messages are sent to SNC-RZ50N/P, it is recommended to send the next command message after waiting for the completion message or error message to return. SNC-RZ50N/P has two buffers for commands. When SNC-RZ50N/P receives a command, it notifies the sender which command buffer was used using the socket number of the ACK message. Command execution cancel To cancel a command which has already been sent, send the Cancel command as the next command. Cancel Cancel Packet 81 2Y FF Note Y = socket number Description Message length error (> 14 bytes) Syntax Error Command canceled No socket (to be canceled) Command not executable Note : Y = socket number
The Command canceled error message will be returned for this command, but this is not a fault. It indicates that the command has been canceled.
IF_Clear Clears the command buffers in VISCA peripheral device and cancels the command currently being executed. Unused in SNC-RZ50N/P. IF_Clear IF_Clear(broadcast) Command Packet 81 01 00 01 FF 88 01 00 01 FF Reply Packet 90 50 FF 88 01 00 01 FF
Comments
Returned when the command is accepted. Returned when the command has been executed.
Comments
Returned when the command format is different or when a command with illegal command parameters is accepted. Returned when a command which is being executed in a socket specified by the cancel command is canceled. The completion message for the command is not returned. Returned when no command is executed in a socket specified by the cancel command, or when an invalid socket number is specified. Returned when a command cannot be executed due to current conditions. For example, when commands controling the focus manually are received during auto focus.
90 60 02 FF
SNC-RZ50N/P Commands
SNC-RZ50N/P Command List (1/4)
Command set AddressSet IF_Clear CommandCancel CAM_Zoom Command Broadcast Broadcast Stop Tele(Standard) Wide(Standard) Tele(Variable) Wide(Variable) Direct Command packet 88 30 01 FF 88 01 00 01 FF 81 2p FF 81 01 04 07 00 FF 81 01 04 07 02 FF 81 01 04 07 03 FF 81 01 04 07 2p FF 81 01 04 07 3p FF 81 01 04 47 0p 0q 0r 0s FF Comments Address setting Interface clear p: Socket No.(=1or2) Zoom control
p : speed setting 0 (Low) - 7(High) pqrs: Zoom position Optical: 0000(wide) - 4000(tele) Digtal: 4000(x1) - 7AC0(x12) ; NTSC Digtal: 4000(x1) - 77C0(x12) ; PAL Digital zoom control
CAM_DZoom
CAM_Focus
On Off Combine Mode Separate Mode Stop Tele(Variable) Wide(Variable) x1 / Max Direct Stop Far(Standard) Near(Standard) Far(Variable) Near(Variable) Direct Auto Focus Manual Focus Auto/Manual One Push Trigger Infinity Near Limit
81 01 04 06 02 FF 81 01 04 06 03 FF 81 01 04 36 00 FF 81 01 04 36 01 FF 81 01 04 06 00 FF 81 01 04 06 2p FF 81 01 04 06 3p FF 81 01 04 06 10 FF 81 01 04 06 00 00 0p 0q FF 81 01 04 08 00 FF 81 01 04 08 02 FF 81 01 04 08 02 FF 81 01 04 08 2p FF 81 01 04 08 3p FF 81 01 04 48 0p 0q 0r 0s FF 81 01 04 38 02 FF 81 01 04 38 03 FF 81 01 04 38 10 FF 81 01 04 18 01 FF 81 01 04 18 02 FF 81 01 04 28 0p 0q 0r 0s FF 81 01 04 58 02 FF 81 01 04 58 03 FF 81 01 04 57 00 FF 81 01 04 57 01 FF 81 01 04 57 02 FF 81 01 04 27 0p 0q 0r 0s FF 81 01 04 47 0p 0q 0r 0s 0t 0u 0v 0w FF 81 01 04 19 01 FF 81 01 04 35 00 FF 81 01 04 35 01 FF 81 01 04 35 02 FF 81 01 04 35 03 FF 81 01 04 35 04 FF 81 01 04 35 05 FF 81 01 04 10 05 FF 81 01 04 03 00 FF 81 01 04 03 02 FF 81 01 04 03 03 FF 81 01 04 43 00 00 0p 0q FF 81 01 04 04 00 FF 81 01 04 04 02 FF 81 01 04 04 03 FF 81 01 04 44 00 00 0p 0q FF
p : speed setting 0 (Low) - 7(High) x1/MAX Magnificication Switchover pq: Zoom position 00(x1) - EB(x12) Focus control
AF Sensitivity CAM_AFMode
Normal Low Normal AF Interval AF Zoom Trigger AF Active/Interval Time Direct Lens Auto Indoor Outdoor One Push WB ATW Manual One Push Trigger Reset Up Down Direct Reset Up Down Direct
pqrs: Focus Near Limit Position 1000(Far) - C000(Near) AF Sensitivity Normal/Low AF Movement Mode
CAM_RGain
pq: Movement Time, rs: Interval pqrs: Zoom Position tuvw: Focus Position Lens Initialization Start Normal Auto Indoor mode Outdoor mode One Push mode Auto Tracing White Balance mode Manual Control mode One Push WB Trigger mode Manual Control of R Gain
CAM_BGain
pq: B Gain 00 - FF
CAM_SlowShutter CAM_Shutter
Iris Priority Automatic Exposure Bright mode( Manual control) Auto Slow Shutter ON/OFF Shutter Setting
CAM_Iris
CAM_Gain
CAM_Bright
CAM_ExpComp
CAM_BackLight CAM_SpotAE
pq: ExpComp position Back Light Compensation ON/OFF Spot Automatic Exposure Setting pq: X(0 - F), rs: Y(0 - F) Aperture Control
CAM_Aperture
pq: Aperture gain 00 - 0F Mirror Image ON/OFF Still Image ON/OFF Picture Effect Setting
CAM_Title
mm: Vposition, nn: Hposition pp: Color, qq: Blink mnpqrstuvw: Setting of Display Characters (1st to 10th Character mnpqrstuvw: Setting of Display Characters (11th to 20th Character Title Setting Clear Title Display ON/OFF Mute ON/OFF
CAM_Mute
CAM_IDWrite
Command
Up Down Left Right UpLeft UpRight DownLeft DownRight Stop AbsolutoPosition RelativePosition Home
Command packet
81 01 06 01 vv ww 03 02 FF 81 01 06 01 vv ww 03 01 FF 81 01 06 01 vv ww 02 03 FF 81 01 06 01 vv ww 01 03 FF 81 01 06 01 vv ww 02 02 FF 81 01 06 01 vv ww 01 02 FF 81 01 06 01 vv ww 02 01 FF 81 01 06 01 vv ww 01 01 FF 81 01 06 01 vv ww 03 03 FF 81 01 06 02 vv ww 0y 0y 0y 0y 0z 0z 0z 0z FF 81 01 06 03 vv ww 0y 0y 0y 0y 0z 0z 0z 0z FF 81 01 06 04 FF 81 01 06 07 00 0w 0y 0y 0y 0y 0z 0z 0z 0z FF 81 01 06 07 01 0w 07 0F 0F 0F 07 0F 0F 0F FF
Comments
vv: Pan speed 01Low-18 (High) ww: Tilt speed 01Low-17High yyyy: Pan Position F670 0990 zzzz: Tilt position FCC4 033C
LimitSet LimitClear
w: 1 (UpRight) yyyy: Pan position 0001 - 0990 zzzz: Tilt position 0001 - 033C
w: 0 (Down Left) yyyy: Pan position F670 - FFFF zzzz: Tilt position FCC4 - FFFF
Comments
On Off On Off Off Neg-Art Monochrome On Off On Off pp: Last Recall Memory No. On Off On Off On Off pqrs: Camera ID mnpq: Model code(04xx) rstu: ROM version of camera MPU vw:: Socket number(=2) Image Flip Off Image Flip On pqrs : Pan/Tilter status ww: Pan max speed zz : Tilt max speed wwww: Pan position zzzz : Tilt position
CAM_LR_ReverseModeInq 81 09 04 61 FF
CAM_PictureEffectModeInq81 09 04 63 FF
81 09 04 01 FF 81 09 04 51 FF 81 09 04 3F FF 81 09 04 15 FF
4 5 6 7 8 9 10 11 12
81 09 7E 7E 03 FF
13 00 14 00 15 FF (Terminator) 0 90 1 50 2 [3:0] --> Digital zoom position (H) 3 [3:0] --> Digital zoom position (L) 4 [3:0] --> AF Activation Time (H) 5 [3:0] --> AF Activation Time (L) 6 [3:0] --> AF Interval Time (H) 7 [3:0] --> AF Interval Time (L) 8 [3:0] --> Spot AE position (X) 9 [3:0] --> Spot AE position (Y) 10 [0] : Image flip 1: Off, 0: On 11 03 12 00 13 00 14 00 15 FF (Terminator)
Shutter Speed
Iris
15 14 13 12 11 10 0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00 11 10 0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00
Gain
0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00
28 dB 26 dB 24 dB 22 dB 20 dB 18 dB 16 dB 14 dB 12 dB 10 dB 8 dB 6 dB 4 dB +2 dB 0 -3 dB
Exposure control(2/2)
IRIS F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F1.6 F2 F2.4 F2.8 F3.4 F4 F4.8 F5.6 F6.8 F8 F9.6 F11 F14 F16 F19 F22 F28 CLOSE 7 6 5 4 3 2 1 0 -1 -2 -3 -4 -5 -6 -7 GAIN 28 dB 26 dB 24 dB 22 dB 20 dB 18 dB 16 dB 14 dB 12 dB 10 dB 8 dB 6 dB 4 dB 2 dB 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10.5 dB 9 dB 7.5 dB 6 dB 4.5 dB 3 dB 1.5 dB 0 dB -1.5 dB -3 dB -4.5 dB -6 dB -7.5 dB -9 dB -10.5dB
Bright
Exposure Comp.
1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10 0F 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00 0E 0D 0C 0B 0A 09 08 07 06 05 04 03 02 01 00
Zoom Ratio and Zoom Position (for reference) Zoom Optical Zoom Ratio x26 Positon Data x1 0000 x2 1760 x3 214C x4 2722 x5 2B22 x6 2E20 x7 3080 x8 3278 x9 3426 x10 359E x11 36EE x12 381C x13 392E x14 3A26 x15 3B08 x16 3BD4 x17 3C8C x18 3D2E x19 3DBC x20 3E38 x21 3EA2 x22 3F00 x23 3F4E x24 3F92 x25 3FCC x26 4000 NTSC PAL Digital zoom Digital zoom position data position data
(Combine Mode) (Combine Mode)
Lens control
0000
Wide End
4000 -
7700(77C0)
1000: Over Inf 2000: 20 m 3000: 10 m 4000: 5 m 5000: 3 m 6000: 2 m 7000: 1.5 m 8000: 32 cm 9000: 9.5 cm A000: 4.5 cm B000: 2.0 cm C000: 1.0 cm
As the distance on the left will differ due to temperature characteristics, etc., use as approximate values. * The lower 1 byte is fixed at 00.
4000 5E00 6800 6D00 7000 7200 7380 7480 7580 7600 76C0 7700
4000 5E80 6880 6DC0 70C0 72C0 7440 7540 7600 76C0 7740 77C0
D2
D5
DC
DF
Others
R, B Gain Aperture
00 - FF 00 - 0F
"+" indicates a pan to the right and a tilt upward on the monitor screen. "-" indicates a pan to the left and a tilt downward on the monitor screen.
Title Setting
Revision history Version 1.0 Date June 01, 2006 Comment First issue