From owner-freebsd-questions Thu Jul 18 17:53:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA04547 for questions-outgoing; Thu, 18 Jul 1996 17:53:20 -0700 (PDT) Received: from mailhost.lanl.gov (mailhost.lanl.gov [128.165.3.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA04535 for ; Thu, 18 Jul 1996 17:53:17 -0700 (PDT) Received: from hamlet.lanl.gov.lanl.gov by mailhost.lanl.gov (8.7.5/1.2) id SAA08018; Thu, 18 Jul 1996 18:53:16 -0600 (MDT) Received: by hamlet.lanl.gov.lanl.gov (4.1/SMI-4.1) id AA06468; Thu, 18 Jul 96 18:53:14 MDT Date: Thu, 18 Jul 96 18:53:14 MDT From: crs@hamlet.lanl.gov (Charlie Sorsby) Message-Id: <9607190053.AA06468@hamlet.lanl.gov.lanl.gov> To: questions@freebsd.org Subject: Modem question Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I hope there's someone out there who knows modems and their interaction with FreeBSD (or BSD in general). They seem to be black magic to me. I'll describe my problem first and then append lines from some of the relevant files and information about equipment. Please let me know it there's any information that I should have provided but did not. I am trying to set up a microcom DeskPorte FAST (v.34) modem on my FreeBSD system (Pentium 120 MHz, SCSI, etc.). For historical reasons, the modem is connected to the second serial port. Please don't tell me to get a different modem--that isn't an option for various reasons. The closest I could come if absolutely necessary would be a microcom DeskPorte 28.8S. So far, if I tip to the modem (using the command line "tip fake" -- see below), I can talk to it and dial out using atd... Here are the relevant lines from /etc/ttys: ttyd1 "/usr/libexec/getty std.57600" vt102 on secure cuaa1 "/usr/libexec/getty std.57600" unknown off secure To tip to the modem to give it AT commands directly, here is the relevant section from /etc/remote: cuaa1:dv=/dev/cuaa1:pa=none:br#57600: fake:\ :el=^U^C^R^O^D^S^Q:ie=#%$:oe=^D:\ :pa=none:\ :tc=cuaa1: But if I try to use the acu, here's what I get: % tip hamlet Using "/dev/cuaa1" timeout waiting for reply tip: can't synchronize with microcom timeout waiting for reply timeout waiting for reply timeout waiting for reply timeout waiting for reply timeout waiting for reply hang up failed call failed [EOT] I'm also unable to have ppp autodial. My guess is that that is a manifestation of the same problem but, if not, material for another question later. But when I try "tip hamlet" as shown above I use: tip57600:\ :el=^U^C^R^O^D^S^Q:ie=#%$:oe=^D:\ :pa=none:\ :tc=dial57600: dial57600|57600 Baud Hayes attributes:\ :dv=/dev/cuaa1:br#57600:cu=/dev/cuaa1:at=microcom:du: hamlet:pn=6673564:tc=tip57600: I currently have the following in /etc/modems: microcom|hayes|Microcom Deskporte FAST 28.8K:\ :dial_command=ATDT%s\r:\ :hangup_command=ATH\r:\ :echo_off_command=ATE0\r:\ :reset_command=AT&z3\r:\ :init_string=ATZ3e0v0\r:\ :escape_sequence=+++:\ :hw_flow_control:\ :lock_baud:\ :intercharacter_delay#50:\ :intercommand_delay#250:\ :escape_guard_time#500:\ :reset_delay#2000: I will append a copy of my modem setup (e.g. user profile 3 which is what atz3 calls up). Perhaps there's a suitable init string that I could substitute for what I have that will solve the problem or perhaps I'm overlooking something that's obvious to everyone else. My guess is that my problem is something simple that I'm overlooking but.... Mega-Thanks for any help. Charlie PS Here's the modem setup called by atz3 (as seen by Unix script): Script started on Thu Jul 18 18:24:41 1996 PC% tip fake connected 000 IDLE 000:24:49 LAST DIAL 6673564 ID: NET ADDR: 000090060B6D MODEM HW: SA 2W United States 4 RTS 5 CTS 6 DSR - CD 20 DTR - RI Current User Profile: 3 MODULATION V.8 MODEM BPS 28800 AT%G0 MODEM FLOW OFF AT\G0 MODEM MODE AUT AT\N3 V.23 OPR. OFF AT%F0 AUTO ANS. OFF ATS0=0 SERIAL BPS 57600 AT%U0 PARALLEL PORT OFF AT BPS ADJUST OFF AT\J0 SPT BPS ADJ. 0 AT\W0 ANSWER MESSGS ON ATQ0 SERIAL FLOW BHW AT\Q3 - STRIKE ANY KEY TO CONTINUE - PASS XON/XOFF OFF AT\X0 PARITY 8N AT BREAK 5 AT\K5 EXIT CHAR 043 ATS2=43 CMD ECHO OFF ATE0 RESULTS ON ATQ0 RESULT TYPE EXT ATV0\V2 CONNECT MSG MDM ATW2 CONN MNP- 0 AT-M0 SPEED MATCH 1 AT%L1 EQUALIZER 1 AT:E1 FALLBACK 2 AT-Q2 DATA ECHO OFF AT\E0 INACT TIMER 00 AT\T0 AUTO RETRAIN ON AT%E1 COMPRESSION ALL AT%C3 MAX BLK SIZE 256 AT\A3 AUTO BUFF 0 AT\C0 - STRIKE ANY KEY TO CONTINUE - AUTO CHAR 000 AT%A0 EMULATING HP OFF AT\H0 PAUSE TIME 002 ATS8=2 DTR 2 AT&D2 CARR DET 1 AT&C1 DSR 0 AT\D0 RING IND 1 AT\R1 SPKR CTRL 1 ATM1 SPKR VOL 2 ATL2 LEASE LINE 0 AT&L0 ASYNC/SYNC 0 AT&M0 CTS/RTS 0 AT&R0 LNG SPC DISC OFF ATY0 SIM RING 0 AT:R0 CD DELAY 000 AT:U0 CTS DELAY 000 AT:V0 DSR DELAY 000 AT:X0 DISC DELAY 000 AT%D0 - STRIKE ANY KEY TO CONTINUE - REM CHAR 042 AT*S42 REM ENABLE OFF AT*E0 REM SEC OFF AT*R0 RDLB ENABLE OFF AT&T5 DIAL MODE 4 ATX4 PULSE DIAL 60% AT&P0 PULSE MODE N AT%W0 V.24 TST MODES OFF AT%H0 V23 HD EQU ON AT%O1 GUARD TONE 0 AT&G0 ASYNC PROTOCOL NONE AT:K0 KERMIT MARK 001 AT:Q1 2ND FC OFF AT-F0 NM BIT VALUE 0 AT-E0 PAR CHK 0 AT-P0 MANUAL DIAL 0 AT:D0 RESET CONFIG 3 AT&Y3 UPSHIFT BPS OFF AT*H0 - STRIKE ANY KEY TO CONTINUE - CELLULAR OFF AT)M0 LINETYPE 000 AT@M0 DETECT PHASE ON AT-J1 MNP EXT SVC 1 AT-K1 READ SWITCHES ON AT$K0 O/A BUTTON ON AT$O0 TD ENABLE ON AT$T0 AUTOLOGON VIEW ON AT$V1 AUTOLOGON ANS 0 AT$A0 DIALBACK SEC OFF AT$G0 CALLBACK TMR 000 AT)H0 CLOCK SOURCE MDM AT&X0 UNIV V.23 1 AT-V1 CONNECT MSG 1ST AT@C0 V25 COMPLIANCE 0 AT@B0 PCS ENFORCE 0 AT$M0 DUMB MODE OFF AT-H0 BELL ON ATB1 0~ [EOT] PC% exit PC% exit Script done on Thu Jul 18 18:25:21 1996