-
Notifications
You must be signed in to change notification settings - Fork 8
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
PMS5003T not recognized #19
Comments
The buffer seems to be too long, as if your PMS5003T did not recognized the passive mode command. Are you using the rpi's serial pins? Did you connect both RT and TX lines? |
Yes I'm using both RX and TX (and nothing else, just the power is connected). |
Maybe these help: od /dev/ttyAMA0
od -Ax -tcx1 /dev/ttyAMA0
xxd /dev/ttyAMA0
|
Can you send me a few lines of |
xxd -g1 -c32 /dev/ttyAMA0
|
I can not find a valid header/message on this hexdump. |
Hmm, interesting... stty -F /dev/ttyAMA0 9600
xxd -g1 -c32 /dev/ttyAMA0
|
I found the problem: pms -m PMS5003T -s /dev/ttyAMA0 --debug serial
I had to remove the serial0 references from /boot/cmdline... Thanks for your help. |
Glad I was able to help. pms -m PMS5003ST -n 10 -i 10 serial -f hexdump I use sensor data captures on the project documentation and test suite |
Of course, I edited the command (because of the different com port): pms -m PMS5003T -n 10 -i 10 -s /dev/ttyAMA0 serial -f hexdump
|
Hello.
I try to use your program with a PMS5003T sensor. Unfortunately not recognized. Can you help me what should be the problem?
The sensor itself working, because I testing it with this:
https://github.com/pjq/rpi
Thanks
The text was updated successfully, but these errors were encountered: