php网站生成静态页面,好用的软件管理系统,360网站收录提交入口,生产模板的厂家我有一个RFID USB设备,注册为HID设备(A USB键盘或多或少).我正在寻找一种方法来捕获此输入,并在它碰到普通键盘事件处理程序(并将10位数的RFID代码输出到控制台)之前对其进行阻塞/过滤.我当然必须专门捕获这个设备,并且将真正的键盘输入单独留下(或传递给它).我最初的想法是在U…我有一个RFID USB设备,注册为HID设备(A USB键盘或多或少).我正在寻找一种方法来捕获此输入,并在它碰到普通键盘事件处理程序(并将10位数的RFID代码输出到控制台)之前对其进行阻塞/过滤.我当然必须专门捕获这个设备,并且将真正的键盘输入单独留下(或传递给它).我最初的想法是在UDEV中阻止设备(所以usbhid / event / kbd内核模块没有绑定到它),并为这个设备编写自己的基本驱动程序 – 但是我不知道从哪里开始,甚至会工作什么是伟大的(我不知道这样的事情可以做到) – 是如果我写一个事件过滤器模块,可以与事件驱动程序保持一致,并捕获(然后过滤)适当的输入从RFID单元,但让其他一切通过.我想象这样一个模块不需要太多的代码,这将是最实际的.帮帮我[编辑我应该补充说,Xorg没有安装 – 仅控制台]cat /proc/bus/input:I: Bus0003 Vendor0419 Product0912 Version0100N: NameNewRoad Sem. NewRoad System PS2 InterfaceP: Physusb-0000:00:1d.3-2/input0S: Sysfs/devices/pci0000:00/0000:00:1d.3/usb5/5-2/5-2:1.0/input/input20U: UniqH: Handlerssysrq kbd mouse0 event3B: PROP0B: EV120017B: KEY70000 0 0 e080ffdf01cfffff fffffffffffffffeB: REL103B: MSC10B: LED1f更多信息lsusb -d 0419:0912 -vBus 005 Device 019: ID 0419:0912 Samsung Info. Systems America, Inc.Device Descriptor:bLength 18bDescriptorType 1bcdUSB 1.00bDeviceClass 0 (Defined at Interface level)bDeviceSubClass 0bDeviceProtocol 0bMaxPacketSize0 8idVendor 0x0419 Samsung Info. Systems America, Inc.idProduct 0x0912bcdDevice 0.01iManufacturer 1 NewRoad Sem.iProduct 2 NewRoad System PS2 InterfaceiSerial 0bNumConfigurations 1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 34bNumInterfaces 1bConfigurationValue 1iConfiguration 4bmAttributes 0xa0(Bus Powered)Remote WakeupMaxPower 100mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 1bInterfaceClass 3 Human Interface DevicebInterfaceSubClass 1 Boot Interface SubclassbInterfaceProtocol 1 KeyboardiInterface 5HID Device Descriptor:bLength 9bDescriptorType 33bcdHID 1.00bCountryCode 0 Not supportedbNumDescriptors 1bDescriptorType 34 ReportwDescriptorLength 119Report Descriptors:** UNAVAILABLE **Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress 0x81 EP 1 INbmAttributes 3Transfer Type InterruptSynch Type NoneUsage Type DatawMaxPacketSize 0x0008 1x 8 bytesbInterval 10Device Status: 0x0000(Bus Powered)