Date: Fri, 21 Jan 2000 08:40:36 +0000 From: Brian Somers <brian@Awfulhak.org> To: Lev Serebryakov oD <lev@imc.macro.ru> Cc: freebsd-stable@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: ppp see carrier everytime! Message-ID: <200001210840.IAA00439@hak.lan.Awfulhak.org> In-Reply-To: Message from Lev Serebryakov oD <lev@imc.macro.ru> of "Thu, 20 Jan 2000 21:24:51 %2B0300." <200001201824.VAA11049@imc.macro.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org> <brian@FreeBSD.org>
<http://www.Awfulhak.org> <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org.uk>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001210840.IAA00439>
