[comp.sys.apple] Sending commands to modem

c60c-3aw@web-2g.berkeley.edu (Andy McFadden) (09/03/88)

How does one send commands (like ATDxxxxxxx) to a modem from Applesoft?
From assembler?  Assume a super serial card or //gs serial port.

I'm sure there's an easy way to do this; I'm just not sure what it is.

-- 
fadden@zen.berkeley.edu [crashed]
c60c-3aw@widow.berkeley.edu (Andy McFadden)

dippy.tek@pro-simasd.cts.COM (Rob Lodes) (09/03/88)

Andy McFadden, you write

>How does one send commands (like ATDxxxxxxx) to a modem 
>from Applesoft?

10 pr#1
20 print "ATDT 555-5555"


this is assuming your modom is in slot one, to read from
your modom do a "in#1".

Rob

c60c-3aw@web-2d.berkeley.edu (Andy McFadden) (09/06/88)

In article <8809030721.AA19547@crash.cts.com> pnet01!pro-simasd!dippy.tek@nosc.mil writes:
>Andy McFadden, you write
>
>>How does one send commands (like ATDxxxxxxx) to a modem 
>>from Applesoft?
>
>10 pr#1
>20 print "ATDT 555-5555"
>
>
>this is assuming your modom is in slot one, to read from
>your modom do a "in#1".
>
>Rob

Well, not exactly.

This is rather odd: the pr# does not work, nor does Kermit.  Z-link works
just fine, as does ProTERM.  Talk is Cheap doesn't seem to work either, nor
do the CDA Term programs.

Here's the question (listening, whitney?)  What does Z-Link do that these
other programs don't?

I'm using an Apple //gs, with a Prometheus 2400G connected to the serial port.
It is fully Hayes compatible (I use the Hayes 2400 setup from ProTERM).

Note that the previously mentioned programs ALL work once a connection has
been established, so that isn't a problem.


-- 
fadden@zen.berkeley.edu [crashed]
c60c-3aw@widow.berkeley.edu (Andy McFadden)

c60c-3aw@web-2d.berkeley.edu (Andy McFadden) (09/07/88)

The problem was that the DSR/DTR handshake was blocking what was typed.
Thanks to all who tried to help.

-- 
fadden@zen.berkeley.edu [crashed]
c60c-3aw@widow.berkeley.edu (Andy McFadden)

rich@pro-exchange.cts.COM (Rich Sims) (09/08/88)

Andy McFadden (c60c-3aw@widow.berkeley.edu) writes:

>This is rather odd: the pr# does not work, nor does Kermit.  Z-link works
>just fine, as does ProTERM.  Talk is Cheap doesn't seem to work either, nor
>do the CDA Term programs.

I can't comment on the other programs, but that is incorrect as far as Talk
is Cheap (TIC) goes.  I've been using it for some time, through several
versions, both on a //e and a IIgs, and through a SSC and the GS's serial
port.  It sends modem command sequences just fine.

It seems (if a command sequence is all you need) like a fairly complex way
to go about things, but you can launch TIC, send the necessary modem commands,
exit, and go about your business.  On exit, it doesn't do anything to the
modem, so it's left in whatever state you set up.

There are, however, far easier ways to go about things.

re: The original question (how do you get commands to the modem from BASIC)

Take a look at ModemWorks, by Morgan Davis, of Living Legends Software.  It
is a total "communications library" allowing complete modem control from
BASIC, and a whole lot more.  For more info, contact:

   Morgan Davis
   Living Legends Software
   P.O. Box 4313
   La Mesa, CA 92044
   (714)676-1940

UUCP: [ sdcsvax nosc ] !crash!pro-exchange!rich || pro-exchange: 305/431-3203
ARPA: crash!pro-exchange!rich@nosc.mil          ||  300/1200/2400/9600 (HST)
INET: rich@pro-exchange.cts.com                 ||     login = 'register'