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



DALI commands - Aven - 14.12.2021

Hello!

Please give me full list available commands for DALI gateway.
This is very shortest list of commands: https://openrb.com/docs/dali.htm


RE: DALI commands - Daniel - 14.12.2021

This is full list for the internal or RS485 dali gateway. If you use canX DALI then all commands are in the app.
What are you looking for?


RE: DALI commands - admin - 14.12.2021

DT8 commands are not documented there, number in brackets is DALI command number:
Code:
setdtr1 (195) set dtr1, similar to setdtr
setdtr2 (197) set dtr1, similar to setdtr

setx (224)
sety (225)
activate (226)
stepupx (227)
stepdownx (228)
stepupy (229)
stepdowny (230)
setcolortemp (231)
colortempcooler (232)
colortempwarmer (233)
setprimarydimlevel (234)
setrgbdimlevel (235)
setwafdimlevel (236)
setrgbwafcontrol (237)
copyreport (238)
storetyprimary (240)
storexyprimary (241)
storecolortemplimit (242)
storegearfeatures (243)
assigncolortolinked (245)
startautocalibration (246)

querygearfeatures (247)
querycolorstatus (248)
querycolorfeatures (249)
querycolorvalue (250)
queryrgbwafcontrol (251)
queryassignedcolor (252)
All query commands expect a reply from the ballast. Refer to the DALI standard for more info on these commands.


RE: DALI commands - Aven - 14.12.2021

(14.12.2021, 09:58)Daniel Wrote: This is full list for the internal or RS485 dali gateway. If you use canX DALI then all commands are in the app.
What are you looking for?

Commands for lua scripts. Do these gateways have different commands?
CanX DALI have good app! But there are not all the possibilities.

(14.12.2021, 10:14)admin Wrote: DT8 commands are not documented there, number in brackets is DALI command number:
Code:
setdtr1 (195) set dtr1, similar to setdtr
setdtr2 (197) set dtr1, similar to setdtr

setx (224)
sety (225)
activate (226)
stepupx (227)
stepdownx (228)
stepupy (229)
stepdowny (230)
setcolortemp (231)
colortempcooler (232)
colortempwarmer (233)
setprimarydimlevel (234)
setrgbdimlevel (235)
setwafdimlevel (236)
setrgbwafcontrol (237)
copyreport (238)
storetyprimary (240)
storexyprimary (241)
storecolortemplimit (242)
storegearfeatures (243)
assigncolortolinked (245)
startautocalibration (246)

querygearfeatures (247)
querycolorstatus (248)
querycolorfeatures (249)
querycolorvalue (250)
queryrgbwafcontrol (251)
queryassignedcolor (252)
All query commands expect a reply from the ballast. Refer to the DALI standard for more info on these commands.

Thanks! Have extended  DT1 (emergency test, battery status, etc) and DT6 & DT50,DT51,DT52 (Energy Reporting, diagnostics, etc) commands?


RE: DALI commands - admin - 14.12.2021

No but you can send custom commands by using "raw" command. See these posts:
https://forum.logicmachine.net/showthread.php?tid=2737
https://forum.logicmachine.net/showthread.php?tid=1500


RE: DALI commands - Aven - 14.12.2021

One more question.

I have a mix of RS485 and canX DALI.
Is there any way to connect the DALI-2 panel that sends Input Notification?


RE: DALI commands - admin - 14.12.2021

CANx-DALI sends all received bus telegrams which you can get capture via a script and parse as needed:
Code:
if not canx then
  canx = require('applibs.canx')
  canx.getlistener(1)

  function parse(frame)
    local hdr = frame:byte(1) or 0
    local typ = bit.rshift(hdr, 4)
    local len = bit.band(hdr, 0x3)

    -- bus data frame type
    if typ == 7 and len > 0 then
      loghex(frame)
    end
  end
end

canx.step(function(msg)
  -- message from CANx device 0.1
  if msg.lineid == 0 and msg.nodeid == 1 and msg.objectid == 1
    and msg.frombus and type(msg.data) == 'string' then
    parse(msg.data)
  end
end)