LW12: Change Lamp type

English posts only please

Moderator: Guido Körber

Orbinom
Beiträge: 8
Registriert: Mi Mai 09, 2018 9:58 pm

LW12: Change Lamp type

Beitragvon Orbinom » So Jul 08, 2018 8:42 pm

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 !
Benutzeravatar
Christoph Jung
Beiträge: 586
Registriert: So Okt 08, 2006 3:43 pm
Wohnort: Germany / Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Christoph Jung » Mo Jul 09, 2018 8:22 am

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
Beiträge: 8
Registriert: Mi Mai 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Beitragvon Orbinom » Mo Jul 09, 2018 9:59 pm

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 !
Benutzeravatar
Christoph Jung
Beiträge: 586
Registriert: So Okt 08, 2006 3:43 pm
Wohnort: Germany / Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Christoph Jung » Di Jul 10, 2018 9:07 am

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
Beiträge: 3240
Registriert: Di Nov 25, 2003 10:25 pm
Wohnort: Germany/Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Guido Körber » Di Jul 10, 2018 9:21 am

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
Beiträge: 8
Registriert: Mi Mai 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Beitragvon Orbinom » Di Jul 10, 2018 7:40 pm

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
Beiträge: 3240
Registriert: Di Nov 25, 2003 10:25 pm
Wohnort: Germany/Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Guido Körber » Mi Jul 11, 2018 4:32 pm

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
Beiträge: 8
Registriert: Mi Mai 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Beitragvon Orbinom » Mi Jul 11, 2018 6:28 pm

Hi again,
the Status register returns 3 -> so the LW is using all channels ..
Guido Körber
Site Admin
Beiträge: 3240
Registriert: Di Nov 25, 2003 10:25 pm
Wohnort: Germany/Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Guido Körber » Do Jul 12, 2018 12:44 pm

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

The LW12 reads those pins only at startup.
Orbinom
Beiträge: 8
Registriert: Mi Mai 09, 2018 9:58 pm

Re: LW12: Change Lamp type

Beitragvon Orbinom » Do Jul 12, 2018 5:22 pm

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
Beiträge: 3240
Registriert: Di Nov 25, 2003 10:25 pm
Wohnort: Germany/Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Guido Körber » Fr Jul 13, 2018 4:49 pm

We will try to reproduce this behaviour.
Benutzeravatar
Christoph Jung
Beiträge: 586
Registriert: So Okt 08, 2006 3:43 pm
Wohnort: Germany / Berlin
Kontaktdaten:

Re: LW12: Change Lamp type

Beitragvon Christoph Jung » Mo Jul 16, 2018 12:06 pm

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

preparat alveo http://www.alveo-akuna.pl

Zurück zu „Lighting English“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast