# DALI : How commissioning process takes place in DALI system -2?

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 FF and then I sent A307(Command257) ->>FF80(Command 128)->>0791(Command 145) 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 FF once

I sent 0591 once,got FF once sent 0391 once,got FF once

I sent 0508/0500 once,the lamp on/off. 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 FF sent 0391 ,got FF

That's Very confusing.I have sent command 258,but the two gears didn't initialized.

I would recommend you first get broadcast queries working before you attempt the more complicated procedure for short addressing, since it requires that broadcast queries and responses are working. Start by running broadcast queries on a single driver. If you get no response with your DALI interface tool, look at the line with a scope to check the voltage levels and bit timings. Check that your query (forward frame) meets the timing requirements of IEC62386-101.

The commands which change a non volatile variable (a setting) and some of the special commands (Intialise, Randomise) have to be sent twice within 75ms to be accepted (Ed 2 timing, was 100ms with 10% tolerance in Ed 1). See Table 16 of IEC62386-102 Ed 2 for details of which command have to be sent twice.

Program Short Address is only accepted when the search address matches the random address and the gear is either in Withdrawn or Initialised state. Also beware that the short address used in this command and Verify Short Address uses a left shifted version with the least significant bit set to 1. In binary, this is described in the standard as

0AAAAAA1, where A is an address bit.

This format is also used by command 128 STORE DTR AS SHORT ADDRESS so if you have DTR value of 7, then you have set a short address of (7 >> 1) = 3.

0AAAAAA1
00000111

• I have the new questions.Can you Review the article again? – 張簡麒耀 Jan 19 '18 at 13:42
• That is a different question, please ask it as a different question here. Also if my answer fixed your original question you should mark it correct and move your additional question to a new question. When writing your new question, it would be very helpful to use the DALI command names rather than hex codes which have to be looked up, bearing in mind that these questions and answers are a record for future visitors. – Martin Jan 19 '18 at 14:32