logo elektroda
logo elektroda
X
logo elektroda

Troubleshooting WK-US2-TC Flashing OpenBeken: Firmware 1.1.17 vs. 1.1.8 Issues

123qweasd1 1008 10
ADVERTISEMENT
  • #1 21105683
    123qweasd1
    Level 3  

    Ordered WK-US2-TC to flash OpenBeken based on: https://www.elektroda.com/rtvforum/topic3977240.html
    When trying to flash, I noticed the Cloudcutter template is based on firmware 1.1.8.
    However, checking my device firmware with the Smartlife app gives 1.1.17.
    I have tried both the provided option (1.1.8) and using "By firmware version and name" (with 1.1.17) but was unsuccessful: "The profile you selected did not result in a successful exploit," see log in other thread.

    What would you recommend as next steps/troubleshooting?
  • ADVERTISEMENT
  • #2 21105723
    p.kaczmarek2
    Moderator Smart Home
    Cloudcutter is not very reliable. What about flashing by soldering wires? Would that be possible for you?
    Helpful post? Buy me a coffee.
  • #3 21105746
    123qweasd1
    Level 3  
    It is my next option, however at first glance I guess I'll have to order the 2x104 capacitors and voltage regulator as per proposed connector (is there any flexibility on parts ratings and/or can I use the same USB to TTL Serial Adapter (CH340) as for Tasmota flashing?

    Also the chip can't be extracted and contacts are not easy to reach.
    But I'm willing to give it a try if chances of success are good.

    Let me know what you think.

    Thx

    Close-up of an electronic chip held between fingers, showing components and connections. Close-up of a circuit board held in hands with visible components and wires.
  • ADVERTISEMENT
  • #4 21105782
    p.kaczmarek2
    Moderator Smart Home
    Those 104 capacitors are not necessary, and if your device has LDO on the board (please provide more photos), you can just use it.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21105795
    123qweasd1
    Level 3  
    Below.

    I guess the AMS1117 is the onboard LDO? Can you confirm revised connector wiring if I am to try it?
    Also do you think it can be done "in-circuit" as removing the top board would be beyond my tools & efforts I am willing to deploy.

    Close-up of a circuit board with electronic components and an AMS1117 module. Close-up of a circuit board with a CB2S module and electronic components. Close-up of a circuit board with visible components, including an AMS1117 regulator. Electronic circuit board with components such as connectors, LEDs, and wires. Close-up of a circuit board with connectors and electronic components, including AMS1117.


    PS: pictures are from the KS-604S; I ordered both models for testing. They are very similar in design and neither can be flashed with Cloudcutter.
  • #6 21105876
    p.kaczmarek2
    Moderator Smart Home
    If RX/TX is not used for anything, then you can try flashing in circuit.

    Connect 5V to the input of AMS1117-3.3V (check datasheet! Triple check it!) and GND to GND, then connect RX to TX and TX to RX (as usual).

    Start flashing in flasher (first read 2MB backup),, then disconnect and reconnect 5V power to do a power cycle.

    It should start flashing.
    Helpful post? Buy me a coffee.
  • #7 21106084
    123qweasd1
    Level 3  

    Thanks for the feedback, does this look right?

    Troubleshooting WK-US2-TC Flashing OpenBeken: Firmware 1.1.17 vs. 1.1.8 Issues

    Will be using BK7231GUIFlashTool, step 1 read to test, then step 2 (with power cycle once ready to write)

    Let me know if this makes sense; will report back once tested.

    Troubleshooting WK-US2-TC Flashing OpenBeken: Firmware 1.1.17 vs. 1.1.8 Issues
  • #8 21106090
    p.kaczmarek2
    Moderator Smart Home
    If your 5V pin on the USB to UART converter is connected directly to USB, then you don't need second USB cable.

    Futhermore, don't connect 3.3V from USB to UART to anything.

    You need to do:
    USB TO UART GND ---> to GND
    USB TO UART RX --> to TX
    USB TO UART TX ----> to RX
    USB TO UART 5V ---> To the input of LDO on your board (AMS1117-3.3V IN), so at the output of AMS1117-3.3 you get... 3.3V.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 21106124
    123qweasd1
    Level 3  
    So like this (changing that jumper from 3.3v to 5v prior) right ?

    Wiring diagram connecting a USB converter with an electronic module via an AMS1117-3.3 voltage regulator.
  • #10 21106137
    p.kaczmarek2
    Moderator Smart Home
    This should work, but jumper for logic levels should be in 3.3V mode. UART levels are in 3.3V. And Beken is powered by 3.3V via AMS1117-3.3. You are connecting correctly 5V to the input of AMS1117-3.3V, but still, at the output of AMS1117-3.3, you get 3.3V.
    Helpful post? Buy me a coffee.
  • #11 21106142
    123qweasd1
    Level 3  
    Thx. Just checked USB2UART 5v pin does provide 5v while keeping jumper on 3.3v so should be good. Will test my soldering skills and report back ;)


    Added after 4 [hours] 40 [minutes]:

    Success for KS-604S ! =)

    Control panel of the BK7231N device with diagnostic information and logbook.

    I have used ground from block J7 for easier access and a small inline switch on 5V to manage the restart required while flashing.

    Electronic module with visible markings and connections. Close-up of a prototype board with visible electronic components and connected wires. Close-up of an electronic connector with wires attached to the pins, with labels including 5V, GND, 3V3.

    Device configuration, as extracted from Tuya: 
    - Button (channel 1) on P11
    - Relay (channel 3) on P6
    - Pair/Toggle All Button on P23
    - WiFi LED on P10
    - Relay (channel 2) on P8
    - Button (channel 2) on P24
    - Relay (channel 1) on P26
    Device seems to be using CB2S module, which is using BK7231N.
    And the Tuya section starts, as usual, at 2023424



    Code: JSON
    Log in, to see the code


    What a great project. Congrats.
    Let me know if you need more feedback/data on this one.
    Thx

    Added after 2 [hours] 24 [minutes]:


    Success for WK-US2-TC ! =)

    MQTT software interface displaying device information and logs.

    I have used ground from the CB2S board as block J7 has no ID's on this model.

    Device configuration, as extracted from Tuya: 
    - Button (channel 1) on P11
    - Relay (channel 3) on P6
    - Relay (channel 4) on P7
    - WiFi LED on P10
    - Relay (channel 2) on P8
    - Button (channel 2) on P24
    - Relay (channel 1) on P26
    Device seems to be using CB2S module, which is using BK7231N.
    And the Tuya section starts, as usual, at 2023424



    Code: JSON
    Log in, to see the code



    Original firmware backups attached as well.

    Hope this helps, cheers.

Topic summary

The discussion revolves around troubleshooting the WK-US2-TC device while attempting to flash OpenBeken firmware versions 1.1.17 and 1.1.8. The user encountered issues with the Cloudcutter template, which is based on firmware 1.1.8, while their device reports firmware 1.1.17. Suggestions include using a soldering method for flashing, with discussions on the necessity of components like 2x104 capacitors and the onboard LDO (AMS1117). The community provided guidance on wiring connections for flashing, emphasizing the importance of correct voltage levels and connections between the USB to UART converter and the device. The user successfully flashed the KS-604S model after following the outlined steps and reported the device's configuration details.
Summary generated by the language model.
ADVERTISEMENT