Hi,

I use the SIM900D and it works very well. You don’t need to use any AT commands only for settings up the modem and then dialing such as *99#. Grab the latest code git as it has the new PPP code where Sylvain has done a great job. Here is an example:

Dial *99#

     ppp_init();
      ppp = ppp_new();

      DBG_ASSERT(("PPPoSTask-> ppp == NULL!\n"),(ppp != NULL));
      if(ppp == NULL)
          return -1;

   ppp_set_auth(ppp, PPPAUTHTYPE_ANY, "", "");

   ppp_set_netif_statuscallback(ppp,ppp_status_callback);
   ppp_set_netif_linkcallback(ppp,NULL);

   DEBUGF(LOG,("PPP Serial open\r\n"));

if(ppp_over_serial_open(ppp,sio,linkStatusCB, &connected) == PPPERR_NONE){
#if !PPP_INPROC_OWNTHREAD
        if(ppp_th == NULL)
ppp_th = sys_thread_new(PPP_THREAD_NAME, pppos_input_thread, (void*)&ppp->rx, PPP_THREAD_STACKSIZE, PPP_THREAD_PRIO);
#endif
        while (!connected && ticks < 60 ) {
               vTaskDelay(1000);
               ticks++;
        }
    }
    else
        return PPPERR_PARAM;

    return connected;


-----Original Message----- From: chrysn
Sent: Tuesday, May 07, 2013 7:13 AM
To: lwip-users@nongnu.org
Subject: [lwip-users] lwip ppp using gprs modem

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to