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

Add link recovery on EOF for TCP header #25

Closed
wants to merge 4 commits into from
Closed

Add link recovery on EOF for TCP header #25

wants to merge 4 commits into from

Conversation

gq0
Copy link

@gq0 gq0 commented Oct 15, 2017

Continues #24

@andig
Copy link
Contributor

andig commented Oct 10, 2018

ping @gq0 I'm having the same problem. Is your repo still available?

andig added a commit to andig/modbus that referenced this pull request Oct 10, 2018
@gq0
Copy link
Author

gq0 commented Oct 10, 2018

Sure https://github.com/grid-x/modbus
We added some minor fixes, link and protocol recovery

@andig
Copy link
Contributor

andig commented Oct 13, 2018

Great, thank you. I had ported your PR (repo link in gh was broken) to my fork and didn't see an improvement. How should Link/ProtocolRecoveryTimeout be initialized for this to work?

@gq0
Copy link
Author

gq0 commented Oct 14, 2018

Depending on the issue you face, you should set LinkRecoveryTimeout to 10 or more seconds if you see TCP timeouts or ProtocolRecoveryTimeout to 10 seconds or more if you have issues with Modbus transaction IDs or malformed CRC. Create your handler as usual with NewTCPClientHandler and set these two timeouts according to your issue, e.g. LinkRecoveryTimeout = 60s and ProtocolRecoveryTimeout = 10s.

BTW what kind of Modbus device you want communicates with?

@andig
Copy link
Contributor

andig commented Oct 14, 2018

Its a SolarEdge Se9k. Sometimes it doesn‘t like answering right from the beginnen...

@gq0
Copy link
Author

gq0 commented Oct 15, 2018

I see SolarEdge 😀 yeah it has both problems, links (TCP) and protocol (modbus transaction id).

@andig
Copy link
Contributor

andig commented Oct 15, 2018

Ok, I'll need to test this again with proper timeouts. Would you be interested in maintaining your fork with additional PRs while #25, #33, #36 are open here in master?

@gq0
Copy link
Author

gq0 commented Oct 16, 2018

You can redirect your PR to https://github.com/grid-x/modbus if you like. But I cannot guaranty that all will fit to our existing code base. But we definitely will have a look.

@andig
Copy link
Contributor

andig commented Oct 16, 2018

You can redirect your PR to https://github.com/grid-x/modbus if you like.

Would like to but its apparently not that easy since grid-x was not forked from goburrow. I'll need to double-check how to do that.

@gq0 gq0 closed this Dec 20, 2019
@ilikui
Copy link

ilikui commented Dec 20, 2019

Closed .

1 similar comment
@ilikui
Copy link

ilikui commented Dec 20, 2019

Closed .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants