User Tools

Site Tools


http_qcom |

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
http_qcom [2023/05/08 03:14]
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 numberURL +**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 1253: Line 1263:
  
 Output : update ptz value in the ONVIF_Ptzs table of the database Output : update ptz value in the ONVIF_Ptzs table of the database
- 
-====   ==== 
  
 ==== UpdatePtzPreset ==== ==== UpdatePtzPreset ====
Line 1261: Line 1269:
  
 Output : Insert the row value in the PTZ_Preset table of the database Output : Insert the row value in the PTZ_Preset table of the database
- 
-====   ==== 
  
 ==== UpdatePtzTourSpots ==== ==== UpdatePtzTourSpots ====
Line 1417: Line 1423:
  
 ==== SaveCameraLx ==== ==== SaveCameraLx ====
 +
 +Saving the CameraLx settings value and update in the CAMERA_LX_TABLE in the database
 +
 +=== name ===
 +
 +read the value of exposure mode, shuter speed , exposure component settings, whitebalance,​ ISO, Color Temp, NtscPalSelection,​ MovieSteadyMode
 +
 +used in the camera settings
  
 ==== SaveCameraTau ==== ==== SaveCameraTau ====
 +
 +saves the camera TAU settings
 +
 +=== tab_index ===
 +
 +reads the color pallete value from this path /​tmp/​currentlut*.txt and also reads the active color table
 +
 +=== Output ===
 +
 +Save the camera TAU settings in the CAMERA_TAU_TABLE in the database
  
 ==== 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 1450: Line 1504:
 ==== SetWifiAP ==== ==== SetWifiAP ====
  
-ssid:  Wifif SSID+ssid: Wifif SSID
  
 psk: Wifi password psk: Wifi password
Line 1458: Line 1512:
 wifi_client_local_local_netmask:​ Subnet mask to be used with Wifi network wifi_client_local_local_netmask:​ Subnet mask to be used with Wifi network
  
-wifi_client_default_gw: ​ Default Gateway to be used with Wifi Network+wifi_client_default_gw:​ Default Gateway to be used with Wifi Network
  
 wifi_client_use_dhcp:​ DHCP server to be used with Wifi network for DNS resolutions wifi_client_use_dhcp:​ DHCP server to be used with Wifi network for DNS resolutions
  
-Output: ​ Updates the  wifi network Access Point settings in State table of database+Output: Updates the wifi network Access Point settings in State table of database
  
 ==== DisconnectWifiAP ==== ==== DisconnectWifiAP ====
Line 1477: Line 1531:
  
 ==== GetWifiPass ==== ==== GetWifiPass ====
 +
 +ssid: Wifi Access point name or emptry string if there is a single wifi network
 +
 +Output: Returns the PSK password, which was set earlier using SetAPConfig
  
 ==== SetConsole ==== ==== SetConsole ====
 +
 +console_enable:​ "​on"​ to enable or "​None"​ to disable the console device for the log prints
 +
 +Output: Enable or disable the console device for log prints
  
 ==== SetViewport ==== ==== SetViewport ====
 +
 +Chn: Decoder Channel number viewport: viewport settings Output: Updates the viewport settings for the given decoder instance in DECODER_TABLE of database
  
 ==== 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 ====
http_qcom.1683515688.txt.gz · Last modified: 2023/05/08 03:14 by suresh