lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] lwip ppp using gprs modem


From: Nikolas Karakotas
Subject: Re: [lwip-users] lwip ppp using gprs modem
Date: Tue, 7 May 2013 08:53:47 +1000

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: address@hidden
Subject: [lwip-users] lwip ppp using gprs modem

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]