Enlisting

This is a discussion on Enlisting within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I am working on a small project that will essentially consist of a program that will gain control of a ...

  1. #1
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412

    Enlisting

    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....
    Blue

  2. #2
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    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.
    Blue

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    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.........
    Attached Files Attached Files
    Last edited by Betazep; 02-03-2002 at 06:30 PM.
    Blue

  5. #5
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    file two
    Attached Files Attached Files
    Blue

  6. #6
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    >>>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.
    Blue

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21