knxdali
knxdali programs the MDT DALI Control 1x64 and 2x64 gateways the way the vendor’s ETS plug-in does: it finds the
electronic control gears (ECGs) on the DALI line, gives them addresses, assigns them to groups, and writes scenes and time
control templates. The DALI tab of the application does the same with a window.
The protocol was taken from the plug-in. It has been run on one real gateway, an MDT SCN-DA642.04: a new installation
(install), writing the ECG configuration (commission) and assigning ECGs to groups worked. Everything else is tested
against a fake gateway only: the other commands, the 1x64 gateways and other firmware generations are not confirmed on
devices. Start with the commands that only read, and try the others on
a spare ECG. See status.
Commands that change the device do nothing without -write: they show what they would do. With -write they
change the device, and knxdali refuses to start unless it was told which device it is (-expect-serial) and where
the backup goes (-backup). Before the first change it reads the configuration the device holds and saves it as a plug-in
file in that directory (dali-1_1_3-ch1-20261115-120000.xml). Read safety first.
knxdali -gateway HOST:3671 -device 1.1.3 [options] COMMAND [options]
-gateway, -device and a command are required. Options may also follow the command.
Commands that read
| Command | What it does |
|---|---|
info | Firmware, serial number and the DALI channels of the gateway. |
read | The ECGs, groups, scenes and time control templates the device holds. -out FILE saves them as a plug-in file. |
status | Errors, values and operation hours of ECGs and groups. |
scenes | The scenes of the device. |
templates | The time control templates of the device. |
Commands that change the device (need -write)
| Command | What it does |
|---|---|
install [-group N] | New installation: the device finds all ECGs on the DALI line and addresses them anew. Addresses given before are lost. -group puts the found ECGs into group 1 to 16, or 17 for single ECGs. |
postinstall [-keep-unknown] [-delete-short] [-group N] | Post installation: find new ECGs and forget those that are gone. -keep-unknown keeps ECGs the plan does not know, -delete-short deletes short addresses given by another tool. |
replace | Easy replace: the device looks for one failed ECG and one new ECG on the line and gives the new one the address of the failed one. |
commission [-assign ECG:ADDR[:GROUP],...] [-unassign ECG,...] | Write the assignment of ECGs (1 to 64) to DALI addresses (0 to 63) and groups (1 to 16, or s for single). For example -assign 3:0:2,4:1:s. |
programscenes | Write the scenes of -config and have the device take them over. |
programtemplates | Write the time control templates of -config and have the device take them over. |
restore | Write the whole configuration of -config to the device, for a replacement gateway, then reset it. |
delete-ecg ADDR | Make the device forget the short address ADDR. |
programscenes, programtemplates and restore need -config FILE. commission, postinstall and replace start from
-config too, or from what the device holds if there is none.
Commands that test
They switch lights but do not change the configuration of the device. They send nothing unless -write is given
(-expect-serial and -backup are not needed).
| Command | What it does |
|---|---|
switch ecg|group ADDR|N on|off|blink|stop | Switch one ECG (by DALI address) or one group (by number). |
switch all on|off|blink|stop | Switch every ECG on the line. |
inhibit | Inhibit all converters. |
testscene N | Run scene N (1 to 16). |
Flags
| Flag | Meaning |
|---|---|
-gateway HOST:3671 | KNXnet/IP gateway. Required: there is no default. |
-tcp | Tunnel over TCP. |
-device ADDR | Individual address of the DALI gateway, for example 1.1.3. Required. |
-channel N | DALI channel of the gateway, 1 or 2 (default 1). |
-key N | Access key of the device (a number), if it needs one. |
-project FILE | The ETS project the gateway is in. The ECG types, the colour control and the descriptions are taken from it. |
-pwfile FILE | File holding the project password. |
-save-project FILE | Write the project to this new file, with the group assignment of the plan in the parameters of the gateway. Needs -project. |
-config FILE | Configuration file of the plug-in (XML): the plan the command works with. Without it the device is read. |
-out FILE | File for the configuration read from the device (read) or for the plan after the command. |
-write | Change the device, or send the test commands. Without it nothing is written or sent. |
-expect-serial S | The serial number the device must have, as 00E1:0A1B2C3D. Required with -write. |
-backup DIR | Directory for the file with the configuration the device holds, saved before the first change. Required with -write. |
-allow-warnings | Go on although the configuration has warnings. |
-assign, -unassign, -group, -keep-unknown, -delete-short | Options of commission, install and postinstall, see above. |
Examples
Read what the gateway holds, and save it as a plug-in file:
knxdali -gateway 10.0.0.5:3671 -device 1.1.3 info
knxdali -gateway 10.0.0.5:3671 -device 1.1.3 read -out dali-1.1.3.xml
See what a new installation would do (nothing is written), then do it:
knxdali -gateway 10.0.0.5:3671 -device 1.1.3 install
knxdali -gateway 10.0.0.5:3671 -device 1.1.3 -write -expect-serial 00E1:0A1B2C3D -backup backups install -group 1
Put ECG 3 on DALI address 0 in group 2, and ECG 4 on address 1 as a single ECG:
knxdali -gateway 10.0.0.5:3671 -device 1.1.3 -project house.knxproj -pwfile pw.txt \
-write -expect-serial 00E1:0A1B2C3D -backup backups commission -assign 3:0:2,4:1:s
Write the scenes of a plug-in file:
knxdali -gateway 10.0.0.5:3671 -device 1.1.3 -config dali-1.1.3.xml \
-write -expect-serial 00E1:0A1B2C3D -backup backups programscenes
Limits
- Supported are the MDT DALI Control 1x64 and 2x64 gateways, application programs 0154 and 0155, versions 1.0, 1.1 and 4.0. Gateways of other manufacturers are not supported.
- The plan is kept in the files of the plug-in, not in the project file. The group assignment, the descriptions and the
template modes can be written to the parameters of the gateway in a project with
-save-project. - Table writes expect the device to answer with the data that was written. A device that answers otherwise fails the write with a verify error.
- The older plug-in versions (before 2.1) and their “old XML” format are not read.