logo elektroda
logo elektroda
X
logo elektroda

[BK7231N/SM2185N] Spectrum Smart 9W RGBCW light bulb Flashing And Driver

leśny_ziutek  Cool? (+1)
LED GLS 9W E-27 Spectrum Smart bulb with color-changing feature.
https://spectrumled.pl/en/catalogue/product/W...4412/led-gls-9w-e-27-spectrum-smart-woj-14412

You can buy it on allegro.pl

Packaging of Spectrum Smart LED 9W E27 bulb with Wi-Fi and Bluetooth features.

Unfortunately, I have upgraded it to the latest firmware (v1.5.21) so the tuya-cloudcutter didn't work. These are my first steps in this topic, no previous experience with smart bulbs, Tuya, alternative firmwares, etc., hence this fault ;(

Dodano po 16 [minuty]:

Fortunately, the teardown and the subsequent UART flashing were successful.

Disassembled smart LED bulb with visible internal components.

This bulb uses an I2C driver, SM2185N.

LED circuit board with electronic components and LEDs in various colors.

Unfortunately, it doesn't work with the available I2C drivers (tried SM2135 and SM2235). Edit: The SM2235 actually works, see below.

The board looks like this:

Close-up of a circuit board with soldered wires and visible tracks and electronic components.

Connections seem to be standard: P26 is CLK, P24 is DATA.

See the attached documentation that I found here. It seems to contain the full specification of the protocol used by this chip.

About Author
leśny_ziutek wrote 49 posts with rating 9 , helped 3 times. Live in city Łódź-Widzew. Been with us since 2006 year.

Comments

leśny_ziutek 13 Nov 2023 01:01

Flashed it using the Nucleo board as the USB to UART converter. It should provide enough power for flashing and WiFi, which cannot be said about the FTDI module which I usually use in such cases. https://obrazki.elektroda.pl/4412850100_1699831996_thumb.jpg... [Read more]

p.kaczmarek2 13 Nov 2023 09:17

Nice find, we will support is, will you be able to help with testing? Here is translated datasheet: [Read more]

p.kaczmarek2 13 Nov 2023 09:30

@lesnyziutek from a brief look, it seems that SM2235 driver may work here, the first control byte matches exactly the what I would expect from that driver, the total number of bytes also matches, and... [Read more]

leśny_ziutek 13 Nov 2023 10:36

Hmm... Tried it without success. Will try one more time. Are there logs from I2C communication available anywhere? [Read more]

p.kaczmarek2 13 Nov 2023 10:41

No, but the communication is very simple. // Byte 0 Soft_I2C_Start(&g_softI2C,SM2235_BYTE_0); // Byte 1 Soft_I2C_WriteByte(&g_softI2C, SM2235_BYTE_1); // Byte 2 Soft_I2C_WriteByte(&g_softI2C,... [Read more]

leśny_ziutek 13 Nov 2023 11:21

Definitely restarted the device when I tried SM2135 but unsure about SM2235. Will try again... Ok. I'll try it too. [Read more]

p.kaczmarek2 13 Nov 2023 12:07

SM2135 will certainly not work. It only sends 8 bytes, not 11, and the colors are 8-bit, not 10 bit. Futhermore, the first byte sent is different, so your driver will most likely just ignore SM2135 pa... [Read more]

leśny_ziutek 13 Nov 2023 20:05

It works with SM2235 driver! Looks like I didn't restart the device when tested this driver. Small problem is the reversed "Warm <--- ---> Cool" setting. [Read more]

p.kaczmarek2 13 Nov 2023 20:58

Have you tried to remap the channels? Added after 29 : Also please attach Tuya CFG partition, so I can add automatic GPIO config for SM2185. [Read more]

leśny_ziutek 13 Nov 2023 22:10

SM2235_Map 2 1 0 3 4 command fixed the issue with the reversed warm/cool. The original mapping was 2 1 0 4 3. Thanks! I've downloaded the BK7231N_TuyaConfig_obk1F03214D.bin but now have a problem with... [Read more]

p.kaczmarek2 13 Nov 2023 23:34

Please attach it here and I will check this out. Tomorrow morning I will update flasher to also have file open dialog, i was not aware that drag and drop is broken on linux [Read more]

leśny_ziutek 14 Nov 2023 10:50

Here you are. [Read more]

p.kaczmarek2 14 Nov 2023 11:33

Your config indicates that this LED driver is used internally as SM2235. https://obrazki.elektroda.pl/4636475800_1699957511_thumb.jpg { "rstnum":"5", "rstcor":"c", "Jsonver":"1.1.9", "brightmin":"5", "gmwb":"75", "title20":"1", "deftemp":"100", "gmwg":"70", "wfcfg":"spcl", "colormin":"10", "pmemory":"1", "2235ccur":"2", "gmkb":"60", "iicb":"0", "2235wcur":"5", "cmod":"rgbcw", "mixway":"0", "iicscl":"26", "wt":"20", "cwtype":"0", "prodagain":"0", "rstbr":"50", "remdmode":"0", "colormax":"85", "cagt":"20", "iicw":"3", "notdisturb":"0", "module":"CBLC5", "colorpfun":"0", "iicsda":"24", "cwmaxp":"100", "iicc":"4", "dmod":"7", "gmwr":"100", "rgbt":"10", "gmkg":"60", "onoffmode":"0", "brightmax":"90", "iicg":"1", "wfct":"3", "rsttemp":"100", "category":"0505", "gmkr":"80", "defcolor":"c", "iicr":"2", "defbright":"100", "crc":"74" } ... [Read more]

leśny_ziutek 14 Nov 2023 13:15

Now I can load the bin file and obtain the JSON and the text description. As I've written before, I didn't use BKFlasher to flash this device because of some transmission errors. Instead, I used ltchiptool... [Read more]

leśny_ziutek 24 Nov 2023 21:48

{ "vendor": "Spectrum LED / Wojnarowscy Sp. z o.o.", "bDetailed": "0", "name": "LED GLS 9W E-27 SPECTRUM SMART", "model": "WOJ+14412", "chip": "BK7231N", "board": "CBLC5", "flags":... [Read more]

p.kaczmarek2 02 Dec 2023 11:12

Thank you, device has been added: https://github.com/OpenBekenIOT/webapp/commit/aa9e7d1f0a5d957c2c6929fb25a193277229bd72 It should be soon live at : https://openbekeniot.github.io/webapp/devicesList.html Please... [Read more]

%}