PDA

View Full Version : Enlisting



Betazep
01-30-2002, 09:06 PM
I am working on a small project that will essentially consist of a program that will gain control of a modem, dial a number, pause, and dial another number (i.e. a pager).

I am familiar with LPT port programming, but my serial programming experience is non-existent. So, I am gathering all of the resources I can about serial programming with explicit regards to modems

This program will be completely windows console based and ANSI C++ compliant. I will be utilizing classes for all objects to include user interface, file IO, and modem access/control.

If you know of resources that will assist me with the modem application that you think may fit the bill, let me know. If you think you would like to help develop this and have a good understanding of classes and ANSI compliant code, let me know.

Thus far, I have been unable to find how to send a modem a simple init string and a dial command in a generic fashion (has to work with mostly all modems). Then again, I just got started.

More details to those that are interested if any....

Betazep
01-30-2002, 10:26 PM
Well I now know how to initialize the modem and make it dial. Pretty easy really. You just open a com port as a file and send an ATD command to dial.

adrianxw
01-31-2002, 07:12 AM
You may be interested in TAPI. It is an API jointly developed by Intel and Microsoft for telephony. Have a look for it on google or similar.

Betazep
02-03-2002, 06:24 PM
Well this is just a little widgit program... some of you may have use for it (though most of you can probably do better). There are two zipped exe files and a readme, but due to board limitations, I have to seperate them into two posts.

Want to bug test it for me? I think I covered most of the bases. It doesn't verify if the modem is opened at the particular port. It just opens the port and sends ASCII... so it will dial no-matter if your modem is there or not... just an FYI.

p.s. Like my high tech icon? LOL :)


p.s.s. Does anyone know if you can open a port as a file for both read and write operations (edit... at the same time). Then I can look for an OK from the port on ATZ initialization? I haven't tried it yet. I may later... but it works quite well for the application that I am using it for.........

Betazep
02-03-2002, 06:25 PM
file two

Betazep
02-03-2002, 06:49 PM
>>>Does anyone know if you can open a port as a file for both read and write operations (edit... at the same time). Then I can look for an OK from the port on ATZ initialization? I haven't tried it yet. I may later... but it works quite well for the application that I am using it for.........


Nope... doesn't work.

I have an ASCII Terminal Class that should do what I want... I just have to find out how to use it.