Solved

How do I log my modem connection?

Posted on 1998-08-27
5
146 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
Comment Utility
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
Comment Utility
You could enable the auto-logging in the modem configuration
0
 
LVL 1

Accepted Solution

by:
disha earned 200 total points
Comment Utility
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
Comment Utility
Can you give me an example on how I can know the port is open.
0
 
LVL 1

Expert Comment

by:disha
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now