Skip to content

Connection timed out even with ~ 10 Registers? #85

Answered by aldas
gutschein asked this question in Q&A

You must be logged in to vote

Options array should be created like that

$client = new NonBlockingClient([
    'readTimeoutSec' => 1.5, // timeout when waiting response from server
    'connectTimeoutSec' => 1.5,  // timeout when establishing connection to the server
]);
$responseContainer = ($client)->sendRequests($fc3);

How many requests are sent? $x = count($fc3); are all sent to same IP, same unitID?

I recommend trying to send same requests (same start addres + quantity + ip + unitID) with https://www.modbusdriver.com/modpoll.html and see how it behaves. It could be that your devices behaves.

Replies: 5 comments 5 replies

You must be logged in to vote
0 replies
Answer selected by gutschein

You must be logged in to vote
2 replies
@aldas

aldas May 9, 2021
Maintainer

@aldas

aldas May 9, 2021
Maintainer

You must be logged in to vote
1 reply
@aldas

You must be logged in to vote
0 replies

You must be logged in to vote
2 replies
@aldas

@aldas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants