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.

6678 udp transforming problem

In my program, a udp socket is used to communicate with PC. I tried to transform 1KBdata 2048 times simply by sendto() in a for loop, and it neerly succeded. There are two problems here:

1, the first 10 or so packets can not be received

2, transform 4096 times in for loop would end up dropping lots of packages

Im using wireshark to watch udp packets on ethernet. What is wrong here?

Thanks a lot.

  • If you rely on Wireshark to check packets, it depends on how fast is your PC. At such high rate, many packets may not be captured by Wireshark.

    Assuming you are using NDK, please use the latest MCSDK and NDK package. You also can check DSP EMAC/switch counter to see how many packets are sent out by DSP (look at 0x2090B00 region).

    Regards, Eric

  • The number in counter is positivly larger than packet nunmber in wireshark, but still not compared to packet number I send in program. Sometimes packages are lost for sure

  • What is the purpose of this test? You can increase the UDP/TCP buffer size in the NDK package. If you want to test the throughput of C66x, you can refer to HUA demo under C:\ti\mcsdk_2_01_02_06\demos\hua.

    Regards, Eric