Internal state-machine corrupted in specific circumstances #472
Labels
community
could be done by the community
handled by plus4nodered team
https://p4nr.com/
help wanted
problem
Stale
unexpected behaviour
Which node-red-contrib-modbus version are you using?
5.25.0, 5.31.0, 5.40.0
What happened?
Modbus-Flex-Getter stops sending requests to modbus server after a specific set of messages
Server
Other/External server
How can this be reproduced?
I've figured out that this happens when you add 3 modbus-requests to the queue at the same time. The Problem happens after a request that times out.
After that every modbus-request will just be added to the queue. But no request will be sent out.
my testing flow:
I've tested against a real modbus-tcp server. But it's also possible to reproduce this with a simple socat command
clear text modbus-request i'm using
I've tried to debug all this an found out that request 2 is going out and the state machine immedately (it does not wait until the response from request 2 is incoming) tries to send request 3.
I tried to fix this ans make a pull request But I couldn't figure out how. Everything I've tried just made things worse ...
What did you expect to happen?
Other Information
The text was updated successfully, but these errors were encountered: