Tag: libusbdotnet

如何从通过USB连接的扫描仪获取信号

我有一台KODAK i2600扫描仪通过SX Virtual Link连接到网络,该网络中的每台PC都模拟与扫描仪的usb连接。 我可以像这样轻松地找到模拟的usbs pid和vid: 或这个: 我试图用LibUsbDotNet检测信号,但是用他们的例子它不起作用。 我试过这个例子: public static UsbDevice MyUsbDevice; #region SET YOUR USB Vendor and Product ID! public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(int.Parse(“040a”, System.Globalization.NumberStyles.HexNumber), int.Parse(“601d”, System.Globalization.NumberStyles.HexNumber)); #endregion public static void Main(string[] args) { ErrorCode ec = ErrorCode.None; try { // Find and open the usb device. MyUsbDevice = UsbDevice.OpenUsbDevice(MyUsbFinder); // […]