-
Checklist
VersionV1.19.05 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)?Generac 15KW Home Back-up Generator fueled by Nat Gas A little backstory, over a year ago I had setup Genmon using RPi 3b+ and connected it to my generator using the WiFi connection. I had the RPi located within the generator housing, this caused the WiFi signal to be weak, but it still connected to my network and I was able to log in to the Genmon software and control and monitor my generator. Several months ago I had noticed intermittent connection with Genmon and believed it was due to the weak WiFi signal, when I would scan the network many times it would not show up with the known IP address or MAC address. A little over a week ago I decided to run a CAT6 cable out to the generator so I could connect the RPi to the network via a wired connection. Initially when I connected the LAN cable to the RPi, it didn't connect to the network. This winter I had received battery warning for the genset and ended up replacing the battery. When the RPi didn't connect to the network via the LAN cable I suspected maybe the power adapter wasn't working correctly. I tested the battery and had correct voltage, but wasn't sure how to test the adapter and figured the easiest thing to do would be to power the RPi was via an AC adapter. The RPi still didn't connect. It turns out the SD card was corrupted. I loaded installed the genmon software on a new 32gb sd card using the latest RPi 64-bit Lite OS, I followed the guidelines in the wiki for updating the OS, then installed the genmon software using the genmonmaint.sh script. I then went out and connected the RPi to the generator and opened the genmon on my laptop, the software opened on the webpage, and I was receiving data for the CPU temp but nothing from the generator. Maintenance : Monitor : I troubleshooted the serial cable as recommended in the wiki and everything checked out like it is documented like it should. I tried switching the wires around as suggested for the transmit/receive at the molex connector, then reconnected it to the generator and there was a change noticed where I was no longer getting timeout error, but was getting tons of CRC errors. I found this odd, but have no clue to the significance. I thought maybe part of the problem was I was connected the the network via the LAN cable and hadn't disabled the WiFi on the RPi and maybe this was causing some sort of issue, so I disconnected the LAN cable and moved a network access point close the the RPi ensuring I had great WiFi signal and went through the process of running the genmon software (after I had switched the pins in the Molex connector back) and essentially had the same problem with very high timeout errors and genmon giving an error of "system initializing. not receiving data" I have searched this site, read tons, spent a couple of days reading and troubleshooting. I've thought maybe it has something to do with the new RPi OS, I had experienced upgrading to the new OS on another RPi with custom software, causing it to fail and we had to make some adjustments to get that software to work with the new OS. Yet, in reading through the discussions here others are using the latest OS without issues. I did check the serial port as mentioned with this result: medic29@genmon:~ $ ls -la /dev/ser* medic29@genmon:~ $ dmesg | grep serial I believe the above is what is supposed to be there if I read everything correctly. I have also tried re-running the genmonmaint.sh script a few times as suggested and haven't noticed any errors or issues. I don't know if it could be the RS232 to TTL converter has gone bad so I have ordered another. I have also ordered another 12v - 5v USB power adapter just in case the current one is bad so I can go back to using the battery for power. I am looking at setting up the RPi using the older OS and trying to set up genmon using that OS since that is what I used before and got it work, although I'm thinking it shouldn't be an issue if others are using the latest OS. I also think it should matter if I am connected to the RPi via LAN or WiFi. As I stated I have done tons of troubleshooting off every page I have read and everything comes back as the documentation shows it should. The issue seems the software isn't connecting to the controller and this is causing the timeout errors. The question is what is causing the timeout errors? Could it be the RS232 to TTL converter even if the serial tests were okay? Has something happened to my controller on the genset which is causing the issue? I am truly an amateur here when it comes to this stuff, but I can follow directions really well which typically gets me pretty far, but I am lost trying to figure out how all of this stuff talks or communicates to each other. I would look into the logs and or post them if I know where to find them, how to look at them and/or upload them. Any and all help would be appreciated. I will answer questions as best I can. Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
I guess I have discovered the source of the original problem. The 12v-5v USB converter must have went bad. I changed out the RS232 to TTL converter with a new one -- no change I changed the power to the RS232 to TTL converter from the 5v pin to the 3.3v pin on the RPi -- no change Then I thought because I had read something about everything having a common ground and I was powering the RPi using the AC converter, plus I noticed the my RS232 interface had a ground with nothing hooked to it . I tried powering the RPi with my original 12v-5v USB converter and it wouldn't even spin the small cooling fan for the RPi; when I powered the RPi from the AC adapter the RPi powered up fine. I figured if I could power the RPi via the 12v-5v converter I would get the common ground from the battery to the RPi, but since the USB converter wasn't working I would have to wire the ground to everything so I went and made some small jumpers and connected the negative from the battery to the RPi, the ground from the RPi to the RS232 interface, then powered the RPi using the AC adapter and viola!!! Maintenance : Monitor : The RPi apparently NEEDS to have a common ground with the generator controller for communication Next less pressing question, above under Platform Stats: it says Pi CPU Frequency Throttling: Has occurred. What does this mean and is it an issue. Currently I have the RPi powered by a 3.3 amp USB power supply. I do have a replacement 12v-5v USB power adapter on order, but Amazon's shipping has started using snail mail so it might take a bit to get here, although it is enroute. I feel so dumb since I spent last Saturday and Sunday working between my laptop and the generator trying to get this to work and it was something this simple and was probably the source of the problem with it working intermittently previously. Ugh. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the information!!! Originally there was a common ground when using the 12v USB adapter, then when trying to figure out why the pi wasn't connecting to the network is when I switched to the AC power supply and went forward and forgot about the common ground part until today. I've said many times, it is the simple things that stump us most times. I have a new 12v USB adapter ordered. The one I was using is the one recommended in the wiki and this is what I purchased again. It was less than a year old and I expected it to last longer. I purchased it from Amazon, so it could be a fake I guess. Recommendations of something different or from somewhere different? As for my current AC adapter, it is an Anker 3 amp power supply or charger, shouldn't that be more than enough amperage for the RPi3B+, the board is an original Raspberry and not a knock off? I'm stumped on this power thing. |
Beta Was this translation helpful? Give feedback.




I guess I have discovered the source of the original problem. The 12v-5v USB converter must have went bad.
I changed out the RS232 to TTL converter with a new one -- no change
I changed the power to the RS232 to TTL converter from the 5v pin to the 3.3v pin on the RPi -- no change
Then I thought because I had read something about everything having a common ground and I was powering the RPi using the AC converter, plus I noticed the my RS232 interface had a ground with nothing hooked to it . I tried powering the RPi with my original 12v-5v USB converter and it wouldn't even spin the small cooling fan for the RPi; when I powered the RPi from the AC adapter the RPi powered up fine. I figured…