Date: Sat, 14 Mar 2009 13:36:50 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: Artyom Mirgorodsky <man@alkar.net> Cc: freebsd-usb@freebsd.org Subject: Re: support for logitech mx610 mouse Message-ID: <200903141336.51769.hselasky@c2i.net> In-Reply-To: <200903141345.36631.man@alkar.net> References: <200903140114.22511.man@email.com.ua> <200903141216.44932.hselasky@c2i.net> <200903141345.36631.man@alkar.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <OHCI root HUB nVidia> at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (= 12Mbps) > pwr=3DON ugen0.1.0: uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.0= 0, > addr 1> ugen1.1: <EHCI root HUB nVidia> at usbus1, cfg=3D0 md=3DHOST spd= =3DHIGH > (480Mbps) pwr=3DON ugen1.1.0: uhub1: <nVidia EHCI root HUB, class 9/0, rev > 2.00/1.00, addr 1> ugen0.2: <USB Receiver Logitech> at usbus0, cfg=3D0 > md=3DHOST spd=3DLOW (1.5Mbps) pwr=3DON ugen0.2.0: ums0: <Logitech USB Rec= eiver, > class 0/0, rev 2.00/42.00, addr 2> > > > usbconfig dump_curr_config_desc > ugen0.2: <USB Receiver Logitech> 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 <RR42.00_B0032> > 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 <no string> > > 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 <no string> > > 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: <Logitech USB Receiver, class 0/0, rev 2.00/42.00, addr 2> on usbu= s0 > uhid1: <Logitech USB Receiver, class 0/0, rev 2.00/42.00, addr 2> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903141336.51769.hselasky>