[futurebasic] Re: [FB] Modem/OPEN "C"

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Tue, 18 Sep 2001 10:09:50 -0400
>Ok....another question from the dummy....
>
>With this FN...could someone tell be specifically what TheChar% numbers are
>for...especially, does 0 or 10 mean that the modem was able to connect to
>another modem (did the other modem/phone answer)?  Or does one of them say
>no and the other say yes?
>
>clear local
>LOCAL FN WaitModemMsg$(PortID%, WaitTicks&)
>// Variables
>DIM Rcvd$,Tmp$,StopTime&,TheChar%
>// Read Modem Message
>StopTime& = WaitTicks& + FN TICKCOUNT
>DO
>READ #PortID%, Tmp$;0
>TheChar% = ASC(Tmp$) AND 127
>SELECT CASE TheChar%
>CASE 0,10'Ignore Line feeds...
>CASE 13     : Rcvd$ = Rcvd$ + "<cr>"'Show Carriage returns...
>CASE < _" " : Rcvd$ = Rcvd$ + "<&"+RIGHT$(HEX$(TheChar%),2)+">"'Show Control
>characters...
>CASE ELSE  : Rcvd$ = Rcvd$ + CHR$(TheChar%)'Add to returned string...
>END SELECT
>UNTIL TheChar% = 13 OR FN TICKCOUNT > StopTime&
>END FN = Rcvd$
>
>Thanks
>
>Terrald J. Smith


Terrald, those look like formatting comands to me.

Inside Basic volume 1 issue 12 has a BTerm program and article by Mel
Patrick. This covers several modem protocols, etc.
Someone kind should send you that from the Inside Basic CD. I don't have
that though, just the printed version. Does FutureBasic.org have the source
for BTerm?

I would consider throwing off a letter to Zterm's author and inquire as to
how to go about resolving your particular issues in a practical sense, I am
sure he would help.

Robert Covington