Operating Instructions
Version Author Comment Time
1.3.6 Xujiangqi Add 8083 port mapped 2020.06.22
1.3.7 Xujiangqi Add 3.5.6 update address 2020.07.09
1.3.8 Xujiangqi Add 3.5.8 update address 2020.07.14
1.3.9 Xujiangqi Add 3.5.9 update address 2020.09.10
1.3.10 Xujiangqi Add 3.5.9a update address 2020.09.17
1.3.11 Xujiangqi Delete ftp install process 2020.10.14
1.3.12 Xujiangqi Add 3.5.11 update address 2020.11.25
1.3.13 YangChengHua Add script to install mysql, 2021.01.08
apache2, PHP
1.3.14 xujiangqi Release 3.5.12b version 2021.02.01
1.3.15 Xujiangqi Release 3.5.13c version 2021.04.07
1.3.16 Xujiangqi Release 3.5.13d version 2021.06.15
1.3.17 xujiangqi Release 3.5.15a 2021.0802
1.3.18 Xujiangqi Release 3.5.15c 20210805
1.3.19 Xujiangqi Release 3.5.15d 20210820
1.3.20 Xujiangqi Release 3.5.15f 20211011
1.3.21 YangChengHua Release3.5.16a 20211126
1.3.22 YangChengHua Release3.5.16b 20211207
1.3.23 YangChengHua Release3.6.2d 20220221
1.3.24 YangChengHua Release3.6.3a 20220419
1.3.25 YangChengHua Release3.6.3b 20220602
1.3.26 YangChengHua Release3.6.3d 20220712
1.3.27 YangChengHua Release3.6.4a 20221010
1.3.28 YangChengHua Release3.6.5f 20230613
1.3.29 YangChengHua Release3.6.6.5 20230914
1
1.3.30 YangChengHua Release3.6.6.7 20230928
1.3.31 YangChengHua Release3.6.7.1 20231110
1.3.32 YangChengHua Release3.6.7.9 20240312
CMS Server
Please read this manual thoroughly before operating the unit,
and keep it for future reference.
2
Contents
1. HOW TO USE PUBLIC CLOUD CMS SERVER ........................................................................................................
1.1 ADD SUB USER ..............................................................................................................................................................
1.2 ADD DEVICE FOR SUB USER ..........................................................................................................................................
1.3 QUERY DEVICES LIST FOR SUB USER .............................................................................................................................
1.4 SUB USER LOGIN CMS SERVER ....................................................................................................................................
2. HOW TO INSTALL YOURSELF CMS SERVER ........................................................................................................
2.1 DOWNLOAD CMS SERVER SOFTWARE ..........................................................................................................................
2.2 INSTALL LAMP(MYSQL,APACHE2,PHP) ....................................................................................................................
2.3 MODIFY LAMP(MYSQL,APACHE2,PHP) CONFIGURATION FILE ........................................................................................
2.4 INIT MYSQL DB ...........................................................................................................................................................
2.5 START SOFTEWARE ........................................................................................................................................................
2.6 PORT MAP .....................................................................................................................................................................
2.7 HOW TO AUTO RUN WHEN MACHINE REBOOT ..............................................................................................................
2.8 HOW TO STOP CMS SERVER .........................................................................................................................................
2.9 HOW TO FIX PASSWORD OF MYSQL .............................................................................................................................
3. ADD USER AND DEVICES INFO IN YOURSELF CMS SERVER ..........................................................................
3.1 LOGIN SERVER ..............................................................................................................................................................
3.2 FIX PASSWORD OF USER ...............................................................................................................................................
3.3 GROUP INFO ..................................................................................................................................................................
3.4 DEVICE INFO .................................................................................................................................................................
3.5 ADD SUB USER ..............................................................................................................................................................
3.6 ADD DEVICE FOR SUB USER .........................................................................................................................................
3.7 QUERY DEVICES LIST FOR SUB USER .............................................................................................................................
3.8 SAVE RECORD OF DVR ................................................................................................................................................
3.9 EMAIL SETTING ............................................................................................................................................................
3.10 OFFLINE UPGRADE .....................................................................................................................................................
3.11 INFORMATION QUERY .................................................................................................................................................
3.12 QUICK INITIALIZATION DEVICE ...................................................................................................................................
4. LET DVR CONNECT YOURSELF CMS SERVER ....................................................................................................
4.1 CHANGE 3G SERVER IP OF YOUR DVR .........................................................................................................................
4.2 CHANGE WIFI SERVER IP OF YOUR DVR .......................................................................................................................
4.3 CHANGE LAN SERVER IP OF YOUR DVR .......................................................................................................................
5. USING CMS CLIENT .....................................................................................................................................................
5.1 LOGIN SERVER ..............................................................................................................................................................
5.2 MAIN GUI ....................................................................................................................................................................
5.3 CMS CLIENT MANUAL ..................................................................................................................................................
3
1. How to Use Public Cloud CMS Server
Our public cloud CMS server url is http://183.233.190.23:6061/
you can login this url using your user name and password. Screen shot as follows:
Warm prompt: if your DVR connect our public cloud server, you need to do next simple operation
only and you do not need change any information in your DVR.
1.1 Add sub user
If you sell a DVR to your customer, you need add a sub user name for your customer, and allocate
the DVR to your customer who had bought to the sub user name.
First:Add UserRole
Click RoleInfo->Add Role:
Second:Add Sub User
Click User Info->Add Sub User, input sub user name,password and select the role:
4
1.2 Add device for sub user
you can add Devices for your sub User.
First:
Select the row of sub user, then Click UserInfo->Add Device For Sub User,select Device. screen
shot as follows:
Warm prompt: the DeviceId is the UUID of your DVR. And you can query it in DVR. Screen shot as
follows:
5
1.3 Query devices list for sub user
You can query devices list for sub user.
Select the row of sub user, then Click QueryDeviceList, and input sub user name, click query.
1.4 Sub user login CMS server
If the sub user name was created successfully, the sub user can login our public cloud server. Using
CMS client.
Screen shot as follows:
6
Login GUI
Main GUI
2. How to Install Yourself CMS Server
System requirement:
System Dev CPU Cores Memory(GB) Storage Disk(TB) Band(Mbps)
number time(day)
Ubuntu 20.04 100 2 2 180 3 5
Ubuntu 20.04 500 2 4 180 10 9
Ubnutu 20.04 1000 4 8 180 20 15
7
Ubuntu 20.04 5000 8 16 180 100 60
Ubnutu 20.04 10000 16 32 180 200 120
Warm Prompt:you can buy a virtual machine from AWS, The Current buylink is :
https://aws.amazon.com/marketplace/b/2649367011?ref_=hmpg_categories_2649367011
After getting a machine having Ubuntu server, you can login the machine using ssh or telnet
remotely.
2.1 Download CMS server software
1、sudo apt install curl
2、sudo mkdir /home/CMSServer/
3、cd /home/CMSServer/
4、download file:
sudo curl http://183.233.190.23:6061/software/424/Server/CMSServer_v3.6.7.9_20240312.tar -o
CMSServer_v3.6.7.9_20240312.tar
5、sudo tar -zxvf CMSServer_v3.6.7.9_20240312.tar
screen shot as follows:
6、sudo chmod -R 777 /home/CMSServer/WebServer/RecordFile/
(if you do not save record in AWS S3,all record will be moved in /home/CMSServer/WebServer/Record/
So please using next cmd to promote the authority of the directory.)
2.2 Install Lamp(mysql,apache2,php)
1、cd /home/CMSServer/lamp
8
2、sudo ./Lampinstall.sh
2.3 Modify lamp(mysql,apache2,php) configuration file
1、cd /home/CMSServer/lamp
2、sudo ./ModifylampConfig.sh
this script will fix config file of apache and php.ini automaticlly,you can check the result using
next command
1,sudo vi /etc/apache2/ports.conf
screen shot as follows:
2,sudo vi /etc/apache2/apache2.conf
screen shot as follows:
3,sudo vi /etc/apache2/sites-available/000-default.conf
screen shot as follows:
9
4,vi /etc/php/*/apache2/php.ini
screen shot as follows:
2.4 Init MySQL db
1. login MySQL
sudo mysql –u root
If there is a login error, Perform the following steps to log in to MySQL:
sudo service mysql stop
sudo mkdir -p /var/run/mysqld
sudo chown mysql:mysql /var/run/mysqld
sudo mysqld_safe --skip-grant-tables&
mysql -u root mysql
Fix the password(mysql8.0):
update user set plugin="mysql_native_password";
mysql>FLUSH PRIVILEGES;
mysql>ALTER USER 'root'@'localhost' IDENTIFIED BY '123456_abCD';
mysql>FLUSH PRIVILEGES;
10
mysql>exit
Successful login
screen shot as follows:
2. init database sk
source /home/CMSServer/sk_create.sql
screen shot as follows:
2.5 Start softeware
1.cd /home/CMSServer/
2.source ./StartCMSServer.sh
3.top
11
Attention 1:
Defaultly,record files that dvr have uploaded will be saved in /home/CMSServer/FileSaveDir/, then
our program FileMove will move the record files into /home/CMSServer/WebServer/RecordFile/
After moved successfully, you can use CMS client query and download it. For example:
Attention 2:
If you want to move the files (/home/CMSServer/FileSaveDir/ ) into AWS S3, you must set the
information of AWS S3, and change the UploadCloudType into AWS S3 in web management
First: login your system using account admin. Default password is “88888888”.
If your address of CMS Server is 183.233.190.23, please input next url in browser
http://183.233.190.23:6061
Click Setting->Cloud Account->EditAccount (Add Account) and input new information.
12
Second: please fix the storage mode of the server.
Click Setting->BasicSetting, change the UploadCloutType into Amazon S3, then click Edit and click
the button of reset CMSServer.
2.6 Port map
If you want MDVR connect CMS Server using 4G. you must make port map in your route.
6060, 6061, 6062, 6063, 9090, 9091, 9092, 9093, 9094, 9095,9096,9097,9098,9099,8082,8083
should be routed to your pc hardware installing Ubuntu os.
2.7 How to auto run when machine reboot
一:Please create one script /etc/rc.local
touch /etc/rc.local
二:set authority of script
chmod –R 777 /etc/rc.local
三:add command in script
#!/bin/sh -e
sleep 4
cd /home/CMSServer/
sudo ./StartCMSServer.sh
exit 0
Screen shot as follows:
13
2.8 How to stop CMS server
please cd /home/CMSServer
sudo ./StopCMSServer.sh
2.9 if fix password of MySQL
If you fix password of MySQL,you need to fix password and username of programs.
1 Please
cd /home/CMSServer/ControlServer
Vi ControlConfig.ini
Fix keys of DBUser and DBPassword.
2 please
cd /home/CMSServer/StreamServer,/home/CMSServer/FileTransferServer,/home/CMSServer/
FileSaveServer and do same operations.
3 please cd /home/CMSServer/WebServer
vi WebConfig.php
Fix UserName and Password, snap picture is next:
reboot Server
14
cd /home/CMSServer
sudo ./StopCMSServer.sh
sudo ./StartCMSServer.sh
3. Add User and Devices Info in Yourself CMS Server
defaultly CMS server have a user “admin”, and its password is “88888888”. And you can add child
user for “admin”.
Supposing ip of CMS Server is “192.168.188.129”. and you need login the web management
system using web, the url is http://192.168.188.129:6061/pc/login.html
3.1 Login server
Open the url http://183.233.190.23:6061/pc/login.html
using chrome browser or firefox browser, the user is “admin”, password is “88888888”, screen shot
as follow:
3.2 Fix password of user
If you want to fix your password, you can do next.
Click “Modify Sub User Password”, screen shot as follows:
15
3.3 Group info
3.3.1 Add Group
You must create a group first, because every device belongs to a group.
First:
Please click “Group Info->Add Group”, and input a GroupName in the dialog, screen as follow:
3.3.2 Delete Group
Select the row of group name that you want to delete, then click Delete Group, click Delete.
Screen shot as follows:
16
3.3.3 Edit Group
Select the row of group name that you want to fix Group name, then click Edit Group.Screen shot as
follows:
3.3.4 Exchange Group
Select the row of group name that you want to Exchange Group, then click Exchange Group.Screen
shot as follows:
3.4 Device info
3.4.1 Add Device
After creating a group, you can add Device
17
First:
click DeviceInfo->Add Device, then input PlateNumber. DeviceId, ChannelNumber, DeviceType,
GroupName and so on, screen shot as follows:
Warm prompt:
① the Device Id is the UUID, you can find it in the DVR, please click System->info in DVR, and
you can find the UUID, screen shot as follows:
② If the type of DVR is “DV424”, the ChannelNumber should be setted 12, if the type of DVR is
“DV425”, the channelnumber should be setted 8.
3.4.2 Delete Device
Select the row of device that you want to delete, then click Delete Device, click Delete.
Screen shot as follows:
18
3.4.3 Edit Device
Select the row of Device that you want to edit, click Edit Device, and you can input new
PlateNumber or ChannelNumber here, screen shot as follows:
3.4.4 Export
Export the login user's devices,click Export,screen shot as follows:
19
Note: the equipment information is exported from the production server
(url:http://183.233.190.23:6061; user: customer No.; password: customer No.)
3.4.5 Import
Import devices into login user,click Export,screen shot as follows:
Note: Import the equipment information file exported from the production server into the server
installed by the customer
3.5 Add sub user
If you sell a DVR to your customer, you need add a sub user name for your customer, and allocate
20
the DVR to your customer who had bought to the sub user name.
First:Add UserRole
Click RoleInfo->Add Role:
Second:Add Sub User
Click User Info->Add Sub User, input sub user name,password and select the role:
3.6 Add Device for sub user
If you have added some devices for admin,you can add Devices for your sub User.
First:
Click UserInfo, select one sub user, then click Add Device For Sub User, select the devices that you
want to add, screen shot as follows:
21
3.7 Query devices list for sub user
You can query devices list for your sub user.
Click UserInfo->QueryDeviceList, and input sub user name, click query.
3.8 Save Record of DVR
If you want to store record of DVR in S3 of AWS, please excute next step:
1 You can fix the information of aws3, for example:
Click Setting->Cloud Account->EditAccount (Add Account) and input new informaiton
22
2 Please fix the stotrage mode of the server.
Click Setting->BasicSetting, change the UploadCloutType into Amazon S3, then click Edit.
3 If version of DVR is earlier than 20191229 and soft hardware of dvr is common version, we
need add “FtpFlag = 1” for config of FileMove,because in common version,dvr upload record file using
ftp。
cd /home/CMSServer/FileMove
vi FileMoveConfig.ini
23
reboot server
cd /home/CMSServer/
sudo ./StopCMSServer.sh
sudo ./StartCMSServer.sh
3.9 Email Setting
If you use the mailbox push function, you can set the mailbox.
1. Add Email
First:
Click “Setting-->Email Setting-->Add Email”,and input SMTPServer, SendEmail, SendEmail
Passord, AcceptEmail,screen as follow:
24
Second:
After adding mailbox information, you need to select the alarm type to be pushed to the mail.
screen shot as follow:
25
3.10 Offline Upgrade
Upgrading offline DVR with CMS Web Management System.
Waring:if you want to test one version for one device type,please refer to 2
1、updating all devices for one device type
If you want to update all devices for one device type,please login using admin.
if you want to update one or more devices t for one device type,you should create one sub user
using admin login。Then allocate one or more devices into this sub user,after creating sub user,
using sub user to login,and upload updated file。
Step1:Click “Offline Update-->Add File-->File Select”,Screen shot as follows:
26
Step2:When clicking “Add File”, you can choose the updated software and click “Upload”. The
updated software package will be uploaded to the server.
2、updating selected devices for one device type
if you want to update one or more devices t for one device type,you should create one sub user
using admin login。Then allocate one or more devices into this sub user.
step 1:Click UserInfo->select one user-> Add Device for Sub User
Step 2:select any device that you want to update
27
Step 3:login cms using sub user,and add file like 1,then only selected devices will update
automaticaly
3.11 Information Query
Using CMS Web management system to query DVR device status information.
Click “Information Query-->State Information”,Screen shot as follows:
28
3.12 Quick initialization device
If the equipment you purchased was hung on our server before, now that you have installed your
own server, you can quickly initialize these equipment to your server.
1、Log in to our CMS Web management system to export the device
Open the url http://183.233.190.23:6061/pc/login.html
Log in with your user and password
Click:DeviceInfo-->Export
Click Export
Export your device to a file and store it on your local computer.
29
2、Log in to your own CMS Web management system and import the device into your server
Click:DeviceInfo-->Import
Select the device file to export from our server,click Import:
4. Let DVR Connect Yourself CMS Server
If you want to install yourssef CMS server, and supposing you have installed it successfully.
you need to change the server ip of your DVR into your internet ip of your CMS server, please fix it.
Screen shot as follows:
4.1 Change 4g server ip of your DVR
If your DVR connect yourself CMS server using 3g, please change 3g server ip into your real server
internet ip.
NetWork->Server->Cellular. Screen shot as follows:
30
4.2 Change wifi server ip of your DVR
If your DVR connect yourself CMS server using wifi, please change wifi server ip into your real
server internet ip.
NetWork->Server->wi-fi. Screen shot as follows:
4.3 Change lan server ip of your DVR
If your DVR connect yourself CMS server using lan, please change lan server ip into your real
server internet ip.
NetWork->Server->lan. Screen shot as follows:
31
5. Using CMS Client
If the UUID of DVR has been added into the CMS server and user have been created. Customer
can user CMS client to login server and view the DVR. And CMS client can be runned in windows
7/8/10 only.
5.1 Login server
Suppose your serverIp is 192.168.188.129 and UseName/Password created in 3.2 is
test/12323213.
32
5.2 Main GUI
5.3 CMS client manual
More details about using CMS client can be found in next document,
Download address:
http://183.233.190.23:6061/docs/index.html#cmsclient
33