-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Comments
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. |
Thanks. I will recheck the cabling and if it still persists I will replace the 232 converter
…Sent from my iPad
On Dec 19, 2021, at 6:56 PM, jgyates ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.
|
I am closing this issue for now but feel free to post here is you have an update or more questions. |
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, |
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:
|
The loopback test #2, serial 9-pin connector fails - actually, it does not fail, rather it sends a signal but then simply hangs waiting for a response. I have double checked the wiring per the schematics, and all appears correct (and of course it had worked for almost 2 years). Is it likely, or even possible that either the RS232 to TTL Converter Module or the DB9 adapter have simply failed?
David
…________________________________
From: jgyates ***@***.***>
Sent: June 2, 2022 1:44 PM
To: jgyates/genmon ***@***.***>
Cc: DJT1423 ***@***.***>; Comment ***@***.***>
Subject: Re: [jgyates/genmon] Not receiving data error intermittent. (Issue #625)
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
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjgyates%2Fgenmon%2Fissues%2F625%23issuecomment-1145134328&data=05%7C01%7C%7C210ee1b79cf14f3764f508da44bf9871%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637897886934836688%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=iMOn9jkjAnVU%2Fd3TKxxRz4X5HUK%2BpnAmWAIh83dXmCc%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQJYLOBUXNLOWKNWZFII2L3VNDXJFANCNFSM5KMOAJYA&data=05%7C01%7C%7C210ee1b79cf14f3764f508da44bf9871%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637897886934836688%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uJ6ljyChoSTGkHo4t3l60u1DKEi73TG2FP6bblpyRIQ%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
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. |
Hi, I'm hoping for some suggestions again on this issue. I have replaced both the components of the RS-32 converter, and still am failing the serial test. (See attached image) Curiously, when the original DCE is in place the failure reads:
"FAILED: Sent data does not match receive. Received 14 bytes"
But when the replacement DCE unit is in place (and I tried three as the package I received contained 5 units), the error reads:
"FAILED: Sent data does not match receive. Received 0 bytes"
I also replaced the 4 cables from the Pi to the DCE unit.
Oh by the way, I again confirmed that the serial test passes at the "Loopback at the Pi Expansion Connector".
Any wisdom you might be able to share?
Thanks, David
***@***.***
…________________________________
From: jgyates ***@***.***>
Sent: June 2, 2022 4:26 PM
To: jgyates/genmon ***@***.***>
Cc: DJT1423 ***@***.***>; Comment ***@***.***>
Subject: Re: [jgyates/genmon] Not receiving data error intermittent. (Issue #625)
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.
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjgyates%2Fgenmon%2Fissues%2F625%23issuecomment-1145308512&data=05%7C01%7C%7C08fefb8497ba48c7e5e708da44d62674%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637897983796506760%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mBVz3tkjaULQ5mXny1sHtla9voj8Ij3D%2BzjNcY3FprM%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQJYLOEYAXEFWPWOMBYN3WDVNEKGVANCNFSM5KMOAJYA&data=05%7C01%7C%7C08fefb8497ba48c7e5e708da44d62674%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637897983796506760%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Cs47zWZarPHWP0rhAatFPyZHKtwwBgUyaD1fvGuzRG4%3D&reserved=0>.
You are receiving this because you commented.Message ID: ***@***.***>
|
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. |
@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. |
@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: |
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? |
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.
|
Thx. I'll work on it tomorrow. I don't have a multimeter but will try to work something out.
David
David Thompson
***@***.***
…________________________________
From: Jon R. Helms ***@***.***>
Sent: Tuesday, June 14, 2022 9:47:07 PM
To: jgyates/genmon ***@***.***>
Cc: DJT1423 ***@***.***>; Mention ***@***.***>
Subject: Re: [jgyates/genmon] Not receiving data error intermittent. (Issue #625)
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.
—
Reply to this email directly, view it on GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjgyates%2Fgenmon%2Fissues%2F625%23issuecomment-1155884043&data=05%7C01%7C%7C19b42d178013482d6bbc08da4e70f543%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637908544297229548%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=E98xI3PO%2BJBVf3B1pt4RL1XB8bEC8U6DUpeHtevxnv8%3D&reserved=0>, or unsubscribe<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQJYLOBFP2BIDZG2Y3ER3MLVPEYZXANCNFSM5KMOAJYA&data=05%7C01%7C%7C19b42d178013482d6bbc08da4e70f543%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637908544297229548%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=weyYS9V0TR%2Bj0H80nGS6MD8ZvoRaJd8jkXFdXocgeeY%3D&reserved=0>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
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. |
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. David |
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?
The text was updated successfully, but these errors were encountered: