Logic Machine Forum
Daligateway DT8 Primary N - 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: Daligateway DT8 Primary N (/showthread.php?tid=1500)



Daligateway DT8 Primary N - tom77 - 25.07.2018

Hello, there is a way to send Dali primary N commands with the logic machine.
I need this to address Dali RGBW lights in this format. Can I possibly access the DALI interface directly via LUA or are there more commands in the user.dali.
thank you very much for your help
Thomas


RE: Daligateway DT8 Primary N - admin - 25.07.2018

Not yet, but the hardware supports 3 byte messages. For now we will add raw message support for DALI gateway.


RE: Daligateway DT8 Primary N - tom77 - 25.07.2018

RAW messages would be great if possible with the RAW feedback. thank you Thomas


RE: Daligateway DT8 Primary N - admin - 27.07.2018

Do you mean receiving one byte backwards frame as a reply to a forward frame? That's already implemented for all commands that have "reply from slave" set in commands table: http://openrb.com/docs/dali.htm

As for raw telegrams, it will implemented like this:
Code:
data = string.char(0x12, 0x34, 0x56) -- either 2 or 3 bytes
-- no reply required
dalicmd('internal', 'raw', { data = data })

-- query command
res, err = dalicmd('internal', 'raw', { data = data, reply = true })
if res then
  log(res:byte())
end



RE: Daligateway DT8 Primary N - tom77 - 05.08.2018

Hello,
i have tested the code, unfortunately no dali telegrams are generated when using the'raw' option. Other commands are easily executed and can be monitored with the DALI monitor from Tridonic. what am I doing wrong? thank you very much for your help

Thomas


RE: Daligateway DT8 Primary N - admin - 06.08.2018

This is not implemented in current firmware. We are going to publish release candidate version soon.