peterhinch / micropython_ir

Nonblocking device drivers to receive from IR remotes and for IR "blaster" apps.
MIT License
240 stars 51 forks source link

Autodetect protocol #38

Open vricosti opened 4 months ago

vricosti commented 4 months ago

Hi, Would it be possible when receiving data to auto detect the protocol ?

peterhinch commented 4 months ago

In principle I suppose it could: acquire.py attempts to do this. Generalising this for all protocols would substantially increase the complexity, especially given the differing ways repeats are handled. I can foresee other issues and it isn't something that appeals to me.

However if you want to do this, perhaps for a limited number of protocols, feel free to try. I'll offer what support I can.