当前位置:网站首页>How to solve the problem that "w5500 chip cannot connect to the server immediately after power failure and restart in tcp_client mode"
How to solve the problem that "w5500 chip cannot connect to the server immediately after power failure and restart in tcp_client mode"
2022-07-25 11:43:00 【WIZnet】
Q: Chip in TCP_Client In mode , Unable to connect to the server immediately after power failure and restart
R: This is because the client does not actively send a disconnect request , Cause the server doesn't know Socket Abnormal disconnection has occurred ; After power on again , Chips in the same IP And port to the server , And the server also thinks this Socket Links exist , So reject the immediate connection of the chip .
A: Solution :
In chip use KEEP_ALIVE Mechanism , Send breathing packets for a period of time , If the chip does not reply to the server , The server judges that the link is broken , And release Socket resources , Then you can successfully connect . If there is no requirement for the local port of the client , You can also initialize Socket The part of makes the port automatically +1 Handle . The two methods are adopted according to the specific application analysis .
notes : Some scenarios cannot use port Automation +1 The way , Like electricity 104 Statute , Only 2404 Port connection .
If you have any questions, please feel free to leave a message to us , Or send to WIZnet Official email :[email protected]
WIZnet Official website :http://www.iwiznet.cn/
WIZnet Official technical service platform (qq Group ):595547972
More than Internet of things applications , Can pay attention to WIZnet Official WeChat official account :

边栏推荐
猜你喜欢

城市雕塑典型作品信息管理系统(图片分享系统SSM)

The most efficient note taking method in the world (change your old version of note taking method)

Chapter 4 linear equations

SQL注入 Less23(过滤注释符)

Fillet big killer, use filter to build fillet and wave effect!
![[MySQL learning 09]](/img/27/2578f320789ed32552d6f69f14a151.png)
[MySQL learning 09]

MySQL | GROUP_ The concat function concatenates the values of a column with commas

Leetcode sword finger offer 27. image of binary tree

【电子器件笔记5】二极管参数和选型

Want to record your supernatural moments when playing games? Let's take a look at how to use unity screenshots
随机推荐
教你如何通过MCU将S2E配置为UDP的工作模式
谣言检测文献阅读十一—Preventing rumor spread with deep learning
Nowcodertop12-16 - continuous updating
【leetcode刷题】
Dataframe print ellipsis problem
Database design - Simplified dictionary table [easy to understand]
Shell - Chapter 6 exercise
Learn PHP -- phpstudy tips mysqld Exe: Error While Setting Value ‘NO_ ENGINE_ Solution of substitution error
varest蓝图设置json
web移动端:touchmove实现局部滚动
小微企业智能名片管理小程序
SQL注入 Less23(过滤注释符)
Breadth first traversal (problems related to sequence traversal of graphs and binary trees)
活动报名 | 玩转 Kubernetes 容器服务提高班正式开营!
[MySQL learning 08]
Small and micro enterprise smart business card management applet
教你如何通过MCU配置S2E为TCP Client的工作模式
The most efficient note taking method in the world (change your old version of note taking method)
Several common PCB surface treatment technologies!
Layout management ==pyqt5