Skip to content

Conversation

@indianaMitko62
Copy link

@indianaMitko62 indianaMitko62 commented Jul 10, 2025

According to the official MODBUS protocol documentation the normal response of a Write File Record request is an echo of the request. The whole request including the records data must be included in the response. This pull request makes sure the whole request is send as a response.

Link to the MODBUS documentation for reference: https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf

@debevv
Copy link
Owner

debevv commented Sep 22, 2025

At the moment the buffer index is set to the end of the PDU, so that send_msg() re-transmits the request as it was received, and it looks ok. What does the PR change?

@indianaMitko62
Copy link
Author

That's a very good question. I don't remember why I did that. Why does it work in both occasions, though?

@indianaMitko62 indianaMitko62 changed the title Fix small issue in Write File Record server response Fix small issue in Write File Record server response. Add user argument to Read Device Discovery Message Dec 2, 2025
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.

2 participants