changjianfeng 发表于 2011-12-10 17:10:38

RT-Thread RTOS v0.3.2 lwip 28j60 测试连接方法

INT 连接PB0
sck连接PB13
si-》pb15
so-》PB14
cs-》PB12
RES接3.3V

changjianfeng 发表于 2011-12-10 17:15:56

我遇见一个问题,用直连网线不通,用交叉网线也不通。但是有个错误接法的网线,却能连通。顺序为一头T568B标准,另外一头为橙白、橙、蓝白、蓝、绿白、绿、棕白、棕。却能通(在连接JLINK下载器时),当拔掉JLINK时,不通。开发板和28j60电源为USB口供电。

changjianfeng 发表于 2011-12-10 17:26:55

http://cache.amobbs.com/bbs_upload782111/files_48/ourdev_703419IYKLDW.JPG
用的是淘宝上的这款,不知是不是有毛病。 (原文件名:23.JPG)

changjianfeng 发表于 2011-12-10 17:30:18

例程默认的地址为192.168.1.30。

changjianfeng 发表于 2011-12-10 17:36:06

Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Request timed out.
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Request timed out.
Hardware error.
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Request timed out.
Request timed out.
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Request timed out.
Request timed out.
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255
Request timed out.
Reply from 192.168.1.30: bytes=32 time=1ms TTL=255测试结果,可能是网线的问题,也可能是网络模块的问题吧!交叉,直连都不通,只有这种错误的网线可以通,现在改成外部电源供电了,JLINk可以拔掉了。难道和电源有关?

xslff 发表于 2011-12-10 18:28:24

顶一下,我的野火开发板上面的这个模块接电脑不行,接路由可以!
可不可以通过编程不换线呢?

changjianfeng 发表于 2011-12-10 20:03:55

那路由要设置成,静态模式,lwip会不会自动获得IP地址呢!

changjianfeng 发表于 2011-12-10 22:26:22

lwIP咋样能自动获得IP地址。

shpan_111 发表于 2011-12-12 13:42:34

请问楼上各位,你们RTT+lwip编译后的代码多大呢??

changjianfeng 发表于 2011-12-12 14:41:32

问题找到了,是因为这个模块的RJ45接口颠倒,在网线中只有1,2,3,6这四个线是有用的,另外一头,按照规定应该是3、6、1、2方式,但是这样是不通的,只能接成6,3,,2,1才行,直接上图大家会看得更明了。

changjianfeng 发表于 2011-12-12 14:46:27

http://cache.amobbs.com/bbs_upload782111/files_49/ourdev_703923Q74V80.JPG
小板子的图 (原文件名:1.JPG)

http://cache.amobbs.com/bbs_upload782111/files_49/ourdev_703924ZIF108.JPG
28J60的手册图 (原文件名:2.JPG)

changjianfeng 发表于 2011-12-12 14:48:17

手册上是1连接同名端,但是小板子上是2连接同名端,所以网线要和标准的交叉网线不通。这可真是害苦我了。

changjianfeng 发表于 2011-12-12 15:00:46

http://cache.amobbs.com/bbs_upload782111/files_49/ourdev_703926RFUYAM.JPG
模块变压器结构图 (原文件名:3.JPG)

changjianfeng 发表于 2011-12-12 15:08:23

谁能说说,这个变压器是不是有问题,应该J1和J2调换,J3和j6调换啊。要不画PCB的时间,同名端这个就只能接-,另外接+了,不知道行不行。谁愿意说说。我的网线二头接法是:
白橙-》绿
橙-》白绿
白绿-》橙
兰-》兰
白兰-》白兰
绿-》白橙
白棕-》白棕
棕-》棕
按规定的交叉网线应该是:
http://cache.amobbs.com/bbs_upload782111/files_49/ourdev_703928XSHN5W.jpg
(原文件名:4.jpg)

changjianfeng 发表于 2011-12-12 15:10:34

按规定制作,不通,按我自己的做法,PIng可以通延时也很小只有1.

aozima 发表于 2011-12-12 16:24:47

卖模块的卖那么多都没人说有错?
或他知道了也不告诉你?

changjianfeng 发表于 2011-12-12 17:03:25

那楼上的说说,是为什么?难道是我的网线做的有问题?还是我的电脑有问题。我想电脑的问题应该不可能的吧!网线我是反复核对的,我保证没有问题。
页: [1]
查看完整版本: RT-Thread RTOS v0.3.2 lwip 28j60 测试连接方法