how to use TCP/IP for xc - 2 ethernet kit?

If you have a simple question and just want an answer.
vaishali1
Junior Member
Posts: 7
Joined: Wed Dec 25, 2013 1:57 pm

how to use TCP/IP for xc - 2 ethernet kit?

Post by vaishali1 »

hello,

 

I want to use TCP/IP for broadcasting data.

Previously i was able to send and receive data using UDP/IP example given in the tutorial called "app_simple_udp".

But now i want to use TCP/IP for sending and receiving data.

In the programming guide , it is written that UDP and TCP works same in the xmos except there is a need to specify the protocol at connection or listen instruction like "xtcp_listen(c_xtcp, INCOMING_PORT, XTCP_PROTOCOL_TCP);"

To use TCP / IP , i have just changed the protocol name from UDP to TCP as mentioned in the guide and the rest of the programme is same as before in the "app_simple_udp" example.

But i am not getting any data sent from this programm.

I am using TCP/IP tools software to receive and send data to my xmos xc 2 kit.

Please tell me what should i do to use TCP instead of UDP. I am kind a new to networking.

Thanks and regards,

vaishali



User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

Hi,

This is a simple example of using xTCP:

https://github.com/xcore/sc_xtcp/tree/m ... _webserver