Page 1 of 1

LW12: Change Lamp type

Posted: Sun Jul 08, 2018 8:42 pm
by Orbinom
Hello,

I'm using the LED-Warrior 12 to read the DALI signal via I2C.
I'm in a situation where i need to receive dimming and color RGB values.
I managed to read the dimming values which was quite as easy as reading the raw / pwm register values, but using a CASAMBI DALI master i'm only able to control dimming and not RGB.
So do i need to change sthg in the DALI config register in order to accomplish this task? and if so, how should it be like?

Thanks in advance !

Re: LW12: Change Lamp type

Posted: Mon Jul 09, 2018 8:22 am
by Christoph Jung
The LED-Warrior12 is device type 6 and you can not change this to device type 8. The LW12 have up to 4 "channels" but
each of them is a single device.

Re: LW12: Change Lamp type

Posted: Mon Jul 09, 2018 9:59 pm
by Orbinom
Ok thanks for the quick reply,
So what can we exactly modify using the DALI config register? can you please explain the function of each byte of the 16 used to communicate with the DALI memory bank?
I know that 136 bytes are : 16 for DALI memory bank 1 and 120 = 30 x 4 channels.
I need to know what the 16 bytes do exactly.

Thank you in advance Christoph !

Re: LW12: Change Lamp type

Posted: Tue Jul 10, 2018 9:07 am
by Christoph Jung
The 16 Bytes from memory bank 1 includes the OEM GTIN bytes, the OEM serial number, lamp type and so on.

B0 = last memory address (write protected)
B1 = Checksum of memory bank 1 (write protected)
B2 ... B7 = OEM GTIN bytes (0... 5) (read/write)
B8 ... B11 = OEM serial (MSB -> LSB) (read/write, lockable)
B12 = Subsystem and device number (read/write, lockable)
B13 = Lamptype number (read/write, lockable)
B14 = Lamptype number (read/write)
B15 = Additional OEM data (read/write, lockable)

All these values will have 0xFF as default.

Re: LW12: Change Lamp type

Posted: Tue Jul 10, 2018 9:21 am
by Guido Körber
The content of memory bank 1 does have no effect on the behaviour of LW12. It can be used to identify your product but has no further function.

Re: LW12: Change Lamp type

Posted: Tue Jul 10, 2018 7:40 pm
by Orbinom
Ok .. so i just hooked pin 8 and 20 to GND but still getting 4 Read values from Raw Data : 254 254 254 254 (I have set the brightness to its maximum that's why the 254)
Any ideas why ? should it not display 254 0 0 0 ?

Re: LW12: Change Lamp type

Posted: Wed Jul 11, 2018 4:32 pm
by Guido Körber
The unused channels may have random values. You should check the number of active channels via I2C register 0 and then ignore the not active channels.

Re: LW12: Change Lamp type

Posted: Wed Jul 11, 2018 6:28 pm
by Orbinom
Hi again,
the Status register returns 3 -> so the LW is using all channels ..

Re: LW12: Change Lamp type

Posted: Thu Jul 12, 2018 12:44 pm
by Guido Körber
Did you change the Chan0/1 pins with power applied?

The LW12 reads those pins only at startup.

Re: LW12: Change Lamp type

Posted: Thu Jul 12, 2018 5:22 pm
by Orbinom
Hi,
No the change was before supplying the LW with power .. i've already seen that it reads the channels pins only at startup.

Re: LW12: Change Lamp type

Posted: Fri Jul 13, 2018 4:49 pm
by Guido Körber
We will try to reproduce this behaviour.

Re: LW12: Change Lamp type

Posted: Mon Jul 16, 2018 12:06 pm
by Christoph Jung
I have dome some tests with the CH0/Ch1 pins and will get always the correct count from the status register like shown in the datasheet.

This is what I do:

1. set Ch0/Ch1 (I use a jumper)
2. connect power to the LW12
3. connect my I2C-Device
4. read the status register (write 0x00 before to set the pointer to this register)

I ahve test this multiple times and ever run I get the correct count of channels.