How to use TCP/UDP control the SMTAV camera?

The camera includes an internal TCP server. The default port number is 5678. When client and server set up a TCP connection, the client sends PTZ command to the internal server and the server will then parse and execute the PTZ commands.

The camera includes an internal UDP server. The default port number is 1259. When client and server set up a UDP connection, the client sends PTZ commands to the internal server and the server will then parse and execute the PTZ commands.

The command format based on VISCA is shown as bellow:

Inquiry Command List

Command

Command

Response

Comments

 

 

CAM_PowerInq

 

 

81 09 04 00 FF

90 50 02 FF

On

90 50 03 FF

Off (Standby)

90 50 04 FF

Internal power circuit error

CAM_ZoomPosInq

81 09 04 47 FF

90 50 0p 0q 0r 0s FF

pqrs: Zoom Position

CAM_FocusAFMode

Inq

 

81 09 04 38 FF

90 50 02 FF

Auto Focus

90 50 03 FF

Manual Focus

CAM_FocusPosInq

81 09 04 48 FF

90 50 0p 0q 0r 0s FF

pqrs: Focus Position

 

 

 

 

CAM_WBModeInq

 

 

 

 

81 09 04 35 FF

90 50 00 FF

Auto

90 50 01 FF

Indoor mode

90 50 02 FF

Outdoor mode

90 50 03 FF

OnePush mode

90 50 05 FF

Manual

90 50 20 FF

ColorTemperature Mode

CAM_RGainInq

81 09 04 43 FF

90 50 00 00 0p 0q FF

pq: R Gain

CAM_BGainInq

81 09 04 44 FF

90 50 00 00 0p 0q FF

pq: B Gain

 

 

 

CAM_AEModeInq

 

 

 

81 09 04 39 FF

90 50 00 FF

Full Auto

90 50 03 FF

Manual

90 50 0A FF

Shutter priority

90 50 0B FF

Iris priority

90 50 0D FF

Bright

CAM_ShutterPosInq

81 09 04 4A FF

90 50 00 00 0p 0q FF

pq: Shutter Position

CAM_IrisPosInq

81 09 04 4B FF

90 50 00 00 0p 0q FF

pq: Iris Position

CAM_BrightPosInq

81 09 04 4D FF

90 50 00 00 0p 0q FF

pq: Bright Position

 

 

 

 

CAM_ExpCompMod

eInq

 

81 09 04 3E FF

90 50 02 FF

On

90 50 03 FF

Off

CAM_ExpCompPosI

nq

 

81 09 04 4E FF

 

90 50 00 00 0p 0q FF

 

pq: ExpComp Position

CAM_BacklightMode

Inq

 

81 09 04 33 FF

90 50 02 FF

On

90 50 03 FF

Off

CAM_Nosise2DMode

Ing

 

81 09 04 50 FF

90 50 02 FF

Auto Noise 2D

90 50 03 FF

Manual Noise 3D

CAM_Nosise2DLevel

81 09 04 53 FF

90 50 0p FF

Noise Reduction (2D) p: 0 to 5

CAM_Noise3DLevel

81 09 04 54 FF

90 50 0p FF

Noise Reduction (3D) p: 0 to 8

CAM_FlickerModeIn

q

 

81 09 04 55 FF

 

90 50 0p FF

 

p: Flicker Settings(0: OFF, 1: 50Hz, 2: 60Hz)

CAM_ApertureModeI

nq (Sharpness)

 

81 09 04 05 FF

90 50 02 FF

Auto Sharpness

90 50 03 FF

Manual Sharpness

CAM_ApertureInq

(Sharpness)

 

81 09 04 42 FF

 

90 50 00 00 0p 0q FF

 

pq: Aperture Gain

 

SYS_MenuModeInq

 

81 09 06 06 FF

90 50 02 FF

On

90 50 03 FF

Off

CAM_PictureEffectM

odeInq

 

81 09 04 63 FF

90 50 02 FF

Off

90 50 04 FF

B&W

 

CAM_LR_ReverseInq

 

81 09 04 61 FF

90 50 02 FF

On

90 50 03 FF

Off

 

CAM_PictureFlipInq

 

81 09 04 66 FF

90 50 02 FF

On

90 50 03 FF

Off

 

CAM_ColorGainInq

 

81 09 04 49 FF

 

90 50 00 00 00 0p FF

 

p: Color Gain setting 0h (60%) to Eh (200%)

 

Pan-tiltPosInq

 

81 09 06 12 FF

90 50 0w 0w 0w 0w

0z 0z 0z 0z FF

wwww: Pan Position

zzzz: Tilt Position

CAM_GainLimitInq

81 09 04 2C FF

90 50 0q FF

p: Gain Limit

 

CAM_AFSensitivityI nq

 

 

81 09 04 58 FF

90 50 01 FF

High

90 50 02 FF

Normal

90 50 03 FF

Low

CAM_BrightnessInq

81 09 04 A1 FF

90 50 00 00 0p 0q FF

pq: Brightness Position

CAM_ContrastInq

81 09 04 A2 FF

90 50 00 00 0p 0q FF

pq: Contrast Position

 

 

CAM_FlipInq

 

 

81 09 04 A4 FF

90 50 00 FF

Off

90 50 01 FF

Flip-H

90 50 02 FF

Flip-V

90 50 03 FF

Flip-HV

CAM_AFZone

81 09 04 AA FF

90 50 00 FF

Top

 

 

 

 

 

 

90 50 01 FF

Center

90 50 02 FF

Bottom

 

CAM_ColorHueInq

 

81 09 04 4F FF

 

90 50 00 00 00 0p FF

p: Color Hue setting 0h (− 14 degrees) to Eh ( +14

degrees

 

 

CAM_AWBSensitivit yInq

 

 

81 09 04 A9 FF

90 50 00 FF

High

90 50 01 FF

Normal

90 50 02 FF

Low

 

CAM_UACInq

 

81 2A 02 A0 04 FF

90 50 02 FF

On

90 50 03 FF

Off

Leave a comment