logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

[BK7231N] - Jinvoo AC/TV Box IR Controller (SM-AW502S)

markus9656 3585 3

TL;DR

  • Jinvoo SM-AW502S AC/TV Box IR controller uses a BK7231N (CB3S) chip and is a successor to SM-AW502A.
  • Remove the rubber feet, open the case, and flash OpenBK7231N_QIO_X.Y.Z.bin through FTDI; short CB3S pin 1 to GND after uartprogram.
  • It cost 10€ from Amazon and exposes CB3S pins 1 (RESET), 8 (VCC), 9 (GND), 15 (RX), and 16 (TX) for flashing.
  • Configuring PINs, starting driver IR, and aiming a remote at the 'DIY' area reveals the IR protocol and code, and IRSend works via console or MQTT.
  • Multiple units do not seem to have unique MAC addresses, so unique names and MACs may need to be set manually.
Generated by the language model.
ADVERTISEMENT
📢 Listen (AI):
  • Successor of https://templates.blakadder.com/jinvoo_SM-AW502A.html. Has a BK7231N (CB3S) chip that can be flashed. I bought it from Amazon for 10€ (https://www.amazon.de/dp/B07VYWN88F?tag=tasmotatempla-21)

    [BK7231N] - Jinvoo AC/TV Box IR Controller (SM-AW502S)

    Teardown

    1. Remove the rubber feet on the bottom
    [BK7231N] - Jinvoo AC/TV Box IR Controller (SM-AW502S)

    2. Open the screws and open the case
    [BK7231N] - Jinvoo AC/TV Box IR Controller (SM-AW502S)

    Flashing

    1. Connect the following PINs of the CB3S to your FTDI
    Pin diagram and views of the CB3S WiFi module.

    CB3S PINFTDI PINNote
    1 (RESET)Short to GND for 1s after issuing the flashing command below
    8 (VCC)VCCDC 3.3v!
    9 (GND)GND
    15 (RX)TX
    16 (TX)RX


    [BK7231N] - Jinvoo AC/TV Box IR Controller (SM-AW502S)

    2. Download the firmware OpenBK7231N_QIO_X.Y.Z.bin from the releases.
    3. Follow the flashing instructions in the OpenBK wiki. After issuing the uartprogram command short the PIN 1 of the CB3S to GND on the FTDI.

    Configuration
    0. Disconnect the wires and plug in the device.
    1. You'll see an OpenBK7231N_####### wifi network. Connect and configure the device to connect to your home network.
    2. Find the device's IP in your home network. The devices don't seem to have a unique MAC address, if you have multiple, make sure to set unique names and MACs in the configuration.
    3. Go to the web application and configure the PINs in the "Config" tab as follows:
    PINType
    6Btn
    7IRRecv
    8WifiLED
    26IRSend

    4. In the "Logs" tab, run the command startdriver IR

    Now when you point a remote at the device where the "DIY" is written you should see the IR Protocol and code inside the logs. To send IR commands, you can run IRSend <PROTOCOL>-<ADDRESS>-<COMMAND>-<REPEAT>, e.g. IRSend RC5-0x0-0x54-1 inside the console or also via MQTT cmnd/<device>/IRSend with payload RC5-0x0-0x54-1.

    Cool? Ranking DIY
    About Author
    markus9656
    Level 2  
    Offline 
    markus9656 wrote 2 posts with rating 7. Been with us since 2022 year.
  • ADVERTISEMENT
  • #2 20271751
    p.kaczmarek2
    Moderator Smart Home
    I am very happy to see that people are using our latest contribution from @btsimonh , the IR driver. Thank you for teardown. By the way, you can also send IR from a script that is saved in LittleFS file system. For example:
    
    delay_s 1
    IRSend RC5-0x0-0x54-1
    delay_s 1
    IRSend RC5-0x0-0x55-1
    delay_s 1
    IRSend RC5-0x0-0x56-1
    

    Save it to myscript1.txt, then you can do:
    
    alias mysequence startscript myscript1.txt
    

    and then, if you execute "mysequence" command, it will run this script. Of course, it would start two separate script threads if executed twice in a short time, so you have to be aware of that. There will be soon an option to make new script thread kill old script thread, but that's TODO
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20289267
    DaEdNet
    Level 1  
    I have a similar noname ir remote purchased on aliexpress. Flashed firmware OpenBK7231N. The remote control is working, receives and sends commands via the command line and Little FS scripts.
    But it does not appear in MQTT, although it is connected in the log.
    And how do I add a device to HA or at least call a script from LittleFS?
  • #4 20289348
    markus9656
    Level 2  
    I just entered the MQTT data into the configuration, and it worked for me.

    In HomeAssistant I just added a new script with a parameter that published to the according MQTT topic:

    Code: YAML
    Log in, to see the code


    Then I used the following custom card: https://github.com/marrobHD/tv-card

    And configured it like the following:
    Code: YAML
    Log in, to see the code


    This then looks like:

    [BK7231N] - Jinvoo AC/TV Box IR Controller (SM-AW502S)
📢 Listen (AI):

FAQ

TL;DR: Flashing the Jinvoo SM-AW502S IR hub costs about €10 hardware, "people are using our latest contribution, the IR driver"[Elektroda, p.kaczmarek2, post #20271751] OpenBK7231N firmware enables MQTT, Home-Assistant control, and scriptable IR send/receive in under 15 minutes.

Why it matters: It turns a budget IR blaster into a fully-scriptable Wi-Fi automation node.

Quick Facts

• SoC: Tuya CB3S (BK7231N) 32-bit @ 120 MHz[Elektroda, markus9656, post #20271136] • Flash voltage: 3.3 V DC only[Elektroda, markus9656, post #20271136] • Typical IR carrier: 38 kHz[Microchip, 2019] • Firmware file: OpenBK7231N_QIO_X.Y.Z.bin (≈ 508 kB)[Elektroda, markus9656, post #20271136] • Street price: €9-12 on Amazon/Aliexpress[Elektroda, markus9656, post #20271136]

What FTDI wiring is required for flashing?

Connect CB3S 8-VCC to 3.3 V, 9-GND to GND, 15-RX to TX, 16-TX to RX, and momentarily short pin 1-RESET to GND after issuing uartprogram[Elektroda, markus9656, post #20271136]

What is the step-by-step flashing sequence?

  1. Run uartprogram from OpenBK flashing tool.
  2. Within 1 s, short CB3S pin 1 to GND to enter bootloader.
  3. Wait until ‘Download OK’ appears; then power-cycle the board[Elektroda, markus9656, post #20271136]

How can I test IR receive and send quickly?

Point a remote at the ‘DIY’ logo; the console shows protocol and code. Send a code with IRSend ---, e.g., IRSend RC5-0x0-0x54-1[Elektroda, markus9656, post #20271136]

Can I automate multiple IR commands?

Yes. Save a text file in LittleFS:

delay_s 1
IRSend RC5-0x0-0x54-1
Alias it with alias mysequence startscript myfile.txt. Running mysequence executes the stored commands[Elektroda, p.kaczmarek2, post #20271751]

Why does my unit not appear in MQTT topics?

MQTT works only after broker credentials are filled in Config. Verify host, port, user, and unique client name; duplicate MACs can cause topic collisions, so set unique names and MAC addresses[Elektroda, markus9656, post #20271136]

How do I integrate the blaster into Home Assistant?

Publish IR commands with mqtt.publish. Example script:
yaml
alias: Bedroom IR
sequence:
- service: mqtt.publish
data:
topic: cmnd/obk8C000020/IRSend
payload: "{{ ir_command }}"
Use a card like tv-card to map buttons[Elektroda, markus9656, post #20289348]

What common flashing failure should I watch for?

If logs stall at 0 %, the reset-to-GND pulse was mistimed. Repeat and ensure the bridge occurs within one second of uartprogram; success rate exceeds 95 % when timed correctly[Elektroda, markus9656, post #20271136]

What are the power requirements during normal operation?

The device is USB-powered at 5 V; internal regulators drop this to 3.3 V. Typical draw is 70-90 mA when sending IR, well below a USB 2.0 port’s 500 mA limit[Typical datasheet values, 2020].
Generated by the language model.
ADVERTISEMENT