logo elektroda
logo elektroda
X
logo elektroda

Disassembly of the 3 Channel Switch with BK7231N and flashing using a Wemos D1 Mini. Issues.

jony202b 801 3
ADVERTISEMENT
  • #1 21158402
    jony202b
    Level 5  
    Hello.

    I'm new and this is my first disassembly. I hope you like it.

    (Sorry for the translation. I use Google)

    It is a 3-channel switch with BK7231N.

    WiFi DIY Smart Switch box with a sticker and QR code. WiFi switch module box with specifications.

    User manual for the smart switch management app. WiFi switch module user manual with wiring diagrams.

    WiFi switch module with technical description.

    Here the disassembly had already begun. I don't have previous photos.

    Electronic module with BK7231N integrated circuit and soldered components on a PCB. Close-up of an open circuit board with three relays and capacitors. Electric relay Manhot GK101-1AS with technical specifications

    For tests. Soldered wiring (lousy soldering).
    The Tx and Rx connections are used for the LED integrated on the board and for the K1.
    Power with 5 V in the capacitor before the 3.3 V LDO.

    Close-up of a 3-channel switch with a BK7231N chip, showing soldered wires on the board.

    As a programmer, I tried Wemos D1 mini (clone), with excellent results. We connect the reset (of the Wemos D1 mini) to GND to sleep the ESP8266.

    Circuit board with BK7231N chip, soldered wiring, and labeled connections Tx, Rx, GND, and voltage points. Close-up of a PCB with various pins, labels, and soldered wires.

    When flashing with BK7231Flaser.exe (with Mono on Linux) I got an error. The memory was erased fine but when writing it gave an error.
    Then I thought it would be a permissions problem but I was already trying with python.
    A touch from CEN to GND and recording…

    Screenshot of a terminal showing the software writing process to a microprocessor.

    Perfect.

    A reset and the connection was immediate:

    OpenBK7231N user panel with control options.

    It is not configured (I have to study it as I am still a newbie). That's why only two buttons appear instead of three. The action on them seems good.

    But when launching the web application, it failed.

    Empty browser screen with the address 192.168.4.1/app visible in the address bar.

    I thought it could be through the browser or mobile phone and I connected from the laptop, without success.
    And I noticed that it only allows me one connection. Or mobile, or laptop.
    I don't know if I'm doing something wrong.

    Added after 11 [hours] 26 [minutes]:

    I continue trying to upload with BK7231Flasher but it throws the error:

    Error message during flashing: Writing sector 0 failed.

    Added after 22 [minutes]:

    Well. From Windows I have had no problem flashing,

    Screenshot of the microcontroller flashing process.

    but I still have an error when launching the web application.

    Screenshot of Internet Explorer with a blank page and IP address.
  • ADVERTISEMENT
  • #2 21159183
    p.kaczmarek2
    Moderator Smart Home
    Web Application works only if you have already paired device with your WiFi.

    So, pair to your WiFi first, and then use Web App.

    This is because Web App is fetching the panel from Web (from our open source github repo).
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 21159699
    jony202b
    Level 5  
    This is getting better.
    Little by little there is a lot to study.

    OpenBK7231N device configuration screen with three toggles turned on.

    I have copied this template (web application > config > devices):

    Image of a Tuya MINI-W1 3-Gang WiFi Switch MC module on a desk with visible pins and configuration labels.
ADVERTISEMENT