> On Dec 5, 2025, at 6:59 PM, Peter Vollan <[email protected]> wrote:
> 
> Right, and I have written such a program, but now I am talking about an 
> external modem. 

My understanding is that an external modem would, in some respects, be easier. 
It's not necessary to CALL into the ROM to do the limited internal modem 
operations; you can handle it exactly how you like with the flexibility that 
made us all love Hayes-type modems over what came before.

The example snippet on p183 seems to have most of the bones you're looking for.

OPEN "COM......" FOR INPUT AS 1
OPEN "COM......" FOR OUTPUT AS 2

PRINT#2, "ATZ"+CHR$(13) : REM best practice
PRINT#2, "ATDT XXX-YYY-ZZZZ"+CHR$(13) : REM dial
[...a loop around INPUT#1, X$ to find "CONNECT" or "BUSY" in a INSTR(0, X$, 
"CONNECT")...]

PRINT#2, $whatever_commands_you_send_to_the_host : REM if any
[...a loop around INPUT#1, X$ to accept the host output...]

PRINT#2, "+++"  : REM default Hayes attention sequence
[FOR loop to delay 3 seconds] : REM because +++ needs a following delay on 
nearly all Hayes compatibles
PRINT#2, "ATH0" + CHR$(13) : REM hang up

Simple linear telecom scripting is pretty ideal a task for BASIC. PRINT and 
INPUT handle all the details. Say what you need to, accept what comes back.

Reply via email to