w5500 ping baidu.com 遇到问题

发布于 2019-08-13 18:46:42    浏览:1713
笔记本ping模块正常,反过来,模块ping 百度、路由都不成功
调试信息如下:
\ | /
- RT - Thread Operating System
/ | \ 4.0.1 build Aug 13 2019
2006 - 2019 Copyright by rt-thread team
[I/sal.skt] Socket Abstraction Layer initialize success.
[I/wiz] RT-Thread WIZnet package (V2.0.0) initialize success.
msh >ifconfig
network interface device: W5500 (Default)
MTU: 1472
MAC: 00 e0 81 dc 53 1a
FLAGS: UP LINK_UP INTERNET_DOWN DHCP_ENABLE
ip address: 192.168.1.105
gw address: 192.168.1.1
net mask : 255.255.255.0
dns server #0: 192.168.1.1
dns server #1: 0.0.0.0
msh >ping baidu.com
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host baidu.com
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host baidu.com
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host baidu.com
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host baidu.com
msh >wiz_ping baidu.com
wiz_ping: command not found.
msh >



配置信息:
芯片:STM32F103VET6
野火的W5500模块
C6 ->INT -63
C7 ->RST -64
1565692488(1).jpg
1565692416(1).jpg

查看更多

13 个回答
Cheney_Chen
Cheney_Chen 2019-08-13
This guy hasn't written anything yet
其他网络软件包都正常吗,还是只有 ping 运行不正常,ifconfig 查看一下当前域名服务器地址是否正常,ping 114.114.114.114 看是否正常
Hu_XianShen
Hu_XianShen 2019-08-13
This guy hasn't written anything yet
Cheney_Chen 发表于 2019-8-13 19:48
其他网络软件包都正常吗,还是只有 ping 运行不正常,ifconfig 查看一下当前域名服务器地址是否正常,ping ...


msh >[E/wiz.socket] WIZnet socket (0) receive timeout (2000000)!
ping 114.114.114.114
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host 114.114.114.114
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host 114.114.114.114
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host 114.114.114.114
[E/wiz.socket] WIZnet socket (1) receive timeout (2000)!
ping: unknown host 114.114.114.114
msh >
Cheney_Chen
Cheney_Chen 2019-08-13
This guy hasn't written anything yet
Hu_XianShen 发表于 2019-8-13 19:52
msh >[E/wiz.socket] WIZnet socket (0) receive timeout (2000000)!
ping 114.114.114.114
[E/wiz.soc ...


其他网络软件包或者 tcp client 例程好使吗?是不是设置的 reset pin 和 irq pin 号问题?
Hu_XianShen
Hu_XianShen 2019-08-13
This guy hasn't written anything yet
Cheney_Chen 发表于 2019-8-13 19:59
其他网络软件包或者 tcp client 例程好使吗?是不是设置的 reset pin 和 irq pin 号问题? ...


多谢老师指点!确实是管脚的问题;我使用的引脚是封装上的管脚号,引脚号应该用查表的方式,忽略了这个问题!
__STM32_PIN(38, C, 6),
__STM32_PIN(39, C, 7),
Cheney_Chen
Cheney_Chen 2019-08-13
This guy hasn't written anything yet
Hu_XianShen 发表于 2019-8-13 20:30
多谢老师指点!确实是管脚的问题;我使用的引脚是封装上的管脚号,引脚号应该用查表的方式,忽略了这个问 ...


问题解决可以结一下贴:lol
Hu_XianShen
Hu_XianShen 2019-08-13
This guy hasn't written anything yet
Cheney_Chen 发表于 2019-8-13 19:59
其他网络软件包或者 tcp client 例程好使吗?是不是设置的 reset pin 和 irq pin 号问题? ...


这里我要用 wennet 软件包,SAL层是不是不支持作为服务端,要实现这块内容有没有参考?
hello
hello 2019-11-01
This guy hasn't written anything yet
这个帖子也解决了我的问题,同时我想问,为什么需要按照查表法呢?是不是方便rtthread的开发人员??
Hu_XianShen
Hu_XianShen 2019-11-02
This guy hasn't written anything yet
wiznet 已经支持服务端了,昨天测试用网络工具很正常;webnet 还是存在问题,网页打开慢(有时打不开),且AUTH ,CGI等均存在问题。Go back to root 一点就死!
hnhebing
hnhebing 2019-12-10
This guy hasn't written anything yet
Hu_XianShen 发表于 2019-11-2 09:44
wiznet 已经支持服务端了,昨天测试用网络工具很正常;webnet 还是存在问题,网页打开慢(有时打不开),且 ...


wiznet 作服务器问题解决了吗?
Hu_XianShen
Hu_XianShen 2019-12-11
This guy hasn't written anything yet
hnhebing 发表于 2019-12-10 13:16
wiznet 作服务器问题解决了吗?


目前没有用,换了芯片ENC28J60

撰写答案

请登录后再发布答案,点击登录
关注者
0
被浏览
1.7k

发布
问题

分享
好友

手机
浏览

扫码手机浏览