home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: lafn.org!af274
- From: af274@lafn.org (Curtis Stanton)
- Subject: ARexx/serial dev question
- X-Nntp-Posting-Host: lafn.org
- Message-ID: <1996Apr6.172801.10419@lafn.org>
- Sender: news@lafn.org
- Reply-To: af274@lafn.org (Curtis Stanton)
- Organization: The Los Angeles Free-Net
- Date: Sat, 6 Apr 1996 17:28:01 GMT
-
-
- I hope this is the proper forum for this question. I haven't
- done much ARexx programming (and I don't have much experience
- with the serial device) so I would appreciate any help I can
- get. I have been trying to write a simple program to use the
- modem to dial a number, give me time to pick up the phone and
- then hangup the modem. So far the results from the following
- code are: the "SD" and "RD" lights flash, the "TR" light turns
- on, remains on during the pause and then turns off. Nothing
- else happens -- no dial tone -- no ring -- no nuthin.
-
- I'm using an A4000/040, ADOS 3.0 and a Supra FAX modem 288.
-
- Thanks for any suggestions,
- Curtis Stanton
- af274@lafn.org
-
- /* test dial modem */
-
- OPTIONS RESULTS
-
- Lib='rexxsupport.library'
- ADDLIB(Lib,0,-30,0)
-
- cr = '0d'x
- InitModem = 'ATZ'||cr
- PhoneNumber = 'ATDT 853-1212;'||cr
- hangup = 'ATH'
- pause = 50*5
-
- IF OPEN('output','SER:','W') THEN DO
- WRITELN('output',InitModem)
- WRITELN('output',PhoneNumber)
- DELAY(pause)
- WRITELN('output',hangup)
- CLOSE('output')
- END
-