This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6675网络通信



TI工程师们:

你们好!我修改了一下<mcsdk_2_01_02_06路径>\examples\ndk\client\evmc6657l中的client.c,去掉了http和telnet,加入TEST_RAW_RECV并做了一点修改,希望能实现和pc间的通信,如附件。但是运行时pc能ping到6657的ip,6657却接收不到pc的数据,一直阻塞在recv那儿。pc发送程序我用的<mcsdk_2_01_02_06路径>\tools\boot_loader\examples\ethernet\Ethernet_boot中的程序,去掉了其中读文件的步骤即各种fgets,直接用“pBuf = "hello,world!";length = strlen(pBuf);if( sendto( s, pBuf, length, 0, (struct sockaddr *)&sin, sizeof(sin) ) < 0 )”进行传送,pc端运行没有出错,只是dsp接收不到。请问是哪里出问题了?

  • Hi, 您好!

    您能从PC ping通DSP, 说明DSP是收到了包并作了应答的。

    您可以用网络抓包工具,如wireshark 查看PC是否把包发出来了。

    在DSP端,您可以通过以太网统计寄存器(statistics)查看是否收到了包, 如C6657参考下面文档:

    KeyStone Architecture Ethernet Media Access Controller (EMAC)/Management Data Input/Output (MDIO) User Guide (SPRUHH1) 第8章

    谢谢