Design of File Synchronization Component of Monitoring and Control System for Coal Mine Safety
-
摘要: 针对现有的煤矿安全监控系统文件同步模块功能单一且不可扩展的问题,提出了一种具有可扩展性的文件同步组件的设计方案。该组件采用事件触发模式识别发生改变的文件,选用HASH码作为文件更改判断依据,通过记录文件的最后修改时间来解决文件同步冲突问题,选用WCF进行服务器和客户端之间的通信。现场应用表明,该组件能够保证客户端和服务器之间配置文件的一致性,满足了煤矿安全监控系统的要求,提高了煤矿安全监控系统的可靠性。Abstract: 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.
点击查看大图
计量
- 文章访问数: 34
- HTML全文浏览量: 5
- PDF下载量: 6
- 被引次数: 0