OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 5627|回复: 1

LWIP server+ STM32 + ENC28J60 + 无RTOS + modbus TCP 之问题:断开连接后 无法重连

[复制链接]

5

主题

20

帖子

0

精华

初级会员

Rank: 2

积分
138
金钱
138
注册时间
2018-11-19
在线时间
113 小时
发表于 2021-6-25 13:30:47 | 显示全部楼层 |阅读模式
40金钱
数据据如下:
[2021-06-25 13:25:36-988]NET001-发送:[2e 4a 00 00 00 06] 01 4d 12 34 56 78
[2021-06-25 13:25:37-014]NET001-接收:[2e 4a 00 00 00 c9] 01 4d 80 65 55 aa fa 2d 11 22 33 44 55 66 77 10 00 00 00 00 00 00 aa aa 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[2021-06-25 13:25:37-127]NET001-发送:[2e 4b 00 00 00 06] 01 4d 12 34 56 78
[2021-06-25 13:25:37-151]NET001-接收:[2e 4b 00 00 00 c9] 01 4d 80 66 55 aa fa 2d 11 22 33 44 55 66 77 e6 00 00 00 00 00 00 aa aa 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[2021-06-25 13:25:37-251]NET001-发送:[2e 4c 00 00 00 06] 01 4d 12 34 56 78
[2021-06-25 13:25:37-271]NET001-接收:[2e 4c 00 00 00 c9] 01 4d 80 66 55 aa fa 2d 11 22 33 44 55 66 77 e6 00 00 00 00 00 00 aa aa 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


单片机:作为服务器(只允许连接一个客户端);
PC:作为客户端
问题: 异常(丢包)断开连接后,无法重连(原因:之前连接的客户端没清空),请问如何断开之前的连接?






正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

6

主题

156

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
464
金钱
464
注册时间
2021-4-28
在线时间
158 小时
发表于 2021-6-25 13:47:56 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-24 14:45

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表