我使用的是Smart 210的板子,在插入某个扫码二维码的机器之后(是键盘模式),出现
[ 1726.108421] usb 1-1.2: new full speed USB device number 8 using s5p-ehci
[ 1726.229769] input: NewLand HidKeyBoard as /devices/platform/s5p-ehci/usb1/1-1/1-1.2/1-1.2:1.0/input/input5
[ 1726.233567] generic-usb 0003:1EAB:8003.0003: input: USB HID v1.10 Keyboard [NewLand HidKeyBoard] on usb-s5p-ehci-1.2/input0
的提示,这个设备的文件目录是哪一个?我起初以为是/dev/input/event0这个目录,但是使用C语言写一个打开的程序,扫码过后没有读到任何东西,程序卡住不动了(插入键盘后的结果是一样的)。
[root@FriendlyARM /nfsmnt]# ./Test
adas
3
^C