Subversion Repositories HomeAutomation

Rev

Rev 1243 | Rev 1260 | 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="uint" start_bit="8" bit_length="8" 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="enum" start_bit="8" bit_length="8" unit="" description="">
  60.           <value id="0" name="Clockwise"/>
  61.           <value id="1" name="Counterclockwise"/>
  62.         </variable>
  63.         <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  64.         <variable name="Position" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  65.       </variables>
  66.     </command>
  67.     <command id="70" name="Button" type="physical" module="" description="">
  68.       <variables>
  69.         <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  70.         <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
  71.           <value id="1" name="Pressed"/>
  72.           <value id="0" name="Released"/>
  73.         </variable>
  74.       </variables>
  75.     </command>
  76.     <command id="71" name="IR" type="physical" module="" description="IR data protocol encoding">
  77.       <variables>
  78.         <variable name="Status" type="enum" start_bit="0" bit_length="8" unit="" description="State of remote button">
  79.           <value id="1" name="Pressed"/>
  80.           <value id="0" name="Released"/>
  81.         </variable>
  82.         <variable name="Protocol" type="enum" start_bit="8" bit_length="8" unit="" description="Button protocol">
  83.           <value id="0" name="RC5"/>
  84.           <value id="1" name="RC6"/>
  85.           <value id="2" name="RCMM"/>
  86.           <value id="3" name="SIRC"/>
  87.           <value id="4" name="Sharp"/>
  88.           <value id="5" name="NEC"/>
  89.           <value id="6" name="Samsung"/>
  90.           <value id="7" name="Marantz"/>
  91.           <value id="255" name="Unknown"/>
  92.         </variable>
  93.         <variable name="IRdata" type="uint" start_bit="16" bit_length="32" unit="" description="Button protocol unique ID"/>
  94.       </variables>
  95.     </command>
  96.     <command id="73" name="ElectricPower" type="physical" module="" description="Message with data from a power meter">
  97.       <variables>
  98.         <variable name="Power" type="uint" start_bit="0" bit_length="16" unit="Watt" description=""/>
  99.         <variable name="EnergySum" type="uint" start_bit="16" bit_length="32" unit="W/h" description=""/>
  100.     <variable name="Power32" type="uint" start_bit="48" bit_length="16" unit="Watt" description="Average of 32 measurments"/>
  101.       </variables>
  102.     </command>
  103.     <command id="128" name="setEnergy" type="specific" module="power" description="Set the energy value on the power meter module">
  104.       <variables>
  105.         <variable name="Energy" type="uint" start_bit="0" bit_length="32" unit="W/h" description=""/>
  106.       </variables>
  107.     </command>
  108.     <command id="128" name="IRraw" type="specific" module="irReceive" description="If a protocol not could be found, then send raw data">
  109.      <variables>
  110.         <variable name="Act1" type="uint" start_bit="0" bit_length="16" unit="Millisecond" description="First active time"/>
  111.         <variable name="Pas1" type="uint" start_bit="16" bit_length="16" unit="Millisecond" description="First passive time"/>
  112.         <variable name="Act2" type="uint" start_bit="32" bit_length="16" unit="Millisecond" description="Second active time"/>
  113.         <variable name="Pas2" type="uint" start_bit="48" bit_length="16" unit="Millisecond" description="Second passive time"/>
  114.       </variables>
  115.     </command>
  116.     <command id="128" name="Position" type="specific" module="nmea" description="WGS80 LAT/LONG Position">
  117.     <variables>
  118.         <variable name="Lat_deg" type="uint" start_bit="0" bit_length="8" unit="Degrees" description="Degrees Lat"/>
  119.         <variable name="Lat_min" type="uint" start_bit="8" bit_length="8" unit="'" description="Minutes lat"/>
  120.         <variable name="Lat_sec" type="uint" start_bit="16" bit_length="15" unit="''" description="Seconds Lat"/>
  121.         <variable name="Lat_CD" type="uint" start_bit="31" bit_length="1" unit="" description="N/S"/>
  122.         <variable name="Lon_deg" type="uint" start_bit="32" bit_length="8" unit="Degrees" description="Degrees Lat"/>
  123.         <variable name="Lon_min" type="uint" start_bit="40" bit_length="8" unit="'" description="Minutes lat"/>
  124.         <variable name="Lon_sec" type="uint" start_bit="48" bit_length="15" unit="''" description="Seconds Lat"/>
  125.         <variable name="Lon_CD" type="uint" start_bit="63" bit_length="1" unit="" description="E/W"/>      
  126.     </variables>
  127.     </command>
  128.     <command id="128" name="Printf" type="specific" module="Debug" description="Used for sending debug text with printf">
  129.      <variables>
  130.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  131.       </variables>
  132.     </command>
  133.     <command id="128" name="LCD_Clear" type="specific" module="HD44789" description="Clear LCD"/>
  134.     <command id="129" name="LCD_Cursor" type="specific" module="HD44789" description="Set LCD cursor position">
  135.       <variables>
  136.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  137.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  138.       </variables>
  139.     </command>
  140.     <command id="130" name="LCD_Text" type="specific" module="HD44789" description="Print text on LCD">
  141.       <variables>
  142.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  143.       </variables>
  144.     </command>
  145.      <command id="131" name="LCD_Size" type="specific" module="HD44789" description="Size of LCD">
  146.       <variables>
  147.         <variable name="Width" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  148.         <variable name="Height" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  149.       </variables>
  150.     </command>
  151.     <command id="132" name="LCD_Backlight" type="specific" module="HD44789" description="Set LCD backlight brightness">
  152.       <variables>
  153.         <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  154.       </variables>
  155.     </command>
  156.       <command id="133" name="LCD_TextAt" type="specific" module="HD44789" description="Print text on LCD">
  157.       <variables>
  158.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  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>
  163.    
  164.     <command id="128" name="DEBUG" type="specific" module="PID" description="Debug data from PID regulator">
  165.     <variables>
  166.       <variable name="P_term" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  167.       <variable name="I_term" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
  168.       <variable name="D_term" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
  169.       <variable name="Sum" type="uint" start_bit="48" bit_length="16" unit="" description=""/>
  170.     </variables>
  171.       </command>
  172.     <command id="129" name="CONFIG" type="specific" module="PID" description="Configure PID regulator, if message is sent with 0 data bytes, module will respond with current configuration">
  173.     <variables>
  174.       <variable name="sensorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  175.       <variable name="sensorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  176.       <variable name="sensorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  177.     </variables>
  178.       </command>
  179.       <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">
  180.     <variables>
  181.       <variable name="pwmPeriod" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  182.       <variable name="pwmDefaultValue" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
  183.       <variable name="DefaultState" type="enum" start_bit="32" bit_length="2" unit="" description="">
  184.         <value id="0" name="LOW"/>
  185.         <value id="1" name="HIGH"/>
  186.         <value id="2" name="TRISTATE"/>
  187.       </variable>
  188.        <variable name="StartUpState" type="enum" start_bit="34" bit_length="1" unit="" description="">
  189.         <value id="0" name="ON"/>
  190.         <value id="1" name="OFF"/>
  191.       </variable>
  192.     </variables>
  193.       </command>
  194.       <command id="128" name="LCD_Clear" type="specific" module="KS0108" description="Clear LCD">
  195.       <variables>
  196.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  197.       <value id="0" name="Standard"/>
  198.           <value id="1" name="Inverted"/>
  199.     </variable>
  200.       </variables>
  201.     </command>
  202.     <command id="129" name="LCD_Cursor" type="specific" module="KS0108" description="Set LCD cursor position">
  203.       <variables>
  204.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description="Char position in x direction"/>
  205.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description="Char position in y direction"/>
  206.     <variable name="Inverted" type="enum" start_bit="16" bit_length="1" unit="" description="Set to 1 of you want an inverted output">
  207.       <value id="0" name="Standard"/>
  208.           <value id="1" name="Inverted"/>
  209.     </variable>
  210.     <variable name="Transparent" type="enum" start_bit="17" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
  211.       <value id="0" name="Standard"/>
  212.       <value id="1" name="Transparent"/>
  213.     </variable>
  214.       </variables>
  215.     </command>
  216.     <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">
  217.       <variables>
  218.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  219.       </variables>
  220.     </command>
  221.     <command id="131" name="LCD_Invert" type="specific" module="KS0108" description="Invert LCD">
  222.       <variables>
  223.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  224.       <value id="0" name="Standard"/>
  225.           <value id="1" name="Inverted"/>
  226.     </variable>
  227.       </variables>
  228.     </command>
  229.     <command id="132" name="LCD_Backlight" type="specific" module="KS0108" description="Set LCD backlight brightness">
  230.       <variables>
  231.         <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  232.       </variables>
  233.     </command>
  234.     <command id="133" name="LCD_TextAt" type="specific" module="KS0108" description="Print text on LCD">
  235.       <variables>
  236.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  237.       <value id="0" name="Standard"/>
  238.           <value id="1" name="Inverted"/>
  239.     </variable>
  240.     <variable name="Transparent" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
  241.       <value id="0" name="Standard"/>
  242.       <value id="1" name="Transparent"/>
  243.     </variable>  
  244.     <variable name="X" type="uint" start_bit="2" bit_length="6" unit="" description=""/>
  245.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  246.         <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
  247.       </variables>
  248.     </command>
  249.     <command id="134" name="LCD_DrawRect" type="specific" module="KS0108" description="Draw a rectangle on LCD">
  250.       <variables>
  251.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  252.       <value id="0" name="Standard"/>
  253.           <value id="1" name="Inverted"/>
  254.     </variable>
  255.     <variable name="Fill" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want the rectangle filled">
  256.       <value id="0" name="NoFill"/>
  257.       <value id="1" name="Fill"/>
  258.     </variable>  
  259.     <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  260.         <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  261.     <variable name="Width" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  262.     <variable name="Height" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  263.     <variable name="Radius" type="uint" start_bit="40" bit_length="8" unit="" description="Only valid for non-fill rectangles"/>
  264.       </variables>
  265.       </command>
  266.      
  267.       <command id="135" name="LCD_DrawLine" type="specific" module="KS0108" description="Draw a line on LCD">
  268.     <variables>
  269.       <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  270.         <value id="0" name="Standard"/>
  271.         <value id="1" name="Inverted"/>
  272.       </variable>
  273.       <variable name="X1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  274.       <variable name="Y1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  275.       <variable name="X2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  276.       <variable name="Y2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  277.     </variables>
  278.       </command>
  279.    
  280.       <command id="136" name="LCD_DrawCircle" type="specific" module="KS0108" description="Draw a circle on LCD">
  281.     <variables>
  282.       <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  283.         <value id="0" name="Standard"/>
  284.         <value id="1" name="Inverted"/>
  285.       </variable>
  286.       <variable name="Xcentre" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  287.       <variable name="Ycentre" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  288.       <variable name="Radius" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  289.     </variables>
  290.       </command>    
  291.  
  292.     <command id="137" name="LCD_InvertRect" type="specific" module="KS0108" description="Invert pixels in an rectangle on the LCD">
  293.       <variables>
  294.     <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  295.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  296.     <variable name="Width" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  297.     <variable name="Height" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  298.       </variables>
  299.     </command>
  300.    
  301.     <command id="138" name="LCD_New_Image" type="specific" module="KS0108" description="Store a new image in eeprom">
  302.       <variables>
  303.     <variable name="image_id" type="uint" start_bit="0" bit_length="8" unit="" description="the new image id"/>
  304.         <variable name="size_X" type="uint" start_bit="8" bit_length="8" unit="" description="Size in x direction"/>
  305.         <variable name="size_Y" type="uint" start_bit="16" bit_length="8" unit="" description="Size in y direction"/>
  306.       </variables>
  307.     </command>
  308.         <command id="139" name="LCD_Ack" type="specific" module="KS0108" description="Data correctly received">
  309.       <variables>
  310.     <variable name="packet_id" type="uint" start_bit="0" bit_length="8" unit="" description="Id of the packet that is acknoleged"/>
  311.       </variables>
  312.     </command>
  313.      
  314.         <command id="140" name="LCD_Error" type="specific" module="KS0108" description="Data error"/>
  315.    
  316.         <command id="141" name="LCD_Image_Data" type="specific" module="KS0108" description="Data"/>
  317.         <command id="141" name="LCD_Image_Data_7" type="specific" module="KS0108" description="Data">
  318.       <variables>
  319.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  320.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  321.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  322.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  323.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  324.         <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  325.         <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  326.     <variable name="Data6" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
  327.       </variables>
  328.     </command>
  329.     <command id="141" name="LCD_Image_Data_6" type="specific" module="KS0108" description="Data">
  330.       <variables>
  331.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  332.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  333.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  334.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  335.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  336.         <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  337.         <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  338.       </variables>
  339.     </command>
  340.     <command id="141" name="LCD_Image_Data_5" type="specific" module="KS0108" description="Data">
  341.       <variables>
  342.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  343.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  344.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  345.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  346.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  347.         <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  348.       </variables>
  349.     </command>
  350.     <command id="141" name="LCD_Image_Data_4" type="specific" module="KS0108" description="Data">
  351.       <variables>
  352.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  353.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  354.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  355.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  356.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  357.       </variables>
  358.     </command>
  359.     <command id="141" name="LCD_Image_Data_3" type="specific" module="KS0108" description="Data">
  360.       <variables>
  361.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  362.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  363.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  364.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  365.       </variables>
  366.     </command>
  367.     <command id="141" name="LCD_Image_Data_2" type="specific" module="KS0108" description="Data">
  368.       <variables>
  369.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  370.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  371.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  372.       </variables>
  373.     </command>
  374.     <command id="141" name="LCD_Image_Data_1" type="specific" module="KS0108" description="Data">
  375.       <variables>
  376.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  377.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  378.       </variables>
  379.     </command>
  380.     <command id="142" name="LCD_Data_id_Error" type="specific" module="KS0108" description="Wrong data id received">
  381.       <variables>
  382.     <variable name="id" type="uint" start_bit="0" bit_length="8" unit="" description="The expected id"/>
  383.       </variables>
  384.     </command>
  385.    
  386.         <command id="143" name="LCD_Data_Done" type="specific" module="KS0108" description="All data sent">
  387.       <variables>
  388.       </variables>
  389.     </command>
  390.    
  391.     <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">
  392.      <variables>
  393.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  394.         <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"/>
  395.         <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  396.       </variables>
  397.     </command>
  398.    
  399.     <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">
  400.      <variables>
  401.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  402.         <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)"/>
  403.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  404.             <value id="0" name="Decrease"/>
  405.             <value id="1" name="Increase"/>
  406.         </variable>
  407.       </variables>
  408.     </command>
  409.     <command id="130" name="Stop_Fade" type="specific" module="Dimmer230" description="If a fade is in progress, then stop">
  410.       <variables>
  411.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  412.       </variables>
  413.     </command>
  414.     <command id="131" name="Abs_Fade" type="specific" module="Dimmer230" description="Fade to a defined value, stops when another command is received">
  415.      <variables>
  416.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  417.         <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)"/>
  418.         <variable name="EndValue" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  419.       </variables>
  420.     </command>
  421.     <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">
  422.      <variables>
  423.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  424.         <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)"/>
  425.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  426.             <value id="0" name="Decrease"/>
  427.             <value id="1" name="Increase"/>
  428.         </variable>
  429.         <variable name="Steps" type="uint" start_bit="24" bit_length="8" unit="" description="Number of steps to fade"/>
  430.       </variables>
  431.     </command>
  432.     <command id="133" name="Netinfo" type="specific" module="Dimmer230" description="Information about the connected net power">
  433.      <variables>
  434.         <variable name="Connection" type="enum" start_bit="0" bit_length="1" unit="" description="If the dimmer is connected to net power">
  435.             <value id="0" name="Disconnected"/>
  436.             <value id="1" name="Connected"/>
  437.         </variable>
  438.         <variable name="Frequency" type="enum" start_bit="1" bit_length="2" unit="" description="Frequency of the net power">
  439.             <value id="0" name="Error_Unknown"/>
  440.             <value id="1" name="50Hz"/>
  441.             <value id="2" name="60Hz"/>
  442.         </variable>
  443.         <variable name="DimmerValue" type="uint" start_bit="8" bit_length="8" unit="" description="Current dimmer value"/>
  444.       </variables>
  445.     </command>
  446.     <command id="128" name="CONFIG" type="specific" module="softPWM" description="Configure the PWM">
  447.      <variables>
  448.         <variable name="Period" type="uint" start_bit="0" bit_length="16" unit="ms" description=""/>
  449.         <variable name="Resolution" type="uint" start_bit="16" bit_length="8" unit="ms" description=""/>
  450.      </variables>
  451.     </command>
  452.   </commands>
  453.   <modules>
  454.     <module id="0" name="Debug" class="tst"/>
  455.     <module id="1" name="Default" class="def"/>
  456.     <module id="3" name="DS18x20" class="sns"/>
  457.     <module id="5" name="FOST02" class="sns"/>
  458.     <module id="6" name="BusVoltage" class="sns"/>
  459.     <module id="7" name="SimpleDTMF" class="sns"/>
  460.     <module id="8" name="Rotary" class="sns"/>
  461.     <module id="9" name="HD44789" class="act"/>
  462.     <module id="10" name="Dimmer230" class="act"/>
  463.     <module id="11" name="KS0108" class="act"/>
  464.     <module id="12" name="RGBdriver" class="act"/>
  465.     <module id="13" name="LEDPWM" class="act"/>
  466.     <module id="14" name="irReceive" class="sns"/>
  467.     <module id="15" name="nmea" class="sns"/>
  468.     <module id="16" name="irTransmit" class="sns"/>
  469.     <module id="17" name="TC1047A" class="sns"/>
  470.     <module id="18" name="PID" class="act"/>
  471.     <module id="19" name="SlowPWM" class="act"/>
  472.     <module id="20" name="power" class="sns"/>
  473.     <module id="21" name="softPWM" class="act"/>
  474.   </modules>
  475.   <defines>
  476.     <define id="1" group="DirectionFlag" name="From_Owner"/>
  477.     <define id="0" group="DirectionFlag" name="To_Owner"/>
  478.   </defines>
  479.   <nmt_messages>
  480.     <nmt_message id="0" name="Time"/>
  481.     <nmt_message id="4" name="Reset">
  482.       <variables>
  483.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  484.       </variables>
  485.     </nmt_message>
  486.     <nmt_message id="8" name="Bios_Start">
  487.       <variables>
  488.         <variable name="BiosVersion" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  489.         <variable name="HasApplication" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  490.         <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
  491.       </variables>
  492.     </nmt_message>
  493.     <nmt_message id="12" name="Pgm_Start">
  494.       <variables>
  495.         <variable name="Address0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  496.         <variable name="Address1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  497.         <variable name="Address2" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  498.         <variable name="Address3" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  499.         <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
  500.       </variables>
  501.     </nmt_message>
  502.     <nmt_message id="16" name="Pgm_Data">
  503.       <variables>
  504.         <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  505.         <variable name="Data" type="uint" start_bit="16" bit_length="48" unit="" description=""/>
  506.       </variables>
  507.     </nmt_message>
  508.     <nmt_message id="16" name="Pgm_Data_48">
  509.       <variables>
  510.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  511.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  512.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  513.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  514.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  515.         <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  516.         <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  517.         <variable name="Data5" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
  518.       </variables>
  519.     </nmt_message>
  520.     <nmt_message id="16" name="Pgm_Data_8">
  521.       <variables>
  522.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  523.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  524.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  525.       </variables>
  526.     </nmt_message>
  527.     <nmt_message id="16" name="Pgm_Data_16">
  528.       <variables>
  529.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  530.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  531.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  532.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  533.       </variables>
  534.     </nmt_message>
  535.     <nmt_message id="16" name="Pgm_Data_24">
  536.       <variables>
  537.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  538.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  539.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  540.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  541.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  542.       </variables>
  543.     </nmt_message>
  544.     <nmt_message id="16" name="Pgm_Data_32">
  545.       <variables>
  546.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  547.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  548.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  549.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  550.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  551.         <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  552.       </variables>
  553.     </nmt_message>
  554.     <nmt_message id="16" name="Pgm_Data_40">
  555.       <variables>
  556.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  557.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  558.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  559.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  560.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  561.         <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  562.         <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  563.       </variables>
  564.     </nmt_message>
  565.     <nmt_message id="20" name="Pgm_End"/>
  566.     <nmt_message id="24" name="Pgm_Copy">
  567.       <variables>
  568.         <variable name="Source0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  569.         <variable name="Source1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  570.         <variable name="Destination0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  571.         <variable name="Destination1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  572.         <variable name="Length0" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  573.         <variable name="Length1" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  574.       </variables>
  575.     </nmt_message>
  576.     <nmt_message id="28" name="Pgm_Ack">
  577.       <variables>
  578.         <variable name="Data" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  579.       </variables>
  580.     </nmt_message>
  581.     <nmt_message id="32" name="Pgm_Nack">
  582.       <variables>
  583.         <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  584.       </variables>
  585.     </nmt_message>
  586.     <nmt_message id="36" name="Start_App" description="Send to node to start the application in the node">
  587.       <variables>
  588.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  589.       </variables>
  590.     </nmt_message>
  591.     <nmt_message id="40" name="App_Start" description="Sent by the application in a node when it starts">
  592.       <variables>
  593.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  594.       </variables>
  595.     </nmt_message>
  596.     <nmt_message id="44" name="Heartbeat">
  597.       <variables>
  598.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  599.         <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  600.       </variables>
  601.     </nmt_message>
  602.   </nmt_messages>
  603. </root>
  604.