Jump to content

Query USB Enumeration


bbean

Recommended Posts

I am working on an RT app and hardware that uses more than 50 USB devices connected via USB hubs to an NI rackmount computer.  After a hard reboot of the rack mount computer, the USB devices and hubs take more than 5 minutes to enumerate.  

 

I am looking for a way to verify all the USB devices have enumerated.  Polling VISA Find Resources appears to cause the entire system to lockup if we start it immediately in RT app.  If we manually delay for 10 minutes or so in the application and then call VISA Find Resources, it appears to work OK as long as all of the devices have successfully enumerated.  A hard-coded 10 minute delay is not optimal because on soft reboots, the delay is unnecessary.  

 

Are there any other ways to get the state of system USB enumeration other than VISA Find Resource?

 

During reboots, the NI boot loader takes a minute or so to "Enumerate USB devices" but it appears it only enumerates each USB hub before it completes and moves on.

 

 

 

PS. I know there are latency issues using USB on an RT system.  We chose to use the RT platform for stability (no windows updates, etc) vs determinism.  This may or may not be a good reason, but its what we have now.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.