Page 1 of 1

Cannot connect USB device (STM32 Virtual COM port) to guest

Posted: 31. Dec 2011, 17:55
by mchaland
Hi,
I use VB 4.1.8 on Snow Leopard 10.6.8 on CoreDuo (32bits) MacBook Pro.
I configured a USB filter to allow to connect my GPS to a windows XP guest.
When I plug in my device, nothing happens on guest side. If I try to connect device manually, I get following error:

Code: Select all

Échec de la connexion du périphérique USB STMicroelectronics STM32 Virtual COM Port [0200] à la machine virtuelle Flo XP.

USB device 'STMicroelectronics STM32 Virtual COM Port' with UUID {d404d477-ac14-478f-8850-54b5b3f3421c} is in use by someone else.

Code d'erreur : NS_ERROR_FAILURE (0x80004005)
Composant : HostUSBDevice
Interface : IHostUSBDevice {173b4b44-d268-4334-a00d-b6521c9a740a}
Fonction appelée : IConsole {1968b7d3-e3bf-4ceb-99e0-cb7c913317bb}
If I use kextstat, It seems that AppleUSBCDC catches this device:

Code: Select all

marcchaland@macbookpro% kextstat > before 
marcchaland@macbookpro% kextstat > after
marcchaland@macbookpro% diff before after
2c2
<     1   78 0          0          0          com.apple.kpi.bsd (10.8.0)
---
>     1   80 0          0          0          com.apple.kpi.bsd (10.8.0)
4,6c4,6
<     3  105 0          0          0          com.apple.kpi.iokit (10.8.0)
<     4  111 0          0          0          com.apple.kpi.libkern (10.8.0)
<     5   97 0          0          0          com.apple.kpi.mach (10.8.0)
---
>     3  110 0          0          0          com.apple.kpi.iokit (10.8.0)
>     4  116 0          0          0          com.apple.kpi.libkern (10.8.0)
>     5   99 0          0          0          com.apple.kpi.mach (10.8.0)
8c8
<     7   54 0          0          0          com.apple.kpi.unsupported (10.8.0)
---
>     7   55 0          0          0          com.apple.kpi.unsupported (10.8.0)
38,39c38,39
<    37    4 0x9e6000   0x17000    0x16000    com.apple.iokit.IONetworkingFamily (1.10) <7 6 5 4 3 1>
<    39   13 0xed5000   0x36000    0x35000    com.apple.iokit.IOUSBFamily (4.2.4) <13 7 5 4 3 1>
---
>    37    5 0x9e6000   0x17000    0x16000    com.apple.iokit.IONetworkingFamily (1.10) <7 6 5 4 3 1>
>    39   18 0xed5000   0x36000    0x35000    com.apple.iokit.IOUSBFamily (4.2.4) <13 7 5 4 3 1>
94c94
<   102    1 0xfe3000   0x9000     0x8000     com.apple.iokit.IOSerialFamily (10.0.3) <7 6 5 4 3 1>
---
>   102    3 0xfe3000   0x9000     0x8000     com.apple.iokit.IOSerialFamily (10.0.3) <7 6 5 4 3 1>
124a125,129
>   146    0 0xa85000   0x3000     0x2000     com.apple.driver.AppleUSBCDC (4.0.5) <39 4 3>
>   147    0 0x1067000  0x3000     0x2000     com.apple.driver.AppleUSBCDCACMControl (4.0.5) <39 4 3>
>   148    0 0x35e21000 0x7000     0x6000     com.apple.driver.AppleUSBCDCACMData (4.0.5) <102 39 5 4 3>
>   149    0 0x35e2d000 0x5000     0x4000     com.apple.driver.AppleUSBCDCECMData (4.0.5) <39 37 4 3 1>
>   150    0 0x35c87000 0x4000     0x3000     com.apple.driver.InternalModemSupport (2.6.2) <102 39 7 5 4 3 1>
So I've tried to remove kernel extensions from /System/Library/Extension/IOUSBFamily.kext/Contents/PlugIns. Extensions are no more loaded but VB is in trouble: USB device title are "unknown" but for STM32. If I try to connect manually, VB tells me that device is busy with a previous request.
I've tried another USB device (serial/USB converter) and I can successfully connect it to my guest.
Do you have any idea on what could solve this issue ?
Thanks in advance for an answer.
Happy new year for everybody.
Marc

Re: Cannot connect USB device (STM32 Virtual COM port) to gu

Posted: 1. Jan 2012, 04:11
by BLeRg
Do you have a laptop cooler or other high-current usb device attached? Might try unplugging it/them. I unplugged my cooler a few minutes ago and now all's fine.

Re: Cannot connect USB device (STM32 Virtual COM port) to gu

Posted: 5. Jan 2012, 21:55
by mchaland
No other USB device is plugged but internal stuff.
I tried to plug another USB CDC device and I can get it into guest without any trouble.