*BSD News Article 71674


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!sgigate.sgi.com!nntp.coast.net!howland.reston.ans.net!newsfeed.internetmci.com!news.sprintlink.net!news-stk-200.sprintlink.net!news.sprintlink.net!news-dc-10.sprintlink.net!news.onramp.net!home!betts
From: betts@onramp.net (Jeff Betts)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Dialin modem/ttyd3 making me crazy
Date: Thu, 20 Jun 1996 17:17:19 UNDEFINED
Organization: OnRamp Technologies; ISP;  Dallas/Ft Worth/Houston, TX USA
Lines: 203
Message-ID: <betts.192.03D705D9@onramp.net>
NNTP-Posting-Host: central31.onramp.net
X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #1]

I had this working fine on 2.0R, but can't for the life of me get it working 
on 2.1R despite my researching the docs, searching the mailing list archives, 
and reading this group.

All I want to do is be able to dial in and login to my shell -- no ppp or 
anything fancy.  Internal modem is on com4 (ttyd3/cuaa3) and I *can* talk to 
the modem on cuaa3.

When I call in to the modem from a remote modem, the 2 modems successfully 
negotiate a connection and report 14400/ARQ, but that's where we get stuck.  I 
either get a stream of "diamonds" (ascii 4 on the pc) that does *not* seem to 
match the signon banner, or nothing.  Checking ps on the FBSD side shows getty 
is still running on ttyd3 -- no login process has started.

rc.serial is as distributed, but I confess that I don't understand what (if 
anything) it does.  It appears to have several functions, none of which get 
called.  Should I be calling one of them somewhere?  Perhaps from rc.local?

I have (I believe) locked DTE as I have seen suggested and am out of 
ideas.  Hopefully, one of you will have some ideas.

Following are relevant details -- probably more that anyone wants, but better 
too much than too little :-)

/etc/ttys:
	ttyd3   "/usr/libexec/getty std.38400"  vt100   on

/etc/gettytab:
	default:\
	        :cb:ce:ck:lc:fd#1000:im=\r\nWelcome to FreeBSD (%h) (%t)\r\n
	\r\n:sp#1200:

	std.38400|38400-baud:\
	        :np:sp#38400:


MODEM ACTIVE PROFILE:
B1 E0 L1 M0 Q0 T V1 X4 Y0 &B0 &C1 &D3 &G0 &L0 &M0 &P0 &R0 &S0 &X0 &Y0
%A013 %C1 %E1 %L010 %S0 \A3 \C0 \G1 \J0 \K5 \N3 \Q3 \T000 \V2 \X0 -J1 "H3
S00:001 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:045 S08:002 S09:006
S10:014 S11:055 S12:050 S14:09H S16:2FH S21:38H S22:71H S23:15H S25:005 S26:001

MODEM DOCS:
COMMAND        FUNCTION
+++             Switch from data mode to command mode
A               Manually answer incoming call
A/              Repeat last command executed
AT              Must appear at the beginning of every command,
                except A/ and +++
B               B0= Variable link rate CCITT compatibility
               *B1= Variable link rate BELL compatibility
                B2= Automode V.32bis/V.32/V.22BIS/V.22
                B4= 300 bps---Bell 103 protocol
                B5= 1200 bps---V.22/Bell 212A protocols
                B6= 2400 bps---V.22bis protocol
                B7= 4800 bps---V.32 protocol
                B8= 9600 bps---V.32 protocol
                B9= 14400 bps---V.32bis protocol
D               Dial phone number with modifier below:
  P               Pulse dialing
  R               Reverse
  S               Dial one of the 4 phone numbers stored in memory
  T*              Tone dialing
  @               Wait for 5 seconds quiet
  ,               Pause
COMMAND        FUNCTION
  ;               Resume command mode after dialing
  !               Hook flash
E               E0= Commands are not echoed
               *E1= Commands are echoed
H               H0= Modem is on hook
                H1= Modem is off hook
I               I0= Display product code
                I1= Display checksum code
                I2= Compute checksum, return OK or ERROR
                I3= Display E.C. version code
                I4= Display version code
L              *L0,1= Low speaker volume
                L2= Medium speaker volume
                L3= Loud speaker volume
M               M0= Speaker off
               *M1= Speaker on until online
                M2= Speaker always on
                M3= Speaker on until online and off while dialing
O               O0= Return to online
                O1= Return to online and start retrain
                O2= Fall back; return to online
                O3= Fall forward; return to online
COMMAND        FUNCTION
Q              *Q0= Display result codes
                Q1= Do not display result codes
Sr              Select register r as current register
Sr?             Read value in register r
Sr=N            Set register r to value N
V               V0= Numeric response codes
               *V1= Verbal response codes
X               X0= Hayes smartmodem 300 compatibility
                X1= Include connect speed responses
                X2= Include dialtone detection responses
                X3= Include busytone detection responses
               *X4= Include both dialtone and busytone detection response
Y              *Y0= Long space disconnect disabled
                Y1= Long space disconnect enabled
Z               Z0= Reset and retrieve active profile 0
                Z1= Reset and retrieve active profile 1
&B             *&B0= Disable V.23 in V.32bis auto-mode
                &B1= Enable V.23 in V.32bis auto-mode
&C              &C0= DCD Signal always on
               *&C1= DCD signal when modem detects data carrier signal
&D              &D0= Ignore DTR signal
                &D1= Return to command mode when DTR on-to-off transition
COMMAND        FUNCTION
               *&D2= Hang up when DTR on-to-off transition
                &D3= Reset when DTR on-to-off transition
&F              &F0= Restore factory configuration profile from ROM
&G             *&G0= Disable guard tone
                &G1= 550Hz guard tone
                &G2= 1800Hz guard tone
&H              &H0= Display list of AT commands
&L             *&L0= Dialup operation
                &L1= Leased-line operation
                &L2= Leased-line with autoconnect
&M             *&M0= Asynchronous only
                &M1= Modem enter synchronous mode after dialing
                &M2= Synchronous only
                &M3= Manually originating a synchronous call
&P             *&P0= Make/Break ratio=39/61 (US and Canada)
                &P1= Make/Break ratio=33/67 (UK and Hong Kong)
&R             *&R0= CTS follows RTS
                &R1= CTS always on
&S             *&S0= DSR always on
                &S1= DSR off in command and test modes
&T              &T0= Ends test in progress
                &T1= Local analog loopback test
COMMAND        FUNCTION
                &T8= Local analog loopback with self test
&V              Display modem profiles
&W              &W0= Stores profile 0
                &W1= Stores profile 1
&X             *&X0= Synchronous clock provided by modem
                &X1= Synchronous clock provided by EIA
                &X2= Slave
&Y             *&Y0= Profile 0 will be retrieved when power on
                &Y1= Profile 1 will be retrieved when power on
&Zn             Stores up to 4 telephone numbers in memory
\A              \A0= 64 character Maximum MNP block size
                \A1= 64 character Maximum MNP block size
                \A2= 64 character Maximum MNP block size
               *\A3= 256 character Maximum MNP block size
\Bn             Send n*1/10 second line break to modem
\C             *\C0= Do not buffer data
                \C1= Buffer all data for 4 seconds
                \C2= Switch to normal link when fall back character detected
\G             *\G0= Disable flow control
                \G1= Enable flow control
\J             *\J0= Disable DTE baud rate adjustment
                \J1= Enable DTE baud rate adjustment
COMMAND        FUNCTION
\Kn             Please see the manual
\N              \N0= Normal connection
                \N1= Reserved for diagnostics
                \N2= Force MNP connection
               *\N3= Auto-reliable connection
                \N4= Force MNP or V.42 connection
\O              Initiate reliable link during a normal link
\Q              \Q0= Disable flow control
                \Q1= Bidirectional XON/XOFF flow control
                \Q2= CTS unidirectional flow control
               *\Q3= Bidirectional RTS/CTS flow control
                \Q4= Unidirectional XON/XOFF flow control
\Tn             Inactivity timer ( n=0* )
\U              Accept reliable link during a normal link
\V              \V0= Disable extended result codes
                \V1= Result codes show general error control information
               *\V2= Result codes show full error control information
                \V3= Result codes show DTE speed
\X             *\X0= Process XON/XOFF but do not pass through
                \X1= Process XON/XOFF and pass through
\Y              Switch to reliable link from normal link
\X             *\X0= Process XON/XOFF but do not pass through
COMMAND        FUNCTION
                \X1= Process XON/XOFF and pass through
\Y              Switch to reliable link from normal link
\Z              End reliable link and switch to normal link
%An             Set auto-reliable fallback character to n ( n=13* )
%C              %C0= Disable MNP 5 data compress
               *%C1= Enable MNP 5 data compress
%E              %E0= Disable auto retrain
               *%E1= Enable auto retrain
%S             *%S0= Disable call-back security and password check
                %S1= Enable password check (answer mode only)
                %S2= Enable call-back security (answer mode only)
-J              -J0= Disable error control detection phase
               *-J1= Enable error control detection phase
"H              "H0= Disable V.42bis data compression
                "H1= Enable V.42bis data compression
                "H2= Enable V.42bis data compression
               *"H3= Enable V.42bis data compression

A thousand thanks in advance,

Jeff
betts@onramp.net