Skip to main content

bus77 protocol description

The bus77 protocol was created to address the main tasks at automation sites, such as:

  • Discovering network participants
  • Establishing connections and negotiating connection parameters between network participants
  • Setting and retrieving configuration information about network participants
  • Transferring control signals and streams between network participants
  • Checking the integrity of transmitted data
  • Encrypting transmitted data

A detailed description of the protocol is available in the patent

The current version of the protocol is available on GitHub

Participants in a network using the iRidi protocol​

Development tools are programs used to configure, debug, and maintain network participants.

Server controller is a program or device for running user programs, collecting and storing information from other automation devices, and receiving control signals from control panels.

Control panel is a program or device for displaying the current state of an automation site and controlling it.

Actuator is a program or device that acts as a finite-state machine, executing commands from participants in a network using the iRidi protocol according to its own hard-coded program.

Cloud gateway is a program for connecting control panels and client servers, and collecting and processing information from the server controller.

Network operating modes​

In centralized network mode, the network has a server to which all network participants are connected. The server makes decisions about controlling network devices by sending and receiving control signals. The server has all information about and control over network participants, but if the server fails, the automation site loses its configuration capability and some of its control capability.

In decentralized network mode, network participants have no single control center. They can be divided into two categories: event generators and event handlers. For example, a network has two participants: a button and a lamp. Pressing the button generates an event indicating a change in a global variable to which the lamp subscribes. The lamp responds to the change and turns on or off depending on the value received in the event. There is no need for a central node such as a server or hub.

In combined network mode, the server can control devices operating in both centralized and decentralized modes. This can significantly improve system reliability and reduce the load on the server. For example, building services operate in a decentralized network, while multimedia operates in a centralized network. If the server fails, the building services continue to operate normally.

Variable types​

Control channel is an entity that allows a device to receive a value from the external environment. A device that receives a value on a control channel performs actions according to its program. A global variable can also project its value onto its associated control channel. The firmware determines the number of global variable slots in the channels.

Feedback channel is an entity that allows an internal device value to be transmitted to the external environment. A feedback channel can also take the value of its associated global variable. A feedback channel can own one global variable. Thus, if any network participant wants to obtain the current value of a global variable, the owner of the global variable must report its current value. If the network has several owners of the same variable, the variable's value is considered undefined.

Global variable is an abstract value that can be associated with control and feedback channels. Its purpose is to link different devices in both centralized and decentralized network segments. Any change in a global variable's value becomes known to all network participants that work with global variables.

Global variables implement the distributed logic of a decentralized bus77 network: the variables are stored on the devices themselves, so the devices respond to system events and generate events regardless of whether a central server is present.

The hybrid architecture of the bus77 protocol allows centralized and decentralized network segments to be combined and signals to be transferred between them using global variables.

Device addressing system​

The bus77 device addressing system is tied to the network architecture and works as follows:

  • iRidi Server is available at address 0. * Devices on the same bus segment as iRidi Server (referred to as CAN 1) are available at addresses from 1 to 255. * If an iRidi hub is connected to CAN 1 and a second bus segment (CAN 2) is connected to that hub, CAN 2 devices are available at an address formed from 2 parts: <iRidium hub address><device address from 1 to 255>. For example, if the iRidi hub on CAN 1 has address “1” and a relay on CAN 2 has address “255”, the relay is available to iRidi Server at address “1255” (1+255).
  • The iRidi hub itself is available to the server simultaneously at address “1” (as a CAN 1 device) and “10” (1+0, the address of device zero on CAN 2).

With a limit of 255 addresses per bus segment, addresses can be assigned to no more than 65025 devices, but the physical limitations of the bus77 bus do not allow more than 127 devices per segment.