Logic Machine Forum
DALI address reassigning issues - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: DALI address reassigning issues (/showthread.php?tid=2147)



DALI address reassigning issues - alextuby - 09.07.2019

Hi
I've recently faced a number of issues while trying to configure DALI drivers.
Environment:
LM5 DR, two Tridonic drivers hooked up with the first DALI gateway, Watt24 DALI PS.
1. It's really not obvious that the first DALI gateway is called "internal" all small letters. Maybe you should update the documentation or something.
2. While trying to discover the devices the LM returned just one device with the address 63. Funny thing is that all of them turned on/off even having the same address. My solution is connecting them one by one and reassigning the addresses. Of course in this case you can only control them via scripts afterwards.
And here we face the issue number
3. The reassigning is weird. I connected one driver and ran commands

dalicmd('internal', 'setdtr', { addrtype = 'short', address = 63, value = 5 }) --I also tried to broadcast the setdtr command. Same result
dalicmd('internal', 'storeshortaddress', { addrtype = 'short', address = 63 }) -- the log showed both replies "true"

Then I tried to turn the light on/off using the command "arc" and address 5. Nothing happened. Moreover address 63 didn't work either.
I discovered that after I ran these commands the address of the driver became 2. Huh "arc" worked with the address 2 correctly.
After that I tried to assign 4 to another driver (after changing the wires of course). Nothing happened, it remained 63.
I played with it a couple hours and it just didn't want to change the address the way I wanted. Either it remained 63 or became unknown and i had to "reset" it via rediscovering to 63.

So my questions are
- Am I doing everything right?
- Maybe the gateway uses some other conversion type of addresses?


RE: DALI address reassigning issues - admin - 09.07.2019

Value for new address should be address * 2 + 1