logo elektroda
logo elektroda
X
logo elektroda

BK7231N - Universal IR Remote Contorl

yarix2 34524 176
ADVERTISEMENT
  • #91 20330266
    p.kaczmarek2
    Moderator Smart Home
    Thanks, noted.

    In a meantime - take a look here. I have added a scrap buttons and IR receiver from DVD player to LED strip and it works:
    BK7231N - Universal IR Remote Contorl
    
    
    SetButtonTimes 10 3 3
    
    alias add_turnoff_event addRepeatingEvent 4 1 led_enableAll 0
    
    addEventHandler OnHold 23 add_dimmer 10
    addEventHandler OnHold 22 add_dimmer -10
    addEventHandler OnDblClick 22 led_dimmer 5
    addEventHandler OnDblClick 23 led_dimmer 100
    addEventHandler OnClick 20 add_turnoff_event
    
    addEventHandler2 IR_Samsung 0x707 0x62 add_dimmer 10
    addEventHandler2 IR_Samsung 0x707 0x65 add_dimmer -10
    addEventHandler2 IR_Samsung 0x707 0x61 led_enableAll 0
    addEventHandler2 IR_Samsung 0x707 0x60 led_enableAll 1
    

    First button is On/Off, second and third are brightness (hold to increase/decrease, double click to set lowest/highest), fourth is a delayed turn off (for testing purposes, it turns off after few seconds).
    BK7231N - Universal IR Remote Contorl

    With OpenBeken, you can add IRReceiver to any supported device, same goes with buttons.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #92 20351235
    dksaarth
    Level 2  
    avdm wrote:

    Below as screenshot of my config of the s08.

    BK7231N - Universal IR Remote Contorl


    Thank you for the screenshot - with the correct pin for IRSend I can now pick up flashes with my phone's camera when doing something like:

    IRSend NEC 0x08 0x04 1


    Unfortunately looks like my aircon remote just shows unknown as below. The brand is EcoAire but the remote is ZH/TY-01 which appears to be used for several different brands and is listed as supported on https://github.com/crankyoldgit/IRremoteESP8266/blob/master/SupportedProtocols.md

    
    Info:MQTT:Publishing val IR_UNKNOWN 0x0 0 to obk1218B3C1/ir/get retain=0
    Info:IR:IR MQTT publish IR_UNKNOWN 0x0 0 took 5ms
    Info:MQTT:Publishing val {"IrReceived":{"Protocol":"UNKNOWN","Bits":0,"Data":"0x0"}} to obk1218B3C1/RESULT retain=0
    Info:MQTT:Publishing val IR_UNKNOWN 0x0 0 to obk1218B3C1/ir/get retain=0
    Info:IR:IR MQTT publish IR_UNKNOWN 0x0 0 took 5ms
    Info:MQTT:Publishing val {"IrReceived":{"Protocol":"UNKNOWN","Bits":0,"Data":"0x0"}} to obk1218B3C1/RESULT retain=0
    
  • #93 20351915
    yarix2
    Level 6  
    p.kaczmarek2 wrote:
    ionoleinic wrote:


    doe699450 wrote:
    the protocol of my Aircon should be supported (MITSUBISHI_AC) in IRremoteESP8266 library

    Huh, thanks, you made me realize what's wrong! We need to update our IRLibrary. We have an older version. Thanks again, that's a useful information.
    @btsimonh , as a maintainer of IR stuff, would you be able to do that?



    can you share the plans for upgrading IR protocols? i have Electra AC which is wrongly identified as Samsung (in IRRecv log), moreover, when i try to replay the received code the AC doesn't react.
    eg. i get
    Info:IR:IR IR_Samsung 0xB24D 0x202 0
    to trun on/off the AC, but sending
    IRSend Samsung-B24D-202-1
    
    doesn't do anything....

    the https://github.com/crankyoldgit/IRremoteESP8266 seems to have more supported protocols.[/code][/code]
  • #94 20354088
    crazybyte
    Level 4  
    thinhvq wrote:
    Hi,
    I have a S06 IR (PCB: S06-CBU-V1.3) and want to flash BK7231N firmware. Is anyone help me how to flash it via serial? Circuit board of an open Wi-Fi IR controller case. A circuit board with an electronic module in an open casing.
    Thanks you


    I've been able to flash it with the following command:

    ./uartprogram OpenBK7231N_QIO_1.15.240.bin -d /dev/ttyUSB0 -w -s 0x0 -u

    I previously tried without "-u" and "-s 0x0" and I was unable to flash it.

    The connections I use are the common one: VCC:VCC, GND:GND, TX:RX, RX:TX, CEN:GND, as shown in the following pic.

    BK7231N - Universal IR Remote Contorl

    I will now proceed with the configuration via the webUI.
  • #95 20354144
    p.kaczmarek2
    Moderator Smart Home
    It is also worth doing a flash read first. Full 2 MB. It might be useful for doing OTA hack for further devices (so you can flash without soldering).

    hid_download_py flashing is shown here:
    https://www.youtube.com/watch?v=PKkiqDNFIx8&t=11s&ab_channel=Elektrodacom
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #96 20354227
    crazybyte
    Level 4  
    yarix2 wrote:
    p.kaczmarek2 wrote:
    ionoleinic wrote:


    doe699450 wrote:
    the protocol of my Aircon should be supported (MITSUBISHI_AC) in IRremoteESP8266 library

    Huh, thanks, you made me realize what's wrong! We need to update our IRLibrary. We have an older version. Thanks again, that's a useful information.
    @btsimonh , as a maintainer of IR stuff, would you be able to do that?



    can you share the plans for upgrading IR protocols? i have Electra AC which is wrongly identified as Samsung (in IRRecv log)

    the https://github.com/crankyoldgit/IRremoteESP8266 seems to have more supported protocols.[/code][/code]


    I second that, I have Samsung AC which is not supported by OpenBeken, but it is in Tasmota.

    Currently getting:

    Info:MQTT:Publishing val IR_UNKNOWN 0x0 0 to IR_Clima_Sala/ir/get retain=0
    Info:IR:IR MQTT publish IR_UNKNOWN 0x0 0 took 4ms
    Info:MQTT:Publishing val IR_UNKNOWN 0x0 0 to IR_Clima_Sala/ir/get retain=0
    Info:IR:IR MQTT publish IR_UNKNOWN 0x0 0 took 5ms
    Error:HTTP:TCP Client is disconnected, fd: 3

    Do you have any update about when the library could be upgraded?
  • #97 20355669
    crazybyte
    Level 4  
    Moreover, my LG remote controller (TV) is wrongly detected as a NEC device.
  • #98 20355693
    omelchuk890
    Level 11  
    crazybyte wrote:
    Moreover, my LG remote controller (TV) is wrongly detected as a NEC device.

    In this case, the device model and the data transfer protocol from the remote to it are different things.
    Therefore, this is not a mistake.
  • ADVERTISEMENT
  • #99 20383319
    crazybyte
    Level 4  
    crazybyte wrote:
    yarix2 wrote:
    p.kaczmarek2 wrote:
    ionoleinic wrote:


    doe699450 wrote:
    the protocol of my Aircon should be supported (MITSUBISHI_AC) in IRremoteESP8266 library

    Huh, thanks, you made me realize what's wrong! We need to update our IRLibrary. We have an older version. Thanks again, that's a useful information.
    @btsimonh , as a maintainer of IR stuff, would you be able to do that?



    can you share the plans for upgrading IR protocols? i have Electra AC which is wrongly identified as Samsung (in IRRecv log)

    the https://github.com/crankyoldgit/IRremoteESP8266 seems to have more supported protocols.[/code][/code]


    I second that, I have Samsung AC which is not supported by OpenBeken, but it is in Tasmota.

    Currently getting:

    Info:MQTT:Publishing val IR_UNKNOWN 0x0 0 to IR_Clima_Sala/ir/get retain=0
    Info:IR:IR MQTT publish IR_UNKNOWN 0x0 0 took 4ms
    Info:MQTT:Publishing val IR_UNKNOWN 0x0 0 to IR_Clima_Sala/ir/get retain=0
    Info:IR:IR MQTT publish IR_UNKNOWN 0x0 0 took 5ms
    Error:HTTP:TCP Client is disconnected, fd: 3

    Do you have any update about when the library could be upgraded?


    Up
  • #100 20397694
    avdm
    Level 5  
    Any updates on the IR bugs? Sending Panasonic or Sony codes still doesn't seem to work. I have 2 different BK7231N IR devices so I am able to test if needed.
  • #101 20399436
    Antiheld
    Level 2  
    Hi all together,

    I have a S06 Universal Remote IR Blaster and configured it for mqtt and Home Assistant. When I push a button on any remote it receives the signal and shows it in the log. But I dont know how to convert the command to send the same signal.

    e.g I get:

    Info:IR:IR MQTT publish IR_NEC 0x4040 0x4D 0 took 5ms
    Info:MQTT:Publishing val {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0xB24D4040"}} to ir_remote/RESULT retain=0


    What would be the command to send the same signal?

    Thanks for your help!

    Edit:
    It worked with
    IRSend NEC 0x6CD2 0xCB 0

    But the device responded just sometimes. Anybody knows why its not working always?
  • #102 20402613
    e2ret
    Level 2  
    I have an S06 Universal Remote IR Blaster and can't set it up to work with Home Assistant.
    I installed the firmware and configured mqtt

    BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
  • ADVERTISEMENT
  • #103 20402628
    Antiheld
    Level 2  
    e2ret wrote:
    Hi

    I have an S06 Universal Remote IR Blaster and can't set it up to work with Home Assistant.
    I installed the firmware and configured mqtt

    BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl


    In the Git Repo is writte:
    Quote:
    Note: Currently, discovery is only implemented for light and relay entities.


    You have to put mqtt-config manually.
  • #104 20402630
    e2ret
    Level 2  
    Antiheld wrote:
    You have to put mqtt-config manually.


    how to do it?
  • #105 20402633
    Antiheld
    Level 2  
    e2ret wrote:
    Antiheld wrote:
    You have to put mqtt-config manually.


    how to do it?


    I think you already did as it says "connected". Just try to send mqtt-messages to your divices topic.

    Did you setup MQTT-Config?

    BK7231N - Universal IR Remote Contorl
  • #106 20402643
    e2ret
    Level 2  
    Antiheld wrote:
    e2ret wrote:
    Antiheld wrote:
    You have to put mqtt-config manually.


    how to do it?


    I think you already did as it says "connected". Just try to send mqtt-messages to your divices topic.

    Did you setup MQTT-Config?

    BK7231N - Universal IR Remote Contorl


    yes i have it set up
    mqtt explorer

    BK7231N - Universal IR Remote Contorl

    Added after 1 [hours] 54 [minutes]:

    I got the command to work
    Code: YAML
    Log in, to see the code


    how to send mqtt from home assistant?

    Code: YAML
    Log in, to see the code


    this does not work
  • #107 20402877
    p.kaczmarek2
    Moderator Smart Home
    Hey @e2ret , sorry for being not active in this topic, I am doing finalizations of Alexa and ioBroker compatibility (just a tiny fixes because we already mimic Tasmota device well), but it seems your issue is here:
    
    RemoteBadroom/IRSend
    

    The topic for commands is like in Tasmota,
    
    cmnd/RemoteBadroom/IRSend
    

    So you need to add a "cmnd".
    You can also try (just to debug stuff) to use POWER command on your sockets/lights, it works like in Tasmota, but all commands require cmnd prefix.
    
    cmnd/RemoteBadroom/POWER
    
    Helpful post? Buy me a coffee.
  • #108 20402912
    e2ret
    Level 2  
    Code: YAML
    Log in, to see the code


    Yes! this works great!
    thanks !
  • #109 20481967
    alekindre
    Level 2  
    Hello! Love your work, however I'm struggling to follow up.
    I have the same exact device and would like to flash it as well. I managed to solder the cables to the board to connect it to the UART to USB device, but that's pretty much it. I don't really understand the flashing tool (Beken Writer). I don't even understand where to get the target bin file. I'm very lost. Could anyone kinldy guide me trhough the whole process or send me some useful link/tutorials.
    Thank you for your help!!
  • #110 20481993
    p.kaczmarek2
    Moderator Smart Home
    Maybe first try our experimental flasher tool, which automatically downloads binary and is a GUI application for Windows?
    https://github.com/openshwprojects/BK7231GUIFlashTool

    or if you want to use bkWriter 1.6 (which works for T platform well, BK7231T, not good for T) then watch our video:
    [youtube]
    https://www.youtube.com/watch?v=Yb3zXtBdSnE
    [/youtube]
    Or if you have a BK7231N, maybe look here, how to use hid_download_py Python script, it may be for a bit more advanced users:
    https://www.youtube.com/watch?v=2e1SUQNMrgY
    Helpful post? Buy me a coffee.
  • #111 20482412
    crazybyte
    Level 4  
    Is there any update? I remember there was the willing of align OpenBeken with the same set of IR codecs that EspHome and Tasmota have.

    Currently OpenBeken for IR devices is very limited as very few codec are integrated (I guess is the set from Arduino), can you please consider this request with higher priority as it will unlock compatibility with way more devices?

    Thank you
  • #112 20482444
    p.kaczmarek2
    Moderator Smart Home
    Update was submitted yesterday and is pending final review.
    https://github.com/openshwprojects/OpenBK7231T_App/pull/723

    If you are interested in testing it, you can already download binaries from the pull request (once they are built). You will have to click into Github workflow and find "download artefacts" or whatever it was called.
    Helpful post? Buy me a coffee.
  • #113 20482451
    crazybyte
    Level 4  
    I found that PR just after having posted my last post... sorry, I should have searched for that before. If I manage to find some spare time next week I'll test the built binaries from the PR and share my feedback. Anyway I read that the coder has not yet implemented AC codecs as it seems they require a new "command"... and I only have AC devices to test.

    Added after 2 [minutes]:

    I mean, if AC [here](https://github.com/openshwprojects/OpenBK7231T_App/pull/723/commits/74a63d19a2bc3258ebb31fbfff6eabca5de7778e#diff-e031ab0d5a6fd370ab57980f566ebd8bd4664edddf7760f87f81326e02856effR410) stands for Air Conditioner. Does it?
  • #114 20482491
    p.kaczmarek2
    Moderator Smart Home
    I think it does. Your help will be very useful. However, it seems there is currently some little build issue on N platform, we will also have to look into that.

    Is there anyone else reading who can also help testing?
    Helpful post? Buy me a coffee.
  • #115 20482995
    alekindre
    Level 2  
    >>20481993

    Thank you very much! Ended up flashing it with the new tool.
    I'm stuck now in trying to add it to Home Assistnat. I connected the MQTT but what's next?
    It does not provide me with the yaml conf.
    BK7231N - Universal IR Remote Contorl
    How do it import entities?
    Thank you for your help!
  • #116 20487289
    avdm
    Level 5  
    >>20482491
    Sure! I have 2 N type IR devices I can use for testing.
  • #117 20500492
    mdings2020
    Level 2  
    avdm wrote:
    Any updates on the IR bugs? Sending Panasonic or Sony codes still doesn't seem to work. I have 2 different BK7231N IR devices so I am able to test if needed.


    Yea, it seems so. Samsung TV working - Old Panasonic TV not working - tested with S06 BK7231N & T Version.
    I'll hope for support of Daikin Climate AC Support...will test next days.
    It seems that Panasonic Commands wont get out.

    tried:
    irsend Panasonic-8-20-1
    irsend Rc5-0x8-0x20-1

    and

    irsend Panasonic-8-20-200
    irsend Rc5-0x8-0x20-200

    with more repeats...my old onkyo needs more repeats (ex. irsend NEC-0x6DD2-0x9-200) .
    Maybe someone can help out ? Thx

    Debug:
    Spoiler:
    Debug:IR:IR decode returned true, protocol Panasonic (10)
    Info:IR:IR IR_Panasonic 0x8 0x5 0
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 10
    Debug:IR:Address=0x8 Command=0x49
    Debug:IR: Raw-Data=0xC9490080
    Debug:IR: 48 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol Panasonic (10)
    Info:IR:IR IR_Panasonic 0x8 0x49 0
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 1
    Debug:IR: Raw-Data=0xA121
    Debug:IR: 48 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol PulseDistance (1)
    Info:IR:IR IR_PulseDistance 0x61D 0x60B 0
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 10
    Debug:IR:Address=0x8 Command=0x20
    Debug:IR: Raw-Data=0xA0200080
    Debug:IR: 48 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol Panasonic (10)
    Info:IR:IR IR_Panasonic 0x8 0x20 0
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 1
    Debug:IR: Raw-Data=0xA020
    Debug:IR: 48 bits
    Debug:IR: LSB first
    Debug:IR:IR decode returned true, protocol PulseDistance (1)
    Info:IR:IR IR_PulseDistance 0x71D 0x70A 0
    Debug:IR:IR fire event took 0ms
    Debug:IR:IR decode returned true, protocol 10
    Debug:IR:Address=0x8 Command=0x21
    Debug:IR: Raw-Data=0xA1210080
    Debug:IR: 48 bits
    Debug:IR: LSB first
  • #118 20500527
    p.kaczmarek2
    Moderator Smart Home
    Can you try binary from here?
    https://github.com/openshwprojects/OpenBK7231T_App/pull/723
    At least the T one.

    The update is very close, there is only some strange issue on N to be resolved before merge.
    Helpful post? Buy me a coffee.
  • #119 20502251
    mdings2020
    Level 2  
    Sorry for beeing late.
    Long working day and i needed 30 minutes to learn,
    how to proper use github and cygwin for compiling.

    Thanks for the tip - compiled 723 success.

    Test:

    Panasonic TV:
    Working - Recieving from Remote Control:
    
    Debug:IR:IR fire event took 0ms
    Info:IR:IR PANASONIC 4004 1000809 1
    Info:IR:IR PANASONIC,48,0x400401000809
    Debug:IR:IR fire event took 0ms
    Info:IR:IR PANASONIC 4004 1008889 1
    Info:IR:IR PANASONIC,48,0x400401008889
    Debug:IR:IR fire event took 0ms
    Info:IR:Recieved Unknown IR 
    Info:IR:Recieved Unknown IR 
    Info:IR:IR PANASONIC 4004 100BCBD 1
    Info:IR:IR PANASONIC,48,0x40040100BCBD
    Debug:IR:IR fire event took 0ms
    

    Transmitting:
    
    irsend PANASONIC 4004 100A0A1 1
    Info:IR:IR send PANASONIC protocol 5 addr 0x4004 cmd 0x100A0A1 repeats 1
    Works, but i think more repeats or longer command needed.
    
    irsend PANASONIC,48,0x40040100A0A1
    Info:IR:IR send PANASONIC: protocol 5 bits 48 data 0x40040100A0A1 repeats 1
    Info:IR:enableIROut 36700 freq 50 duty
    Works successful !
    

    Success, but i think the commands have a problem with time/repeats.
    If TV is turned on, i can change Channels/Inputs and turn it off.
    When its turned off - i cant turn it on.
    On Remote Control i need to hold the Buttons for 2-3 seconds,
    to turn TV on.
    
    irsend PANASONIC,48,0x40040100A0A1
    irsend PANASONIC 4004 100A0A1 100
    ^^ turn it on wont work, even with 100 repeats.
    
    I tried with Button "1" - wont even work to turn it on.
    And some commands wont be recognised proper:
    
    Info:IR:Recieved Unknown IR 
    Info:IR:Recieved Unknown IR 
    

    DAIKIN AC - Remote Control ARC466A67 (just having a RC atm):

    Recieving:
    
    Info:IR:Recieved Unknown IR 
    Info:IR:Recieved AC code:DAIKIN312
    Info:IR:IRAC 
    Debug:IR:IR fire event took 0ms
    Info:IR:Recieved AC code:DAIKIN312
    Info:IR:IRAC 
    

    i think AC isnt integrated full / proper yet?

    i try to get info about DAIKIN ARC466 Protocol at:

    https://github.com/javierdelapuente/daikin-arc466
    https://github.com/blafois/Daikin-IR-Reverse

    Thanks again for all your work and to the community for making this possible.
    You're all doing a great job.
    
    partition    flash_name       phy addr   size       logic addr size       file
    ------------ ---------------- ---------- ---------- ---------- ---------- ----------------
    bootloader   beken_onchip_crc 0x00000000 68K        0x00000000 64K        bootloader_enc.bin
    app          beken_onchip_crc 0x00011000 956K       0x00010000 921359     OpenBK7231T_App_1.0.0_enc.bin
    
    image size: 1024 KB
    image name: all_1.00.bin
    
    export app partition image: OpenBK7231T_App_1.0.0_enc_uart_1.00.bin
    
    time: 2.05s
    Good bye!
    End Combined
    generate ota file
    sw_version:1.0.0
    OpenBK7231T_App_1.0.0.rbl file_size:0x87f50
    OpenBK7231T_App_1.0.0.rbl sum:0x43a4418
    header_sum:0x45c
    rm OpenBK7231T_App_1.0.0.rbl
    ug_file size:
    556912
    
    *************************************************************************
    *************************************************************************
    *************************************************************************
    *********************OpenBK7231T_App_1.0.0.bin********************
    *************************************************************************
    **********************COMPILE SUCCESS************************************
    *************************************************************************
    
  • #120 20535608
    danielvedovato
    Level 2  
    good evening everyone, I ask if you can help me convert this raw data {"IrReceived":{"Protocol":"PulseDistance","Bits":24,"Data":"0xAB054F"}} into an IRSend command to be sent via MQTT.

Topic summary

The discussion revolves around the BK7231N Universal IR Remote Control, focusing on its disassembly, pin configuration, and firmware updates. Users share experiences with flashing the device, configuring IR send/receive functionalities, and troubleshooting issues related to IR protocols, particularly for various remote controls including air conditioners. Key points include successful firmware updates that enabled IR functionality, the importance of correct pin assignments for IRSend and IRRecv, and the challenges faced with specific protocols like Sony and Daikin. Users also discuss MQTT integration for sending IR commands and the need for additional IR protocols to support more devices.
Summary generated by the language model.
ADVERTISEMENT