Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2004 14:56:25 -0700
From:      "Jacob S. Barrett" <jbarrett@amduat.net>
To:        freebsd-current@freebsd.org
Subject:   USB-Serial Adapter (PL2303) Port Speed
Message-ID:  <200406021456.25378.jbarrett@amduat.net>

next in thread | raw e-mail | index | archive | help
I am attempting to use a PL2303 cable to my cell phone as a modem.  All works 
fine under Windows at port speed of 115200.  It works fine under FreeBSD at 
19200, but nothing higher.  When I set a higher port speed, 38400, 57600 or 
115200, the ppp chat session times out on the first AT command.  I have done 
some googling and found that others are using the PL2303 at 115200 in FreeBSD 
so I am wondering if I have done something wrong or if it is currently 
broken.  Is there any configuration that needs to be done on the uplcom 
driver to get it to work at higher speeds?  I know that is possible that the 
problem insn't with the cable but with the phone, but the fact remains that 
it works under Windows (2K and XP), so there is something different on 
FreeBSD.  I haven't had a chance to test under Linux yet.  I see that the 
uplcom driver checks for a debug OID to see if it should do debugging, but I 
can't find the OID that it is looking for in sysctl.

uname:
FreeBSD osiris.amduat.net 5.2-CURRENT FreeBSD 5.2-CURRENT #9: Fri May 28 
08:01:20 PDT 2004     root@osiris.amduat.net:/usr/obj/usr/src/sys/OSIRIS  
i386

dmesg:
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.2-CURRENT #9: Fri May 28 08:01:20 PDT 2004
    root@osiris.amduat.net:/usr/obj/usr/src/sys/OSIRIS
Preloaded elf kernel "/boot/kernel/kernel" at 0xc08fa000.
Preloaded elf module "/boot/kernel/miibus.ko" at 0xc08fa1cc.
Preloaded elf module "/boot/kernel/if_wi.ko" at 0xc08fa278.
Preloaded elf module "/boot/kernel/wlan.ko" at 0xc08fa324.
Preloaded elf module "/boot/kernel/rc4.ko" at 0xc08fa3d0.
Preloaded elf module "/boot/kernel/if_xl.ko" at 0xc08fa478.
Preloaded elf module "/boot/kernel/snd_maestro3.ko" at 0xc08fa524.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc08fa5d8.
Preloaded elf module "/boot/kernel/usb.ko" at 0xc08fa684.
Preloaded elf module "/boot/kernel/ugen.ko" at 0xc08fa72c.
Preloaded elf module "/boot/kernel/uhid.ko" at 0xc08fa7d8.
Preloaded elf module "/boot/kernel/ukbd.ko" at 0xc08fa884.
Preloaded elf module "/boot/kernel/ulpt.ko" at 0xc08fa930.
Preloaded elf module "/boot/kernel/ums.ko" at 0xc08fa9dc.
Preloaded elf module "/boot/kernel/umass.ko" at 0xc08faa84.
Preloaded elf module "/boot/kernel/cam.ko" at 0xc08fab30.
Preloaded elf module "/boot/kernel/agp.ko" at 0xc08fabd8.
Preloaded elf module "/boot/kernel/random.ko" at 0xc08fac80.
Preloaded elf module "/boot/kernel/speaker.ko" at 0xc08fad2c.
Preloaded elf module "/boot/kernel/acpi_video.ko" at 0xc08fadd8.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc08fae88.
Preloaded elf module "/boot/kernel/aio.ko" at 0xc08faf34.
Preloaded elf module "/boot/kernel/fdc.ko" at 0xc08fafdc.
Preloaded elf module "/boot/kernel/smbios.ko" at 0xc08fb084.
Preloaded elf module "/boot/kernel/intpm.ko" at 0xc08fb130.
Preloaded elf module "/boot/kernel/cbb.ko" at 0xc08fb1dc.
Preloaded elf module "/boot/kernel/exca.ko" at 0xc08fb284.
Preloaded elf module "/boot/kernel/pccard.ko" at 0xc08fb330.
Preloaded elf module "/boot/kernel/cardbus.ko" at 0xc08fb3dc.
Preloaded elf module "/boot/kernel/ppbus.ko" at 0xc08fb488.
Preloaded elf module "/boot/kernel/lpt.ko" at 0xc08fb534.
Preloaded elf module "/boot/kernel/uplcom.ko" at 0xc08fb5dc.
Preloaded elf module "/boot/kernel/ucom.ko" at 0xc08fb688.
Preloaded elf module "/boot/kernel/firewire.ko" at 0xc08fb734.
link_elf: symbol ppb_request_bus undefined
KLD file lpt.ko - could not finalize loading
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (848.15-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536780800 (511 MB)
avail memory = 515522560 (491 MB)
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL CPi R  > on motherboard
acpi0: [GIANT-LOCKED]
pcibios: BIOS version 2.10
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU (2 Cx states)> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_cmbat1: <Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 31 INTD is routed to irq 10
agp0: <Intel 82815 (i815 GMCH) host to PCI bridge> mem 0xe4000000-0xe7ffffff 
at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib2: slot 3 INTA is routed to irq 5
pcib2: slot 6 INTA is routed to irq 10
pcib2: slot 6 INTA is routed to irq 10
pcib2: slot 15 INTA is routed to irq 10
pcm0: <ESS Technology Maestro3> port 0xec00-0xecff mem 0xf8ffe000-0xf8ffffff 
irq 5 at device 3.0 on pci2
pcm0: failed: rid 0x10 is ioport, requested 3
pcm0: [GIANT-LOCKED]
pcm0: <SigmaTel STAC9721/23 AC97 Codec>
xl0: <3Com 3c556 Fast Etherlink XL> port 0xe800-0xe8ff mem 
0xf8ffd800-0xf8ffd87f,0xf8ffdc00-0xf8ffdc7f irq 10 at device 6.0 on pci2
miibus0: <MII bus> on xl0
tdkphy0: <TDK 78Q2120 media interface> on miibus0
tdkphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:01:03:87:0b:fd
xl0: [GIANT-LOCKED]
pci2: <simple comms> at device 6.1 (no driver attached)
cbb0: <TI4451 PCI-CardBus Bridge> at device 15.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pcib2: slot 15 INTA is routed to irq 10
cbb1: <TI4451 PCI-CardBus Bridge> at device 15.1 on pci2
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pcib2: slot 15 INTA is routed to irq 10
fwohci0: <Texas Instruments PCI4451> mem 
0xf8ff8000-0xf8ffbfff,0xf8ffc800-0xf8ffcfff irq 10 at device 15.2 on pci2
fwohci0: [GIANT-LOCKED]
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 47:4f:c0:00:38:20:c4:01
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port 
0xbfa0-0xbfaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xdce0-0xdcff irq 
10 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ums0: Logitech Inc. iFeel Mouse, rev 1.00/1.01, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
speaker0 port 0x67,0x65,0x63,0x61 on acpi0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 
0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
acpi_video0: <ACPI video extension> on acpi0
smbios0: <System Management BIOS> at iomem 0xf6ed0-0xf6eee on motherboard
smbios0: Version: 2.03
pmtimer0 on isa0
orm0: <Option ROM> at iomem 0xc0000-0xcffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
Timecounter "TSC" frequency 848145579 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 19077MB <IC25N020ATCS04-0> [38760/16/63] at ata0-master UDMA100
acd0: DVDROM <TOSHIBA DVD-ROM SD-C2502> at ata0-slave UDMA33
Mounting root from ufs:/dev/ad0s1a
vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570 
(3.2.x mvm) $
vmmon: Module vmmon: initialized
vmnet1: Ethernet address: 00:bd:5a:17:00:01
xl0: promiscuous mode enabled
vmnet1: promiscuous mode enabled
drm0: <ATI Rage 128 Mobility MF (AGP)> port 0xcc00-0xccff mem 
0xfcffc000-0xfcffffff,0xe8000000-0xebffffff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xe4000000 64MB
info: [drm] Initialized r128 2.5.0 20030725 on minor 0
ucom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 
1.10/2.02, addr 3
ucom0: at uhub0 port 2 (addr 3) disconnected

ppp.log:
Jun  2 14:36:15 osiris ppp[1946]: Phase: Using interface: tun0
Jun  2 14:36:15 osiris ppp[1946]: Phase: deflink: Created in closed state
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: default: ident user-ppp 
VERSION (built COMPILATIONDATE)
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: default: set 
device /dev/cuaa1
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: default: set speed 115200
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: default: set dial ABORT BUSY 
ABORT NO\sCARRIER TIMEOUT 5            "" AT OK-AT-OK ATE1Q0 OK \dATDT\T 
TIMEOUT 40 CONNECT
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: default: set timeout 180
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: default: enable dns
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set cd off
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set ctsrts on
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set speed 115200
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set dial ABORT BUSY ABORT 
NO\sCARRIER TIMEOUT 5            "" AT OK-AT-OK AT+IPR=115200 OK AT$QCMDR=3 
OK AT$QCQNC=0            OK AT+CRM=1 OK ATE1Q0V1 OK \dATDT\T TIMEOUT 40 
CONNECT
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set device /dev/ucom0
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set phone #777
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set authname ****
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set authkey ***
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: set ifaddr 0 0
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: add default HISADDR
Jun  2 14:36:15 osiris ppp[1946]: tun0: Command: x1: disable ipv6
Jun  2 14:36:15 osiris ppp[1946]: tun0: Phase: PPP Started (foreground mode).
Jun  2 14:36:15 osiris ppp[1946]: tun0: Phase: bundle: Establish
Jun  2 14:36:15 osiris ppp[1946]: tun0: Phase: deflink: closed -> opening
Jun  2 14:36:15 osiris ppp[1946]: tun0: Phase: deflink: Connected!
Jun  2 14:36:15 osiris ppp[1946]: tun0: Phase: deflink: opening -> dial
Jun  2 14:36:15 osiris ppp[1946]: tun0: Chat: Phone: #777
Jun  2 14:36:15 osiris ppp[1946]: tun0: Chat: deflink: Dial attempt 1 of 1
Jun  2 14:36:15 osiris ppp[1946]: tun0: Chat: Send: AT^M
Jun  2 14:36:15 osiris ppp[1946]: tun0: Chat: Expect(5): OK
Jun  2 14:36:20 osiris ppp[1946]: tun0: Chat: Expect timeout
Jun  2 14:36:20 osiris ppp[1946]: tun0: Chat: Send: AT^M
Jun  2 14:36:20 osiris ppp[1946]: tun0: Chat: Expect(5): OK
Jun  2 14:36:25 osiris ppp[1946]: tun0: Chat: Expect timeout
Jun  2 14:36:25 osiris ppp[1946]: tun0: Warning: Chat script failed
Jun  2 14:36:25 osiris ppp[1946]: tun0: Phase: deflink: dial -> hangup
Jun  2 14:36:25 osiris ppp[1946]: tun0: Warning: deflink: Unable to set 
physical to speed 0
Jun  2 14:36:25 osiris ppp[1946]: tun0: Phase: deflink: Disconnected!
Jun  2 14:36:25 osiris ppp[1946]: tun0: Warning: deflink: Unable to set 
physical to speed 0
Jun  2 14:36:26 osiris ppp[1946]: tun0: Phase: deflink: Connect time: 11 secs: 
0 octets in, 0 octets out
Jun  2 14:36:26 osiris ppp[1946]: tun0: Phase: deflink: 0 packets in, 0 
packets out
Jun  2 14:36:26 osiris ppp[1946]: tun0: Phase:  total 0 bytes/sec, peak 0 
bytes/sec on Wed Jun  2 14:36:15 2004
Jun  2 14:36:26 osiris ppp[1946]: tun0: Phase: deflink: hangup -> closed
Jun  2 14:36:27 osiris ppp[1946]: tun0: Phase: bundle: Dead
Jun  2 14:36:27 osiris ppp[1946]: tun0: Phase: PPP Terminated (normal).

-- 
Jacob S. Barrett
jbarrett@amduat.net
www.amduat.net

"I don't suffer from insanity, I enjoy every minute of it."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406021456.25378.jbarrett>