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

Modbus Bridge- Question #2

Open
wjohn007 opened this issue Dec 21, 2024 · 5 comments
Open

Modbus Bridge- Question #2

wjohn007 opened this issue Dec 21, 2024 · 5 comments

Comments

@wjohn007
Copy link

Hello joerenst,

if I understand correctly, the code for the Modbus bridge (Tasmota) came from you.

Thank you very much, this function is really helpful.

What is the use case for the 'ModbusTCPConnect' command?

John

@jeroenst
Copy link
Owner

ModbusTCPConnect ,<ip_address> = connect to a remote Modbus TCP server on remote tcp port˙ and ip_address

I believe it was a request from some user who also tested it. I never used it myself though.

@wjohn007
Copy link
Author

Thank you for your response.

From my point of view, this command only makes sense if the external device coupled via the serial line is a Modbus master and its request is sent to the TCP/IP Modbus slave.
This would require a TCP client connection, which the ModbusTCPConnect command provides.
But this scenario doesn't work. Error 'NoDataExpected' appears in logging.

@jeroenst
Copy link
Owner

Tasmota is always master on the serial line modbus and a modbus slave on the network in the current design.

So it can connect to an external tcp device and waits for modbus data from the tcp master. I could imagine this like a serial to tcp converter connected to a modbus master device.

So the use case provided above is indeed not yet supported.

Currently I don't have the time to make this extra functionality but feel free to make a PR.

@wjohn007
Copy link
Author

Thanks again for the quick reply.
Do you agree if I copy excerpts from our conversation into this ticket
arendst/Tasmota#22689
so that other users can also benefit from it?

@jeroenst
Copy link
Owner

Perfectly fine for me.

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