Date: Sat, 14 Mar 2009 13:45:36 +0200 From: Artyom Mirgorodsky <man@alkar.net> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: support for logitech mx610 mouse Message-ID: <200903141345.36631.man@alkar.net> In-Reply-To: <200903141216.44932.hselasky@c2i.net> References: <200903140114.22511.man@email.com.ua> <200903141313.53345.man@email.com.ua> <200903141216.44932.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.1.0: uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> ugen1.1: <EHCI root HUB nVidia> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON 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=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen0.2.0: ums0: <Logitech USB Receiver, class 0/0, rev 2.00/42.00, addr 2> usbconfig dump_curr_config_desc ugen0.2: <USB Receiver Logitech> 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 <RR42.00_B0032> bmAttributes = 0x00a0 bMaxPower = 0x0031 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0000 <no string> 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 <no string> 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: <Logitech USB Receiver, class 0/0, rev 2.00/42.00, addr 2> on usbus0 uhid1: <Logitech USB Receiver, class 0/0, rev 2.00/42.00, addr 2> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903141345.36631.man>