logo elektroda
logo elektroda
X
logo elektroda

[BK7231N / CBU] Tuya S06 IR Blaster S06_CBU_V1.3: Flashing OpenBK7231T_App 1.17.116 on Linux

SoundreameR 4116 4
ADVERTISEMENT
  • #1 20585257
    SoundreameR
    Level 3  
    Hey folks! I am happy to join your community!
    Recently bought 3 pcs S06 IR blasters from temu.com with the hope of them being ESP8266 based, as all the experience I had so far was with Tasmota and ESP based hardware.
    To my surprise, the devices were something I have never seen before - BK7231N, CBU module. This is how I got here!

    The PCB version is S06_CBU_V1.3. Judging by the replies from others in similar threads, this is the most recent version. I read the README.md in the github repositories and managed to flash one of the devices with the latest version of OpenBK7231T_App (1.17.116) using hid_download_py on Linux using the following command:
    
    ./uartprogram OpenBK7231N_QIO_1.17.115.bin --unprotect -d /dev/ttyUSB0 -w --startaddr 0x0
    


    I used the unpopulated capacitor holes to jam two jumper wires for 5V VCC and GND (lazy and dangerous, I know) and tapped two little wires on the RX1 and TX1 pins. This allowed me to flash the device with very little soldering and without using a 3.3V (as I was too lazy to find a proper regulator and build a breadboard circuit).

    So far so good. By reading the forums and experimenting with the GPIO finder I came up with the following peripherals layout:
    
    P7 (PWM1) IRSend
    P8 (PWM2) IRRecv
    P24 (PWM4) WifiLED
    P26 (PWM5) Btn
    

    I find this rather important to share with others, as the pins for other device versions are different.
    Both IRRecv and IRSend work as expected.
    I came up with a little startup command to add fail-safe behavior to the button on the back of the device:
    
    AddEventHandler On3Click 26 backlog OpenAP
    

    This enables you to press the button 3 times in a row and trigger the AP mode to be able to reconfigure the device's wifi settings in case of connection failure.

    Will add a template as a reply as soon as I get a thread ID.

    My question to the developers is:
    Is there any hope of one day having a command similar to IRHVAC in Tasmota where you can essentially build the IR packet using human-readable values for mode and temperature? This could help greatly with using OpenBK IR blasters for AC control.

    [BK7231N / CBU] Tuya S06 IR Blaster S06_CBU_V1.3: Flashing OpenBK7231T_App 1.17.116 on Linux [BK7231N / CBU] Tuya S06 IR Blaster S06_CBU_V1.3: Flashing OpenBK7231T_App 1.17.116 on Linux [BK7231N / CBU] Tuya S06 IR Blaster S06_CBU_V1.3: Flashing OpenBK7231T_App 1.17.116 on Linux [BK7231N / CBU] Tuya S06 IR Blaster S06_CBU_V1.3: Flashing OpenBK7231T_App 1.17.116 on Linux [BK7231N / CBU] Tuya S06 IR Blaster S06_CBU_V1.3: Flashing OpenBK7231T_App 1.17.116 on Linux

    Added after 6 [minutes]:

    S06_CBU_V1.3 template:

    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "S06 CBU 1.3 IR Blaster",
      "model": "S06",
      "chip": "BK7231N",
      "board": "S06_CBU_V1.3",
      "flags": "1024",
      "keywords": [
        "IR",
        "CBU",
        "S06",
        "38kHz",
        "Remote",
        "USB"
      ],
      "pins": {
        "7": "IRSend;0",
        "8": "IRRecv;0",
        "24": "WifiLED;0",
        "26": "Btn;0"
      },
      "command": "AddEventHandler On3Click 26 backlog OpenAP",
      "image": "https://obrazki.elektroda.pl/9589120000_1684403204_thumb.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/viewtopic.php?p=20585257#20585257"
    }
    
  • ADVERTISEMENT
  • #2 20585415
    p.kaczmarek2
    Moderator Smart Home
    Thank you for the device review/template. The IR library update is being worked on currently. Have you seen this pull request?
    https://github.com/openshwprojects/OpenBK7231T_App/pull/723
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20585455
    SoundreameR
    Level 3  
    Yeah, but I didn't see any mention of functionality similar to the IRHVAC command. Only raw hex packets.
  • ADVERTISEMENT
  • #4 20587032
    ferbulous
    Level 18  
    I’d also like to note that I did a swap with esp32-c3-c05 since I needed irhvac. But I noticed irsend for irhvac works intermittently compared to esp8266 which is a bit odd (tasmota issue)
  • #5 20591349
    SoundreameR
    Level 3  
    Is the pinout and form factor identical or do you need to make some modifications for this to work? Also, a useful tip for IRHVAC, make sure to add few repeats. This usually resolves the issue with transmitting.
ADVERTISEMENT