<div dir="ltr">Hi all,<br><br>I want to send data to an USB device, I tried the following method, but I always got the TIME_OUT error message.<br><br>Status = UsbIo->UsbSyncInterruptTransfer (UsbIo, 0x01, (VOID *)DataBuffer,<br><div>                                         &DataLength, 100, &TransferStatus);</div><div><br></div><div>I've read the source code for mouse and keyboard drivers, but both of them receive data from the device and I want to send data to the device.<br></div><div>Would you please guide me how I can send/ data from a USB device?</div><div><br></div><div>Following is the output of `lsusb` related to the qemu virtual U2F device that I want to communicate with.</div><div><br></div><div>Bus 002 Device 002: ID 46f4:0005<br>Device Descriptor:<br>  bLength                18<br>  bDescriptorType         1<br>  bcdUSB               1.00<br>  bDeviceClass            0 (Defined at Interface level)<br>  bDeviceSubClass         0<br>  bDeviceProtocol         0<br>  bMaxPacketSize0        64<br>  idVendor           0x46f4<br>  idProduct          0x0005<br>  bcdDevice            0.00<br>  iManufacturer           1 QEMU<br>  iProduct                2 U2F USB key<br>  iSerial                 3 0-0000:00:1d.7-1<br>  bNumConfigurations      1<br>  Configuration Descriptor:<br>    bLength                 9<br>    bDescriptorType         2<br>    wTotalLength           41<br>    bNumInterfaces          1<br>    bConfigurationValue     1<br>    iConfiguration          4 U2F key config<br>    bmAttributes         0x80<br>      (Bus Powered)<br>    MaxPower               30mA<br>    Interface Descriptor:<br>      bLength                 9<br>      bDescriptorType         4<br>      bInterfaceNumber        0<br>      bAlternateSetting       0<br>      bNumEndpoints           2<br>      bInterfaceClass         3 Human Interface Device<br>      bInterfaceSubClass      0 No Subclass<br>      bInterfaceProtocol      0 None<br>      iInterface              0<br>        HID Device Descriptor:<br>          bLength                 9<br>          bDescriptorType        33<br>          bcdHID               1.10<br>          bCountryCode            0 Not supported<br>          bNumDescriptors         1<br>          bDescriptorType        34 Report<br>          wDescriptorLength      34<br>         Report Descriptors:<br>           ** UNAVAILABLE **<br>      Endpoint Descriptor:<br>        bLength                 7<br>        bDescriptorType         5<br>        bEndpointAddress     0x81  EP 1 IN<br>        bmAttributes            3<br>          Transfer Type            Interrupt<br>          Synch Type               None<br>          Usage Type               Data<br>        wMaxPacketSize     0x0040  1x 64 bytes<br>        bInterval               5<br>      Endpoint Descriptor:<br>        bLength                 7<br>        bDescriptorType         5<br>        bEndpointAddress     0x01  EP 1 OUT<br>        bmAttributes            3<br>          Transfer Type            Interrupt<br>          Synch Type               None<br>          Usage Type               Data<br>        wMaxPacketSize     0x0040  1x 64 bytes<br>        bInterval               5<br>Device Status:     0x0000<br>  (Bus Powered)</div><div><br></div><div>Regards,</div><div>Ali<br></div><div><br></div></div>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/69593">View/Reply Online (#69593)</a> |    |  <a target="_blank" href="https://groups.io/mt/79426534/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>