Hello misc@,

I have a problem with uplcom(4). Whenever I connect to a remote terminal with "cu -l /dev/ttyU0", it hangs after a few seconds (usually under 2 minutes).

I tried various settings and still have the same issue :
- using /dev/cuaU0
- setting speed 9600 or 19200
- connecting to a Soekris Net5501 or a Cisco router
- using OpenBSD 4.6, 4.7 and -current

However the adapter works like a charm from a MS Windows workstation.

Here is what a typical session looks like :
------------------------------------------------------------------------
# cu -l /dev/ttyU0 -s 19200
Connected

OpenBSD/i386 (soekris.my.domain) (tty00)

login:
        [] <= when it hangs the cursor stands here (looks like a \n\t)
------------------------------------------------------------------------

I can't stop cu without killing its process.

/var/log/aculog tells :
------------------------------------------------------------------------
root (Sun Aug 29 21:01:37 2010) <cu19200, /dev/ttyU0> call completed
root (Sun Aug 29 21:14:41 2010) <cu19200, /dev/ttyU0> call completed
------------------------------------------------------------------------

And ps looks like :
------------------------------------------------------------------------
[...]
22347 p0  Is      0:00.01 -ksh (ksh)
27473 p0  I+      0:00.01 cu -l /dev/ttyU0 -s 19200
 5241 p0  I+      0:00.00 cu -l /dev/ttyU0 -s 19200
[...]
------------------------------------------------------------------------

I tried to enable debugging in /usr/src/sys/dev/usb/uplcom.c but it is not really helping.

Is there anything I can try to track that bug ?

Thank you in advance,
Denis


P.S. : Here is my dmesg :
------------------------------------------------------------------------
OpenBSD 4.8-current (GENERIC) #3: Sun Aug 29 20:49:25 CEST 2010
    r...@kreator.my.domain:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.50GHz ("GenuineIntel" 686-class) 2.50 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,

DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID,xTPR
real mem  = 786919424 (750MB)
avail mem = 764088320 (728MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/29/04, BIOS32 rev. 0 @ 0xfd4a0, SMBIOS rev. 2.31 @ 0xd8010 (40 entries)
bios0: vendor Phoenix Technologies LTD version "V1.15" date 01/29/04
bios0: Acer TravelMate 240
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP BOOT
acpi0: wakeup devices LID_(S3) LANC(S5) MODM(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1
acpitz0 at acpi0: critical temperature 85 degC
acpitz1 at acpi0: critical temperature 80 degC
acpibat0 at acpi0: BAT0 model "Bat 8Cell" serial 236 type Lion oem "Acer"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLP2
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: CRT_
acpivout1 at acpivideo0: LCD_
acpivout2 at acpivideo0: TVO_
bios0: MP signature mismatch (504d4350 vs 0)
bios0: ROM list: 0xc0000/0xc800 0xcc800/0x1000 0xd8000/0x4000! 0xdc000/0x4000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82855GM Host" rev 0x02
"Intel 82855GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
"Intel 82855GM Config" rev 0x02 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 "Intel 82855GM Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe8000000, size 0x8000000
inteldrm0 at vga1: irq 5
drm0 at inteldrm0
"Intel 82855GM Video" rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 5
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x03: irq 3
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 4
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83
pci1 at ppb0 bus 2
cbb0 at pci1 dev 4 function 0 "TI PCI1520 CardBus" rev 0x01: irq 10
cbb1 at pci1 dev 4 function 1 "TI PCI1520 CardBus" rev 0x01: irq 10
rl0 at pci1 dev 10 function 0 "Realtek 8139" rev 0x10: irq 11, address 00:0a:e4: 03:87:b4
rlphy0 at rl0 phy 0: RTL internal PHY
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x40
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x10, lattimer 0x40
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <IC25N020ATCS04-0>
wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QSI, CDRW/DVD SBW-242, UX10> ATAPI 5/cdrom remova ble
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x03: irq 10
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC2700CL2.5
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 10, ICH4 AC9 7
ac97: codec id 0x43525934 (Cirrus Logic CS4299 rev 4)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at auich0
"Intel 82801DB Modem" rev 0x03 at pci0 dev 31 function 6 not configured
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask edfd netmask edfd ttymask ffff
mtrr: Pentium Pro MTRR support
uplcom0 at uhub2 port 1 "Prolific Technology Inc. USB-Serial Controller" rev 1.1
uplcom attach: sc=0xd195d300
uplcom_attach: chiptype 2303X
uplcom: in=0x83 out=0x2 intr=0x81
ucom0 at uplcom0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
uplcom_open: sc=0xd195d300
uplcom_get_status:
uplcom_param: sc=0xd195d300
uplcom_set_line_coding: rate=9600 fmt=0 parity=0 bits=8
uplcom0: uplcom status = 83
uplcom_get_status:
uplcom_dtr: onoff=1
uplcom_rts: onoff=1
uplcom_param: sc=0xd195d300
uplcom_set_line_coding: rate=19200 fmt=0 parity=0 bits=8
uplcom_dtr: onoff=0
uplcom_rts: onoff=0
uplcom_close: close
------------------------------------------------------------------------

Reply via email to