logo elektroda
logo elektroda
X
logo elektroda

[BK7231N - CBU] Teardown of Aldi (Australia) CasaLux Smart Led Corner Lamp

MnM1 
I got a couple of Aldi (Australia) CasaLux Corner Lamps.

There is no product URL that I can find anymore but the box looks like this:

Packaging of CasaLux Smart LED Corner Lamp with lamp graphics and features. Box of CasaLux Smart LED Corner Lamp.

After I added it to Tuya app this is what options are in it:

Device update screen showing no updates available.

App interface for controlling an LED lamp with a color wheel and brightness sliders.

App interface for controlling a corner lamp with lighting modes and brightness adjustment.

App interface with lighting settings for a corner lamp.

Screenshot of the CornerLamp2 app interface controlling a corner lamp, with music mode options and sensitivity adjustment.

The DP Ids I have found in Tuya IoT are:

{
  "result": {
    "properties": [
      {
        "code": "switch_led",
        "custom_name": "",
        "dp_id": 20,
        "time": 1701165459278,
        "value": false
      },
      {
        "code": "work_mode",
        "custom_name": "",
        "dp_id": 21,
        "time": 1701163432151,
        "value": "dynamic_mod"
      },
      {
        "code": "colour_data",
        "custom_name": "",
        "dp_id": 24,
        "time": 1696248937973,
        "value": "003d03d40386"
      },
      {
        "code": "control_data",
        "custom_name": "",
        "dp_id": 28,
        "time": 1696232883464,
        "value": ""
      },
      {
        "code": "music",
        "custom_name": "",
        "dp_id": 102,
        "time": 1696247788543,
        "value": "424"
      },
      {
        "code": "RGB_order",
        "custom_name": "",
        "dp_id": 103,
        "time": 1701163432162,
        "value": 1
      },
      {
        "code": "LED_QTY",
        "custom_name": "",
        "dp_id": 104,
        "time": 1701163432172,
        "value": 30
      },
      {
        "code": "dynamic_mod",
        "custom_name": "",
        "dp_id": 106,
        "time": 1701163432151,
        "value": "043263000003e803e8007803e803e800f003e803e8"
      },
      {
        "code": "scene_mod",
        "custom_name": "",
        "dp_id": 108,
        "time": 1696247502001,
        "value": "CJ_YS"
      }
    ]
  },
  "success": true,
  "t": 1701276246105,
  "tid": "829cbbd58ed611ee83c62e7e80387ed3"
}


When turned on this is how the device works:





After opening a few screws from the base I got to the PCB:

Close-up of a PCB module labeled CYTI-406 on a white background.

And there is a CBU module:

CBU module on a circuit board, technical markings visible

Below are some pics of the led strip used in this device:

WS2811 LED strip with a SOIC chip and 3 RGB LEDs.

Close-up of an LED strip with pin labels and electronic components.

Close-up of an LED strip with several diodes and a small integrated circuit.

Close-up of an LED strip with visible components, including diodes and an integrated circuit.

Next got my hacking kit out and got a Tuya firmware backup (attached):

Close-up of a PCB with a CBU module visible.

Screenshot of BK7231N Easy UART Flasher software during data reading.

OBK configuration extraction did not reveal anything useful - must be TuyaMCU in there somewhere :)

Screenshot of BK7231 Easy UART Flasher software showing JSON configuration for a Tuya device.

{
	"abi":"0",
	"id":"null",
	"swv":"1.0.0",
	"bv":"40.00",
	"pv":"2.2",
	"lpv":"3.3",
	"pk":"didby1zofoliihp5",
	"firmk":"null",
	"cadv":"1.0.4",
	"cdv":"1.0.0",
	"dev_swv":"1.0.0",
	"s_id":"null",
	"dtp":"0",
	"sync":"0",
	"attr_num":"1",
	"mst_tp_0":"9",
	"mst_ver_0":"1.0.0",
	"mst_tp_1":"0",
	"mst_ver_1":"null",
	"mst_tp_2":"0",
	"mst_ver_2":"null",
	"mst_tp_3":"0",
	"mst_ver_3":"null }`)LAgw_wsm3&WAwf_start_mdll",
	"md":"0",
	"random":"0",
	"wfb64":"1",
	"stat":"0",
	"token":"null",
	"region":"null",
	"reg_key":"null",
	"dns_prio":"03{nc_tp",
	"ssid":"null",
	"passwd":"null",
	"ap_passwd":"null",
	"country_code":"null",
	"bt_mac":"null",
	"bt_hid":"null",
	"prod_test":"false",
	"fac_pin":"mzlyh8vz7p33qbz9 "
}


Sorry, no meaningful pins data found. This device may be TuyaMCU or a custom one with no Tuya config data.
No module information found.
And the Tuya section starts, as usual, at 2023424


I have not flashed OBK to it yet.
Just wanted to see first what is possible to do with this device.

@pkaczmarek2 - again looking for your guidance to see how I can config this device with OBK.

About Author
MnM1 wrote 169 posts with rating 11 , helped 4 times. Been with us since 2023 year.

Comments

p.kaczmarek2 29 Nov 2023 18:08

Hello, can you check where is the data signal of LEDs connected? I think it may be connected to P16, which means there is a WIFI module driving LEDs directly, without TuyaMCU. Check Tuya docs to see where... [Read more]

MnM1 29 Nov 2023 18:24

The data pin seems to go into the unmarked black chip. Not sure if it goes to P16 (marked in red which actually is RX1) from there. https://obrazki.elektroda.pl/3997244000_1701278465_thumb.jpg ... [Read more]

p.kaczmarek2 29 Nov 2023 18:32

You have marked RX, not P16. There is a difference between pin 16 on image and P16 of BK: P16 (SPI_MOSI) used to control LEDs directly is a pin 2 on the CBU image. https://obrazki.elektroda.pl/... [Read more]

MnM1 29 Nov 2023 18:40

I see what you mean - my bad There seems to be a trace coming out of P16: https://obrazki.elektroda.pl/4514204600_1701279587_thumb.jpg Seems to be going to the black chip under HR1 [Read more]

p.kaczmarek2 29 Nov 2023 18:43

This is RGB + W device, right? So RGB LEDs are addressable and W is driven via PWM? [Read more]

MnM1 29 Nov 2023 18:45

RGB LEDs are addressable. But not sure if W is PWM - how can I tell? The device is still hooked up - if you think there is something to work on I can flash it to OBK. I have a tuya backup as a last... [Read more]

p.kaczmarek2 29 Nov 2023 18:55

Does the brightness of all white LED always change together? Or can it display different brightness levels per LED? I don't know if OBK supports it, I think we can do some short tests and then restore... [Read more]

MnM1 29 Nov 2023 18:59

As attached to the original post - I think I have the correct back up? https://obrazki.elektroda.pl/7394011900_1701280755_thumb.jpg [Read more]

p.kaczmarek2 29 Nov 2023 19:03

It seems correct, you can try to flash OBK and for a good start play with GPIO doctor, maybe one of the pins is a simple PWM to control white level. There is 6 available PWMs on CBU, so there is not... [Read more]

MnM1 29 Nov 2023 19:10

OK will do. I tried to dim the white light via Tuya app and all whites dimmed together. We will see what happens in OBK next :) BTW - so you dont end up waiting for me - Ill flash it and go to bed.... [Read more]

p.kaczmarek2 29 Nov 2023 19:30

Once we finish testing with the GPIO doctor, we will also proceed to test the LEDs with current SM16703 driver. I tested it with WS2812 once, and it was somewhat working, but it wasn't perfect. [Read more]

MnM1 30 Nov 2023 01:30

GPIO Doctor shows that PIN6 = PWM. It controls the white color. https://obrazki.elektroda.pl/8478829600_1701304234_thumb.jpg Toggle and brightness work fine. [Read more]

p.kaczmarek2 30 Nov 2023 01:46

Ok, now try: 1. Start driver startDriver SM16703P 2. Init Driver - replace 64 with number of LEds SM16703P_Init 64 3. Set Pixel SM16703P_SetPixel 1 255 0 0 SM16703P_SetPixel 2 0 255 0 SM16703P_SetPixel... [Read more]

MnM1 30 Nov 2023 01:59

OK, I get this: https://obrazki.elektroda.pl/9989825700_1701305873_thumb.jpg The first 3 LEDs are cool white. The second lot of 3 LEDs are RED. The third lot of LEDs are GREEN. The fourth lot of... [Read more]

p.kaczmarek2 30 Nov 2023 02:08

You can try script from this post: https://www.elektroda.com/rtvforum/viewtopic.php?p=20734037#20734037 So the proof of concept works... [Read more]

MnM1 30 Nov 2023 02:50

OK, if I add that code below to autoexec.bat, I restart the device and nothing happens. I think I am doing something wrong. setChannel 10 1 again: addChannel 10 1 SM16703P_SetPixel $CH10-2 0 0 255 SM16703P_SetPixel... [Read more]

MnM1 07 Dec 2023 00:52

@pkaczmarek2 - Would you have some time to see if we can progress the work on this? Cheers :) [Read more]

p.kaczmarek2 07 Dec 2023 09:08

I will try to look into it soon, but today I am finishing RN8209C driver: https://www.elektroda.com/rtvforum/viewtopic.php?p=20840241#20840241 On your side, I will most likely first do that CW/RGB separation... [Read more]

MnM1 31 Dec 2023 03:12

Hi @pkaczmarek2 - any progress on this yet? [Read more]