Closed TaikiAkita closed 2 years ago
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...
CLA signed.
How does this help with anything though?
How does this help with anything though?
Recently, I tried to use modbus_send_raw_request()
and modbus_receive_confirmation()
to implement vendor-specific function code.
But the length returned by modbus_receive_confirmation()
seems to be incorrect. This patch is intended to fix this problem (currently for Modbus TCP only).
For Modbus RTU, there seems to be no reliable way to fix this issue, since 3.5 chartime is really strict for non-realtime operating systems and there is no Length
field (or something like that) in RTU frame.
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Ji WenCong. This is most likely caused by a git client misconfiguration; please make sure to:
git config --list | grep email
git config --global user.email email@example.com
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...
The only right way of handling custom requests is via one of the other PRs, https://github.com/stephane/libmodbus/pull/140 or similar. Your method only helps for tcp, and only for some cases, it doesn't sound like code that should be "standard" in the library?
The only right way of handling custom requests is via one of the other PRs, #140 or similar. Your method only helps for tcp, and only for some cases, it doesn't sound like code that should be "standard" in the library?
The only right way is following the specification, not a bunch of hacks. After investigation, the quality of this library can not meet our requirement, so we closed the PR.
For Modbus TCP, the PDU length can be computed directly from the Length field of the header (MBAP).