Comments (3)
不敢联系你哈,自己的项目都做不完,实在没多的精力。
另外也没用过libmodbus和W5500。
说下如果我遇到这样的问题,该怎么查哈。
.再也无法连接上了
- 谁连接谁?
- W5500是以太网,那此时以太网上面的数据包是怎样的?
- 如果是PC连接过来,那PC上面直接Wireshark抓就行了
- 如果是其它设备连接过来,可能要串个抓包交换机
- W5500是内置协议栈,那有新连接又连接不上时,此时dump出所有寄存器逐个位分析。结合数据手册。
- 百度了下,W5500和MCU是SPI通讯吧?那SPI给接上逻辑分析仪,还有中断脚。
- 比如连接时看看INT引脚和SPI上面有没通讯? 数据是什么?这又代表什么?
再来看软件的问题
- 新连接过来,代码做了些什么? 此时有没有JTAG接上单步?
- 没有JTAG可以加多些log?
- 映射的SAL的socket有没有成功? 状态有没有变化 ?这块是否可以通读下代码?
以上仅是举个例子,相信楼主做好了这些分析,能得到不少的收获,或是发问题时,列了这些数据和分析,也能引起别人的共鸣。别人来回你的贴子帮你分析,也是希望能共同学习。而不是帮你把项目给做了。
from wiznet.
一段时间,是多久的时间?
winzet 的软件包已经实现了 DHCP 功能,路由器一般会对连接时间有限制。不知道这个连接一段时间就会断开,这段时间是多久?
w5500 是硬件协议栈,对可以连接的 socket 数量有限制。连接不上的情况,具体是出现在 socket 建立阶段,还是连接阶段?返回的错误连接,追踪到 w5500 返回的错误,以便加以解决。
Sal 层是对 socket 加以抽象,方便进行lwIP 协议栈、AT Socket 协议栈、WIZnet 硬件 TCP/IP 协议栈三者之间的切换,这里问题倒是不大。
主要是考虑,过一段时间,是什么时间?winzet 使用时,用得是静态 IP 还是 DHCP 的方式?
from wiznet.
WINET用的是静态IP,网页客户端以短连接形式每分钟采集一次,最大客户端熟练设置为2,超时10s,客户端存活时间timeval是1s,,这样大概10多分钟后串口日志报DFS fd new is failed! Could not found an empty fd entry的错误。后面就连不上了
。
所以对这个问题很是苦恼,真不知道该咋办了
from wiznet.
Related Issues (20)
- 是否有必要更新下这个库,与官方的ioLibrary同步一下 HOT 2
- 如果我板载两个W5500网口, 那么应该如何适配? HOT 5
- Wiznet如何实现将SPI设备(如W5500)挂载至SPI总线上的? HOT 1
- 网线异常断开之后如何保证重连的?我在应用中发现当网线异常被拔掉再重插,会出现不能连接的问题 HOT 3
- wizchip_connect()中while循环时间太长,会造成看门狗没法喂,使得系统重启 HOT 3
- wiz_recvfrom()错误时返回值不能区分错误的详细类型 HOT 2
- W5500前端没有路由器直接接网关会创建socket失败 HOT 3
- Add SO_REUSEADDR support
- 当发送数据超过发送缓存 应分包发送保证所有数据发送出去 HOT 4
- 执行Ping命令的程序跑飞 HOT 1
- 引脚中断回调没有被执行 HOT 1
- 编译错误,EAGAIN找不到定义 HOT 2
- socket创建必须要物理link up HOT 1
- read收数据时会导致线程一直执行 HOT 3
- rt_thread最新版本已将sal.h修改为sal_low_lvl.h,这个固件包还会更新么以适配4.1.0 HOT 4
- packages/wiznet-latest/src/wiz_af_inet.c:16:25: fatal error: sal_low_lvl.h: No such file or directory HOT 1
- 在使用wiznet的时候,是否可以使用select实现非阻塞式的通信,想用w5500实现TCP服务器,实现多客户端处理。
- 目前的wiznet是不是不支持tcp server模式,我测试了client模式,工作正常,但是server模式,在accept函数调用时报错! HOT 1
- wizchip_socket.h 中的wizchip_ctlsocket函数声明找不到定义
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiznet.