You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of problem:
Hi, I would like to report bug in calculation of PMSx003 total size.
pmsx003.cpp, line 81, should be: uint8_t total_size = 4 + payload_length;
Tested with PMS5003 and works correctly.
Problem-relevant YAML-configuration entries:
PASTE YAML FILE HERE
Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered:
Are you sure that is the actual issue here? There's been a fix recently (in dev, not in 1.9.3) that fixed some of the packet sizes - and for the person reporting the issue that fixed it.
Also line 81 should be correct judging from the datasheet.
Can you try with the latest development version (or beta)?
Hi, I've used version 1.9.3. According to datasheet for PMS5003, frame length (payload length) is 2x13+2 = 28bytes. This matches line 62 in pmsx003.cpp, which is correct. There are another 2bytes for start characters and another 2 bytes for frame length indication = 4bytes. So the total size of the message is 28 + 4 = 32bytes.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
pip
ESP (ESP32/ESP8266/Board/Sonoff):
ESP32
Affected component:
PMSx003
Description of problem:
Hi, I would like to report bug in calculation of PMSx003 total size.
pmsx003.cpp, line 81, should be: uint8_t total_size = 4 + payload_length;
Tested with PMS5003 and works correctly.
Problem-relevant YAML-configuration entries:
PASTE YAML FILE HERE
Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: