Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2013, 03:03 PM   #1
LQ Newbie
Registered: Dec 2013
Posts: 13

Rep: Reputation: Disabled
PPP Monitoring and picking up transmit / receive packets

I am working with a form of embedded linux (Kernel Ver. 3.7.5)

And this embedded device uses a GRPS (3G card) that can send / receive data.

I'm trying to figure out what the best approach is to monitor the device for transmitting and receiving data because eventually it will be transferred to LEDs using GPIO.

So, I was thinking of using pppd in some way, but ANY recommendations would be nice. I can also compile the kernel, I have the source necessary so if modifications need to be made on the drivers, it can be done (for example if ../net/ppp/ppp_generic.c needs to be tweaked, which doesnt, already looked )

Any point in the right direction will help, I'm pretty much in the dark, feeling out with this idea.
Old 12-12-2013, 03:21 PM   #2
LQ Newbie
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
So the end result is to have Tx / Rx LEDs blink when sending and receiving data wirelessly. I already know how to do the GPIO part, that's a breeze, but I need to figure out a way to fire up these LEDs in a software controlled environment in response to an established ppp connection.

Or even with ifconfig, if I do ifconfig ppp0 I can see the RX and TX bytes, but I dont know exactly what I could do just to retrieve those... or if there's a better route to take to show the transmission and receiving of data like a flag.

Last edited by RET80; 12-12-2013 at 03:36 PM.
Old 12-17-2013, 11:32 AM   #3
LQ Newbie
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled

What I have tried to do is call an ifconfig every second and sterilize the output to just the RX and TX line, then take the numbers as an int and do a compare.

If the RX or TX integers have increased in any way, turn on the RX or TX LED, else, turn it off / leave it off.
and this occurs in a series of if statements once a second.

I think it's pretty inefficient to just fire up a GPIO LED for transmitting or receiving data, any recommendations?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp debug message. many transmit: no receive: zelda32 Linux - Server 7 09-28-2010 11:27 PM
[SOLVED] What happens when a machine receive unwanted packets? Ashkan_s Linux - Networking 6 03-08-2010 03:29 AM
Card configurable, contacts AP, but can't transmit or receive sto237 Linux - Wireless Networking 3 02-02-2006 06:21 AM
how to reset transmit/receive errors counter? whysyn Linux - Networking 1 05-26-2005 04:27 PM
Cannot receive any packets through ppp0 !! mister_0101 Linux - Networking 1 05-06-2005 05:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration