Nokia CA-42 cable

Gleb Smirnoff glebius at FreeBSD.org
Sun Feb 12 01:48:02 PST 2006


  Colleagues,

  recently I have purchased a Nokia CA-42 cable, that is
used to connect cellular phone. It has the following IDs:

	vendor 0x0421 product 0x0802

I've looked for this IDs in NetBSD and Linux and failed
to find them there. In Linux there are IDs for CA-42 cable,
but they are different. However, I've found[1] that this
cable is working in Linux if IDs are overriden:

	modprobe usbserial vendor=0x0421 product=0x0802

So I have tried to do same in FreeBSD (patch attached)
but failed. Here goes debug data when I plug cable in:

usbd_new_device bus=0xc1eee000 port=1 depth=1 speed=2
usbd_new_device: adding unit addr=2, rev=110, class=2, subclass=0, protocol=0, maxpacket=8, len=18, speed=2
usbd_new_device: new dev (addr 2), dev=0xc23b8100, parent=0xc1ef2000
usbd_probe_and_attach: trying device specific drivers
ucom0: <vendor 0x0421 product 0x0802, class 2/0, rev 1.10/1.00, addr 2> on uhub0
ucom0: vendor 0x0421 product 0x0802, rev 1.10/1.00, addr 2
uplcom attach: sc = 0xc2069800
uplcom_attach: chiptype 2303
usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=150
usbd_set_config_index: set config 1
usbd_do_request: status = 0x0000
ucom0: uplcom_reset: STALLED
ucom0: reset failed: NOMEM
device_attach: ucom0 attach returned 6
usbd_probe_and_attach: no device specific driver found
usbd_probe_and_attach: looping over 1 configurations
usbd_set_config_index: free old config
usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=150
usbd_set_config_index: set config 1
usbd_probe_and_attach: no interface drivers found
ucom0: <vendor 0x0421 product 0x0802, class 2/0, rev 1.10/1.00, addr 2> on uhub0
ucom0: vendor 0x0421 product 0x0802, rev 1.10/1.00, addr 2
uplcom attach: sc = 0xc239b900
uplcom_attach: chiptype 2303
usbd_set_config_index: free old config
usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=150
usbd_set_config_index: set config 1
usbd_do_request: status = 0x0000
ucom0: uplcom_reset: STALLED
ucom0: reset failed: NOMEM
device_attach: ucom0 attach returned 6
usbd_probe_and_attach: generic attach failed

I'm lame in USB and I can't understand why Linux supports this device
w/o any additional modifications, just recognising ID, but our driver
doesn't. I'm seeking for advice, that will help me get this device
working.

[1] http://linux.seindal.dk/item97.html
    http://www.qbik.ch/usb/devices/showdev.php?id=3251

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-usb mailing list