-
Notifications
You must be signed in to change notification settings - Fork 122
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
rtu over tcp #177
Comments
Please provide context and references. But I guess no. |
http://www.simplymodbus.ca/TCP.htm |
@pnpdb does this question relate? hirschenberger/modbus-rs#37 |
Before thinking about possible implementations I recommend to start evaluating the implications for the API and how it needs to be changed or extended. Then open a Draft PR for discussion. |
Could be interesting to be able to do this. But, seems like quite an edge case, how many people actually would use this? Is this the best way to really solve the problem you have? Maybe you could explain the bigger picture. The way I've usually seen access to Modbus RTU devices done recently is to use a Modbus TCP to Modbus RTU gateway device. Typically this is a little embedded hardware device costing $100-$1000. But it could be a pure software component too that has a Modbus TCP server and Modbus RTU client in one application -- this would be more general purpose and clean, I think. We could implement such a software gateway using tokio-modbus. |
I am currently trying to combine server and client into one application, the purpose is different in my case but is doable. I am currently bridging multiple tcp sources under one server. If my workspace will have anything similar kind of use case, i will try to put some more insights. |
This is the issue preventing us from using tokio-modbus, some gateway devices unfortunately only support modbus rtu over tcp |
Then why don't you implement the missing pieces and and submit a PR? |
u can connect rtu over tcp like this let transport = TcpStream::connect(socket).await?;
tokio_modbus::prelude::rtu::attach_slave(transport, slave) this works for me |
Does the server-side implementation added in #228 fix this issue or is the client-side part missing? |
I will close this issue. Please create a new, more specific issue for any missing parts. |
Is there any implementation of modbus rtu over tcp?
The text was updated successfully, but these errors were encountered: