home *** CD-ROM | disk | FTP | other *** search
Wrap
GW-BASIC | 1988-06-30 | 3.0 KB | 52 lines
10 CLS : KEY OFF : FOR A = 1 TO 10 : KEY A,"" : NEXT : DEF SEG : POKE 106,0 20 PRINT : PRINT 30 OPEN "COM1:" AS 1 35 PRINT #1, "AT Z" 40 LOCATE 3,25 : COLOR 9,0 : PRINT "Hayes SMARTMODEM Demonstration" 50 COLOR 5,0 60 PRINT 70 PRINT 80 PRINT " The Hayes Stack SMARTMODEM is designed to be used in amateur radio 90 PRINT "applications, as well as standard applications directly connected to a phone 100 PRINT "line. 110 PRINT 120 PRINT " The modem (acronym for "; : COLOR 26,0 : PRINT "MOD";:COLOR 5,0 : PRINT"ULATOR/";:COLOR 26,0 : PRINT"DEM";:COLOR 5,0 : PRINT"ODULATOR) can key a transmitter," 130 PRINT "access a repeater or remote base with DTMF touch tones, give station" 140 PRINT "I.D. in Morse Code, send ASCII data at up to 300 BAUD (bits per second)," 150 PRINT "then unkey the transmitter and wait to receive ASCII from the distant" 160 PRINT "computer or terminal." 165 PRINT 170 PRINT " Since this can all be done under program control, and since it can" 180 PRINT "be controlled by external sources, such as status of a device on an" 190 PRINT "input port, time of day, etc..., the controlling computer can be totally" 200 PRINT "unattended." 202 PRINT 204 PRINT "Make sure SMARTMODEM is unplugged from phone line..." 210 LOCATE 25,14 : PRINT "Press space bar for demonstration or <Esc> to end"; 215 A$ = INKEY$ : IF A$ = "" THEN 215 220 IF ASC(A$) = 27 THEN CHAIN "MENUB.BAS" 230 IF ASC(A$) = 32 THEN 250 240 SOUND 37,5 : GOTO 215 250 CLS : FOR A = 1 TO 2500 : NEXT 255 GOSUB 1000 260 LOCATE 4,30 : COLOR 26,0 : PRINT"Key transmitter..."; 270 COLOR 5,0 : LOCATE 5,25 : PRINT "(denoted by 'OH' LED on modem)" 280 PRINT #1, "AT S10=255M2D;" 290 FOR A = 1 TO 5000 : NEXT 300 GOSUB 1000 : LOCATE 10,23: COLOR 26,0 : PRINT "Access Repeater or Remote Base..." 310 PRINT #1, "AT S11=255DT783;" : FOR A = 1 TO 3500 : NEXT : PRINT #1,"AT S11=40DT3591828*##;" 320 FOR A = 1 TO 5000 : NEXT 330 GOSUB 1000 : LOCATE 15,26 : PRINT "Identify Station/Repeater..." 340 PRINT #1, "AT RC1.--/.-/--.../.---/-../-..-/;" 350 FOR A = 1 TO 8000 : NEXT 360 GOSUB 1000 : LOCATE 20,32 : PRINT "Transmit Data..." 370 PRINT #1, "AT R C1 H2 D": FOR A = 1 TO 2500 : NEXT : PRINT #1, "This is a test of the Communications Port. This is sent at 300 Baud, ASCII, over an amateur radio transmitter. It will then unkey the transmitter and wait for a return carrier and signa 380 FOR A = 1 TO 6500 : NEXT : PRINT #1, "+++"; : FOR A = 1 TO 2500 : NEXT : PRINT #1, "AT H" 390 GOSUB 1000 : FOR A = 1 TO 250 : NEXT : GOSUB 1000 : FOR A = 1 TO 250 : NEXT : GOSUB 1000 400 LOCATE 25,25 : COLOR 8,7 : PRINT "Press space bar to continue...";: COLOR 5,0 410 A$ = INKEY$ : IF A$ = "" THEN 410 420 IF ASC(A$) =32 THEN CLOSE : RUN 430 SOUND 37,5 : GOTO 410 1000 PLAY "T50L48MNAMSAA" 1010 RETURN