From owner-freebsd-stable Fri Jan 21 11:52:23 2000 Delivered-To: freebsd-stable@freebsd.org Received: from awfulhak.org (dynamic-33.max4-du-ws.dialnetwork.pavilion.co.uk [212.74.9.161]) by hub.freebsd.org (Postfix) with ESMTP id DEFB715021 for ; Fri, 21 Jan 2000 11:52:13 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id TAA14106; Fri, 21 Jan 2000 19:50:59 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id IAA00439; Fri, 21 Jan 2000 08:40:36 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200001210840.IAA00439@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.0 09/18/1999 To: Lev Serebryakov oD Cc: freebsd-stable@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: ppp see carrier everytime! In-Reply-To: Message from Lev Serebryakov oD of "Thu, 20 Jan 2000 21:24:51 +0300." <200001201824.VAA11049@imc.macro.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 21 Jan 2000 08:40:36 +0000 From: Brian Somers Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, All! > > I have very strange problem with user-level ppp. ppp always see carrier on > my modem. All other software works perfectly (mgetty, FIDO mailer > qico). > Here are details: > Motherboard is SiS496, CPU i486DX4-100, 16Mb of RAM. > Sportster 33600 internal ISA is installed as COM2 (motherboard's > COM2 is switched off). I have next lines in my kernel config: > > device sio0 at isa? port "IO_COM1" tty flags 0x10 irq 4 > device sio1 at isa? port "IO_COM2" tty flags 0x10 irq 3 > > Kernel found devices: > > sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa > sio0: type 16550A > sio1 at 0x2f8-0x2ff irq 3 flags 0x10 on isa > sio1: type 16550A > > mgetty works perfectly: > > 01/20 20:58:13 aa1 mgetty: experimental test release 1.1.21-Ju > 01/20 20:58:13 aa1 check for lockfiles > 01/20 20:58:13 aa1 locking the line > 01/20 20:58:13 aa1 lowering DTR to reset Modem > 01/20 20:58:14 aa1 send: AT&F1M0L0[0d] > 01/20 20:58:14 aa1 waiting for ``OK'' ** found ** > 01/20 20:58:14 aa1 mdm_send: 'ATI' > 01/20 20:58:14 aa1 USR Courier/Sportster V.34(+) detected > 01/20 20:58:15 aa1 mdm_send: 'ATI3' > 01/20 20:58:15 aa1 additional info: 'Sportster 33600/Fax V2.0' > 01/20 20:58:15 aa1 mdm_send: 'AT+FCLASS=2.0' -> OK > 01/20 20:58:15 aa1 mdm_send: 'AT+FAA=1;+FCR=1' -> OK > 01/20 20:58:15 aa1 mdm_send: 'AT+FBO=1' -> OK > 01/20 20:58:15 aa1 mdm_send: 'AT+FNR=1,1,1,0' -> OK > 01/20 20:58:16 aa1 mdm_send: 'AT+FLI="7 812 1072343"' -> OK > 01/20 20:58:16 aa1 mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK > > But user-level ppp could not use port /dev/cuaa1! > It always see carrier on it: > > ppp ON freebsd> set log local +chat +phase +connect > Phase: bundle: Establish > Phase: deflink: closed -> opening > Phase: deflink: Connected! > Phase: deflink: opening -> dial > Chat: deflink: Dial attempt 1 of 1 > Phase: deflink: dial -> carrier > ppp ON freebsd> Phase: deflink: /dev/cuaa1 doesn't support CD > Phase: deflink: carrier -> login > Chat: Send: > Chat: Expect(15): login: > > I could say more: if I setup ppp to use /dev/cuaa0 (which is empty), > ppp will find Carrier too: > > ppp ON freebsd> set device dev/cuua0 > Phase: bundle: Establish > Phase: deflink: closed -> opening > Phase: deflink: Connected! > Phase: deflink: opening -> dial > Chat: deflink: Dial attempt 1 of 1 > Phase: deflink: dial -> carrier > ppp ON freebsd> Phase: deflink: /dev/cuaa0 doesn't support CD > Phase: deflink: carrier -> login > Chat: Send: > Chat: Expect(15): login: > > Simple program, which call ``ioctl(d,TIOCMGET,&flags)'' could not > find any carrier. > > Lev Serebryakov, 2:5030/661.0 What you mean is ppp *doesn't* see carrier. Have you tried modifying the carrier detect timeout: set cd 3 I suspect you modem is just a bit slow at asserting carrier. WRT the simple program that does a TIOCMGET, this will never see carrier (unless your modem is misconfigured) as only one process is normally able to open the cua device at a time, and carrier is only raised when the modem's connected to another modem. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message