-
Notifications
You must be signed in to change notification settings - Fork 1
/
BJUMPER BGator_M2C_T-H_Rack_2_es.xml
125 lines (114 loc) · 3.54 KB
/
BJUMPER BGator_M2C_T-H_Rack_2_es.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="UTF-8"?>
<APC_DDF
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://localhost/ddf_schema/apc_ddf_1_6.xsd"
ddfid="BGator_Gateway_SensorSNMP_M2C_T-H_Rack_2"
ddfname="BGator Gateway M2C T/H Rack 2"
ddfversion="7"
canremove="no">
<schemaVersion>1.6</schemaVersion>
<device deviceid="SensorSNMP_Rack2_Back">
<oidMustExist ruleid="modbusdevicetest" oid="MODBUS_OID_MUST_EXIST" />
<setProductData ruleid="vendordata" field="vendor">Bjumper</setProductData>
<setProductData ruleid="modeldata" field="model">SensorSNMP_M2C_T/H</setProductData>
<setProductData ruleid="typedata" field="type">Environmental Monitor</setProductData>
<setDefaultLabel ruleid="labeldata">
<sysHostname /> - Slave <commSetting field="slaveaddress" />
</setDefaultLabel>
<numSensor ruleid="temperatura_MAX">
<type>temp</type>
<sensorId>temperatura_MAX</sensorId>
<value>32</value>
<label>Temperatura límite superior</label>
<sensorSet>Límite</sensorSet>
</numSensor>
<numSensor ruleid="temperatura_1">
<type>temp</type>
<sensorId>temperatura_1</sensorId>
<value>
<mult>
<op><getOid>temperatura_1</getOid></op>
<op>0.001</op>
</mult>
</value>
<label>Sensor de temperatura</label>
<sensorSet>Temperatura</sensorSet>
</numSensor>
<numSensor ruleid="temperatura_MIN">
<type>temp</type>
<sensorId>temperatura_MIN</sensorId>
<value>15</value>
<label>Temperatura límite inferior</label>
<sensorSet>Límite</sensorSet>
</numSensor>
<numSensor ruleid="humedad_MAX">
<type>num</type>
<units>percent</units>
<sensorId>ROOM_RELATIVE_HUMIDITY_1</sensorId>
<value>80</value>
<label>Humedad límite superior</label>
<sensorSet>Límite</sensorSet>
</numSensor>
<numSensor ruleid="humedad_1">
<type>humidity</type>
<sensorId>ROOM_RELATIVE_HUMIDITY</sensorId>
<value>
<mult>
<op><getOid>humedad_1</getOid></op>
<op>0.001</op>
</mult>
</value>
<label>Sensor de humedad</label>
<sensorSet>Humedad</sensorSet>
</numSensor>
<numSensor ruleid="humedad_MIN">
<type>num</type>
<units>percent</units>
<sensorId>ROOM_RELATIVE_HUMIDITY_2</sensorId>
<value>20</value>
<label>Humedad límite inferior</label>
<sensorSet>Límite</sensorSet>
</numSensor>
<numSensor ruleid="bateria_1">
<type>num</type>
<units>percent</units>
<sensorId>bateria_1</sensorId>
<value>
<mult>
<op><getOid>bateria_1</getOid></op>
<op>0.01</op>
</mult>
</value>
<label>Sensor de batería</label>
<sensorSet>Batería</sensorSet>
</numSensor>
</device>
<protocol>
<modbus>
<type_definition type_name="swapped_int">
<type>int_32</type>
<!-- must be one of our 'normal' modbus types -->
<byte_order>1,0,3,2</byte_order>
<!-- mapping of device's byte string into the order which we want -->
</type_definition>
<value_ref_id valid="temperatura_1">
<function>3</function>
<start_addr>1</start_addr>
<quantity>2</quantity>
<type>swapped_int</type>
</value_ref_id>
<value_ref_id valid="humedad_1">
<function>3</function>
<start_addr>3</start_addr>
<quantity>2</quantity>
<type>swapped_int</type>
</value_ref_id>
<value_ref_id valid="bateria_1">
<function>3</function>
<start_addr>5</start_addr>
<quantity>2</quantity>
<type>swapped_int</type>
</value_ref_id>
</modbus>
</protocol>
</APC_DDF>