Subversion Repositories HomeAutomation

Rev

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