From owner-freebsd-usb@FreeBSD.ORG Sat Mar 14 12:11:45 2009 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 F19B01065672 for ; Sat, 14 Mar 2009 12:11:45 +0000 (UTC) (envelope-from man@alkar.net) Received: from mail.alkar.net (mail.alkar.net [195.248.191.95]) by mx1.freebsd.org (Postfix) with ESMTP id 382B98FC08 for ; Sat, 14 Mar 2009 12:11:44 +0000 (UTC) (envelope-from man@alkar.net) Received: from [94.179.19.200] (account man@email.com.ua HELO home.alkar.net) by mail.alkar.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1902605863; Sat, 14 Mar 2009 13:41:42 +0200 Received-SPF: none receiver=mail.alkar.net; client-ip=94.179.19.200; envelope-from=man@alkar.net From: Artyom Mirgorodsky Organization: Vega To: Hans Petter Selasky Date: Sat, 14 Mar 2009 13:45:36 +0200 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.1; i386; svn-915845; 2009-01-20) References: <200903140114.22511.man@email.com.ua> <200903141313.53345.man@email.com.ua> <200903141216.44932.hselasky@c2i.net> In-Reply-To: <200903141216.44932.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200903141345.36631.man@alkar.net> X-Mailman-Approved-At: Sat, 14 Mar 2009 12:23:21 +0000 Cc: freebsd-usb@freebsd.org Subject: Re: support for logitech mx610 mouse 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: Sat, 14 Mar 2009 12:11:46 -0000 > The format is: > > /dev/usb/X.Y.Z > > X is USB BUS > Y is device index > Z is endpoint & 0xF > > The the usbconfig's dump_curr_config_desc which endpoint belongs to your > driver. Also see the show_ifdrv command to see which driver is connected to > which interface. I understand that. But I can't read from this devices does. usbconfig show_ifdrv ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.1.0: uhub0: ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen1.1.0: uhub1: ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen0.2.0: ums0: usbconfig dump_curr_config_desc ugen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr= ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x003b bNumInterfaces = 0x0002 bConfigurationValue = 0x0001 iConfiguration = 0x0004 bmAttributes = 0x00a0 bMaxPower = 0x0031 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x43, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x4f, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 I'm unload ums and reload uhid then try read again: uhid0: on usbus0 uhid1: on usbus0 cat /dev/usb/0.2.1 ^C cat /dev/usb/0.2.2 ^C cat /dev/uhid0 0Oåý_üoüoýþoÿoþ@ÿOþ_û_þOûOø?õ/ÝëïÿèÿÿPÿ ÿÐÿàÿðÿÀÿ àÿÿ P ``pð`P@ ÿÿÿïÿÿßÿÿÿÿ P ÿ/þ?ý?üOòøOö?õ/ôõö÷ùúûÿÿðÿàÿÐÿÐÿÀÿÐÿ°ÿ ÿÀÿÀÿ°ÿ ÿ cat /dev/uhid1 ^C Only mouse moving produce any data from uhid.