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
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:
print (uart.read(uart.UART1, "*l", 1000))
you get:
stdin:1: bad argument #3 to 'read' (boolean expected, got number)
stack traceback:
[C]: in field 'read'
stdin:1: in main chunk
[C]: in ?
It does not matter if anything is received first. Also when using:
print (uart.read(uart.UART1, "*c", 1000))
Nothing valid returns..
Regards, Jan
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: