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.

RTOS/TM4C1294NCPDT: TCP/IP over GPRS Modem connected to UART

Part Number: TM4C1294NCPDT

Tool/software: TI-RTOS

Hello,

  I am developing an application in TM4C1294NCPDT processor and using TI-RTOS 2_16_01_14 with NDK 2_25_00_09. I have already implemented my network connection using the Ethernet interface and it is working fine. Now I have a GPRS Modem connected to an UART port and I am communicating with it using AT commands. The Modem has an internal TCP/IP stack but of course I need to use AT commands to connect, disconnect and control the connection. Iwould like to use the same code (I mean, sockets) I have written to communicate over GPRS (In that case, UART). I have noticed that I need to use PPP interface available in NDK but I don't know how to put it to work together with my UART.

  What I need is, once I am attached and connected to the GPRS network, I want to open a socket with my server and send/receive packets, transparently, even I am using ethernet or gprs.

  Any advice?

  Tks in advance

  • Hi Leandro,

    You want to have your application still call the NDK socket calls, but instead of going out the EMAC, have it go to the UART to the GPRS network...correct?

    I don't believe we have an existing NIMU that does this. Just the EMAC and PPP ones. I need to check with another engineer to confirm this. A NIMU (network interface management unit) driver is a driver that fits under the NDK to interface to the hardware. You can get details on how to write a NIMU driver here: www.ti.com/.../sprufp2b.pdf (also in the TI-RTOS for TivaC product).

    Todd
  • Hi Todd,

    Thanks for answer. Exact, I would like to continue using all my sockets transparently and the NIMU instead of going to EMAC, would go to UART and call AT commands.
    I will check the documentation and see how difficult is to create a NIMU driver and maybe, because of deadlines, I will need to write the first version of my code using the modem tcpip stack and, later (but not too much), I will write the NIMU driver.

    Best regards,
    Leandro
  • Sounds good. Fyi...I checked with one of the NDK engineers and he agreed with my suggestion.

    Regarding writing your own NIMU driver...it's usually easier to use an existing one as a template and then change accordingly.

    Todd
  • Tks for your attention Todd.

    Best regards.