Re: Requesting for less than endpoint size in UsbBuildInterruptOrBulkTransferRequest

Tech-Archive recommends: Speed Up your PC by fixing your registry



If you KNOW that the device will send less data, you CAN request less that
endpoint max packet size. If the device sends more than your buffer size,
the transfer fails, the endpoint is stalled.

"Abhijit Mmirajkar" <abhijit.mirajkar@xxxxxxxxx> wrote in message
news:1137662906.627235.155570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> For some reason I want to submit a read request with a buffer length of
> 128 which is less than the BULK-IN endpoint size (512 bytes).
> When I put the TransferBufferLength as 128 in
> UsbBuildInterruptOrBulkTransferRequest and issued the request to host
> controller driver, it never returned back to me !
>
> I saw on the USB bus analyzer that the device responded with 512 bytes
> of data, but the host did not give any ACK (nor NAK) for it, and
> stopped issuing any further bulk INs.
>
> I was curious to know whethere there is any such restriction that if a
> client driver should issue a bulk request of at least endpoint size ?
> It is not documented anywhere it seems.
> Thanks,
>
> Regards,
> Abhijit
>


.



Relevant Pages

  • Re: Persistent stall in the Cypress FX2 FIFO
    ... Are you absolutely certain that the endpoint is STALLed? ... usually means that the endpoint has received an invalid USB request. ... the master interrupt and the individual interrupt register. ... Persistent stall in the Cypress FX2 FIFO ...
    (comp.arch.embedded)
  • Re: Iyonix USB: Bulk IN endpoints
    ... well with this sort of data on a bulk endpoint. ... I need to be able to initiate a request for a non-blocking input ... I looked at the documentation of the Simtec stack again today, ... embedded system and the number of bytes waiting to be transmitted from ...
    (comp.sys.acorn.programmer)
  • Re: KMDF1.5: Reading from USB interrupt endpoints
    ... If your request to the interrupt endpoint is larger than what the device is returning, and the device happens to be returning a multiple of its MaxPacketSize, then your request will not complete as it is waiting for more data from the device. ... code works, for example, inside VMWare (VMWare running XP32, Vista32 ... inside VMWare) but I tested this today on my AMD64 laptop with Vista32 ...
    (microsoft.public.development.device.drivers)
  • Re: Device Driver - Direct Access to Endpoint 0
    ... defined in UsbBuildVendorRequest to send requests to Endpoint 0. ... Specifies the device-defined identifier if the request is for an endpoint, ... >> I have made a USB functional driver and it is stacked on top of "usb bus ...
    (microsoft.public.development.device.drivers)
  • [NT] Vulnerability Report for Windows SMB DoS
    ... cross-platform mechanism for client systems to request file services from ... In order to exploit the vulnerability a user account is needed for the ... is therefore vulnerable to a denial of service attack. ... Later in the processing of the request, at SRV.SYS+33209h another buffer ...
    (Securiteam)