openshwprojects / OpenBK7231T_App

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

IR driver on BL602 #924

Open rnrobles opened 9 months ago

rnrobles commented 9 months 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 9 months ago

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

rnrobles commented 9 months ago

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

normanr commented 7 months 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.