Subversion Repositories HomeAutomation

Rev

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