From owner-freebsd-usb@freebsd.org Thu Nov 12 19:43:47 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 62513A2D174 for ; Thu, 12 Nov 2015 19:43:47 +0000 (UTC) (envelope-from alfred@freebsd.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 4DC8E1604 for ; Thu, 12 Nov 2015 19:43:47 +0000 (UTC) (envelope-from alfred@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4A68DA2D173; Thu, 12 Nov 2015 19:43:47 +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 492E5A2D172 for ; Thu, 12 Nov 2015 19:43:47 +0000 (UTC) (envelope-from alfred@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 32E7B1603 for ; Thu, 12 Nov 2015 19:43:47 +0000 (UTC) (envelope-from alfred@freebsd.org) Received: from AlfredMacbookAir.local (unknown [IPv6:2601:645:8004:7515:240d:167c:ca3f:1d20]) by elvis.mu.org (Postfix) with ESMTPSA id AD7C2345A920; Thu, 12 Nov 2015 11:43:41 -0800 (PST) Subject: Re: usb modem "Can't setup transfer" To: Hans Petter Selasky , usb@freebsd.org References: <5642B7E4.505@freebsd.org> <5642FE24.4050408@selasky.org> <56439C4B.6060407@freebsd.org> <56444E5E.1030706@selasky.org> From: Alfred Perlstein Organization: FreeBSD Message-ID: <5644EBF3.9070605@freebsd.org> Date: Thu, 12 Nov 2015 11:43:47 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56444E5E.1030706@selasky.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 19:43:47 -0000 Hans, Thank you, that allows it to attach and the device nodes appear in /dev/ However I then can not seem to send any AT commands and get a response via either cu -l /dev/ttyU1 or cu -l /dev/ttyU1. Any further steps? Is there a way to virtually share this hardware with you? -Alfred On 11/12/15 12:31 AM, Hans Petter Selasky wrote: > 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 >