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

Add quirks flag MODBUS_QUIRK_IGNORE_RTU_SLAVE_CHECK. #672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vancepym
Copy link

@vancepym vancepym commented Dec 7, 2022

The Modbus RTU mode currently only allows a single slave, the message is ignored when not from the expected slave.

The MODBUS_QUIRK_IGNORE_RTU_SLAVE_CHECK flag allow ignore the Modbus unit identifier (slave) checking, in this way, the RTU slave device can acts as a multi-channels gateway, receive the request messages for different slave from upstream channel, then forward those to the downstream channel in transparent mode.

@cla-bot
Copy link

cla-bot bot commented Dec 7, 2022

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-bot
Copy link

cla-bot bot commented Dec 8, 2022

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-bot cla-bot bot added the cla-signed label Feb 2, 2023
The Modbus RTU mode currently only allows a single slave,
the message is ignored when not from the expected slave.

The MODBUS_QUIRK_IGNORE_RTU_SLAVE_CHECK flag allow ignore the
Modbus unit identifier (slave) checking, in this way, the RTU
slave device can acts as a multi-channels gateway, receive the
request messages for different slave from upstream channel,
then forward those to the downstream channel in transparent mode.
@vancepym
Copy link
Author

vancepym commented Feb 3, 2023

Waiting for this PR to be merged, thanks.

SergeyMy added a commit to SergeyMy/libmodbus that referenced this pull request May 19, 2023
Add quirks flag MODBUS_QUIRK_IGNORE_RTU_SLAVE_CHECK
Signed-off-by: SergeyMy <virtual@ufasp.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant