LW12: Change Lamp type

English posts only please

Moderator: Guido Körber

Post Reply
Orbinom
Posts: 8
Joined: Wed May 09, 2018 9:58 pm

LW12: Change Lamp type

Post 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 !
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: LW12: Change Lamp type

Post 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.
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
Orbinom
Posts: 8
Joined: Wed May 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Post 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 !
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: LW12: Change Lamp type

Post 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.
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: LW12: Change Lamp type

Post 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.
Orbinom
Posts: 8
Joined: Wed May 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Post 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 ?
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: LW12: Change Lamp type

Post 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.
Orbinom
Posts: 8
Joined: Wed May 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Post by Orbinom »

Hi again,
the Status register returns 3 -> so the LW is using all channels ..
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: LW12: Change Lamp type

Post by Guido Körber »

Did you change the Chan0/1 pins with power applied?

The LW12 reads those pins only at startup.
Orbinom
Posts: 8
Joined: Wed May 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Post 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.
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: LW12: Change Lamp type

Post by Guido Körber »

We will try to reproduce this behaviour.
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: LW12: Change Lamp type

Post 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.
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
Post Reply