Subversion Repositories HomeAutomation

Rev

Rev 1628 | Rev 1709 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
946 runge 1
<?xml version="1.0" standalone="yes"?>
2
<root>
3
  <classes>
986 runge 4
    <class id="0" name="nmt" description="Networkmanagement used only for packets with the nmt-protcol header"/>
5
    <class id="11" name="mnmt" description="Module networkmanagement, right now only used for requesting module listing from a node"/>
6
    <class id="12" name="act" description="Actuator nmt_messages"/>
7
    <class id="13" name="sns" description="Sensor nmt_messages"/>
946 runge 8
    <class id="14" name="def" description="Default, not to be used"/>
9
    <class id="15" name="tst" description="Testing stuff"/>
1266 pengi 10
    <class id="10" name="chn" description="Control channel based"/>
946 runge 11
  </classes>
12
  <commands>
13
    <command id="0" name="List" type="global" module="" description="Message that module send to tell the world what it is">
14
      <variables>
15
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
16
        <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
17
        <variable name="SequenceNumber" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
18
      </variables>
19
    </command>
968 runge 20
 
954 runge 21
    <command id="2" name="Debug" type="global" module="" description="Used for debugging, should not be used for anything real"/>
22
    <command id="3" name="Report_Interval" type="global" module="" description="Get/Set interval of reporting">
952 runge 23
      <variables>
24
        <variable name="Time" type="uint" start_bit="0" bit_length="8" unit="Second" description=""/>
25
      </variables>
26
    </command>
1580 kribba 27
 
28
    <command id="10" name="GPSTime" type="global" module="" description="Timestamp from GPS module">
29
      <variables>
30
     <variable name="Hour" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
31
     <variable name="Minute" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
32
     <variable name="Second" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
33
     <variable name="Zone" type="uint" start_bit="24" bit_length="8" unit="" description="Timezone diff from GMT"/>
34
      </variables>
35
    </command>
1583 kribba 36
 
37
    <command id="11" name="GPSDate" type="global" module="" description="Date from GPS module">
38
      <variables>
39
     <variable name="Year" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
40
     <variable name="Month" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
41
     <variable name="Day" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
42
      </variables>
43
    </command>
958 runge 44
 
45
    <command id="64" name="Pwm" type="physical" module="" description="Message for pwm data">
46
      <variables>
47
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1380 linlun 48
        <variable name="Value" type="uint" start_bit="8" bit_length="16" unit="" description=""/>
958 runge 49
      </variables>
50
    </command>
946 runge 51
    <command id="65" name="Temperature_Celsius" type="physical" module="" description="Temperature data">
52
      <variables>
53
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
54
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Celsius" description=""/>
55
      </variables>
56
    </command>
956 runge 57
    <command id="66" name="Humidity_Percent" type="physical" module="" description="Humidity data">
58
      <variables>
59
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
60
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="" description=""/>
61
      </variables>
62
    </command>
946 runge 63
    <command id="67" name="Voltage" type="physical" module="" description="Voltage data">
64
      <variables>
65
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
66
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Volt" description=""/>
67
      </variables>
68
    </command>
981 runge 69
    <command id="68" name="Phonenumber" type="physical" module="" description="Phonenumber data">
70
      <variables>
71
        <variable name="Number" type="hexstring" start_bit="0" bit_length="64" unit="" description=""/>
72
      </variables>
73
    </command>
956 runge 74
    <command id="69" name="Rotary_Switch" type="physical" module="" description="Command to transmit a rotary encoder switch status">
75
      <variables>
76
        <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1179 arune 77
        <variable name="Direction" type="enum" start_bit="8" bit_length="8" unit="" description="">
78
          <value id="0" name="Clockwise"/>
79
          <value id="1" name="Counterclockwise"/>
80
        </variable>
956 runge 81
        <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
82
        <variable name="Position" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
83
      </variables>
84
    </command>
85
    <command id="70" name="Button" type="physical" module="" description="">
86
      <variables>
87
        <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1046 runge 88
        <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
89
          <value id="1" name="Pressed"/>
90
          <value id="0" name="Released"/>
91
        </variable>
956 runge 92
      </variables>
93
    </command>
992 arune 94
    <command id="71" name="IR" type="physical" module="" description="IR data protocol encoding">
95
      <variables>
1469 arune 96
        <variable name="Channel" type="uint" start_bit="0" bit_length="4" unit="" description="Channel of received or transmitted data"/>
97
        <variable name="Status" type="enum" start_bit="4" bit_length="4" unit="" description="State of remote button">
1046 runge 98
          <value id="0" name="Released"/>
1616 runge 99
      <value id="1" name="Pressed"/>
100
      <value id="2" name="Burst"/>
1046 runge 101
        </variable>
1059 runge 102
        <variable name="Protocol" type="enum" start_bit="8" bit_length="8" unit="" description="Button protocol">
103
          <value id="0" name="RC5"/>
104
          <value id="1" name="RC6"/>
105
          <value id="2" name="RCMM"/>
106
          <value id="3" name="SIRC"/>
107
          <value id="4" name="Sharp"/>
108
          <value id="5" name="NEC"/>
109
          <value id="6" name="Samsung"/>
110
          <value id="7" name="Marantz"/>
1321 arune 111
          <value id="8" name="Panasonic"/>
1589 arune 112
          <value id="9" name="Sky"/>
113
          <value id="10" name="Nexa2"/>
1059 runge 114
          <value id="255" name="Unknown"/>
115
        </variable>
992 arune 116
        <variable name="IRdata" type="uint" start_bit="16" bit_length="32" unit="" description="Button protocol unique ID"/>
117
      </variables>
118
    </command>
1260 arune 119
    <command id="72" name="Current" type="physical" module="" description="Current data">
120
      <variables>
121
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
122
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Ampere" description=""/>
123
      </variables>
124
    </command>
1121 linlun 125
    <command id="73" name="ElectricPower" type="physical" module="" description="Message with data from a power meter">
126
      <variables>
127
        <variable name="Power" type="uint" start_bit="0" bit_length="16" unit="Watt" description=""/>
1193 linlun 128
        <variable name="EnergySum" type="uint" start_bit="16" bit_length="32" unit="W/h" description=""/>
1260 arune 129
        <variable name="Power32" type="uint" start_bit="48" bit_length="16" unit="Watt" description="Average of 32 measurments"/>
1121 linlun 130
      </variables>
131
    </command>
1419 linlun 132
    <command id="74" name="SetPin" type="physical" module="" description="">
133
      <variables>
134
        <variable name="PinId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
135
        <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
136
          <value id="1" name="High"/>
137
          <value id="0" name="Low"/>
138
        </variable>
139
      </variables>
140
    </command>
1421 linlun 141
        <command id="75" name="PinStatus" type="physical" module="" description="">
142
      <variables>
143
        <variable name="PinId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
144
        <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
145
          <value id="1" name="High"/>
146
          <value id="0" name="Low"/>
147
        </variable>
148
      </variables>
149
    </command>
1121 linlun 150
    <command id="128" name="setEnergy" type="specific" module="power" description="Set the energy value on the power meter module">
151
      <variables>
1193 linlun 152
        <variable name="Energy" type="uint" start_bit="0" bit_length="32" unit="W/h" description=""/>
1121 linlun 153
      </variables>
154
    </command>
1436 linlun 155
    <command id="129" name="avgPower" type="specific" module="power" description="The energy since last message">
156
      <variables>
157
        <variable name="Energy" type="uint" start_bit="0" bit_length="16" unit="W/(10*h)" description=""/>
158
      </variables>
159
    </command>    
992 arune 160
    <command id="128" name="IRraw" type="specific" module="irReceive" description="If a protocol not could be found, then send raw data">
161
     <variables>
162
        <variable name="Act1" type="uint" start_bit="0" bit_length="16" unit="Millisecond" description="First active time"/>
163
        <variable name="Pas1" type="uint" start_bit="16" bit_length="16" unit="Millisecond" description="First passive time"/>
164
        <variable name="Act2" type="uint" start_bit="32" bit_length="16" unit="Millisecond" description="Second active time"/>
165
        <variable name="Pas2" type="uint" start_bit="48" bit_length="16" unit="Millisecond" description="Second passive time"/>
166
      </variables>
167
    </command>
1471 arune 168
    <command id="128" name="IRraw" type="specific" module="irTransceive" description="If a protocol not could be found, then send raw data">
169
     <variables>
170
        <variable name="Act1" type="uint" start_bit="0" bit_length="16" unit="Millisecond" description="First active time"/>
171
        <variable name="Pas1" type="uint" start_bit="16" bit_length="16" unit="Millisecond" description="First passive time"/>
172
        <variable name="Act2" type="uint" start_bit="32" bit_length="16" unit="Millisecond" description="Second active time"/>
173
        <variable name="Pas2" type="uint" start_bit="48" bit_length="16" unit="Millisecond" description="Second passive time"/>
174
      </variables>
175
    </command>
1577 arune 176
    <command id="129" name="IrConfig" type="specific" module="irTransceive" description="irTransceive config">
177
      <variables>
178
        <variable name="Channel" type="uint" start_bit="0" bit_length="4" unit="" description="Which channel to configure"/>
179
        <variable name="Direction" type="enum" start_bit="4" bit_length="4" unit="" description="">
180
            <value id="0" name="Auto"/>
181
            <value id="1" name="Transmit"/>
182
            <value id="2" name="Receive"/>
183
        </variable>
184
        <variable name="Transmit power" type="uint" start_bit="8" bit_length="2" unit="" description="0 for lowest power, 3 for max"/>
185
      </variables>
186
    </command>
187
 
1000 kribba 188
    <command id="128" name="Position" type="specific" module="nmea" description="WGS80 LAT/LONG Position">
189
    <variables>
190
        <variable name="Lat_deg" type="uint" start_bit="0" bit_length="8" unit="Degrees" description="Degrees Lat"/>
191
        <variable name="Lat_min" type="uint" start_bit="8" bit_length="8" unit="'" description="Minutes lat"/>
192
        <variable name="Lat_sec" type="uint" start_bit="16" bit_length="15" unit="''" description="Seconds Lat"/>
193
        <variable name="Lat_CD" type="uint" start_bit="31" bit_length="1" unit="" description="N/S"/>
194
        <variable name="Lon_deg" type="uint" start_bit="32" bit_length="8" unit="Degrees" description="Degrees Lat"/>
195
        <variable name="Lon_min" type="uint" start_bit="40" bit_length="8" unit="'" description="Minutes lat"/>
196
        <variable name="Lon_sec" type="uint" start_bit="48" bit_length="15" unit="''" description="Seconds Lat"/>
197
        <variable name="Lon_CD" type="uint" start_bit="63" bit_length="1" unit="" description="E/W"/>      
198
    </variables>
199
    </command>
1584 kribba 200
    <command id="129" name="Heading" type="specific" module="nmea" description="Speed, heading, fix information">
201
    <variables>
202
        <variable name="Fixvalid" type="uint" start_bit="0" bit_length="8" unit="" description="0/1"/>
203
        <variable name="Fixtype" type="uint" start_bit="8" bit_length="8" unit="" description="1=No, 2=2D, 3=3D"/>
204
        <variable name="Numsat" type="uint" start_bit="16" bit_length="8" unit="" description="Number of sats in fix"/>
205
        <variable name="Speed" type="uint" start_bit="24" bit_length="8" unit="Knots" description="Speed over ground"/>
206
        <variable name="Course" type="uint" start_bit="32" bit_length="16" unit="Degrees" description="Course made good"/>
207
    </variables>
208
    </command>
968 runge 209
    <command id="128" name="Printf" type="specific" module="Debug" description="Used for sending debug text with printf">
210
     <variables>
211
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
212
      </variables>
213
    </command>
946 runge 214
    <command id="128" name="LCD_Clear" type="specific" module="HD44789" description="Clear LCD"/>
215
    <command id="129" name="LCD_Cursor" type="specific" module="HD44789" description="Set LCD cursor position">
216
      <variables>
217
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
218
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
219
      </variables>
220
    </command>
221
    <command id="130" name="LCD_Text" type="specific" module="HD44789" description="Print text on LCD">
222
      <variables>
223
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
224
      </variables>
225
    </command>
226
     <command id="131" name="LCD_Size" type="specific" module="HD44789" description="Size of LCD">
227
      <variables>
228
        <variable name="Width" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
229
        <variable name="Height" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
230
      </variables>
231
    </command>
232
    <command id="132" name="LCD_Backlight" type="specific" module="HD44789" description="Set LCD backlight brightness">
233
      <variables>
234
        <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1427 linlun 235
    <variable name="AutoLight" type="enum" start_bit="15" bit_length="1" unit="" description="">
236
        <value id="0" name="OFF"/>
237
        <value id="1" name="ON"/>
238
    </variable>
946 runge 239
      </variables>
240
    </command>
958 runge 241
      <command id="133" name="LCD_TextAt" type="specific" module="HD44789" description="Print text on LCD">
946 runge 242
      <variables>
243
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
244
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
245
        <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
246
      </variables>
247
    </command>
1438 linlun 248
     <command id="128" name="DEBUG" type="specific" module="RGBdriver" description="Debug data from RGB-driver">
249
    <variables>
250
      <variable name="ADC_W" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
251
      <variable name="ADC_R" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
252
      <variable name="ADC_G" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
253
      <variable name="ADC_B" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
254
      <variable name="PWM_W" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
255
      <variable name="PWM_R" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
256
      <variable name="PWM_G" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
257
      <variable name="PWM_B" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
258
    </variables>
259
      </command>
1448 myhrman 260
    <command id="128" name="SerialData" type="specific" module="Serial" description="Serial data">
261
      <variables>
262
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
263
      </variables>
1452 myhrman 264
    </command>
265
    <command id="129" name="SerialConfig" type="specific" module="Serial" description="Serial config">
266
      <variables>
1454 myhrman 267
        <variable name="BaudRate" type="uint" start_bit="0" bit_length="16" unit="" description="Baudrate/10"/>
1452 myhrman 268
        <variable name="PhysicalFormat" type="enum" start_bit="16" bit_length="8" unit="" description="">
269
            <value id="0" name="RS232"/>
1454 myhrman 270
            <value id="1" name="RS485FullDuplex"/>
271
            <value id="2" name="RS485HalfDuplex"/>
272
            <value id="3" name="RS485HalfDuplexWithTermination"/>
273
            <value id="255" name="Loopback"/>
1452 myhrman 274
        </variable>
1581 myhrman 275
        <variable name="DataBits" type="uint" start_bit="24" bit_length="8" unit="" description="Nr of data bits (5-9)"/>
276
        <variable name="StopBits" type="uint" start_bit="32" bit_length="8" unit="" description="Nr of stop bits (1-2)"/>
277
        <variable name="Parity" type="enum" start_bit="40" bit_length="8" unit="" description="Parity mode">
278
            <value id="0" name="ParityNone"/>
279
            <value id="1" name="ParityEven"/>
280
            <value id="2" name="ParityOdd"/>
281
        </variable>
1452 myhrman 282
      </variables>
283
    </command>
1539 arune 284
 
285
    <command id="128" name="AnalogConfig" type="specific" module="inputAnalog" description="Configuration for analog input module">
286
      <variables>
287
        <variable name="SensorId" type="uint" start_bit="0" bit_length="4" unit="" description="Which input to configure"/>
1542 arune 288
        <variable name="Setting" type="enum" start_bit="4" bit_length="2" unit="" description="">
1539 arune 289
            <value id="0" name="PeriodicMeasure"/>
290
            <value id="1" name="DigitalInput"/>
291
        </variable>
1542 arune 292
        <variable name="Pullup" type="enum" start_bit="6" bit_length="1" unit="" description="Enable pullup on sensor">
1539 arune 293
            <value id="0" name="Disable"/>
294
            <value id="1" name="Enable"/>
295
        </variable>
1542 arune 296
        <variable name="Reference" type="enum" start_bit="7" bit_length="1" unit="" description="Enable GND reference on sensor">
1539 arune 297
            <value id="0" name="Disable"/>
298
            <value id="1" name="Enable"/>
299
        </variable>
1542 arune 300
        <variable name="VoltageLowTh" type="float" start_bit="8" bit_length="16" unit="Volt" description="Low threshold for digital input"/>
301
        <variable name="VoltageHighTh" type="float" start_bit="24" bit_length="16" unit="Volt" description="High threshold for digital input"/>
302
        <variable name="Periodicity" type="uint" start_bit="40" bit_length="16" unit="Millisecond" description="The periodicity at which the sensorvalue is sent during periodic measure"/>
1539 arune 303
      </variables>
304
    </command>
305
 
1110 linlun 306
    <command id="128" name="DEBUG" type="specific" module="PID" description="Debug data from PID regulator">
307
    <variables>
1117 linlun 308
      <variable name="P_term" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
309
      <variable name="I_term" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
310
      <variable name="D_term" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
1380 linlun 311
      <variable name="Sum" type="int" start_bit="48" bit_length="16" unit="" description=""/>
1110 linlun 312
    </variables>
313
      </command>
1363 linlun 314
      <command id="129" name="CONFIG_SENSOR" type="specific" module="PID" description="Configure PID regulator, if message is sent with 0 data bytes, module will respond with current configuration">
1110 linlun 315
    <variables>
316
      <variable name="sensorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
317
      <variable name="sensorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
318
      <variable name="sensorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
319
    </variables>
320
      </command>
1363 linlun 321
      <command id="130" name="CONFIG_ACTUATOR" type="specific" module="PID" description="Configure PID regulator, if message is sent with 0 data bytes, module will respond with current configuration">
322
    <variables>
323
      <variable name="actuatorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
324
      <variable name="actuatorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
325
      <variable name="actuatorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
326
    </variables>
327
      </command>
328
      <command id="131" name="CONFIG_PARAMETER" type="specific" module="PID" description="Configure PID regulator constants, if message is sent with 0 data bytes, module will respond with current configuration">
329
    <variables>
330
      <variable name="K_P" type="float" start_bit="0" bit_length="16" unit="" description=""/>
331
      <variable name="K_I" type="float" start_bit="16" bit_length="16" unit="" description=""/>
332
      <variable name="K_D" type="float" start_bit="32" bit_length="16" unit="" description=""/>
1376 linlun 333
      <variable name="TimeUnit" type="enum" start_bit="48" bit_length="1" unit="" description="">
1380 linlun 334
        <value id="0" name="s"/>
335
        <value id="1" name="ms"/>
1363 linlun 336
      </variable>
1380 linlun 337
      <variable name="RegulatorTime" type="uint" start_bit="49" bit_length="15" unit="" description=""/>
1363 linlun 338
    </variables>
339
      </command>
340
      <command id="132" name="PID_STATUS" type="specific" module="PID" description="information about the pid controller">
341
    <variables>
342
      <variable name="Measurment" type="float" start_bit="0" bit_length="16" unit="" description=""/>
343
      <variable name="Reference" type="float" start_bit="16" bit_length="16" unit="" description=""/>
1380 linlun 344
      <variable name="PWM" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
345
      <variable name="Sum" type="int" start_bit="48" bit_length="16" unit="" description=""/>
1363 linlun 346
    </variables>
347
      </command>
1111 linlun 348
      <command id="128" name="CONFIG" type="specific" module="SlowPWM" description="Configure PWM output, if message is sent with 0 data bytes, module will respond with current configuration">
349
    <variables>
350
      <variable name="pwmPeriod" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
351
      <variable name="pwmDefaultValue" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
352
      <variable name="DefaultState" type="enum" start_bit="32" bit_length="2" unit="" description="">
353
        <value id="0" name="LOW"/>
354
        <value id="1" name="HIGH"/>
355
        <value id="2" name="TRISTATE"/>
356
      </variable>
357
       <variable name="StartUpState" type="enum" start_bit="34" bit_length="1" unit="" description="">
358
        <value id="0" name="ON"/>
359
        <value id="1" name="OFF"/>
360
      </variable>
361
    </variables>
362
      </command>
363
      <command id="128" name="LCD_Clear" type="specific" module="KS0108" description="Clear LCD">
1017 linlun 364
      <variables>
1051 linlun 365
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
366
      <value id="0" name="Standard"/>
367
          <value id="1" name="Inverted"/>
368
    </variable>
1017 linlun 369
      </variables>
370
    </command>
1006 linlun 371
    <command id="129" name="LCD_Cursor" type="specific" module="KS0108" description="Set LCD cursor position">
372
      <variables>
1019 linlun 373
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description="Char position in x direction"/>
374
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description="Char position in y direction"/>
1051 linlun 375
    <variable name="Inverted" type="enum" start_bit="16" bit_length="1" unit="" description="Set to 1 of you want an inverted output">
376
      <value id="0" name="Standard"/>
377
          <value id="1" name="Inverted"/>
378
    </variable>
379
    <variable name="Transparent" type="enum" start_bit="17" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
380
      <value id="0" name="Standard"/>
381
      <value id="1" name="Transparent"/>
382
    </variable>
1006 linlun 383
      </variables>
384
    </command>
1019 linlun 385
    <command id="130" name="LCD_Text" type="specific" module="KS0108" description="Print text on LCD on current postion, according to the latest LCD_Cursor command">
1006 linlun 386
      <variables>
387
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
388
      </variables>
389
    </command>
1019 linlun 390
    <command id="131" name="LCD_Invert" type="specific" module="KS0108" description="Invert LCD">
391
      <variables>
1051 linlun 392
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
393
      <value id="0" name="Standard"/>
394
          <value id="1" name="Inverted"/>
395
    </variable>
1019 linlun 396
      </variables>
397
    </command>
1006 linlun 398
    <command id="132" name="LCD_Backlight" type="specific" module="KS0108" description="Set LCD backlight brightness">
399
      <variables>
400
        <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1427 linlun 401
    <variable name="AutoLight" type="enum" start_bit="15" bit_length="1" unit="" description="">
402
        <value id="0" name="OFF"/>
403
        <value id="1" name="ON"/>
404
    </variable>
1006 linlun 405
      </variables>
406
    </command>
1031 linlun 407
    <command id="133" name="LCD_TextAt" type="specific" module="KS0108" description="Print text on LCD">
1006 linlun 408
      <variables>
1051 linlun 409
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
410
      <value id="0" name="Standard"/>
411
          <value id="1" name="Inverted"/>
412
    </variable>
413
    <variable name="Transparent" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
414
      <value id="0" name="Standard"/>
415
      <value id="1" name="Transparent"/>
416
    </variable>  
1031 linlun 417
    <variable name="X" type="uint" start_bit="2" bit_length="6" unit="" description=""/>
1006 linlun 418
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
419
        <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
420
      </variables>
421
    </command>
1031 linlun 422
    <command id="134" name="LCD_DrawRect" type="specific" module="KS0108" description="Draw a rectangle on LCD">
423
      <variables>
1051 linlun 424
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
425
      <value id="0" name="Standard"/>
426
          <value id="1" name="Inverted"/>
427
    </variable>
428
    <variable name="Fill" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want the rectangle filled">
429
      <value id="0" name="NoFill"/>
430
      <value id="1" name="Fill"/>
431
    </variable>  
1031 linlun 432
    <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
433
        <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
434
    <variable name="Width" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
435
    <variable name="Height" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
436
    <variable name="Radius" type="uint" start_bit="40" bit_length="8" unit="" description="Only valid for non-fill rectangles"/>
437
      </variables>
438
      </command>
439
 
440
      <command id="135" name="LCD_DrawLine" type="specific" module="KS0108" description="Draw a line on LCD">
441
    <variables>
1051 linlun 442
      <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
443
        <value id="0" name="Standard"/>
444
        <value id="1" name="Inverted"/>
445
      </variable>
1031 linlun 446
      <variable name="X1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
447
      <variable name="Y1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
448
      <variable name="X2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
449
      <variable name="Y2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
450
    </variables>
451
      </command>
1019 linlun 452
 
1031 linlun 453
      <command id="136" name="LCD_DrawCircle" type="specific" module="KS0108" description="Draw a circle on LCD">
454
    <variables>
1051 linlun 455
      <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
456
        <value id="0" name="Standard"/>
457
        <value id="1" name="Inverted"/>
458
      </variable>
1031 linlun 459
      <variable name="Xcentre" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
460
      <variable name="Ycentre" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
461
      <variable name="Radius" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
462
    </variables>
463
      </command>    
464
 
465
    <command id="137" name="LCD_InvertRect" type="specific" module="KS0108" description="Invert pixels in an rectangle on the LCD">
466
      <variables>
467
    <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
468
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
469
    <variable name="Width" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
470
    <variable name="Height" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
471
      </variables>
472
    </command>
1019 linlun 473
 
1251 linlun 474
    <command id="138" name="LCD_New_Image" type="specific" module="KS0108" description="Store a new image in eeprom">
475
      <variables>
476
    <variable name="image_id" type="uint" start_bit="0" bit_length="8" unit="" description="the new image id"/>
477
        <variable name="size_X" type="uint" start_bit="8" bit_length="8" unit="" description="Size in x direction"/>
478
        <variable name="size_Y" type="uint" start_bit="16" bit_length="8" unit="" description="Size in y direction"/>
479
      </variables>
480
    </command>
481
        <command id="139" name="LCD_Ack" type="specific" module="KS0108" description="Data correctly received">
482
      <variables>
483
    <variable name="packet_id" type="uint" start_bit="0" bit_length="8" unit="" description="Id of the packet that is acknoleged"/>
484
      </variables>
485
    </command>
486
 
487
        <command id="140" name="LCD_Error" type="specific" module="KS0108" description="Data error"/>
488
 
489
        <command id="141" name="LCD_Image_Data" type="specific" module="KS0108" description="Data"/>
490
        <command id="141" name="LCD_Image_Data_7" type="specific" module="KS0108" description="Data">
491
      <variables>
492
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
493
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
494
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
495
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
496
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
497
        <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
498
        <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
499
    <variable name="Data6" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
500
      </variables>
501
    </command>
502
    <command id="141" name="LCD_Image_Data_6" type="specific" module="KS0108" description="Data">
503
      <variables>
504
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
505
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
506
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
507
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
508
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
509
        <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
510
        <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
511
      </variables>
512
    </command>
513
    <command id="141" name="LCD_Image_Data_5" type="specific" module="KS0108" description="Data">
514
      <variables>
515
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
516
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
517
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
518
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
519
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
520
        <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
521
      </variables>
522
    </command>
523
    <command id="141" name="LCD_Image_Data_4" type="specific" module="KS0108" description="Data">
524
      <variables>
525
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
526
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
527
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
528
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
529
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
530
      </variables>
531
    </command>
532
    <command id="141" name="LCD_Image_Data_3" type="specific" module="KS0108" description="Data">
533
      <variables>
534
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
535
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
536
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
537
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
538
      </variables>
539
    </command>
540
    <command id="141" name="LCD_Image_Data_2" type="specific" module="KS0108" description="Data">
541
      <variables>
542
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
543
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
544
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
545
      </variables>
546
    </command>
547
    <command id="141" name="LCD_Image_Data_1" type="specific" module="KS0108" description="Data">
548
      <variables>
549
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
550
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
551
      </variables>
552
    </command>
553
    <command id="142" name="LCD_Data_id_Error" type="specific" module="KS0108" description="Wrong data id received">
554
      <variables>
555
    <variable name="id" type="uint" start_bit="0" bit_length="8" unit="" description="The expected id"/>
556
      </variables>
557
    </command>
558
 
559
        <command id="143" name="LCD_Data_Done" type="specific" module="KS0108" description="All data sent">
560
      <variables>
561
      </variables>
562
    </command>
1440 arune 563
 
564
    <command id="128" name="Motion" type="specific" module="PIR" description="Motion and brightness from PIR-sensor">
565
     <variables>
566
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1481 myhrman 567
        <variable name="Brightness" type="uint" start_bit="8" bit_length="16" unit="" description=""/>
568
        <variable name="MotionDetect" type="enum" start_bit="24" bit_length="8" unit="" description="">
1440 arune 569
            <value id="0" name="NoMotion"/>
570
            <value id="1" name="MotionDetected"/>
571
        </variable>
572
      </variables>
573
    </command>
574
 
1251 linlun 575
 
1074 arune 576
    <command id="128" name="Demo" type="specific" module="Dimmer230" description="Fade to x+steps, then to x-steps and then back to x. If x is close to, or at, top or bottom then fade more to the other direction">
950 runge 577
     <variables>
1072 arune 578
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
579
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms"/>
950 runge 580
        <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
581
      </variables>
582
    </command>
1031 linlun 583
 
1072 arune 584
    <command id="129" name="Start_Fade" type="specific" module="Dimmer230" description="Fade in a direction and don't stop until another command is received or top/bottom is reached">
950 runge 585
     <variables>
1072 arune 586
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
587
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
1088 arune 588
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
589
            <value id="0" name="Decrease"/>
590
            <value id="1" name="Increase"/>
591
        </variable>
950 runge 592
      </variables>
593
    </command>
1072 arune 594
    <command id="130" name="Stop_Fade" type="specific" module="Dimmer230" description="If a fade is in progress, then stop">
950 runge 595
      <variables>
1072 arune 596
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
950 runge 597
      </variables>
598
    </command>
1072 arune 599
    <command id="131" name="Abs_Fade" type="specific" module="Dimmer230" description="Fade to a defined value, stops when another command is received">
950 runge 600
     <variables>
1072 arune 601
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
602
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
950 runge 603
        <variable name="EndValue" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
604
      </variables>
605
    </command>
1072 arune 606
    <command id="132" name="Rel_Fade" type="specific" module="Dimmer230" description="Fade a number of steps in a defined direction, stops when another command is received or top/bottom is reached">
950 runge 607
     <variables>
1072 arune 608
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
609
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
610
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
611
            <value id="0" name="Decrease"/>
612
            <value id="1" name="Increase"/>
613
        </variable>
614
        <variable name="Steps" type="uint" start_bit="24" bit_length="8" unit="" description="Number of steps to fade"/>
950 runge 615
      </variables>
616
    </command>
1072 arune 617
    <command id="133" name="Netinfo" type="specific" module="Dimmer230" description="Information about the connected net power">
618
     <variables>
619
        <variable name="Connection" type="enum" start_bit="0" bit_length="1" unit="" description="If the dimmer is connected to net power">
1613 linlun 620
        <value id="0" name="Disconnected"/>
621
        <value id="1" name="Connected"/>
622
    </variable>
1074 arune 623
        <variable name="Frequency" type="enum" start_bit="1" bit_length="2" unit="" description="Frequency of the net power">
1613 linlun 624
        <value id="0" name="Error_Unknown"/>
625
        <value id="1" name="50Hz"/>
626
        <value id="2" name="60Hz"/>
627
    </variable>
628
    <variable name="DimmerValue" type="uint" start_bit="8" bit_length="8" unit="" description="Current dimmer value"/>
1615 linlun 629
    <variable name="Channel" type="uint" start_bit="16" bit_length="8" unit="" description="Dimmer channel"/>
1072 arune 630
      </variables>
631
    </command>
1423 linlun 632
    <command id="128" name="Demo" type="specific" module="hwPWM" description="Fade to x+steps, then to x-steps and then back to x. If x is close to, or at, top or bottom then fade more to the other direction">
633
     <variables>
634
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
635
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms"/>
636
        <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
637
      </variables>
638
    </command>
639
 
640
    <command id="129" name="Start_Fade" type="specific" module="hwPWM" description="Fade in a direction and don't stop until another command is received or top/bottom is reached">
641
     <variables>
642
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
643
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
644
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
645
            <value id="0" name="Decrease"/>
646
            <value id="1" name="Increase"/>
647
        </variable>
648
      </variables>
649
    </command>
650
    <command id="130" name="Stop_Fade" type="specific" module="hwPWM" description="If a fade is in progress, then stop">
651
      <variables>
652
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
653
      </variables>
654
    </command>
655
    <command id="131" name="Abs_Fade" type="specific" module="hwPWM" description="Fade to a defined value, stops when another command is received">
656
     <variables>
657
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
658
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
659
        <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
660
      </variables>
661
    </command>
662
    <command id="132" name="Rel_Fade" type="specific" module="hwPWM" description="Fade a number of steps in a defined direction, stops when another command is received or top/bottom is reached">
663
     <variables>
664
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
665
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
666
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
667
            <value id="0" name="Decrease"/>
668
            <value id="1" name="Increase"/>
669
        </variable>
670
        <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
671
      </variables>
672
    </command>
673
 
1438 linlun 674
 <command id="128" name="Demo" type="specific" module="RGBW" description="Fade to x+steps, then to x-steps and then back to x. If x is close to, or at, top or bottom then fade more to the other direction">
675
     <variables>
676
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
677
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms"/>
678
        <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
679
      </variables>
680
    </command>
681
 
682
    <command id="129" name="Start_Fade" type="specific" module="RGBW" description="Fade in a direction and don't stop until another command is received or top/bottom is reached">
683
     <variables>
684
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
685
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
686
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
687
            <value id="0" name="Decrease"/>
688
            <value id="1" name="Increase"/>
689
        </variable>
690
      </variables>
691
    </command>
692
    <command id="130" name="Stop_Fade" type="specific" module="RGBW" description="If a fade is in progress, then stop">
693
      <variables>
694
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
695
      </variables>
696
    </command>
697
    <command id="131" name="Abs_Fade" type="specific" module="RGBW" description="Fade to a defined value, stops when another command is received">
698
     <variables>
699
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
700
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
701
        <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
702
      </variables>
703
    </command>
704
    <command id="132" name="Rel_Fade" type="specific" module="RGBW" description="Fade a number of steps in a defined direction, stops when another command is received or top/bottom is reached">
705
     <variables>
706
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
707
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
708
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
709
            <value id="0" name="Decrease"/>
710
            <value id="1" name="Increase"/>
711
        </variable>
712
        <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
713
      </variables>
714
    </command>
715
 
1521 arune 716
    <command id="128" name="Id" type="specific" module="identification" description="Broadcast this nodes ID">
717
     <variables>
718
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
719
     </variables>
720
    </command>
721
 
1177 linlun 722
    <command id="128" name="CONFIG" type="specific" module="softPWM" description="Configure the PWM">
1156 linlun 723
     <variables>
1177 linlun 724
        <variable name="Period" type="uint" start_bit="0" bit_length="16" unit="ms" description=""/>
725
        <variable name="Resolution" type="uint" start_bit="16" bit_length="8" unit="ms" description=""/>
726
     </variables>
1156 linlun 727
    </command>
1284 arune 728
    <command id="128" name="Gesture" type="specific" module="Touch" description="Parsed touch data as a gesture">
1277 arune 729
     <variables>
1279 arune 730
        <variable name="f1" type="uint" start_bit="0" bit_length="8" unit="#" description="Indicates the number of intersection points between an input gesture g(x) and the straight line f(x) which connects the first and last point of the gesture"/>
731
        <variable name="f7" type="uint" start_bit="8" bit_length="8" unit="#" description="Indicates the number of intersection points between an input gesture g(x) and all horizontal lines yi, where i is between 0 and n, that constitute a gesture"/>
732
        <variable name="f3" type="enum" start_bit="16" bit_length="1" unit="" description="Indicates the sign value of area gap between g(x) and f(x)">
733
           <value id="0" name="M"/>
734
           <value id="1" name="P"/>
1277 arune 735
        </variable>
1279 arune 736
        <variable name="f4" type="enum" start_bit="17" bit_length="1" unit="" description="Represents the sign value of the sum of the x coordinates of all the points that constitute strokes minus the x coordinates of the last point">
737
           <value id="0" name="M"/>
738
           <value id="1" name="P"/>
1277 arune 739
        </variable>
1279 arune 740
        <variable name="f5" type="enum" start_bit="18" bit_length="1" unit="" description="Checks the sign value of the sum of the x coordinates of all the points that constitute strokes minus x coordinates of the first point">
741
           <value id="0" name="M"/>
742
           <value id="1" name="P"/>
1277 arune 743
        </variable>
1279 arune 744
        <variable name="f6" type="enum" start_bit="19" bit_length="1" unit="" description="Indicates the sign value of the y coordinates of the last point minus y coordinates of the first point">
745
           <value id="0" name="M"/>
746
           <value id="1" name="P"/>
1277 arune 747
        </variable>
1279 arune 748
        <variable name="f8" type="enum" start_bit="20" bit_length="1" unit="" description="Checks whether or not x coordinates of all the points except for the first point and the last point is between x0 and xn">
749
           <value id="0" name="M"/>
750
           <value id="1" name="P"/>
1277 arune 751
        </variable>
1279 arune 752
        <variable name="f9" type="enum" start_bit="21" bit_length="1" unit="" description="Represents the sign value of the multiplication of x coordinates of the first point and the last point minus the mediate value of x coordinates of all the points">
753
           <value id="0" name="M"/>
754
           <value id="1" name="P"/>
1277 arune 755
        </variable>
1279 arune 756
        <variable name="f2" type="enum" start_bit="22" bit_length="2" unit="" description="Checks if the y coordinates of the points which exist between the intersection point and the last point are greater than the y coordinates of the intersection point">
757
           <value id="0" name="M"/>
758
           <value id="1" name="P"/>
759
           <value id="2" name="U"/>
1277 arune 760
        </variable>
761
     </variables>
762
    </command>
1284 arune 763
    <command id="129" name="Raw" type="specific" module="Touch" description="Raw touch data">
764
     <variables>
765
        <variable name="Status" type="enum" start_bit="0" bit_length="8" unit="" description="Gives the current push status">
766
          <value id="1" name="Pressed"/>
767
          <value id="0" name="Released"/>
768
        </variable>
769
        <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
770
        <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
771
     </variables>
772
    </command>
946 runge 773
  </commands>
774
  <modules>
965 runge 775
    <module id="0" name="Debug" class="tst"/>
946 runge 776
    <module id="1" name="Default" class="def"/>
777
    <module id="3" name="DS18x20" class="sns"/>
778
    <module id="5" name="FOST02" class="sns"/>
779
    <module id="6" name="BusVoltage" class="sns"/>
780
    <module id="7" name="SimpleDTMF" class="sns"/>
781
    <module id="8" name="Rotary" class="sns"/>
953 runge 782
    <module id="9" name="HD44789" class="act"/>
783
    <module id="10" name="Dimmer230" class="act"/>
784
    <module id="11" name="KS0108" class="act"/>
954 runge 785
    <module id="12" name="RGBdriver" class="act"/>
1389 arune 786
    <module id="13" name="hwPWM" class="act"/>
992 arune 787
    <module id="14" name="irReceive" class="sns"/>
1000 kribba 788
    <module id="15" name="nmea" class="sns"/>
1054 runge 789
    <module id="16" name="irTransmit" class="sns"/>
1098 linlun 790
    <module id="17" name="TC1047A" class="sns"/>
1110 linlun 791
    <module id="18" name="PID" class="act"/>
792
    <module id="19" name="SlowPWM" class="act"/>
1121 linlun 793
    <module id="20" name="power" class="sns"/>
1156 linlun 794
    <module id="21" name="softPWM" class="act"/>
1277 arune 795
    <module id="22" name="Touch" class="sns"/>
1417 linlun 796
    <module id="23" name="RotaryHex" class="sns"/>
1419 linlun 797
    <module id="24" name="output" class="act"/>
798
    <module id="25" name="input" class="sns"/>
1438 linlun 799
    <module id="26" name="RGBW" class="act"/>
1471 arune 800
    <module id="27" name="irTransceive" class="sns"/>
1521 arune 801
    <module id="28" name="identification" class="sns"/>
1266 pengi 802
    <module id="30" name="ChnMaster" class="chn"/>
1269 pengi 803
    <module id="31" name="ChnController" class="chn"/>
1440 arune 804
    <module id="45" name="PIR" class="sns"/>
1441 arune 805
    <module id="46" name="TCN75A" class="sns"/>
1443 arune 806
    <module id="47" name="VoltageCurrent" class="sns"/>
1448 myhrman 807
    <module id="48" name="Serial" class="sns"/>
1511 arune 808
    <module id="49" name="protectedOutput" class="sns"/>
1539 arune 809
    <module id="50" name="inputAnalog" class="sns"/>
1551 leif 810
    <module id="51" name="LM335" class="sns"/>
1565 leif 811
    <module id="52" name="SH11" class="sns"/>
1567 leif 812
    <module id="53" name="Radio433Transmit" class="act"/>
1565 leif 813
    <module id="54" name="Radio433Receive" class="sns"/>
1586 nattgris 814
    <module id="55" name="NTC" class="sns"/>
946 runge 815
  </modules>
816
  <defines>
817
    <define id="1" group="DirectionFlag" name="From_Owner"/>
818
    <define id="0" group="DirectionFlag" name="To_Owner"/>
819
  </defines>
986 runge 820
  <nmt_messages>
821
    <nmt_message id="0" name="Time"/>
822
    <nmt_message id="4" name="Reset">
823
      <variables>
824
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
825
      </variables>
826
    </nmt_message>
827
    <nmt_message id="8" name="Bios_Start">
828
      <variables>
829
        <variable name="BiosVersion" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
830
        <variable name="HasApplication" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
1628 arune 831
        <variable name="DeviceType" type="enum" start_bit="24" bit_length="8" unit="" description="">
1631 linlun 832
          <value id="0" name="N/A"/>
833
          <value id="1" name="mega8"/>
834
          <value id="2" name="mega48"/>
835
          <value id="3" name="mega88"/>
836
          <value id="4" name="mega168"/>
837
          <value id="5" name="mega328"/>
1628 arune 838
        </variable>
986 runge 839
        <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
840
      </variables>
841
    </nmt_message>
842
    <nmt_message id="12" name="Pgm_Start">
843
      <variables>
1023 arune 844
        <variable name="Address0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
845
        <variable name="Address1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
846
        <variable name="Address2" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
847
        <variable name="Address3" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
986 runge 848
        <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
849
      </variables>
850
    </nmt_message>
1023 arune 851
    <nmt_message id="16" name="Pgm_Data">
986 runge 852
      <variables>
853
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
1023 arune 854
        <variable name="Data" type="uint" start_bit="16" bit_length="48" unit="" description=""/>
986 runge 855
      </variables>
856
    </nmt_message>
1023 arune 857
    <nmt_message id="16" name="Pgm_Data_48">
858
      <variables>
859
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
860
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
861
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
862
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
863
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
864
        <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
865
        <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
866
        <variable name="Data5" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
867
      </variables>
868
    </nmt_message>
869
    <nmt_message id="16" name="Pgm_Data_8">
870
      <variables>
871
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
872
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
873
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
874
      </variables>
875
    </nmt_message>
876
    <nmt_message id="16" name="Pgm_Data_16">
877
      <variables>
878
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
879
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
880
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
881
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
882
      </variables>
883
    </nmt_message>
884
    <nmt_message id="16" name="Pgm_Data_24">
885
      <variables>
886
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
887
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
888
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
889
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
890
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
891
      </variables>
892
    </nmt_message>
1015 arune 893
    <nmt_message id="16" name="Pgm_Data_32">
894
      <variables>
1023 arune 895
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
896
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
897
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
898
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
899
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
900
        <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
1015 arune 901
      </variables>
902
    </nmt_message>
1023 arune 903
    <nmt_message id="16" name="Pgm_Data_40">
1015 arune 904
      <variables>
1023 arune 905
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
906
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
907
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
908
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
909
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
910
        <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
911
        <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
1015 arune 912
      </variables>
913
    </nmt_message>
986 runge 914
    <nmt_message id="20" name="Pgm_End"/>
915
    <nmt_message id="24" name="Pgm_Copy">
916
      <variables>
1023 arune 917
        <variable name="Source0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
918
        <variable name="Source1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
919
        <variable name="Destination0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
920
        <variable name="Destination1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
921
        <variable name="Length0" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
922
        <variable name="Length1" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
986 runge 923
      </variables>
924
    </nmt_message>
925
    <nmt_message id="28" name="Pgm_Ack">
926
      <variables>
927
        <variable name="Data" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
928
      </variables>
929
    </nmt_message>
930
    <nmt_message id="32" name="Pgm_Nack">
931
      <variables>
932
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
933
      </variables>
934
    </nmt_message>
935
    <nmt_message id="36" name="Start_App" description="Send to node to start the application in the node">
936
      <variables>
937
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
938
      </variables>
939
    </nmt_message>
940
    <nmt_message id="40" name="App_Start" description="Sent by the application in a node when it starts">
941
      <variables>
942
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
943
      </variables>
944
    </nmt_message>
945
    <nmt_message id="44" name="Heartbeat">
946
      <variables>
947
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
948
        <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
949
      </variables>
950
    </nmt_message>
951
  </nmt_messages>
946 runge 952
</root>