This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
http_qcom [2023/05/08 11:51] suresh |
http_qcom [2023/05/11 21:17] (current) johnw [SetIp] |
||
---|---|---|---|
Line 807: | Line 807: | ||
Save camera-related settings below. | Save camera-related settings below. | ||
- | === zoom_direct_value === | + | === zoom_direct_value === |
Description: Set camera zoom | Description: Set camera zoom | ||
Line 856: | Line 856: | ||
Possible values: auto, manual | Possible values: auto, manual | ||
- | ==== SetIp ==== | ||
- | === local_ip === | ||
- | IPv4 adresss | ||
- | === local_netmask === | + | ==== SetIp ==== |
- | + | ---- | |
- | IPv4 netmask | + | |
- | + | ||
- | === default_gw === | + | |
- | + | ||
- | IPv4 default gateway | + | |
- | + | ||
- | === local_dnsip === | + | |
- | + | ||
- | DNS server primary | + | |
- | + | ||
- | === local dnsip2 === | + | |
- | + | ||
- | DNS server secondary | + | |
- | + | ||
- | === use_dhcp === | + | |
- | Controls use of DHCP or static IP | + | Control networking settings of the Z3 device such as local IPv4 IP address, netmask, etc. |
+ | Additionally control Encoder Auto-Start after boot-up and enable/disable showing of advanced WebUI settings. | ||
- | Possible values: 1 (DHCP enabled), 0 (DHCP disabled, use static IP) | + | \\ |
- | === do_autostart === | + | == Parameters: == |
+ | ---- | ||
+ | **//do_autostart//** | ||
+ | Control automatic stream start after bootup. | ||
+ | Possible values: 1 = do autostart 0 = do not autostart. | ||
- | Control automatic stream start after bootup | + | **//enc_adv_setting//** |
+ | Control appearance of advanced settings on WebUI. | ||
+ | Possible values: off, on. | ||
- | Possible values: 1 = do autostart 0 = do not autostart | + | **//ipmtu//** |
+ | Control Ethernet IP Maximum Transmission Unit (MTU) size in bytes. | ||
+ | Possible values: 576 to 1500. | ||
- | === enc_adv_setting === | + | **//eth_speed//** |
+ | Control Gigabit Ethernet auto-negotiation allowed speeds. | ||
+ | Possible values: AUTO, AUTO-100, 1000, 100, 10. | ||
- | Control appearance of advanced settings on WebUI | + | **//eth_duplex//** |
+ | Control Ethernet auto-negotiation allowed duplex. | ||
+ | Possible values: AUTO, FULL, HALF. | ||
- | Possible values: off, on | + | **//local_ip//** |
+ | IPv4 address. | ||
- | === eth_speed === | + | **//local_netmask//** |
+ | IPv4 netmask. | ||
- | Control Gigabit Ethernet auto-negotiation allowed speeds | + | **//default_gw//** |
+ | IPv4 default gateway. | ||
- | Possible values: AUTO, AUTO-100, 1000, 100, 10 | + | **//local_dnsip//** |
+ | DNS server primary. | ||
- | === eth_duplex === | + | **//local_dnsip2//** |
+ | DNS server secondary. | ||
- | Control Ethernet auto-negotiation allowed duplex | + | **//use_dhcp//** |
+ | Controls use of DHCP or static IP. | ||
+ | Possible values: 1 (DHCP enabled), 0 (DHCP disabled, use static IP). | ||
- | Possible values: AUTO, FULL, HALF | + | **//local_hostname//** |
+ | Network hostname. | ||
- | === ipmtu === | + | \\ |
+ | == Returns: == | ||
+ | ---- | ||
+ | JSON formatted table with values below | ||
- | Control Ethernet IP Maximum Transmission Unit (MTU) size in bytes | + | **//ret//** Custom return code of the HTTP POST request. 0 on success, 1 on failure. |
- | Possible values: 576 to 1500 | + | **//status//** String describing the failure when **ret** is 1. "OK" on success. |
+ | \\ | ||
+ | ---- | ||
==== SetDisplay ==== | ==== SetDisplay ==== | ||
Line 1044: | Line 1052: | ||
==== GetStatus ==== | ==== GetStatus ==== | ||
- | === return the encoder status === | + | return the encoder status |
- | input : channel_number | + | **input** : channel_number |
- | return value : Can be running / couldn't deduct input on camera / idle / Stopped | + | **Output ** : The encoder status can be **running / couldn't deduct input on camera / idle / Stopped. ** |
+ | |||
+ | The encoder status values are stored in this path /tmp/enc_1_status. | ||
==== ClearHistory ==== | ==== ClearHistory ==== | ||
- | delete decoder history | + | delete the decoder history |
- | input : channel number | + | **input** : channel number |
- | + | ||
- | output : success / failure | + | |
+ | **output** : Delete the channel number from the DECODER_HISTORY_TABLE of the database | ||
==== AddHistory ==== | ==== AddHistory ==== | ||
Insert decoder history in the database | Insert decoder history in the database | ||
- | Input : channel number, URL | + | **Input** : channel number and URL |
- | + | ||
- | Output : Add the information in the decoder history table in the database | + | |
+ | **Output** : Add the information in the DECODER_HISTORY_TABLE in the database | ||
==== SetAudio ==== | ==== SetAudio ==== | ||
Set the analog mic decibal value | Set the analog mic decibal value | ||
- | Input : analog gain decibal value (Range -97 to 30) | + | **Input : ** |
+ | |||
+ | analog gain decibal value (Range -97 to 30) | ||
- | Output : update audio input table in the database | + | Output : update the value in the AUDIO_INPUT_TABLE in the database |
==== LoadUser ==== | ==== LoadUser ==== | ||
Line 1435: | Line 1445: | ||
==== SaveCameraDRSTamarisk ==== | ==== SaveCameraDRSTamarisk ==== | ||
+ | |||
+ | saves the camera DRS Tamarisk settings | ||
+ | |||
+ | === arg === | ||
+ | |||
+ | reads the color pallete value | ||
+ | |||
+ | === Output === | ||
+ | |||
+ | Save the camera DRS tamarisk settings in the CAMERA_DRS_TAMARISK_TABLE in the database | ||
==== SaveCameraBoson ==== | ==== SaveCameraBoson ==== | ||
+ | |||
+ | saves the camera boson settings | ||
+ | |||
+ | === arg === | ||
+ | |||
+ | reads the color pallete value | ||
+ | |||
+ | === Output === | ||
+ | |||
+ | Save the camera DRS tamarisk settings in the CAMERA_BOSON_TABLE in the database | ||
==== SaveCameraLink ==== | ==== SaveCameraLink ==== | ||
+ | |||
+ | saves the camera Link settings | ||
+ | |||
+ | === arg === | ||
+ | |||
+ | reads the pixel format and color table value | ||
+ | |||
+ | === Output === | ||
+ | |||
+ | Save the camera DRS tamarisk settings in the CAMERALINK_TABLE in the database | ||
==== EjectStorage ==== | ==== EjectStorage ==== | ||
Line 1507: | Line 1547: | ||
==== GetCameraTab ==== | ==== GetCameraTab ==== | ||
+ | |||
+ | Get the camera tab index the values are (1 / 2) and camera type. The camera types are (Visca / tau / boson / tamrisk) | ||
+ | |||
+ | if camera index is 2 , then the camera type (Visca / SDI) | ||
+ | |||
+ | === tab_index === | ||
+ | |||
+ | Read the camera tab index. | ||
+ | |||
+ | Based on the camera index and camera type the corresponding html file will be read. The html files are located in the /opt/webgui/*.html | ||
+ | |||
+ | The html files are visca.html / flexio.html | ||
==== SetVideoGroup ==== | ==== SetVideoGroup ==== | ||
+ | |||
+ | Set the video group configuration, and update in the database and change the active settings dynamically. | ||
+ | |||
+ | === group === | ||
+ | |||
+ | Is the camera index, the values are ( 4K. DME-20, HE2160-RPS ) and so on. | ||
+ | |||
+ | === nr_enable === | ||
+ | |||
+ | enable/disable noise reduction. | ||
+ | |||
+ | === crop_enable === | ||
+ | |||
+ | enable/disable crop region. | ||
+ | |||
+ | ===\\ | ||
+ | crop_x === | ||
+ | |||
+ | crop rectangle x value | ||
+ | |||
+ | ===\\ | ||
+ | crop_y === | ||
+ | |||
+ | crop rectangle y value | ||
+ | |||
+ | === crop_width === | ||
+ | |||
+ | crop rectangle width value | ||
+ | |||
+ | === crop_height === | ||
+ | |||
+ | crop rectangle height value\\ | ||
+ | Output : Update the value in the VIDEO_GROUP_TABLE in the database. | ||
==== GetCameraLink ==== | ==== GetCameraLink ==== | ||
+ | |||
+ | Read the value of color table using the system call and pixel format | ||
+ | |||
+ | from the fpga. | ||
==== SetCameraLink ==== | ==== SetCameraLink ==== | ||
+ | |||
+ | Set the value of color table and pixel format and update in the CAMERALINK_TABLE of the database. | ||
+ | |||
+ | ==== ==== | ||
==== RemoveJobs ==== | ==== RemoveJobs ==== | ||
+ | |||
+ | Remove / delete the jobs from the schedule. | ||
+ | |||
+ | === purgelist === | ||
+ | |||
+ | Read the job index and job name | ||
+ | |||
+ | === rowcnt === | ||
+ | |||
+ | Number of rows of the schedule job. | ||
+ | |||
+ | === Output === | ||
+ | |||
+ | Delete the jobs in the /opt/config/z3schedules/root/ in the system and also update in the SCHEDULE_TABLE in the database. | ||
==== SaveJobs ==== | ==== SaveJobs ==== | ||
+ | |||
+ | Read the values from the schedule tab and save the jobs | ||
+ | |||
+ | === data === | ||
+ | |||
+ | The data contains multiple values, such as | ||
+ | |||
+ | enable/disable of schedule | ||
+ | |||
+ | Name of the job | ||
+ | |||
+ | Function are (Start-Encoder / Stop-Encoder / Snapshot / PTZ Preset / PTZ Tour / Reboot) | ||
+ | |||
+ | Channel (Ch1 / Ch2 / Ch3 / Ch4) | ||
+ | |||
+ | Options about the time, which can be (Every Minute / hours / day / Week/ Month/ Yearly / custom ) | ||
+ | |||
+ | === rowcnt === | ||
+ | |||
+ | Number of rows of the schedule job. | ||
+ | |||
+ | === Output === | ||
+ | |||
+ | Save the jobs in the /opt/config/z3schedules/root/ in the system and also update in the SCHEDULE_TABLE in the database. | ||
==== GetVideoInputs ==== | ==== GetVideoInputs ==== |