问题描述
是否可以使用一台计算机通过usb将击键发送到另一台计算机?
Is there a way to use one computer to send keystrokes to another by usb ?
我要执行的操作是捕获键盘(例如,使用USBTrace)使用的usb信号,并将其与PC-1一起使用,以将其发送到PC-2.这样PC-2便可以将其作为常规键盘输入进行调和.
What i'm looking to do is to capture the usb signal used by a keyboard (with USBTrace for example) and use it with PC-1 to send it to PC-2.So that PC-2 reconize it as a regular keyboard input.
一些这样做的线索将不胜感激.
Some leads to do this would be very appreciated.
推荐答案
您基本上需要的是 USB PC-1上的端口,该端口将用作PC-2的USB设备.
What you essentially need is a USB port on PC-1 that will act as a USB device for PC-2.
对于绝大多数PC系统而言,这是不可能的,因为USB是具有主机/设备(或主机/从机,如果需要的话)体系结构的非对称总线.大多数PC上的USB控制器(及其端口)只能在主机模式下工作,不能模拟设备.
That is not possible for the vast majority of PC systems because USB is an asymmetric bus, with a host/device (or master/slave, if you wish) architecture. USB controllers (and their ports) on most PCs can only work in host mode and cannot simulate a device.
这就是为什么如果没有带有专用电子设备的专用电缆就无法通过USB联网计算机的原因.
That is the reason that you cannot network computers through USB without a special cable with specialised electronics.
唯一的例外是,如果您以某种方式拥有支持 USB On-The的PC -Go 标准,允许USB端口在主机模式和设备模式下运行. USB-OTG设备确实存在,但它们通常是嵌入式设备(智能手机等).我不知道是否可以将USB-OTG端口添加到商用PC.
The only exception is if you somehow have a PC that supports the USB On-The-Go standard that allows for a USB port to act in both host and device mode. USB-OTG devices do exist, but they are usually embedded devices (smartphones etc). I don't know if there is a way to add a USB-OTG port to a commodity PC.
如果在PC-2上的操作系统启动之前不需要键盘,则可以使用一对USB蓝牙适配器-每台PC上一个.您必须在PC-1上使用专用软件,但是绝对有可能-我已经看到了,而且我可以肯定地确定Windows必须有一个.如果尚未安装,则在PC-2上还需要Bluetooth HID驱动程序.
If you do not need a keyboard before the OS on PC-2 boots, you might be able to use a pair of USB Bluetooth dongles - one on each PC. You'd have to use specialised software on PC-1, but it is definitely possible - I've already seen a possible implementation on Linux, and I am reasonably certain that there must be one for Windows. You will also need Bluetooth HID drivers on PC-2, if they are not already installed.
另一方面,您是否考虑过纯粹的软件/网络解决方案,例如 TightVNC ?
On a different note, have you considered a purely software/network solution such as TightVNC?
这篇关于如何通过USB从一台计算机向另一台计算机发送击键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!