Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-2007, 01:46 PM
test test is offline
Newbie
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0
test is on a distinguished road
Default In a bind, any ideas?

Hi, i'm in a bind. I have to leave in a couple of weeks, and I need to quickly set up a sort of connection monitor on my parents' computer for their internet. Their router is stuck in a separate room, so they can't tell what speed they are connected from Windows XP. I need to make an icon on their desktop that they can click on to quickly and easily view what speed their internet is connected at.
A program or script that simply writes 'Connected at full speed.' or 'Connected at half speed.' to a command prompt window would be more than sufficient.

To find out what speed it is connected at, I typically have to type the following sequence of commands:
start->run-> telnet 192.168.0.1
send: mypassword
send: 24 (menu navigating)
send: 1 (menu navigating)

After doing this, the following shows up on telnet:

CHAN Link Type TXPkt RXPkt Error CLU ALU Up Time
B1 PeoplePC 64Kbps 1341306 1771895 0 71% 11% 2:16:10
B2 PeoplePC 64Kbps 1168961 1591175 0 81% 11% 2:16:08

If B2 has 'PeoplePC' next to it, that means the internet is connected at full speed (128k). If the internet is -NOT- connected at full speed, the screen looks like this, with -- in place of B2 and Idle and 0Kbps next to it:

CHAN Link Type TXPkt RXPkt Error CLU ALU Up Time
B1 PeoplePC 64Kbps 1341367 1771968 0 0% 11% 2:19:38
-- Idle 0Kbps 1169041 1591256 0 0% 0% 0:00:00

To summarize, I need to make an icon which runs a script that will telnet into the router, navigate the menus, and then send a message back to the user via command prompt or some other method. Does anyone have any suggestions on what I could use to do this, something that doesn't require a large learning curve preferably? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-20-2007, 03:00 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

I would recommend something simple like Visual Basic or C#. Maybe even Java?
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-20-2007, 05:57 PM
Crane's Avatar   
Crane Crane is offline
Programming Expert
 
Join Date: Nov 2005
Posts: 399
Rep Power: 14
Crane is on a distinguished road
Default

It looks like you are using ISDN, right? Why not just show them how to telnet and do those steps above?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-20-2007, 06:18 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

If you don't need a GUI, you can probably get away with creating a batch file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-21-2007, 12:09 AM
test test is offline
Newbie
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0
test is on a distinguished road
Default

Yes this is an ISDN line. My parents are not computer savvy at all. I've tried showing them how to do this, but they get confused very easily... They also don't like to have to go through all of these steps each time they use the internet.

I've tried creating a batch file, but as soon as it opens the telnet connection, it will not send any further commands to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 07-24-2007, 11:18 AM
CygnetGames's Avatar   
CygnetGames CygnetGames is offline
Programmer
 
Join Date: May 2007
Location: York, England
Posts: 113
Rep Power: 6
CygnetGames is on a distinguished road
Default

Have you considered using Python?
There's probably a Python library that you can use to send the Telnet commands, and get the result back to Python. Then you can have Python parse the result and display a message to the user.

Python could give them a message in a command prompt (rediculously easy to program), or you could make a simple GUI very easily using Tk.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-24-2007, 02:52 PM
test test is offline
Newbie
 
Join Date: Dec 2006
Posts: 9
Rep Power: 0
test is on a distinguished road
Default

No I haven't. Unfortunately, i've never used Python/Tk, and the programming experience I do have is about 10 years old (all but forgotten.)

I can look into that though. I'm not sure if I have time currently to learn a new programming language to get this to work though. I wish there was a simple way of doing this with WinXP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Ideas Jordan Community Projects 20 10-25-2008 01:43 PM
Ideas please!!!!! speaker219 PHP Forum 7 08-16-2007 07:39 AM
I need ideas Nille C and C++ 3 07-25-2007 05:51 PM
Need Ideas falco85 Business and Legal 9 01-09-2007 07:00 PM
Promotion ideas Ronin Marketing 14 12-31-2006 12:20 AM


All times are GMT -5. The time now is 06:11 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads