Subversion Repositories HomeAutomation

Rev

Rev 1015 | Rev 1019 | 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"/>
10
  </classes>
11
  <commands>
12
    <command id="0" name="List" type="global" module="" description="Message that module send to tell the world what it is">
13
      <variables>
14
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
15
        <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
16
        <variable name="SequenceNumber" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
17
      </variables>
18
    </command>
968 runge 19
 
954 runge 20
    <command id="2" name="Debug" type="global" module="" description="Used for debugging, should not be used for anything real"/>
21
    <command id="3" name="Report_Interval" type="global" module="" description="Get/Set interval of reporting">
952 runge 22
      <variables>
23
        <variable name="Time" type="uint" start_bit="0" bit_length="8" unit="Second" description=""/>
24
      </variables>
25
    </command>
958 runge 26
 
27
    <command id="64" name="Pwm" type="physical" module="" description="Message for pwm data">
28
      <variables>
29
        <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
30
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="" description=""/>
31
      </variables>
32
    </command>
946 runge 33
    <command id="65" name="Temperature_Celsius" type="physical" module="" description="Temperature data">
34
      <variables>
35
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
36
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Celsius" description=""/>
37
      </variables>
38
    </command>
956 runge 39
    <command id="66" name="Humidity_Percent" type="physical" module="" description="Humidity data">
40
      <variables>
41
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
42
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="" description=""/>
43
      </variables>
44
    </command>
946 runge 45
    <command id="67" name="Voltage" type="physical" module="" description="Voltage data">
46
      <variables>
47
        <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
48
        <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Volt" description=""/>
49
      </variables>
50
    </command>
981 runge 51
    <command id="68" name="Phonenumber" type="physical" module="" description="Phonenumber data">
52
      <variables>
53
        <variable name="Number" type="hexstring" start_bit="0" bit_length="64" unit="" description=""/>
54
      </variables>
55
    </command>
956 runge 56
    <command id="69" name="Rotary_Switch" type="physical" module="" description="Command to transmit a rotary encoder switch status">
57
      <variables>
58
        <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
59
        <variable name="Direction" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
60
        <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
61
        <variable name="Position" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
62
      </variables>
63
    </command>
64
    <command id="70" name="Button" type="physical" module="" description="">
65
      <variables>
66
        <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
67
        <variable name="Status" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
68
      </variables>
69
    </command>
992 arune 70
    <command id="71" name="IR" type="physical" module="" description="IR data protocol encoding">
71
      <variables>
72
        <variable name="Status" type="uint" start_bit="0" bit_length="8" unit="" description="State of remote button"/>
73
        <variable name="Protocol" type="uint" start_bit="8" bit_length="8" unit="" description="Button protocol"/>
74
        <variable name="IRdata" type="uint" start_bit="16" bit_length="32" unit="" description="Button protocol unique ID"/>
75
      </variables>
76
    </command>
958 runge 77
 
992 arune 78
    <command id="128" name="IRraw" type="specific" module="irReceive" description="If a protocol not could be found, then send raw data">
79
     <variables>
80
        <variable name="Act1" type="uint" start_bit="0" bit_length="16" unit="Millisecond" description="First active time"/>
81
        <variable name="Pas1" type="uint" start_bit="16" bit_length="16" unit="Millisecond" description="First passive time"/>
82
        <variable name="Act2" type="uint" start_bit="32" bit_length="16" unit="Millisecond" description="Second active time"/>
83
        <variable name="Pas2" type="uint" start_bit="48" bit_length="16" unit="Millisecond" description="Second passive time"/>
84
      </variables>
85
    </command>
1000 kribba 86
    <command id="128" name="Position" type="specific" module="nmea" description="WGS80 LAT/LONG Position">
87
    <variables>
88
        <variable name="Lat_deg" type="uint" start_bit="0" bit_length="8" unit="Degrees" description="Degrees Lat"/>
89
        <variable name="Lat_min" type="uint" start_bit="8" bit_length="8" unit="'" description="Minutes lat"/>
90
        <variable name="Lat_sec" type="uint" start_bit="16" bit_length="15" unit="''" description="Seconds Lat"/>
91
        <variable name="Lat_CD" type="uint" start_bit="31" bit_length="1" unit="" description="N/S"/>
92
        <variable name="Lon_deg" type="uint" start_bit="32" bit_length="8" unit="Degrees" description="Degrees Lat"/>
93
        <variable name="Lon_min" type="uint" start_bit="40" bit_length="8" unit="'" description="Minutes lat"/>
94
        <variable name="Lon_sec" type="uint" start_bit="48" bit_length="15" unit="''" description="Seconds Lat"/>
95
        <variable name="Lon_CD" type="uint" start_bit="63" bit_length="1" unit="" description="E/W"/>      
96
    </variables>
97
    </command>
968 runge 98
    <command id="128" name="Printf" type="specific" module="Debug" description="Used for sending debug text with printf">
99
     <variables>
100
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
101
      </variables>
102
    </command>
946 runge 103
    <command id="128" name="LCD_Clear" type="specific" module="HD44789" description="Clear LCD"/>
104
    <command id="129" name="LCD_Cursor" type="specific" module="HD44789" description="Set LCD cursor position">
105
      <variables>
106
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
107
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
108
      </variables>
109
    </command>
110
    <command id="130" name="LCD_Text" type="specific" module="HD44789" description="Print text on LCD">
111
      <variables>
112
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
113
      </variables>
114
    </command>
115
     <command id="131" name="LCD_Size" type="specific" module="HD44789" description="Size of LCD">
116
      <variables>
117
        <variable name="Width" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
118
        <variable name="Height" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
119
      </variables>
120
    </command>
121
    <command id="132" name="LCD_Backlight" type="specific" module="HD44789" description="Set LCD backlight brightness">
122
      <variables>
123
        <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
124
      </variables>
125
    </command>
958 runge 126
      <command id="133" name="LCD_TextAt" type="specific" module="HD44789" description="Print text on LCD">
946 runge 127
      <variables>
128
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
129
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
130
        <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
131
      </variables>
132
    </command>
1017 linlun 133
    <command id="128" name="LCD_Clear" type="specific" module="KS0108" description="Clear LCD">
134
      <variables>
135
        <variable name="Inverted" type="uint" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen"/>
136
      </variables>
137
    </command>
1006 linlun 138
    <command id="129" name="LCD_Cursor" type="specific" module="KS0108" description="Set LCD cursor position">
139
      <variables>
140
        <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
141
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
142
      </variables>
143
    </command>
144
    <command id="130" name="LCD_Text" type="specific" module="KS0108" description="Print text on LCD">
145
      <variables>
146
        <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
147
      </variables>
148
    </command>
149
    <command id="132" name="LCD_Backlight" type="specific" module="KS0108" description="Set LCD backlight brightness">
150
      <variables>
151
        <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
152
      </variables>
153
    </command>
154
      <command id="133" name="LCD_TextAt" type="specific" module="KS0108" description="Print text on LCD">
155
      <variables>
1017 linlun 156
        <variable name="Inverted" type="uint" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen"/>
157
    <variable name="Transparent" type="uint" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want to keep screen background"/>
158
    <variable name="X" type="uint" start_bit="2" bit_length="8" unit="" description=""/>
1006 linlun 159
        <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
160
        <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
161
      </variables>
162
    </command>
950 runge 163
    <command id="128" name="Demo" type="specific" module="Dimmer230" description="">
164
     <variables>
165
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
166
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
167
        <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
168
      </variables>
169
    </command>
170
    <command id="129" name="Start_Fade" type="specific" module="Dimmer230" description="">
171
     <variables>
172
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
173
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
174
        <variable name="Direction" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
175
      </variables>
176
    </command>
177
    <command id="130" name="Stop_Fade" type="specific" module="Dimmer230" description="">
178
      <variables>
179
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
180
      </variables>
181
    </command>
182
    <command id="131" name="Abs_Fade" type="specific" module="Dimmer230" description="">
183
     <variables>
184
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
185
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
186
        <variable name="EndValue" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
187
      </variables>
188
    </command>
189
    <command id="132" name="Rel_Fade" type="specific" module="Dimmer230" description="">
190
     <variables>
191
        <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
192
        <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
193
        <variable name="Direction" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
986 runge 194
        <variable name="Steps" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
950 runge 195
      </variables>
196
    </command>
946 runge 197
  </commands>
198
  <modules>
965 runge 199
    <module id="0" name="Debug" class="tst"/>
946 runge 200
    <module id="1" name="Default" class="def"/>
201
    <module id="3" name="DS18x20" class="sns"/>
202
    <module id="5" name="FOST02" class="sns"/>
203
    <module id="6" name="BusVoltage" class="sns"/>
204
    <module id="7" name="SimpleDTMF" class="sns"/>
205
    <module id="8" name="Rotary" class="sns"/>
953 runge 206
    <module id="9" name="HD44789" class="act"/>
207
    <module id="10" name="Dimmer230" class="act"/>
208
    <module id="11" name="KS0108" class="act"/>
954 runge 209
    <module id="12" name="RGBdriver" class="act"/>
980 linlun 210
    <module id="13" name="LEDPWM" class="act"/>
992 arune 211
    <module id="14" name="irReceive" class="sns"/>
1000 kribba 212
    <module id="15" name="nmea" class="sns"/>
946 runge 213
  </modules>
214
  <defines>
215
    <define id="1" group="DirectionFlag" name="From_Owner"/>
216
    <define id="0" group="DirectionFlag" name="To_Owner"/>
217
  </defines>
986 runge 218
  <nmt_messages>
219
    <nmt_message id="0" name="Time"/>
220
    <nmt_message id="4" name="Reset">
221
      <variables>
222
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
223
      </variables>
224
    </nmt_message>
225
    <nmt_message id="8" name="Bios_Start">
226
      <variables>
227
        <variable name="BiosVersion" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
228
        <variable name="HasApplication" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
229
        <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
230
      </variables>
231
    </nmt_message>
232
    <nmt_message id="12" name="Pgm_Start">
233
      <variables>
1015 arune 234
        <variable name="AddressLow" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
235
        <variable name="AddressHigh" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
986 runge 236
        <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
237
      </variables>
238
    </nmt_message>
1015 arune 239
    <nmt_message id="16" name="Pgm_Data_16">
986 runge 240
      <variables>
241
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
1015 arune 242
        <variable name="DataLow" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
986 runge 243
      </variables>
244
    </nmt_message>
1015 arune 245
    <nmt_message id="16" name="Pgm_Data_32">
246
      <variables>
247
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
248
        <variable name="DataLow" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
249
        <variable name="DataMid" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
250
      </variables>
251
    </nmt_message>
252
    <nmt_message id="16" name="Pgm_Data_48">
253
      <variables>
254
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
255
        <variable name="DataLow" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
256
        <variable name="DataMid" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
257
        <variable name="DataHigh" type="uint" start_bit="48" bit_length="16" unit="" description=""/>
258
      </variables>
259
    </nmt_message>
986 runge 260
    <nmt_message id="20" name="Pgm_End"/>
261
    <nmt_message id="24" name="Pgm_Copy">
262
      <variables>
263
        <variable name="Source" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
264
        <variable name="Destination" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
265
        <variable name="Length" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
266
      </variables>
267
    </nmt_message>
268
    <nmt_message id="28" name="Pgm_Ack">
269
      <variables>
270
        <variable name="Data" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
271
      </variables>
272
    </nmt_message>
273
    <nmt_message id="32" name="Pgm_Nack">
274
      <variables>
275
        <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
276
      </variables>
277
    </nmt_message>
278
    <nmt_message id="36" name="Start_App" description="Send to node to start the application in the node">
279
      <variables>
280
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
281
      </variables>
282
    </nmt_message>
283
    <nmt_message id="40" name="App_Start" description="Sent by the application in a node when it starts">
284
      <variables>
285
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
286
      </variables>
287
    </nmt_message>
288
    <nmt_message id="44" name="Heartbeat">
289
      <variables>
290
        <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
291
        <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
292
      </variables>
293
    </nmt_message>
294
  </nmt_messages>
946 runge 295
</root>