On Sat, 21 Jul 2007, Ron Gage wrote: > Greetings: > > I am in the process of (trying to) write a device driver for a Xyloc USB > Lock and am having a bit of a problem. You see, the device makes > extensive use of Function 0019 (Vendor Endpoint).
What do you mean by "Function 0019"? What does it have to do with a function and what is the 0019? > As near as I can tell > from searching on Google, this is not a "standard" function. In fact, > one item I found on Google hints that this is a Windows only function > and can be safely ignored. This seems quite unlikely as this device > makes extensive use of this function. > > In short, I need to be able to send function = 0019, requesttype = 00, > brequest = 0x81. SetupPacket bytes: 00 81 80 00 00 00 00 00, DIR = Host > to device. As far as I can tell, that is an invalid setup packet. bRequestType = 0x00 means OUT, Standard type, and device recipient. But 0x81 is not a standard bRequest value. If you wanted it to be a vendor-specific type with an endpoint recipient then bRequestType would have to be 0x42. > How do I know this is important to the device, because this > packet is what causes the device to return it's data. In fact, once the > initial setup is done (select-configuration and what not), this is the > only type of packet that seems to be sent - function 19. > > I have looked through with both libusb and within the kernel code and > there doesn't seem to be a way to send a custom function type that I can > see without coming up with a kernel patch of some sort. What is a "custom function type"? It sounded like you simply want to send a particular packet. You can do that with usb_control_msg() or the equivalent. > Can someone offer a hint (if one exists) for sending a custom function > code to a device. Before you mentioned a custom function _type_; now you mention a custom function _code_. Which do you want? And what is it? Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users