Identifiers of monitoring objects
Unique identifiers (ID) for elements, groups and modules are issued from special ranges and by special formulas.
The System element that reflects the state of the system has a special identifier with a fixed value of ID = 100.
The identifiers of the system modules are issued from the range 2001 to 2999. The numbers are assigned in ascending order, in the order of initialization of the modules when the system boots. After saving the configuration, the IDs are restored from the configuration file.
The group IDs are issued from the range 3001 to 3999. The numbers are assigned in ascending order, in order of creating the groups. When deleting a group, the number is released and assigned to the newly created group.
The identifiers of the elements are calculated from the class and type of the element, and represent a six-digit number, where:
3 | 0 | 4 | 0 | 0 | 1 |
---|---|---|---|---|---|
element class | element type | element number |
The element class is encoded with one of the following numbers:
Code | Class description |
---|---|
1 | sensors with digital output |
2 | sensors with analog output |
3 | switching elements |
4 | hardware devices: modems, readers and so on. |
5 | virtual devices: timers, pings and so on. |
6 | notifications: e-mail, sms and so on. |
The element type is encoded according to the class:
Code | Sensors with digital output | Sensors with analog output | Switching elements | Hardware devices | Virtual devices | Notifications |
---|---|---|---|---|---|---|
01 | dry contact | temperature sensor | relay | iButton reader | timer | e-mail notification |
02 | access sensor | humidty sensor | outlet | IP camera | ping | notification to the SNMP manager |
03 | airflow sensors | voltage sensor | switch | USB camera | logic scheme | SMS notification |
04 | motion sensor | transducer voltage sensor | low-current low-voltage output | GSM modem | trigger, virtual switch | |
05 | vibration sensor | current sensor | SNMP virtual element | |||
06 | smoke sensor | Current Transformer | ||||
07 | leakage sensor | vibration sensor | ||||
08 | button (не используется) | energy parameter: power | ||||
09 | overcurrent indication | energy parameter: frequency | ||||
10 | other energy parameters |
The element number is assigned in ascending order, in the order of initialization (if created by the system) or creation (if created by the user). When a member is deleted by the user (for those elements where this is possible), the number is freed and assigned to the newly created element of the given class and type.