Subversion Repositories HomeAutomation

Rev

Rev 1709 | Rev 1724 | 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.     <class id="10" name="chn" description="Control channel based"/>
  11.   </classes>
  12.   <commands>
  13.     <command id="0" name="List" type="global" module="" description="Message that module send to tell the world what it is">
  14.       <variables>
  15.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  16.         <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  17.         <variable name="SequenceNumber" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  18.       </variables>
  19.     </command>
  20.    
  21.     <command id="2" name="Debug" type="global" module="" description="Used for debugging, should not be used for anything real"/>
  22.     <command id="3" name="Report_Interval" type="global" module="" description="Get/Set interval of reporting">
  23.       <variables>
  24.         <variable name="Time" type="uint" start_bit="0" bit_length="8" unit="Second" description=""/>
  25.       </variables>
  26.     </command>
  27.  
  28.     <command id="10" name="GPSTime" type="global" module="" description="Timestamp from GPS module">
  29.       <variables>
  30.      <variable name="Hour" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  31.      <variable name="Minute" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  32.      <variable name="Second" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  33.      <variable name="Zone" type="uint" start_bit="24" bit_length="8" unit="" description="Timezone diff from GMT"/>
  34.       </variables>
  35.     </command>
  36.  
  37.     <command id="11" name="GPSDate" type="global" module="" description="Date from GPS module">
  38.       <variables>
  39.      <variable name="Year" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  40.      <variable name="Month" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  41.      <variable name="Day" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  42.       </variables>
  43.     </command>
  44.    
  45.     <command id="64" name="Pwm" type="physical" module="" description="Message for pwm data">
  46.       <variables>
  47.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  48.         <variable name="Value" type="uint" start_bit="8" bit_length="16" unit="" description=""/>
  49.       </variables>
  50.     </command>
  51.     <command id="65" name="Temperature_Celsius" type="physical" module="" description="Temperature data">
  52.       <variables>
  53.         <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  54.         <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Celsius" description=""/>
  55.       </variables>
  56.     </command>
  57.     <command id="66" name="Humidity_Percent" type="physical" module="" description="Humidity data">
  58.       <variables>
  59.         <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  60.         <variable name="Value" type="float" start_bit="8" bit_length="16" unit="" description=""/>
  61.       </variables>
  62.     </command>
  63.     <command id="67" name="Voltage" type="physical" module="" description="Voltage data">
  64.       <variables>
  65.         <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  66.         <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Volt" description=""/>
  67.       </variables>
  68.     </command>
  69.     <command id="68" name="Phonenumber" type="physical" module="" description="Phonenumber data">
  70.       <variables>
  71.         <variable name="Number" type="hexstring" start_bit="0" bit_length="64" unit="" description=""/>
  72.       </variables>
  73.     </command>
  74.     <command id="69" name="Rotary_Switch" type="physical" module="" description="Command to transmit a rotary encoder switch status">
  75.       <variables>
  76.         <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  77.         <variable name="Direction" type="enum" start_bit="8" bit_length="8" unit="" description="">
  78.           <value id="0" name="Clockwise"/>
  79.           <value id="1" name="Counterclockwise"/>
  80.         </variable>
  81.         <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  82.         <variable name="Position" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  83.       </variables>
  84.     </command>
  85.     <command id="70" name="Button" type="physical" module="" description="">
  86.       <variables>
  87.         <variable name="SwitchId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  88.         <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
  89.           <value id="1" name="Pressed"/>
  90.           <value id="0" name="Released"/>
  91.         </variable>
  92.       </variables>
  93.     </command>
  94.     <command id="71" name="IR" type="physical" module="" description="IR data protocol encoding">
  95.       <variables>
  96.         <variable name="Channel" type="uint" start_bit="0" bit_length="4" unit="" description="Channel of received or transmitted data"/>
  97.         <variable name="Status" type="enum" start_bit="4" bit_length="4" unit="" description="State of remote button">
  98.           <value id="0" name="Released"/>
  99.       <value id="1" name="Pressed"/>
  100.       <value id="2" name="Burst"/>
  101.         </variable>
  102.         <variable name="Protocol" type="enum" start_bit="8" bit_length="8" unit="" description="Button protocol">
  103.           <value id="0" name="RC5"/>
  104.           <value id="1" name="RC6"/>
  105.           <value id="2" name="RCMM"/>
  106.           <value id="3" name="SIRC"/>
  107.           <value id="4" name="Sharp"/>
  108.           <value id="5" name="NEC"/>
  109.           <value id="6" name="Samsung"/>
  110.           <value id="7" name="Marantz"/>
  111.           <value id="8" name="Panasonic"/>
  112.           <value id="9" name="Sky"/>
  113.           <value id="10" name="Nexa2"/>
  114.           <value id="255" name="Unknown"/>
  115.         </variable>
  116.         <variable name="IRdata" type="uint" start_bit="16" bit_length="32" unit="" description="Button protocol unique ID"/>
  117.       </variables>
  118.     </command>
  119.     <command id="72" name="Current" type="physical" module="" description="Current data">
  120.       <variables>
  121.         <variable name="SensorId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  122.         <variable name="Value" type="float" start_bit="8" bit_length="16" unit="Ampere" description=""/>
  123.       </variables>
  124.     </command>
  125.     <command id="73" name="ElectricPower" type="physical" module="" description="Message with data from a power meter">
  126.       <variables>
  127.         <variable name="Power" type="uint" start_bit="0" bit_length="16" unit="Watt" description=""/>
  128.         <variable name="EnergySum" type="uint" start_bit="16" bit_length="32" unit="W/h" description=""/>
  129.         <variable name="Power32" type="uint" start_bit="48" bit_length="16" unit="Watt" description="Average of 32 measurments"/>
  130.       </variables>
  131.     </command>
  132.     <command id="74" name="SetPin" type="physical" module="" description="">
  133.       <variables>
  134.         <variable name="PinId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  135.         <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
  136.           <value id="1" name="High"/>
  137.           <value id="0" name="Low"/>
  138.         </variable>
  139.       </variables>
  140.     </command>
  141.         <command id="75" name="PinStatus" type="physical" module="" description="">
  142.       <variables>
  143.         <variable name="PinId" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  144.         <variable name="Status" type="enum" start_bit="8" bit_length="8" unit="" description="">
  145.           <value id="1" name="High"/>
  146.           <value id="0" name="Low"/>
  147.         </variable>
  148.       </variables>
  149.     </command>
  150.     <command id="128" name="setEnergy" type="specific" module="power" description="Set the energy value on the power meter module">
  151.       <variables>
  152.         <variable name="Energy" type="uint" start_bit="0" bit_length="32" unit="W/h" description=""/>
  153.       </variables>
  154.     </command>
  155.     <command id="129" name="avgPower" type="specific" module="power" description="The energy since last message">
  156.       <variables>
  157.         <variable name="Energy" type="uint" start_bit="0" bit_length="16" unit="W/(10*h)" description=""/>
  158.       </variables>
  159.     </command>    
  160.     <command id="128" name="IRraw" type="specific" module="irReceive" description="If a protocol not could be found, then send raw data">
  161.      <variables>
  162.         <variable name="Act1" type="uint" start_bit="0" bit_length="16" unit="Millisecond" description="First active time"/>
  163.         <variable name="Pas1" type="uint" start_bit="16" bit_length="16" unit="Millisecond" description="First passive time"/>
  164.         <variable name="Act2" type="uint" start_bit="32" bit_length="16" unit="Millisecond" description="Second active time"/>
  165.         <variable name="Pas2" type="uint" start_bit="48" bit_length="16" unit="Millisecond" description="Second passive time"/>
  166.       </variables>
  167.     </command>
  168.     <command id="128" name="IRraw" type="specific" module="irTransceive" description="If a protocol not could be found, then send raw data">
  169.      <variables>
  170.         <variable name="Act1" type="uint" start_bit="0" bit_length="16" unit="Millisecond" description="First active time"/>
  171.         <variable name="Pas1" type="uint" start_bit="16" bit_length="16" unit="Millisecond" description="First passive time"/>
  172.         <variable name="Act2" type="uint" start_bit="32" bit_length="16" unit="Millisecond" description="Second active time"/>
  173.         <variable name="Pas2" type="uint" start_bit="48" bit_length="16" unit="Millisecond" description="Second passive time"/>
  174.       </variables>
  175.     </command>
  176.     <command id="129" name="IrConfig" type="specific" module="irTransceive" description="irTransceive config">
  177.       <variables>
  178.         <variable name="Channel" type="uint" start_bit="0" bit_length="4" unit="" description="Which channel to configure"/>
  179.         <variable name="Direction" type="enum" start_bit="4" bit_length="4" unit="" description="">
  180.             <value id="0" name="Auto"/>
  181.             <value id="1" name="Transmit"/>
  182.             <value id="2" name="Receive"/>
  183.         </variable>
  184.         <variable name="Transmit power" type="uint" start_bit="8" bit_length="2" unit="" description="0 for lowest power, 3 for max"/>
  185.       </variables>
  186.     </command>
  187.  
  188.     <command id="128" name="Position" type="specific" module="nmea" description="WGS80 LAT/LONG Position">
  189.     <variables>
  190.         <variable name="Lat_deg" type="uint" start_bit="0" bit_length="8" unit="Degrees" description="Degrees Lat"/>
  191.         <variable name="Lat_min" type="uint" start_bit="8" bit_length="8" unit="'" description="Minutes lat"/>
  192.         <variable name="Lat_sec" type="uint" start_bit="16" bit_length="15" unit="''" description="Seconds Lat"/>
  193.         <variable name="Lat_CD" type="uint" start_bit="31" bit_length="1" unit="" description="N/S"/>
  194.         <variable name="Lon_deg" type="uint" start_bit="32" bit_length="8" unit="Degrees" description="Degrees Lat"/>
  195.         <variable name="Lon_min" type="uint" start_bit="40" bit_length="8" unit="'" description="Minutes lat"/>
  196.         <variable name="Lon_sec" type="uint" start_bit="48" bit_length="15" unit="''" description="Seconds Lat"/>
  197.         <variable name="Lon_CD" type="uint" start_bit="63" bit_length="1" unit="" description="E/W"/>      
  198.     </variables>
  199.     </command>
  200.     <command id="129" name="Heading" type="specific" module="nmea" description="Speed, heading, fix information">
  201.     <variables>
  202.         <variable name="Fixvalid" type="uint" start_bit="0" bit_length="8" unit="" description="0/1"/>
  203.         <variable name="Fixtype" type="uint" start_bit="8" bit_length="8" unit="" description="1=No, 2=2D, 3=3D"/>
  204.         <variable name="Numsat" type="uint" start_bit="16" bit_length="8" unit="" description="Number of sats in fix"/>
  205.         <variable name="Speed" type="uint" start_bit="24" bit_length="8" unit="Knots" description="Speed over ground"/>
  206.         <variable name="Course" type="uint" start_bit="32" bit_length="16" unit="Degrees" description="Course made good"/>
  207.     </variables>
  208.     </command>
  209.     <command id="128" name="Printf" type="specific" module="Debug" description="Used for sending debug text with printf">
  210.      <variables>
  211.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  212.       </variables>
  213.     </command>
  214.     <command id="128" name="LCD_Clear" type="specific" module="HD44789" description="Clear LCD"/>
  215.     <command id="129" name="LCD_Cursor" type="specific" module="HD44789" description="Set LCD cursor position">
  216.       <variables>
  217.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  218.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  219.       </variables>
  220.     </command>
  221.     <command id="130" name="LCD_Text" type="specific" module="HD44789" description="Print text on LCD">
  222.       <variables>
  223.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  224.       </variables>
  225.     </command>
  226.      <command id="131" name="LCD_Size" type="specific" module="HD44789" description="Size of LCD">
  227.       <variables>
  228.         <variable name="Width" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  229.         <variable name="Height" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  230.       </variables>
  231.     </command>
  232.     <command id="132" name="LCD_Backlight" type="specific" module="HD44789" description="Set LCD backlight brightness">
  233.       <variables>
  234.         <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  235.     <variable name="AutoLight" type="enum" start_bit="15" bit_length="1" unit="" description="">
  236.         <value id="0" name="OFF"/>
  237.         <value id="1" name="ON"/>
  238.     </variable>
  239.       </variables>
  240.     </command>
  241.       <command id="133" name="LCD_TextAt" type="specific" module="HD44789" description="Print text on LCD">
  242.       <variables>
  243.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  244.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  245.         <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
  246.       </variables>
  247.     </command>
  248.      <command id="128" name="DEBUG" type="specific" module="RGBdriver" description="Debug data from RGB-driver">
  249.     <variables>
  250.       <variable name="ADC_W" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  251.       <variable name="ADC_R" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  252.       <variable name="ADC_G" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  253.       <variable name="ADC_B" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  254.       <variable name="PWM_W" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  255.       <variable name="PWM_R" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  256.       <variable name="PWM_G" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  257.       <variable name="PWM_B" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
  258.     </variables>
  259.       </command>
  260.     <command id="128" name="SerialData" type="specific" module="Serial" description="Serial data">
  261.       <variables>
  262.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  263.       </variables>
  264.     </command>
  265.     <command id="129" name="SerialConfig" type="specific" module="Serial" description="Serial config">
  266.       <variables>
  267.         <variable name="BaudRate" type="uint" start_bit="0" bit_length="16" unit="" description="Baudrate/10"/>
  268.         <variable name="PhysicalFormat" type="enum" start_bit="16" bit_length="8" unit="" description="">
  269.             <value id="0" name="RS232"/>
  270.             <value id="1" name="RS485FullDuplex"/>
  271.             <value id="2" name="RS485HalfDuplex"/>
  272.             <value id="3" name="RS485HalfDuplexWithTermination"/>
  273.             <value id="255" name="Loopback"/>
  274.         </variable>
  275.         <variable name="DataBits" type="uint" start_bit="24" bit_length="8" unit="" description="Nr of data bits (5-9)"/>
  276.         <variable name="StopBits" type="uint" start_bit="32" bit_length="8" unit="" description="Nr of stop bits (1-2)"/>
  277.         <variable name="Parity" type="enum" start_bit="40" bit_length="8" unit="" description="Parity mode">
  278.             <value id="0" name="ParityNone"/>
  279.             <value id="1" name="ParityEven"/>
  280.             <value id="2" name="ParityOdd"/>
  281.         </variable>
  282.       </variables>
  283.     </command>
  284.  
  285.     <command id="128" name="AnalogConfig" type="specific" module="inputAnalog" description="Configuration for analog input module">
  286.       <variables>
  287.         <variable name="SensorId" type="uint" start_bit="0" bit_length="4" unit="" description="Which input to configure"/>
  288.         <variable name="Setting" type="enum" start_bit="4" bit_length="2" unit="" description="">
  289.             <value id="0" name="PeriodicMeasure"/>
  290.             <value id="1" name="DigitalInput"/>
  291.         </variable>
  292.         <variable name="Pullup" type="enum" start_bit="6" bit_length="1" unit="" description="Enable pullup on sensor">
  293.             <value id="0" name="Disable"/>
  294.             <value id="1" name="Enable"/>
  295.         </variable>
  296.         <variable name="Reference" type="enum" start_bit="7" bit_length="1" unit="" description="Enable GND reference on sensor">
  297.             <value id="0" name="Disable"/>
  298.             <value id="1" name="Enable"/>
  299.         </variable>
  300.         <variable name="VoltageLowTh" type="float" start_bit="8" bit_length="16" unit="Volt" description="Low threshold for digital input"/>
  301.         <variable name="VoltageHighTh" type="float" start_bit="24" bit_length="16" unit="Volt" description="High threshold for digital input"/>
  302.         <variable name="Periodicity" type="uint" start_bit="40" bit_length="16" unit="Millisecond" description="The periodicity at which the sensorvalue is sent during periodic measure"/>
  303.       </variables>
  304.     </command>
  305.  
  306.     <command id="128" name="DEBUG" type="specific" module="PID" description="Debug data from PID regulator">
  307.     <variables>
  308.       <variable name="P_term" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  309.       <variable name="I_term" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
  310.       <variable name="D_term" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
  311.       <variable name="Sum" type="int" start_bit="48" bit_length="16" unit="" description=""/>
  312.     </variables>
  313.       </command>
  314.       <command id="129" name="CONFIG_SENSOR" type="specific" module="PID" description="Configure PID regulator, if message is sent with 0 data bytes, module will respond with current configuration">
  315.     <variables>
  316.       <variable name="sensorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  317.       <variable name="sensorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  318.       <variable name="sensorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  319.     </variables>
  320.       </command>
  321.       <command id="130" name="CONFIG_ACTUATOR" type="specific" module="PID" description="Configure PID regulator, if message is sent with 0 data bytes, module will respond with current configuration">
  322.     <variables>
  323.       <variable name="actuatorModuleType" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  324.       <variable name="actuatorModuleId" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  325.       <variable name="actuatorId" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  326.     </variables>
  327.       </command>
  328.       <command id="131" name="CONFIG_PARAMETER" type="specific" module="PID" description="Configure PID regulator constants, if message is sent with 0 data bytes, module will respond with current configuration">
  329.     <variables>
  330.       <variable name="K_P" type="float" start_bit="0" bit_length="16" unit="" description=""/>
  331.       <variable name="K_I" type="float" start_bit="16" bit_length="16" unit="" description=""/>
  332.       <variable name="K_D" type="float" start_bit="32" bit_length="16" unit="" description=""/>
  333.       <variable name="TimeUnit" type="enum" start_bit="48" bit_length="1" unit="" description="">
  334.         <value id="0" name="s"/>
  335.         <value id="1" name="ms"/>
  336.       </variable>
  337.       <variable name="RegulatorTime" type="uint" start_bit="49" bit_length="15" unit="" description=""/>
  338.     </variables>
  339.       </command>
  340.       <command id="132" name="PID_STATUS" type="specific" module="PID" description="information about the pid controller">
  341.     <variables>
  342.       <variable name="Measurment" type="float" start_bit="0" bit_length="16" unit="" description=""/>
  343.       <variable name="Reference" type="float" start_bit="16" bit_length="16" unit="" description=""/>
  344.       <variable name="PWM" type="uint" start_bit="32" bit_length="16" unit="" description=""/>
  345.       <variable name="Sum" type="int" start_bit="48" bit_length="16" unit="" description=""/>
  346.     </variables>
  347.       </command>
  348.       <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">
  349.     <variables>
  350.       <variable name="pwmPeriod" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  351.       <variable name="pwmDefaultValue" type="uint" start_bit="16" bit_length="16" unit="" description=""/>
  352.       <variable name="DefaultState" type="enum" start_bit="32" bit_length="2" unit="" description="">
  353.         <value id="0" name="LOW"/>
  354.         <value id="1" name="HIGH"/>
  355.         <value id="2" name="TRISTATE"/>
  356.       </variable>
  357.        <variable name="StartUpState" type="enum" start_bit="34" bit_length="1" unit="" description="">
  358.         <value id="0" name="ON"/>
  359.         <value id="1" name="OFF"/>
  360.       </variable>
  361.     </variables>
  362.       </command>
  363.       <command id="128" name="LCD_Clear" type="specific" module="KS0108" description="Clear LCD">
  364.       <variables>
  365.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  366.       <value id="0" name="Standard"/>
  367.           <value id="1" name="Inverted"/>
  368.     </variable>
  369.       </variables>
  370.     </command>
  371.     <command id="129" name="LCD_Cursor" type="specific" module="KS0108" description="Set LCD cursor position">
  372.       <variables>
  373.         <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description="Char position in x direction"/>
  374.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description="Char position in y direction"/>
  375.     <variable name="Inverted" type="enum" start_bit="16" bit_length="1" unit="" description="Set to 1 of you want an inverted output">
  376.       <value id="0" name="Standard"/>
  377.           <value id="1" name="Inverted"/>
  378.     </variable>
  379.     <variable name="Transparent" type="enum" start_bit="17" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
  380.       <value id="0" name="Standard"/>
  381.       <value id="1" name="Transparent"/>
  382.     </variable>
  383.       </variables>
  384.     </command>
  385.     <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">
  386.       <variables>
  387.         <variable name="Text" type="ascii" start_bit="0" bit_length="64" unit="" description=""/>
  388.       </variables>
  389.     </command>
  390.     <command id="131" name="LCD_Invert" type="specific" module="KS0108" description="Invert LCD">
  391.       <variables>
  392.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  393.       <value id="0" name="Standard"/>
  394.           <value id="1" name="Inverted"/>
  395.     </variable>
  396.       </variables>
  397.     </command>
  398.     <command id="132" name="LCD_Backlight" type="specific" module="KS0108" description="Set LCD backlight brightness">
  399.       <variables>
  400.         <variable name="Strength" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  401.     <variable name="AutoLight" type="enum" start_bit="15" bit_length="1" unit="" description="">
  402.         <value id="0" name="OFF"/>
  403.         <value id="1" name="ON"/>
  404.     </variable>
  405.       </variables>
  406.     </command>
  407.     <command id="133" name="LCD_TextAt" type="specific" module="KS0108" description="Print text on LCD">
  408.       <variables>
  409.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  410.       <value id="0" name="Standard"/>
  411.           <value id="1" name="Inverted"/>
  412.     </variable>
  413.     <variable name="Transparent" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want to keep screen background">
  414.       <value id="0" name="Standard"/>
  415.       <value id="1" name="Transparent"/>
  416.     </variable>  
  417.     <variable name="X" type="uint" start_bit="2" bit_length="6" unit="" description=""/>
  418.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  419.         <variable name="Text" type="ascii" start_bit="16" bit_length="48" unit="" description=""/>
  420.       </variables>
  421.     </command>
  422.     <command id="134" name="LCD_DrawRect" type="specific" module="KS0108" description="Draw a rectangle on LCD">
  423.       <variables>
  424.         <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  425.       <value id="0" name="Standard"/>
  426.           <value id="1" name="Inverted"/>
  427.     </variable>
  428.     <variable name="Fill" type="enum" start_bit="1" bit_length="1" unit="" description="Set to 1 of you want the rectangle filled">
  429.       <value id="0" name="NoFill"/>
  430.       <value id="1" name="Fill"/>
  431.     </variable>  
  432.     <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  433.         <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  434.     <variable name="Width" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  435.     <variable name="Height" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  436.     <variable name="Radius" type="uint" start_bit="40" bit_length="8" unit="" description="Only valid for non-fill rectangles"/>
  437.       </variables>
  438.       </command>
  439.      
  440.       <command id="135" name="LCD_DrawLine" type="specific" module="KS0108" description="Draw a line on LCD">
  441.     <variables>
  442.       <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  443.         <value id="0" name="Standard"/>
  444.         <value id="1" name="Inverted"/>
  445.       </variable>
  446.       <variable name="X1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  447.       <variable name="Y1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  448.       <variable name="X2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  449.       <variable name="Y2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  450.     </variables>
  451.       </command>
  452.    
  453.       <command id="136" name="LCD_DrawCircle" type="specific" module="KS0108" description="Draw a circle on LCD">
  454.     <variables>
  455.       <variable name="Inverted" type="enum" start_bit="0" bit_length="1" unit="" description="Set to 1 of you want an inverted screen">
  456.         <value id="0" name="Standard"/>
  457.         <value id="1" name="Inverted"/>
  458.       </variable>
  459.       <variable name="Xcentre" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  460.       <variable name="Ycentre" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  461.       <variable name="Radius" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  462.     </variables>
  463.       </command>    
  464.  
  465.     <command id="137" name="LCD_InvertRect" type="specific" module="KS0108" description="Invert pixels in an rectangle on the LCD">
  466.       <variables>
  467.     <variable name="X" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  468.         <variable name="Y" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  469.     <variable name="Width" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  470.     <variable name="Height" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  471.       </variables>
  472.     </command>
  473.    
  474.     <command id="138" name="LCD_New_Image" type="specific" module="KS0108" description="Store a new image in eeprom">
  475.       <variables>
  476.     <variable name="image_id" type="uint" start_bit="0" bit_length="8" unit="" description="the new image id"/>
  477.         <variable name="size_X" type="uint" start_bit="8" bit_length="8" unit="" description="Size in x direction"/>
  478.         <variable name="size_Y" type="uint" start_bit="16" bit_length="8" unit="" description="Size in y direction"/>
  479.       </variables>
  480.     </command>
  481.         <command id="139" name="LCD_Ack" type="specific" module="KS0108" description="Data correctly received">
  482.       <variables>
  483.     <variable name="packet_id" type="uint" start_bit="0" bit_length="8" unit="" description="Id of the packet that is acknoleged"/>
  484.       </variables>
  485.     </command>
  486.      
  487.         <command id="140" name="LCD_Error" type="specific" module="KS0108" description="Data error"/>
  488.    
  489.         <command id="141" name="LCD_Image_Data" type="specific" module="KS0108" description="Data"/>
  490.         <command id="141" name="LCD_Image_Data_7" type="specific" module="KS0108" description="Data">
  491.       <variables>
  492.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  493.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  494.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  495.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  496.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  497.         <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  498.         <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  499.     <variable name="Data6" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
  500.       </variables>
  501.     </command>
  502.     <command id="141" name="LCD_Image_Data_6" type="specific" module="KS0108" description="Data">
  503.       <variables>
  504.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  505.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  506.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  507.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  508.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  509.         <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  510.         <variable name="Data5" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  511.       </variables>
  512.     </command>
  513.     <command id="141" name="LCD_Image_Data_5" type="specific" module="KS0108" description="Data">
  514.       <variables>
  515.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  516.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  517.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  518.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  519.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  520.         <variable name="Data4" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  521.       </variables>
  522.     </command>
  523.     <command id="141" name="LCD_Image_Data_4" type="specific" module="KS0108" description="Data">
  524.       <variables>
  525.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  526.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  527.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  528.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  529.         <variable name="Data3" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  530.       </variables>
  531.     </command>
  532.     <command id="141" name="LCD_Image_Data_3" type="specific" module="KS0108" description="Data">
  533.       <variables>
  534.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  535.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  536.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  537.         <variable name="Data2" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  538.       </variables>
  539.     </command>
  540.     <command id="141" name="LCD_Image_Data_2" type="specific" module="KS0108" description="Data">
  541.       <variables>
  542.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  543.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  544.         <variable name="Data1" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  545.       </variables>
  546.     </command>
  547.     <command id="141" name="LCD_Image_Data_1" type="specific" module="KS0108" description="Data">
  548.       <variables>
  549.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  550.         <variable name="Data0" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  551.       </variables>
  552.     </command>
  553.     <command id="142" name="LCD_Data_id_Error" type="specific" module="KS0108" description="Wrong data id received">
  554.       <variables>
  555.     <variable name="id" type="uint" start_bit="0" bit_length="8" unit="" description="The expected id"/>
  556.       </variables>
  557.     </command>
  558.    
  559.         <command id="143" name="LCD_Data_Done" type="specific" module="KS0108" description="All data sent">
  560.       <variables>
  561.       </variables>
  562.     </command>
  563.  
  564.     <command id="128" name="Motion" type="specific" module="PIR" description="Motion and brightness from PIR-sensor">
  565.      <variables>
  566.         <variable name="Id" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  567.         <variable name="Brightness" type="uint" start_bit="8" bit_length="16" unit="" description=""/>
  568.         <variable name="MotionDetect" type="enum" start_bit="24" bit_length="8" unit="" description="">
  569.             <value id="0" name="NoMotion"/>
  570.             <value id="1" name="MotionDetected"/>
  571.         </variable>
  572.       </variables>
  573.     </command>
  574.  
  575.    
  576.     <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">
  577.      <variables>
  578.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  579.         <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"/>
  580.         <variable name="Steps" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  581.       </variables>
  582.     </command>
  583.    
  584.     <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">
  585.      <variables>
  586.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  587.         <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)"/>
  588.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  589.             <value id="0" name="Decrease"/>
  590.             <value id="1" name="Increase"/>
  591.         </variable>
  592.       </variables>
  593.     </command>
  594.     <command id="130" name="Stop_Fade" type="specific" module="Dimmer230" description="If a fade is in progress, then stop">
  595.       <variables>
  596.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  597.       </variables>
  598.     </command>
  599.     <command id="131" name="Abs_Fade" type="specific" module="Dimmer230" description="Fade to a defined value, stops when another command is received">
  600.      <variables>
  601.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  602.         <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)"/>
  603.         <variable name="EndValue" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  604.       </variables>
  605.     </command>
  606.     <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">
  607.      <variables>
  608.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  609.         <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)"/>
  610.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  611.             <value id="0" name="Decrease"/>
  612.             <value id="1" name="Increase"/>
  613.         </variable>
  614.         <variable name="Steps" type="uint" start_bit="24" bit_length="8" unit="" description="Number of steps to fade"/>
  615.       </variables>
  616.     </command>
  617.     <command id="133" name="Netinfo" type="specific" module="Dimmer230" description="Information about the connected net power">
  618.      <variables>
  619.         <variable name="Connection" type="enum" start_bit="0" bit_length="1" unit="" description="If the dimmer is connected to net power">
  620.         <value id="0" name="Disconnected"/>
  621.         <value id="1" name="Connected"/>
  622.     </variable>
  623.         <variable name="Frequency" type="enum" start_bit="1" bit_length="2" unit="" description="Frequency of the net power">
  624.         <value id="0" name="Error_Unknown"/>
  625.         <value id="1" name="50Hz"/>
  626.         <value id="2" name="60Hz"/>
  627.     </variable>
  628.     <variable name="DimmerValue" type="uint" start_bit="8" bit_length="8" unit="" description="Current dimmer value"/>
  629.     <variable name="Channel" type="uint" start_bit="16" bit_length="8" unit="" description="Dimmer channel"/>
  630.       </variables>
  631.     </command>
  632.     <command id="128" name="Demo" type="specific" module="hwPWM" description="Fade to x+steps, then to x-steps and then back to x. If x is close to, or at, top or bottom then fade more to the other direction">
  633.      <variables>
  634.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  635.         <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"/>
  636.         <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
  637.       </variables>
  638.     </command>
  639.     <command id="129" name="Start_Fade" type="specific" module="hwPWM" description="Fade in a direction and don't stop until another command is received or top/bottom is reached">
  640.      <variables>
  641.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  642.         <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)"/>
  643.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  644.             <value id="0" name="Decrease"/>
  645.             <value id="1" name="Increase"/>
  646.         </variable>
  647.       </variables>
  648.     </command>
  649.     <command id="130" name="Stop_Fade" type="specific" module="hwPWM" description="If a fade is in progress, then stop">
  650.       <variables>
  651.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  652.       </variables>
  653.     </command>
  654.     <command id="131" name="Abs_Fade" type="specific" module="hwPWM" description="Fade to a defined value, stops when another command is received">
  655.      <variables>
  656.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  657.         <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)"/>
  658.         <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
  659.       </variables>
  660.     </command>
  661.     <command id="132" name="Rel_Fade" type="specific" module="hwPWM" description="Fade a number of steps in a defined direction, stops when another command is received or top/bottom is reached">
  662.      <variables>
  663.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  664.         <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)"/>
  665.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  666.             <value id="0" name="Decrease"/>
  667.             <value id="1" name="Increase"/>
  668.         </variable>
  669.         <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
  670.       </variables>
  671.     </command>
  672.  
  673.     <command id="128" name="Demo" type="specific" module="PCAPWM" description="Fade to x+steps, then to x-steps and then back to x. If x is close to, or at, top or bottom then fade more to the other direction">
  674.      <variables>
  675.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  676.         <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"/>
  677.         <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
  678.       </variables>
  679.     </command>
  680.     <command id="129" name="Start_Fade" type="specific" module="PCAPWM" description="Fade in a direction and don't stop until another command is received or top/bottom is reached">
  681.      <variables>
  682.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  683.         <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)"/>
  684.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  685.             <value id="0" name="Decrease"/>
  686.             <value id="1" name="Increase"/>
  687.         </variable>
  688.       </variables>
  689.     </command>
  690.     <command id="130" name="Stop_Fade" type="specific" module="PCAPWM" description="If a fade is in progress, then stop">
  691.       <variables>
  692.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  693.       </variables>
  694.     </command>
  695.     <command id="131" name="Abs_Fade" type="specific" module="PCAPWM" description="Fade to a defined value, stops when another command is received">
  696.      <variables>
  697.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  698.         <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)"/>
  699.         <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
  700.       </variables>
  701.     </command>
  702.     <command id="132" name="Rel_Fade" type="specific" module="PCAPWM" description="Fade a number of steps in a defined direction, stops when another command is received or top/bottom is reached">
  703.      <variables>
  704.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  705.         <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)"/>
  706.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  707.             <value id="0" name="Decrease"/>
  708.             <value id="1" name="Increase"/>
  709.         </variable>
  710.         <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
  711.       </variables>
  712.     </command>
  713.    
  714.  <command id="128" name="Demo" type="specific" module="RGBW" description="Fade to x+steps, then to x-steps and then back to x. If x is close to, or at, top or bottom then fade more to the other direction">
  715.      <variables>
  716.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  717.         <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"/>
  718.         <variable name="Steps" type="uint" start_bit="16" bit_length="16" unit="" description="number of percent to step in %/100"/>
  719.       </variables>
  720.     </command>
  721.    
  722.     <command id="129" name="Start_Fade" type="specific" module="RGBW" description="Fade in a direction and don't stop until another command is received or top/bottom is reached">
  723.      <variables>
  724.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  725.         <variable name="Speed" type="uint" start_bit="8" bit_length="8" unit="" description="Speed is 1/127 steps per 10ms up to 127 steps per 10ms, set speed to 0 if no fading is to be used (go to target immediately)"/>
  726.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  727.             <value id="0" name="Decrease"/>
  728.             <value id="1" name="Increase"/>
  729.         </variable>
  730.       </variables>
  731.     </command>
  732.     <command id="130" name="Stop_Fade" type="specific" module="RGBW" description="If a fade is in progress, then stop">
  733.       <variables>
  734.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  735.       </variables>
  736.     </command>
  737.     <command id="131" name="Abs_Fade" type="specific" module="RGBW" description="Fade to a defined value, stops when another command is received">
  738.      <variables>
  739.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  740.         <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)"/>
  741.         <variable name="EndValue" type="uint" start_bit="16" bit_length="16" unit="" description="end value in percent in %/100"/>
  742.       </variables>
  743.     </command>
  744.     <command id="132" name="Rel_Fade" type="specific" module="RGBW" description="Fade a number of steps in a defined direction, stops when another command is received or top/bottom is reached">
  745.      <variables>
  746.         <variable name="Channel" type="uint" start_bit="0" bit_length="8" unit="" description="Dimmer channel"/>
  747.         <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)"/>
  748.         <variable name="Direction" type="enum" start_bit="16" bit_length="8" unit="" description="">
  749.             <value id="0" name="Decrease"/>
  750.             <value id="1" name="Increase"/>
  751.         </variable>
  752.         <variable name="Steps" type="uint" start_bit="24" bit_length="16" unit="" description="Number of percent to step in %/100"/>
  753.       </variables>
  754.     </command>
  755.  
  756.     <command id="128" name="Id" type="specific" module="identification" description="Broadcast this nodes ID">
  757.      <variables>
  758.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  759.      </variables>
  760.     </command>
  761.  
  762.     <command id="128" name="CONFIG" type="specific" module="softPWM" description="Configure the PWM">
  763.      <variables>
  764.         <variable name="Period" type="uint" start_bit="0" bit_length="16" unit="ms" description=""/>
  765.         <variable name="Resolution" type="uint" start_bit="16" bit_length="8" unit="ms" description=""/>
  766.      </variables>
  767.     </command>
  768.     <command id="128" name="Gesture" type="specific" module="Touch" description="Parsed touch data as a gesture">
  769.      <variables>
  770.         <variable name="f1" type="uint" start_bit="0" bit_length="8" unit="#" description="Indicates the number of intersection points between an input gesture g(x) and the straight line f(x) which connects the first and last point of the gesture"/>
  771.         <variable name="f7" type="uint" start_bit="8" bit_length="8" unit="#" description="Indicates the number of intersection points between an input gesture g(x) and all horizontal lines yi, where i is between 0 and n, that constitute a gesture"/>
  772.         <variable name="f3" type="enum" start_bit="16" bit_length="1" unit="" description="Indicates the sign value of area gap between g(x) and f(x)">
  773.            <value id="0" name="M"/>
  774.            <value id="1" name="P"/>
  775.         </variable>
  776.         <variable name="f4" type="enum" start_bit="17" bit_length="1" unit="" description="Represents the sign value of the sum of the x coordinates of all the points that constitute strokes minus the x coordinates of the last point">
  777.            <value id="0" name="M"/>
  778.            <value id="1" name="P"/>
  779.         </variable>
  780.         <variable name="f5" type="enum" start_bit="18" bit_length="1" unit="" description="Checks the sign value of the sum of the x coordinates of all the points that constitute strokes minus x coordinates of the first point">
  781.            <value id="0" name="M"/>
  782.            <value id="1" name="P"/>
  783.         </variable>
  784.         <variable name="f6" type="enum" start_bit="19" bit_length="1" unit="" description="Indicates the sign value of the y coordinates of the last point minus y coordinates of the first point">
  785.            <value id="0" name="M"/>
  786.            <value id="1" name="P"/>
  787.         </variable>
  788.         <variable name="f8" type="enum" start_bit="20" bit_length="1" unit="" description="Checks whether or not x coordinates of all the points except for the first point and the last point is between x0 and xn">
  789.            <value id="0" name="M"/>
  790.            <value id="1" name="P"/>
  791.         </variable>
  792.         <variable name="f9" type="enum" start_bit="21" bit_length="1" unit="" description="Represents the sign value of the multiplication of x coordinates of the first point and the last point minus the mediate value of x coordinates of all the points">
  793.            <value id="0" name="M"/>
  794.            <value id="1" name="P"/>
  795.         </variable>
  796.         <variable name="f2" type="enum" start_bit="22" bit_length="2" unit="" description="Checks if the y coordinates of the points which exist between the intersection point and the last point are greater than the y coordinates of the intersection point">
  797.            <value id="0" name="M"/>
  798.            <value id="1" name="P"/>
  799.            <value id="2" name="U"/>
  800.         </variable>
  801.      </variables>
  802.     </command>
  803.     <command id="129" name="Raw" type="specific" module="Touch" description="Raw touch data">
  804.      <variables>
  805.         <variable name="Status" type="enum" start_bit="0" bit_length="8" unit="" description="Gives the current push status">
  806.           <value id="1" name="Pressed"/>
  807.           <value id="0" name="Released"/>
  808.         </variable>
  809.         <variable name="X" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  810.         <variable name="Y" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  811.      </variables>
  812.     </command>
  813.   </commands>
  814.   <modules>
  815.     <module id="0" name="Debug" class="tst"/>
  816.     <module id="1" name="Default" class="def"/>
  817.     <module id="3" name="DS18x20" class="sns"/>
  818.     <module id="5" name="FOST02" class="sns"/>
  819.     <module id="6" name="BusVoltage" class="sns"/>
  820.     <module id="7" name="SimpleDTMF" class="sns"/>
  821.     <module id="8" name="Rotary" class="sns"/>
  822.     <module id="9" name="HD44789" class="act"/>
  823.     <module id="10" name="Dimmer230" class="act"/>
  824.     <module id="11" name="KS0108" class="act"/>
  825.     <module id="12" name="RGBdriver" class="act"/>
  826.     <module id="13" name="hwPWM" class="act"/>
  827.     <module id="14" name="irReceive" class="sns"/>
  828.     <module id="15" name="nmea" class="sns"/>
  829.     <module id="16" name="irTransmit" class="sns"/>
  830.     <module id="17" name="TC1047A" class="sns"/>
  831.     <module id="18" name="PID" class="act"/>
  832.     <module id="19" name="SlowPWM" class="act"/>
  833.     <module id="20" name="power" class="sns"/>
  834.     <module id="21" name="softPWM" class="act"/>
  835.     <module id="22" name="Touch" class="sns"/>
  836.     <module id="23" name="RotaryHex" class="sns"/>
  837.     <module id="24" name="output" class="act"/>
  838.     <module id="25" name="input" class="sns"/>
  839.     <module id="26" name="RGBW" class="act"/>
  840.     <module id="27" name="irTransceive" class="sns"/>
  841.     <module id="28" name="identification" class="sns"/>
  842.     <module id="29" name="PCAPWM" class="act"/>
  843.     <module id="30" name="ChnMaster" class="chn"/>
  844.     <module id="31" name="ChnController" class="chn"/>
  845.     <module id="45" name="PIR" class="sns"/>
  846.     <module id="46" name="TCN75A" class="sns"/>
  847.     <module id="47" name="VoltageCurrent" class="sns"/>
  848.     <module id="48" name="Serial" class="sns"/>
  849.     <module id="49" name="protectedOutput" class="sns"/>
  850.     <module id="50" name="inputAnalog" class="sns"/>
  851.     <module id="51" name="LM335" class="sns"/>
  852.     <module id="52" name="SH11" class="sns"/>
  853.     <module id="53" name="Radio433Transmit" class="act"/>
  854.     <module id="54" name="Radio433Receive" class="sns"/>
  855.     <module id="55" name="NTC" class="sns"/>
  856.   </modules>
  857.   <defines>
  858.     <define id="1" group="DirectionFlag" name="From_Owner"/>
  859.     <define id="0" group="DirectionFlag" name="To_Owner"/>
  860.   </defines>
  861.   <nmt_messages>
  862.     <nmt_message id="0" name="Time"/>
  863.     <nmt_message id="4" name="Reset">
  864.       <variables>
  865.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  866.       </variables>
  867.     </nmt_message>
  868.     <nmt_message id="8" name="Bios_Start">
  869.       <variables>
  870.         <variable name="BiosVersion" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  871.         <variable name="HasApplication" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  872.         <variable name="DeviceType" type="enum" start_bit="24" bit_length="8" unit="" description="">
  873.       <value id="0" name="unknown"/>
  874.           <value id="1" name="atmega8"/>
  875.           <value id="2" name="atmega48"/>
  876.           <value id="3" name="atmega88"/>
  877.           <value id="4" name="atmega168"/>
  878.           <value id="5" name="atmega328p"/>
  879.         </variable>
  880.         <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
  881.       </variables>
  882.     </nmt_message>
  883.     <nmt_message id="12" name="Pgm_Start">
  884.       <variables>
  885.         <variable name="Address0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  886.         <variable name="Address1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  887.         <variable name="Address2" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  888.         <variable name="Address3" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  889.         <variable name="HardwareId" type="uint" start_bit="32" bit_length="32" unit="" description=""/>
  890.       </variables>
  891.     </nmt_message>
  892.     <nmt_message id="16" name="Pgm_Data">
  893.       <variables>
  894.         <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  895.         <variable name="Data" type="uint" start_bit="16" bit_length="48" unit="" description=""/>
  896.       </variables>
  897.     </nmt_message>
  898.     <nmt_message id="16" name="Pgm_Data_48">
  899.       <variables>
  900.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  901.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  902.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  903.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  904.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  905.         <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  906.         <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  907.         <variable name="Data5" type="uint" start_bit="56" bit_length="8" unit="" description=""/>
  908.       </variables>
  909.     </nmt_message>
  910.     <nmt_message id="16" name="Pgm_Data_8">
  911.       <variables>
  912.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  913.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  914.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  915.       </variables>
  916.     </nmt_message>
  917.     <nmt_message id="16" name="Pgm_Data_16">
  918.       <variables>
  919.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  920.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  921.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  922.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  923.       </variables>
  924.     </nmt_message>
  925.     <nmt_message id="16" name="Pgm_Data_24">
  926.       <variables>
  927.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  928.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  929.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  930.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  931.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  932.       </variables>
  933.     </nmt_message>
  934.     <nmt_message id="16" name="Pgm_Data_32">
  935.       <variables>
  936.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  937.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  938.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  939.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  940.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  941.         <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  942.       </variables>
  943.     </nmt_message>
  944.     <nmt_message id="16" name="Pgm_Data_40">
  945.       <variables>
  946.         <variable name="Offset0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  947.         <variable name="Offset1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  948.         <variable name="Data0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  949.         <variable name="Data1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  950.         <variable name="Data2" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  951.         <variable name="Data3" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  952.         <variable name="Data4" type="uint" start_bit="48" bit_length="8" unit="" description=""/>
  953.       </variables>
  954.     </nmt_message>
  955.     <nmt_message id="20" name="Pgm_End"/>
  956.     <nmt_message id="24" name="Pgm_Copy">
  957.       <variables>
  958.         <variable name="Source0" type="uint" start_bit="0" bit_length="8" unit="" description=""/>
  959.         <variable name="Source1" type="uint" start_bit="8" bit_length="8" unit="" description=""/>
  960.         <variable name="Destination0" type="uint" start_bit="16" bit_length="8" unit="" description=""/>
  961.         <variable name="Destination1" type="uint" start_bit="24" bit_length="8" unit="" description=""/>
  962.         <variable name="Length0" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  963.         <variable name="Length1" type="uint" start_bit="40" bit_length="8" unit="" description=""/>
  964.       </variables>
  965.     </nmt_message>
  966.     <nmt_message id="28" name="Pgm_Ack">
  967.       <variables>
  968.         <variable name="Data" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  969.       </variables>
  970.     </nmt_message>
  971.     <nmt_message id="32" name="Pgm_Nack">
  972.       <variables>
  973.         <variable name="Offset" type="uint" start_bit="0" bit_length="16" unit="" description=""/>
  974.       </variables>
  975.     </nmt_message>
  976.     <nmt_message id="36" name="Start_App" description="Send to node to start the application in the node">
  977.       <variables>
  978.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  979.       </variables>
  980.     </nmt_message>
  981.     <nmt_message id="40" name="App_Start" description="Sent by the application in a node when it starts">
  982.       <variables>
  983.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  984.       </variables>
  985.     </nmt_message>
  986.     <nmt_message id="44" name="Heartbeat">
  987.       <variables>
  988.         <variable name="HardwareId" type="uint" start_bit="0" bit_length="32" unit="" description=""/>
  989.         <variable name="NumberOfModules" type="uint" start_bit="32" bit_length="8" unit="" description=""/>
  990.       </variables>
  991.     </nmt_message>
  992.   </nmt_messages>
  993. </root>
  994.