简体   繁体   English

从连接到远程 linux 机器的设备模拟 windows 上的 USB HID 设备

[英]Emulate USB HID device on windows from a device connected to a remote linux machine

I want to be able to run a windows program and be able to see and access a remote HID device connected to my raspberry pi over the internet.我希望能够运行 Windows 程序,并能够通过互联网查看和访问连接到我的树莓派的远程 HID 设备。

I was able to record/send packets over python on the raspberry pi itself.我能够在树莓派本身上通过 python 记录/发送数据包。 But i am looking to be able to run a windows program from the manufacturer that doesn't natively work on linux and access that HID device from a couple of rooms away (over wifi).但我希望能够运行制造商提供的 Windows 程序,该程序本身不能在 linux 上运行,并从几个房间外(通过 wifi)访问该 HID 设备。

This is a interface for my solar converter, not a keyboard or mouse.这是我的太阳能转换器的接口,而不是键盘或鼠标。

Basically基本上

  • Emulate a hid device on windows and two-way bridge all packets to the real HID device connected to a raspberry pi.在 Windows 上模拟 hid 设备,并将所有数据包双向桥接到连接到树莓派的真实 HID 设备。

Hardware:硬件:

  • Windows 10 laptop Windows 10 笔记本电脑
  • Raspberry pi 3 running raspbian树莓派 3 运行 raspbian
  • Official adapter that turns the proprietary connector to a USB HID device将专有连接器转换为 USB HID 设备的官方适配器

I have found usbip which seems to do what i want: https://github.com/cezanne/usbip-win我发现 usbip 似乎可以满足我的要求: https : //github.com/cezanne/usbip-win

It basically let's you use a remote usb device on linux as a local device.它基本上让你在 linux 上使用远程 USB 设备作为本地设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM