摘要
在实现HID设备无侵入式监听过程中,由于不同HID设备描述符不同,不同生产商设备通讯协议规范不同,导致数据分析受限,协议解析困难。为在不影响设备正常工作的前提下,实现HID设备的监听,设计了一种无侵入式监听方法,对于鼠标、键盘和触摸屏三种设备进行数据监听。通过该方法对USB端口进行数据捕获,获得设备描述符、配置描述符、接口描述符,通过描述符信息构建数据包模型,截获HID设备输入的数据包段,获得操作指令的协议,对比协议/指令对比表,最终获得操作指令。该方法能够实时解析HID设备指令操作,实现了不影响USB总线数据通信和I/O口效率的基础上的无侵入式监听。
Because of different HID device descriptor and standard of different manufacturers’device communication pro-tocol,the data analysis was limited and protocol was analyzed hard in the process of realizing HID device without inva-sive monitoring. A kind of method without invasive monitoring was designed for the data monitoring of three types of equipment, the mouse, the keyboard and touch screen, which realizing the HID implement devices monitoring under the premise of without affecting the normal work of monitoring devices. The data of USB port through the method is captured;device descriptors were obtained; configuration and interface descriptors, data packet model was constructed from the descriptor information;the input packets of HID equipment data section were intercepted and captured;instruc-tions agreement was obtained; instructions were eventually got by contrasting the agreement/directive table. The HID equipment operation instruction can be analyzed in real time and the invasive monitoring without affecting the USB bus data communication and I/O port efficiency is realized.
出处
《长春理工大学学报(自然科学版)》
2013年第5期116-119,共4页
Journal of Changchun University of Science and Technology(Natural Science Edition)
基金
31基地项目
关键词
监听
USB
通讯协议
鼠标
键盘
触摸屏
monitor
USB
communication protocol
mouse
keyboard
touch screen