operation failed: Multiple USB devices for 20bc:504d, use to specify one


Yvan
Go to solution Solved by SimonF,

Recommended Posts

I have a Windows 10 virtual machine currently connected with a keyboard, a mouse, and two gamepads. The two gamepads are of the same model, with identical product IDs. When booting up, I encountered an error message: 'operation failed: Multiple USB devices for 20bc:504d, use to specify one.'

The default USB configuration in the Windows XML is as follows:

<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x05ac'/>
    <product id='0x024f'/>
  </source>
  <address type='usb' bus='0' port='2'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x20bc'/>
    <product id='0x504d'/>
  </source>
  <address type='usb' bus='0' port='3'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x25a7'/>
    <product id='0xfa61'/>
  </source>
  <address type='usb' bus='0' port='4'/>
</hostdev>
<memballoon model='none'/>

The USB devices information is as follows:

Bus 001 Device 001 Port 1-0	  ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007 Port 1-10	  ID 0951:1665 Kingston Technology Digital DataTraveler SE9
Bus 001 Device 008 Port 1-11	  ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 009 Port 1-12	  ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 001 Device 012 Port 1-11.3	  ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller
Bus 001 Device 056 Port 1-3	  ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE
Bus 001 Device 059 Port 1-1	  ID 05ac:024f Apple, Inc. Aluminium Keyboard (ANSI)
Bus 001 Device 060 Port 1-2	  ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader
Bus 001 Device 064 Port 1-4	  ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE
Bus 002 Device 001 Port 2-0	  ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001 Port 3-0	  ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001 Port 4-0	  ID 1d6b:0003 Linux Foundation 3.0 root hub

port 1-1 is keyboard

port 1-2 is mouse

port 1-3 and port 1-4 is Gamepads

 

 

update:

7dfa71e67ebb96a395b34c01f7fdd629.thumb.png.6c119f0bf118ad0b642e6856c1f1d10a.png

Yesterday, I only connected one USB controller, selected it in the Windows virtual machine, and then started it up. Today, when I returned home, I found that this game controller had been recognized as an Xbox controller and was working fine. At this point, I connected another controller to Unraid, selected it in Windows, and started it up, but the other controller still showed as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE, and couldn't function properly.

After disconnecting and reconnecting both controllers, they reverted to their original state, both displaying as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE. Just now, I connected one game controller first, then selected it in Windows and started it up, and then connected the second controller.

That's the complete situation. It seems that if the game controller is recognized as an Xbox controller, it works properly. But how can I make both game controllers recognized as Xbox controllers? Is it possible that after connecting the game controller to Unraid, it needs some time to automatically identify as an Xbox controller before it can work properly?

 

Edited by Yvan
Link to comment
  • Solution
On 11/26/2023 at 1:09 PM, Yvan said:

I have a Windows 10 virtual machine currently connected with a keyboard, a mouse, and two gamepads. The two gamepads are of the same model, with identical product IDs. When booting up, I encountered an error message: 'operation failed: Multiple USB devices for 20bc:504d, use to specify one.'

The default USB configuration in the Windows XML is as follows:

<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x05ac'/>
    <product id='0x024f'/>
  </source>
  <address type='usb' bus='0' port='2'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x20bc'/>
    <product id='0x504d'/>
  </source>
  <address type='usb' bus='0' port='3'/>
</hostdev>
<hostdev mode='subsystem' type='usb' managed='no'>
  <source>
    <vendor id='0x25a7'/>
    <product id='0xfa61'/>
  </source>
  <address type='usb' bus='0' port='4'/>
</hostdev>
<memballoon model='none'/>

The USB devices information is as follows:

Bus 001 Device 001 Port 1-0	  ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007 Port 1-10	  ID 0951:1665 Kingston Technology Digital DataTraveler SE9
Bus 001 Device 008 Port 1-11	  ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 009 Port 1-12	  ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 001 Device 012 Port 1-11.3	  ID 0b05:1939 ASUSTek Computer, Inc. AURA LED Controller
Bus 001 Device 056 Port 1-3	  ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE
Bus 001 Device 059 Port 1-1	  ID 05ac:024f Apple, Inc. Aluminium Keyboard (ANSI)
Bus 001 Device 060 Port 1-2	  ID 25a7:fa61 Areson Technology Corp Elecom Co., Ltd MR-K013 Multicard Reader
Bus 001 Device 064 Port 1-4	  ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE
Bus 002 Device 001 Port 2-0	  ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001 Port 3-0	  ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001 Port 4-0	  ID 1d6b:0003 Linux Foundation 3.0 root hub

port 1-1 is keyboard

port 1-2 is mouse

port 1-3 and port 1-4 is Gamepads

 

 

update:

7dfa71e67ebb96a395b34c01f7fdd629.thumb.png.6c119f0bf118ad0b642e6856c1f1d10a.png

Yesterday, I only connected one USB controller, selected it in the Windows virtual machine, and then started it up. Today, when I returned home, I found that this game controller had been recognized as an Xbox controller and was working fine. At this point, I connected another controller to Unraid, selected it in Windows, and started it up, but the other controller still showed as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE, and couldn't function properly.

After disconnecting and reconnecting both controllers, they reverted to their original state, both displaying as ID 20bc:504d ShenZhen ShanWan Technology Co., Ltd. BEITONG A1T2 BFM DONGLE. Just now, I connected one game controller first, then selected it in Windows and started it up, and then connected the second controller.

That's the complete situation. It seems that if the game controller is recognized as an Xbox controller, it works properly. But how can I make both game controllers recognized as Xbox controllers? Is it possible that after connecting the game controller to Unraid, it needs some time to automatically identify as an Xbox controller before it can work properly?

 

You need to use bus and device ID for same type. I have a plugin that will do that automatically for you based on the port it is connection or device+serial and map into the VM when it starts or is hot plugged. Also you need to set USB3 in the vm as USB2 will not have enough free USB ports.

 

look for USB Manager in CA. You will need to remove the mappings from the VM Template of the ones you want to map using my plugin.

Link to comment

The USB manager resolved the issue with my two gamepads. However, it's odd that my mouse and keyboard have remained in a disconnected state. Currently, my gamepads are mapped through the USB manager, while the mouse and keyboard are being accessed in the settings of the virtual machine, and everything is functioning properly

Link to comment
6 hours ago, Yvan said:

The USB manager resolved the issue with my two gamepads. However, it's odd that my mouse and keyboard have remained in a disconnected state. Currently, my gamepads are mapped through the USB manager, while the mouse and keyboard are being accessed in the settings of the virtual machine, and everything is functioning properly

Can you provide a screen shot, the keyboard and mouse should show as connected(outside) as not action by USB Manager. Try stop vm physically unplug the keyb and mouse and startagain to see if that fixes the USB screen. It may be that the state file does not include those devices, but should add them.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.