使用远程主机的 USB 端口作为本地 USB(Linux 和 Windows)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18837277/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:51:46  来源:igfitidea点击:

Using a remote host's USB port as local USB (Linux and Windows)

linuxusbremote-access

提问by Caspian

I have a USB device that reads data from a system and transfers them to the computer. I am wondering if it's possible to have a Linux single board PC (i.e. Raspberry Pi) to run a script and be a remote-server for my USB device and I can connect to that "remote-server"(Linux) through SSH or FTP or another protocol (over the Internet) and mount that USB port to my computer. Any software would do it, you know how terminal service connects the remote resources, and I need the same, but preferably on a Linux board.

我有一个 USB 设备,可以从系统读取数据并将它们传输到计算机。我想知道是否有可能让 Linux 单板 PC(即 Raspberry Pi)运行脚本并成为我的 USB 设备的远程服务器,我可以通过 SSH 或 FTP 连接到该“远程服务器”(Linux)或其他协议(通过 Internet)并将该 USB 端口安装到我的计算机上。任何软件都可以做到,你知道终端服务如何连接远程资源,我也需要同样的,但最好在 Linux 板上。

My system is Windows 7, so I need to mount that remote-USB as a "local port" so the software thinks it's communicating locally, and it'll find the reader.

我的系统是 Windows 7,所以我需要将该远程 USB 安装为“本地端口”,以便软件认为它正在本地通信,并且会找到阅读器。

回答by MKartha

There is an open source project called usbipthat provides functionality to share and/or mount a remote USB device over an IP network (LAN/Internet).

有一个名为usbip 的开源项目,它提供通过 IP 网络(LAN/Internet)共享和/或挂载远程 USB 设备的功能。

There are also at least three commercial products that provide this functionality with better documentation and UI. I've included links to the commercial products at the end of this reply.

至少还有三种商业产品提供此功能以及更好的文档和 UI。我在此回复的末尾包含了商业产品的链接。

From the usbipweb page:

usbip网页:

To share USB devices between computers with their full functionality, USB/IP encapsulates "USB I/O messages" into TCP/IP payloads and transmits them between computers. Original USB device drivers and applications can be also used for remote USB devices without any modification of them. A computer can use remote USB devices as if they were directly attached

为了在具有完整功能的计算机之间共享 USB 设备,USB/IP 将“USB I/O 消息”封装到 TCP/IP 有效负载中并在计算机之间传输它们。原始 USB 设备驱动程序和应用程序也可用于远程 USB 设备,无需对其进行任何修改。计算机可以像直接连接一样使用远程 USB 设备

The usbipserver process runs on Linux systems and clients are available for Linux and Windows - the project has apparently been around since 2005, and they've had a signed Windows client driver since 2011. In theory, depending on the repositories configured on your Raspberry Pi, you should be able to execute sudo aptitude install usbipto install the server-side drivers and application.

USBIP在Linux系统和客户端服务器运行过程中可用于Linux和Windows -该项目显然自2005年以来一直围绕,并自2011年起从理论上讲,他们已经有一个签名的Windows客户端的驱动程序,这取决于你的树莓配置的存储库Pi,您应该能够执行sudo aptitude install usbip以安装服务器端驱动程序和应用程序。

Note that if you use Ubuntu 14.10(Utopic Unicorn) or newer, you do not need to install the usbippackage: the usbip tools are part of the linux-tools-genericpackage, and the binaries are already available in /usr/lib/linux-tools-KERNEL-VERSION/.

请注意,如果您使用Ubuntu 14.10(Utopic Unicorn) 或更新版本,则无需安装该usbip软件包:usbip 工具是该linux-tools-generic软件包的一部分,并且二进制文件已在 /usr/lib/linux-tools-KERNEL-版本/。

A walkthrough tutorial on how to install and use usbipis available at HowToForge:

HowToForge提供了有关如何安装和使用usbip 的演练教程:

The Windows client has advanced since the HowToForge tutorial and has a little more interface now instead of just a command-line tool.

自 HowToForge 教程以来,Windows 客户端已经有了进步,现在有了更多的界面,而不仅仅是命令行工具。

Commercial USB-over-IPtools:

商用USB-over-IP工具:

Fabula-Tech USB-over-Network - runs on Windows & Linux - trial available:

Fabula-Tech USB-over-Network - 在 Windows 和 Linux 上运行 - 可试用:

Eltima Software USB Network Gate - runs on Windows, Mac OS X, & Linux - trial available:

Eltima Software USB Network Gate - 在 Windows、Mac OS X 和 Linux 上运行 - 提供试用:

Incentives Pro/SimplyCore LLC USB Redirector - runs on Windows & Linux - apparently free for Linux server and a free Windows client is available:

Incentives Pro/SimplyCore LLC USB 重定向器 - 在 Windows 和 Linux 上运行 - Linux 服务器显然是免费的,并且有一个免费的 Windows 客户端可用: