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.

Are there other communication method other than socket programming within Ethernet communication?

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,

    You may want to have a look at the enet_uip and enet_lwip examples in TivaWare. Neither of these utilize an RTOS. Let me know if these will solve your problems.
  • Hi,Chuck, I have check the enet_uip and enet_lwip, these two bother obtain an ip and set up a website, but I am trying to use the Ethernet to send out data, such like a Mp3 music file, how could I achieve that.

    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