将远程主机的USB端口用作本地USB(Linux和Windows) [英] Using a remote host's USB port as local USB (Linux and Windows)

查看:814
本文介绍了将远程主机的USB端口用作本地USB(Linux和Windows)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我的系统是Windows 7,因此我需要将该远程USB挂载为本地端口",以便该软件认为它正在本地通信,并且可以找到读取器.

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.

推荐答案

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

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

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

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.

usbip 网页:

From the usbip web page:

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

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来安装服务器端驱动程序和应用程序.

The usbip server 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 usbip to install the server-side drivers and application.

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

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

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆