lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] ppp problem


From: Ahmed Fayek
Subject: Re: [lwip-users] ppp problem
Date: Thu, 23 May 2013 08:17:35 -0700 (PDT)

I initialize the GPRS and send dialup ATD*99***1#
it respond correctly that is handled in this function GSM_PPP_ConnectProcess()

part of the debug log is attached.
the application is to work as a GPRS router that forward IP packets from ethernet and GPRS.



From: yueyue papa <address@hidden>
To: Ahmed Fayek <address@hidden>
Cc: Mailing list for lwIP users <address@hidden>
Sent: Thursday, May 23, 2013 4:37 PM
Subject: Re: [lwip-users] ppp problem

It is hard to know from your code. Provide the debug log with AT information.




On Thu, May 23, 2013 at 10:32 PM, Ahmed Fayek <address@hidden> wrote:
yes modem is initialized corectly and PPP channel opened.

I have this code:

          int connected = 0;
          int setup = 0;
          int pd;
          const char *username = "myuser";
          const char *password = "mypassword";

          /* initialise lwIP. This creates a new thread, tcpip_thread, that
           * communicates with the pppInputThread (see below) */
          tcpip_init(tcpip_init_done, &setup);
          /*
          while (!setup) {
              DelayMS(100);
          }
        */
          /* initialise PPP. This needs to be done only once after boot up, to
           * initialize global variables, etc. */
          pppInit();

//initialize modem and open ppp
#if GSM
    while(!GSM_PPP_ConnectProcess());
#endif

          pd = pppOverSerialOpen(0, linkStatusCB, &connected);



From: yueyue papa <address@hidden>
To: Ahmed Fayek <address@hidden>; Mailing list for lwIP users <address@hidden>
Sent: Thursday, May 23, 2013 4:21 PM
Subject: Re: [lwip-users] ppp problem

whether you init your modem? 

e.g AT command for setup your module.   setup the APN,  whether the dial process success?




On Thu, May 23, 2013 at 10:18 PM, Ahmed Fayek <address@hidden> wrote:
Hi,

I try to run ppp to communicate with a gprs modem and I have this log:

pppMain: unit 536911872: Connecting
tcpip_thread: CALLBACK 20006808
pppStartCB: unit 536910992
ppp_set_xaccm[536910912]: outACCM=0 20009c40 20000a64 5
ppp_send_config[536910904]: outACCM=0 20009c38 0 5
ppp_recv_config[536910904]: inACCM=0 20009c38 0 5
lcp_lowerup: asyncmap=20009c68 0 20009c68 0
¨&<STX>: lowerup state 140968 (¨&<STX>) -> 536870912 (²<SOH>)
auth_reset: 536910832
lcp_addci: L opt=536910848 ERRORX
lcp_addci: L opt=536910848 ERRORX
lcp_addci: opt=536910848
lcp_addci: opt=536910848
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 2000843c
pbuf_alloc(length=0) == 2000843c
pppWrite[536910800]: len=0

I don't know what is the problem that make it don't work.


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






Attachment: debug_log.txt
Description: Text document


reply via email to

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