-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Thanks for this library! Its works great with the I2C PMSA003i device I bought from Adafruit a few weeks ago. :)
Unfortunately, I was having trouble getting this library to work with a PMS5003 connected over UART using the Pimoroni Envirio+ hat on a Pi Zero. It looks like this is being caused by two different but somewhat related problems.
In one case, the PM2.5 sensor was set to "passive" mode when using another library or its default on power-on may actually be to run in "passive" mode. In this case _read_into_buffer() always times out.
In the other case, it looks like _read_into_buffer() is sometimes misreading the UART data stream coming in, leading to "Invalid checksum" errors when read() tries to parse the buffer's data after an otherwise successful _read_into_buffer().