Closed JanHouwers closed 7 years ago
@JanHouwers, thanks for report this.
I think that problem is caused by UART pin maps. We have done some UART driver refactory that allows to customize the UART pin maps.
Pin maps for WHITECAT N1, ESP32 THING, and ESP32 CORE, boards have been updated:
RX0: GPIO3 TX0: GPIO1 RX1: GPIO26 TX1: GPIO25 RX2: GPIO2 TX2: GPIO15
RX0: GPIO3 TX0: GPIO1 RX1: GPIO12 TX1: GPIO13 RX2: GPIO16 TX2: GPIO17
RX0: GPIO3 TX0: GPIO1 RX1: GPIO12 TX1: GPIO13 RX2: GPIO2 TX2: GPIO17
Please, try again with this commit: https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/da240ae9090667c8ba6144567ec425c9e3d6e4b2.
Hello,
Just tested with the Whitecatboard and i can read the data from the PMS1003 sensor in a reliable manner..
Regards, Jan
Hello, I am trying to read serial data from a PMS1003 dust sensor. The dust sensor works correct and i receive valid data when using a 3.3v serial to USB convertor. The sensor sends every 2 seconds a 32 byte string. When connecting the sensor to port 9 and 10 (uart1) no valid data is returned to the LUA program. When connecting a 3.3v serial to USB converter instead of the sensor only the first byte is returned until the queue is empty.
Also when using:
Nothing valid returns..
Regards, Jan