Hello all,
As per your suggestion i have moved to lwip 2.0.2 ,now i m getting issue in network phase, here i have attached log with this mail please tkl, and suggest us to move forward.

thanks
parwath

On 2017-07-20 02:25, Sylvain Rochet wrote:
Hi,

On Thu, Jul 20, 2017 at 02:11:41AM -0700, parwat...@yashaswinies.com wrote:

Hello all,
I am new to lwip 1.4.0 stack. i am trying ppp over serial port for small ppp connect test, but its getting strucked in networking phase here i have
attached log also please suggest us to move forward.

PPP stack in lwIP 1.4.0 is awfully old, lwIP 1.4.0 itself was released 6
years ago (which is already quite a lot) but this is worse for the PPP
stack. Please switch to lwIP 2.0 first.

Sylvain

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
165    Executing AT+CGDCONT=1,"IP","airtelgprs.com"
479    
OK

netif: IP address of interface  set to 0.0.0.0

netif: netmask of interface  set to 255.255.255.255

netif: GW address of interface  set to 0.0.0.0

netif: added interface pp IP
 addr 
0.0.0.0
 netmask 
255.255.255.255
 gw 
0.0.0.0


ppp phase changed[0]: phase=0

754    Executing ATD*99***1#
69    
CONNECT

netif: setting default interface ''

ppp_connect[0]: holdoff=0

ppp phase changed[0]: phase=3

pppos_connect: unit 0: connecting

ppp_start[0]

ppp phase changed[0]: phase=6

pppos_send_config[0]: out_accm=FF FF FF FF

ppp_send_config[0]

pppos_recv_config[0]: in_accm=FF FF FF FF

ppp_recv_config[0]

ppp: auth protocols:
 PAP=1


pbuf_alloc(length=24)

pbuf_alloc: allocated pbuf 0x20329f80

pbuf_alloc(length=24) == 0x20329f80

sent    c0 21 01 01 00 14 02 06 00 00 00 00 05 06 58 51 f4 2d 07 02 08 02 

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=0) == 0x20329e24

USART_WriteBuf  7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 34 7d 22 7d 26 7d 20 7d 
20 7d 20 
7d 20 7d 25 7d 26 58 51 f4 2d 7d 27 7d 22 7d 28 7d 22 ea 23 7e 

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

pppos_write[0]: len=24

pbuf_free(0x20329f80)

pbuf_free: deallocating 0x20329f80

ppp_start[0]: finished

UART Recived    7e ff 7d 23 c0 21 7d 22 7d 21 7d 20 7d 34 7d 22 7d 26 7d 20 7d 
20 7d 20 
7d 20 7d 25 7d 26 58 51 f4 2d 7d 27 7d 22 7d 28 7d 22 7d 21 4a 7e 

pppos_input[0]: got 46 bytes

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329f80

pbuf_alloc(length=0) == 0x20329f80

rcvd    c0 21 02 01 00 14 02 06 00 00 00 00 05 06 58 51 f4 2d 07 02 08 02 

pbuf_header: old 0x20329f90 new 0x20329f92 (-2)

pbuf_free(0x20329f80)

pbuf_free: deallocating 0x20329f80

UART Recived    7e ff 7d 23 c0 21 7d 21 7d 21 7d 20 7d 39 7d 22 7d 26 7d 20 7d 
20 7d 20 
7d 20 7d 23 7d 25 c2 23 7d 25 7d 25 7d 26 52 7d 38 7d 30 44 7d 27 7d 22 
7d 28 7d 22 cf a5 7e 

pppos_input[0]: got 55 bytes

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329f80

pbuf_alloc(length=0) == 0x20329f80

rcvd    c0 21 01 01 00 19 02 06 00 00 00 00 03 05 c2 23 05 05 06 52 18 10 44 07 
02 08 02 

pbuf_header: old 0x20329f90 new 0x20329f92 (-2)

pbuf_alloc(length=256)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=256) == 0x20329e24

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

lcp_reqci: returning CONFNAK.
pbuf_alloc(length=12)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=12) == 0x20329e24

sent    c0 21 03 01 00 08 03 04 c0 23 

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329cc8

pbuf_alloc(length=0) == 0x20329cc8

USART_WriteBuf  7e ff 7d 23 c0 21 7d 23 7d 21 7d 20 7d 28 7d 23 7d 24 c0 23 22 
48 7e 

pbuf_free(0x20329cc8)

pbuf_free: deallocating 0x20329cc8

pppos_write[0]: len=12

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

pbuf_free(0x20329f80)

pbuf_free: deallocating 0x20329f80

UART Recived    7e ff 7d 23 c0 21 7d 21 7d 22 7d 20 7d 38 7d 22 7d 26 7d 20 7d 
20 7d 20 
7d 20 7d 23 7d 24 c0 23 7d 25 7d 26 52 7d 38 7d 30 44 7d 27 7d 22 7d 28 
7d 22 d3 59 7e 

pppos_input[0]: got 53 bytes

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329f80

pbuf_alloc(length=0) == 0x20329f80

rcvd    c0 21 01 02 00 18 02 06 00 00 00 00 03 04 c0 23 05 06 52 18 10 44 07 02 
08 02 

pbuf_header: old 0x20329f90 new 0x20329f92 (-2)

pbuf_alloc(length=256)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=256) == 0x20329e24

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

lcp_reqci: returning CONFACK.
pbuf_alloc(length=28)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=28) == 0x20329e24

sent    c0 21 02 02 00 18 02 06 00 00 00 00 03 04 c0 23 05 06 52 18 10 44 07 02 
08 02 

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329cc8

pbuf_alloc(length=0) == 0x20329cc8

USART_WriteBuf  7e ff 7d 23 c0 21 7d 22 7d 22 7d 20 7d 38 7d 22 7d 26 7d 20 7d 
20 7d 20 
7d 20 7d 23 7d 24 c0 23 7d 25 7d 26 52 7d 38 7d 30 44 7d 27 7d 22 7d 28 
7d 22 7d 3f b4 7e 

pbuf_free(0x20329cc8)

pbuf_free: deallocating 0x20329cc8

pppos_write[0]: len=28

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

netif_set_mtu[0]: mtu=1500

pppos_send_config[0]: out_accm=0 0 0 0

ppp_send_config[0]

pppos_recv_config[0]: in_accm=0 0 0 0

ppp_recv_config[0]

ppp phase changed[0]: phase=7

pbuf_alloc(length=12)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=12) == 0x20329e24

sent    c0 23 01 01 00 08 01 20 01 20 

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329cc8

pbuf_alloc(length=0) == 0x20329cc8

USART_WriteBuf  ff 03 c0 23 01 01 00 08 01 20 01 20 72 60 7e 

pbuf_free(0x20329cc8)

pbuf_free: deallocating 0x20329cc8

pppos_write[0]: len=12

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

pbuf_free(0x20329f80)

pbuf_free: deallocating 0x20329f80

UART Recived    7e ff 03 c0 23 02 01 00 05 00 8b 3b 7e 

pppos_input[0]: got 13 bytes

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329f80

pbuf_alloc(length=0) == 0x20329f80

rcvd    c0 23 02 01 00 05 00 

pbuf_header: old 0x20329f90 new 0x20329f92 (-2)

PAP authentication succeeded

ppp phase changed[0]: phase=9

pbuf_alloc(length=20)

pbuf_alloc: allocated pbuf 0x20329e24

pbuf_alloc(length=20) == 0x20329e24

sent    80 21 01 01 00 10 02 06 00 2d 0f 01 03 06 00 00 00 00 

pbuf_alloc(length=0)

pbuf_alloc: allocated pbuf 0x20329cc8

pbuf_alloc(length=0) == 0x20329cc8

USART_WriteBuf  7e ff 03 80 21 01 01 00 10 02 06 00 2d 0f 01 03 06 00 00 00 00 
2d 99 7e 

pbuf_free(0x20329cc8)

pbuf_free: deallocating 0x20329cc8

pppos_write[0]: len=20

pbuf_free(0x20329e24)

pbuf_free: deallocating 0x20329e24

pbuf_free(0x20329f80)

pbuf_free: deallocating 0x20329f80


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

Reply via email to