http://www.ethersex.de/index.php?title=DALI&feed=atom&action=historyDALI - Revision history2024-03-19T04:15:43ZRevision history for this page on the wikiMediaWiki 1.30.0http://www.ethersex.de/index.php?title=DALI&diff=332&oldid=prevSascha: externam sources update2012-01-05T22:25:55Z<p>externam sources update</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr style="vertical-align: top;" lang="en">
<td colspan="2" style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: white; color:black; text-align: center;">Revision as of 22:25, 5 January 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l90" >Line 90:</td>
<td colspan="2" class="diff-lineno">Line 90:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== External sources ==</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>== External sources ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>*[http://de.wikipedia.org/wiki/Digital_Addressable_Lighting_Interface DALI <del class="diffchange diffchange-inline">bei </del>Wikipedia]</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>*[http://de.wikipedia.org/wiki/Digital_Addressable_Lighting_Interface DALI <ins class="diffchange diffchange-inline">at </ins>Wikipedia] <ins class="diffchange diffchange-inline">german article (more complete)</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*[http://www.freescale.com/files/microcontrollers/doc/ref_manual/DRM004.pdf Freescale DRM004 Application Note] good example for the hardware parts needed</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*[http://www.freescale.com/files/microcontrollers/doc/ref_manual/DRM004.pdf Freescale DRM004 Application Note] good example for the hardware parts needed</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*[http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10760.zip NXP AN10760] good commandlist and explanation of the data transfer</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>*[http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10760.zip NXP AN10760] good commandlist and explanation of the data transfer</div></td></tr>
</table>Saschahttp://www.ethersex.de/index.php?title=DALI&diff=331&oldid=prevSascha: created a rough first draft of the dali protocol informations2012-01-05T22:23:11Z<p>created a rough first draft of the dali protocol informations</p>
<p><b>New page</b></p><div>{{i18n|DALI}}<br />
{{Module<br />
|NAME=DALI<br />
|MENUCONFIG={{Protocols}}->DALI light control<br />
|STATUS={{stable}}<br />
|PINNING=no<br />
|ECMD={{has_ecmd}}<br />
|DEPENDS=[[ECMD]] (optional)<br />
|REQUIRES= -<br />
|CODE=[https://github.com/ethersex/ethersex/tree/master/protocols/dali https://github.com/ethersex/ethersex/tree/master/protocols/dali]<br />
}}<br />
<br />
DALI light control provides the software layer to control DALI enabled digital ballast and transformers.<br />
DALI is an abbreviation for Digital Addressable Lighting Interface<br />
<br />
== DALI bus physical layer ==<br />
* one master (Ethersex) and up to 64 lights (targets) on one bus<br />
* 2 wire, no complex topology restrictions, no termination<br />
* targets may only answer on master's request<br />
* bus is isolated, but not SELV -> should be galvanic isolated on master's side<br />
* 1200 baud, manchester-encoding<br />
* 22.5VDC to 9.5VDC (16VDC nominally) is high level<br />
* 6.5VDC to -6.5VDV (0VDC nominally) is low level<br />
* bus is powered and held to high level by master<br />
* targets (slaves) short the bus to transmit a low value<br />
* master has to limit the current to 250mA<br />
<br />
== [[ECMD]] commands ==<br />
{| border=1<br />
| '''Command Syntax''' <br />
| '''Short description'''<br />
|- <br />
| dali raw <byte1> <byte2><br />
| Sends a raw frame with 2 hex bytes. If you know what you are doing...<br />
|- <br />
| dali dim <target> <level><br />
| Dims the specified target to the specified dim-level (0-254)<br />
|- <br />
| dali cmd <target> <command> ''[!]'' ''[?]''<br />
| Sends a command (decimal) to the target. For a list of commands see the NXP application note or the DALI standard. To automatically repeat the command add a ''!'' to the end of the command (necessary with some commands). A ''?'' at the end means that command waits for an answer from the target. This answer is being returned as a decimal value. Not all commands will send an answer.<br />
|-<br />
| dali scmd <command> <data> ''[!]'' ''[?]''<br />
| Sends a special command to all connected targets (decimal 256-287). For a list of commands see the NXP application note or the DALI standard. A ''?'' at the end means that command waits for an answer from the target. This answer is being returned as a decimal value. Not all commands will send an answer.<br />
|}<br />
<br />
Values for the <target> parameter:<br />
<br />
{| border=1<br />
| '''Targetcode'''<br />
| '''Description'''<br />
|- <br />
|all || All / Broadcast<br />
|- <br />
|- <br />
|s''nn''|| short address 0-63 (decimal)<br />
|- <br />
|- <br />
|g''nn''|| group address 0-16 (decimal)<br />
|}<br />
<br />
== Examples ==<br />
{| border=1<br />
|'''Example'''<br />
|'''ECMD'''<br />
|- <br />
| Dim all targets to 100%<br />
| <code>dali dim all 254</code><br />
|- <br />
| Target 12 off<br />
| <code>dali dim s12 0</code><br />
|- <br />
| Targets in group 3 to 50%<br />
| <code>dali dim g3 127</code><br />
|- <br />
| Set dim-speed on all targets to approx. 5.6 seconds (t=1/2*SQRT(2^x), x=1-15)|| <code>dali scmd 257 7<br />
dali cmd all 46 !</code><br />
|- <br />
| Get actual dim value from target 4<br />
| <code>dali cmd s4 160 ?</code> Reply: <code>180</code><br />
|- <br />
| Is a target with short address 8 existing?<br />
| <code>dali cmd s8 145 ?</code> Reply: <code>255</code> (means true)<br />
|- <br />
| Malfunction at target 8? || <code>dali cmd s8 146 ?</code> Reply: <code>READ TIMEOUT</code> (No answer means no malfunction)<br />
|- <br />
| Program the single connected target the short address 3<br />
| <code>dali scmd 257 3<br />
dali cmd all 128 !</code><br />
|}<br />
<br />
== External sources ==<br />
*[http://de.wikipedia.org/wiki/Digital_Addressable_Lighting_Interface DALI bei Wikipedia]<br />
*[http://www.freescale.com/files/microcontrollers/doc/ref_manual/DRM004.pdf Freescale DRM004 Application Note] good example for the hardware parts needed<br />
*[http://www.standardics.nxp.com/support/documents/microcontrollers/zip/an10760.zip NXP AN10760] good commandlist and explanation of the data transfer<br />
*[http://www.archenergy.com/lrp/products/dali.htm NEMA Standard 243 bei Archenergy]<br />
<br />
If you are lucky, you can find the official DALI standard document IEC 60929 on google.</div>Sascha