andersnb@cmcl2.NYU.EDU (Brian Anderson) (11/10/87)
I am try to write a simple program that accesses my Hayes 1200 baud modem, instructing it to dial a number (no actual data communication is needed as the call will always be voice). I am using MSC 4.0 (no 5.0 yet!). I tried opening to the COM1 port and writing the appropriate control strings, no luck. I then tried using BIOS routines directly, again no luck. The modem does not respond. I know there is nothing wrong with the modem since I use it regularly with crosstalk and windows term.exe. Does anyone out there have an example of how to communicate with a modem? Please email me some examples!!!! Thanks in advance - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Brian G. Anderson | NYU Ultracomputer Research Project ||| 715 Broadway Rm. 1006 ||||| New York, NY 10003 ||||| (212) 998-3346 --- //\ --- arpa: andersnb@cmcl2 ----/ \---- uucp: {ihnp4,seismo}!cmcl2!andersnb ---- ----
pavlov@hscfvax.UUCP (840033@G.Pavlov) (11/12/87)
In article <21410@cmcl2.NYU.EDU>, andersnb@cmcl2.NYU.EDU (Brian Anderson) writes: > > I am try to write a simple program that accesses my Hayes 1200 baud > modem, instructing it to dial a number (no actual data communication > is needed as the call will always be voice). I am using MSC 4.0 > (no 5.0 yet!). I tried opening to the COM1 port and writing the > appropriate control strings, no luck. I then tried using BIOS routines > directly, again no luck. The modem does not respond. Anyone trying something like the above may want to take a look at C Programmer's Guide to Serial Communications by Joel Campbell The style tends to be "cute" at times. And the writer appears to work for Hayes (with a resulting slant in the book). But overall, it is a very use- ful text and contains a number of C routines for serial communications. greg pavlov, fstrf, amherst, ny.
crimmins@uxc.cso.uiuc.edu (11/12/87)
/* Written 8:05 am Nov 10, 1987 by andersnb@cmcl2.NYU.EDU in uxc.cso.uiuc.edu:comp.sys.ibm.pc */ > > I am try to write a simple program that accesses my Hayes 1200 baud > modem, instructing it to dial a number (no actual data communication > is needed as the call will always be voice). I am using MSC 4.0 > (no 5.0 yet!). I tried opening to the COM1 port and writing the > appropriate control strings, no luck. I then tried using BIOS routines > directly, again no luck. The modem does not respond. Try doing an fprintf(stdaux,"ATDTxxxxxxx"); No open is necessary. This is one of the handles that are automagically opened when the program is run (stdin, stdout, stderr, stdprn, stdaux). It's all in the manual. -- Dan Crimmins crimmins@uxc.cso.uiuc.edu