Ron Albright <(E-Mail Removed)> wrote:
> On Fri, 18 Mar 2005 07:41:28 -0600, Clifford Kite wrote:
>> Okay, except for the Sportster initialization, after looking more
>> carefully at the logs the basic problem might be hardware-related.
>> The Best Data modem showed
> What do I change to change the init string set to the modem? I can see
> various stuff being set by mgetty but I can't find the stuff that's being
> sent in any of the config files in /etc/mgetty+sendfax. I would
> have guessed it was coming from /etc/mgetty+sendfax/mgetty.config but
> there not in there.
The modem initialization can be in mgetty.config using
init-chat "" <modem init1> OK <modem init2> OK ... \c
(Here mgetty+sendfax is in /usr/local/etc/ but it can probably be
elsewhere - I don't recall.)
It can also be in inittab with the -m parameter, e.g.,
d3:2:respawn:/usr/local/sbin/mgetty -D -n 2 -s 38400 -m '"" ATZ OK AT\&F
OK AT\#CID=1S0=0 OK \c' ttyS1
(I used this with additional configuration in dialin.config to defend
against telemarketers before No Call lists came into being.)
>>> 03/17 15:58:13 yS0 WARNING: starting login while DCD is low!
>>
>> which means the serial device detects no carrier (DCD=Data Carrier
>> Detect). If the serial cable is the same for both boxes then this
>> may mean that the serial device for this box has a problem.
> I reconfigured things. On a RedHat 7.3 box I have a pcmcia modem as
> /dev/ttyS2, the external BestData modem on /dev/ttyS1 and the external USR
> on /dev/ttyS0. I can dial into the pcmcia modem with no problems. I get
> the same thing as earlier when I try dialing into the ttyS0 or ttyS1. So
> you're right that it has to be something in the serial port configuration
> or a hardware problem. But I've tried 2 different serial cables and modems
> on 4 different serial ports on 3 different computers (2 Fedora Core 3 and
> a RedHat 7.3) and the result is the same. Is there something I'm missing
> that has to be configured on the /dev/ttyS0 for the external modem?
Not for the modem, for the serial device used by the modem. The serial
port (device) connectors on the computer should be identified as 1,2,3,4
(where 3 and 4 may not exist). These very likely use IRQs and ports
as detailed in "man setserial". "setserial /dev/ttySx" will show the
IRQ, port, and UART configured for ttySx which must match the serial
device's, e.g,
~# setserial /dev/ttyS1
/dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
If there is no serial device available for a device file then the UART
is shown as "unknown," e.g.,
~# setserial /dev/ttyS2
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
The PCMCIA modem using ttyS2 likely has a built-in serial device
that uses a port and IRQ different from those shown for ttyS2 in
"man setserial." Note that a modem's serial device IRQ should not
be used by anything else. Check with "cat /proc/interrupts".
>> It might also be useful to see what happens during PPP negotiations
>> when using the Best Data modem. The AutoPPP line showed pppd had
>> the debug option, so to get a log of those just add the line below
>> to /etc/syslog.conf
>>
>> daemon.*;local2.* /var/log/ppp.log
>>
>> and get syslogd to reread that file with "killall -HUP syslogd".
> There was no logging when trying to connect through /dev/ttyS0 but a
> successful session was logged when connecting through /dev/ttyS2.
I think this means that there were no log messages when using the Best
Data modem while the PCMCIA modem allowed a successful PPP connection.
Since pppd started with the Best Data that seems peculiar. Well, not
so strange after all since I thought the actual pppd command line would
have the debug option as shown in the /AutoPPP/ line of login.conf from
your first post, but apparently does not (cmd):
> 03/17 15:58:13 ##### data dev=ttyS0, pid=4817, caller='none', conn='38400',
> name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
??
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/
/* Better is the enemy of good enough. */