Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!oddjob!gargoyle!ihnp4!inuxc!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.dcom.modems Subject: Re: Qubie and THE 2400 baud Message-ID: <680@bsu-cs.UUCP> Date: Tue, 19-May-87 20:11:48 EDT Article-I.D.: bsu-cs.680 Posted: Tue May 19 20:11:48 1987 Date-Received: Sat, 23-May-87 08:46:24 EDT References: <8UflKJy00WAFReo0=t@andrew.cmu.edu> <514@applix.UUCP> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 44 In article <514@applix.UUCP> jim@applix.UUCP (Jim Morton) writes: >I do not >have the luxury of, for example, Ultrix's acucap capabilities, so >any 2400 modem I get MUST be 100% Hayes Smartmodem2400 compatible, >since I can't change what uucico expects back from the modem. I don't think the right way to talk to a modem is to compile its responses into code. Rather than fool around with that I simply put the responses into my L.sys expect-send scripts. It sounds like a hassle, and you do have to repeat some common code for each system you call, but (a) it's far easier to debug a UUCP transaction and (b) you can try out different modem parameters very easily. Just tell your system it's a direct connection ("DIR" does that for me). A sample is shown below to call system "icallu", with names and addresses changed to protect the innocent. Note special conventions: PAUSE1 pauses 1 second; "~03" sets the expect timeout to 3 seconds; "ABORT CARRIER" will abort the dialling attempt any time the string "CARRIER" (as in "NO CARRIER" etc.) is seen before the connection completes. Note that the following script not only resets the modem, sets parameters, and makes the call, but also sends a control D if it doesn't see the "login:" string, just in case the other end is somehow in uppercase-only mode (happened to me locally because a stupid modem I was using insisted on printing "CONNECT 1200" on incoming calls, making UNIX think somebody called CONNECT was trying to log in). icallu Any1800-0600 DIR 2400 ttyd1 "" ATQ0V1 OK~05-ATQ0V1-OK~05 PAUSE1 \ "" ATH \ OK~03-ATH-OK~03-ATH ATDT1-800-555-1212 CONNECT~60 PAUSE1 \ "" "" "" "" ABORT CARRIER ogin~45--ogin~45-\004-ogin~45 \ "" login~45--login~45--login~45 uucp \ ssword~40 feedme One possible limitation is the length of the expect-send script allowed by your UUCP. I have been able to write expect-send scripts to call the local Telenet node, connect into a PC-Pursuit modem (give it two tries), escape back to the @ prompt, turn off the @ escape sequence and speed up network timeout, connect back to the PC-Pursuit modem, then dial the number (give it two tries). It's hard to decipher when you are done with it, but it can be made to work. Never let Hayes compatibilty stand in your way! -- Rahul Dhesi UUCP: {ihnp4,seismo}!{iuvax,pur-ee}!bsu-cs!dhesi