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.

TCP client on TM4C123GH



Hi,

I am very new for TI's Microcontrollers. So my question is basic  and sounds stupid, but I really need to solve the problem.

Please kindly help me with your knowledge.

I am working as a manager of developer team, but I am not familiar to MCU at all.

And my team is trying to make a TCP client on TM4C123GH. But they are also not familiar to this MCU as well.

The server needs us to connect socket. And our board has a module to connect LTE network.

By using command ATD, we have confirmed that the module connects to internet.

However, we don't have enough knowledge to send data to server after connecting to internet.

So I would like to give my team some idea or advice.

My question is what we should write to send data to the server.

The LTE module has TCP/IP stack so we don't need to have the TCP/IP protocol stack on TM4C.

And the program sends data to the module via UART.

1) How can we create a socket?

2) How can we send data?

As I am not expert for this, so hopefully I can have some sample code.

Sorry for my low level question.

Best regards,

Kazu 

  • Hello Kazu,

    What is the function of the TM4C123x device in your product? When you mention LTE module you mean a GSM/GPRS modem (SIM900)?

    Regards
    Amit
  • Hello Amit,

    Thank you for paying attention on my post.
    Our product's function is to get text message from a machine connected to TM4C123x and send it to a server.
    TM4C123x is just like a postman.
    LTE is very fast internet connection and it works GPRS modem.

    Best regards,
    Kazu
  • Hello Kazu

    What you would need to do is

    1. Identify the interfaces that will connect to the machine from where you get the text message and the interface by which you will send it to a server
    2. From the manufacturer of each of the devices on the two sides, get the communication protocol
    3. Understand the performance requirement in terms of max data rate to be interchanges by the TM4C123x device.
    4. Setup a test rig to perform the activity on each of the two sides
    5. Integrate the two test rigs to get the final implementation.

    As you can see there are quite a lot of unknowns that are there in your post, it would be essential to first get a block diagram of the final implementation

    Regards
    Amit