Replies: 4 comments 28 replies
-
Is the Pi at the generator or a distance from the generator? What wires are you running from generator to ground? Are the wires twisted pair? |
Beta Was this translation helpful? Give feedback.
-
Hi @zinglo The errors in myserial.log indicate that there is an issue with serial port availability, possibly another process using the serial port or a power issues. Power issues would likely fall in to two categories (too much current is required from the USB adapter or the pi power supply is under rated). A few questions: Does the RS-485 adapter have a setting or jumper for a terimination resistor? Since you only have 2 devices (the pi and the generator) the terminator resistor should be enabled. If you had more than 2 devices you only want the resistor active for the first and last devices on the RS-485 bus. What is the rated current output of your AC power supply? Is anything other than genmon running on the pi? What is the output of this command: cat /boot/cmdline.txt What is the output of this command:
and
The flags in the "vcgencmd get_throttled" command are reset on every boot so make sure you are reading this after your get the timeout errors. You could test to see if you still get the errors when the USB RS-485 serial device is not connected and use the built in serial port but just do not connect it to your generator. You will still see timeouts but use the built in serial port error should not appear unless something is trying to access the port. |
Beta Was this translation helpful? Give feedback.
-
This page has an example python script that will log serail USB device insertion and removal events. I tested it and made a small mod to include all types of events. You would need to install one python library listed in the link: https://askubuntu.com/questions/1461546/continuously-monitor-usb-connection-status attached is the modified python script. Hopefuly this would allow you to see if the USB device is being ejected and reinserted due to power issues. I have to zip the file since github will not allow python extenstions as an attachment. Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Version
Controller : Briggs & Stratton GC-1032 Controller
Generator Monitor Version : V1.19.05
Pi Model : Raspberry Pi 3 Model B Plus Rev 1.4
OS Name : Debian GNU/Linux
OS Version : 12 (bookworm)
Have you submitted your log files from the About page? Note that outbound email must be working for logs to be submitted.
I have not submitted logs
What is/are your question(s)?
Warning: While I am on old retired IT/unix nerd, I have zero experience with RS485. I suspect my issues are related to my ignorance.
I have a brand new genmon install connected to a B&S GC-1032 controller. The connection is via cat5e of approximately 100ft. I used orange/orange-white pair for A/B and green for ground. I've set the serial settings to the settings on the 1032 controller (9600,even,slaveid 2).
On the pi side, I am using a USB to RS485 adapter (https://www.amazon.com/dp/B081MB6PN2). The pi is powered by AC/UPS power inside the house.
My comms comes up, but it bounces up and down. Genmon appears fully operational. I consistently have a Red warning icon/bar at the bottom of genmon with "Genmon system warning: not receiving data". If I watch the monitor tab, the Generator Monitor Stats: Monitor Health field toggles back and forth between "Not receiving data" and "OK." Communication stats show a constant ticking up of "Timeout Errors".
I'm not entirely sure where to go from here and could use some suggestions. (You may have to talk to me like I am 5.) My next thoughts are either physical cable problem or some sort of compatibility issue with the USB dongle.
I did check for throttled/undervoltage per the serial trouble shooting. Possibly this suggests my USB dongle was a poor choice?
/var/log/myserial.log snippets:
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions