Click here to Skip to main content
Licence 
First Posted 17 Sep 2005
Views 44,614
Bookmarked 12 times

A Simple Logging Monitor for Motorola Surfboard Cable Modems

By | 17 Sep 2005 | Article
A simple program that fetches the modem power and SNR values from the status page, displays them nicely and logs them. Includes a simple bar graph control.

Sample screenshot

Introduction

This is a very simple program I wrote to help illustrate to the brain dead cable technicians the intermittent nature of my cable modem connection which was causing me endless grief.

Very simply, it grabs the HTML of http://192.168.100.1/signaldata.html and does some parsing based on known text in order to grab the Downstream Power, SNR and Upstream Power levels from the page. Once parsed, it displays the data on the form in nicely color coded values (green, yellow, and red) based upon some arbitrary but realistic numbers and also shows them visually in the form of a simple bar graph. There is also an option to log the data in a comma separated file when the values change.

Basics

The code is very short and sweet and fairly well commented. It should be no problem for anyone with even a basic level of understanding in C#. It utilizes the System.Net.WebClient class as well as a bar graph control I created.

Since the code is so simple, I won't really spend any time discussing it here since I feel it is much easier to understand when looking at the project directly. Mainly I am offering it to the public in hopes that it will alleviate someone else's grief in the way that it has mine. It is also handy to keep an eye on mission critical cable modem connections for those of us who work from home and/or use VOIP.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Brett Trotter

Systems Engineer
BT Technical Services
United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralArris Touchstone PinmemberSteve Meisner12:18 2 Sep '10  
GeneralRe: Arris Touchstone PinmemberZero3K10:33 3 Apr '12  
QuestionProgram Utilization Pinmemberkg4req8:06 26 Jul '09  
AnswerRe: Program Utilization PinmemberBrett Trotter18:12 26 Jul '09  
General[Message Deleted] Pinmemberit.ragester5:35 28 Mar '09  
GeneralRe: sip PinmemberBrett Trotter6:53 28 Mar '09  
AnswerBetter ways of parsing PinmemberBrett Trotter3:31 23 Oct '08  
QuestionHow to Login and Use Your Program PinmemberSteve Ganslen4:42 5 Jul '08  
AnswerRe: How to Login and Use Your Program PinmemberBrett Trotter5:34 5 Jul '08  
GeneralHaving troubles [modified] PinmemberRivitingOne21:42 20 Jan '07  
AnswerRe: Having troubles PinmemberBrett Trotter11:14 1 Sep '07  
I've not been to this site in a while, just now (many months later) caught your message. The unable to contact host message is just telling you it wasn't able to make an HTTP connection to 192.168.100.1. If you don't have a surfboard modem, or perhaps have a newer one or different fimware, yours may not be on the same IP.
 
As far as compilation goes, I always just use Visual Studio and I can't say that I've ever compiled C# code manually.
 
I'm also unusure what you meant about adding a snippit of output.
 
Sorry for the delay!
GeneralRe: Having troubles PinmemberBrett Trotter5:38 5 Jul '08  
GeneralJust what I needed PinmemberThomas Wells4:23 23 Aug '06  
GeneralRe: Just what I needed Pinmemberbtrotter6:25 23 Aug '06  
GeneralRe: Just what I needed PinmemberThomas Wells6:29 23 Aug '06  
GeneralRe: Just what I needed Pinmemberbtrotter6:34 23 Aug '06  
GeneralSmall code update. PinmemberBrett Trotter19:51 28 May '06  
QuestionCan you help me? PinmemberGiveMeJazz3:06 4 Apr '06  
AnswerRe: Can you help me? PinmemberBrett Trotter19:56 28 May '06  
Generalexe PinmemberBrett Trotter23:29 2 Nov '05  
GeneralRe: exe Pinmembercaliforniafan13:43 14 Nov '05  
Questionexe? PinmemberCharlieG2:30 24 Sep '05  
AnswerRe: exe? Pinmembercaliforniafan11:34 28 Sep '05  
GeneralRe: exe? PinmemberBrett Trotter4:54 29 Sep '05  
GeneralRe: exe? Pinmembercaliforniafan5:33 29 Sep '05  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120529.1 | Last Updated 18 Sep 2005
Article Copyright 2005 by Brett Trotter
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid