logo elektroda
logo elektroda
X
logo elektroda

BK7231N - Universal IR Remote Contorl

yarix2 34521 176
ADVERTISEMENT
  • #31 20267175
    omelchuk890
    Level 11  
    A small test of the output of P26, IROur, BK7231T was carried out.
    In relay mode, the output is 0.
    In relay mode, the inversion is output 1, about 0.8 volts on the transistor bases.
    IRSend mode - output 0, does not respond to commands in any way, everything is OK in the logs.
    When rebooting, the output is a meander with a frequency of 11.5 hertz.
    There is no reaction to the commands at the exit.
    BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
    Debug:CMD:loglevel set 6
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend  NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend  NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    

    Device
  • ADVERTISEMENT
  • #32 20267201
    btsimonh
    Level 11  
    omelchuk890 wrote:
    IRSend  NEC-0x1-0x18-1


    try "IRSend  NEC-1-18-1"
    and report...

    br,

    Simon
  • #33 20267243
    omelchuk890
    Level 11  
    btsimonh wrote:
    omelchuk890 wrote:
    IRSend  NEC-0x1-0x18-1


    try "IRSend  NEC-1-18-1"
    and report...

    br,

    Simon

    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-0x7]
    Info:IR:IR send NEC-0x1-0x18-0x7 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-a]
    Info:IR:IR send NEC-0x1-0x18-a protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [startDriver IR]
    Info:IR:Log from extern C CPP
    Info:IR:DRV_IR_Init: recv pin -1
    Error:CMD:command with name IRSend already exists!
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-1-18-1]
    Info:IR:IR send NEC-1-18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-1-18-1]
    Info:IR:IR send NEC-1-18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-1-18-1]
    Info:IR:IR send NEC-1-18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0

    There is no difference between the teams.
    The output is still a meander of 11.6 hertz.
    BK7231N - Universal IR Remote Contorl
  • #34 20267251
    btsimonh
    Level 11  
    I just checked mine (whilst checking NEC-0x0-0x1a-0x1) and it pulses nicely.
    I'm not on the exact same device, min is T LED strip, IRSend drive red leds, so can't confirm IR is perfect, but flashes look good.
    P.S. just pur a PR in so you can send like [IRsend NEC-0-1a] ,[IRsend NEC-0-1a-2], [IRsend NEC 0 1a], [IRsend NEC 0 1a 3],
    and implemented repeats (currently no repeats on .123 firmware.

    Are you sure you have the right pin?

    11 hz is odd... not even 38khz carrier from PWM.
    You rebooted after config?

    Added after 7 [minutes]:

    Confirmed on my N IRblaster to output IR, and work (not necessarily well!!!!) with my Roku box - command was
    IRSend NEC-0xC2EA-0x19-0
    For 'up'. Roku receives 1/3 - so not good.
    Any help appreciated (maybe we change duty cycle of PWM? So when you have the T output running, looking at the waveform would be good... to confirm carrier freq is OK, and examine framing).
    br,
    Simon

    Added after 13 [minutes]:

    started an issue here:
    https://github.com/openshwprojects/OpenBK7231T_App/issues/411
  • ADVERTISEMENT
  • #35 20267299
    omelchuk890
    Level 11  
    Any pin, if assigned as IRSend, outputs a meander after reboot.
    What channel number should be assigned to the IRSend output?
  • #36 20267343
    p.kaczmarek2
    Moderator Smart Home
    Channel numbers are currently ignored for IR pins. It doesn't matter which channel number you set.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #37 20267424
    omelchuk890
    Level 11  
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [loglevel 0]
    Debug:CMD:loglevel set 6
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [stopDriver IR]
    Info:NTP:Drv IR has been stopped.
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [stopDriver IR]
    Info:NTP:Drv IR is not running.
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [startDriver IR]
    Info:IR:Log from extern C CPP
    Info:IR:DRV_IR_Init: recv pin -1
    Error:CMD:command with name IRSend already exists!
    Info:NTP:Started IR.
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0
    Debug:API:POST to api/cmnd
    Debug:CMD:cmd [IRSend NEC-0x1-0x18-1]
    Info:IR:IR send NEC-0x1-0x18-1 protocol 7 addr 0x1 cmd 0x18 repeats 0

    On this module, the meander is unchanged when the IR transmission is activated.
    I'll try it on another module later.

    This is 100% this output - if I bind the button and designate it as a relay - switches like a relay.

    BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl
  • #38 20267435
    btsimonh
    Level 11  
    Hmm... picture of the exact BK chip? And start of bootlog (i.e. log BEFORE our boot, then up to ~10s with IR driver enabled at startup?)
    Maybe there is a version without PWM....
    ohhh... you don't have PWM outputs enabled? If so try without. Surely each PWM pin is linked to an exact PWM channel number - so there cannot be a conflict.

    Does the device have IRRecv - if so does it work? (would prove 20khz timer was running, required for TX.).
    Hmm2... maybe TX does not work unless Rx is enabled!!! Ensure you have an RX pin.... did not think of that, and can't check right now....
  • #39 20267448
    p.kaczmarek2
    Moderator Smart Home
    @omelchuk890 I see you have your MAC cleared. Most likely your TLV header is also lost. You can consider going to Web App, Flash tab, and using new "Restore RF Partition" button. It is not tested much but should work. Do only if you have (in worst case) flashing wires handy. But I think it should work.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #40 20267615
    omelchuk890
    Level 11  
    @btsimonh @p.kaczmarek2
    I had the reception input disabled, it wasn't there at all. The reason is the reception of interference in the form of the RC5 protocol.
    After the appointment of Irrecv, everything worked.

    How can I disable the RC5 protocol reception?
    Look at my posts in this topic - everything is shown there.
  • #41 20267640
    btsimonh
    Level 11  
    good news. Have added to the issue in github.

    Please let us know how successful your TX is? Mine is currently not reliable.
    And if you can help with signal anlaysis (freq, framing checking).
  • #42 20267700
    p.kaczmarek2
    Moderator Smart Home
    @btsimonh how many protocols do we have?
    What about dedicating a single 32 bit integer from config memory for a 'IR filter', each bit can be 1 or 0, and each bit would correspond to given IR protocol (with 32 protos limit, is it enough?).
    That way users would be able to filter the unwanted protocols from receiving.
    Helpful post? Buy me a coffee.
  • #43 20267810
    btsimonh
    Level 11  
    there are certainly < 32
    we can add commands IRRxDisable <name>?
    then they can go in autoexec... or startup line.
  • #44 20267868
    p.kaczmarek2
    Moderator Smart Home
    I think I'd prefer GUI. I've been also thinking how to make it as lightweight as possible, maybe we could add a GUI on VUE app and in binary just place the rest interface.
    If there are < 32, then we can just dedicate a single integer to all the flags.
    But certainly we need a page with checkboxes, maybe on that VUE, it's way easier than commands.

    We can assume that the IR Protocol <-> Index mapping won't change, right? If so, then bit flags are a way to go.
    Helpful post? Buy me a coffee.
  • #45 20267896
    omelchuk890
    Level 11  
    @btsimonh @p.kaczmarek2
    instead of the real input on which the IR receiver has installed the LED, it is pulled up to the power supply. in this case, there is no "echo" from the transmitter.
    the transfer works only from the command line, there is no way through mqtt, I tried the topic from post 27 - cmnd/ir_blaster/IRSend
    NEC protocol
    BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
  • #46 20267928
    btsimonh
    Level 11  
    omelchuk890 wrote:
    there is no way through mqtt

    is there no way to send commands via MQTT? - that is something we should resolve....
    cmnd/ir_blaster/IRSend = no way, surely not impemented!!!

    using a false pin is an interim solution. One question is, why are you getting IR on real input?
  • #47 20267945
    p.kaczmarek2
    Moderator Smart Home
    Every possible command that is supported by console, should be also supported by MQTT. Is there some kind of syntax issue with using IR command that way?
    Helpful post? Buy me a coffee.
  • #48 20267961
    omelchuk890
    Level 11  
    @btsimonh
    If I connect a receiver located directly on the board, it works, but there is a lot of false data with the RC5 code.
    I don't have an rc5 remote control at all.
    When sending from the command line with the receiver turned on, I get an "echo"
    BK7231N - Universal IR Remote Contorl
  • #49 20268126
    btsimonh
    Level 11  
    yes, you will get echo. it does not currently disable RX during TX.....
    I have PR in to allow TX with RX not configured.... solves original issue...
  • #50 20268139
    omelchuk890
    Level 11  
    I get this garbage, it is present at the input from any receiver, I tried to connect others.
    That's why protocol filtering matters to me.

    Spoiler:
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 18950us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 62850us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 33050us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 8150us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 16800us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 9000us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR:Repeat
    Info:IR: Gap 11900us
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040
    Info:IR:IR decode returned true, protocol 16
    Info:IR:Address=0x0
    Info:IR: Command=0x40
    Info:IR: Raw-Data=0x0
    Info:IR: 0 bits
    Info:IR: MSB first
    Info:IR:IR decode returned true, protocol RC5 (16)
    Info:IR:IR fire event took 0ms
    Info:IR:Received cmd 00000040

    Although it is important for me personally to read the remote control codes once, and then send them through node-red, so then I'll just choose the input for the receiver that is not used.
  • #51 20268207
    btsimonh
    Level 11  
    does TX work for you with your device?
  • #52 20268212
    omelchuk890
    Level 11  
    Yes, only command line.
    how to do multiple repetitions of a command by changing the last argument does not help
  • #53 20268961
    btsimonh
    Level 11  
    omelchuk890 wrote:
    is it possible to add an output to the transmitter in an inverted form


    in lastest PR here
    https://github.com/openshwprojects/OpenBK7231T_App/pull/413
    we now have everything you have requested.

    try "IREnable RC5 0" to disable a protocol.
    try IREnable RXTX 1 if you WANT to receive at the same time as TX - by default RX is suppressed whilst sending.
    try IREnable invert 1 to effectively invert the PWM output. (please check on your 'scope and report).

    br,

    Simon
  • #54 20268999
    omelchuk890
    Level 11  
    @btsimonh
    I will definitely conduct tests, but on Monday - my wife demands to arrange a shopping trip for her. who invented husbands to go shopping with their wives?
    I still have one - I found it in a box for experiments today. I still have one - I found it in a box for experiments today. The size compared to the current module is significantly smaller.
    BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
    BK7231N - Universal IR Remote Contorl
  • #55 20269074
    p.kaczmarek2
    Moderator Smart Home
    @omelchuk890 if you have a new device, please submit a separate teardown and include the photos of casing, box and screenshots from the site where you bought it, also a pinout data, if possible. Which pin is IR input, etc, etc.

    @btsimonh here are scope measurements from the latest release build with IR Send:
    BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl BK7231N - Universal IR Remote Contorl
    Helpful post? Buy me a coffee.
  • #56 20270746
    omelchuk890
    Level 11  
    Can you tell me if there is currently a way to send a command to the module to send an IR command from node-red? Maybe via http post or something else while mqtt is not working.
    Otherwise, for now it's just a trinket...
  • #57 20270850
    p.kaczmarek2
    Moderator Smart Home
    Have you checked HTTP interface?
    
    http://192.168.0.100/cm?cmnd=led_enableAll%201
    
    Helpful post? Buy me a coffee.
  • #58 20270945
    omelchuk890
    Level 11  
    @p.kaczmarek2
    Sorry, I'm not an expert in web and http.
    It works from the browser bar!
    I will figure out how to send from Node-Red.
    http://192.168.21.100/cm?cmnd=IRSend NEC-0x1-0x10-1
  • #59 20271001
    p.kaczmarek2
    Moderator Smart Home
    That strange %20 is a special way of writing a space character for HTML links. In our App, those characters are processed by urldecode2_safe function.
    Helpful post? Buy me a coffee.
  • #60 20271156
    omelchuk890
    Level 11  
    Everything worked out - there was a problem with the network, with routes. Raspberry and the module are in different networks, then I'll figure it out, moved it to connected networks - everything is fine.

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

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