Attach device to multiple clients simultaneously? #925
ramiabughazaleh
started this conversation in
General
Replies: 1 comment 1 reply
-
No, this cannot be done. And in general it cannot be done by USB. A device can be used by one machine/driver at a time. You need higher level software (such as file server, printer server, etc.) to make group access possible. At the device level, the device is used exclusively by one driver only. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
Thank you for usbipd-win.
Is it possible to attach a single shared USB device to multiple clients simultaneously?
For example,
usbipd bind --busid=3-1
)usbip.exe attach -r machineA -b 3-1
usbip.exe attach -r machineA -b 3-1
When I try to do step 6, I get the following error:
usbip: error: already used bus id: 3-1
or using a different usbip client:
Should this be possible?
For example, I'm expecting to share a USB device and single operations to be atomic and exclusive between machines B and C.
If machine B wants to perform a device operation, it will obtain a lock.
If machine C wants to perform a device operation at the same time, it will wait until the operation by machine B is completed by waiting until the lock is released, so it can obtain its own lock on the device.
I'm not very knowledgeable of how USB hardware and how read/write operations may work, and it probably shows with this question. 😇
I found an old thread where others were trying to do the same thing, but no definitive answer:
https://sourceforge.net/p/usbip/discussion/418507/thread/30e03b95/
If software is the only limiting factor, could this feature be added to usbipd-win?
Or is there another solution I can take advantage of?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions