logo elektroda
logo elektroda
X
logo elektroda

New Windows Progamming tool - openshwprojects / BK7231GUIFlashTool

erhardfalkenberg 987 10
ADVERTISEMENT
  • #1 20369670
    erhardfalkenberg
    Level 4  
    First of all, thank you so much for your hard work on the BK7231-devices. Openbeken works just great. I have bought a couple on aliexpress for 2$ each from promotion offer. The tiny devices are BK7231N types on CB2S Modules with 16A relais. I will post a teardown-instruktion later. After desoldering one device with small damages I succeeded in programming with python uartprogramm. Soldering back and the device worked flawlessly. With another module I tried the new flashtool. It worked great while reading but it stopped before writing saying something like "baudrate failure". I tried all options but neither worked for me. Going back to the python script everything worked just fine. So I am lucky to have a valid copy of the original firmware. Do other users encounter similar problems or did I miss something? Thanx again and happy new hacking year to all of you.
  • ADVERTISEMENT
  • #2 20369714
    p.kaczmarek2
    Moderator Smart Home
    Hello, which baudrate setting did you use?
    Have you tried lower baudrate speed?
    Can you post full log?

    If reading part of "Read backup and flash firmware" works ok but then it fails with baudrate, then maybe you should do separate Read operation and then a Write?

    You can always fall back to uartprogram from hid_download_py if the problem persists.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20369818
    erhardfalkenberg
    Level 4  
    p.kaczmarek2 wrote:
    Hello, which baudrate setting did you use?
    Have you tried lower baudrate speed?
    Can you post full log?

    If reading part of "Read backup and flash firmware" works ok but then it fails with baudrate, then maybe you should do separate Read operation and then a Write?

    You can always fall back to uartprogram from hid_download_py if the problem persists.


    Thanks for your quick reply
    I tried all available baudrates (all three in the dropdown menu).
    Separate reading worked as expected but separate writing button didn't respond.
    As mentioned uartprogram worked after that at 115200. So module is working fine.
    Go on with your excellent work please.
    regards
    Erhard
  • ADVERTISEMENT
  • #4 20369843
    p.kaczmarek2
    Moderator Smart Home
    What do you mean by "didn't respond"?

    I will try to check on my side, but so far all my tests were successful.
    Helpful post? Buy me a coffee.
  • #5 20370051
    erhardfalkenberg
    Level 4  
    I mean the button was not working.
    I have another module and will try again.
    I come back to you after that.
    Thanks
  • #6 20370822
    p.kaczmarek2
    Moderator Smart Home
    You are right, I forget to link an action to the button. Write button will be fixed in about a hour
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #7 20371195
    erhardfalkenberg
    Level 4  
    Thank you but read/write is still not working for me...
    regards
    Erhard New Windows Progamming tool - openshwprojects / BK7231GUIFlashTool New Windows Progamming tool - openshwprojects / BK7231GUIFlashTool
  • #8 20371226
    p.kaczmarek2
    Moderator Smart Home
    What if you do separately Read and then separate Write?
    Helpful post? Buy me a coffee.
  • #9 20371229
    erhardfalkenberg
    Level 4  
    Will give it a try and come back to you...
  • #10 20372426
    p.kaczmarek2
    Moderator Smart Home
    It seems that I've found the bug.
    Or at least one bug. It seems that on some machines the larger UART buffer was required:
    
                    serial.ReadBufferSize = 3000000;
    

    It's fixed in v1.0.3

    The default one is 4096 so it makes sense that a page read that is 4096 bytes + header won't fit, but I didn't caught it earlier on my machine because.... it just worked well for me.
    No idea how Serial class internals are handling that, so it actually worked for me all the time without setting a big enough buffer.
    Helpful post? Buy me a coffee.
  • #11 20372659
    erhardfalkenberg
    Level 4  
    Thank you for your effort.
    Every time I start my computer I learn something new - helps to keep me young.

    Added after 31 [minutes]:

    May I suggest to put a button 'Main Menu' on top of the list in the web interface of openbeken rather than a tiny link underneath the long menu strip?

    Added after 9 [hours] 23 [minutes]:

    Now the flashtool works perfectly.
    Thank you, Donation is on its way.
    Have a nice weekend.

Topic summary

The discussion revolves around issues encountered while using the BK7231GUIFlashTool for programming BK7231N devices on CB2S modules. The user successfully read firmware but faced a "baudrate failure" during writing, despite trying all available baud rates. Other users suggested troubleshooting steps, including separate read and write operations, and identified a bug related to UART buffer size, which was subsequently fixed in version 1.0.3 of the tool. The user confirmed that the tool now works perfectly after the fix and suggested interface improvements for the OpenBeken web interface.
Summary generated by the language model.
ADVERTISEMENT