W5500 unable to connect TCP server
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
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: W5500 unable to connect TCP server
by Sandor Banoczy ·
Update: w5500 send proper TCP messages in server mode, for client requests, (syn/ack)
while send mac broadcast instead of TCP SYN packet in client mode while try to join a server…
The same setting I use for borh (expect tcp mode for sure)
Strange…
Did somebody had the same before?
RE: W5500 unable to connect TCP server
by Sandor Banoczy ·
OK solved.
SW/HW resets were the problem, I guess.
HW reset for at least ~100ms is necessary,
continue it with SW reset,
and do not modify basic memory settings (timing TOS TTL)
just write the data as follows for common regs and S0…
Default common register settings
0000 04 80 **SW reset
0001 04 C0A80001 FFFFFF00 9A98DC010203 C0A800CA **gateway, subnet, sIP
002e 04 88 **PHY
Default socket_0 register settings for TCP
0000 0C 01 ** TCP mode
0004 0C 1388 **sPORT
000C 0C C0A80020 1388 **dIP, dPORT
Open Socket
0001 0C 01
Check SOCKET 0 is in INIT STATE
0003 08 00 ?= 0x13 (SOCK_INIT)
Send Connect request
0001 0C 04
Check SOCKET 0 if SOCK_SYNSENT
0003 08 00 ?= 0x17 (ESTABLISHED)