Netinfo gets reset after few minutes in W5500
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: Netinfo gets reset after few minutes in W5500
by Eugeny ·
Insufficient information.
Look into 5.2.1.2 of the W5100 datasheet. Your software must perform exactly the steps explained in the block diagram.
RE: RE: Netinfo gets reset after few minutes in W5500
by Ashvin ·
Thanks for reply.
sources are not accessible.
Sorry for that i am uploading code block here. some how it is not accessible.
look into the library you use what connect() error code -13 means (FFFFFFF3). The dump does not state what socket you are trying to open, you have socket 0 already open.
error code -13 means (FFFFFFF3), after few try TCP client is able to connect with server. I am trying conect with socket 0
i have place debug code block to get the information
I am placing the code block below to get idea about it.
tcp_client.pdf (44.8 KB)
STM32H750VBT6 _W5500.zip (6.1 MB)
RE: Netinfo gets reset after few minutes in W5500
by Eugeny ·
Quick look: you display
using information provided by
wizchip_getnetinfo()which gets data directly from the chip. At the time you see all zeros the chip is having all the main operating registers zeroed, and of course it will not work. Find out when you zero these registers (or perform software or hardware reset to the chip). Software reset is performed using MR register., hardware reset is performed using /RESET pin of the chip.RE: Netinfo gets reset after few minutes in W5500
by Ashvin ·
Hi,
Thank you @Eugeny for support.
Find out when you zero these registers (or perform software or hardware reset to the chip)
Network info is getting zero due to reset of W5500? or may be any other points for lookout?
I am performing hardware reset of W5500 only during the power cycle reset of my hardware.
and for software reset, i am not sure about it because i am using the ioDriverLibrary which i have clone from github. After configuration of network info i am not performing any configuration steps.
As i am not performing any reset operation, once the socket connection is established i am only sending and receiving the packet, this process is continuous.
Observation
Socket state is changing from SOCK_ESTABLISHED to SOCK_CLOSED state and inside the SOCK_CLOSED state i am reading the network info, so may be it is getting reset inside the SOCK_ESTABLISHED state. but I am still not sure about this, it’s just an assumption based on the logs.
can you help me to debug this? where should I possibly look?
Thanks & Regards
RE: Netinfo gets reset after few minutes in W5500
by Eugeny ·
The most direct way is the best - after each meaningful command perform
WIZ_GetNetworkInfo()to see the values configured in the chip (including just after configuration). As soon as you localize the issue, you (we) can have a closer look into respective code.