-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need option to disable sending command to sensor (active_mode option) #5
Comments
Closed. I decided to use SoftwareSerial. |
Sorry for the delayed answer, looks like you found a way around the issue.
Alas, this messages are needed for reading the sensor data on demand (passive mode operation). I wrote this library for passive mode operation. When I wrote the library there were already other libraries available that dealt with active model operations, so I did not addressed the active mode usage. Thanks for giving my library a try. I'll reopen the issue, |
In PMS5003 datasheet that I have there is no information about passive/active mode and any commands to sensor. Thanks for your explanations ) |
There are several versions of the datasheet. This one was translated from the original Chinese one, is the best reference I have found |
Thanks a lot ) |
Hello!
I use the same UART channel to read data from sensor (via RX pin of controller) and send debug messages (via TX pin). So there is no connection between controller's TX pin and sensor's RX pin.
In my case PMS5003 sensor works fine without sending any command to it.
Your library sends "passive mode" command in 'init' and 'trigRead' methods:
uart->write(cfg, msgLen); // set passive mode
so I see this data as unreadable text in my debug monitor.
Is it possible to add some option (in constructor, for example) to disable sending any data to UART?
Thanks )
The text was updated successfully, but these errors were encountered: