lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] PPP don't initialize


From: Ahmed Fayek
Subject: [lwip-users] PPP don't initialize
Date: Mon, 3 Jun 2013 09:28:58 -0700 (PDT)

Hi,

I can't initialize the PPP connection with a GPRS I have this log:

GPRS connected
netif: IP address of interface <NUL><NUL> set to 0.0.0.0
netif: netmask of interface <NUL><NUL> set to 0.0.0.0
netif: GW address of interface <NUL><NUL> set to 0.0.0.0
netif: added interface <NUL><NUL> IP addr 0.0.0.0 netmask 0.0.0.0 gw 0.0.0.0
ppp phase changed: unit 0: phase=0
ppp_open() called, holdoff=0
ppp phase changed: unit 0: phase=1
ppp_over_serial_open: unit 0: connecting
ppp_start: unit 0
ppp_set_xaccm[0]: out_accm=0 0 0 0
ppp_send_config[0]: out_accm=ff ff ff ff
ppp_recv_config[0]: in_accm=ff ff ff ff
pbuf_alloc(length=24)
pbuf_alloc: allocated pbuf 200085a4
pbuf_alloc(length=24) == 200085a4
ppp_write_over_serial 24 bytes
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 20008494
pbuf_alloc(length=0) == 20008494
ppp_write[0]: len=44
write data to serial port...len =44          <--------- data sent don't start with 0x7E
write data end
pbuf_free(20008494)
pbuf_free: deallocating 20008494
pbuf_free(200085a4)
pbuf_free: deallocating 200085a4
ppp_start: finished
tcpip_init_done
reading data ...
etharp_timer
pbuf_alloc(length=24)
pbuf_alloc: allocated pbuf 200085a4
pbuf_alloc(length=24) == 200085a4
ppp_write_over_serial 24 bytes
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 20008494
pbuf_alloc(length=0) == 20008494
ppp_write[0]: len=45
write data to serial port...len =45
write data end
pbuf_free(20008494)
pbuf_free: deallocating 20008494
pbuf_free(200085a4)
pbuf_free: deallocating 200085a4
etharp_timer
netif_set_ipaddr: netif address being changed
netif: IP address of interface <NUL><NUL> set to 192.168.0.100
netif: netmask of interface <NUL><NUL> set to 255.255.255.0
netif: GW address of interface <NUL><NUL> set to 192.168.0.100
low_level_transmit: frame sent
low_level_init: MAC address is d240d240
low_level_init: MTU set to 1500
low_level_input: Waiting for Ethernet to become ready
low_level_init: Ethernet link is up
netif: added interface <NUL><NUL> IP addr 192.168.0.100 netmask 255.255.255.0 gw 192.168.0.100
netif: setting default interface <NUL><NUL>
pbuf_alloc(length=24)
pbuf_alloc: allocated pbuf 200085a4
pbuf_alloc(length=24) == 200085a4   <------------------- logging stop here


data sent to GPRS is strange it don't start with 0x7E,
code continue to initialize eather net and then stop logging and hang.

I am using latest PPP code and using freertos on lm3s9618

reply via email to

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