1. Home Page
  2. Step 1: Install Device Gateway

Step 1: Install Device Gateway

You can install the Device Gateway service to your server or PC to use the service remotely. This part contains the following sections.

Port Instruction

Before using this service, check if the default ports of the Device Gateway are used. You can configure them if the default ports are used.

Install Device Gateway on Windows

  1. Right-click the program file, run as the administrator to enter the welcome panel, and select Next.

  2. (Optional) Select Browse... to select the path of legacy configuration files, and select Next.

    Note
    • If you have kept the configuration files of an uninstalled Device Gateway, the Device Gateway will reuse the files saved in the selected path when you install a new version.

    • If the configuration file path of previous version is detected, it is selected by default.

  3. Select Browse..., select a proper directory as required to install the service, and select Next.

  4. (Optional) If the default HTTP port is used, edit the port number.

  5. Select Install.

  6. Read the post-install information and select Finish to complete the installation process.

Note
  • After the Device Gateway is installed, the login page will automatically open in your default web browser.

  • After the Device Gateway is installed, the Watchdog service will get started and hide in the notification area of the desktop. Right-click and select the option to stop the service and start the Device Gateway service, or exit the Watchdog service.

  • If you install the Device Gateway remotely, log into the local computer to show the Watchdog service.

Install Device Gateway on Linux

  1. Add a folder such as /opt/test/DeviceGateway as the installation directory of the Device Gateway, and put the installation package in the folder.
    Figure 1 Installation Folder
  2. Execute tar command to extract the file to the installation directory.

    Figure 2 Extract File
    Figure 3 Extract File
  3. Execute chmod command to configure permissions for istall.sh in the installation directory.

    Figure 4 Before Configuration
    Figure 5 After Configuration
  4. Execute istall.sh to install the Device Gateway.

    1. (Optional) Execute --help of the install.sh script to view the available options.

      Figure 6 Options
    2. (Optional) You can configure --port of the install.sh to set the HTTP port number which you use to visit the Device Gateway. The port number is 80 by default.

    3. (Optional) You can configure --path of the install.sh to set the directory of legacy files. If there are any legacy files including device and the Device Gateway parameters, enter the path of it so that you do not need to configure it again.

    4. (Optional) You can also install without options.

      Figure 7 No Options
Note
  • You need to run the Device Gateway as the administrator.

  • After installation, the system parameters will be changed by default: the DefaultLimitNOFILE in /etc/systemd/system.conf will be changed to 1000000, and SELinux will be disabled.

  • When you install the Device Gateway, you can automatically get all permissions of the files under the installation directory to ensure that the Device Gateway works well.

  • When you install the Device Gateway, the default ports of firewall will be automatically used. The ports are as follows:

    Port

    Number

    tcp

    80 (the HTTP port you set), 443, 554, 7091, 7661-7667, 15000-17000

    udp

    7661, 7662, 15000-17000

    Figure 8 Ports
  • Execute status.sh to view the Device Gateway status.

  • Execute start.sh to start the Device Gateway which is in stopped status, and execute stop.sh to stop the Device Gateway which is in running status.

    Figure 9 Current Status
  • Execute uninstall.sh to uninstall the Device Gateway. The files in the installation directory will all be kept after uninstillation, and you can manually delete them.

    Figure 10 Uninstall Device Gateway

Activate Device Gateway

By default, the administrator user name is set to admin by default. When you log in to the Device Gateway for the first time, you are required to create a password for the admin user to activate the service.

Scenario

Activation Process

Install the Device Gateway on Windows and activate it on your local PC.

After the Device Gateway is installed, the login page will automatically open in your default web browser.

  1. Enter the password and confirm password for the admin user.

  2. Select Activate.

  3. Select Configure to enter the Configuration page, and configure the parameters.

  • Install the Device Gateway on Windows and activate it remotely.

  • Install the Device Gateway on Linux
  1. Enter the address of the computer or server running with the Device Gateway service and port number in the address bar of the web browser, and press Enter key.

    Note

    If the IP address of your computer is 172.6.21.96, and the port number is 80, enter http://172.6.21.96:80 in the address bar.

  2. Enter the password and confirm password for the admin user.

  3. Select Activate.

  4. Select Configure to enter the Configuration page, and configure the parameters.

On This Page
  • Port Instruction
  • Install Device Gateway on Windows
  • Install Device Gateway on Linux
  • Activate Device Gateway