摘要
为解决HID设备与主机应用程序的通讯问题,首先对HID设备的性能特点和32位Windows环境下的通讯机制进行了分析,在此基础上设计出一个实用的新型HID设备通讯接口。该接口利用相关Windows API函数实现HID设备的识别、打开和关闭,并以异步模式实现设备与主机应用程序的双向通讯过程。实验编程以Wave Panel为平台,结果证明该通讯接口的通用性较好,能够有效地完成HID设备与主机应用程序的通讯功能。
To solve the communication problem between human interface devices(HID) and the computer applications,performance characteristics and the communication mechanism of HID in 32-bit Windows environment are analyzed first,based on that a new and practical communication interface is designed.Related Windows APIs are utilized by the interface to identify,open and close HID,and the two-way communication between HID and computer applications is achieved in asynchronous mode.Wave Panel is taken as experimental platform,and the results show that the interface is of good generality and communication function,it can be better accomplished with it.
出处
《计算机与现代化》
2013年第7期172-175,179,共5页
Computer and Modernization
基金
中央高校基本科研业务费专项基金资助项目(12zy019)