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

Broadcast transmission blocks for TIMEOUT ms #117

Open
bobemoe opened this issue Jul 28, 2023 · 0 comments · May be fixed by #118
Open

Broadcast transmission blocks for TIMEOUT ms #117

bobemoe opened this issue Jul 28, 2023 · 0 comments · May be fixed by #118
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@bobemoe
Copy link

bobemoe commented Jul 28, 2023

When sending broadcast message (as per modbus spec to server ID 0) the endTransmission() blocks and timeouts, the function returns failed even though all the servers successfully receive the transmission.

ModbusRTUClient.beginTransmission(0, HOLDING_REGISTERS, 0x00, 3);
ModbusRTUClient.write(0);
ModbusRTUClient.write(a);
ModbusRTUClient.write(b);
ModbusRTUClient.endTransmission(); //  broadcast always returns false :/

The issue I am having is that timeout is 1000ms and I can't afford that much delay in my code. Normal transmissions take about 18ms.

Modbus spec says broadcasts should not have replies so there is no need to wait for timeout and the function should return (success) immediately.

It is not even possible as a workaround to change the timeout because #28

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Jul 28, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants