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=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Ь?У/щКОЪХЪЪPЪ═ЪпЪЮЪПЪюЪ ЮЪЪ > P ``pП`P@ ЪЪЪОЪЪъЪЪЪЪ P > Ъ/Ч?Щ?ЭOРЬOЖ?У/ТУЖВЫЗШЪЪПЪЮЪпЪпЪюЪпЪ╟Ъ═ЪюЪюЪ╟Ъ═Ъ cat /dev/uhid1 > ^C > > Only mouse moving produce any data from uhid.
Can you get this data dumped into HEX ? --HPS _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "[email protected]"
