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.

CC3200: Support the PPP over Serial

Part Number: CC3200

I possess cc3200-board with 3G modem (SIM5350) connected via UARTA1. It's necessary to make ip-connection to 3G-gateway over ppp, set by the modem.
What CC3200's capabilities should go up for this purpose? Is such connection possible in AP mode?     

  • Hi,

    PPP is not directly supported at CC3200. But implementation of support is possible into CC3200 as at almost any kind of MCU. You will need implement:
    - AP command layer
    - HDLC frames implementation
    - PPP implementation including LCP (Link Control Protocol), PAP authentication protocol and IPCP
    - IP layer implementation
    - TCP/UDP layer implementation

    Jan
  • Hello,

     Is AP mode possible, provided that the client connected (TCP socket) to the cc3200 device needs to make a "handshake" with the Internet servers via 3GSM (ppp connection will create a new interface)?
      Are there any examples of embedding protocols in the existing stack of protocols cc3200? Is there any guidance on this issue?
      What about the indirect support for PPP?

  • Hi,

    Technically at socket layer (TCP) is possible do that what you want. You will need open TCP server at SimpleLink (WiFi) at AP mode. Connected client will send data to this TCP server. This data you will encode by your code to TCP/IP --> PPP --> HDLC and send to serial via your modem.

    I am not aware about any implementation or tutorial for ppp at CC3200. But if you will want to know name of project which can be useful for you, I think it is LwIP. This open source project contains all necessary components. Porting to CC3200 will be up to you. I don't know how much effort will be required. Many years ago I implemented my own ppp stack including TCP/IP at ColdFire MCUs. Unfortunately I can't share this code.

    Jan

  • Hello,

    It is slightly embarrassing that in the AP mode in the AP's network there is no interface (gateway) looking into the Internet - as a restriction of this mode

    (e2e.ti.com/.../433046 -
     "...it does not have an ethernet host for other external connection to internet"). And in our case, after the PPP connection, such an interface appears. Perhaps something is wrong?

  • Hi,

    CC32xx device are not designed for such applications, from this reason are advanced network features not supported. CC32xx devices are intended for low-power WiFi client applications. AP mode at CC32xx is generally used for provisioning.

    In your case (discoursed above) this will not be a real gateway. Connection between networks will be at socket layer.

    Jan

  • Hello,
    ... which automatically means that the сc3200's application now has the task of routing the packets that are needed
    real-time sniffing from the link layer, having translated the network interface into a 'promiscuous' mode?
  • Hi,

    Sorry, I don't understand your question.

    Jan
  • Hello,
    I wanted to say that in STA mode, requests from the Wifi client addressed to the cc3200-device or directed to the external network, are routed by the network itself. In AP mode, this task will fall on the cc3200's application and will require from it
    unprofitable low-level operations.
  • Hi,

    It is not best idea to choice CC32xx if you need create router between GSM and WiFi. Just look to your home router what hardware is there used. CC32xx have Cortex-M4 MCU at 80MHz.

    In your case will be better select board with capability to run Linux or at least uClinux.

    Jan
  • Thank you ever so much, Jan. You helped me a lot.