Command and Control Advanced topics

From UgCS
Jump to: navigation, search

Main Page UgCS UgCS CC Manual



Configure UgCS server components on Windows

1. Configure auto-start for Service-manager.
Add it to Windows start-up. On Windows 10 open Task Manager, and then select the Startup tab.
Another way - add Service-manager shortcut to the folder:
C:\Users\[User]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup folder.

2. Disable start / stop service manager.
If the Client is installed with server on same PC - make sure it doesn't start together.
To disable start/stop service manager from client edit file behaviour.xml at C:\Users\[User]\AppData\Local\UGCS\configuration\client
Set value to “false” at line:
<parameter name.="use start-stop" type.="boolean" value.="false"/>"

3. Memory allocation management:
Open file: C:\Program Files (x86)\UgCS\service-manager\ugcs\service-manager.ini
Change the argument “Xmx1g” to required memory allocation size according to the server (ucs) resources. For java x64 max allocated memory 4g at line like this:
"server/arguments = "-Xms64m -Xmx1g -cp .;*;..\\lib\\* com.ugcs.ucs.Bootstrap""
Change the argument “Xmx1g” to required memory allocation size according to the geoserver resources. For java x64 max allocated memory 4g at line like this:
"geoserver/arguments = "-Xms64m -Xmx1g -Djava.library.path=./native -cp .;.\\lib\\* com.ugcs.geoserver.GeoServer"

4. Disable Emulator.
Open file: "C:\Program Files (x86)\UgCS\service-manager\ugcs\service-manager.ini"
Find the line:
emulator/binary = "C:\\Program Files (x86)\\UgCS\\java\\bin\\java.exe"
And replace to:
emulator/binary =


Installing UgCS server components on Linux

1. Transfer file ugcs-server-xenial-Linux.deb to server.

2. The apt-get utility require internet connection.

3. Install.
Connect to server and install package ugcs-server-xenial-Linux.deb
apt-get install openjdk-8-jdk
dpkg -i ugcs-server-xenial-Linux.deb
dpkg -i ugcs-geoserver-xenial-Linux.deb
apt-get install -f


4. Check UgCS server/geoserver status
Use command: «service ugcs-server status» or «service ugcs-geoserver status»
If service is running, message will show: «Active: active (running)»
root@ucs-1:~# service ugcs-server status
ugcs-server.service - LSB: UgCS server

  Loaded: loaded (/etc/init.d/ugcs-server; bad; vendor preset: enabled)
Active: active (running) since Wed 2018-06-06 13:54:22 +04; 7min ago
Docs: man:systemd-sysv-generator(8) Process: 3940 ExecStop=/etc/init.d/ugcs-server stop (code=exited, status=0/SUCCESS) Process: 3951 ExecStart=/etc/init.d/ugcs-server start (code=exited, status=0/SUCCESS)

Tasks: 82

  Memory: 275.1M
 	CPU: 11.068s
  CGroup: /system.slice/ugcs-server.service
      	└─3954 java -Xms64m -Xmx4g -cp .:*:../lib/* com.ugcs.ucs.Bootstrap

5. Starting and stopping UgCS server/geoserver
Commands: “service ugcs-server stop” and “service ugcs-server start” are shutting down and starting up ugcs service. Same commands for “ugcs-geoserver”
root@ucs-1:~# service ugcs-server stop
root@ucs-1:~# service ugcs-server start

Configure UgCS server (ucs) settings

All setting from this part of article are located at “ucs.properties”.
1. Disable telemetry store from emulator.
Set value to “false” in the line:
ucs.telemetry.store.emulator=false

2. Disable SSDP.
Set value to “false” in the line:
ucs.vsm.discovery=false

3. Disable check updates.
Set value to “false” in the line:
liveServer.checkForUpdates=false

4. Change cache limit to 48.
Set value to “48” in the line:
ucs.elevation.memoryCache.limit=48

5. Change pool size.
N - numbers of CPU cores. Use formulas below for each parameter.
ucs.hci.ioProcessors=max(8, N)
ucs.hci.threadPoolSize=max(32, 2*N)
ucs.vsm.ioProcessors=max(8, N)
ucs.vsm.threadPoolSize=max(32, 2*N)

Example for node with 1...8 CPU cores:
ucs.hci.ioProcessors=8
ucs.hci.threadPoolSize=32
ucs.vsm.ioProcessors=8
ucs.vsm.threadPoolSize=32

Configure UgCS geoserver settings

All settings for geoserver configured by default. Please change it only if it is necessary. All setting from this part of article are located at “geoserver.properties”.

Connecting to Milestone

Milestone software information
XProtect VMS license features compare
XProtect VMS Essentials+ downloads
XProtect VMS installation manual
XProtect VMS Administrator manual

Follow vendor installation manual - click here

Milestone recording server setup

Open UgCS for DJI settings and select “Live Stream Provider”

UgCS for DJI settings .png


Select “UgCS VideoServer

UgCS VideoServer.png


Select “Live Stream Provider Preferences” and put the checkbox under “Use Videserver SSDP” And “Use custom server address”

2checkboxes.png


Under “Target host” – enter UgCS VideoServer IP

Target host.png


Open UgCS VideoPlayer and select the UAV from the drop down window.

UgCS VideoPlayer .png


Select the drone in the preview pane

Preview pane.png


Copy RTSP link from UgCS VideoPlayer to Notepad for ease of use

RTSP link .png


RTSP link notepad.png


Open XProtect Management Client
Servers→Recording Servers→Add HARDWARE

Add HARDWARE.png


Select Manual

Select Manual.png


Specify User Name and Password... - or press Next

Specify User Name and Password.png


Select hardware type: Universal Driver 1 channel

Universal Driver 1 channel.png


Setup hardware info. Set IP, Port (From the notepad) and hardware model: Universal 1 channel driver and press next.

Setup hardware info.png


If everything configured correctly, Success status will appear on the next window

Success status.png


In the next window select next and camera group 1, then click “finish”

Camera group 1.png


Add hardware camera.png


To set up the stream, select Universal ch1 driver\Camera 1 in hierarchy, choose "Settings" tab.

Select Universal ch1 driver.png


Set up Stream 1 with proper values as shown. Codec - H264, Connection URI - name of the transcoded stream (From notepad), port – 3340 (from notepad) and mode: RTP (UDP). Then Click “info” and save the changes

Stream 1 .png


“info” and save the changes.png


Connecting to Luxriot

Open UgCS VideoPlayer and select the UAV from the drop down window.

UgCS VideoPlayer .png


  

Select the drone in the preview pane

Preview pane.png


Copy & past RTSP link from UgCS VideoPlayer to Notepad for ease of use

RTSP link .png


Notepad luxriot.png


Open Luxriot EVO management console and click Devices – New Device.

Open Luxriot EVO management console .png


Type in a friendly name for the drone and select model

Friendly name for the drone .png


Select model.png


Select RTSP compatible model and click OK

RTSP compatible model .png


At this step, a Network and Channels tabs should become available. Switch to Network and enter the IP Address and the port number from the notepad.

Network and Channels .png


Switch to Channels and click Apply and OK

Switch to Channels .png


Go to Channels tab and click Edit.

Channels tab and click Edit.png


Go to Channel configurations, then select “Open channel properties”

Channel configurations.png


In the new window, select the RTSP tab,
• Remove the “Use default port” checkbox
• Copy the port number from notepad
• Remove the “RTP over TCP” checkbox
• Copy the transcoded stream name from notepad
• Click Apply and OK

Select the RTSP tab.png


Click OK, at the Channel configuration tab and click “Show video”

Click OK at the Channel configuration .png


And click “Show video”.png