From owner-freebsd-usb@FreeBSD.ORG Sat Mar 14 12:34:23 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 DF7FC1065672 for ; Sat, 14 Mar 2009 12:34:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.swipnet.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 4D6598FC12 for ; Sat, 14 Mar 2009 12:34:22 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=93AayTmb9UcA:10 a=YFK24tF_9smPnxU2_EYA:9 a=il6rH8Bi_r-BnHBo11AmlZfLykAA:4 a=LY0hPdMaydYA:10 Received: from [193.217.167.198] (account mc467741@c2i.net HELO [10.0.0.188]) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 463400778; Sat, 14 Mar 2009 13:34:21 +0100 From: Hans Petter Selasky To: Artyom Mirgorodsky Date: Sat, 14 Mar 2009 13:36:50 +0100 User-Agent: KMail/1.9.7 References: <200903140114.22511.man@email.com.ua> <200903141216.44932.hselasky@c2i.net> <200903141345.36631.man@alkar.net> In-Reply-To: <200903141345.36631.man@alkar.net> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200903141336.51769.hselasky@c2i.net> 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:34:24 -0000 On Saturday 14 March 2009, Artyom Mirgorodsky wrote: > > 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=3D0 md=3DHOST spd=3DFULL (= 12Mbps) > pwr=3DON ugen0.1.0: uhub0: addr 1> ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd= =3DHIGH > (480Mbps) pwr=3DON ugen1.1.0: uhub1: 2.00/1.00, addr 1> ugen0.2: at usbus0, cfg=3D0 > md=3DHOST spd=3DLOW (1.5Mbps) pwr=3DON ugen0.2.0: ums0: class 0/0, rev 2.00/42.00, addr 2> > > > usbconfig dump_curr_config_desc > ugen0.2: at usbus0, cfg=3D0 md=3DHOST spd=3DLOW (= 1.5Mbps) > pwr=3D ON > > > Configuration index 0 > > bLength =3D 0x0009 > bDescriptorType =3D 0x0002 > wTotalLength =3D 0x003b > bNumInterfaces =3D 0x0002 > bConfigurationValue =3D 0x0001 > iConfiguration =3D 0x0004 > bmAttributes =3D 0x00a0 > bMaxPower =3D 0x0031 > > Interface 0 > bLength =3D 0x0009 > bDescriptorType =3D 0x0004 > bInterfaceNumber =3D 0x0000 > bAlternateSetting =3D 0x0000 > bNumEndpoints =3D 0x0001 > bInterfaceClass =3D 0x0003 > bInterfaceSubClass =3D 0x0001 > bInterfaceProtocol =3D 0x0002 > iInterface =3D 0x0000 > > Additional Descriptor > > bLength =3D 0x09 > bDescriptorType =3D 0x21 > bDescriptorSubType =3D 0x11 > RAW dump: > 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x43, > 0x08 | 0x00 > > Endpoint 0 > bLength =3D 0x0007 > bDescriptorType =3D 0x0005 > bEndpointAddress =3D 0x0081 > bmAttributes =3D 0x0003 > wMaxPacketSize =3D 0x0008 > bInterval =3D 0x000a > bRefresh =3D 0x0000 > bSynchAddress =3D 0x0000 > > > Interface 1 > bLength =3D 0x0009 > bDescriptorType =3D 0x0004 > bInterfaceNumber =3D 0x0001 > bAlternateSetting =3D 0x0000 > bNumEndpoints =3D 0x0001 > bInterfaceClass =3D 0x0003 > bInterfaceSubClass =3D 0x0000 > bInterfaceProtocol =3D 0x0000 > iInterface =3D 0x0000 > > Additional Descriptor > > bLength =3D 0x09 > bDescriptorType =3D 0x21 > bDescriptorSubType =3D 0x11 > RAW dump: > 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x4f, > 0x08 | 0x00 > > Endpoint 0 > bLength =3D 0x0007 > bDescriptorType =3D 0x0005 > bEndpointAddress =3D 0x0082 > bmAttributes =3D 0x0003 > wMaxPacketSize =3D 0x0008 > bInterval =3D 0x000a > bRefresh =3D 0x0000 > bSynchAddress =3D 0x0000 > > I'm unload ums and reload uhid then try read again: > uhid0: on usbu= s0 > uhid1: on usbu= s0 > > cat /dev/usb/0.2.1 > ^C > cat /dev/usb/0.2.2 > ^C > > cat /dev/uhid0 > 0O=E5=FD_=FCo=FCo=FD=FEo=FFo=FE@=FFO=FE_=FB_=FEO=FBO=F8?=F5/=DD=EB=EF=FF= =E8=FF=FFP=FF=A0=FF=D0=FF=E0=FF=F0=FF=C0=FF =E0=FF=FF > P ``p=F0`P@ =FF=FF=FF=EF=FF=FF=DF=FF=FF=FF=FF P =20 > =FF/=FE?=FD?=FCO=F2=F8O=F6?=F5/=F4=F5=F6=F7=F9=FA=FB=FF=FF=F0=FF=E0=FF=D0= =FF=D0=FF=C0=FF=D0=FF=B0=FF=A0=FF=C0=FF=C0=FF=B0=FF=A0=FF cat /dev/uhid1 > ^C > > Only mouse moving produce any data from uhid. Can you get this data dumped into HEX ? =2D-HPS