From owner-freebsd-usb@FreeBSD.ORG Sat Jun 14 18:16:13 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A0ECBCD2 for ; Sat, 14 Jun 2014 18:16:13 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5AF87238F for ; Sat, 14 Jun 2014 18:16:13 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 48D5B1FE045; Sat, 14 Jun 2014 20:16:12 +0200 (CEST) Message-ID: <539C9181.10304@selasky.org> Date: Sat, 14 Jun 2014 20:16:33 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Matthias Apitz Subject: Re: Fwd: USB to parallel for printer HP LaserJet 4mL References: <20140601130025.GA2255@La-Habana> <538B6693.5010108@selasky.org> <20140601175846.GA2104@La-Habana> <538B6C4F.9050205@selasky.org> <20140602150802.GA1950@La-Habana> <538C9A83.7050606@selasky.org> <20140610054403.GA1589@La-Habana> <539964AB.1030909@selasky.org> <20140613184921.GA1748@La-Habana> <539BEE2E.9050108@selasky.org> <20140614181138.GA1598@La-Habana> In-Reply-To: <20140614181138.GA1598@La-Habana> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2014 18:16:13 -0000 On 06/14/14 20:11, Matthias Apitz wrote: > El día Saturday, June 14, 2014 a las 08:39:42AM +0200, Hans Petter Selasky escribió: > >>> I can not get any use full traffic dump from them. Someone could point >>> me to a working tool for Win7. I know, our list deals with FreeBSD >>> software, but it is some kind of re-engineering why Win7 works with a >>> device and FreeBSD does not :-) >>> >> You might be able to remove "ulpt" driver from the kernel config and >> also "mv -i /boot/kernel/ulpt.ko /boot/kernel/ulpt.ko.old" and run Win7 >> from Virtualbox or a VM and see what happens. Then you can sniff the USB >> traffic in the VM USB host. > > Hi, > This is for administrative reasons not an option in my office and at > home I do not have Win*. > > matthias > Ok, lets try to figure out the: in sys/dev/usb/serial/ulpt.c try to comment out: #if 0 if (sc->sc_fflags == 0) usbd_transfer_start(sc->sc_xfer[ULPT_INTR_DT_RD]); #endif In function: static void ulpt_watchdog(void *arg) { struct ulpt_softc *sc = arg; mtx_assert(&sc->sc_mtx, MA_OWNED); /* * Only read status while the device is not opened, due to * possible hardware or firmware bug in some printers. */ if (sc->sc_fflags == 0) usbd_transfer_start(sc->sc_xfer[ULPT_INTR_DT_RD]); usb_callout_reset(&sc->sc_watchdog, hz, &ulpt_watchdog, sc); } --HPS