linux下如何查看usb 的hid event设备
cat /proc/bus/input/devices
使用该指令可以获取有哪些usb hid的设备,比如有一个鼠标 ,kbd对应的是event0
一个二维码扫描的是newland event1
root@freescale /home$ cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="20cc000.snvs-pwrkey"
P: Phys=snvs-pwrkey/input0
S: Sysfs=/devices/soc0/soc.0/2000000.aips-bus/20cc000.snvs-pwrkey/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0
I: Bus=0003 Vendor=1eab Product=8203 Version=0110
N: Name="NewLand HidKeyBoard"
P: Phys=usb-ci_hdrc.1-1.4.2/input0
S: Sysfs=/devices/soc0/soc.0/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.4/1-1.4.2/1-1.4.2:1.0/0003:1EAB:8203.0002/input/input4
U: Uniq=
H: Handlers=sysrq kbd event1
B: PROP=0
B: EV=120013
B: KEY=e080ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=1f