logo elektroda
logo elektroda
X
logo elektroda

[BK7231N] Teardown and flashing of Atorch GR2P-WS: DIN rail device with graphic screen

morgan_flint 9579 73
ADVERTISEMENT
📢 Listen (AI):
  • ADVERTISEMENT
  • #64 21784898
    GoldMember
    Level 11  
    I imported JSON in webapp and nothing changed.
  • ADVERTISEMENT
  • #65 21784907
    divadiow
    Level 37  
    the JSON blocks are just information about the device from which to extract details needed to make a working autoexec. The JSON is from the Tuya dev site after pairing your firmware with the Tuya app in a test device. The second block in the previous post is just an easier to read version of the code above it.

    TuyaMCU guides and examples:

    TuyaMCU flashing, setup and configuration guide - configure dpIDs for Home Assistant
    https://www.elektroda.com/rtvforum/topic4038151.html

    TuyaMCU protocol - communication between the microcontroller and the WiFi module
    https://www.elektroda.com/rtvforum/topic3880546.html

    OpenBeken and TuyaMCU dimmer - configuration guide/tutorial
    https://www.elektroda.com/rtvforum/topic3898502.html

    Extracting DpIDs for TUYA MCU devices
    https://www.elektroda.com/rtvforum/topic4021129.html

    How to get dpID list of types and values for flashed TuyaMCU devices with OpenBeken
    https://www.elektroda.com/rtvforum/topic4049908.html

    How to make TuyaMCU device send more data points? Why are dpIDs not sent? Processing by the Wi-Fi...
    https://www.elektroda.com/rtvforum/topic4089722.html

    Scripting the behaviour of TuyaMCU relay OpenBeken - custom buttons, timers, events, countdown
    https://www.elektroda.com/rtvforum/topic4009196.html

    Autoexec Examples
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/autoexecExamples.md
  • #66 21784956
    yarik8117
    Level 3  
    >>21784898
    Does your chip temperature also remain at 82 degrees after reflashing? Or is it just me? I haven't been able to start reading data yet. I think the firmware from BK7238 may not be entirely suitable for our T1-2S-NL. What specific firmware did you install?
  • ADVERTISEMENT
  • #67 21784969
    divadiow
    Level 37  
    is anything giving sign OpenBK7238 is talking to the TuyaMCU? what about with flag 26 enabled to swap uart?
  • #68 21785019
    yarik8117
    Level 3  
    >>21784969 >>21784969
    I don't see any signs of interaction. No buttons or data are being transmitted. I enabled flag 26 and disabled it, but it doesn't help.
    Screenshot of system status with one active TuyaMCU driver and 32 total channels
  • ADVERTISEMENT
  • #69 21785120
    GoldMember
    Level 11  
    yarik8117 wrote:
    >>21784898
    Does your chip temperature also remain at 82 degrees after reflashing? Or is it just me? I haven't been able to start reading data yet. I think the firmware from BK7238 may not be entirely suitable for our T1-2S-NL. What specific firmware did you install?


    Yes, mine is too about 82. I downloaded the newest firmware via Beken flasher.
  • #70 21785131
    insmod
    Level 29  
    Ignore it, it's different for every chip.
    Some BK7238's can even have negative temperature.
  • #71 21785208
    yarik8117
    Level 3  
    No data from TuyaMCU in the console or on the sensor. No data at all. What else can I do? I am new to this and am trying to figure it out. Apparently, the DpId is the same, exactly the same as in the first post, only the bit width of some sensors is different. But no data is coming in at all, as if TuyaMCU does not exist.
  • #72 21785332
    divadiow
    Level 37  
    How did you flash BK7238? Did you have to cut traces or desolder t1-2s-nl module? How are you powering the device now, is it all back together and on the mains?

    Any results from command tuyaMcu_sendQueryState?
  • #73 21785444
    GoldMember
    Level 11  
    In my case I desoldered the module and flashed it with BK Flasher. Everythinhg went ok so I put it back together and connected to mains.
    Result of command:
    Error:CMD:cmd tuyaMcu_sendQueryState NOT found (args )
    Unknown command
  • #74 21785449
    yarik8117
    Level 3  
    >>21785332
    In my case, I isolated RX and TX. And flashed it with BK Flasher. After a while, I flashed it again, thinking that it had been flashed with an error. Everything was flashed without errors.
    Info:CMD:[WebApp Cmd 'tuyaMcu_sendQueryState' Result] OK

    I'll add this. After a lot of hassle trying to get it to work on OpenBeken, I decided to check if the chip was actually working. I flashed the backup and it started working again on the factory firmware. It's working fine now and passing all the values normally. I flashed the backup without isolating TX and RX. Everything flashed without any problems. How can I now make it work on OpenBeken?
📢 Listen (AI):

Topic summary

The discussion centers on the teardown, firmware flashing, and integration of the Atorch GR2P-WS DIN rail energy meter featuring a graphic screen and BK7231N WiFi module. Users share experiences flashing OpenBK7231N firmware to replace the original Tuya firmware, aiming to eliminate cloud dependencies and enable local control via Home Assistant. Challenges include configuring WiFi credentials, MQTT setup, and linking Tuya MCU outputs to OBK channels through customized autoexec.bat scripts. The MCU firmware (CH573F) versions (1.0.3, 1.0.4, 1.0.9) and update mechanisms are discussed, with attempts to dump and reflash MCU firmware via USB ISP and UART ISP modes proving difficult due to bootloader restrictions and hardware specifics. Newer GR2PWSL versions with external current transformers and different MCU firmware are noted, with similar device schema IDs but differing update availability in the Tuya app. Diagnostic data reporting (RSSI, IP, SSID) to Home Assistant via MQTT is enabled by adjusting OBK flags. The relay internals and driver IC datasheet are shared. Community members contribute modified autoexec.bat configurations adding SSDP, NTP, and Wemo drivers. The discussion also covers the translation of Chinese JSON strings in device models to English for better integration. Overall, the thread provides detailed technical insights into hardware teardown, firmware flashing, MCU communication, and Home Assistant integration of Atorch GR2P-WS devices using BK7231N and CH573F chips.
Summary generated by the language model.
ADVERTISEMENT