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.

TCP / IP Code Example

Hello

 

We would like to Implement TCP / IP protocol from the EVM6678L ( Server ) to External  PC (Client ) .

I mean the PC will be configure to be at some Static IP address ( as exist at the example

Project named : Image processing /ipc/ master …..under MCSDK Installation .

The EVM will be used as a Server with it's Static IP too .

 

First question : Is it possible to configure it like this ?

2'nd question : we took the TCP / IP Instructions from the /Client Example under the /NDK

It compiled and built . The issue is that we need these definitions at the PC Side too .

 

AT the PC Side we are working with Winapps  SW exist in CCS / ndk Installation .

 

Where we can find SW module for PC side , using windows 7 or windows XP , Which

Has TCP / IP definitions ?

3'rd Question : At the EVM side should we add more code or copy more lines code

From the Client.c file example in order that the EVM will completely configured as TCP / IP protocol support .

4'th Question : Are all this above flow of work make sense that out Task will be performed as we expecting ?

 

Thanks

 

Gideon

 

 

 

 

 

 

  • Hi Gideon,

    First Question: Yes. You can have the EVM use a static or dynamic (via DHCP) IP address. For the PC, I'm sure you can do the same.

    Seconds Question: I'm not quite sure what you are asking. The NDK is not intended to run on Windows. You should use the networking facilities within Windows.

    Third and Fourth Question: Again, I'm not sure what the questions are.

    Todd

  • Hi Todd

     

    Thanks

     

    What u mean by networking facilities ? I think I need to find some SW running on
    windows and can communicate as a client .

    Means that the SERVER .i.e EVM will send message and the PC i.e. client will replay
    with message .

     

    Please tell me if I am right ?

     

    Gideon

     

     

  • Gideon,

    One the PC side, the NDK includes Windows examples (in packages\ti\ndk\winapps directory). The .exe and the source code is included. If you want to rebuild or modify these apps, you need to get a Window's compiler and build the examples. Note the PC examples use WinSock (which interfaces to the networking stack in Windows).

    Todd

  • Todd

     

    The issue is that this SW in the PC , WinSock is for UDP and we need TCP / IP protocol both at the PC side .

     

    Is there a way to find the compatible TCP / IP instrunctions for the WINNAPP SW Example ( C code )  , in order to produce new .exe which

    will perfom TCP / IP Protocol ?

     

    I guess the TI 6678L instructions code for TCP / IP protocl configuration will not apply for the PC !!

     

    Thanks

     

    Gideon

     

  • Gideon,

    Please read http://en.wikipedia.org/wiki/Winsock.

    On Windows, you could also use Java, Python, etc. if you'd prefer.

    Todd