时
时光隐匿
2019-05-30
最近在做S08_CH04 PS通过GTX实现SFP网络通信时出现一些问题。
根据文档把LWIP的库路径改了(别的没有动),编译后加载测试。卡在下面的地方
TCP packets sent to port 6001 will be echoed back
Start PHY autonegotiation
Waiting for PHY to complete autonegotiation.
电脑没有识别连接,奇怪的事情来了。
我把网线连在电口上,等电脑有连接后,马上拔下来插在SFP上,就能识别了,打印如下
Start PHY autonegotiation
Waiting for PHY to complete autonegotiation.
autonegotiation complete
link speed for phy address 6: 1000
Board IP: 192.168.1.10
Netmask : 255.255.255.0
Gateway : 192.168.1.1
TCP echo server started @ port 7
如果拔下来2秒再插上,还是能识别,但是拔下来5秒之后再插电脑就不识别了。
我换了电脑和SFP口,是同样的情况。
在设备管理器中,禁用网卡,再启用网卡,也可以识别。我换了电脑也是一样的,这样正常吗?