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.
Hi, I am trying to find a way to implement ethernet communication, I am familiar with socket programming, but for regular socket programming in TM4C129EXL, this require RTOS, which right now I am not very familiar with, so what if I only want to transfer char data through Ethernet, is there other way except socket programming?
Thanks
Shan
Hello Shan,
How big are the files and is there any timing requirement?
For most applications you should be able to use TCP/IP stack to transfer reasonably big files relatively quickly. The advantage of using TCP/IP stack is it is already proven to work and provides the flexibility to make it work across different networks (something that might become a requirement in the future).
TM4C port for lwIP does not support BSD socket style APIs. However, the native lwIP APIs can be used instead to accomplish the same task.
The examples "enet_uip" and "enet_lwip" use HTTP protocol. If you don't want to use the overhead of the HTTP protocol, then raw TCP packets can be used. The following link has multiple examples that demonstrate the use of lwIP, including "tcpecho_raw" that might be useful to understand the handling of TCP sockets using lwIP raw APIs. lwip.wikia.com/.../Sample_lwIP_applications
Alternatively TI-RTOS can also be used, which provides socket style APIs. The link to "TI-RTOS for MCUs" is: www.ti.com/.../ti-rtos-mcu
Thanks,
Sai