Subversion Repositories HomeAutomation

Rev

Rev 987 | Rev 1000 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. <?xml version="1.0" standalone="yes"?>
  2. <root>
  3.   <classes>
  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"/>
  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>
  19.    
  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">
  22.       <variables>
  23.         <variable name="Time" type="uint" start_bit="0" bit_length="8" unit="Second" description=""/>
  24.       </variables>
  25.     </command>
  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>
  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>
  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>
  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>
  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>
  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>
  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>
  77.    
  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>
  86.     <command id="128" name="Printf" type="specific" module="Debug" description="Used for sending debug text with printf">
  87.      <variables>
  88.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  89.       </variables>
  90.     </command>
  91.     <command id="128" name="LCD_Clear" type="specific" module="HD44789" description="Clear LCD"/>
  92.     <command id="129" name="LCD_Cursor" type="specific" module="HD44789" description="Set LCD cursor position">
  93.       <variables>
  94.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  95.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  96.       </variables>
  97.     </command>
  98.     <command id="130" name="LCD_Text" type="specific" module="HD44789" description="Print text on LCD">
  99.       <variables>
  100.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  101.       </variables>
  102.     </command>
  103.      <command id="131" name="LCD_Size" type="specific" module="HD44789" description="Size of LCD">
  104.       <variables>
  105.         <variable name="Width" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  106.         <variable name="Height" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  107.       </variables>
  108.     </command>
  109.     <command id="132" name="LCD_Backlight" type="specific" module="HD44789" description="Set LCD backlight brightness">
  110.       <variables>
  111.         <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  112.       </variables>
  113.     </command>
  114.       <command id="133" name="LCD_TextAt" type="specific" module="HD44789" description="Print text on LCD">
  115.       <variables>
  116.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  117.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  118.         <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
  119.       </variables>
  120.     </command>
  121.    
  122.     <command id="128" name="Demo" type="specific" module="Dimmer230" description="">
  123.      <variables>
  124.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  125.         <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  126.         <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  127.       </variables>
  128.     </command>
  129.     <command id="129" name="Start_Fade" type="specific" module="Dimmer230" description="">
  130.      <variables>
  131.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  132.         <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  133.         <variable name="Direction" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  134.       </variables>
  135.     </command>
  136.     <command id="130" name="Stop_Fade" type="specific" module="Dimmer230" description="">
  137.       <variables>
  138.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  139.       </variables>
  140.     </command>
  141.     <command id="131" name="Abs_Fade" type="specific" module="Dimmer230" description="">
  142.      <variables>
  143.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  144.         <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  145.         <variable name="EndValue" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  146.       </variables>
  147.     </command>
  148.     <command id="132" name="Rel_Fade" type="specific" module="Dimmer230" description="">
  149.      <variables>
  150.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  151.         <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  152.         <variable name="Direction" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  153.         <variable name="Steps" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  154.       </variables>
  155.     </command>
  156.   </commands>
  157.   <modules>
  158.     <module id="0" name="Debug" class="tst"/>
  159.     <module id="1" name="Default" class="def"/>
  160.     <module id="3" name="DS18x20" class="sns"/>
  161.     <module id="5" name="FOST02" class="sns"/>
  162.     <module id="6" name="BusVoltage" class="sns"/>
  163.     <module id="7" name="SimpleDTMF" class="sns"/>
  164.     <module id="8" name="Rotary" class="sns"/>
  165.     <module id="9" name="HD44789" class="act"/>
  166.     <module id="10" name="Dimmer230" class="act"/>
  167.     <module id="11" name="KS0108" class="act"/>
  168.     <module id="12" name="RGBdriver" class="act"/>
  169.     <module id="13" name="LEDPWM" class="act"/>
  170.     <module id="14" name="irReceive" class="sns"/>
  171.   </modules>
  172.   <defines>
  173.     <define id="1" group="DirectionFlag" name="From_Owner"/>
  174.     <define id="0" group="DirectionFlag" name="To_Owner"/>
  175.   </defines>
  176.   <nmt_messages>
  177.     <nmt_message id="0" name="Time"/>
  178.     <nmt_message id="4" name="Reset">
  179.       <variables>
  180.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  181.       </variables>
  182.     </nmt_message>
  183.     <nmt_message id="8" name="Bios_Start">
  184.       <variables>
  185.         <variable name="BiosVersion" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  186.         <variable name="HasApplication" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  187.         <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
  188.       </variables>
  189.     </nmt_message>
  190.     <nmt_message id="12" name="Pgm_Start">
  191.       <variables>
  192.         <variable name="Address" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  193.         <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
  194.       </variables>
  195.     </nmt_message>
  196.     <nmt_message id="16" name="Pgm_Data">
  197.       <variables>
  198.         <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  199.         <variable name="Data" type="uint" start_bit="16" bit_length="48" unit="" description=""/>
  200.       </variables>
  201.     </nmt_message>
  202.     <nmt_message id="20" name="Pgm_End"/>
  203.     <nmt_message id="24" name="Pgm_Copy">
  204.       <variables>
  205.         <variable name="Source" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  206.         <variable name="Destination" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
  207.         <variable name="Length" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
  208.       </variables>
  209.     </nmt_message>
  210.     <nmt_message id="28" name="Pgm_Ack">
  211.       <variables>
  212.         <variable name="Data" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  213.       </variables>
  214.     </nmt_message>
  215.     <nmt_message id="32" name="Pgm_Nack">
  216.       <variables>
  217.         <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  218.       </variables>
  219.     </nmt_message>
  220.     <nmt_message id="36" name="Start_App" description="Send to node to start the application in the node">
  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="40" name="App_Start" description="Sent by the application in a node when it starts">
  226.       <variables>
  227.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  228.       </variables>
  229.     </nmt_message>
  230.     <nmt_message id="44" name="Heartbeat">
  231.       <variables>
  232.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  233.         <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  234.       </variables>
  235.     </nmt_message>
  236.   </nmt_messages>
  237. </root>
  238.