我想实现6678的EVM板和PC机通过网口传输数据,在ti/mcsdk_2_00_05_17/examples/ndk/client有工程client,我改了client.c中的几个地方:
line 81 *LocalIPAddr 改为 192.168.1.122;
line 83 *GatewayIP 改为192.168.1.1;
line 90 clientMACAddress 改为我电脑的MAC地址.
编译运行此工程,Console窗口中打印出信息:
QMSS successfully initialized
CPPI successfully initialized
PA successfully initialized
Tcp/IP stack Example client
configuring DHCP client
PASS successfully initialized
Ethernet eventId : 48 and VectId (Interrupt) : 7
Registration of the EMAC successful ,waiting for link up...
Service status : DHCPC : Enabled : : 000
Service status : Telnet : Enabled : : 000
Service status : HTTP : Enabled : : 000
Service status : DHCPC : Enabled : running : 000
Service status : DHCPC : Enabled : Fault : 002
Service status : DHCPC : Disabled: : 000
打开PC机的CMD窗口,输入"ping 192.168.1.122",cmd窗口显示信息如下:
Pinging 192.168.1.122 with 32 bytes of data:
Request timed out
Request timed out
Request timed out
Request timed out
Ping statistics for 192.168.1.122
packets : Sent = 4, Received = 0 , Lost = 4(100% loss).
我对NDK的代码不懂,可有哪位网友知道为什么连接不上吗?是不是我缺少什么步骤还是哪个地方的代码还需要改?希望各位高手不吝赐教。
2. 现在我自己的板子上有两片6678的DSP,我想在这两个DSP之间通过网口传输数据,但是一点头绪都没有,不知道该怎么办,可有哪位高手知道具体的步骤吗?
希望得到大家的帮助,十分感激!
祝大家一切顺利!
Nuoxi