Thread View: alt.lang.basic
4 messages
4 total messages
Started by Dixon Berry
Sun, 11 Oct 1992 23:19
Simple Modem Program Wanted
Author: Dixon Berry
Date: Sun, 11 Oct 1992 23:19
Date: Sun, 11 Oct 1992 23:19
9 lines
737 bytes
737 bytes
I am looking for a simple program that will detect the phone ringing, wait 30 seconds and then dial a preset number. I want to use this when someone call my office, leaves msg on answering machine and then computer dials out to my pager, so I can check it. Sounds simple eh? I'm going NUTS.... Email me some ideas PLEASE! Thaxs.... SKYHIGH
Re: Simple Modem Program Wanted
Author: Rob Cermak
Date: Tue, 13 Oct 1992 18:31
Date: Tue, 13 Oct 1992 18:31
30 lines
1348 bytes
1348 bytes
ON ERROR GOTO HICK REM ** SET FOR SPEED OF MODEM - Make sure you set the correct REM ** Modem parameters...IE: 8N1 is a N,8,1 below OPEN"COM1:2400,O,7,1,CS,DS,RS,CD" AS 1 T=TIMER REM ** This delays each 30 sec DO WHILE INSTR(X$,"RING")=0 IF (TIMER-T)<5 or (TIMER-T)>30 THEN X$="":T=TIMER:REM ** Reset STRING IF EOF(1)=0 THEN X$=X$+INPUT$(1,1):T=TIMER LOOP CLOSE 1 REM ** Set for speed to call-back OPEN"COM1:4800,O,7,1,CS,DS,RS,CD" AS 1 PRINT #1,"ATZ ###-####" : REM *** The phone number! END HICK: IF ERR=57 THEN RESUME:REM ** Trap LOUZY UART Device Errors ERROR ERR END -- Rob Cermak EMAIL : cermak@gandalf.rutgers.edu Programmer NJ Climate Center & USMAIL: Rutgers University Prog/Tech Rutgers Meteorology-COOK Department of Meteorology FAX :908 932-7922 Cook College PO BOX 231 Meteorology Dept:908 932-9387 New Brunswick NJ 08903-0231
Re: Simple Modem Program Wanted
Author: soc1070
Date: Tue, 13 Oct 1992 19:47
Date: Tue, 13 Oct 1992 19:47
18 lines
1081 bytes
1081 bytes
In article <Oct.13.14.31.18.1992.20243@gandalf.rutgers.edu>, cermak@gandalf.rutgers.edu (Rob Cermak) writes...
>
>PRINT #1,"ATZ ###-####" : REM *** The phone number
>Rob Cermak EMAIL : cermak@gandalf.rutgers.edu
In order to get the modem to dial, wouldn't that line need to read:
PRINT #1,"ATDT ###-####" : REM ...
^^^^
ATZ is the simple reset, isn't it?
-----------
Tim Harincar Kill Your Television.
soc1070@vx.acs.umn.edu
Re: Simple Modem Program Wanted
Author: Rob Cermak
Date: Tue, 13 Oct 1992 20:21
Date: Tue, 13 Oct 1992 20:21
9 lines
884 bytes
884 bytes
UG... yes, it is ATDT... I've been known to blunder...thanks. -- Rob Cermak EMAIL : cermak@gandalf.rutgers.edu Programmer NJ Climate Center & USMAIL: Rutgers University Prog/Tech Rutgers Meteorology-COOK Department of Meteorology FAX :908 932-7922 Cook College PO BOX 231 Meteorology Dept:908 932-9387 New Brunswick NJ 08903-0231
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads