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

set TCP_NODELAY option in tcp sockets? #78

Open
rjmaris opened this issue Feb 6, 2024 · 0 comments
Open

set TCP_NODELAY option in tcp sockets? #78

rjmaris opened this issue Feb 6, 2024 · 0 comments

Comments

@rjmaris
Copy link

rjmaris commented Feb 6, 2024

Upon testing the maximum poll rate in practical local networks, I find that the limit is approx. 20 ms.
In this article (https://www.controlengeurope.com/article/139766/Speeding-up-Modbus-TCP.aspx), I read about the suggestion to open tcp-sockets using the TCP_NODELAY option. I succeed in setting this option on the slave side (which is programmed using Zephyr OS).
However, if the master side is polling, this side should allow acknowledge of every single package in order to speed up things.

After cloning the repository, it points out that the sockets are not created using the standard tcp library (I refer to linux). Neither socket() is used nor an #include <sys/socket.h> is found. So I guess that it's not that simple in mbpoll code to disable Nagle's algorithm.
Comments on this or alternative ideas are of course welcome.

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

No branches or pull requests

1 participant