lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] ppp problem


From: yueyue papa
Subject: Re: [lwip-users] ppp problem
Date: Thu, 23 May 2013 22:39:47 +0800

Linux PPPD log,   you could see there is AT command and dial command before PPPD working
#########
send (^MAT^M)s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,  _0 @+ {! `) {7 B
expect (OK)
^M^M; z$ l4 X; w0 q$ v& c
OK嵌入式开发联盟. e0 Y9 b4 H1 k8 }# T
-- got it
嵌入式开发联盟& J  |4 G2 P/ U% Z
send (ATS0=0^M)$ h/ _4 J, V( x. f
expect (OK)- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。* d! L- W8 N) [% U* L' B3 F
^M
AT^M
OKwww.mcuos.com% v9 [8 c2 b6 \3 Y9 P3 ]
-- got it我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。$ D1 @/ G4 \: F+ f: f' Z% L" S: z

send (ATE0V1^M)
expect (OK)- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。* o, G' `6 \) J9 e7 K, H* ^
^Mwww.mcuos.com+ `7 Z% o7 }- G, z% V
ATS0=0^M^M
OKs3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,% v' V, x' V- E& `, J, S
-- got it

send (AT+CGDCONT=1,"IP","CMNET"^M)- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。9 M1 ?0 E2 i4 B6 ^+ M7 Y, e8 A
expect (OK)
^M- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。/ q8 y$ [  `, k* K; G4 x  S$ i
ATE0V1^M^M
OK, ?  z  ^; g5 e+ ?
-- got it嵌入式开发联盟' n" u1 X3 w7 ]: ^8 q, k6 K8 @2 C
s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,. f9 S  Y+ c# M4 H1 X5 n3 Y8 q5 ]
send (ATDT*99***1#^M)s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,6 v9 {; \& c3 r# Z, D1 M/ ~6 W
expect (CONNECT)
^Mwww.mcuos.com5 J: w3 K! t, v3 R
^Ms3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,( E' B; j% `& l
OK^M我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。- }% j8 h2 Z4 ]) V5 g
^M我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。) [3 j" g* A2 F
CONNECT- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。- N  q5 v% M" \; N6 }
-- got it

send (^M), x4 G! Z$ w" r; T
Serial connection established.- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。5 W2 O+ z3 d" ], G
using channel 42
Using interface ppp0www.mcuos.com% B; y0 h2 a/ g% |8 r/ b" i9 c
Connect: ppp0 <--> /dev/ttyS0www.mcuos.com2 T0 L2 V! }% u5 a: z) W+ c
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x8c5e3d45> <pcomp> <accomp>]www.mcuos.com, b% c: ?* C, a1 [- I
rcvd [LCP ConfRej id=0x1 <magic 0x8c5e3d45>]s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,9 V$ h( U* l) j5 d3 ^" u/ @: t( L
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。: W- z: |) M+ Q6 m+ Q
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <pcomp> <accomp>]我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。( P0 U8 M, d/ P- X( T
rcvd [CHAP Challenge id=0x1 <fb17db52a81bc14997f72e2932ab0b342bab961d49c611>, name = ""]
sent [CHAP Response id=0x1 <2c757eac52b8d9a7d80ca7a77c419ad9>, name = "cmnet"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [LCP ProtRej id=0x1 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。+ A* j! y; L, J  h4 n" X
rcvd [IPCP ConfReq id=0x1 <addr 221.177.160.163>]s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,& S' i4 \. T& C4 P
sent [IPCP ConfAck id=0x1 <addr 221.177.160.163>]- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。6 @. R: A1 K: \' L& g
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,8 y, V2 @' {- w  z1 Y% v4 q% _
rcvd [IPCP ConfNak id=0x2 <addr 10.165.226.25> <ms-dns1 211.137.64.163> <ms-dns3 211.136.20.203>]
sent [IPCP ConfReq id=0x3 <addr 10.165.226.25> <ms-dns1 211.137.64.163> <ms-dns3 211.136.20.203>]
rcvd [IPCP ConfAck id=0x3 <addr 10.165.226.25> <ms-dns1 211.137.64.163> <ms-dns3 211.136.20.203>]
local  IP address 10.165.226.25
remote IP address 221.177.160.163
primary   DNS address 211.137.64.163- 我们关注扶持嵌入式行业新手的成长,打造专业的嵌入式技术论坛。, E- f6 w, G- V2 _
secondary DNS address 211.136.20.203s3c2440,s3c6410,ok6410,fl2440,arm,linux,winbond,nuvoton,w90p710,w90n745,开源,嵌入式,操作系统,嵌入式开发,嵌入式联盟,linux,ecos,uclinux,t-kernel,freeos,rtems,ucos,skyeye,' x: c: J+ S5 N+ C2 L3 D" _$ Z
###########


On Thu, May 23, 2013 at 10:37 PM, yueyue papa <address@hidden> wrote:
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






reply via email to

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