logo elektroda
logo elektroda
X
logo elektroda

[LF686C20] [BL602] Magic Home RGBW 12-24v 5-pin LED Strip Controller

divadiow 9459 84
ADVERTISEMENT
  • #31 21029233
    ivanconde
    Level 4  
    I am flashing a very similar device (it has only one output) and I'm not able to make it join a WIFI.

    The first thing I notice is that I don't have he same file for boot2 under Dev Cube 1.8.9.
    I selected: BouffaloLabDevCube-v1.8.9/chips/bl602/builtin_imgs/boot2_isp_bl602_v6.6.1/boot2_isp_release.bin

    LOGS:

    [WF][PF] Using profile, idx is @0
    [WF][SM] Retry Again --->>> retry connect
    [WF][SM] Exiting disconnect state
    Delete Timer.
    [WF][SM] State Action ###disconnect### --->>> ###connecting###
    [WF][SM]  Action Connect
               ssid [[Double checked name is correct]]
               ssid len 5
               psk [[Double checked pass is correct]]
               psk len 9
               pmk
               pmk len 0
               mac 00:00:00:00:00:00   [[This one puzzles me]]
    connecting using vif_idx 0
    ===start sm_get_bss_params===
    bssid[0] = 0xffff
    bssid[1] = 0xffff
    bssid[2] = 0xffff
    search ssid = [[My lab SSID]]
    result ssid index = 0
    ===end sm_get_bss_params===
    [WF][SM] Entering connecting state
    [APP] [EVT] Reconnect 4253855
    [APP] [EVT] Reconnect 4253855
    [APP] [EVT] Connecting 4253855
    [APP] [EVT] Connecting 4253855
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    Info:MAIN:Time 4231, idle 0/s, free 106104, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
    wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
    wpa2/wpa3 is_pmf_required:1
    AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1
    wpa2/wpa3 pairwise ccmp:1,tkip:0,wep104:0,wep:40:0
    wpa2/wpa3 group ccmp:1,tkip:0,wep104:0,wep:40:0
    wpa2/wpa3 is_pmf_required:1
    AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1
    ------ 247 set default key 0x42021068, key ptr 0x00000000
    [APP] [EVT] SCAN On Join 4254367
    [APP] [EVT] Unknown code 10, 4254367     [[What does this mean?]]
    Info:MAIN:Time 4232, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4233, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4234, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4235, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4236, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4237, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4238, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4239, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4240, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    Info:MAIN:Time 4241, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    4-way handshake timeout failure, wlan 802.11 reason code = 15,                try to transmit deauth frame
    connect failure, ssid = [[[]]], index = 08c
    from sm_connect_ind to scanu_rm_exist_ssid
    [RX] Connection Status
    [RX]   status_code 8
    [RX]   connect result: Passwd error, 4-way handshake timeout
    [RX]   MAC [[[]]]
    [RX]   vif_idx 0
    [RX]   ap_idx 0
    [RX]   ch_idx 0
    [RX]   qos 1
    [RX]   acm 0
    [RX]   assoc_req_ie_len 88
    [RX]   assoc_rsp_ie_len 215
    [RX]   aid 0
    [RX]   band 0
    [RX]   center_freq 2412
    [RX]   width 0
    [RX]   center_freq1 2412
    [RX]   center_freq2 0
    [WF][SM] Exiting connecting state
    [WF][SM] State Action ###connecting### --->>> ###disconnect###
    [WF][SM] Entering disconnect state
    [WF][SM] Will retry in 2000 ticks
    [APP] [EVT] disconnect 4264456, Reason: Passwd error, 4-way handshake timeout
    [APP] [EVT] disconnect 4264457


    I don't know what should I do, I checked SSID and PASS again and again, which are correct.

    Anybody can please drop an idea?
  • ADVERTISEMENT
  • #33 21029346
    p.kaczmarek2
    Moderator Smart Home
    There have been multiple reports related to issues with WiFi connectivity on BL602. They are mostly referring to the issues into the BL602 SDK itself, and not to the OBK, but still, there are few things you can try:
    - try a different WiFi or encryption method (do you have some non-standard WiFi security?)
    - try a password without special characters
    - obviously only 2.4GHz WiFi is supported
    - make sure you are powering your device with a good power supply, powering WiFi module from a 3.3V pin of USB to UART converter won't work in many cases
    Helpful post? Buy me a coffee.
  • #34 21029421
    ivanconde
    Level 4  
    Looks very similar, as I notice in my logs:
    AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1

    The AP doesn't support "wpa" as an authentication method.

    Is it NOT possible to use WPA2 with BL602?

    Added after 6 [minutes]:

    Thanks,

    I confirm:
    Good power supply
    Confirm 2.4GHz
    Password was alphanumeric and an exclamation mark, so hopefully we can assume the '!' is valid char.
    I tried another router, but have none that only offers WPA (as it's deemed insecure here).

    Per chip info, it should support WPA2 and WPA3
    https://www.blaitek.com/bl602?lang=en

    Solution proposed in https://www.elektroda.com/rtvforum/topic3955577.html#20980673
    It switched down to WPA in order to be able to connect.

    I expect BL602 + OBK to be able to use WPA2 or WPA3
    Can anybody confirm this is the case?
  • #35 21029450
    divadiow
    Level 34  
    ivanconde wrote:
    Solution proposed in https://www.elektroda.com/rtvforum/topic3955577.html#20980673
    It switched down to WPA in order to be able to connect.


    isn't WPA/WPA2 combination fine? Only when there's WPA3 in the mix is there an issue.

    Maybe the SDK used in OBK predated WPA3 support? I see it's version release_bl_iot_sdk_1.6.22-22-g1d4ff804-dirty

    https://github.com/openshwprojects/OpenBL602/...60cfc91a5fe36f040b3d5314e51eda3a28/version.mk

    but my download in Feb 2024 is release_bl_iot_sdk_1.6.39-238-gf5ba0a7ee

    Added after 33 [minutes]:

    actually, WPA3 isn't exactly new and the BL602 is logging wpa3, so I guess it already knows what it is

    Added after 18 [minutes]:

    nothing relating to wpa3 changes since that SDK version anyway https://github.com/bouffalolab/bl_iot_sdk/commits/master/
  • ADVERTISEMENT
  • #36 21029674
    ivanconde
    Level 4  
    I cannot switch to that combination on my APs, they only offer me Only WPA2, Only WPA3, WPA2/WPA3

    They are fairly new so I guess Ubiquiti dropped WPA.

    I enabled the mix WPA2/WPA3 and, per the logs, the BL602 seems to see them:
    AP Security mode: wep:0,wpa:0,wpa2:1,wpa3:1

    I am surprised by the following log, any idea?
    [APP] [EVT] SCAN On Join 4254367
    [APP] [EVT] Unknown code 10, 4254367

    Added after 7 [minutes]:

    I just tried reflashing it, no luck.

    Can you please check my parameters? I struggled with boot2.
    Bouffalo Lab Dev Cube interface with various firmware options.

    I couldn't find the boot2 stated in the screenshots of the post.

    I'm not sure if I can miss "flash wpa2 support" :D

    Added after 59 [seconds]:

    >>21029260
    I can't yet tag your answer as helpfulm but this was really a great catch!
  • ADVERTISEMENT
  • #37 21029906
    miegapele
    Level 15  
    I did test myself, and enabling wpa3 seems to cause a trouble for bl602. It does not connect. bk7231 works with mixed wpa2/wpa3. Using wpa2 only makes bl602 work fine for me. Maaybe i'll try updated sdk later
  • #38 21030337
    ivanconde
    Level 4  
    So maybe my BL602 is fine with WPA2, but as AP is offering WPA3 I might have trouble there?

    I can't tell which protocol is trying to use due to my ignorance reading the logs... :(
  • #39 21030343
    miegapele
    Level 15  
    Yes, that's what I saw, if you have mixed mode wpa2/wpa3 WiFi, it failed for me during testing. If WiFi is wpa2 only, it worked for me.
  • #40 21030389
    ivanconde
    Level 4  
    Same here, if I move to only WPA2 it connects.

    It seems it has some kind of issue with wpa3.

    I'm no developer but count on me for any testing, if any of you want.
  • #41 21030391
    divadiow
    Level 34  
    Ima try to setup a WPA3 AP for some testing. Home router, microtik test router, ddwrt other test router and rpi4b with openwrt are all a no.

    Not sure what else I have.

    Added after 1 [hours] 23 [minutes]:

    not sure this if of any use yet. OpenWRT with logging level 0. BL602 just loops trying to connect. OpenWRT log

    Code: Text
    Log in, to see the code


    perhaps most interesting is Wed Apr 3 09:40:48 2024 daemon.notice hostapd: phy2-ap0: STA a8:17:10:d9:64:d1 IEEE 802.11: did not acknowledge authentication response

    This is with OpenWRT offering mixed WPA2/3

    Screenshot of Wi-Fi network settings in Master mode with WPA2/WPA3 PSK, SAE (CCMP) encryption.
  • #42 21030521
    ivanconde
    Level 4  
    Ubiquiti AP offering WPA2/WPA3 shows the same behavior.
  • #43 21030549
    divadiow
    Level 34  
    and with WPA3 as the only option

    Wireless security configuration with WPA3-SAE

    Code: Text
    Log in, to see the code


    Added after 20 [minutes]:

    I don't think the driver in the OBK SDK supports WPA3.

    these are keyword searches in the latest SDK
    Screenshot of source code highlighting WPA3 configuration.
    SDK code snippets with functions related to WPA3.

    Screenshot of source code showing excerpts related to WPA3 in header files.

    there's no mention of WPA3 here https://github.com/openshwprojects/OpenBL602/...ponents/bl602/bl602_wifidrv/bl60x_wifi_driver

    the copyright dates old vs new are two years apart

    Added after 3 [minutes]:

    I wonder if I can just plonk updated files into a PR and if it will build. I won't have time til this eve so here's the SDK I have if anyone wants to.

    https://github.com/bouffalolab/bl_iot_sdk/

    Added after 49 [minutes]:

    I've done something, but I need to do that upstream/main thing ref https://www.elektroda.com/rtvforum/topic4033833.html#21014634

    https://github.com/openshwprojects/OpenBL602/pull/3

    I don't seem to have that same menu option so I've set something up wrong
  • #44 21030677
    p.kaczmarek2
    Moderator Smart Home
    I can confirm that OpenBL602 is using a bit older SDK than the current version. I will say even more - I tried compiling samples with newer version of BL602 SDK and failed.

    I don't have functional BL602 dev board right now because I've bricked my one while trying to add MAC address change, but basically, someone would need to have UART flasher connected along with some time to try updating the SDK. I don't think that just copy+paste of single directory will work.
    Helpful post? Buy me a coffee.
  • #45 21030813
    ivanconde
    Level 4  
    I have mine connected to UART, so absolutely happy to test any FW you may send me, and giving logs back.
    "I can't give birth but I can help make it happen"
  • #46 21039812
    Nimierkki
    Level 4  
    Hi,
    did anyone figure out pwn pins ? My colors are wrong atm. Red color is green, green color is red and led temperature switch adjust brightness.
    I have same board as shown in first post of this thread.

    "pins": {
    "3": "PWM;1",
    "4": "PWM;0",
    "20": "PWM;4",
    "21": "PWM;2"

    EDIT:

    Swapped PWN 1 and 0 and colors are now ok.
  • #47 21039833
    divadiow
    Level 34  
    I've not looked at it since but could probably do better now.

    Have a play with the tools in the web app until you get the right config

    Screenshot of a web application tool interface with PWM channel settings.

    View of the web app tool interface with buttons for testing LEDs.
  • #48 21040727
    divadiow
    Level 34  
    OK, so my LED strip is GRB order = 4 pins inc. V+. I still don't have a 5 pin strip. This is why the original template in earlier posts is wrong.

    Close-up of an LED strip with +12V and G, R, B markings on a white background.

    using a little test setup, the correct template for the RGBW controller itself, is this:

    Code: JSON
    Log in, to see the code


    Test setup with LEDs on a breadboard connected to an LED controller.

    includes flag 24 set

    Selecting Flag 24 option in the LED device interface to emulate white light using RGB.

    with this, 100% warm = my white LED lights and 100% cool = red, green and blue only light.

    Added after 8 [minutes]:

    https://github.com/OpenBekenIOT/webapp/pull/9...mits/ba130f72892860f4278c798acbd19854767d4969

    Added after 1 [hours] 30 [minutes]:

    SO, it turns out I have the GRB 4 pin version just sat in my box of tricks. not even freed from the cloud. This would go perfectly with the GRB LED strip.

    I've now flashed it with OpenBeken, same procedure as the first post.

    Factory fw boot log

    Code: Text
    Log in, to see the code


    BLDC flashID query

    Code: Text
    Log in, to see the code


    and I attach factory firmware dump.

    The template for the GRB variant is

    Code: JSON
    Log in, to see the code


    White WiFi LED controller with cable and QR code label.
  • #50 21066360
    divadiow
    Level 34  
    >>20907230

    Regarding more recent discoveries, it should be noted that none of the 3 dump attempts back in January with blflash are usable if flashed from 0x0 or from 0x001000 to a working BL602 test device. The later GRB dump above is fine flashed from 0x0.
  • #51 21084088
    kkarmah
    Level 6  
    Hello everybody.
    I was also able to flash with external power. Everything is ok until I configure the pins, the green color is swapped with the blue and I don't know how to invert it, but that's not really important. What doesn't work is the IR control. How did you do it?

    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "BL602",
      "board": "TODO",
      "flags": "1024",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "3": "PWM;1",
        "4": "PWM;0",
        "12": "IRRecv;1",
        "21": "PWM;2"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }


    Screenshot of the OpenBL602 device user interface showing LED settings and system stats.

    Thanks
  • #52 21084261
    p.kaczmarek2
    Moderator Smart Home
    You need to swap channel indexes of PWM pins:
    JSON code fragment defined in the pins section highlighted with a red marker.
    0 is red, 1 is green and 2 is blue. So, in your case, you need to swap 1 and 2.
    Helpful post? Buy me a coffee.
  • #53 21086156
    kkarmah
    Level 6  
    Thanks. That was it, I had already tried it but I must have been doing something wrong...
    What about the IR command? How can I make it work?

    This is my model but it has an IR command that worked (with the original firmware)
    WiFi LED controller with cable and QR code.
  • #54 21086323
    p.kaczmarek2
    Moderator Smart Home
    As far as I know we don't have BL602 IR driver yet, but there was some user on the german site of Elektroda reporting that he has managed to get the built-in IR driver of BL602 SDK working. We may need to investigate that.
    Helpful post? Buy me a coffee.
  • #56 21109643
    p.kaczmarek2
    Moderator Smart Home
    What is this space for?
    Close-up of the inside of an electronic device with a printed circuit board and a capacitor.
    It's also interesting to see that they skipped placing one capacitor in the power section.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #57 21109664
    divadiow
    Level 34  
    i can't think what that might be. A mic would make most sense as a missing component in this device, but surely they're all 2-pin. The 4 outside pads are ground and the centre traces to the two pads below.

    Photo of a printed circuit board with visible tracks and electronic components.
  • #58 21109684
    p.kaczmarek2
    Moderator Smart Home
    So most likely mic, those controllers also come in "musical" version
    Helpful post? Buy me a coffee.
  • #59 21109691
    divadiow
    Level 34  
    Sure. I guess so. And the other missing components are the pre-mic network seen on other devices between IoT chip and mic one assumes. I couldn't find any 5-pin 4-ground mic components Googling, but who knows.

    Added after 2 [minutes]:

    Yeh. Must be. Like the series of resistors and things you see on the Outsmart SPI devices in the mic area
  • #60 21367034
    matthewk_dd
    Level 4  
    >>21030677 Hi! Is there any progress in enabling WPA3 on the BL602? I have the same device as in post #55 (LF686C20) and when flashing the device to OpenBK, it cannot connect to the WiFi anymore due to lack of WPA3 support. Note, the original Magic Home FW of the device has no issue to connect to WiFi with WPA3, so there must be some drivers available. Thanks!

Topic summary

The discussion revolves around the LF686C20 LED strip controller, which utilizes the BL602 chip. Users share their experiences flashing the device, noting challenges with power supply and connectivity. Successful flashing often required external power sources, with some users achieving results by using Arduino boards or dedicated power supplies. Issues with WiFi connectivity were common, particularly when using mixed WPA2/WPA3 security settings. Users also discussed the importance of backing up firmware before flashing and shared methods for configuring pin assignments for RGBW control. The conversation highlights the need for stable power during operation and the potential for IR control, although some users reported difficulties in getting it to work. Additionally, there were inquiries about the missing components on the PCB and their implications for functionality.
Summary generated by the language model.
ADVERTISEMENT