logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

XLD-WIFIBLE-A19 Smart LED Bulb E27 LN882H CB2L teardown, weak WiFi range?

_geku_ 468 3
ADVERTISEMENT
  • OpenBeken flash and weak WiFi range observed

    #1 21901234
    _geku_
    Level 2  
    Posts: 10
    Rate: 2
    Recently bought new "smart" device - Smart LED Bulb, E27, Wifi - XLD-WIFIBLE-A19
    Bulb can be easily disassembled without any issues. Inside there is CB2L with LN882H.
    Put it on the table and with help of needles was able to power it from USB to UART and successfully downloaded original firmware (it is "pristine", I did not turned the lamp on before). And flashed OpenBeken for LN882H. No soldering needed.
    Just when was assembling it back - drilled small hole for the N wire and soldered it (see on pictures).
    In the end - it works but I disappointed by the WiFi range of the module - bulb cannot connect to home wifi if moved 1 room away (1 brick wall, 5m) from the router.

    XLD-WIFIBLE-A19 Smart LED Bulb E27 LN882H CB2L teardown, weak WiFi range? XLD-WIFIBLE-A19 Smart LED Bulb E27 LN882H CB2L teardown, weak WiFi range? XLD-WIFIBLE-A19 Smart LED Bulb E27 LN882H CB2L teardown, weak WiFi range? XLD-WIFIBLE-A19 Smart LED Bulb E27 LN882H CB2L teardown, weak WiFi range?
    Close-up of a PCB with an RF module, electrolytic capacitors, and a pin header connector
    Test board with a connected electronic module, wires, and measurement alligator clips Close-up of a PCB with electrolytic capacitors, a “331” inductor, and a shielded module
    Close-up of a PCB with a CB2L module, red pin labels, and a pinout diagram at the bottom

    Configuration, settings and original firmware you can find below.

    Original firmware:
    readResult...- orig.bin (2 MB)You must be logged in to download this attachment.

    Original config:
    {
       "Jsonver":"1.0.0",
       "brightmin":"10",
       "gmwb":"75",
       "title20":"0",
       "gmwg":"70",
       "wfcfg":"spcl_auto",
       "colormin":"10",
       "pmemory":"1",
       "gmkb":"60",
       "pairt":"18",
       "cmod":"rgbcw",
       "mixway":"0",
       "cwtype":"0",
       "rstbr":"50",
       "colormax":"100",
       "c_pin":"26",
       "notdisturb":"0",
       "module":"CB2L",
       "b_pin":"6",
       "b_lv":"1",
       "cwmaxp":"100",
       "dmod":"0",
       "brightmax":"100",
       "wfct":"3",
       "pwmhz":"5000",
       "r_pin":"8",
       "defbright":"100",
       "rstnum":"3",
       "rstcor":"c",
       "r_lv":"1",
       "deftemp":"100",
       "c_lv":"1",
       "bleonoff":"1",
       "g_lv":"1",
       "wt":"20",
       "onofftime":"800",
       "prodagain":"0",
       "remdmode":"0",
       "cagt":"20",
       "g_pin":"7",
       "w_lv":"1",
       "colorpfun":"0",
       "gmwr":"100",
       "rgbt":"10",
       "gmkg":"60",
       "onoffmode":"0",
       "w_pin":"24",
       "rsttemp":"100",
       "category":"0505",
       "gmkr":"80",
       "defcolor":"c",
       "crc":"29"
    }
    


    Device configuration, as extracted from Tuya: 
    - LED Cool (Channel 4) on P26
    - LED Blue (Channel 3) on P6
    - PWM Frequency 5000
    - LED Red (Channel 1) on P8
    - LED Green (Channel 2) on P7
    - LED Warm (Channel 5) on P24
    Device seems to be using CB2L module, which is using BK7231N.
    And the Tuya section starts at 2015232 (0x1EC000), which is a default LN882H offset.
    


    Startup script (partially duplicates config below).

    
    PWMFrequency 5000
    
    SetPinRole PWM 7
    SetPinRole PWM 10
    SetPinRole PWM 11
    SetPinRole PWM 12
    SetPinRole PWM 19
    
    SetPinChannel 7 1
    SetPinChannel 10 2
    SetPinChannel 11 3
    SetPinChannel 12 4
    SetPinChannel 19 5
    
    setChannelType 1 Dimmer
    setChannelLabel 1 R
    
    setChannelType 2 Dimmer
    setChannelLabel 2 G
    
    setChannelType 3 Dimmer
    setChannelLabel 3 B
    
    setChannelType 4 Dimmer
    setChannelLabel 4 Cold
    
    setChannelType 5 Dimmer
    setChannelLabel 5 Warm
    
    led_dimmerScale 0.8
    led_temperature 3000
    led_dimmer 100
    


    Config

    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "LN882H",
      "board": "TODO",
      "flags": "5120",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "7": "PWM;1",
        "10": "PWM;2",
        "11": "PWM;3",
        "12": "PWM;4",
        "19": "PWM;5"
      },
      "command": "PWMFrequency 5000\r\n\r\nSetPinRole PWM 7\r\nSetPinRole PWM 10\r\nSetPinRole PWM 11\r\nSetPinRole PWM 12\r\nSetPinRole PWM 19\r\n\r\nSetPinChannel 7 1\r\nSetPinChannel 10 2\r\nSetPinChannel 11 3\r\nSetPinChannel 12 4\r\nSetPinChannel 19 5\r\n\r\nsetChannelType 1 Dimmer\r\nsetChannelLabel 1 R\r\n\r\nsetChannelType 2 Dimmer\r\nsetChannelLabel 2 G\r\n\r\nsetChannelType 3 Dimmer\r\nsetChannelLabel 3 B\r\n\r\nsetChannelType 4 Dimmer\r\nsetChannelLabel 4 Cold\r\n\r\nsetChannelType 5 Dimmer\r\nsetChannelLabel 5 Warm\r\n\r\nled_dimmerScale 0.8\r\nled_temperature 3000\r\nled_dimmer 100",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
  • ADVERTISEMENT
  • Helpful post

    Tuya boot log identifies LN882HKI CB2L module

    #2 21901255
    divadiow
    Level 38  
    Posts: 5095
    Help: 441
    Rate: 900
    a LN882HKI CB2L! sure, why not.

    paired with Tuya your device is listed simply as
    Code: Text
    Log in, to see the code

    Tuya fw boot log
    Code: Text
    Log in, to see the code


    Added after 17 [minutes]:

    https://github.com/OpenBekenIOT/webapp/pull/2...nges/29b58c26d201db590e35a77ba5effce678770195
  • ADVERTISEMENT
  • Helpful post

    Antenna obstruction may be limiting WiFi range

    #3 21901316
    max4elektroda
    Level 24  
    Posts: 756
    Help: 48
    Rate: 187
    _geku_ wrote:
    but I disappointed by the WiFi range of the module - bulb cannot connect to home wifi if moved 1 room away (1 brick wall, 5m) from the router.

    Might be "only" a poor design: looking at your pictures the antenna on the module seems to be partially covered by the LED PCB. What's the rssi shown on main GUI?
    Did you try before putting the module back? I would expect a better connection if my guess is right...
  • Measured RSSI shows weak bulb WiFi range

    #4 21901345
    _geku_
    Level 2  
    Posts: 10
    Rate: 2
    max4elektroda wrote:
    What's the RSSI shown on main GUI?


    Room with router:
    WiFi RSSI: Fair (-59 ... -68 dBm)

    Next room (corridor)
    -71 ... -75 dBm

    Yet another room (parallel to first, no doors between two):
    Router refuses to connect

    max4elektroda wrote:
    Did you try before putting the module back?

    Yes, but only in the same room, and did not notice RSSI values.

    But I think you are right about the design and antenna placement. Maybe it will be worth to drill another small hole, and put "external" antenna wire.
ADVERTISEMENT