Solved

How do I log my modem connection?

Posted on 1998-08-27
5
152 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
[X]
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
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month7 days, 7 hours left to enroll

632 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