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.

Compiler/EK-TM4C1294XL: How to recieve Ethernet frames on Microcontroller from PC with CCS using Etherent ??

Part Number: EK-TM4C1294XL

Tool/software: TI C/C++ Compiler

Hello Everyone. 

I would like to do Ethernet Communication between the PC and Microcontroller which is TM4C1294 Launchpad.

At the start i would like to recieve some Ethernet frames on my Microcontroller which i send from my PC using the CCS v7. 

I looked a lot but was unable to find the right key to do this implementation. 

I was also confused about the TCP and UDP. If anyone can also explain a bit of which one is better in this case. 

Further i would also like to ask which tool i should use for the sending and recieving the TCP or UDP i.e. Packet sender or something else. I would like to use packet sender and how it works. 

I am looking forward for suggestions and help in this regard.

Please guide me how can i now move forward.

Thank you

  • Hi,

      There are several Ethernet examples under <TivaWare_Installation>/examples/boards/ek-tm4c1294xl such as the enet_lwip and enet_xxx. Attached please find another tcpecho example that you can import into CCS. 

    6114.tcpecho.zip

    As far as TCP vs UDP, I think you can do Google search to better understand the pros and cons of each protocol. Lengthy discussion on these two protocols are beyond the scope of this forum support as we mainly support questions related to how the MCU works.  With that said, the TCP handles error checking during transmission and the UDP does not - TCP is a protocol that will guarantee the reliability of the transmission. The TCP is generally slower than the UDP. An example would be that If you want to send an email then you will want to use TCP. If you want send your voice over ethernet you will consider UDP as some loss of data of your voice probably will not hurt the quality of your conversation. It is your application and you will need to decide what protocol you want. 

    Personally I have used the SocketTest free tool running on the PC side to test the Ethernet transmission. Here is the link. https://sourceforge.net/projects/sockettest/

    I have not tried other tools but if you do some Google search, I'm sure you will find many other free tools to use. It is your choice and I can't make recommendation which one is better or not.