logo elektroda
logo elektroda
X
logo elektroda

How to flash Aliexpress bulbs from ESP8266 (FL-M11-V2.0) to SmartLife?

pdrobek 138 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21458606
    pdrobek
    Level 10  
    Hi

    I've rummaged through the nooks and crannies for 2 "Aliexpress" branded light bulbs. Both are signed that they can be paired with SmartLife. But well, the pairing does not work. The bulbs have been lying around since 2019 unmoved.

    Both pieces based on the well-known and well-loved ESP8266. The difference is that I don't have the RX, TX, GND and GPIO0 clearly shown on the PCB. PCB view below

    PCB marked FL-M11-V2.0 with visible pins. .
    ESP8266 module on a circuit board inside a smart bulb. .

    Do you have any tips on how to go about flashing this FL-M11-V2.0 and what would play best there? Tasmota?
  • ADVERTISEMENT
  • #2 21458631
    p.kaczmarek2
    Moderator Smart Home
    Maybe Tuya-convert will work?
    The SC3-01 SmartLife switch and ESP firmware upload via WIFI (tuya-convert/OTA) .
    And if not then it's worth either looking at the underside of the module to see if the pins are labelled on the underside, or taking a multimeter and searching with a multimeter where GPIO0 leads.
    Tasmota should work fine on these bulbs.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 21459539
    pdrobek
    Level 10  
    I have unsoldered the 2 boards and there is a set of rx tx 3.3v gnd pins and I00 I02. I checked the transition and I00 is gpio0. The esp itself is alive because I can read the serial

    ets Jan 8 2013,rst cause:2, boot mode:( 3,6)

    load 0x40100000, len 2592, room 16
    tail 0
    chksum 0xf3
    load 0x3ffe8000, len 764, room 8
    tail 4
    chksum 0x92
    load 0x3ffe82fc, len 676, room 4
    tail 0
    chksum 0x22
    csum 0x22

    2nd boot version : 1.7(5d6f877)
    SPI Speed : 40MHz
    SPI Mode : QIO
    SPI Flash Size & Map : 8Mbit(512KB 512KB)
    jump to run user1 @ 1000

    OS SDK ver: 2.0.0(e8c5810) compiled @ Jan 25 2019 14:26:04
    phy ver: 1055_9, pp ver: 10.7

    rf cal sector: 121
    idle_task_hdl : 40107bd0,prio:0, stack:384
    tim_task_hdl : 40107d18,prio:2,stack:512
    [notice]user_main.c:310 SDK version:2.0.0(e8c5810)
    [notice]user_main.c:314 fireware info name:oem_esp_light_tuya version:3.3.16
    [notice]user_main.c:317 tuya sdk compiled at Jun 12 2019 19:50:52
    [notice]user_main.c:319 BV:5.45 PV:2.2 LPV:3.3
    reset reason: 6
    epc1=0x00000000,epc2=0x00000000,epc3=0x00000000,excvaddr=0x00000000,depc=0x00 000000
    mode : null
    mode : sta(98:f4:ab:b7:8f:cf)
    add if0
    scandone
    [notice]gw_intf.c:405 Authorization success
    del if0
    usl
    sul 0 0
    mode : null
    force slp enable,type: 2
    fpm open,type:2 0
    [notice]mqtt_client.c:576 gw wifi stat is:0
    [notice]mqtt_client.c:576 gw wifi stat is:0

    Unfortunately the standard flashing to tasmote is not possible after driving gpio0 to gnd. Apparently the serial is quieting down but something else extra must be going on.
  • ADVERTISEMENT
  • Helpful post
    #4 21459547
    p.kaczmarek2
    Moderator Smart Home
    Do everything according to the procedure, i.e. IO0 is to be shorted to GND at the time of reboot. I short IO0 to GND, disconnect the whole thing from power and reconnect power. Then it is in bootloader mode and esptool can read or upload the batch.

    Just shorting IO0 to ground already while the ESP is running won't do anything, you have to do a RESET or power off/on.

    Also maybe change RX and TX places for a test.
    Helpful post? Buy me a coffee.
  • #5 21459617
    pdrobek
    Level 10  
    Thanks, I've already forgotten the whole procedure for flashing the ESP8266 itself. I use Wemos and other ready-made boards for the lazy.

    Tasmota has basked in its glory on the forgotten bulb of 2019.

    00:00:00 CFG: Use defaults
    00:00:00 Project tasmota Tasmota Version 8.1.0(lite)-2_6_1
    00:00:00 WIF: WifiManager active for 3 minutes
    00:00:00 HTP: Web server active on tasmota-4047 with IP address 192.168.4.1
    00:01:31 WIF: Hostname %s-d, SSId1 AiP, SSId2 , CORS
    00:01:32 APP: Restarting

    Thanks for your help
ADVERTISEMENT