openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.5k stars 281 forks source link

IR driver on BL602 #924

Open rnrobles opened 1 year ago

rnrobles commented 1 year ago

Describe the bug When trying to use the IR module as a receiver, apparently it does not have that driver enabled with the BL602 chip, is it possible to add it?

Firmware:

image image

openshwprojects commented 1 year ago

IR interrupt is not implemented on BL602, that would require some programming work, do you know C?

rnrobles commented 1 year ago

a few years ago I used a bit with arduino, if you guide me maybe I could help with that part

normanr commented 1 year ago

Note that the BL602 has a built-in IR remote HW accelerator, but it's buffer is only large enough to receive commands from "simple" remotes, eg for TV's, etc, that only send 4 bytes of data. More complex remotes, eg those used by AC systems, can send 12 bytes, which will not fit into the HW accelerator buffer.

I have had good success reading the longer signals by using the IR receiver as a regular GPIO pin that triggers an interrupt and then just tight loop reading the pin until all the data has been received.