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 that you accept these cookies being set.

DALI raw messages
#1
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
Reply
#2
https://openrb.com/docs/dali.htm
In Canx dali gateway you can send any command from the app.
------------------------------
Ctrl+F5
Reply
#3
See this: https://forum.logicmachine.net/showthrea...37#pid9137
Reply
#4
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})
Reply
#5
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.
Reply
#6
Ok, it works fine (collisions were in my head....)
Thanks
Reply


Forum Jump: