2010-11-01 02:15:56     PPP connection status in BF537

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-11-01 02:15:56     PPP connection status in BF537

Shyam sundar (INDIA)

Message: 95432   

 

Hello world,

 

Using a GPRS modem I am able to establish a GPRS connection.

 

When the GPRS connection goes down, I want to run some executables from a script.

 

How can I verify the status of the PPP connection? Is there any option which I can utilise to do neccessary action when the ppp connection goes down?

QuoteReplyEditDelete

 

 

2010-11-01 02:22:22     Re: PPP connection status in BF537

Sonic Zhang (CHINA)

Message: 95434   

 

You should be able to see your ppp information by ifconfig.

QuoteReplyEditDelete

 

 

2010-11-01 05:42:06     Re: PPP connection status in BF537

Shyam sundar (INDIA)

Message: 95440   

 

Hi Sonic,

 

By issuing the ifconfig command, I can see the status of the PPP connection status. This way,I need to poll everytime.

 

But I need to automate the execution when the PPP connection goes down,

QuoteReplyEditDelete

 

 

2010-11-01 06:29:42     Re: PPP connection status in BF537

Sonic Zhang (CHINA)

Message: 95441   

 

If the delay between ppp is down and you detection is not critical. You can check every 5 seconds, which won't consume too much cpu power.

QuoteReplyEditDelete

 

 

2010-11-01 06:31:01     Re: PPP connection status in BF537

Sonic Zhang (CHINA)

Message: 95442   

 

You may also check if hotplug can help.

QuoteReplyEditDelete

 

 

2010-11-01 11:07:32     Re: PPP connection status in BF537

Shyam sundar (INDIA)

Message: 95448   

 

Hi Sonic,

 

Detecting ppp connection is not very critical!

 

How can I use the timers from the userspace? There are many timers available. But confused to choose which one to be used.

 

Can I use kernel timers from the user space? I went through the following document too.

 

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:timers

 

Could you please let me know what are the hotplugs?

QuoteReplyEditDelete

 

 

2010-11-01 23:53:22     Re: PPP connection status in BF537

Sonic Zhang (CHINA)

Message: 95458   

 

You can use enable drivers/char/bfin_simple_timer.c and control the generic timer on blacfin via ioctl interface.

 

As to hotplug framework in Linux, refer to   linux-hotplug.sourceforge.net/

QuoteReplyEditDelete

 

 

2010-11-09 04:56:05     Re: PPP connection status in BF537

Mike Frysinger (UNITED STATES)

Message: 95697   

 

use ifplugd.  busybox should already support it.

Attachments

    Outcomes