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

标签 linux usb remote-access

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

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

最佳答案

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

至少还有三种商业产品提供了更好的文档和用户界面来提供此功能。我在此回复的末尾包含了指向商业产品的链接。

来自 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

usbip 服务器进程在 Linux 系统上运行,客户端可用于 Linux 和 Windows - 该项目显然自 2005 年以来就已经存在,并且已经签署了自 2011 年以来的 Windows 客户端驱动程序。理论上,根据您的 Raspberry Pi 上配置的存储库,您应该能够执行 sudo aptitude install usbip 来安装服务器端驱动程序和应用程序。

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

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

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

商业 USB-over-IP 工具:

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

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

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

关于linux - 使用远程主机的 USB 端口作为本地 USB(Linux 和 Windows),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18837277/

相关文章:

linux - 在 httpd.conf 中找不到 Httpd 配置值 (Amazon AWS EC2)

linux - 在具有 x64 操作系统 (redhat 5.6) 的 x64 CPU (Xeon 7650) 上运行的 X64 应用程序的 2GB 障碍 - 为什么 + 要检查的内容

java - 如何从 iserialnumber 获取 USB 设备序列号?

powershell - 通过 vmware API 运行 powershell 时获取退出代码 0x80131029

node.js - NodeJS - 使用 "Sequest"检查 SFTP 远程文件是否存在

java - 防止未经授权的软件访问mysql数据库

linux - Bash 脚本记录平均 ping 时间,一天每 20 秒一次

linux - 使用 tar 将 Linux 主目录的内容归档

java - 如何通过 USB 进行通信(手机到 PC)?

windows - 24 位 USB 采样率支持