This page is a
translated version of the page
ElkoEp and the translation is 100% complete.
iRidium for INELS BUS
a set of tools for creating visualization interfaces
The driver is meant to control INELS BUS System equipment. To understand the driver, use the project example:
Description
iRidium for INELS BUS is a set of tools to create an interface to control Smart home or office on the basis of INELS BUS equipment. It realizes commands of INELS BUS protocol.
Connection
Control panels (iOS, Android, Windows, Mac) can control ELKO EP iNels equipment only via a controller. We are recommended to use PLC CU3-01(02)M.
To work in iRidium Studio it's necessary to know addresses and types of channels. To do it, export a file from IDM3 Central unit editor and open it in a text editor "Notepad++". The file will consist of devices with their set of inputs/outputs and its types. The received values from the file are filled in the driver in the studio to sent commands and get feedback.
1Add devices to a project and configure them with the help of IDM3 Central unit editor.
2 Go to the "Project" tab and open "Device Manager", Click right mouse button and choose "Select All for Export"
3 Choose Create iNELS3 export file. in the main menyuand save the export file.
4 Open the file in the text editor "Notepad++". Each line contains the name of a module, its address in the project, type of data and an address for a command or a feedback channel. For further settings of the tags in iRidium studio highlight Type and Address values in the lines.
Go to iRidium studio and add iNELS driver.
Adding the driver manually
- Launch iRidium Studio and create a new iRidium project
- Open DEVICE BASE side panel and find INELS BUS driver. Drag and drop INELS BUS to PROJECT DEVICE PANEL
2 Open the Devices side panel. Choose INELS BUS driver.
Indicate the controller address in iRidium project otherwise it will not work.
Connection settings
When the driver is added to the project, specify the connection settings.
- Log Level - the level of logging уровень;
- Host - the IP address of a controller;
- Port - a port to connect to controller;
- Keep Alive - an interval to check TCP connections. In case there is no answer to the Keep Alive request, the driver state is obligatorily switched to "turned off";
- Separator - a separator is used between instructions, address and value;
- Type Send - a format to send commands (Decimal, Hexadecimal -, Hexadecimal without 0x - Hexadecimal without 0x before a bite).
- Address Format - the format of device addresses (Decimal, Hexadecimal)
Change of Connection Settings
You need the possibility to change connection properties when you disconnect from the Wi-Fi network of the automation object and start using 3G or another Wi-Fi network. To maintain control of the object you need to switch from the local to public IP-address of the Internet router.
The switch is not automatic. You have to select the connection mode. For remote acces you have to make ports for controlling the automation system public. In order to do that you have o set up the Port Forwarding service on your Internet router. VPN can provide protected connection.
1 Download the template (*.js) (right-click button: "Save object as ..."), add the template in the script editor with the button
(+) Add Script from file
2 Set up script properties as it is shown in the example:
- function Internal_1() {
- IR.GetDevice('INELS BUS').SetParameters({Host: "192.168.0.95", Port: 5001, Separator: 32, TypeSend: 0} //Indicate ASCII code as a separator in hex (e.g.: " " - 0x20, " " " - 0x22 ...));
- }
- function External_1() {
- IR.GetDevice('INELS BUS').SetParameters({Host: "215.110.10.10", Port: 5001, Separator: 10, TypeSend: 1});
- }
Copy the driver name from Projeсt Device Panel - the list of properties has to be copied from the example.
3 Select the button which will be responsible for the switch of Internal and External properties. Open Macros Editor
for the Press event (Object Properties > Programming), select the Script Call
command and add it by double-clicking on it. Select the name of the function which will be activated by the button:
Now each pressing on the button will apply the corresponding connection properties.
Commands & Feedbacks
To control equipment it is required to set Commands and Feedbacks. To send a command, drag'n'drop it on a graphic item and enter a value to send. To display feedback drag'n'drop a feedback channel on a graphic item and choose how to output or display a value.
Read more about work with graphic items in the
"Types of graphic items" article.
To set commands and feedback channels set value in the following fields:
- Type - type of device
- Address - address of a device set in INELS3 Designer & Manager
At the moment the following types of variables are supported:
To fill in the Type and Address fields, open the export file and choose a type according to the table for the studio and then enter Address.
Type of tags in iRidium studio
|
Type from import file
|
Analog Out |
0104
|
Digital Out |
0102
|
Temperature |
0105
|
Digital In |
0101
|
Analog In |
0103
|
Special |
0106
|
Trouble |
0107
|
Analog Sensor In |
0108
|
Zone Satus Output |
010A
|
Gsm SMS In |
010B
|
Gsm SMS Out |
010C
|
Gsm Tel In |
010D
|
Gsm Tel Out |
010E
|
RFTP Status Input |
010F
|
RFPM Counter Input |
0110
|
Heat Cool Control Out |
0111
|
Analog Sensor Out |
0112
|
Email Out |
0113
|
Status In |
0114
|
System Integer |
0202
|
System Bits |
0203
|
Example:
To set a temperature channel of DA3-22M device, choose Type from the table 0x0105 = Temperature, Address 0004 = 4.
Links to the manufacturer's website:
https://elkoep.com
https://inels.com