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

Write registers in parallel over tcp #72

Open
pdorrestijn opened this issue Apr 16, 2021 · 1 comment
Open

Write registers in parallel over tcp #72

pdorrestijn opened this issue Apr 16, 2021 · 1 comment

Comments

@pdorrestijn
Copy link

Thank you for this library.
I was told when you communicate modbus over tcp, it is possible to send multiple messages using the same connection and write the holding registers in parallel.
Each request would be differentiated with an id.
However the TCP transaction handler in this library has a mutex in the send method preventing parallel messaging.
Ofcourse I could create multiple connections, but I am wondering: is there a way to circumvent this mutex?

@wwhai
Copy link

wwhai commented Aug 8, 2022

you need lock this connection

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

2 participants