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.

Slow Transfer using TCP to DSP

Hi everyone,

I am a beginner in DSP programming. Currently, I am implementing an image transfer from a PC to a C6678 DSP evaluation module. I am doing this using TCP sockets with NDK 2.22.3.20. I've done this my modifying the TI example code helloWorld. I have written a client in Qt to do the transfer. It works fast on Linux at 40 fps, but very slow on Windows. I've written a client with C#. it gives similar performance for Linux, but very slow on Windows.

Does anyone have an idea or guidance on how to transfer large data fast from a Windows PC to the DSP? Your help is much appreciated.

Regards,

Chan

  • Hi Chan,

    I have seen some similar speed issues when using Window's networking API. I don't have a clear answer to why, but can you try the workarounds provided by Microsoft and see if it helps? http://support.microsoft.com/kb/823764

    Also, how does your client code work, and how are you compiling it in Windows?

    Alternatively, I have seen the C6678 implement a TFTP client, which may make it easier to run a TFTP server on either your Windows or Linux machines. Or, if you can stay away from Ethernet protocols, you may want to use SRIO or PCIE for even faster file transfer speeds.

    -Ivan

  • Hi Ivan,

    Thank you for the reply. I've tried some of the fixes, yet still doesn't work. Probably I should try the remaining one I guess. My client code is just a simple code where i send the file information to the DSP, and then sending the image data to it next. I have tried both C++ with Qt as well as C# with Visual Studio 2012 and both seemed to be suffering similar problem.  TFTP wasn't considered as the goal was to transfer real-time images from a camera, so I thought sockets would be the best option so far.

    I thought Ethernet was a good option as it was fast and my cameras are using the Ethernet as well. Might look into the other options. Thank you once again for your help.

    - Chan