Skip to content

Automatically connect/disconnect devices as they are bound on the server #186

Closed
@RoganDawes

Description

@RoganDawes

Hi. Thanks for a great tool!

I have a need to automatically bind and unbind devices on the Windows client as they are bound/unbound on the server. This seems related to this other issue: #160

In my case, the intention is to make a Linux usbip server's USB port "available" to a Windows client. On Linux, it is fairly straightforward to automate binding and unbinding the device as it is plugged in using appropriate udev rules that match the bus/port in question. However, it is still necessary to manually execute the bind/unbind commands on the Windows client. Ideally, the Windows client would poll periodically for any new/removed devices, and execute the bind/unbind operations automatically.

This could perhaps be enabled by adding an auto -i seconds -r target option that polls the specified server for any changes. This could perhaps be implemented using a Powershell script, but unfortunately, the output of usbip list is not the easiest to parse. It seems to me that it would make more sense to implement this within the usbip program itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    todofuture work even though it is closed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions