WIZ550S2E-485 Modbus TCP Server - connection reset by peer
Serial-to-Ethernet & ConfigTool
No replies yet. Be the first to reply.
Join the discussion.
Serial-to-Ethernet & ConfigTool
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: WIZ550S2E-485 Modbus TCP Server - connection reset by peer
by mason WIZnet ·
Hello Emanuele,
Please refer to our Modbus library of WIZ550S2E code.
You can see this through below link.
I tested modbus function of WIZ550S2E through modbus poll and modbus slave
It was no problem.
Thank you.
RE: WIZ550S2E-485 Modbus TCP Server - connection reset by peer
by scinz ·
Hi Mason,
I tried to configure with Configuration Tool 1.20, but the result didn’t change. I was previously using v 1.31.
With Modbus Poll the result is “Read Error”:
A capture with Wireshark gives this result:
connection_reset.pcapng.zip (200,0 KB)
that however I’m not able to understand.
No idea of what could go wrong?
RE: WIZ550S2E-485 Modbus TCP Server - connection reset by peer
by ostorezio ·
Hi Mason, I’m working on the same project as Emanuele.
We don’t understand why the WIX550 is resetting the communication.
As you see we tested the Master you suggested (Modbus Poll) and also another Master we’re using successfully with a different adapter (Moxa Modbus Gateway MGate MBxxxx).
Probably there is a configuration that we overlooked. Is there any difference we should consider while moving from Moxa to WIX?
Thank you for your attention,
RE: WIZ550S2E-485 Modbus TCP Server - connection reset by peer
by ostorezio ·
Hi again,
We did some progress, doing multiple testing, we found out there is a critical timing between the connection and the sending of the first Modbus request.
If we send the request right after the connection, we get the “malformed packet”
If we connect, and do nothing afterwards, the WIZ keeps the connection alive for 5", and then disconnects
If we connect, wait 1" and send a Modbus request, Wiz disconnects right after the request
The Modbus request is well formed, we sniffed it with Wireshark
We keep track of connection/disconnection by looking at the green LED.
Is this the expected behavior? I would say no, since Wiz is a Modbus slave (AKA Server) and therefore it’s connection must be kept alive forever and listening for incoming requests.
Maybe we have to configure some timeout/keepalive parameter?
Thank you again for your attention,
RE: WIZ550S2E-485 Modbus TCP Server - connection reset by peer
by scinz ·
Problem solved!
Connection password must be empty.
Thank you for your help!