Subversion Repositories HomeAutomation

Rev

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