
User guide and technical documentation
Page
18
of
29
5.
When the backup is completed, the message “Updated successfully” will be displayed in the service
web interface, physically the completion of the backup is indicated on the unit by slower blinking of
the diodes (indication of the service mode).
6.
Remove the USB flash drive from the controller. Check on the other device for backup files.
7.
You can now restart the unit using the "Restart System" button in the upper right corner of the service
web interface.
3.2
Overview of available APIs
APIs are low-level programming interfaces ready for use in developing your own software (in languages
such as C, Python, etc.). For more information, documentation, and usage examples, see the API section and
the download documentation section of the Knowledge Base (
https://kb.unipi.technolgogy
). We provide the
following APIs for use with Unipi Patron.
3.2.1
EVOK
It serves as an interface to physical inputs, outputs and communication interfaces, which allows the simplest
possible access to the hardware without the need to deal with low-level programming. The following
protocols can be used for access:
•
REST
•
Bulk JSON
•
REST JSON
•
SOAP (Simple Object Access Protocol)
•
WebSocket
•
JSON-RPC
3.2.2
Modbus TCP
It is a standard interface for interaction with inputs and outputs based on TCP.
Modbus register maps for
each unit are freely downloadable from the Knowledge Base.
Note:
Modbus TCP interface does not provide 1-Wire access.
There are two ways to access individual registers/coils. Since each section has its own processor, the
individual registers/coils of the section are available via
Unit X
, where
X
represents the section number (i.e.
1 – 3) and at the same time via
Unit 0
, where all registers/coils of the given product are available (see
chapter 1.4).
Example:
The number of digital inputs/outputs on Section 2 of the M527 unit (see the Modbus table of the
registers of the given unit) can be read via:
Unit 2 na registru 1001
Unit 0 na registru 1101
3.2.3
SysFS
Part of the kernel module for file-level access of inputs and outputs on Linux.
Set state of
DO
to 1:
echo 1 > /run/unipi/io_group1/do_1_01/do_value
Read the state of
DI
:
cat /run/unipi/io_group1/di_1_01/di_value
All I/Os can be accessed similarly.