Closed nkitanov closed 4 years ago
I am having the same issue. PMSA003 & software UART. Been testing with default and latest Arduino framework version and different platformio platform versions without any luck.
I am having the same issue. PMSA003 & software UART. Been testing with default and latest Arduino framework version and different platformio platform versions without any luck.
A small update - I changed ESPHome log level to INFO (to avoid any log message publishing during PM readings) and changed PMSA003 operation mode to 1 minute of readings, 10 minutes off, 1 minute of readings (via setting PMS sensor SET PIN low/high) and added debounce filter to PM sensor readings to publish just the last sensor values after that whole minute of readings (sensor outputs stabilise after roughly 20 seconds but I wanted to err on the safe side).
So far, 35 hours uptime. :-D
Yes, that's an option but I need the data to be displayed constantly. That's why I use the hardware pin and there are no issues. However on a software UART I connected MH-Z19 CO2 sensor to update on 30s interval and I get WDT from time to time. Definitely the issue is coming from software uart library...
Hi, yes, of course - there's ton of reports about issues with ESP8266 software serial and WDT resets. I'm just testing various "hacks" because I soldered and hot-glued my wires to ESP and am too lazy to do it again. :-)
Regarding constant updates - I've been running PMSA003 in continuous sampling mode for a few days now without any resets. I'm obviously not arguing that DEBUG logging causes the resets; it just considerably lowers the possibility of lock-ups in my particular case.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
hassio ESP (ESP32/ESP8266, Board/Sonoff):
esp8266 on Wemos D1 and Nodemcu Affected component:
https://esphome.io/components/sensor/pmsx003.html
Description of problem: When running on software UART PMSX7003 sensor causes WDT on random interval about 5-20 min.
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: To rule out hardware issues I tried two different PMS7003 sensors and also on nodemcu and different pin there. All the same - got WDT frequently.
Also tried running PMS sensor on the RX hardware uart pin which work after disabling UART logging. No issues then - it works days without WDT, so I guess it's linked to the software bit banging of the uart data. PMS7003 is constantly sending data over the uart and maybe it's not stable when it's not using dedicated hardware.