“look and feel” and arrangement of such Content, contained in this Manual is owned, controlled or licensed by or to Avonic, and is protected by trade dress, copyright, patent and trademark laws, and various other intellectual property rights and unfair competition laws.
Purpose of This Manual....................4 Target Audience......................4 Document Structure......................4 Appendix C - HTTP API......................5 How to use HTTP API.....................5 Curl........................6 {"GetEnv"}......................7 HTTP API code list......................8 IR Remote Control....................8 PTZ........................8 Audio........................10 Video........................11 Network.......................19 System........................ 20 User Manual | www.avonic.com...
IP. Target Audience This manual is developed for IT professionals who are responsible for operating the Product. Document Structure The Manual is subdivided into the following Chapters: Introduction Appendix A - VISCA Settings and Command List User Manual | www.avonic.com...
4. Paste the code at the end of HTTP link. It will look like this: 5. Change the settings in the link. In this case: 6. Press ENTER. If correct, you get in return: If failed, you get in return. User Manual | www.avonic.com...
HTTP API code list. 9. Click on Start in Windows again, type CMD and press Enter. 10.Copy and paste the link/ code from notepad in Command Prompt and press Enter. 11.If correct it returns: {"nRetVal":0, "szError":""} User Manual | www.avonic.com...
You can also use the HTTP API to display the current settings of the camera in your browser or in the Command Prompt application. To do this, you need the {"GetEnv"} codes from the HTTP API code list. If correct you get the following result: Web browser Command Prompt User Manual | www.avonic.com...
PTZ speed Set PTZ Speed Command Code Command Setting szCmd {"SetEnv":{"PTZSpeed": nPTZSpeed 0: Slow {"nPTZSpeed":1}}} 1: High Speed by zoom Set Speed By Zoom Command Code Command Setting szCmd {"SetEnv":{"ArmPtz":{"bSpeedByZoom":0}}} bSpeedByZoom 1: on 0: off User Manual | www.avonic.com...
Page 12
2: srt 3: rtmp Host Address {"SetEnv":{"StreamPublish":[{"stMaster": szHostUrl user-defined {"wHostPort":1935,"nProtolType":3",szHostUrl": "192.168.5.12"},"nChannel":0}]}} Host Port {"SetEnv":{"StreamPublish":[{"stMaster": wHostPort [0,65535] {"wHostPort":19355,"nProtolType":3},"nChannel":0}]}} Stream Name {"SetEnv":{"StreamPublish":[{"stMaster": szStreamName user-defined {"wHostPort":19355,"nProtolType":3,"szStreamName":"live/1213"}, "nChannel":0}]}} User Name {"SetEnv":{"StreamPublish":[{"stMaster": szUserName user-defined {"wHostPort":19355,"nProtolType":3,"szUserName":"123"}, "nChannel":0}]}} Password {"SetEnv":{"StreamPublish":[{"stMaster": szPassword user-defined {"wHostPort":19355,"nProtolType":3,"szPassword":"123"}, "nChannel":0}]}} User Manual | www.avonic.com...
Page 13
{"bEnable":1,"wMultiCastPort":4004},"nChannel":0}]}} Camera Settings Video Parameters Get video parameters Code {"GetEnv":{"VideoParam":{"nChannel":-1}}} Set video parameters Focus Function Code Command Setting Focus Mode {"SetEnv": emAFMode Auto {"VideoParam": Manual [{"stAF": OnePush {"emAFMode":2},"nChannel":0}]}} AF-Zone {"SetEnv": emAFZone {"VideoParam": Center [{"stAF": Bottom {"emAFZone":1},"nChannel":0}]}} User Manual | www.avonic.com...
{"GetEnv":{"NetWork":{"nChannel":-1}}} Set Ethernet parameters Code "SetEnv":{"NetWork":{"stEth": [{"byValid":5,"szIPAddr":"192.168.5.126","szSubMask":"255.255.255.0","szMacAddr":"E4:77:D4:01:8A:49", "szGateway":"192.168.5.1","bDefault":1}]}}} Function Code Command Setting DHCP {"SetEnv":{"NetWork":{"stEth":[{"byValid":5}]}}} byValid 5:off 7:on IP Address {"SetEnv":{"NetWork":{"stEth":[{"szIPAddr":"192.168.5.127"}]}}} Subnet Mask {"SetEnv":{"NetWork":{"stEth":[{"szSubMask":"255.255.255.0"}]}}} Default Gateway {"SetEnv":{"NetWork":{"stEth":[{"szGateway":"192.168.5.1"}]}}} Get dns parameters Code {"GetEnv":{"NetWork":{"nChannel":-1}}} Set dns parameters Code {"SetEnv":{"NetWork":{"stDns":{"szDns1":"8.8.8.8","szDns2":"0.0.0.0"}}}} User Manual | www.avonic.com...
Get system time parameters Code {"QueryState":{"QuerySysTime":{}}} Set system time parameters Code {"SetEnv":{"SysTime":{"nDateSprtr":2,"nDateFormat":0,"nZone":1,"nHourType":0,"stNtp": {"bEnable":1,"nHostPort":123,"nUpdateInterval":2,"szHostUrl":"ntp4.aliyun.com"}}}} Function Code Command Setting Date Format {"SetEnv":{"SysTime":{"nDateFormat":0}}} nDateFormat 0: YYYY-MM-DD 1: MM-DD-YYYY 2: DD-MM-YYYY Date Sprtr {"SetEnv":{"SysTime":{"nDateSprtr":0}}} nDateSprtr 0: . 1: - 2: / User Manual | www.avonic.com...
Page 21
Function Code Command Setting Authority nUserType 0: admin 1: user1 or user 2 User Name szUserName user-defined: no white space Password szPassword user-defined, no white space. This command must set three users at the same time. User Manual | www.avonic.com...
Page 22
{"SysCtrl":{"Default":{}}} Reboot Code {"SysCtrl":{"Reboot":{}}} The URL supports to set all params at one time and also can set one of them through split URL into one other command. Different commands can be found at different settings. User Manual | www.avonic.com...
Need help?
Do you have a question about the CM7 IP Series and is the answer not in the manual?
Questions and answers