Main Page | Report this Page
Linux Forum Index  »  Linux Development - System  »  Problem with pppd GPRS connection...
Page 1 of 1    

Problem with pppd GPRS connection...

Author Message
Harry...
Posted: Tue Oct 06, 2009 12:50 am
Guest
Hi all,

I have a target board running linux which uses pppd to connect to
GPRS.
At times what happens is that the 'ppp0' entry is present with a IP
address and pppd is running but i am unable to ping to any site.

I also have a application which sends data using UDP socket to a
server but it is also not reporting any error i.e none of the calls
fail like gethostbyname(),socket(),bind(),connect(),sendto() ...etc.
All are returning success only.But data is not received at the server
side.

Why pppd doesn't exit if GPRS link has actually dropped?
 
Rainer Weikusat...
Posted: Tue Oct 06, 2009 5:12 am
Guest
Harry <gehariprasath at (no spam) gmail.com> writes:
Quote:
I have a target board running linux which uses pppd to connect to
GPRS. At times what happens is that the 'ppp0' entry is present with
a IP address and pppd is running but i am unable to ping to any
site.

I also have a application which sends data using UDP socket to a
server but it is also not reporting any error i.e none of the calls
fail like gethostbyname(),socket(),bind(),connect(),sendto() ...etc.
All are returning success only.But data is not received at the server
side.

Why pppd doesn't exit if GPRS link has actually dropped?

How should it detect that? The only way the pppd can generally know
that the other endpoint has decided to drop the connection for some
reason is if the link was 'properly' shutdown using a
Terminate-Request/ Terminate-Ack sequence. A workaround for this
problem is to configure the daemon to periodically send LCP
Echo-Request frames and to try to reconnect/ do something appropriate
if a certain number of Echo-Requests have been sent without receiving
an Echo-Reply.
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu Dec 10, 2009 12:40 am