Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I log my modem connection?

Posted on 1998-08-27
5
148 Views
Last Modified: 2010-04-30
I want to write a program to log my modem connection dates and time.
Best way I can think of is to load the program at startup and let it
sleep until the modem is used. So...

q1: How do you put a program to sleep?
q2: How do you wake it up when a modem connection is opened and can you
make it awake only at connection and hang up, ignoring the data during
the session? All I need is the start time, end time and phone number.
0
Comment
Question by:JohanHolderbeke
5 Comments
 
LVL 9

Expert Comment

by:Dalin
ID: 1431374
A little more infor please...
So another app is handling the modem connection and data process?

and your prog is just going to monitor the other app coneect/disconnect to the modem?
Did you write the other app?
0
 
LVL 14

Expert Comment

by:waty
ID: 1431375
You could enable the auto-logging in the modem configuration
0
 
LVL 1

Accepted Solution

by:
disha earned 200 total points
ID: 1431376
You can write use teh comm control and let it poll for the port to be opened and CD goes on...get u'r login time and poll for CD to go off...as soon as it goes off get u'r logoff time and again poll for CD to go on.
0
 

Author Comment

by:JohanHolderbeke
ID: 1431377
Can you give me an example on how I can know the port is open.
0
 
LVL 1

Expert Comment

by:disha
ID: 1431378
Set u'r comm control - comport to that particular port.Check the status of the port ( If it doesnt give any..try opening it) .If if it gives an error that it is open handle the error and u know it is open...so poll for that error.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question