Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fast USB service

Status
Not open for further replies.

ihirst

Programmer
Aug 27, 2003
2
GB
I have a microcontroller attached via usb. When the microcontroller requests data I need windows to respond as soon as possible.

I have created a thread to poll the usb port (using third party functions (DLL)) and then output the message when required.

To speed things up I have then raised the priority of the thread. I need to further raise the priority but I am conserned that I will lockout lower priority processes. I really need to poll the port at set intervals and then lower the thread priority between checks.

Any idea's or suggested reading?

Thanks for any help.
 
Do you have to use the third party functions? It sounds like what you are doing should go into the PNP WDM driver for the USB device. Have it talk to the USB bus driver directly and I think you won't have any problem polling the device as often as you want, using a real time priority system thread or something.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top