logo elektroda
logo elektroda
X
logo elektroda

How to Send RAW IR Codes With OpenBeken 1.18.31 for MAXA AC Remote Control

MuriFlavo 270 15
ADVERTISEMENT
  • #1 21583229
    MuriFlavo
    Level 3  
    I have a remote flashed with Version: 1.18.31 My post of flashing : https://www.elektroda.com/rtvforum/topic4103748.html
    I have a chinese brand of ac called MAXA and i want to turn on and of my ac, when looking into the logs of ir remote and blasting the ac remote i get some data but i have no idea what to do with it and the stuff i tried doesn't seem to work (mostly says not like NEC-01-0).

    turns on:
    "
    type: raw
    frequency: 38000
    duty_cycle: 0.330000
    data: 9114 4420 716 1591 716 490 715 490 741 1567 740 1569 740 1569 738 469 736 469 736 1571 736 1572 736 1572 736 469 737 470 736 470 735 470 736 470 736 470 736 470 736 470 736 470 736 470 736 1571 736 1571 737 470 736 471 735 471 736 470 735 470 736 1571 736 471 736 1572 735 470 735 470 736 1572 735 470 736 19904 736 470 736 469 737 470 736 470 736 469 737 470 736 470 736 469 736 470 736 468 736 470 737 470 735 471 736 470 736 470 736 470 737 470 736 470 735 470 736 470 736 470 736 471 735 472 735 470 735 470 735 470 736 470 736 470 735 470 736 1572 735 471 735 1572 735 39914 9084 4398 737 1571 737 469 737 470 736 1572 736 1572 736 1571 736 470 736 470 737 1573 735 1572 736 1572 736 471 735 470 736 470 735 470 738 469 736 470 736 470 736 470 735 470 735 470 736 1573 735 1572 736 470 736 470 736 470 734 471 735 470 735 1572 736 1572 735 1571 736 471 735 470 735 1573 736 471 734 19907 736 469 737 470 736 469 736 471 736 469 736 470 737 470 736 469 736 470 737 470 736 470 736 470 735 470 735 470 736 471 735 471 735 470 735 470 735 470 735 470 736 1573 734 470 736 1571 736 471 735 471 735 470 735 471 736 471 735 1572 735 1573 735 1575 734 1572 735
    "

    turns off:
    "
    type: raw
    frequency: 38000
    duty_cycle: 0.330000
    data: 9106 4398 731 499 706 500 705 502 702 504 701 505 701 505 701 1606 701 505 701 1607 701 505 701 506 700 1607 700 506 700 506 700 505 700 505 701 506 700 506 700 506 699 506 700 506 700 1607 700 506 700 506 700 506 700 505 701 506 700 506 700 1608 699 506 700 1608 699 506 700 506 700 1608 700 506 700 19941 701 1606 700 505 701 505 701 506 700 505 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 701 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 699 506 700 506 700 1608 700 1607 700 506 700 506 700
    "
    The raw values are from the flipper, the off i got from universal remotes and is apparently from Daichi DA25AVQS1-W


    with IR and RAW features on log level INFO i get:
    Info:IR:IR IR_PulseDistance 0xD21 0xD0B 0 (35 bits)
    Info:IR:IR IR_PulseDistance 0xD21 0xD0B 0 (31 bits)
    Info:IR:IR IR_PulseDistance 0xD21 0xD0B 0 (35 bits)

    with IR and RAW features on log level ALL i get:
    Debug:IR:IR decode returned true, protocol 1
    Debug:IR: Raw-Data=0x2
    Debug:IR: 35 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol PulseDistance (1)
    Info:IR:IR IR_PulseDistance 0xD21 0xD0B 0 (35 bits)
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 1
    Debug:IR: Raw-Data=0x58000100
    Debug:IR: 31 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol PulseDistance (1)
    Info:IR:IR IR_PulseDistance 0xD21 0xD0B 0 (31 bits)
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 1
    Debug:IR: Raw-Data=0x2
    Debug:IR: 35 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol PulseDistance (1)
    Info:IR:IR IR_PulseDistance 0xD21 0xD0B 0 (35 bits)
    Debug:IR:IR fire event took 0ms

    Can someone help me make this work, on openbeken, otherwise ill have to buy something with an esp and use tasmota-ir.
    AI: Can you specify the exact hardware or board you're running OpenBeken on (e.g., model of the remote or IR blaster device)?
    (Tuya) Shenzhen Neo IR Remote Control - 5V USB-C (NAS-IR02W6)
    AI: What exact method or commands have you tried in OpenBeken to send the raw IR data—are you using the web interface, MQTT, scripting, or something else? If possible, can you share an example of what you tried?
    using mqtt and log console i tried things like "RAW 9114,4420,..." and some other stuff i didn't note down.
  • ADVERTISEMENT
  • #2 21583364
    DeDaMrAz
    Level 20  
    Use OTA and upload this attached file build for test (!!!)

    Next in create autoexec.bat in LFS and add these lines

    startDriver httpButtons
    StartDriver IR2
    SetupIR2 50 0.33 0 8 24
    
    alias ac_on SendIR2 9114 4420 716 1591 716 490 715 490 741 1567 740 1569 740 1569 738 469 736 469 736 1571 736 1572 736 1572 736 469 737 470 736 470 735 470 736 470 736 470 736 470 736 470 736 470 736 470 736 1571 736 1571 737 470 736 471 735 471 736 470 735 470 736 1571 736 471 736 1572 735 470 735 470 736 1572 735 470 736 19904 736 470 736 469 737 470 736 470 736 469 737 470 736 470 736 469 736 470 736 468 736 470 737 470 735 471 736 470 736 470 736 470 737 470 736 470 735 470 736 470 736 470 736 471 735 472 735 470 735 470 735 470 736 470 736 470 735 470 736 1572 735 471 735 1572 735 39914 9084 4398 737 1571 737 469 737 470 736 1572 736 1572 736 1571 736 470 736 470 737 1573 735 1572 736 1572 736 471 735 470 736 470 735 470 738 469 736 470 736 470 736 470 735 470 735 470 736 1573 735 1572 736 470 736 470 736 470 734 471 735 470 735 1572 736 1572 735 1571 736 471 735 470 735 1573 736 471 734 19907 736 469 737 470 736 469 736 471 736 469 736 470 737 470 736 469 736 470 737 470 736 470 736 470 735 470 735 470 736 471 735 471 735 470 735 470 735 470 735 470 736 1573 734 470 736 1571 736 471 735 471 735 470 735 471 736 471 735 1572 735 1573 735 1575 734 1572 735
    
    setButtonEnabled 0 1
    setButtonLabel 0 "Send On"
    setButtonCommand 0 "ac_on"


    on the OBK home page you should get an AC_ON button, press it and confirm with your flipper that it works, or even on your device and report back please.
  • #3 21583983
    MuriFlavo
    Level 3  
    >>21583364 So the logs show that it sends stuff, but neither the flipper nor the ac detect anything. Also a thing i noticed is, there doesn't seem to be any light coming from the leds (checking with my phone camera), nor does the console print received ir.
    "
    Info:IR:SendIR2 args len: 569
    Info:IR:Value: 9106
    Info:IR:Value: 4398
    Info:IR:Value: 731
    Info:IR:Value: 499
    Info:IR:Value: 706
    Info:IR:Value: 500
    Info:IR:Value: 705
    Info:IR:Value: 502
    Info:IR:Value: 702
    Info:IR:Value: 504
    Info:IR:Value: 701
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 1606
    Info:IR:Value: 701
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 1607
    Info:IR:Value: 701
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 1607
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 505
    Info:IR:Value: 700
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 699
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 1607
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 1608
    Info:IR:Value: 699
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 1608
    Info:IR:Value: 699
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 1608
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 19941
    Info:IR:Value: 701
    Info:IR:Value: 1606
    Info:IR:Value: 700
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 505
    Info:IR:Value: 701
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 505
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 701
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 699
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 1608
    Info:IR:Value: 700
    Info:IR:Value: 1607
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Value: 506
    Info:IR:Value: 700
    Info:IR:Queue size 140
    "
  • ADVERTISEMENT
  • #4 21583985
    DeDaMrAz
    Level 20  
    Is your OBK pin configuration correct then if no LED's are showing on camera??

    As I can replicate your code and my flipper picks up the unknown code.

    Share more details about the device, pictures maybe?
  • #5 21583996
    MuriFlavo
    Level 3  
    >>21583985 Thing is before I flashed your file / yesterday my flipper did detect ir sent from the remote so pinout should be right, and if you want picture they are available in the post which I linked at the start. Ota is the update right? so I can upload the old firmware if I still have it and try if the leds still work?
  • #6 21584006
    DeDaMrAz
    Level 20  
    Ok, my bad that I didn't check the original teardown, looks like you have M chip flavor, which should work with the OTA file I gave you....hmmm, let me check.

    OTA (Over The Air) update is the firmware with .rbl extension you can use to change firmware back - yes.

    I'll ping @divadiow as I have no BK7231M (somehow) devices to test maybe he can provide more info?
  • #8 21584016
    DeDaMrAz
    Level 20  
    MuriFlavo wrote:
    this is the file i flashed originally i think


    That is the UART flash file, via cable, OTA is done from a webapp mostly so no soldering or anything if you already have that flashed.
  • ADVERTISEMENT
  • #9 21584022
    divadiow
    Level 35  
    DeDaMrAz wrote:
    BK7231M

    Pretty sure it's a misprinted N rather than an actual M. Seemed to be standard Tuya BK7231N affair
  • #10 21584031
    MuriFlavo
    Level 3  
    So I flashed back the 1.18.31.rbl and the LEDs flash again...
  • ADVERTISEMENT
  • #12 21584048
    DeDaMrAz
    Level 20  
    Ok, takes a while to catch up on it all after being away for 7 months.

    SetupIR2 50 0.33 0 8 24


    This means Setup IR2 driver <period_in_ms> <duty_cycle_ON> <duty_cycle_OFF> <TXPIN> so you are obviously not on pin 8 but pin 7 as per the teardown @divadiow did with you 😁

    Change the above line to

    SetupIR2 50 0.33 0 7 24


    And report back.

    Sorry
  • #13 21584260
    MuriFlavo
    Level 3  
    >>21584048 OMG IT WORKS!!! Thank you so much, I had no idea what those numbers represented.

    Added after 4 [minutes]:

    So now I can send using these buttons, how do I form the mqtt payload and topic so I can send from homeassistant?
  • #14 21584263
    DeDaMrAz
    Level 20  
    So now you have a basic template you can work with;

    alias something <your RAW code>

    setButtonEnabled 1 1 - set button 2 to enable (1, 0 to dissable) (button 2 as first button is enumerated zero)
    setButtonLabel 1 "Send OFF" - this is a button label
    setButtonCommand 1 "something"

    and so on....

    Word of caution, since the AC commands are large and somewhat problematic, be careful and pay attention that they actually do what you want them to. IR2 is not 100% perfect and sending RAW will not replicate your code pulse width for pulse width or 1 for 1 ( as you may se on my flipper IR capture). So just use with caution and pay attention to the device.
  • #15 21584266
    MuriFlavo
    Level 3  
    >>21584263 this should work, right?
    "
    startDriver httpButtons
    StartDriver IR2
    SetupIR2 50 0.33 0 7 24

    alias ac_on SendIR2 9114 4420 716 1591 716 490 715 490 741 1567 740 1569 740 1569 738 469 736 469 736 1571 736 1572 736 1572 736 469 737 470 736 470 735 470 736 470 736 470 736 470 736 470 736 470 736 470 736 1571 736 1571 737 470 736 471 735 471 736 470 735 470 736 1571 736 471 736 1572 735 470 735 470 736 1572 735 470 736 19904 736 470 736 469 737 470 736 470 736 469 737 470 736 470 736 469 736 470 736 468 736 470 737 470 735 471 736 470 736 470 736 470 737 470 736 470 735 470 736 470 736 470 736 471 735 472 735 470 735 470 735 470 736 470 736 470 735 470 736 1572 735 471 735 1572 735 39914 9084 4398 737 1571 737 469 737 470 736 1572 736 1572 736 1571 736 470 736 470 737 1573 735 1572 736 1572 736 471 735 470 736 470 735 470 738 469 736 470 736 470 736 470 735 470 735 470 736 1573 735 1572 736 470 736 470 736 470 734 471 735 470 735 1572 736 1572 735 1571 736 471 735 470 735 1573 736 471 734 19907 736 469 737 470 736 469 736 471 736 469 736 470 737 470 736 469 736 470 737 470 736 470 736 470 735 470 735 470 736 471 735 471 735 470 735 470 735 470 735 470 736 1573 734 470 736 1571 736 471 735 471 735 470 735 471 736 471 735 1572 735 1573 735 1575 734 1572 735

    alias ac_off SendIR2 9106 4398 731 499 706 500 705 502 702 504 701 505 701 505 701 1606 701 505 701 1607 701 505 701 506 700 1607 700 506 700 506 700 505 700 505 701 506 700 506 700 506 699 506 700 506 700 1607 700 506 700 506 700 506 700 505 701 506 700 506 700 1608 699 506 700 1608 699 506 700 506 700 1608 700 506 700 19941 701 1606 700 505 701 505 701 506 700 505 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 701 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 700 506 699 506 700 506 700 1608 700 1607 700 506 700 506 700

    setButtonEnabled 0 1
    setButtonEnabled 1 1
    setButtonLabel 0 "Send On"
    setButtonLabel 1 "Send off"
    setButtonCommand 0 "ac_on"
    setButtonCommand 1 "ac_off"

    addMQTTAlias ac_on ac_on
    addMQTTAlias ac_off ac_off
    "
    Also as far as I can see the ac does what I want it to without doing weird things so for my case it's perfect. thank you.

Topic summary

A user with a MAXA brand air conditioner and a remote flashed with OpenBeken firmware version 1.18.31 sought to send RAW IR codes to control the AC. The user captured raw IR data but was unable to transmit it successfully, noting no IR LED activity or AC response. Troubleshooting revealed the IR driver was configured for pin 8, while the device required pin 7. Adjusting the SetupIR2 command to use pin 7 enabled successful IR transmission and LED indication. The user was guided on creating aliases for sending raw IR codes and advised on cautious use due to IR2 driver limitations in replicating pulse widths exactly. Further assistance included instructions on OTA firmware updates and configuring button commands. The discussion concluded with the user achieving functional IR control and inquiring about MQTT payload formation for Home Assistant integration.
Summary generated by the language model.
ADVERTISEMENT