logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang

herbertvianna 2034 11
ADVERTISEMENT
📢 Listen (AI):
  • Hi! Here is a teardownon of a Moes 3 gang module wifi.

    I bought it from: AliExpress


    [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang
    [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang
    [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang

    Datasheet:
    Module CBU (BK7231N)

    Flashing:
    I could flash lastest BK7231N using the BK7231Flasher v1.0.6 and a FT232RL FTDI Adapter.
    [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang
    [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang [BK7231N] Moes MS-104C-1 - Smart Switch Module Wifi 3 gang

    Config:
    "pins": {
        "7": "dInput_n;3",
        "9": "dInput_n;1",
        "15": "dInput_n;2",
        "17": "Rel;2",
        "24": "Rel;1",
        "26": "Rel;3"
      }

    Cool? Ranking DIY
    About Author
    herbertvianna
    Level 5  
    Offline 
    herbertvianna wrote 3 posts with rating 1. Live in city Rio de Janeiro. Been with us since 2022 year.
  • ADVERTISEMENT
  • Helpful post
    #2 20465797
    p.kaczmarek2
    Moderator Smart Home
    Thank you for config, but please next time use syntax tag with JSON mark so the config can be copy/pasted (it's easier than writing it again from image).

    By the way, this switch has a very interesting design. CBU module on extra board.... I haven't seen that kind of board yet.

    Those relays also seem tiny, but I think it's justified, considering that they are 10A only.

    PS: You can also consider using PowerSave 1 command (in short startup command or something) to make power consumption of BK7231 lower.
    Helpful post? Buy me a coffee.
  • #3 20465974
    herbertvianna
    Level 5  
    Thank you for your help. I made an update to the original post to add the json instead of the image.
    I also enabled PowerSave on module startup.
    The solution they came up with for the module to be very compact is really interesting.
  • ADVERTISEMENT
  • #4 20465996
    p.kaczmarek2
    Moderator Smart Home
    At least it's the CBU module, so UART1 is easily accessible.
    It would be worse in case of CB2L, because CB2L has UART1 pads on back so it would have be needed to be desoldered first before flashing. I had such situation with that bulb (it was WB2L_M1 but still...): https://www.youtube.com/watch?v=2e1SUQNMrgY
    Helpful post? Buy me a coffee.
  • #5 20466187
    herbertvianna
    Level 5  
    I watched the video, it's a lot of work.
    So far, I only have flashed CBU and WB2S, both with easy access to all pins.
  • ADVERTISEMENT
  • #6 20466190
    p.kaczmarek2
    Moderator Smart Home
    It's not that hard, the module from video has at least a single row of soldered pads so it can be easily removed with the PB solder+cheap soldering iron+flux trick, without hot air.

    Some other modules may require hot air for the easy desoldering.
    Helpful post? Buy me a coffee.
  • #7 21723594
    erdemefe1
    Level 3  
    I have same module too.

    I used BK7231GUIFlashTool v126 but it downloaded automatically QIO version of FW. As i understand the FW should be _UA" labelled for uart download.

    I confused. and installed OpenBK7231N_QIO_1.18.199.bin. it finished succesfully but it didn't work. i could not find a wifi ap related openbeken.

    I've previously flashed BK7231T microcontrollers with both UART and SPI, and I used files labeled UA for UART and QIO for SPI.

    Why aren't there any UA-labeled files in the release section for the BK7231N?
  • #8 21723600
    insmod
    Level 29  
    >>21723594
    The only difference between UA and QIO, is that QIO contains bootloader, while UA doesn't.
    And it's important for BK7231T/U and BK7252, because bootloader on them can't be overwritten via UART.
    While on BK7231N and newer, bootloader can be safely overwritten, and in some cases it's even required.

    If firmware doesn't boot, then log from TX2 is important for troubleshooting.
  • #9 21723607
    erdemefe1
    Level 3  
    So, shouldn't QIO files be written from offset 0, and UA files from offset 0x11000? Does BK7231GUIFlashTool automatically determine where to write?

    In my example, should the QIO file be written from offset 0 or 0x11000?
  • #10 21723608
    insmod
    Level 29  
    >>21723607
    On BK7231N, if bootloader overwrite is disabled (it's disabled by default), then it will skip 0x11000 bytes from QIO and write the rest to flash at 0x11000 offset.
    If enabled, then nothing is skipped and offset is 0x0.
  • ADVERTISEMENT
  • #11 21723609
    erdemefe1
    Level 3  
    So my device should boot :)

    i will add the TX2 logs
  • #12 21730816
    erdemefe1
    Level 3  
    Hello again,

    There is no log on TX2 pin.

    I flashed again OpenBK7231N_QIO_1.18.205.bin via BK7231GUIFlashTool-v144. Nothing happen. The device consumes only 1-2mA. It didn't boot.

    I also restored the original software I backed up. It doesn't work either. (OB backup attached)

    What can i do right now? I'm adding my full flash dump
📢 Listen (AI):

Topic summary

The discussion revolves around the Moes MS-104C-1 smart switch module, which utilizes the BK7231N chip. The user shares a teardown and flashing process using the BK7231Flasher v1.0.6 and an FT232RL FTDI adapter. Participants provide feedback on the module's design, noting the compactness and accessibility of UART1 for flashing. Suggestions include using JSON format for configuration sharing and enabling PowerSave mode to reduce power consumption. Comparisons are made with other modules, highlighting the ease of access to pins in the CBU variant versus the more challenging CB2L variant.
Summary generated by the language model.
ADVERTISEMENT