
5
Timing Chart
As VISCA command processing can only be
carried out a maximum of one time in a Vertical
(V) cycle, it takes maximum 4V-cycle time for an
ACK/Completion to be returned.
If the Command and ACK/Completion
communication time is shorter than 1V-cycle
time, a command can be received at every 1V
cycle.
From this point, if two or more commands are to
be sent successively, wait for a reply command
(an ACK or error message for a general
command, and an inquiry packet for an inquiry
command) of the previous command to be
received before sending the next command.
1V= 16.7 msec (1080/59.94p, 1080/59.94i, 720/
59.94p),
20 msec (1080/50p, 1080/50i, 720/50p),
33.4 msec (2160/29.97p),
40 msec (2160/25p),
41.7 msec (1080/23.98p, 2160/23.98p)
Command and inquiry
•Command
Sends operational commands to the camera.
•Inquiry
Used for inquiring about the current state of
the camera.
For actual values to be sent, see Command Lists
or Inquiry Command Lists.
Responses for commands and inquiries
•ACK message
Returned by the camera when it receives a
command. No ACK message is returned for an
inquiry.
•Completion message
Returned by the camera when execution of
commands or inquiries is completed. In the
case of inquiry commands, reply data for the
inquiry is contained after the 3rd byte of the
packet. In the case of commands or inquiries
that do not use sockets, the socket number will
contain 0.
•Error message
When a command or inquiry command could
not be executed or failed, an error message is
returned instead of a completion message.
Socket number
When command messages are sent to the
camera, it is normal to send the next command
message after receiving the completion
message or error message. However, to deal
with advanced uses, the camera has two sets of
buffers (memories) for commands, so that up to
two commands including the commands
currently being executed can be received. (There
is a wait longer than a 1V cycle between
commands.) However, depending on the
command, it may be necessary to wait until the
first command is completed due to system
reasons. When the camera receives commands,
it notifies which command buffer was used using
the socket number of ACK message. As the
completion message or error message also has a
socket number, it indicates which command has
ended. Even when two command buffers are
being used, the camera management command
and inquiry messages can be executed.
Command/Inquiry Packet
8X QQ RR ... FF
QQ: Command/Inquiry (01=Command, 09=Inquiry)
RR: Category Code (00=Interface, 04=camera, 06=Pan/Tilter)
X = 1 to 7: Address of the camera (Locked to “X = 1” for VISCA
over IP)
General commands
Inquiry commands
16 Bytes
Within 4V
Within 4V
Reply Packet
ACK Y0 4Z FF
Completion (Commands) Y0 5Z FF
Completion (Inquiries) Y0 5Z ... FF
Y = 9 to F: Address of the camera + 8 (Locked to “Y = 9” for
VISCA over IP)
Z = socket number
Error Packet
Message length error Y0 6Z 01 FF
Syntax Error Y0 6Z 02 FF
Command buffer full Y0 6Z 03 FF
Command canceled Y0 6Z 04 FF
No socket (to be canceled) Y0 6Z 05 FF
Command not executable Y0 6Z 41 FF
Y = 9 to F: Address of the camera + 8 (Locked to “Y = 9” for
VISCA over IP)
Z = socket number