Command line (console) via SSH protocol: различия между версиями

Материал из База знаний VINTEO
Строка 74: Строка 74:
 
|-
 
|-
 
Set a camera role !! camera set <id> <role> [<width>] [<height>] [<fps>] [<format>] OK<br>
 
Set a camera role !! camera set <id> <role> [<width>] [<height>] [<fps>] [<format>] OK<br>
camera set "UHD_Media" main&presentation
+
camera set "UHD_Media" main&presentation
response: camera OK
+
response: camera OK
 
|-
 
|-
 
|Move a camera || camera move <up|down|left|right|zoom+|zoom-|stop> [<step>]
 
|Move a camera || camera move <up|down|left|right|zoom+|zoom-|stop> [<step>]
("step" argument stops the camera after one movement step without sending the "stop" command)
+
("step" argument stops the camera after one movement step without sending the "stop" command)
response: camera move left OK  
+
response: camera move left OK  
 
|-
 
|-
 
|Save a camera preset || camera preset set <number>
 
|Save a camera preset || camera preset set <number>
response: camera preset set 1 OK
+
response: camera preset set 1 OK
 
|-
 
|-
 
|Save a preset with a camera movement || camera preset go <number>
 
|Save a preset with a camera movement || camera preset go <number>
response: camera preset go 2 OK
+
response: camera preset go 2 OK
 
|-
 
|-
 
|Request a contacts list || addrbook all  
 
|Request a contacts list || addrbook all  
response: addrbook all [{"id":8,"name":"Alex","number":"10.1.0.10","status":"0","type":"auto"}]
+
response: addrbook all [{"id":8,"name":"Alex","number":"10.1.0.10","status":"0","type":"auto"}]
 
|-
 
|-
 
|Add a contact || addrbook add <”name”> <number> <type>
 
|Add a contact || addrbook add <”name”> <number> <type>
response: addrbook add OK
+
response: addrbook add OK
 
|-
 
|-
 
|Change a contact || addrbook edit <id> <”name”> <number> <type>
 
|Change a contact || addrbook edit <id> <”name”> <number> <type>
response: addrbook edit OK
+
response: addrbook edit OK
 
|-
 
|-
 
|Delete a contact || addrbook remove <id>
 
|Delete a contact || addrbook remove <id>
response: addrbook remove 8 OK
+
response: addrbook remove 8 OK
 
|-
 
|-
 
|Make a call || dial manual <number> [<speed>][<resolution>][<type>][<fps>]
 
|Make a call || dial manual <number> [<speed>][<resolution>][<type>][<fps>]
Строка 103: Строка 103:
 
|-
 
|-
 
|Finish a call || hangup all
 
|Finish a call || hangup all
response: hangup all OK
+
response: hangup all OK
 
|-
 
|-
 
|Disconnect a participant || hangup <participant>
 
|Disconnect a participant || hangup <participant>
response: hangup Alex OK
+
response: hangup Alex OK
 
|-
 
|-
 
|Accept an incoming call || accept <id>
 
|Accept an incoming call || accept <id>
<id> - may be a temporary ID assigned to a caller displayed in a command line, a.g.: [event] call-incoming FqEWhO4E333RIebFGlMHvsrK SIP SIP/1004 connection transfer
+
<id> - may be a temporary ID assigned to a caller displayed in a command line, a.g.: [event] call-incoming FqEWhO4E333RIebFGlMHvsrK SIP SIP/1004 connection transfer
 
response: accept FqEWhO4E333RIebFGlMHvsrK OK
 
response: accept FqEWhO4E333RIebFGlMHvsrK OK
 
|-
 
|-

Версия 15:12, 6 сентября 2024

Command line (console) via SSH protocol

Terminal command line

You can connect to the terminal via SSH protocol and control it with text commands in console mode. Login and password for SSH access is the same as for access to the web-interface.

The following command descriptions are valid starting with terminal version 2.9.2.

Command structure

mute <id> <on/off> [<participant>] <”name”>
keyword mandatory argument, a user must specify its value mandatory argument, which possesses only the specified set of values optional argument, a user can specify it if necessary;

If it’s not specified, command affects only a terminal

a mandatory string argument, if it contains spaces, it must be passed in quotes

Examples

Task Use case
Get information about the microphone status mute get <participant>

response: mute <participant> <on/off>

Enable/disable the microphone (bool) mute <on/off>

mute <participant> <on/off>

Get information about the camera status video get <participant>

response: video <participant> <on/off>

Enable/disable self camera (bool) video get <on/off>

video get <participant> <on/off>

Get the list of available cameras camera list

response: camera {"cameras":[{"format":"YUYV","fps":"30","height":"1080","id":"00-00 Eco Capture Dual HDMI M.2","name":"00-00 Eco Capture Dual HDMI M.2","path":"/dev/video0","role":"main&presentation","width":"1920"},{"format":"YUYV","fps":"30","height":"1080","id":"00-01 Eco Capture Dual HDMI M.2","name":"00-01 Eco Capture Dual HDMI M.2","path":"/dev/video1","role":"not_set","width":"1920"}]}

sends ICMP ECHO_REQUEST packets to a network host; ping <ip address>
outputs a packet route trace to the network host; traceroute <ip address>
clears the console screen; clear
a list of available commands; help
command line exit; exit

The example of the camera parameters request command

camera info "ImagePlus_UHD_Media_20200924173"
     Format: MJPG
      Size: 1920x1080
         Interval: 30*
         Interval: 25
         Interval: 20
     Format: H264
      Size: 1920x1080
         Interval: 30*
         Interval: 25
         Interval: 20
     Format: HEVC
      Size: 1920x1080
         Interval: 30*
         Interval: 25
         Interval: 20
OK
Set a camera role !! camera set <id> <role> [<width>] [<height>] [<fps>] [<format>] OK
camera set "UHD_Media" main&presentation response: camera OK
Move a camera down|left|right|zoom+|zoom-|stop> [<step>]

("step" argument stops the camera after one movement step without sending the "stop" command) response: camera move left OK

Save a camera preset camera preset set <number>

response: camera preset set 1 OK

Save a preset with a camera movement camera preset go <number>

response: camera preset go 2 OK

Request a contacts list addrbook all

response: addrbook all [{"id":8,"name":"Alex","number":"10.1.0.10","status":"0","type":"auto"}]

Add a contact addrbook add <”name”> <number> <type>

response: addrbook add OK

Change a contact addrbook edit <id> <”name”> <number> <type>

response: addrbook edit OK

Delete a contact addrbook remove <id>

response: addrbook remove 8 OK

Make a call dial manual <number> [<speed>][<resolution>][<type>][<fps>]

response: dial auto 10.0.0.1 OK

Finish a call hangup all

response: hangup all OK

Disconnect a participant hangup <participant>

response: hangup Alex OK

Accept an incoming call accept <id>

<id> - may be a temporary ID assigned to a caller displayed in a command line, a.g.: [event] call-incoming FqEWhO4E333RIebFGlMHvsrK SIP SIP/1004 connection transfer response: accept FqEWhO4E333RIebFGlMHvsrK OK

Reject an incoming call decline <id> <description>

response: decline 8 <description> OK