摘要
HID设备研发和使用中所面临的重要问题之一是设备与主机应用程序的通讯。文中以视频编辑专用HID设备Wave Panel为基础,首先简要介绍了HID设备的性能特点和Windows环境下的HID通讯机制,在此基础上设计出一个实用的HID设备通讯接口,该通讯接口利用相关Windows API函数实现对HID设备的识别、打开和关闭,并以异步模式完成设备与主机应用程序的双向通讯过程,最后在Wave Panel对该接口进行了编程实验。实验结果证明该接口的通用性较好,能够较好地实现HID设备与主机应用程序的通讯功能。
Communication between Human Interface Devices (HID) and the computer applications is one of the important problems in HID development and utilization. Based on Wave Panel of a special video editing HID, characteristics and the communication mechanism of HID in Windows environment are introduced at first, then at the basis, a practical communication interface is designed. Some related Windows API are utilized by the interface to identify,open and close HID,and the two-way communication between HID and the com- puter applications is achieved in asynchronous mode. The experimental results on Wave Panel show that the interface has good generality and communication function can be better accomplished through it.
出处
《计算机技术与发展》
2013年第5期138-141,共4页
Computer Technology and Development
基金
中央高校基本科研业务费专项基金项目(12zy019)
作者简介
崔阳(1979-),男,博士,讲师,研究方向为知识工程与知识发现。