LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2013, 08:51 PM   #1
waddles
Member
 
Registered: Sep 2012
Posts: 372

Rep: Reputation: 1
Checking data reception


Frequently of late I noticed the "receive data" light goes out but Firefox continues to spin. If I change to a different dialup number it helps. I have learned my ISP has been under attack so this is an impact. I would like to probe the modem without effecting the download that is in process to find if there is received data and after 3+/- seconds beep a warning if no action. Is there a place on the serial line I can test for activity? Or some other approach?
 
Old 11-04-2013, 07:41 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
You could use some network traffic monitor, conky is a system monitor and have many features including network, there are several programs available to monitor the network activity.
here some:
slurm
iptraf
ethstatus
nload
bmon (bandwidth monitor)
netspeed

Regards
 
Old 11-04-2013, 11:16 AM   #3
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
Thanks. I was aware there is software/hardware to do what I want but I am looking for a way to sense it from a simple shell script preferably using bourne or bash. If I knew where to look for the incoming data on the received data line programatically, then I could probably build a script around that.

Last edited by waddles; 11-04-2013 at 11:25 AM.
 
Old 11-04-2013, 12:08 PM   #4
waddles
Member
 
Registered: Sep 2012
Posts: 372

Original Poster
Rep: Reputation: 1
This may help. I found a site which described modem access. In that I found:
fcntl(fd, F_SETFL, FNDELAY);
which while reading the port would allow checking the serial input buffer for bytes stored or 0 for none. I think this is what I need but am not sure of salient situations where this might cause data damage/loss. Can someone advise?
I vaguely remember about raw mode but if I am checking the modem from a second window while attempting to download on another am not sure if this will royally screw stuff up.

Last edited by waddles; 11-04-2013 at 12:09 PM.
 
  


Reply



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
LXer: Checking OpenStreetMap Data for Problems LXer Syndicated Linux News 0 10-18-2010 02:20 AM
delay serial read function when there is no data reception vijayp Linux - Embedded & Single-board computer 2 02-22-2010 05:53 AM
Checking the health of Data Cartridge? karthi26 Linux - Hardware 1 08-05-2009 07:46 AM
Testing the integrity and checking the data on a hard drive Cinematography Linux - Hardware 5 07-21-2009 04:45 PM
Checking numerical data!! (java) Fredstar Programming 2 03-17-2006 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:45 AM.

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