Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2000 16:16:15 -0700 (PDT)
From:      The Clark Family <res03db2@gte.net>
To:        "Rick C. Petty" <rick@KIWI-Computer.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: sio/modem troubles (buffering???)
Message-ID:  <Pine.BSF.4.21.0006211613330.46249-100000@orthanc.dsl.gtei.net>
In-Reply-To: <200006212129.QAA34361@KIWI-Computer.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Are you running this on a motherboard that has built in serial ports?

I've run into troubles with conflicts with built in ports, even when they
are disabled in BIOS.

It sometimes seems like the sio code is reading a character from the
modem, after it read a character from an onboard port.

How to check? Turn the onboard ports on, and get them out of the way, and
then see what happens.

[RC]

On Wed, 21 Jun 2000, Rick C. Petty wrote:

> Hello, all.
> 
> I am having difficulties with an ISA jumperable/PnP modem.  It is of the
> NewCom brand, model 56kifxsp (x2 technology, speakerphone).  It has two
> modes: PnP and you can also set jumpers to select COM 1 - COM 4 and IRQs
> 3, 4, 5, 7, 12, 11, 10...  I have two identical modems (purchased at the
> same time, everything is the same down to the lettering printed on the
> chips and the PCB).
> 
> While running 3.4-RELEASE, I was using one of the modems jumpered to IRQ 10
> on COM 4.  It was working perfectly (except I never connected above 33.6).
> The other modem was set to PnP and popped into a windoze 98 box that
> dual-booted to 3.4.  Using the PnP configuration utils in FreeBSD (boot -c
> followed by a long pnp command), I was able to get ppp(1) to recognize the
> COM port & rx/tx with the following problem...
> 
> In term mode, when I type something, the echo back is exactly one character
> behind.  So when I type "AT" I see "A" and "AT\n" I see "AT", etc.  When I
> hit an extra return to get the "AT\n" echoed back, I notice that the modem
> response is paused and I must hit an extra \n to see the "OK".  For all
> these troubles I've tried \n, \r, \n\r (^M^J) in all possible combinations
> but still get the same response.  I can deal with this extra "buffering
> problem" but it gets worse--  when I dial into my ISP, I notice that the
> modem responds in chunks of at max 16 characters before I must hit return
> again.  Ok, so after a dozen extra newlines, I can login and the server
> responds with the IP, DNS, etc.  PPP pops out of term mode and gets stuck
> at "PPp ON>" until it times out.
> 
> I think this is a buffering problem of some sorts.  I tried disabling the
> FIFO buffers on that port (sio flags 0x2, also toggling flags 0x8, quicker
> output interrupt recovery), but I have the same problem.  At least it's
> consistent:
> 
> I tried the modem in both the PnP configuration and the jumpered modes,
> with different IRQs too.  Upgrading to 4.0-RELEASE had the same troubles
> but worse in PnP mode since I could not configure the pnp params with the
> boot -c option.  Back to 3.4-RELEASE and the second modem which had worked
> for at least six months, I installed lose98 to dual-boot, switched the good
> modem to PnP mode during the installation, and whoops!  That modem doesn't
> work in either PnP mode or jumpered, under the exact same configuration I
> had working previously.  I shouldn't have never even touched PnP mode...
> :(
> 
> My guess was that the micro-crap '98 installation may have done something
> to the modem while it was configuring it, but even after resetting the BIOS
> PnP space & doing a fresh '98 install in the jumpered configuration, the
> modem still has the buffering problem.  I even tried resetting to the
> factory defaults with an AT&F&W to no avail.  In non-PnP mode, it should
> ignore '98 settings anyway, right?  It sounds like some sort of buffering
> problem.  I tried booting with fresh GENERICs (3.4 & 4.0) too.
> 
> If this helps, I noticed an error message recently in the PPP log, but I am
> not sure-- it may have been present when the modem was working:
> 
> tun0: Phase: deflink: /dev/cuaa3 doesn't support CD
> 
> Here's a copy of my dmesg when my modem was in non-PnP mode, after it
> stopped working:
> 
> Copyright (c) 1992-1999 FreeBSD Inc.
> Copyright (c) 1982, 1986, 1989, 1991, 1993
> 	The Regents of the University of California. All rights reserved.
> FreeBSD 3.4-RELEASE+ #1: Sun Jun 11 21:02:00 EDT 2000
>     root@kristin.kiwi-computer.com:/usr/src/sys/compile/KRISTIN
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: AMD-K6(tm) 3D+ Processor (400.91-MHz 586-class CPU)
>   Origin = "AuthenticAMD"  Id = 0x591  Stepping = 1
>   Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
>   AMD Features=0x80000800<SYSCALL,3DNow!>
> real memory  = 67108864 (65536K bytes)
> config> pnp 2 0 os enable port0 0x2e8 irq0 10
> config> irq sio3 10
> config> pnp 1 0 os enable port0 0x530 port1 0x388 irq0 12 drq0 1
> config> irq pcm0 12
> config> drq pcm0 1
> config> flags pcm0 0
> config> pnp 1 3 os enable port0 0x220 irq0 9 drq0 0 drq1 7
> config> irq pcm1 9
> config> drq pcm1 0
> config> flags pcm1 0x17
> avail memory = 61542400 (60100K bytes)
> Preloaded elf kernel "kernel" at 0xc038b000.
> Preloaded userconfig_script "/boot/kernel.conf" at 0xc038b09c.
> Probing for devices on PCI bus 0:
> chip0: <VIA 82C597 (Apollo VP3) system controller> rev 0x04 on pci0.0.0
> chip1: <VIA 82C598MVP (Apollo MVP3) PCI-PCI bridge> rev 0x00 on pci0.1.0
> chip2: <VIA 82C586 PCI-ISA bridge> rev 0x47 on pci0.7.0
> ide_pci0: <VIA 82C586x (Apollo) Bus-master IDE controller> rev 0x06 on pci0.7.1
> chip3: <VIA 82C586B ACPI interface> rev 0x10 on pci0.7.3
> Probing for devices on PCI bus 1:
> vga0: <Trident model 9850 VGA-compatible display device> rev 0xf3 int a irq 11 on pci1.0.0
> Probing for PnP devices:
> CSN 1 Vendor ID: CMI0001 [0x0100a90d] Serial 0x01000100 Comp ID: @@@0000 [0x00000000]
> Probing for devices on the ISA bus:
> sc0 on isa
> sc0: VGA color <16 virtual consoles, flags=0x0>
> ed0 not found at 0x280
> fe0 not found at 0x300
> atkbdc0 at 0x60-0x6f on motherboard
> atkbd0 irq 1 on isa
> psm0 not found
> sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
> sio0: type 16550A
> sio1 at 0x2f8-0x2ff irq 3 on isa
> sio1: type 16550A
> sio2: configured irq 5 not in bitmap of probed irqs 0
> sio2 not found at 0x3e8
> sio3: configured irq 10 not in bitmap of probed irqs 0
> sio3 at 0x2e8-0x2ef irq 10 on isa
> sio3: type 16550A
> pcm0 at 0x530 irq 12 drq 1 flags 0x9100 on isa
> mss_attach <mss>0 at 0x530 irq 12 dma 1:1 flags 0x9100
> pcm1 at 0x220 irq 9 drq 0 flags 0x17 on isa
> pca0 on motherboard
> pca0: PC speaker audio driver
> wdc0 at 0x1f0-0x1f7 irq 14 on isa
> wdc0: unit 0 (wd0): <Maxtor 91021U2>
> wd0: 9770MB (20010816 sectors), 19852 cyls, 16 heads, 63 S/T, 512 B/S
> wdc1 at 0x170-0x177 irq 15 on isa
> wdc1: unit 0 (atapi): <ATAPI CDROM/V140M>, removable, accel, dma, iordy
> acd0: drive speed 687 - 8593KB/sec, 128KB cache
> acd0: supported read types: CD-R, CD-RW, CD-DA
> acd0: Audio: play, 255 volume levels
> acd0: Mechanism: ejectable tray
> acd0: Medium: CD-ROM 120mm data disc loaded, unlocked
> fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: 1.44MB 3.5in
> cs0 not found at 0x300
> ie0: unknown board_id: f000
> ie0 not found at 0x300
> ep0 not found at 0x300
> ex0 not found
> le0 not found at 0x300
> lnc0 not probed due to drq conflict with pcm1 at 0
> ze0 not found at 0x300
> zp0 not found at 0x300
> ppc0 at 0x378 irq 7 flags 0xf on isa
> ppc0: Generic chipset (ECP/EPP/PS2/NIBBLE) in ECP+EPP mode (EPP 1.9)
> ppc0: FIFO with 16/16/16 bytes threshold
> lpt0: <generic printer> on ppbus 0
> lpt0: Interrupt-driven port
> ppi0: <generic parallel i/o> on ppbus 0
> plip0: <PLIP network interface> on ppbus 0
> bt0 not found at 0x134
> adv0 not found at 0x330
> aha0 not found at 0x134
> vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
> npx0 on motherboard
> npx0: INT 16 interface
> joy0 at 0x201 on isa
> joy0: joystick
> changing root device to wd0s1a
> 
> Your help and ideas would be greatly appreciated!
> 
> --Rick C. Petty,  aka Snoopy                     rick@kiwi-computer.com
> -----------------------------------------------------------------------
> Principal Architect, KIWI Computer            http://kiwi-computer.com/
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006211613330.46249-100000>