ModbusTools icon indicating copy to clipboard operation
ModbusTools copied to clipboard

Add random delay range for server reply

Open MLaudren opened this issue 8 months ago • 3 comments

Hi again,

In the Server application, Would it be possible that instead of a fix delay, we can also select a range, so the answer can vary?

Ex: Fix time of 20ms, Or range between 20ms and 100ms, selectable by the user.

Thanks!

MLaudren avatar Apr 23 '25 21:04 MLaudren

I guess I've understood what you mean. The delay is present (when using serial port) because of Timeout Inter byte serial port setting which by default is 50 millisec. There is a thread about. You can reduce it because it might be too much.

Such setting is already exists. Menu Device->Edit Device->Settings tab->Delay (msec)

serhmarch avatar Apr 23 '25 22:04 serhmarch

That is the part I'm talking about as well Image

Can we have the choice of a fix delay (what is the system proposing now), or a range?

So we can tell the application to delay all message of XX ms, or random between XX and YY ms, if the user select a range.

Thanks

MLaudren avatar Apr 25 '25 18:04 MLaudren

Well, I'll think about it.

serhmarch avatar Apr 25 '25 18:04 serhmarch