arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.19k stars 4.81k forks source link

Unknown command if IRHVAC is continuously send/repeated (ESP32-C3) #18311

Closed ferbulous closed 1 year ago

ferbulous commented 1 year ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

If I try to send IR command continuously, IR signal doesn't get picked up by the target device I would need to wait at least 1-2 seconds before sending the next command.

And sometimes sending IR command doesn't work on the first attempt and I have to send the same command again

This doesn't happen on an esp8266 remote.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

IR send:
07:50:59.414 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":19,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:05.420 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":19,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:08.625 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":19,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:11.523 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":19,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:19.783 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":20,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:21.731 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":21,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:23.180 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":22,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:24.977 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":23,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:26.375 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":24,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:28.169 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":25,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:29.783 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":26,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:31.479 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":27,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:36.583 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":28,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:39.882 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":27,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:41.475 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":26,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:43.169 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":25,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:44.720 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":24,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:46.410 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":23,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:48.107 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":22,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:49.553 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":21,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:51.501 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":20,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}
07:51:53.899 MQT: stat/remote_livingroom/RESULT = {"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":19,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}

IR receive:
07:50:59.427 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":88,"Hash":"0x6F39DDDC","Repeat":0}}
07:51:05.385 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0xC45F512F","Repeat":0}}
07:51:08.596 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":88,"Hash":"0xBBF25E34","Repeat":0}}
07:51:11.506 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF29D6","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":19,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:19.777 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF39C6","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":20,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:21.734 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0x1F8E0540","Repeat":0}}
07:51:23.183 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF59A6","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":22,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:24.981 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0x463D6BC6","Repeat":0}}
07:51:26.344 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":89,"Hash":"0x603B0BB9","Repeat":0}}
07:51:28.150 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0x443645D9","Repeat":0}}
07:51:29.752 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF9966","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":26,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:31.453 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0x5429F4D7","Repeat":0}}
07:51:36.570 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BFB946","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":28,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:39.883 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0x66C7225F","Repeat":0}}
07:51:41.477 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0x7A1AF541","Repeat":0}}
07:51:43.140 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0xFD750FEF","Repeat":0}}
07:51:44.683 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":89,"Hash":"0x9AD9D474","Repeat":0}}
07:51:46.397 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":90,"Hash":"0xCD0EEEB8","Repeat":0}}
07:51:48.116 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF59A6","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":22,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:49.552 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF49B6","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":21,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:51.509 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"MITSUBISHI_HEAVY_88","Bits":88,"Data":"0xAD513CD92600FF40BF39C6","Repeat":0,"IRHVAC":{"Vendor":"MITSUBISHI_HEAVY_88","Model":-1,"Mode":"Cool","Power":"On","Celsius":"On","Temp":20,"FanSpeed":"Low","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"Off","Filter":"Off","Clean":"Off","Beep":"Off","Sleep":-1}}}
07:51:53.907 MQT: tele/aubess_remote/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":92,"Hash":"0x5C72D6DE","Repeat":0}}
07:53:12.963 MQT: tele/aubess_remote/STATE = {"Time":"2023-04-01T07:53:12","Uptime":"0T02:35:10","UptimeSec":9310,"Heap":186,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Berry":{"HeapUsed":4,"Objects":43},"Wifi":{"AP":1,"SSId":"Suliana","BSSId":"A0:AB:1B:84:8C:D0","Channel":6,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":2,"Downtime":"0T00:00:06"}}

TO REPRODUCE

1) Use a second IR remote to capture IRHVAC signal 2) Increase/decrease temperature for the AC continously (18 C to 27 C)

EXPECTED BEHAVIOUR

Some commands not received by target (unknown as indicated in the logs by ir receiver). No issues doing the same test on esp8266 remote.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

barbudor commented 1 year ago

There could be multiple reasons for unreliable reception of IR signal What is the receiving hardware ? Is it the same circuitry between the ESP8266 and the ESP32 boards ? If not are you sure the circuitry used on ESP32 have the proper sensitivity ?

Probably looking at the signal on the GPIO with an oscilloscope and comparing between ESP8266 and ESP32 could give some clues on a possible hardware issue.

ferbulous commented 1 year ago

Sorry, i don't have oscilloscope Receiving hardware is the same device, I have 2 units for each one.

H/w tested:

image image image

Esp32 (Came with beken chip, I swapped with esp32-c3-05) 1) Tuya IR remote S-08 2) Aubess IR Remote

Esp8266: ESP-01M

As for the same circuitry, i will swap esp8266 with one of tuya IR remote and redo the test.

Jason2866 commented 1 year ago

I had a similar issue. It is not related to the used MCU. This IR Blasters are all weak in sending. Just many IR diodes does not make a good transmitter. Solved the issue using a old IR Remote for sending. The IR diodes are sending with way more power since the are feed with 9v and more peak current.