From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 6 13:42:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A15316A4CE for ; Wed, 6 Oct 2004 13:42:21 +0000 (GMT) Received: from hak.cnd.mcgill.ca (hak.cnd.McGill.CA [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE56B43D4C for ; Wed, 6 Oct 2004 13:42:20 +0000 (GMT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i96Dmo1M091732; Wed, 6 Oct 2004 09:48:50 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i96Dmn5h091731; Wed, 6 Oct 2004 09:48:49 -0400 (EDT) Date: Wed, 6 Oct 2004 09:48:49 -0400 From: Mathew Kanner To: Niki Denev Message-ID: <20041006134849.GA87467@cnd.mcgill.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.62 X-Spam-Checker-Version: SpamAssassin 2.62 (2004-01-11) on hak.cnd.mcgill.ca cc: hackers@freebsd.org Subject: Re: attaching ugen(4) on multi interface USB devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 13:42:21 -0000 On Oct 06, Niki Denev wrote: > The last 1-2 days i've been trying to make some userspace OBEX utilities to > work with a USB based Nokia GSM phone and doing this i discovered something > that confuses me a little: > The phone in question is Nokia 6230 and it has an USB interface. > The phone has 11 interface descriptors, > 2 of them are used for the Modem and CM over data. > Judging from the windows drivers it seems that four of the other interfaces > are OBEX compatible. > But if i kldload umodem and plug the phone it detects only one ucom(4). > and if i plug the phone without any u* modules loaded the kernel attaches > ugen0 only. > >From what i understand it attaches the ugen0 using the info in the first > interface descriptor in the device. > Wouldn't it be more usefull for the kernel to attach ugen for every unknown > interface in a device. > For example when attaching the phone with umodem loaded, i will get > the ucom(4) device and the other unrecognised interfaces will show up as > ugens ? > What do you think about that? > > > P.S.: anyone know some good way to list the attached usb devices beyond > usbdevs? > It seems that the information that can be gathered from usbdevs is very > limited. For example 'lsusb' in linux can show much more info. What do you > think about that too? > > > Thanks in advance for any info and/or flames :) I seem to recall a problem with ugen that it doesn't discover endpoints on alt-interfaces. I've posted patches to this mailing list to work around the problem. --Mat -- Canada is a country whose main exports are hockey players and cold fronts. Our main imports are baseball players and acid rain. - Pierre Elliott Trudeau