This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

DALI raw messages
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
In Canx dali gateway you can send any command from the app.
See this:
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})
repeat is Lua keyword, you must escape it like this:
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.
Ok, it works fine (collisions were in my head....)

Forum Jump: