Types Of The Command - Sony CNA-1 Technical Manual

Camera control network adaptor
Hide thumbs Also See for CNA-1:
Table of Contents

Advertisement

Types of the command

There are several types of commands and formats, depending
on CMD-GP or combination of CMD-GP and PARAM0.
[CMD-GP]:
Categorizes a command into "Byte type", "Word type",
"Other type", and appends a control method "Relative" or
"Absolute"
[CMD-GP] + [PARAM0]:
Categorizes "Byte type command" into "Byte command",
"Bit command", "Inc/Dec command"
Almost all commands have two different control types:
"Relative" and "Absolute" assigned to a different CMD-GP
(see the List of available commands)
Example: Master Black control
• Relative control: "22,a9,00,01\n" This command "adds"
0x0001 to the current parameter
• Absolute control: "23,a9,00,01\n" This command "sets"
0x0001 to the parameter (overwrite)
Byte command
Controls or Queries a byte-size parameter of a Camera.
Format:
• "[CMD-GP],[PARAM0],[PARAM1]\n"
• PARAM0: Parameter address
• PARAM1: Value
Relative control:
It means a status query.
PARAM1 is ignored and does not affect the status of
the Camera.
Absolute control:
Set the parameter of Camera specified by the
PARAM0 address to PARAM1, or a response of the
value of the parameter from the Camera.
Bit command
Controls or Queries the ON or OFF state of a function of a
Camera using bit (0 or 1).
Format:
• "[CMD-GP],[PARAM0],[PARAM1]\n"
• PARAM0: Parameter address
• PARAM1: Value affects each bit
Relative control:
Inverts the function state specified by the PARAM0
address ON to OFF, or OFF to ON when bit is set to 1.
If PARAM1 bits are all set to 0, it means a status
query.
Absolute control:
Set the state at the PARAM0 address to PARAM1 or
a response of the value of the parameter from the
Camera.
Inc/Dec command
Increments or decrements a Camera parameter and also
adjusts a value directory.
Format:
• "[CMD-GP],[PARAM0],[PARAM1]\n"
• PARAM0: Parameter address
• PARAM1: Value
PARAM1
bit7-6: Inc/Dec control
[00] Set a value directory or status query
[01] Increment the parameter specified by the
PARAM0 address
[10] Decrement the parameter specified by the
PARAM0 address
[11] N/A
bit5-0: Value of the parameter
Relative control:
bit5-0 is ignored.
bit7-6 [00] or [10] or [01]: Parameter (bit5-0) query.
bit7-6 [11]: Maximum value query for the parameter
(bit5-0).
Absolute control:
bit7-6:
[00]: Set the parameter specified by the PARAM0
address to bit5-0.
[01]: Decrement the parameter. bit5-0 is ignored.
[10]: Increment the parameter. bit5-0 is ignored.
[11]: Maximum value reply from a Camera. Do not
use this bit pattern to control.
bit5-0: Value of the parameter.
Word command
Adjust a word-size parameter of a Camera, or status response
of it.
Format:
"[CMD-GP],[PARAM0],[PARAM1],[PARAM2]\n"
PARAM0: Parameter address
PARAM1-2: Value 16bit
PARAM1: Higher byte
PARAM2: Lower byte
Relative control:
PARAM1-2 [0x0000]:Parameter query.
[Others]: Add PARAM1-2 to the current
parameter.
Absolute control:
Set the parameter to PARAM1-2.
Other command
Depends on CMD-GP, details are described in the list of
commands.
11
Sony Simple Camera Protocol

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents