From owner-freebsd-usb@freebsd.org Thu Nov 12 08:29:46 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9F30A2C326 for ; Thu, 12 Nov 2015 08:29:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D49DB1C45 for ; Thu, 12 Nov 2015 08:29:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id D0CF6A2C323; Thu, 12 Nov 2015 08:29:46 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0697A2C322 for ; Thu, 12 Nov 2015 08:29:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 962E11C42; Thu, 12 Nov 2015 08:29:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9BBD21FE022; Thu, 12 Nov 2015 09:29:43 +0100 (CET) Subject: Re: usb modem "Can't setup transfer" To: Alfred Perlstein , usb@freebsd.org References: <5642B7E4.505@freebsd.org> <5642FE24.4050408@selasky.org> <56439C4B.6060407@freebsd.org> From: Hans Petter Selasky Message-ID: <56444E5E.1030706@selasky.org> Date: Thu, 12 Nov 2015 09:31:26 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56439C4B.6060407@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 08:29:47 -0000 On 11/11/15 20:51, Alfred Perlstein wrote: > Hi, The device is very special in that it uses an interrupt type of endpoint for receiving the data. > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0084 > bmAttributes = 0x0003 > wMaxPacketSize = 0x003f > bInterval = 0x0002 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > In umodem.c you might want to change the USB matching filter to accept interrupt endpoints: > [UMODEM_BULK_RD] = { > .type = UE_BULK, // change this to UE_BULK_INTR > .endpoint = UE_ADDR_ANY, > .direction = UE_DIR_RX, This change will break other modem drivers, but at least it will give some clues if it works or not. --HPS