Replies: 21 comments 1 reply
-
First you will have to change to the folder where serialtest is, |
Beta Was this translation helpful? Give feedback.
-
This page has details on testing the serial port: https://github.com/jgyates/genmon/wiki/3.6---Serial-Troubleshooting The "command not found" error is the operating system telling you that it can not find the command you are typing. There are possibly two things wrong.
once you log in via ssh you should type:
If you get an error with the above about a managed environment, then you are likly running latest version of the pi OS (Bookworm version 12). If that is the case this page offers detail about running in a managed python environment: https://github.com/jgyates/genmon/wiki/Appendix-S---Working-in-a-Managed-Python-Environment
|
Beta Was this translation helpful? Give feedback.
-
Thank you both for your replies! I removed the HAT and hardwired GPIO 14 to GPIO 15. I must still be doing something incorrect. Below was the outcome. ~ $ cd genmon Note: Genmon must NOT be running for this test to work properly. If Genmon is running this test will not function properly, Loopback testing for serial port /dev/serial0... Using python serial library V3.5b0 Try stopping genmon. Error opening Serial Port /dev/serial0 |
Beta Was this translation helpful? Give feedback.
-
I will need some more info. Did you install the software using this procedure: https://github.com/jgyates/genmon/wiki/3.3--Setup-genmon-software or did you purchase a preinstalled unit? What is the output of this command:
What OS variant did you install? Raspbian, 32 bit or 64 bit? You also have a beta version of the serial python library (V3.5b). This happens when the install pulls the pyserial library from an outdated mirror. Type this to correct:
Note one of the first two may fail. Then run serialtest again. You can show the version of the python libraries installed with this command:
If none of this works then send a pic of your loopback. |
Beta Was this translation helpful? Give feedback.
-
Hi, Command output is - The OS variant installed is Raspbian, 32 bit. I am unsure whether the script below addressed the beta version download. It appears that it was removed but replaced again with 3.5. INPUT OUTPUT ~ $ cd genmon Note: Genmon must NOT be running for this test to work properly. If Genmon is running this test will not function properly, Loopback testing for serial port /dev/serial0... Using python serial library V3.5 Try stopping genmon. Error opening Serial Port /dev/serial0 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I tried fuser /dev/serial0 in all directories with no output. So your guess was absolutely correct! |
Beta Was this translation helpful? Give feedback.
-
what is odd is that you are getting a permission error, but the permissions on the file show that the serial port has permissions for all users. How did you create the user you are using to log into the pi to run these test? Try this test
This will run the test with administrator privileges |
Beta Was this translation helpful? Give feedback.
-
This is the output. Should I have run ./startgenmon.sh stop prior to doing so? ~/genmon/OtherApps $ sudo python3 serialtest.py Note: Genmon must NOT be running for this test to work properly. If Genmon is running this test will not function properly, Loopback testing for serial port /dev/serial0... Using python serial library V3.5 |
Beta Was this translation helpful? Give feedback.
-
yes, try running this again without genmon running and without sudo |
Beta Was this translation helpful? Give feedback.
-
genmon cannot run at the same time as serial test. Only one application can have access to the serial port. |
Beta Was this translation helpful? Give feedback.
-
I wish that I had better news. ~/genmon $ ./startgenmon.sh stop Note: Genmon must NOT be running for this test to work properly. If Genmon is running this test will not function properly, Loopback testing for serial port /dev/serial0... Using python serial library V3.5 Try stopping genmon. Error opening Serial Port /dev/serial0 |
Beta Was this translation helpful? Give feedback.
-
This was a little different using, sudo python3 serialtest.py. This time it received 6 bytes. ~/genmon/OtherApps $ sudo python3 serialtest.py Note: Genmon must NOT be running for this test to work properly. If Genmon is running this test will not function properly, Loopback testing for serial port /dev/serial0... Using python serial library V3.5 |
Beta Was this translation helpful? Give feedback.
-
SUCCESS!! Note: Genmon must NOT be running for this test to work properly. If Genmon is running this test will not function properly, Loopback testing for serial port /dev/serial0... Using python serial library V3.5 |
Beta Was this translation helpful? Give feedback.
-
Great, what changed? |
Beta Was this translation helpful? Give feedback.
-
Not sure, but it passed twice. |
Beta Was this translation helpful? Give feedback.
-
ok. I am going to assume intermittent connection on your serial loopback. |
Beta Was this translation helpful? Give feedback.
-
Let me know when your PayPal donation link is running, and I will gladly make a donation. ;) I tried a couple times earlier in the week, but it timed out. I really appreciate your dedication to this effort! |
Beta Was this translation helpful? Give feedback.
-
No problem, I am glad it is working. I just checked the link, it is working for me: https://www.paypal.com/paypalme/jgyates |
Beta Was this translation helpful? Give feedback.
-
You see something coming your way. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I suspect that I doing something rather stupid, but I cannot run the serialtest.py while attempting to bench test the Pi (3b+) in conjunction with a PintSizeMe OPTO-ISOLATED HAT and Molex cable prior to installation later this week. Pins 7*8 are looped for tx/rx testing.
The error received is - XXXX@GeneracGenmon:~ $ serialtest.py
bash: serialtest.py: command not found
The Monitor is running using two-factor authentication and is displaying CPU temperature and WiFi strength. Email tests were also successful. So, I know that the GENMON script is running correctly.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions