首先用 cat /proc/bus/input/devices 确定读卡器设备在系统里的注册信息
系统input_event事件定义
struct input_event { struct timeva l time; //事件触发的时间 __u16 type; //事件类型 __u16 code; //代码,如果是键盘则是按键代码 __s32 value; //如果是键盘则value = KeyDown 或者 KeyUP};