How do I debug USB problem?
Posted: 6. Aug 2014, 18:30
Hi, (My first-ever post here, so be kind...)
I'm trying to understand why our USB device doesn't work with VirtualBox. If, from my description, you know what I'm doing wrong, that'd be unexpectedly wonderful; but what I'm really asking is how to debug this sort of thing:
I'm currently running VirtualBox 4.3.14 under MacOS 10.9.4, with the Oracle VM VirtualBox Extension Pack and the EHCI controller checked. It probably has nothing to do with a particular version of VirtualBox or the presence/absence of the Extension Pack, since it has never worked. The device filter works fine and the device is captured.
The device is USB 2.0 Full-Speed, with USBTMC (USB Test & Measurement Class) / USB488 Subclass. As for software, we use the National Instruments NI-VISA package, under Windows 7; this installs a USBTMC driver (ausbtmc.sys) and provides a test environment with which I can send individual commands to our device (Measurement and Automation Explorer (MAX) & VISA Test Panels). I use this to send the most basic query, the *IDN? command, which should return a device-information string. All this works swimmingly on a real Windows host.
With a USB protocol analyzer, I see that the link is basically alive, but the IN transaction (device->host) doesn't complete, and after 2 seconds the host clears the USB endpoint.
I didn't see anything very revealing in the VBox.log file -- but I probably don't know what I'm looking for either.
Just for grins, because I've personally never seen *any* USB device work with VirtualBox, I hooked up a USB mouse. It's captured fine and recognized by Windows, but only managed to move the cursor once, for a little bit (until the cursor slid off the Windows screen, in fact). Unplugging/plugging and rebooting does not change a thing. Clicking does seem to work. ??! I would have expected a plain-Jane HID to work straight away... shouldn't it?
Any hints greatly appreciated!!
I'm trying to understand why our USB device doesn't work with VirtualBox. If, from my description, you know what I'm doing wrong, that'd be unexpectedly wonderful; but what I'm really asking is how to debug this sort of thing:
I'm currently running VirtualBox 4.3.14 under MacOS 10.9.4, with the Oracle VM VirtualBox Extension Pack and the EHCI controller checked. It probably has nothing to do with a particular version of VirtualBox or the presence/absence of the Extension Pack, since it has never worked. The device filter works fine and the device is captured.
The device is USB 2.0 Full-Speed, with USBTMC (USB Test & Measurement Class) / USB488 Subclass. As for software, we use the National Instruments NI-VISA package, under Windows 7; this installs a USBTMC driver (ausbtmc.sys) and provides a test environment with which I can send individual commands to our device (Measurement and Automation Explorer (MAX) & VISA Test Panels). I use this to send the most basic query, the *IDN? command, which should return a device-information string. All this works swimmingly on a real Windows host.
With a USB protocol analyzer, I see that the link is basically alive, but the IN transaction (device->host) doesn't complete, and after 2 seconds the host clears the USB endpoint.
I didn't see anything very revealing in the VBox.log file -- but I probably don't know what I'm looking for either.
Just for grins, because I've personally never seen *any* USB device work with VirtualBox, I hooked up a USB mouse. It's captured fine and recognized by Windows, but only managed to move the cursor once, for a little bit (until the cursor slid off the Windows screen, in fact). Unplugging/plugging and rebooting does not change a thing. Clicking does seem to work. ??! I would have expected a plain-Jane HID to work straight away... shouldn't it?
Any hints greatly appreciated!!