Sony Cna-1 Manual
Have a look at the manual Sony Cna-1 Manual online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 980 Sony manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.
11Sony Simple Camera Protocol 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 ” 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] ” 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] ” 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] ” 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]: Increment the parameter. bit5-0 is ignored. [10]: Decrement 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] ” 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.
12Sony Simple Camera Protocol Rules Request and Response Requests and response correspond loosely. There is no one to one mapping between requests and responses: “No reply” means “I can’t process such a command”. Do not send anything if an error has occurred. Errors must be handled the same as “No command”. Responses from a Camera can be sent to your system anytime without a request from your system. The status of Camera can be changed by itself (Auto iris function, etc.), changed by a camera operator’s hand manually or changed by another control panel connected to the Camera. The Camera sends status changes to all connected controllers. Your system can ignore any responses not needed by your system. When to send In the case of your system working as a controller for a Camera, your system should send a parameter query that it want to get. Almost Sony Camera only send status when its status is changed by receiving commands or its function (ex. automatic iris control or etc.). The status of your system can be updated by receiving status responses from a connected Sony Camera by sending status queries to that Camera (via CNA-1). In another case, your system works as a Camera among CNS, your system should send commands when its status is changed (must behave like a Sony Camera). The commands must be absolute commands in this case. If Sony control panels receive no absolute command responses from your system, they cannot update their status and also cannot update the displays. Therefore, the absolute command responses from your system are necessarily for the control system. Permission control (Panel Active control) CNS supports operating multiple cameras by multiple control panels. In case of using the Panel Assign Function, control panels are assigned to Cameras by a CNS Master device, such as MSU. The assignment function allows duplicate assignment, meaning one camera can be controlled by two or more control panels. Control conflicts can occur in this case. Therefore, permission control for the Camera is determined by the CNS Master device, using Panel Active command. If a network system with your system requires permission control, your system should use Panel Active command and your system’s Panel Active state should be controlled by the CNS Master device because CNA-1 behaves in the same way as the Sony Control Panel in RCP-mode. In a single connection (CNA-1 configured Bridge mode of CNS setting), the permission control is managed by CNA-1 itself. Permission allows your system to send all available commands. Without permission, your system can send only Status Query commands (Control commands are rejected). Permission control does not regulate receiving commands.When your system receives permission using Panel Active command, another control panel assigned to the same Camera loses permission. If your system does not want to affect the permission of another control panel, your system can use Para command instead of Panel Active command. Usage of Para command is the same as Panel Active command. However, permission by Para command does not allow controlling of Iris, Master Black and sending Absolute Word command. A configuration of CNA-1 “Panel Active Function Enable/ Disable” enables this permission control function. If Panel Active Function is enabled, CNA-1 manages Panel Active state and your system can use Panel Active/ Iris Active/ Para commands. If the function is disabled, CNA-1 rejects these commands. Permission control is not necessarily in the network system. Your system can ignore that and can send command if CNA- 1 configured “Panel Active Disable (default)”. However, if a duplicate assignment is set to CNA-1 and another control panel, conflict can occur between other control panels in the no permission control state. Especially, Absolute type commands will certainly conflict, and erratic Camera behavior can occur. For this reason, pay close attention to Absolute type commands Panel active command examples: Get current permission state Send: “0b,90,01,00\n” => Receive: “0b,XX,01,81\n” XX is ID of Master device. Value “81” means sender (your system) has No permission Send: “0b,90,01,00\n” => Receive: “0b,XX,01,82\n” XX is ID of Master device. Value “82” means sender (your system) has permission to control Require the permission Send: “0b,90,01,02\n” => Receive: “0b,XX,01,81\n” or “0b,XX,01,82 ” Release the permission Send: “0b,90,01,01\n” => Receive: “0b,XX,01,81” or “0b,XX,01,82 ”
13Sony Simple Camera Protocol Appendix Example of State Machine diagram for your system Command ProcessWatch Status Process Waiting a command from CNA-1 Your system startup Command validation Command filtering NOP, put off the command Change your system status Command recievedEstablished Not established Find a status change No status changed Connection refused Connection refused Status change complete Valid command Operative commandSend complete Status must be sent to Camera/Panel Send failed (Connection refused) Your system power offStatus must not be sent to Camera/ Panel Unknown command Invalid command Return to start Start Checking your system status Analyze changed status Send command to CNA-1 Return to start Return to start Connecting to CNA-1 (TCP)
14Sony Simple Camera Protocol Example of Startup Sequence (your system works as Controller) CNA-1Sony Camera Your system (works as Control panel) 1: Startup ( ) 3: Startup ( ) 14: change camera status ( ) 2: Startup ( ) 4: [socket] listen (port: 7700) This port number can be set to any port other than 7700 or 1-1023. Send status query command(s) your system want to receive 17: refresh ( ) 5: [socket] connect (port: 7700) 6: [socket] accept ( ) 7: [SPP] start_session ( ) 15: [SPP] reply_status ( ) 8: [SPP] session_accept ( ) 9: [socket] listen (port: XXXX) 10: [socket] connect (port: XXXX) 11: [socket] accept ( ) 12: [SSCP] scan_camera_status ( ) 13: [SPP] scan_camera_status ( ) 16: [SSCP] reply_status ( )
15Sony Simple Camera Protocol Example of Startup Sequence (your system works as Camera) CNA-1Sony Control Panel Your system (work as Camera) 1: Startup ( ) 3: Startup ( )2: Startup ( ) 4: [socket] listen (port: XXXX) 7: [socket] listen (port: 7000) 14: change_camera_status ( ) 5: [socket] connect (port: XXXX) 13: [SSCP] send_command ( ) 16: [SPP] reply_camera_status ( ) 17: Refresh_display ( ) 15: [SSCP] reply_command ( ) 6: [socket] accept ( ) 8: [socket] connect (port: 7700) 9: [socket] accept ( ) 10: [SPP] start_session ( ) 11: [SPP] session_accept ( ) 12: [SPP] scan_camera_status ( ) This port number can be set to any port other than 7700 or 1-1023.
16List of available commands List of available commands Command Usage Command CategoryCommand TypeCommand NameCMD_GP (Relative/ Absolute)PARAM0 PARAM1 PARAM2 System ControlBit commandtally 0x08 0x20TALLY_ DATA–* Receive only When Sony CCU inputs a Tally signal via External I/O, The CCU sends the tally command to CNA-1 TALLY_DATA= bit0 Red bit1 Green bit2 Yellow Other commandcall 0x0bSENDER_ SRCID0x00CALL VALUESENDER_SRCID= 0x90 when your system works as Controller 0x20 when your system works as Camera CALL VALUE= 0x80 current status query 0x81 Call off 0x82 Call on (two seconds) panel_active 0x0bSENDER_ SRCID0x01CONTROL VALUESENDER_SRCID= 0x90 CONTROL VALUE= 0x00 Current active status query 0x01 Active-off (release own control to Camera) 0x02 Active-on (get control to Camera) 0x81 Active-off status reply 0x82 Active-on status reply *This command is available in condition of Panel Active Function of CNA-1 is enabled (default is disable). iris_active 0x0bSENDER_ SRCID0x02CONTROL VALUESame as panel_active command but this command affects only Iris and MasterBlack control. para 0x0bSENDER_ SRCID0x03CONTROL VALUESame as panel_active command but this command does not affect permission of another control panel (parallel control can be used). * Iris, Master Black, all absolute word commands are not allowed in the permission received by this command.
17List of available commands CHU Function ControlInc/Dec commandshutter_ speed 0x20/0x210x00INC/DEC value–Bit5-0 00: 1/60 01: 1/100 02: 1/125 03: 1/250 04: 1/500 05: 1/1000 06: 1/2000 07: 1/3000 08: 1/4000 09: 1/5000 0A: 1/10000 0B: 1/32 0C: 1/33 0D: 1/40 0E: 1/48 0F: 1/50 10: 1/96 11: 1/120 master_gain 0x01INC/DEC value–Bit5-0 00: -6dB 01: -3dB 02: 0dB 03: 3dB 04: 6dB 05: 9dB 06: 12dB 07: 15dB 08: 18dB 09: 21dB 0A: 24dB 0B: 27dB 0C: 30dB 0D: 33dB 0E: 36dB 0F: 39dB 10: 42dB 11: 45dB 12: 48dB 13: 51dB 14: 54dB 15: 57dB 16: 60dB nd_filter 0x03INC/DEC value–Bit5-0 00: Filter 1-1 (ND 1) 01: Filter 1-2 (ND 2) 02: Filter 1-3 (ND 3) 03: Filter 1-4 (ND 4) 04: Filter 1-5 (ND 5) cc_filter 0x04INC/DEC value–Bit5-0 00: Filter 2-1 (CC A) 01: Filter 2-2 (CC B) 02: Filter 2-3 (CC C) 03: Filter 2-4 (CC D) 04: Filter 2-5 (CC E) Command Usage Command CategoryCommand TypeCommand NameCMD_GP (Relative/ Absolute)PARAM0 PARAM1 PARAM2
18List of available commands CHU Function ControlInc/Dec commandmaster_ gamma_ select 0x20/0x210x06INC/DEC value–Bit5-0 00: 1 01: 0.95 02: 0.90 03: 0.85 04: 0.80 05: 0.75 06: 0.70 07: 0.65 08: 0.60 09: 0.55 0A: 0.50 0B: 0.45 0C: 0.40 0D: 0.35 0E: 0.30 0F: 0.25 10: 0.20 11: 0.15 12: 0.10 auto_iris_ window_ select0x0aINC/DEC value–Bit5-0 00: Cutting the top end 01: Cutting the top, bottom, left and right ends 02: Cutting the left and right ends 03: Cutting uniformly 04: Cutting the top, left and right ends 05: Cutting the bottom end 06: Variable-Window preset_mtx_ select0x0dINC/DEC value–Bit5-0 00: Default 01: SMPTE-240M 02: REC-709 03: SMPTE-WIDE 04: NTSC 05: EBU standard_ gamma_ table_mode0x13INC/DEC value–Bit5-0 00: Standard 01: Special 1 02: Special 2 03: User standard_ gamma_ select0x14INC/DEC value– special_ gamma_ select0x15INC/DEC value– hyper_ gamma_ select0x16INC/DEC value– user_gamma _select0x17INC/DEC value– blk_gamma_ RGB_low_ range0x18INC/DEC value–Bit5-0 00: Low Range 01: Lower Middle Range 02: Higher Middle Range 03: High Range Command Usage Command CategoryCommand TypeCommand NameCMD_GP (Relative/ Absolute)PARAM0 PARAM1 PARAM2
19List of available commands CHU Function ControlInc/Dec commandlow_key_sat _low_range 0x20/0x210x1dINC/DEC value–Bit5-0 00: Low Range 01: Lower Middle Range 02: Higher Middle Range 03: High Range sls_select 0x20INC/DEC value–Bit5-0 00: 1F 01: 2F 02: 3F 03: 4F 04: 5F 05: 6F 06: 7F 07: 8F 08: 11F 09: 12F 0A: 15F 0B: 16F 0C: 22F 0D: 24F 0E: 25F 0F: 30F 10: 32F 11: 45F 12: 48F 13: 50F 14: 60F 15: 64F 16: 90F 17: 96F 18: 100F 19: 120F 1A: 128F 1B: 180F 1C: 192F 1D: 200F 1E: 240F 1F: 256F digital_ extender0x27INC/DEC value–Bit5-0 00: x1.0 (OFF) 01: x1.5 02: x2.0 03: x2.5 04: x3.0 05: x3.5 06: x4.0 07: x4.5 08: x5.0 09: x5.5 0A: x6.0 0B: x6.5 0C: x7.0 0D: x7.5 0E: x8.0 flicker_ reduce_area _select0x28INC/DEC value–* Only for HDC3300. compensation0x29INC/DEC value– Command Usage Command CategoryCommand TypeCommand NameCMD_GP (Relative/ Absolute)PARAM0 PARAM1 PARAM2
20List of available commands CHU Function ControlInc/Dec commandns_level_ mode 0x20/0x210x2aINC/DEC value–Bit5-0 00: 0% (OFF) 01: 5% 02: 10% 03: 15% 04: 20% 05: 25% 06: 30% 07: 35% 08: 40% 09: 45% 0A: 50% 0B: 55% 0C: 60% 0D: 65% 0E: 70% 0F: 75% 10: 80% 11: 85% 12: 90% 13: 95% 14: 100% flicker_ reduce_ave_ mode0x2dINC/DEC value–* Only for HDC3300. Byte command3D_camera_ select0x2eLEFT/ RIGHT/ BOTH–LEFT=0x00, RIGHT=0x01. BOTH=0x02 *Only for HDFA-200 Bit commandchu_function 010x81ON/OFF bit value–Bit 7: Knee Saturation 6: Auto Knee 5: Knee 4: Gamma 3: Flare 2: S-EVS 1: ECS 0: Shutter chu_function 020x82ON/OFF bit value–Bit 7: Detail Level Depend 6: Detail 5: User Matrix 4: Preset Matrix 3: V Mod Saw 2: Black Gamma 1: White Clip 0: Knee Aperture chu_function 030x83ON/OFF bit value–Bit 7: Slim Detail 6: Multi Matrix 5: N/A 4: Matrix 3: Auto Iris 2: Skin Gate 1: Skin Detail 0: Iris Close chu_function 040x84ON/OFF bit value–Bit 7: N/A 6: ATW 5-0: N/A Command Usage Command CategoryCommand TypeCommand NameCMD_GP (Relative/ Absolute)PARAM0 PARAM1 PARAM2