Skip to main content

Remote control of an iRidi Pro site

General instructions for configuring remote control of an iRidi Pro site

Note

Available starting with version 1.3.6

This article describes how to configure remote control through iRidi cloud gate.

Important
  • i3 Pro requires Internet access to work through iRidi cloud gate.
  • Remote control through iRidi cloud gate is a free feature with the following limitations:
  1. The number of control panels must not exceed the limit of the license purchased for the site, and must not exceed 25 (for the ENTERPRISE+ license)
  2. The data transfer rate must not exceed 25 kbit/s (for example, the data transfer rate over RS-232 and RS-485 is usually 9600 bit/s)

What is iRidi cloud gate?​

It is an iRidi mobile cloud server that relays messages between panels and the server over a secure protocol. The cloud server does not store the data passing through it and has no personal information about the devices that use it.

Advantages​

  • remote control of the site without compromising security;
  • no need for port forwarding;
  • No public IP address is required;
  • simple configuration.

Configuration​

Remote control from a panel through iRidi cloud gate is available only with iRidi Pro Server. Both the Panel Project and server project must be downloaded from the account through the cloud rather than through Transfer.

  1. Start iRidi Studio and create a new server project or open an existing one.

  2. Right-click the project name at the top of Studio and open the project settings, or click the gear icon.

  3. In the settings, change the server connection mode to a cloud connection. In the field labeled "Управление с панелей" (control from panels), select "Локально и удаленно через облако" (locally and remotely through the cloud). This allows the panel to connect locally on the home network and remotely when outside it, provided that Internet access is available. For automatic switching, use the script provided in this article on the panel.

Remote_Control_Pro01.png

  1. Save the settings.

  2. Create a new Panel Project from the server project, or open an existing Panel Project linked to the server project and synchronize it.

  3. Configure the iRidi Server driver as follows:

  • "Подключение" (connection): Direct & Remote cloud

Remote_Control_Pro02.png

  1. For automatic switching between local and remote connections, add the script from the example below to the Panel Project .

  2. Upload the projects to the cloud, assign a license, and download the projects to your devices and server.

Changing the connection mode​

A script can configure a hybrid connection mode. When the control panel is on the same network as the server, it sends commands over the local network. When they are on different networks, it sends commands through cloud gate.

To do this, create a new script in the Panel Project:

IR.AddListener(IR.EVENT_START,0,function()
{
var l_sSSID = "iRidium Mobile 2 Floor WiFi";// имя сети, в которой находится ваш сервер

function UpdateCloudMode()
{
if(IR.GetVariable("System.Net.SSID")!=l_sSSID)
IR.SetServerCloudConnect(true)
else
IR.SetServerCloudConnect(false)
}

UpdateCloudMode();

IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, UpdateCloudMode);
IR.SubscribeTagChange("System.Net.SSID");
});