logo elektroda
logo elektroda
X
logo elektroda

Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification

Nargo 876 58
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • ADVERTISEMENT
  • #32 21618640
    divadiow
    Level 35  
    null wrote:
    It worked first time.
    .
    Oh, great. Interesting. I wonder what this means for Easy Flasher. I've ordered something that looks like the same device. I hope it will have a T1!

    Added after 4 [minutes]: .

    Out of curiosity, did BKFIL refer to the chip as "BK7238" in the log during flashing? BKFIL should output the data to a .log file in the BKFIL folder if you have already closed the application.
  • #33 21618684
    Nargo
    Level 23  
    divadiow wrote:
    Out of curiosity, did BKFIL refer to the chip as "BK7238" in the log during flashing? BKFIL should output the data to a .log file in the BKFIL folder if you have already closed the application.

    
     cmdline: |D:/Instalki/Open BK7321/BEKEN_BKFIL_V2.1.6.0_20231123/bk_loader.exe download -p 6 -b 1500000 --uart_type OTHER --mainBin-multi D:/Instalki/Open BK7321/BK7231GUIFlashTool-v49/firmwares/OpenBK7238_QIO_1.18.140.bin@0x0-0x132000 --fast_link 1 |
     bk_loader version 2.1.6.0: build @Nov 23 2023 11:23:40 
     2025-07-27 18:58:55.833    Current port : COM6 + BaudRate : 115200 connect success
     2025-07-27 18:58:56.034    do_reset_signal
     2025-07-27 18:58:56.034    Getting Bus...
     2025-07-27 18:58:58.905    Gotten Bus...
     2025-07-27 18:58:59.049    Got ChipId: 0x7238
    
     2025-07-27 18:58:59.049    Current Chip is : BK7238
     2025-07-27 18:58:59.081    Current baudrate : 1500000 success
     2025-07-27 18:58:59.112    rxf-uid : 45 53 4d 39 38 38 00 07 00 ab 4a 52 01 20 ad 78 
     2025-07-27 18:58:59.112    Got FLashMID: 0x154285
    
     2025-07-27 18:58:59.116    Unprotecting Flash
     2025-07-27 18:58:59.144    Unprotected Flash ->pass
     2025-07-27 18:58:59.144    [ 0 ] file_path : D:/BK7231GUIFlashTool-v49/firmwares/OpenBK7238_QIO_1.18.140.bin
     2025-07-27 18:58:59.144    [ 0 ] file_length : 0x132000 (1224 KB)
     2025-07-27 18:58:59.144    [ 0 ] file_crc : 0x8f7900f9
     2025-07-27 18:58:59.144    Begin EraseFlash
     2025-07-27 18:58:59.147    Start 4K Erase
     2025-07-27 18:58:59.147    End 4K Erase
     2025-07-27 18:58:59.147    Start 64K Erase
     2025-07-27 18:59:00.210    End 64K Erase
     2025-07-27 18:59:00.210    EraseFlash ->pass
     2025-07-27 18:59:00.213    Begin WriteFlash...
     2025-07-27 18:59:10.402    WriteFlash ->pass
     2025-07-27 18:59:10.402    Begin read CRC
     2025-07-27 18:59:13.254    CRC_Verify ->pass
     2025-07-27 18:59:13.347    Enprotect pass
     2025-07-27 18:59:13.380    Boot_Reboot
    
     2025-07-27 18:59:13.767    Total Test Time : 14.861 s
     2025-07-27 18:59:13.767    Writing Flash OK                             
    
    .
  • ADVERTISEMENT
  • #34 21618689
    p.kaczmarek2
    Moderator Smart Home
    Is OpenBeken taking off?

    So BKFil works and Easy Flasher doesn't? Interesting...
    Helpful post? Buy me a coffee.
  • Helpful post
    #35 21618696
    Nargo
    Level 23  
    p.kaczmarek2 wrote:
    From this it appears that OpenBeken is running on your device. Can you give me (I'll use for the tutorial) an accurate and clearer picture of this module and information where the device comes from, pictures of the case, any info you have?
    .
    Bought: https://pl.aliexpress.com/item/10050078048597...in.11.2e2e1c24Xufr2H&gatewayAdapt=glo2pol



    Black, round Tuya wifi-IR-1 module with a small LED on the casing, shown on a white background. Black, round Tuya Wi-Fi IR transmitter on a white background. .

    {
      "vendor": "Tuya",
      "name": "wifi-IR-1",
      "chip": "BK7238",
      "flags": "1024",
      "pins": {
        "6": "IRSend;57",
        "8": "IRRecv;0",
        "9": "dInput;54",
        "26": "LED;37"
      },  
    
    .

    Added after 20 [minutes]:

    Thanks to everyone for their help. When flashing the chip.
    I'm left to figure out why the IR receiver isn't working, but that's for after the holidays.
  • ADVERTISEMENT
  • #36 21618777
    p.kaczmarek2
    Moderator Smart Home
    Congratulations on the programming of the T1, you are the first person to do it officially with us. Thank you for your help with the testing! However, it was worth the struggle rather than immediately giving up and sending the chip to me. So that means OBK is working on the next module. I'll have to make a separate news topic about that.
    Helpful post? Buy me a coffee.
  • #37 21621104
    divadiow
    Level 35  
    can we expect the timings to be OK on BK7238 for ir to work? I could test I guess. Does ir send/receive work @Nargo?
  • ADVERTISEMENT
  • #38 21621159
    Nargo
    Level 23  
    divadiow wrote:
    Can we expect the timing to be OK on the BK7238 to make it work? I could test this. Does ir send/receive work @Nargo?
    .

    It receives something, sends something. haven't played with it yet.
  • #39 21621714
    p.kaczmarek2
    Moderator Smart Home
    Interestingly enough, Tuya lists T chips up to 5 here:
    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification
    I wonder if they are all Beken? T2 pins looks like Beken...
    T3 says: 32-bit Armv8-M STAR-MC1 MCU , it also has P40 and P41...
    T5 is similar. Both T3 and T5 has WiFi 6.
    Helpful post? Buy me a coffee.
  • #40 21621725
    insmod
    Level 26  
    >>21621714
    T1 - BK7238
    T2 - BK7231N
    T3 - BK7236
    T5 - BK7258
  • #41 21621734
    p.kaczmarek2
    Moderator Smart Home
    Sources? I didn't manage to find that yet.
    Helpful post? Buy me a coffee.
  • #43 21621804
    insmod
    Level 26  
  • #44 21621834
    Nargo
    Level 23  
    From the HA, it is easy to send a remote control command via MQTT.
    However, I cannot figure out how to receive commands in HA.
    There are commands in the OpenBK logs, but nothing reaches the HA via MQTT.
  • Helpful post
    #45 21621837
    p.kaczmarek2
    Moderator Smart Home
    Activate flag 22
    Toggle switch labeled Flag 22 ready to be enabled. .
    Helpful post? Buy me a coffee.
  • #46 21621855
    p.kaczmarek2
    Moderator Smart Home
    Do you think that Easy Flasher works for T1? We have a sample size of 1 and supposedly there is an issue.
    Helpful post? Buy me a coffee.
  • #47 21622236
    Nargo
    Level 23  
    Easy Flasher did not work for me. BKFIL programmed without a stammer.
  • #50 21626464
    p.kaczmarek2
    Moderator Smart Home
    Same here:
    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification

    Added after 6 [minutes]:

    I moved T2-U discussion there: https://www.elektroda.com/rtvforum/topic4133041.html
    Helpful post? Buy me a coffee.
  • #51 21627996
    duceduc
    Level 2  
    Hi. I've got the same T1-S3 chip as op and have tried flashing with BKFil (v2.2.12.1) and I may have mess up and possibly bricked it. This is my first time flashing something like this.
    I have 3 wires soldered to the chip. Tx1(16), Rx1 (15), and grd(9). The other end is connected to the usb serial in reverse order for the tx, rx pins. When I click read flash, it is asking for a bin file. Not knowing where to find this file, I thought I could use the `OpenBK7238_QIO_1.18.145.bin` from BK7231 Flasher. Click on read flash again, I get no response.

    ```
    2025-08-07 09:34:31.497 stop Read thread.
    2025-08-07 09:34:31.501 start Read thread.
    2025-08-07 09:34:31.532 cmdline: |C:/Users/Duc/Desktop/BEKEN_BKFIL_V2.1.12.1_20250424/bk_loader.exe read -p 4 -b 1500000 --uart-type CH340 --mainBin-multi C:/Users/Duc/Downloads/OpenBK7238_QIO_1.18.145.bin@0x0-0x132000 --fast-link 1 |
    bk_loader version 2.1.12.1: build @apr 24 2025 17:11:46
    2025-08-07 09:34:31.532 start Read thread.
    2025-08-07 09:34:31.596 Current port : COM4 + BaudRate : 115200 connect success
    2025-08-07 09:34:31.596 do_reset_signal
    2025-08-07 09:34:31.596 Getting Bus...
    2025-08-07 09:34:32.087 Gotten Bus...
    2025-08-07 09:34:32.195 Current Chip is : BK7238
    2025-08-07 09:34:32.225 Current baudrate : 1500000 success
    2025-08-07 09:34:32.225 [ 0 ] file_startAddr : 0x00000000
    2025-08-07 09:34:32.225 [ 0 ] file_path : C:/Users/Duc/Downloads/OpenBK7238_QIO_1.18.145.bin
    2025-08-07 09:34:32.225 [ 0 ] file_length : 0x132000 (1224 KB)
    2025-08-07 09:34:32.225 [ 0 ] file_crc : 0x181901fe
    2025-08-07 09:34:32.225 Begin ReadFlash...
    2025-08-07 09:34:32.512 do_reset_signal
    2025-08-07 09:34:32.512 Getting Bus...
    2025-08-07 09:34:32.512 Getting Bus...
    2025-08-07 09:34:47.657 Getting Bus...
    ```

    I saw the Download button and thought this is where I can download the bin file. Click on that and I think it proceeded to erase with success, but got stuck on the flashing part. So I may have erased the stock file which I needed to create the bin file??? Is this bricked?

    Added after 4 [hours] 7 [minutes]:

    Update: I tried again using the same bin file mentioned above. It completed successfully. I am able to access 192.168.4.1. Now what do I do?
    I saw this post where the op provided his esphome yaml code. However, BK7238 chip is not supported in esphome.
  • #52 21628155
    p.kaczmarek2
    Moderator Smart Home
    Good job on flashing it with OBK. Remember that OBK has two different IR library versions - it can be helpful if you want to use more rare protocols.

    So, now you need to access it at 192.168.4.1 and configure it like you configure Tasmota - enter your WiFi data. Then you can configure GPIOs...
    Helpful post? Buy me a coffee.
  • #53 21628288
    duceduc
    Level 2  
    >>21628155

    Quote:
    Remember that OBK has two different IR library versions - it can be helpful if you want to use more rare protocols.


    Can you provide a link to where I can download the other library? It seems my AC unit codes are the same for most of the buttons I try to learn.
  • #54 21628303
    p.kaczmarek2
    Moderator Smart Home
    So you already have pins configured? Can you share config? Or is it the same as here?

    Here are our downloads:
    https://github.com/openshwprojects/OpenBK7231T_App/releases
    Look for irRemoteESP build. If it's not enabled yet for your platform, then we can enable it for you. It actually is not, is it, @divadiow ?
    Helpful post? Buy me a coffee.
  • #55 21628306
    divadiow
    Level 35  
    p.kaczmarek2 wrote:
    It actually is not, is it, @divadiow ?

    nope


    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification
  • #57 21628311
    p.kaczmarek2
    Moderator Smart Home
    Ok, let's try to enable it:
    https://github.com/openshwprojects/OpenBK7231T_App/pull/1750
    I am not sure, just from the memory, do we need to update makefile as well or not.
    Helpful post? Buy me a coffee.
  • #59 21628330
    duceduc
    Level 2  
    I think the pins are the same. Though I was not able to send code to AC unit successfully. Also, the led I use is WifiLED. LED did not work.

    Quote:
    "pins": {
    "6": "IRSend;3",
    "8": "IRRecv;2",
    "9": "dInput;1",
    "26": "WifiLED;2"
    },


    These 3 codes are for turn off unit, turn on AC, turn on heater. All produced the same code. My ac unit is a Mitsubishi Electric (Japan). Why it says PulseDistance. No idea. Also, my Toto toilet is showing PulseDistance with duplicate codes. As reference, I am currently using Broadlink RM3 & RM4 for these units with no issues.
    Quote:
    Info:IR:IR IR_PulseDistance 0x819 0x809 0 (40 bits)
    Info:IR:IR IR_PulseDistance 0x819 0x809 0 (40 bits)
    Info:IR:IR IR_PulseDistance 0x819 0x809 0 (40 bits)


    These are the url links I have tried, but did not work.
    Quote:

Topic summary

The discussion concerns the Tuya WiFi IR universal remote control module T1-3S and its compatibility with OpenBeken firmware. The user attempts to identify the chip and read UART logs via TX2/RX2 pins, encountering boot messages and errors indicating possible connection or user errors rather than firmware incompatibility. Respondents suggest using OpenBeken Easy Flasher in BK7238 mode, emphasizing correct wiring, power supply considerations (not powering the WiFi module solely from USB-UART 3.3V line), and using TX1/RX1 UART pins for user data instead of TX2/RX2, which are reserved for log output. Shortening cables and ensuring common ground among USB-TTL converter, power supply, and module are recommended. Despite multiple attempts and power cycling, module readout fails, likely due to connection issues rather than lack of OpenBeken support. The chip is identified as BK7238, and the module requires proper UART interface and power setup for successful flashing or communication.
Summary generated by the language model.
ADVERTISEMENT