Skip to main content

Drivers for professional systems or iRidi Server

A driver is a subprogram within i3 pro or iRidi Server that communicates with devices and systems over an IP network or a physical interface

This section describes how i3 pro interacts with devices and systems for control and data acquisition, and the role of iRidi Server in this process.

How i3 pro and iRidi Server interact with equipment​

Equipment, a control system, or a service is any external resource with which iRidi (i3 pro, iRidi Server) must interact to send and receive information.

Here, interaction means transferring information:

  1. directly from i3 pro to equipment
  2. from i3 pro to iRidi Server, then from iRidi Server to equipment

Studio2019_Drivers_BasicsOfCommunication.png

In most cases, information must also be received back from equipment.

i3 pro can run on PCs, smartphones, and tablets. iRidi Server can run on a PC or physical controller. PCs and controllers can have not only network interfaces but also physical interfaces (RS232 and others) for data transfer.

i3 pro / iRidi Server can communicate with an external resource that supports the same data transfer method as i3 pro / iRidi Server. Thus, i3 pro running on an iPhone cannot send an IR command to a TV or connect to a controller that has only an RS232 interface.

This problem can usually be solved using iRidi Server, but additional converter devices are sometimes required to convert data received over an IP network into infrared signals or transfer it from the IP network to RS232. Such converters include Global Cache.

Drivers in iRidi Pro​

A driver is a subprogram within i3 pro or iRidi Server that communicates with external resources (devices and services). Data format and addressing vary with the transmission medium. The driver creates and addresses information packets and processes incoming information.

A driver implements a data transfer protocol : a set of agreements defining how programs exchange data. These agreements establish a common method of message transfer and data processing between software running on physically separated hardware connected through an interface.

For example, the "KNX Router (KNXnet/IP) / Serial (UMC)" driver in iRidi implements KNXnet/IP, which can operate over an IP network or an RS232 serial port. Add the driver to i3 pro or iRidi Server and select the interface it will use.

A driver can run in either i3 pro or iRidi Server if its host device has the data transfer interface required by the driver.

Hosting drivers on iRidi Server​

When drivers are hosted on iRidi Server, i3 pro communicates with devices through the server. Client-server communication uses the secure iRidi protocol; server-device communication uses the device protocol.

For some automation systems, communication through a server is preferable because not all systems support multiple connections simultaneously. The server solves this problem by distributing data to all interface clients.

With the server, equipment feedback states do not need to be refreshed each time i3 pro starts, because iRidi Server runs continuously and has up-to-date system state data.

Another important feature is connecting to the server over the Internet using "Cloud Gate" mode (a secure remote connection without configuring ports or VPN, similar to dynamic DNS).

iRidi Server has a Virtual driver that does not connect to physical devices but exchanges data between iRidi Server and i3 pro. In i3 pro, the iRidi Server connection and Virtual variables look like commands and feedbacks of other drivers. However, Virtual variables are handled only by iRidi Server according to the developer's logic.

Communication between iRidi Server and i3 pro can be configured by creating a Master project or synchronizing the iRidi Server and i3 pro projects.

Note

The driver's current state and the data written to its feedbacks are available in the server's web interface.

Adding a driver​

You can add a driver to an i3 pro interface or iRidi Server:

  • by importing a file containing your equipment configuration, or by scanning the local network. The following are supported (see iRidi Studio for the current list):

    • DuoTecno - network scanning
    • HDL-BUS Pro - network scanning
    • KNX (ETS, *.knxproj) - file import; creates a list of IP interfaces and group addresses
    • Modbus (*.csv) - file import in the internal iRidi format; see the Modbus documentation. Creates a list of registers
    • Crestron (Simpl, *.smw) - file import; creates a list of joins
    • iRidi JavaScript (iRidi Studio, *.js) - file import; adds scripts from one project to another
    • iRidi project (iRidi Studio, *.irpz, *.sirpz) - file import; adds drivers from one project to another
    • Domintell - network scanning
    • Velbus - network scanning
    • AMX (TPDesign, *.TP4, *.TP5) - not shown in driver import, but a TP4 project can be opened in Studio like an *.irpz file. The *.TP4 file is automatically converted to i3 pro format
  • from the database , which contains drivers of different types that you can use in your project. Commands and feedbacks must be created manually

  • by creating it through JavaScript . It is not shown in the device tree, but works when i3 pro runs, in the way defined by the developer. See JS API

  • add a widget module from the Modules library. Modules is a library of ready-made i3 lite modules (a module combines a driver and its ready-made interface). Module appearance cannot be changed, but modules require no fine-tuning and work as-is, "out of the box", immediately after being added and configured.

Studio2019_SidePanel_Drivers.png

add a driver to an i3 pro interface

Studio2019_SidePanel_Drivers_onServer.png

add a driver to the iRidi Server configuration

Driver settings, commands, and feedbacks​

Note

Driver settings and command/feedback parameters vary depending on the implemented protocol. For the driver you need, see its documentation section.

Main driver characteristics:

Driver1.png

  1. Driver Type indicates which protocol the driver implements;
  2. Protocol (transport) indicates how data is transferred (TCP, UDP, RS232, ...);
  3. Local Connection (connection) is a set of addressing parameters needed for information to reach a particular recipient on a multiuser network (for example, the IP address and connection port are mandatory primary parameters on an IP network);
  4. Keep Alive (for TCP drivers) - TCP connection check interval. If there is no response to a Keep Alive request, the driver is forced into the disconnected state. This parameter ensures correct online status display when a client disconnects unexpectedly/incorrectly. 0 disables the setting;
  5. Tags - a name used to find a driver or group of drivers through the search field.

The contents of a driver are a set of command addresses to which values can be written for sending to equipment, and a set of feedback addresses where the driver stores values received from equipment. Addressing systems vary by protocol; configured commands and feedbacks provide convenient access to equipment addresses:

Driver2.png

  1. Commands - device variables to which commands must be sent. For example, to control a KNX relay at "1/0/1", write 0 or 1 to the KNX driver command with this address.
  2. Feedbacks - variables for sorting and storing data received from equipment. For example, a KNX relay returns 0 or 1 when switched; the driver exposes this value as feedback at "1/0/1". The value can be displayed in the interface.
  3. Tokens (driver tokens) - feedbacks reporting the driver's connection status and important connection information (address, connection port and so on)

Detailed instructions for configuring a specific driver are available at this link.

Tools for creating custom drivers​

An iRidi driver implements the protocol (rules) for data exchange with equipment over a transport: a particular data transfer method (TCP, UDP, RS232, ...).

If your system does not yet have a ready-made protocol implementation, you can create one yourself. You need a driver that implements only the transport part of data exchange, while you implement the protocol (forming requests and processing responses) using JavaScript.

For details on the transport drivers AV & Custom Systems :

Equipment control​

SendRecieve.png

To control equipment, configure commands (Commands) and feedback channels (Feedbacks). To send a command, drag it onto a graphic item and specify the value (Value) to send. To display a feedback channel value, drag Feedback onto a graphic item and specify how its value (Value) should be displayed.

Devices%2BProgramming.png

To link commands and feedback channels, you can also select a graphic item and drag a command or feedback onto the corresponding tab in Programming. Drag commands onto Press, Release, Hold, or End of hold, and feedback onto Relations.

For more information about graphical items, see Graphical item types.

Viewing links to graphic items​

There are several ways to see which graphic items are linked to commands and feedbacks:

  1. Used items window. Displays all links between the selected command or feedback and graphic items. To open it, right-click the command / feedback and select "Show Usage" from the available options.
  2. Programming tab . Displays all links of the selected graphic item (for details, see here).
  3. Highlighted links on the Devices tab . Selecting a graphic item highlights its linked commands and feedbacks in a different color in the device (Drivers) window. Selecting a page or popup highlights all commands and feedbacks linked to graphic items on that page / popup in a different color on the "Devices" tab.

Relation.png