Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2010 15:25:13 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: uplcom(4) does not work on cuaU0 ?
Message-ID:  <201011121525.13324.hselasky@c2i.net>
In-Reply-To: <20101112145849.161e39a8@davenulle.org>
References:  <20101112145849.161e39a8@davenulle.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 12 November 2010 14:58:49 Patrick Lamaiziere wrote:
> (8.1-STABLE/i386)
> 
> Hello,
> 
> Here, if uplcom is attached to cuaU0, the serial connection does not
> work, as far i can see it does not send anything :
> 
> kernel: uplcom_pre_param:
> kernel: uplcom_cfg_param: sc = 0xc7416200
> kernel: uplcom_cfg_param: rate=9600 fmt=0 parity=0 bits=8
> kernel: uplcom_pre_param:
> kernel: uplcom_cfg_set_dtr: onoff = 1
> kernel: uplcom_cfg_set_rts: onoff = 1
> kernel: uplcom_cfg_param: sc = 0xc7416200
> kernel: uplcom_cfg_param: rate=57600 fmt=0 parity=0 bits=8
> 
> that's all
> 
> But if attached to cuaU3, it works fine. The difference is the use
> of an u3g key using cuaU0.
> 
> kernel: ugen0.3: <Prolific Technology Inc.> at usbus0
> kernel: uplcom0: <Prolific Technology Inc. USB-Serial Controller D,
> class 0/0, rev 1.10/3.00, addr 3> on usbus0
> kernel: uplcom_attach: sc = 0xc7417c00
> kernel: uplcom_attach: chiptype: 2303X
> kernel: uplcom_pre_param:
> kernel: uplcom_cfg_set_dtr: onoff = 1
> kernel: uplcom_pre_param:
> kernel: uplcom_intr_callback: actlen = 10
> kernel: uplcom_intr_callback: status = 0x82
> kernel: uplcom_cfg_set_rts: onoff = 1
> kernel: uplcom_cfg_set_break: onoff = 0
> kernel: uplcom_cfg_get_status:
> kernel: uplcom_cfg_param: sc = 0xc7417c00
> kernel: uplcom_cfg_param: rate=9600 fmt=0 parity=0 bits=8
> kernel: uplcom_cfg_param: sc = 0xc7417c00
> kernel: uplcom_cfg_param: rate=57600 fmt=0 parity=0 bits=8
> kernel: uplcom_cfg_get_status:
> kernel: uplcom_cfg_set_dtr: onoff = 1
> kernel: uplcom_cfg_set_dtr: onoff = 0
> kernel: uplcom_cfg_set_rts: onoff = 1
> kernel: uplcom_cfg_set_dtr: onoff = 1
> kernel: uplcom_cfg_set_rts: onoff = 1
> kernel: uplcom_write_callback: actlen = 1
> kernel: uplcom_write_callback: actlen = 1
> kernel: uplcom_write_callback: actlen = 32

Hi,

Maybe the device detection logic in sys/dev/usb/serial/uplcom.c is not 
correct.

Could you dump usbconfig output from your device?

usbconfig -d X.Y dump_device_desc

--HPS



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