Subversion Repositories HomeAutomation

Rev

Rev 1769 | Rev 1773 | 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>
1764 myhrman 290
    <command id="130" name="SerialFilter" type="specific" module="Serial" description="Serial Filter Config">
291
      <variables>
292
        <variable name="DataTimeout" type="uint" start_bit="0" bit_length="8" unit="" description="Timeout before RX data is sent via CAN"/>
293
        <variable name="PrefixLength" type="uint" start_bit="8" bit_length="2" unit="" description="Length of prefix (in bytes)"/>
294
        <variable name="SuffixLength" type="uint" start_bit="10" bit_length="2" unit="" description="Length of suffix (in bytes)"/>
295
        <variable name="PacketLength" type="uint" start_bit="12" bit_length="4" unit="" description="Max nr of RX bytes to pack into CAN frame"/>
1769 myhrman 296
        <variable name="PrefixByte2" type="uint" start_bit="16" bit_length="8" unit="" description="Prefix byte2"/>
1764 myhrman 297
        <variable name="PrefixByte1" type="uint" start_bit="24" bit_length="8" unit="" description="Prefix byte1"/>
1769 myhrman 298
        <variable name="PrefixByte0" type="uint" start_bit="32" bit_length="8" unit="" description="Prefix byte0"/>
299
        <variable name="SuffixByte2" type="uint" start_bit="40" bit_length="8" unit="" description="Suffix byte2"/>
1764 myhrman 300
        <variable name="SuffixByte1" type="uint" start_bit="48" bit_length="8" unit="" description="Suffix byte1"/>
1769 myhrman 301
        <variable name="SuffixByte0" type="uint" start_bit="54" bit_length="8" unit="" description="Suffix byte0"/>
1764 myhrman 302
      </variables>
303
    </command>
1539 arune 304
 
305
    <command id="128" name="AnalogConfig" type="specific" module="inputAnalog" description="Configuration for analog input module">
306
      <variables>
307
        <variable name="SensorId" type="uint" start_bit="0" bit_length="4" unit="" description="Which input to configure"/>
1542 arune 308
        <variable name="Setting" type="enum" start_bit="4" bit_length="2" unit="" description="">
1539 arune 309
            <value id="0" name="PeriodicMeasure"/>
310
            <value id="1" name="DigitalInput"/>
311
        </variable>
1542 arune 312
        <variable name="Pullup" type="enum" start_bit="6" bit_length="1" unit="" description="Enable pullup on sensor">
1539 arune 313
            <value id="0" name="Disable"/>
314
            <value id="1" name="Enable"/>
315
        </variable>
1542 arune 316
        <variable name="Reference" type="enum" start_bit="7" bit_length="1" unit="" description="Enable GND reference on sensor">
1539 arune 317
            <value id="0" name="Disable"/>
318
            <value id="1" name="Enable"/>
319
        </variable>
1542 arune 320
        <variable name="VoltageLowTh" type="float" start_bit="8" bit_length="16" unit="Volt" description="Low threshold for digital input"/>
321
        <variable name="VoltageHighTh" type="float" start_bit="24" bit_length="16" unit="Volt" description="High threshold for digital input"/>
322
        <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 323
      </variables>
324
    </command>
325
 
1110 linlun 326
    <command id="128" name="DEBUG" type="specific" module="PID" description="Debug data from PID regulator">
327
    <variables>
1117 linlun 328
      <variable name="P_term" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
329
      <variable name="I_term" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
330
      <variable name="D_term" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
1380 linlun 331
      <variable name="Sum" type="int" start_bit="48" bit_length="16" unit="" description=""/>
1110 linlun 332
    </variables>
333
      </command>
1363 linlun 334
      <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 335
    <variables>
336
      <variable name="sensorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
337
      <variable name="sensorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
338
      <variable name="sensorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
339
    </variables>
340
      </command>
1363 linlun 341
      <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">
342
    <variables>
343
      <variable name="actuatorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
344
      <variable name="actuatorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
345
      <variable name="actuatorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
346
    </variables>
347
      </command>
348
      <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">
349
    <variables>
350
      <variable name="K_P" type="float" start_bit="0" bit_length="16" unit="" description=""/>
351
      <variable name="K_I" type="float" start_bit="16" bit_length="16" unit="" description=""/>
352
      <variable name="K_D" type="float" start_bit="32" bit_length="16" unit="" description=""/>
1376 linlun 353
      <variable name="TimeUnit" type="enum" start_bit="48" bit_length="1" unit="" description="">
1380 linlun 354
        <value id="0" name="s"/>
355
        <value id="1" name="ms"/>
1363 linlun 356
      </variable>
1380 linlun 357
      <variable name="RegulatorTime" type="uint" start_bit="49" bit_length="15" unit="" description=""/>
1363 linlun 358
    </variables>
359
      </command>
360
      <command id="132" name="PID_STATUS" type="specific" module="PID" description="information about the pid controller">
361
    <variables>
362
      <variable name="Measurment" type="float" start_bit="0" bit_length="16" unit="" description=""/>
363
      <variable name="Reference" type="float" start_bit="16" bit_length="16" unit="" description=""/>
1380 linlun 364
      <variable name="PWM" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
365
      <variable name="Sum" type="int" start_bit="48" bit_length="16" unit="" description=""/>
1363 linlun 366
    </variables>
367
      </command>
1111 linlun 368
      <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">
369
    <variables>
370
      <variable name="pwmPeriod" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
371
      <variable name="pwmDefaultValue" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
372
      <variable name="DefaultState" type="enum" start_bit="32" bit_length="2" unit="" description="">
373
        <value id="0" name="LOW"/>
374
        <value id="1" name="HIGH"/>
375
        <value id="2" name="TRISTATE"/>
376
      </variable>
377
       <variable name="StartUpState" type="enum" start_bit="34" bit_length="1" unit="" description="">
378
        <value id="0" name="ON"/>
379
        <value id="1" name="OFF"/>
380
      </variable>
381
    </variables>
382
      </command>
383
      <command id="128" name="LCD_Clear" type="specific" module="KS0108" description="Clear LCD">
1017 linlun 384
      <variables>
1051 linlun 385
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
386
      <value id="0" name="Standard"/>
387
          <value id="1" name="Inverted"/>
388
    </variable>
1017 linlun 389
      </variables>
390
    </command>
1006 linlun 391
    <command id="129" name="LCD_Cursor" type="specific" module="KS0108" description="Set LCD cursor position">
392
      <variables>
1019 linlun 393
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description="Char position in x direction"/>
394
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description="Char position in y direction"/>
1051 linlun 395
    <variable name="Inverted" type="enum" start_bit="16" bit_length="1" unit="" description="Set to 1 of you want an inverted output">
396
      <value id="0" name="Standard"/>
397
          <value id="1" name="Inverted"/>
398
    </variable>
399
    <variable name="Transparent" type="enum" start_bit="17" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
400
      <value id="0" name="Standard"/>
401
      <value id="1" name="Transparent"/>
402
    </variable>
1006 linlun 403
      </variables>
404
    </command>
1019 linlun 405
    <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 406
      <variables>
407
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
408
      </variables>
409
    </command>
1019 linlun 410
    <command id="131" name="LCD_Invert" type="specific" module="KS0108" description="Invert LCD">
411
      <variables>
1051 linlun 412
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
413
      <value id="0" name="Standard"/>
414
          <value id="1" name="Inverted"/>
415
    </variable>
1019 linlun 416
      </variables>
417
    </command>
1006 linlun 418
    <command id="132" name="LCD_Backlight" type="specific" module="KS0108" description="Set LCD backlight brightness">
419
      <variables>
420
        <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1427 linlun 421
    <variable name="AutoLight" type="enum" start_bit="15" bit_length="1" unit="" description="">
422
        <value id="0" name="OFF"/>
423
        <value id="1" name="ON"/>
424
    </variable>
1006 linlun 425
      </variables>
426
    </command>
1031 linlun 427
    <command id="133" name="LCD_TextAt" type="specific" module="KS0108" description="Print text on LCD">
1006 linlun 428
      <variables>
1051 linlun 429
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
430
      <value id="0" name="Standard"/>
431
          <value id="1" name="Inverted"/>
432
    </variable>
433
    <variable name="Transparent" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
434
      <value id="0" name="Standard"/>
435
      <value id="1" name="Transparent"/>
436
    </variable>  
1031 linlun 437
    <variable name="X" type="uint" start_bit="2" bit_length="6" unit="" description=""/>
1006 linlun 438
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
439
        <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
440
      </variables>
441
    </command>
1031 linlun 442
    <command id="134" name="LCD_DrawRect" type="specific" module="KS0108" description="Draw a rectangle on LCD">
443
      <variables>
1051 linlun 444
        <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
445
      <value id="0" name="Standard"/>
446
          <value id="1" name="Inverted"/>
447
    </variable>
448
    <variable name="Fill" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want the rectangle filled">
449
      <value id="0" name="NoFill"/>
450
      <value id="1" name="Fill"/>
451
    </variable>  
1031 linlun 452
    <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
453
        <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
454
    <variable name="Width" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
455
    <variable name="Height" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
456
    <variable name="Radius" type="uint" start_bit="40" bit_length="8" unit="" description="Only valid for non-fill rectangles"/>
457
      </variables>
458
      </command>
459
 
460
      <command id="135" name="LCD_DrawLine" type="specific" module="KS0108" description="Draw a line on LCD">
461
    <variables>
1051 linlun 462
      <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
463
        <value id="0" name="Standard"/>
464
        <value id="1" name="Inverted"/>
465
      </variable>
1031 linlun 466
      <variable name="X1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
467
      <variable name="Y1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
468
      <variable name="X2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
469
      <variable name="Y2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
470
    </variables>
471
      </command>
1019 linlun 472
 
1031 linlun 473
      <command id="136" name="LCD_DrawCircle" type="specific" module="KS0108" description="Draw a circle on LCD">
474
    <variables>
1051 linlun 475
      <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
476
        <value id="0" name="Standard"/>
477
        <value id="1" name="Inverted"/>
478
      </variable>
1031 linlun 479
      <variable name="Xcentre" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
480
      <variable name="Ycentre" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
481
      <variable name="Radius" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
482
    </variables>
483
      </command>    
484
 
485
    <command id="137" name="LCD_InvertRect" type="specific" module="KS0108" description="Invert pixels in an rectangle on the LCD">
486
      <variables>
487
    <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
488
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
489
    <variable name="Width" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
490
    <variable name="Height" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
491
      </variables>
492
    </command>
1019 linlun 493
 
1251 linlun 494
    <command id="138" name="LCD_New_Image" type="specific" module="KS0108" description="Store a new image in eeprom">
495
      <variables>
496
    <variable name="image_id" type="uint" start_bit="0" bit_length="8" unit="" description="the new image id"/>
497
        <variable name="size_X" type="uint" start_bit="8" bit_length="8" unit="" description="Size in x direction"/>
498
        <variable name="size_Y" type="uint" start_bit="16" bit_length="8" unit="" description="Size in y direction"/>
499
      </variables>
500
    </command>
501
        <command id="139" name="LCD_Ack" type="specific" module="KS0108" description="Data correctly received">
502
      <variables>
503
    <variable name="packet_id" type="uint" start_bit="0" bit_length="8" unit="" description="Id of the packet that is acknoleged"/>
504
      </variables>
505
    </command>
506
 
507
        <command id="140" name="LCD_Error" type="specific" module="KS0108" description="Data error"/>
508
 
509
        <command id="141" name="LCD_Image_Data" type="specific" module="KS0108" description="Data"/>
510
        <command id="141" name="LCD_Image_Data_7" type="specific" module="KS0108" description="Data">
511
      <variables>
512
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
513
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
514
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
515
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
516
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
517
        <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
518
        <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
519
    <variable name="Data6" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
520
      </variables>
521
    </command>
522
    <command id="141" name="LCD_Image_Data_6" 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
        <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
530
        <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
531
      </variables>
532
    </command>
533
    <command id="141" name="LCD_Image_Data_5" type="specific" module="KS0108" description="Data">
534
      <variables>
535
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
536
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
537
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
538
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
539
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
540
        <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
541
      </variables>
542
    </command>
543
    <command id="141" name="LCD_Image_Data_4" type="specific" module="KS0108" description="Data">
544
      <variables>
545
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
546
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
547
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
548
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
549
        <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
550
      </variables>
551
    </command>
552
    <command id="141" name="LCD_Image_Data_3" type="specific" module="KS0108" description="Data">
553
      <variables>
554
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
555
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
556
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
557
        <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
558
      </variables>
559
    </command>
560
    <command id="141" name="LCD_Image_Data_2" type="specific" module="KS0108" description="Data">
561
      <variables>
562
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
563
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
564
        <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
565
      </variables>
566
    </command>
567
    <command id="141" name="LCD_Image_Data_1" type="specific" module="KS0108" description="Data">
568
      <variables>
569
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
570
        <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
571
      </variables>
572
    </command>
573
    <command id="142" name="LCD_Data_id_Error" type="specific" module="KS0108" description="Wrong data id received">
574
      <variables>
575
    <variable name="id" type="uint" start_bit="0" bit_length="8" unit="" description="The expected id"/>
576
      </variables>
577
    </command>
578
 
579
        <command id="143" name="LCD_Data_Done" type="specific" module="KS0108" description="All data sent">
580
      <variables>
581
      </variables>
582
    </command>
1440 arune 583
 
584
    <command id="128" name="Motion" type="specific" module="PIR" description="Motion and brightness from PIR-sensor">
585
     <variables>
586
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1481 myhrman 587
        <variable name="Brightness" type="uint" start_bit="8" bit_length="16" unit="" description=""/>
588
        <variable name="MotionDetect" type="enum" start_bit="24" bit_length="8" unit="" description="">
1440 arune 589
            <value id="0" name="NoMotion"/>
590
            <value id="1" name="MotionDetected"/>
591
        </variable>
592
      </variables>
593
    </command>
594
 
1251 linlun 595
 
1074 arune 596
    <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 597
     <variables>
1072 arune 598
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
599
        <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 600
        <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
601
      </variables>
602
    </command>
1031 linlun 603
 
1072 arune 604
    <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 605
     <variables>
1072 arune 606
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
607
        <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 608
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
609
            <value id="0" name="Decrease"/>
610
            <value id="1" name="Increase"/>
611
        </variable>
950 runge 612
      </variables>
613
    </command>
1072 arune 614
    <command id="130" name="Stop_Fade" type="specific" module="Dimmer230" description="If a fade is in progress, then stop">
950 runge 615
      <variables>
1072 arune 616
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
950 runge 617
      </variables>
618
    </command>
1072 arune 619
    <command id="131" name="Abs_Fade" type="specific" module="Dimmer230" description="Fade to a defined value, stops when another command is received">
950 runge 620
     <variables>
1072 arune 621
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
622
        <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 623
        <variable name="EndValue" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
624
      </variables>
625
    </command>
1072 arune 626
    <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 627
     <variables>
1072 arune 628
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
629
        <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)"/>
630
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
631
            <value id="0" name="Decrease"/>
632
            <value id="1" name="Increase"/>
633
        </variable>
634
        <variable name="Steps" type="uint" start_bit="24" bit_length="8" unit="" description="Number of steps to fade"/>
950 runge 635
      </variables>
636
    </command>
1072 arune 637
    <command id="133" name="Netinfo" type="specific" module="Dimmer230" description="Information about the connected net power">
638
     <variables>
639
        <variable name="Connection" type="enum" start_bit="0" bit_length="1" unit="" description="If the dimmer is connected to net power">
1613 linlun 640
        <value id="0" name="Disconnected"/>
641
        <value id="1" name="Connected"/>
642
    </variable>
1074 arune 643
        <variable name="Frequency" type="enum" start_bit="1" bit_length="2" unit="" description="Frequency of the net power">
1613 linlun 644
        <value id="0" name="Error_Unknown"/>
645
        <value id="1" name="50Hz"/>
646
        <value id="2" name="60Hz"/>
647
    </variable>
648
    <variable name="DimmerValue" type="uint" start_bit="8" bit_length="8" unit="" description="Current dimmer value"/>
1615 linlun 649
    <variable name="Channel" type="uint" start_bit="16" bit_length="8" unit="" description="Dimmer channel"/>
1072 arune 650
      </variables>
651
    </command>
1423 linlun 652
    <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">
653
     <variables>
654
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
655
        <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"/>
656
        <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
657
      </variables>
658
    </command>
659
    <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">
660
     <variables>
661
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
662
        <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)"/>
663
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
664
            <value id="0" name="Decrease"/>
665
            <value id="1" name="Increase"/>
666
        </variable>
667
      </variables>
668
    </command>
669
    <command id="130" name="Stop_Fade" type="specific" module="hwPWM" description="If a fade is in progress, then stop">
670
      <variables>
671
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
672
      </variables>
673
    </command>
674
    <command id="131" name="Abs_Fade" type="specific" module="hwPWM" description="Fade to a defined value, stops when another command is received">
675
     <variables>
676
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
677
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
678
        <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
679
      </variables>
680
    </command>
681
    <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">
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
        <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
690
      </variables>
691
    </command>
692
 
1714 arune 693
    <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">
694
     <variables>
695
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
696
        <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"/>
697
        <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
698
      </variables>
699
    </command>
700
    <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">
701
     <variables>
702
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
703
        <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)"/>
704
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
705
            <value id="0" name="Decrease"/>
706
            <value id="1" name="Increase"/>
707
        </variable>
708
      </variables>
709
    </command>
710
    <command id="130" name="Stop_Fade" type="specific" module="PCAPWM" description="If a fade is in progress, then stop">
711
      <variables>
712
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
713
      </variables>
714
    </command>
715
    <command id="131" name="Abs_Fade" type="specific" module="PCAPWM" description="Fade to a defined value, stops when another command is received">
716
     <variables>
717
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
718
        <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)"/>
719
        <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
720
      </variables>
721
    </command>
722
    <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">
723
     <variables>
724
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
725
        <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)"/>
726
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
727
            <value id="0" name="Decrease"/>
728
            <value id="1" name="Increase"/>
729
        </variable>
730
        <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
731
      </variables>
732
    </command>
733
 
1438 linlun 734
 <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">
735
     <variables>
736
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
737
        <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"/>
738
        <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
739
      </variables>
740
    </command>
741
 
742
    <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">
743
     <variables>
744
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
745
        <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)"/>
746
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
747
            <value id="0" name="Decrease"/>
748
            <value id="1" name="Increase"/>
749
        </variable>
750
      </variables>
751
    </command>
752
    <command id="130" name="Stop_Fade" type="specific" module="RGBW" description="If a fade is in progress, then stop">
753
      <variables>
754
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
755
      </variables>
756
    </command>
757
    <command id="131" name="Abs_Fade" type="specific" module="RGBW" description="Fade to a defined value, stops when another command is received">
758
     <variables>
759
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
760
        <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)"/>
761
        <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
762
      </variables>
763
    </command>
764
    <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">
765
     <variables>
766
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
767
        <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)"/>
768
        <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
769
            <value id="0" name="Decrease"/>
770
            <value id="1" name="Increase"/>
771
        </variable>
772
        <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
773
      </variables>
774
    </command>
775
 
1521 arune 776
    <command id="128" name="Id" type="specific" module="identification" description="Broadcast this nodes ID">
777
     <variables>
778
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
779
     </variables>
780
    </command>
781
 
1177 linlun 782
    <command id="128" name="CONFIG" type="specific" module="softPWM" description="Configure the PWM">
1156 linlun 783
     <variables>
1177 linlun 784
        <variable name="Period" type="uint" start_bit="0" bit_length="16" unit="ms" description=""/>
785
        <variable name="Resolution" type="uint" start_bit="16" bit_length="8" unit="ms" description=""/>
786
     </variables>
1156 linlun 787
    </command>
1284 arune 788
    <command id="128" name="Gesture" type="specific" module="Touch" description="Parsed touch data as a gesture">
1277 arune 789
     <variables>
1279 arune 790
        <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"/>
791
        <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"/>
792
        <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)">
793
           <value id="0" name="M"/>
794
           <value id="1" name="P"/>
1277 arune 795
        </variable>
1279 arune 796
        <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">
797
           <value id="0" name="M"/>
798
           <value id="1" name="P"/>
1277 arune 799
        </variable>
1279 arune 800
        <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">
801
           <value id="0" name="M"/>
802
           <value id="1" name="P"/>
1277 arune 803
        </variable>
1279 arune 804
        <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">
805
           <value id="0" name="M"/>
806
           <value id="1" name="P"/>
1277 arune 807
        </variable>
1279 arune 808
        <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">
809
           <value id="0" name="M"/>
810
           <value id="1" name="P"/>
1277 arune 811
        </variable>
1279 arune 812
        <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">
813
           <value id="0" name="M"/>
814
           <value id="1" name="P"/>
1277 arune 815
        </variable>
1279 arune 816
        <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">
817
           <value id="0" name="M"/>
818
           <value id="1" name="P"/>
819
           <value id="2" name="U"/>
1277 arune 820
        </variable>
821
     </variables>
822
    </command>
1284 arune 823
    <command id="129" name="Raw" type="specific" module="Touch" description="Raw touch data">
824
     <variables>
825
        <variable name="Status" type="enum" start_bit="0" bit_length="8" unit="" description="Gives the current push status">
826
          <value id="1" name="Pressed"/>
827
          <value id="0" name="Released"/>
828
        </variable>
829
        <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
830
        <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
831
     </variables>
832
    </command>
1733 dberg 833
 
834
    <command id="128" name="Position" type="specific" module="linearAct" description="Set and get position">
835
     <variables>
836
        <variable name="Position" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
837
        <variable name="Direction" type="uint" start_bit="16" bit_length="8" unit="" description="">
838
             <value id="0" name="NotMoving"/>
839
            <value id="1" name="MovingUp"/>
840
            <value id="2" name="MovingDown"/>
841
          </variable>
842
      </variables>
843
    </command>
844
    <command id="129" name="Limits" type="specific" module="linearAct" description="Set and get limits">
845
     <variables>
846
        <variable name="Min" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
847
          <variable name="Low" type="uint" start_bit="16" bit_length="16" unit="" description=""/>  
848
         <variable name="High" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
849
         <variable name="Max" type="uint" start_bit="48" bit_length="16" unit="" description=""/>
850
      </variables>
851
    </command>
852
    <command id="130" name="Calibration" type="specific" module="linearAct" description="Start calibration">
853
     <variables>
854
        <variable name="OptionalPosition" type="uint" start_bit="0" bit_length="16" unit="" description="Option to set current value for position"/>
855
      </variables>
856
    </command>
857
 
1728 cougar 858
    <command id="128" name="setCounter" type="specific" module="counter" description="Set the counter value on the counter module">
859
      <variables>
860
        <variable name="PinId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
861
        <variable name="Count" type="uint" start_bit="8" bit_length="32" unit="" description=""/>
862
      </variables>
863
    </command>
946 runge 864
  </commands>
1733 dberg 865
 
866
 
946 runge 867
  <modules>
965 runge 868
    <module id="0" name="Debug" class="tst"/>
946 runge 869
    <module id="1" name="Default" class="def"/>
870
    <module id="3" name="DS18x20" class="sns"/>
871
    <module id="5" name="FOST02" class="sns"/>
872
    <module id="6" name="BusVoltage" class="sns"/>
873
    <module id="7" name="SimpleDTMF" class="sns"/>
874
    <module id="8" name="Rotary" class="sns"/>
953 runge 875
    <module id="9" name="HD44789" class="act"/>
876
    <module id="10" name="Dimmer230" class="act"/>
877
    <module id="11" name="KS0108" class="act"/>
954 runge 878
    <module id="12" name="RGBdriver" class="act"/>
1389 arune 879
    <module id="13" name="hwPWM" class="act"/>
992 arune 880
    <module id="14" name="irReceive" class="sns"/>
1000 kribba 881
    <module id="15" name="nmea" class="sns"/>
1054 runge 882
    <module id="16" name="irTransmit" class="sns"/>
1098 linlun 883
    <module id="17" name="TC1047A" class="sns"/>
1110 linlun 884
    <module id="18" name="PID" class="act"/>
885
    <module id="19" name="SlowPWM" class="act"/>
1121 linlun 886
    <module id="20" name="power" class="sns"/>
1156 linlun 887
    <module id="21" name="softPWM" class="act"/>
1277 arune 888
    <module id="22" name="Touch" class="sns"/>
1417 linlun 889
    <module id="23" name="RotaryHex" class="sns"/>
1419 linlun 890
    <module id="24" name="output" class="act"/>
891
    <module id="25" name="input" class="sns"/>
1438 linlun 892
    <module id="26" name="RGBW" class="act"/>
1471 arune 893
    <module id="27" name="irTransceive" class="sns"/>
1521 arune 894
    <module id="28" name="identification" class="sns"/>
1709 arune 895
    <module id="29" name="PCAPWM" class="act"/>
1266 pengi 896
    <module id="30" name="ChnMaster" class="chn"/>
1269 pengi 897
    <module id="31" name="ChnController" class="chn"/>
1440 arune 898
    <module id="45" name="PIR" class="sns"/>
1441 arune 899
    <module id="46" name="TCN75A" class="sns"/>
1443 arune 900
    <module id="47" name="VoltageCurrent" class="sns"/>
1448 myhrman 901
    <module id="48" name="Serial" class="sns"/>
1511 arune 902
    <module id="49" name="protectedOutput" class="sns"/>
1539 arune 903
    <module id="50" name="inputAnalog" class="sns"/>
1551 leif 904
    <module id="51" name="LM335" class="sns"/>
1565 leif 905
    <module id="52" name="SH11" class="sns"/>
1567 leif 906
    <module id="53" name="Radio433Transmit" class="act"/>
1565 leif 907
    <module id="54" name="Radio433Receive" class="sns"/>
1586 nattgris 908
    <module id="55" name="NTC" class="sns"/>
1724 pengi 909
    <module id="56" name="sigmadelta_dimmer" class="act"/>
1728 cougar 910
    <module id="57" name="counter" class="sns"/>
1731 linlun 911
    <module id="58" name="multiSwitch" class="act"/>
1733 dberg 912
    <module id="59" name="linearAct" class="act"/>
1772 arune 913
    <module id="60" name="DotMatrix" class="act"/>
946 runge 914
  </modules>
915
  <defines>
916
    <define id="1" group="DirectionFlag" name="From_Owner"/>
917
    <define id="0" group="DirectionFlag" name="To_Owner"/>
918
  </defines>
986 runge 919
  <nmt_messages>
920
    <nmt_message id="0" name="Time"/>
921
    <nmt_message id="4" name="Reset">
922
      <variables>
923
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
924
      </variables>
925
    </nmt_message>
926
    <nmt_message id="8" name="Bios_Start">
927
      <variables>
928
        <variable name="BiosVersion" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
929
        <variable name="HasApplication" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
1628 arune 930
        <variable name="DeviceType" type="enum" start_bit="24" bit_length="8" unit="" description="">
1668 runge 931
      <value id="0" name="unknown"/>
932
          <value id="1" name="atmega8"/>
933
          <value id="2" name="atmega48"/>
934
          <value id="3" name="atmega88"/>
935
          <value id="4" name="atmega168"/>
936
          <value id="5" name="atmega328p"/>
1628 arune 937
        </variable>
986 runge 938
        <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
939
      </variables>
940
    </nmt_message>
941
    <nmt_message id="12" name="Pgm_Start">
942
      <variables>
1023 arune 943
        <variable name="Address0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
944
        <variable name="Address1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
945
        <variable name="Address2" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
946
        <variable name="Address3" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
986 runge 947
        <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
948
      </variables>
949
    </nmt_message>
1023 arune 950
    <nmt_message id="16" name="Pgm_Data">
986 runge 951
      <variables>
952
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
1023 arune 953
        <variable name="Data" type="uint" start_bit="16" bit_length="48" unit="" description=""/>
986 runge 954
      </variables>
955
    </nmt_message>
1023 arune 956
    <nmt_message id="16" name="Pgm_Data_48">
957
      <variables>
958
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
959
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
960
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
961
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
962
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
963
        <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
964
        <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
965
        <variable name="Data5" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
966
      </variables>
967
    </nmt_message>
968
    <nmt_message id="16" name="Pgm_Data_8">
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
      </variables>
974
    </nmt_message>
975
    <nmt_message id="16" name="Pgm_Data_16">
976
      <variables>
977
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
978
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
979
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
980
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
981
      </variables>
982
    </nmt_message>
983
    <nmt_message id="16" name="Pgm_Data_24">
984
      <variables>
985
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
986
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
987
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
988
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
989
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
990
      </variables>
991
    </nmt_message>
1015 arune 992
    <nmt_message id="16" name="Pgm_Data_32">
993
      <variables>
1023 arune 994
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
995
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
996
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
997
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
998
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
999
        <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
1015 arune 1000
      </variables>
1001
    </nmt_message>
1023 arune 1002
    <nmt_message id="16" name="Pgm_Data_40">
1015 arune 1003
      <variables>
1023 arune 1004
        <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1005
        <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
1006
        <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
1007
        <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
1008
        <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
1009
        <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
1010
        <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
1015 arune 1011
      </variables>
1012
    </nmt_message>
986 runge 1013
    <nmt_message id="20" name="Pgm_End"/>
1014
    <nmt_message id="24" name="Pgm_Copy">
1015
      <variables>
1023 arune 1016
        <variable name="Source0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
1017
        <variable name="Source1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
1018
        <variable name="Destination0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
1019
        <variable name="Destination1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
1020
        <variable name="Length0" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
1021
        <variable name="Length1" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
986 runge 1022
      </variables>
1023
    </nmt_message>
1024
    <nmt_message id="28" name="Pgm_Ack">
1025
      <variables>
1026
        <variable name="Data" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
1027
      </variables>
1028
    </nmt_message>
1029
    <nmt_message id="32" name="Pgm_Nack">
1030
      <variables>
1031
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
1032
      </variables>
1033
    </nmt_message>
1034
    <nmt_message id="36" name="Start_App" description="Send to node to start the application in the node">
1035
      <variables>
1036
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
1037
      </variables>
1038
    </nmt_message>
1039
    <nmt_message id="40" name="App_Start" description="Sent by the application in a node when it starts">
1040
      <variables>
1041
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
1042
      </variables>
1043
    </nmt_message>
1044
    <nmt_message id="44" name="Heartbeat">
1045
      <variables>
1046
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
1047
        <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
1048
      </variables>
1049
    </nmt_message>
1050
  </nmt_messages>
946 runge 1051
</root>