Skip to content
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

Not receiving data error intermittent. #625

Closed
farberm opened this issue Dec 19, 2021 · 23 comments
Closed

Not receiving data error intermittent. #625

farberm opened this issue Dec 19, 2021 · 23 comments
Labels
Serial / RS-232 serial / RS-232 problems

Comments

@farberm
Copy link

farberm commented Dec 19, 2021

I am getting intermittent -“Not receiving data” emails from the system. It has been running great for two years no issues.

Can you look to see if it is a bad serial board? Or some other issue?

@jgyates jgyates added the Serial / RS-232 serial / RS-232 problems label Dec 19, 2021
@jgyates
Copy link
Owner

jgyates commented Dec 19, 2021

I received your logs. You do have some CRC errors, which indicates that you are receiving some data but based on the logs the data is not what is expected. I would guess that you either have a bad RS-232 converter or some intermittent cabling.

@farberm
Copy link
Author

farberm commented Dec 20, 2021 via email

@jgyates
Copy link
Owner

jgyates commented Dec 20, 2021

I am closing this issue for now but feel free to post here is you have an update or more questions.

@jgyates jgyates closed this as completed Dec 20, 2021
@jgyates jgyates mentioned this issue Dec 22, 2021
@DJT1423
Copy link

DJT1423 commented Jun 2, 2022

After running smoothly since installation a couple of years ago, my system stopped receiving communication with my generator yesterday morning. I am not aware of any external event. I am running a Pi 3B+, have checked all cabling, re-booted the Pi a couple of times, stopped and started Genmon directly. Any thoughts or suggestions? I am separately submitting registers and logs.

Thanks for any assistance,
David T

@jgyates
Copy link
Owner

jgyates commented Jun 2, 2022

I did not receive your registers. Your outbound email must be working for register / log submission to work.

Running these tests listed here should be able to narrow it down to the pi, the RS-232 converter, your cabling or the controller:

   https://github.com/jgyates/genmon/wiki/3.6---Serial-Troubleshooting

@DJT1423
Copy link

DJT1423 commented Jun 2, 2022 via email

@DJT1423
Copy link

DJT1423 commented Jun 2, 2022 via email

@jgyates
Copy link
Owner

jgyates commented Jun 2, 2022

That is certainly possible. Electronic components can fail at seaming random moments as well as obvious incidents like lightening strikes.

While you are testing, make sure that you try to check for marginal connections in the wiring. Anything connected to the generator is subject to vibrations when the generator is running. This can cause marginal electrical connections over time.

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022 via email

@jgyates
Copy link
Owner

jgyates commented Jun 15, 2022

Images that are attached to email replies are stripped off so I did not get the image. To attach and image you must use the gitbub.com web interface. The email should have a link to the thread.

Pictures of your power and cabling may help.

@davisgoodman
Copy link

@DJT1423 Just one thought here.. Are you using a PiHat to get your TTL to pins 14-15 or you are connected directly. Could also be the UART having issues. Cold joint or something like that. I believe you are not even getting the loopback test through.

My two cents...

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022

Photos attached.

2022 06 14 Screenshot serial test old and new
PXL_20220615_012541802
PXL_20220615_012554681
PXL_20220615_012503243

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022

@DJT1423 Just one thought here.. Are you using a PiHat to get your TTL to pins 14-15 or you are connected directly. Could also be the UART having issues. Cold joint or something like that. I believe you are not even getting the loopback test through.

My two cents...

Always happy to hear suggestions. No, I am not using a HAT. Direct connection to the GPIO pins to the RS-232 converter.
David

@davisgoodman
Copy link

Ok so that is going to be an easy one I believe... Your black cable is on the wrong pin... tx/rx are on pin 14-15
image

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022

@davisgoodman - I think that is what I have, is it not? The first pin is empty, and I am using the next four. If I reverse the white and black and run the serial test, the result is:
"Serial port opened
write data: sent test string
waiting to receive data"
and then it hangs

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022 via email

@davisgoodman
Copy link

Ok maybe the angle of the picture threw me off. Couldn't see the first empty pin. My apologies.. :-)

Have you tried a loopback directly between pin14 and 15 without the 232/TTL converter.

@jgyates that should be a valid test I suppose?

@skipfire
Copy link
Contributor

The wiring looks right (unless you have tx & rx swapped). Wire colors isn't great, it is standard to use black for gnd rather than data.

  • Connect Pin pins 8 & 10 directly and retry the loopback, this will test the Pi's serial configuration and functionality without the RS232. If it fails, you have Pi level problems to solve first
  • Connect the pins back to the RS-232 and retry the loopback. If it passes, great.
  • Swap the tx and rx pins on the RS-232 and retry the loopback. If it still fails, the RS232 component is probably bad.
  • If you have a multi-meter, you might check for continuity between the two DB9 screws you are using to make sure that your loopback wire is well connected.

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022 via email

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022 via email

@jgyates
Copy link
Owner

jgyates commented Jun 15, 2022

It looks like you have tx and rx swapped. Your 232 convert has TX connected to white wire, but you have the white wire connected to Rx on the pi. Also you black wire is connected to RX on the converter but to TX on the pi.

Powering the converter with 5V is known to work, according to the data sheet 3.3V is recommended so instead of using the 5V on the pi header, use 3.3V.

This page has notes on 5V vs 3.3V for the 232 converter.

https://github.com/jgyates/genmon/wiki/3.1--Making-a-Cable

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022

I re-did all my wires last night and passed the loopback test, finally. The RX and DX pins on the new RS-232 converters are reversed from the previous device! This morning I moved power to the 3.3 volt pin, and passed the test again. Next up, back to the garage and reconnect to the generator.
(PS: I re-wired using coloured wires that match your coloured wiring diagram :-).

David

@DJT1423
Copy link

DJT1423 commented Jun 15, 2022

WooHoo, SUCCESS - back online. Thanks for your patience and suggestions and comments. Much appreciated.
David
2022 06 15 Monitor Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Serial / RS-232 serial / RS-232 problems
Projects
None yet
Development

No branches or pull requests

5 participants