摘要
为实现在分布式数据监测系统中自动获取监测数据,降低操作人员的工作强度,提出了一种基于消息和钩子的数据自动获取技术,建立了一套由多个受控的远程控制器与一台作为数据中心的服务器构成的分布式数据监测系统。描述了系统的组成结构、数据采集要求,数据采集流程。分析了Windows消息作用机制、Windows系统的钩子(Hook)技术,重点叙述了数据自动获取技术的5个方面:消息处理窗口的定义、自定义消息的定义,自定义消息处理程序的流程,钩子的安装思路,控制器队列数据监视器。系统实际运行表明,该数据自动获取技术表现稳定,传输数据快。
To achieve the target of getting the data automatically in a distributed data acquisition system, and reduce the labor intensity, an auto- data acquisition technology based on messages and hooks is developed. Then, a distributed data acquisition system which com- bines several remote controllers and a data center service is constructed. The system composition, data acquisition process and its requiments are described. The windows message, windows hook technology are analyzed. Especially the 5 aspects of the auto- data acquisition technology are described including the definition of message box and customer defined message, the customer defined message process, the solution for setting up the hooks, and the controller queue data auto-data acquisition technology is stable and exchanges the data very fast.
出处
《计算机工程与设计》
CSCD
北大核心
2010年第5期1009-1012,1026,共5页
Computer Engineering and Design
基金
浙江省丽水市科技计划基金项目(20080407)
关键词
WINDOWS消息
消息拦截
钩子
数据采集
分布式系统
windows message
message handling
hook
data collecting
monitor. The system is verified by practical test that the distributed data acquisition system