Logic Machine Forum
DALI raw messages - 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 raw messages (/showthread.php?tid=2737)



DALI raw messages - alb-smith - 21.07.2020

I read about LM's ability to send raw DALI messages.
Is there documentation or is there any example?
In the various posts I have seen scripts that communicate on the DALI bus referring to a list of commands which however is not complete.

Thank you


RE: DALI raw messages - Daniel - 21.07.2020

https://openrb.com/docs/dali.htm
In Canx dali gateway you can send any command from the app.


RE: DALI raw messages - admin - 21.07.2020

See this: https://forum.logicmachine.net/showthread.php?tid=1500&pid=9137#pid9137


RE: DALI raw messages - alb-smith - 24.07.2020

Thanks for the replies.
I tried to do some tests.
I noticed that, in raw mode, a double message is almost always generated (SendTwice)
I find it difficult to use the "repeat" parameter for the raw message.
This syntax is not accepted

res, err = dalicmd('internal', 'raw', { data = data, reply = true, repeat=false})


RE: DALI raw messages - admin - 24.07.2020

repeat is Lua keyword, you must escape it like this:
Code:
res, err = dalicmd('internal', 'raw', { data = data, ['repeat'] = true })
By default reply/repeat are disabled so the message will be sent once. It can be sent more than once if a collision is detected during transmission.


RE: DALI raw messages - alb-smith - 24.07.2020

Ok, it works fine (collisions were in my head....)
Thanks