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.

Sample code for receiving query and sending data over Ethernet.



I am using TM4C1294 development board.

I am want a sample code for receiving query & sending data over Ethernet port.

This is something similar to MODBUS Protocol, where device receives a query from Master & answers with the required set of data (Few hundred bytes)

Please help

  • Hello Anil,

    It seems to be similar to Serial 2 Ethernet TI Reference Design

    Regards
    Amit
  • Anil Bhide said:
    where device receives a query from Master & answers with the required set of data

    Such design is usually classified as, "Command & Response" and usually - but not always - sees "only the master" command/interrogate the slaves.   There's a weakness here - as the slaves gain intelligence (via MCU inclusion) it proves useful for the slaves to be able to, "Request Servicing" from the master.

    Your "steering" this requirement into the "Ethernet realm" opens a, "Pandora's box" of new issues, complications & uncertainties.   As mostly (i.e. always) proves true - your post elevates the complexity of  "solution" (by choosing Ethernet) while (completely) avoiding ANY/ALL justification for its need. (i.e. CAN or SPI - vastly simpler - cannot be employed?)