FAQ
TL;DR: OpenBeken build 1.17.199 adds native KP18058ESP support, delivering 5-channel, 1024-step dimming "in under two minutes" [Elektroda, DeDaMrAz, #20665364; swpharis, #20635975]. Why it matters: You can now run fully-open firmware on Lumary 5/6 in downlights without losing RGB-CW control.
Quick Facts
• KP18058ESP: 5 constant-current channels, 0-31 mA each [Elektroda, insmod, post #21434389]
• 1024 brightness levels per channel [Elektroda, swpharis, post #20635975]
• First supported in OpenBeken v1.17.199 [Elektroda, DeDaMrAz, post #20665364]
• Default CB2L pinout: DAT =P8, CLK =P7 [Elektroda, swpharis, post #20635729]
• OTA flashing works on WB2L firmware 2.3.x [Elektroda, swpharis, post #20634613]
What silicon powers the Lumary 5/6 inch downlight?
Most units ship with a Tuya CB2L module (BK7231N Wi-Fi SoC) driving a KP18058ESP 5-channel LED controller [Elektroda, swpharis, post #20635449]
Which OpenBeken version first recognised the KP18058?
Driver support landed in build 1.17.199 and higher [Elektroda, DeDaMrAz, post #20665364]
How do I enable the new driver?
- Update to firmware ≥1.17.199.
- In the Web Console run: startDriver KP18058.
- Add KP18058_Map 2 0 1 3 4 to match RGBWC order [Elektroda, DeDaMrAz, post #20665364]
What pins should I assign for DAT and CLK?
Use role KP18058_DAT on P8 and KP18058_CLK on P7 for the common board revision [Elektroda, swpharis, post #20635729] Newer GUI builds expose these roles under GPIO Config [Elektroda, p.kaczmarek2, post #20666810]
Cool-white looks dim—how can I fix it?
Run KP18058_Current 14 30 to boost CW channel current to the default 30 mA [Elektroda, DeDaMrAz, post #21434388] Edge case: if value already 31, LED output may still remain low, indicating LED wear or driver damage.
How do I change per-channel drive current?
Syntax: KP18058_Current . Allowed range 0–31 mA [Elektroda, insmod, post #21434389] "Stay below 20 mA for long life" [Elektroda, DeDaMrAz, post #21434388]
Can I dump or flash firmware from macOS?
Yes. Use Python hid_download_py; BK GUI Tool under Mono crashes due to 64-bit Forms limitations [Elektroda, swpharis, post #20630045]
What UART settings work for backup?
Read at 115200 bps, write at 921600 bps; other rates failed during testing [Elektroda, swpharis, post #20635729]
Is the power board isolated?
No. It’s a non-isolated buck converter; mains is present on LED terminals—shock hazard [Elektroda, DeDaMrAz, post #20659312]
Does the KP18058 really offer 1024 dimming steps?
Yes, the datasheet notes 10-bit (1024) gray levels per channel [Elektroda, swpharis, post #20635975]
BP5758 or SM2135 drivers don’t work—what next?
They use different I²C frames. Only the dedicated KP18058 driver communicates correctly [Elektroda, swpharis, post #20661188]
Where can I buy the revision that definitely has the KP18058?
Users found the 4-pack Amazon listing B09Y5RPSF4 shipped with CB2L+KP18058 boards dated 2022-08 [Elektroda, swpharis, post #20635765]
Comments
I haven't seen such mounting of CB2L module yet. Do you have a configuration for this device? Or maybe at least a flash dump, so I can extract GPIOs? [Read more]
Best way to dump flash on OSX? I was able to build the BK GUI Flash tool in mono with errors, but it crashes when launched. [Read more]
I don't know this system much. Maybe Python's hid_download_py can work. You can see CB2S (very similar to CB2L) dumping in this video: https://www.youtube.com/watch?v=PKkiqDNFIx8 [Read more]
Python does work - someone posted earlier - https://www.elektroda.com/rtvforum/topic3984791.html Issue was with forms. System.Windows.Forms.dll "The Carbon driver has not been ported to 64bits,... [Read more]
Just got a single pack of one of these and it uses a different module. There isn't consistency. Configuration values are the same. Module firmware from Lumary before flashing was 2.3.x in the Tuya app.... [Read more]
Can you post Tuya Config? So you got BK7231T version that time? [Read more]
https://obrazki.elektroda.pl/4901648200_1687996097_thumb.jpg Already flashed it. Yes it was WB2L with newer firmware. Manufacturer date was sept. 21. Manf date on others was Dec. 21 Added... [Read more]
There are PWM-SDA and PWM-SCL markings on the board. This indicates a "I2C-like" LED driver such as BP5758, SM2135, etc. Please see where are the SDA/SCL signals going. What is the name of the chip? It... [Read more]
It’s a KP18058esp. https://obrazki.elektroda.pl/9598941000_1688044204_thumb.jpg Added after 1 [hours] 45 [minutes]: Pinned it out. https://obrazki.elektroda.pl/2822231400_16880506... [Read more]
Can you check if any of existing LED IC drivers works with that chip? [Read more]
Can you explain more what you are asking please? [Read more]
KP18058 looks like one of those "I2C-like" LED driver chips, where only two digital lines (SDA and SCL) are used to control 5 channels of LEDs. The problem is, KP18058 doesn't seem to be well known. ... [Read more]
More info on this setup - (third revision with SDA). I had a wiring issue in original read. Read @ 115200 Write @ 921600 Other rates fail. I corrected and the results of read are below: { "rstnum":"3", "rstcor":"c", "Jsonver":"1.0.0", "brightmin":"5", "gmwb":"75", "title20":"1", "deftemp":"100", "gmwg":"70", "bleonoff":"1", "kp58ccur":"13", "wfcfg":"spcl_auto", "colormin":"10", "pmemory":"1", "gmkb":"60", "iicb":"0", "cmod":"rgbcw", "mixway":"0", "kp58rgb_mode":"0", "iicscl":"7", "wt":"20", "prodagain":"0", "rstbr":"50", "remdmode":"0", "colormax":"100", "kp58wcur":"30", "cagt":"20", "iicw":"4", "notdisturb":"1", "module":"CB2L", "colorpfun":"0", "iicsda":"8", "kp58comps_lv":"0", "cwmaxp":"100", "dmod":"9", "gmwr":"100", "iicc":"3", "rgbt":"10", "gmkg":"60", "onoffmode":"1", "brightmax":"100", "iicg":"2", "wfct":"3", "rsttemp":"100", "category":"0505", "gmkr":"80", "defcolor":"c", "iicr":"1", "defbright":"100", "crc":"93", "}Ihlp%Agw_diJ(Aastro_timerbv":"40.00", "pv":"2.2", "lpv":"3.4", "pk":"key8u54q9dtru5jw", "firmk":"key8u54q9dtru5jw", "cadv":"_id", "wx_uuid":"null", "dy_tls_m":"2", "cloud_cap":"1025", "psk21_key":"null... [Read more]
Thanks, this is also helpful, but we still need an insight into the two wire protocol of that device. Can you tell us where it was bought? I've spoken to @dedamraz and he seems to be eager to buy... [Read more]
Amazon https://www.amazon.com/gp/product/B09Y5RPSF4/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&psc=1 Be aware there are different listings for what seem to be the same light. This listing is the one... [Read more]
Thank you @swpharis for the links, ordered placed we will have them by July 11 to analyze and try to support it. [Read more]
Please stand by @swpharis , we will need your help with testing once @dedamraz does packets capture. I wonder how the protocol looks like. Some such LED drivers are using 8 bits per channel, giving us... [Read more]
I think it's going to be 1024 Google translated from Chinese.: KP18058 is a high-precision five-channel full-pressure LED linear constant current moderation chip, which can be independently set by... [Read more]
I received one light type but unfortunately it has TYWE2S module and no KP LED controller :/ awaiting for the other one to arrive. [Read more]