Broadcast control commands are working properly. But, I am not able to get the response from Dali Driver, for broadcast query or special commands.
And also I am not able to set short address for the driver. Steps followed by me to set the short address: 1. Initialize Command 2. Randomize Command 3. Program Short Address 4. Query Short Address(Not getting any response)
Thanks.
The command sequence to set a short address when I only have one gear on the bus is:
I sent broadcast with Command 145
->>FF91
I got 0xFF.
Then I sent A307(Command257)
->>FF80(Command 128)
->>0791(Command 145)
but I get no response
I sent FF98 (command 152)
get 07
-------------------------------------------------------------------------------------------
Now I can set a short address and turn the lamp on or off when I only have one gear on the bus by follow:
*Set the DTR
to the required short address in the special format (shifted left one place, least significant bit set to 1).
*Read the DTR
to check that it is correct.
*Send Command 128 Store DTR as Short Address
, using broadcast addressing.(But I need to send Command 128 many times,Is this a problem?)
There are some mistakes : Procedure for short addressing when I have two gears on the bus:
I sent FF91
once, got 0xFF once
I sent 0591
once, got 0xFF once sent 0391
once, got 0xFF once
I sent 0508/0500
once,the lamp on/off.
I sent 0308/0300
once, the other lamp on/off
I sent A500
four times->> sent A700
two times->>sent B5FF
->>sent B3FF
->>sent B1FF
->>sent A900
got no response
And then, I sent 0591
, got 0xFF sent 0391
, got 0xFF
I have sent command 258
, but the two gears didn't initialized.
That's Very confusing.