i adjusted pppMain one timeout paramter, the result changed.

      c = sio_read(pc->fd, p->payload, p->len);
      if(c > 0) {
        pppInProc(pd, p->payload, c);
      } else {
        /*PPPDEBUG((LOG_DEBUG, "pppMain: unit %d sio_read len=%d returned
%d\n", pd, p->len, c));*/
        sys_msleep(100);      }
    }
  }

Previous 100, and I changed to 20, the result is changed

##########################
ppp_sio:3a3ec
pppInit
lcp_init: xmit_accm=0 0 0 0
upap_init: 0
pppOpen
lcp_init: xmit_accm=0 0 0 0
pppMain: unit 0: Connecting
pppStartCB: unit 0
ppp_set_xaccm[0]: outACCM=0 0 0 0
ppp_send_config[0]: outACCM=FF FF FF FF
ppp_recv_config[0]: inACCM=0 0 0 0
lcp_lowerup: asyncmap=0 0 0 0
LCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED)
auth_reset: 0
lcp_addci: L opt=2 0
lcp_addci: L opt=5 44101852
lcp_addci: opt=7
lcp_addci: opt=8
pppWrite[0]: len=47
fsm_sdata(LCP): Sent code 1,1,20.
LCP: sending Configure-Request, id 1
LCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT)
tcpip init success
First call to sys_arch_timeouts for thread
pppInProc[0]: got 47 bytes
pppInput[0]: LCP len=20
fsm_input(LCP):2,1,20
fsm_rconfack(LCP): Rcvd id 1 state=6 (LS_REQSENT)
lcp_acki: Ack
pppInProc[0]: got 59 bytes
pppInput[0]: LCP len=28
fsm_input(LCP):1,2,28
fsm_rconfreq(LCP): Rcvd id 2 state=7 (LS_ACKRCVD)
lcp_reqci: rcvd MRU 256860 PAP (3EB5C) MAGICNUMBER (3EB5C) ASYNCMAP=3EB5C
lcp_reqci:  PCOMPRESSION ACCOMPRESSION
lcp_reqci: returning CONFACK.
pppWrite[0]: len=60
fsm_sdata(LCP): Sent code 2,2,28.
ppp_send_config[0]: outACCM=0 0 0 0
ppp_recv_config[0]: inACCM=0 0 0 0
link_established: 0
upap_lowerup: 0 s=0
IPCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED)
upap_authwithpeer: 0 user=none password=none s=1
pppWrite[0]: len=21
pap_sauth: Sent id 1
upap_timeout: 0 timeout 6 expired s=3
pppWrite[0]: len=22
pap_sauth: Sent id 2
pppInProc[0]: got 45 bytes
pppInput[0]: PAP len=39
pap_rauthack: Rcvd id 2 s=3
Remote message: TTP Com PPP - Password Verified OK
auth_withpeer_success: 0 proto=C023
pppWrite[0]: len=29
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT)
pppInProc[0]: got 38 bytes
pppInput[0]: IPCP len=16
fsm_input(IPCP):4,1,16
fsm_rconfnakrej(IPCP): Rcvd id 1 state=6 (LS_REQSENT)
ipcp_rejci: received bad Reject!
IPCP: received bad reject (length 12)
pppInput[0]: IPCP len=10
fsm_input(IPCP):1,1,10
fsm_rconfreq(IPCP): Rcvd id 1 state=6 (LS_REQSENT)
ipcp_reqci: ADDR 10.0.0.1
ipcp_reqci: returning Configure-ACK
pppWrite[0]: len=17
fsm_sdata(IPCP): Sent code 2,1,10.
upap_timeout: 0 timeout 6 expired s=4
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
pppInProc[0]: got 22 bytes
pppInput[0]: IPCP len=16
fsm_input(IPCP):4,1,16
fsm_rconfnakrej(IPCP): Rcvd id 1 state=8 (LS_ACKSENT)
ipcp_rejci: received bad Reject!
IPCP: received bad reject (length 12)
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
pppInProc[0]: got 22 bytes
pppInput[0]: IPCP len=16
fsm_input(IPCP):4,1,16
fsm_rconfnakrej(IPCP): Rcvd id 1 state=8 (LS_ACKSENT)
ipcp_rejci: received bad Reject!
IPCP: received bad reject (length 12)
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
pppInProc[0]: got 22 bytes
pppInput[0]: IPCP len=16
fsm_input(IPCP):4,1,16
fsm_rconfnakrej(IPCP): Rcvd id 1 state=8 (LS_ACKSENT)
ipcp_rejci: received bad Reject!
IPCP: received bad reject (length 12)
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
pppInProc[0]: got 22 bytes
pppInput[0]: IPCP len=16
fsm_input(IPCP):4,1,16
fsm_rconfnakrej(IPCP): Rcvd id 1 state=8 (LS_ACKSENT)
ipcp_rejci: received bad Reject!
IPCP: received bad reject (length 12)
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
pppInProc[0]: got 22 bytes
pppInput[0]: IPCP len=16
fsm_input(IPCP):4,1,16
fsm_rconfnakrej(IPCP): Rcvd id 1 state=8 (LS_ACKSENT)
ipcp_rejci: received bad Reject!
IPCP: received bad reject (length 12)
pppInProc[0]: got 14 bytes
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: timeout resending Config-Request state=8 (LS_ACKSENT)
pppWrite[0]: len=30
fsm_sdata(IPCP): Sent code 1,1,22.
IPCP: sending Configure-Request, id 1
IPCP: timeout sending Config-Requests state=8 (LS_ACKSENT)
np_finished: 0 proto=21
link_down: 0
upap_lowerdown: 0 s=4
IPCP: lowerdown state 3 (LS_STOPPED) -> 1 (LS_STARTING)
IPCP: close reason=LCP down state 1 (LS_STARTING) -> 0 (LS_INITIAL)
pppLinkDown: unit 0
pppMainWakeup: unit 0
gprs simcom abort
ppp_send_config[0]: outACCM=FF FF FF FF
ppp_recv_config[0]: inACCM=0 0 0 0
pppWrite[0]: len=46
fsm_sdata(LCP): Sent code 5,2,32.
LCP: close reason=No network protocols running state 9 (LS_OPENED) -> 4
(LS_CLOSING)
LCP: timeout resending Terminate-Requests state=4 (LS_CLOSING)
pppWrite[0]: len=44
fsm_sdata(LCP): Sent code 5,3,32.
LCP: timeout sending Terminate-Request state=4 (LS_CLOSING)
link_terminated: 0
Connection terminated.
pppLinkTerminated: unit 0
pppMainWakeup: unit 0
gprs simcom abort
pppMain: unit 0: PHASE_DEAD
pppDrop: pbuf len=21
pppMain: unit 0: linkStatusCB=426236 errCode=0
pppLinkStatusCallback: PPPERR_PROTOCOL



On 12/11/08, yueyue papa <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Here is my PPP GPRS log?  I am not understand why the PPP register network
> has problem?
>
> I think my PPP state is not mapped to the remote PPP negotiate state?
>
> #####################PPP GPRS LOG#########
> ppp_sio:3a3b8
> pppInit
> lcp_init: xmit_accm=0 0 0 0
> upap_init: 0
> pppOpen
> lcp_init: xmit_accm=0 0 0 0
> fond task name pppMain, handle 8
> resume task pppMain
> pppMain: unit 0: Connecting
> tcpip init success
> First call to sys_arch_timeouts for thread
> pppStartCB: unit 0
> ppp_set_xaccm[0]: outACCM=0 0 0 0
> ppp_send_config[0]: outACCM=FF FF FF FF
> ppp_recv_config[0]: inACCM=0 0 0 0
> lcp_lowerup: asyncmap=0 0 0 0
> LCP: lowerup state 0 (LS_INITIAL) -> 2 (LS_CLOSED)
> auth_reset: 0
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=47
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> LCP: open state 2 (LS_CLOSED) -> 6 (LS_REQSENT)
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,2,28
> fsm_rconfreq(LCP): Rcvd id 2 state=6 (LS_REQSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=60
> fsm_sdata(LCP): Sent code 2,2,28.
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,3,28
> fsm_rconfreq(LCP): Rcvd id 3 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,3,28.
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=46
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,4,28
> fsm_rconfreq(LCP): Rcvd id 4 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,4,28.
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,5,28
> fsm_rconfreq(LCP): Rcvd id 5 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,5,28.
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=46
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,6,28
> fsm_rconfreq(LCP): Rcvd id 6 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,6,28.
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,7,28
> fsm_rconfreq(LCP): Rcvd id 7 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=61
> fsm_sdata(LCP): Sent code 2,7,28.
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=46
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,8,28
> fsm_rconfreq(LCP): Rcvd id 8 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,8,28.
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,9,28
> fsm_rconfreq(LCP): Rcvd id 9 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,9,28.
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=46
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 36 bytes
> pppInput[0]: LCP len=28
> fsm_input(LCP):1,10,28
> fsm_rconfreq(LCP): Rcvd id 10 state=8 (LS_ACKSENT)
> lcp_reqci: rcvd MRU 313888 PAP (4CA20) MAGICNUMBER (4CA20) ASYNCMAP=4CA20
> lcp_reqci:  PCOMPRESSION ACCOMPRESSION
> lcp_reqci: returning CONFACK.
> pppWrite[0]: len=59
> fsm_sdata(LCP): Sent code 2,10,28.
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppInProc[0]: got 14 bytes
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=47
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=47
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=47
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
> LCP: timeout resending Config-Request state=8 (LS_ACKSENT)
> lcp_addci: L opt=2 0
> lcp_addci: L opt=5 44101852
> lcp_addci: opt=7
> lcp_addci: opt=8
> pppWrite[0]: len=47
> fsm_sdata(LCP): Sent code 1,1,20.
> LCP: sending Configure-Request, id 1
> pppMain: unit 0 sio_read len=1476 returned 0
> pppMain: unit 0 sio_read len=1476 returned 0
>
> ########################################3
>
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to