From owner-freebsd-usb@FreeBSD.ORG Thu Dec 4 22:18:36 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAE701065676 for ; Thu, 4 Dec 2008 22:18:36 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 5310B8FC0C for ; Thu, 4 Dec 2008 22:18:36 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=P3SC899gXHkOLDnkTYxLZw==:17 a=Kzi9jfM1gJ_jg7_zSqsA:9 a=9rninjGaosjlm-v0ZH7BcJp1VdgA:4 a=LY0hPdMaydYA:10 Received: from [62.113.133.240] (account mc467741@c2i.net [62.113.133.240] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 418284293; Thu, 04 Dec 2008 23:18:34 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, gabor@sentex.net Date: Thu, 4 Dec 2008 23:20:47 +0100 User-Agent: KMail/1.9.7 References: <200812041853.35539.hselasky@c2i.net> <49382D74.1030907@sentex.net> <49385176.3070104@sentex.net> In-Reply-To: <49385176.3070104@sentex.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812042320.48818.hselasky@c2i.net> Cc: Subject: Re: ucom serial bug? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 22:18:36 -0000 On Thursday 04 December 2008, Gabor wrote: > Some more twists to this. As I said if I kill off our program and restart > it, it never sees carrier unless the module was reloaded. However, if I > unplug the serial cable from the Windows box and re-plug it, carrier goes > and comes back as expected but only as long as our software is running. If > our software is not running and we unplug the serial cable from the Windows > box, carrier does not come back when we start up our program with the cable > plugged back in. Maybe you can try setting the MSR to zero when the modem is opened in the uftdi.c driver file. In USB2 there is also a sysctl for UFTDI debugging which you can check. --HPS