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 <[email protected]>
To: Ahmed Fayek <[email protected]>; Mailing list for lwIP users
<[email protected]>
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 <[email protected]> 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
>[email protected]
>https://lists.nongnu.org/mailman/listinfo/lwip-users
>_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users