摘要
针对现有的煤矿安全监控系统文件同步模块功能单一且不可扩展的问题,提出了一种具有可扩展性的文件同步组件的设计方案。该组件采用事件触发模式识别发生改变的文件,选用HASH码作为文件更改判断依据,通过记录文件的最后修改时间来解决文件同步冲突问题,选用WCF进行服务器和客户端之间的通信。现场应用表明,该组件能够保证客户端和服务器之间配置文件的一致性,满足了煤矿安全监控系统的要求,提高了煤矿安全监控系统的可靠性。
In view of problems of single function and nonextensibility of file synchronization module of current monitoring and control system for coal mine safety,the paper proposed a design scheme of file synchronization component with extensibility.The component uses event-triggered mode to recognize changed file,selects HASH code as judgment basis of file change,solves problem of file synchronization conflict through recording the last modification time of file,and selects WCF to make communication between server and client.The field application showed that the component can ensure consistency of configuration file between server and client,which meets requirement and improves reliability of monitoring and control system for coal mine safety.
出处
《工矿自动化》
北大核心
2012年第3期8-10,共3页
Journal Of Mine Automation
基金
天地(常州)自动化股份有限公司研发项目(10GY062)
关键词
煤矿安全
监控系统
双机热备
文件同步组件
事件触发模式
HASH码
WCF
coal mine safety; monitoring and control system; hot-standby; file synchronization component; event-triggered mode; HASH code; WCF