Re: How did the USB host calculate the polling time for a plug in device?



Alex.Z wrote:
I was devoloping driver for a USB HID keyboard device, using the USB
hid protocol, transfering data with a interrupt endpoint.
My computer had a USB 2.0 host, and the OS is WinXP. When the USB HID
keyboard was plugged in, the device driver would return 0x0a as
bInterval of the endpoint descriptor.
But the USB host send the ping packet every 4 ms, how did this polling
time come. And when I disable the EHCI, the USB host send the ping
packet every 8 ms, that is not the value what I expected.
How did the USB host calculate the polling time in a winxp system?
Thanks for your reply.

Most OSes use the next power of 2 for the polling interval so 8 msec is
quite normal. 4 msec is unusual.
BTW where is the problem? Even a low-speed microcontroller should be
able to answer without problems.
.



Relevant Pages

  • ieee1394 and fbdev oops in 2.6.3rc2
    ... Found UniNorth PCI host bridge at 0xf0000000. ... Firmware bus number: 0->0 ... PMU driver 2 initialized for Core99, ... ohci_hcd 0001:02:08.0: new USB bus registered, ...
    (Linux-Kernel)
  • Re: External drives not installing or working properly on USB
    ... thanks for clarifying the setup of the USB host controllers. ... As you have 5 host ports, ... operating system to recognise the four additional 'drives'. ...
    (microsoft.public.windowsxp.general)
  • Re: question for USB isochronous I/O (input)- massive corruption issue
    ... My device is a USB audio device, ... > host memory corruption issues when my USB driver has not fed the host ... > controller with enough input URBs. ... > make sure to keep the host controller well supplied with input URBs, ...
    (microsoft.public.development.device.drivers)
  • Re: assessing winusb potential
    ... I am now pouring over a USB book but the issue is still not clear. ... What prevents the host from ... Please do not send e-mail directly to this alias. ... able to install downlevle (IIRC, ...
    (microsoft.public.development.device.drivers)
  • Re: USB host controller and client driver
    ... communicates with "WinCE ported host processor".Sorry, but the above sentence does not make any sense to me ... processorAs I've allready said, the function client driver ... Perhaps you should go get yourself a copy of "USB Complete" by Jan ... "The USB function controller drvers come into picture only if your ...
    (microsoft.public.windowsce.platbuilder)