沼气工程远程监控Socket通讯稳定可靠性及效率策略  被引量:2

Research on Stability,Reliability and Efficiency of Communication Programming Based on Socket in Biogas Remote Monitoring System

在线阅读下载全文

作  者:马丽君[1] 吴军辉[1] 朱洪光[1] 赵燕丽[1] 宋兵跃[1] 

机构地区:[1]同济大学现代农业科学与工程研究院生物质能源研究中心,上海200092

出  处:《中国沼气》2010年第5期3-6,26,共5页China Biogas

基  金:国家科技支撑计划项目(2008BADC4B04);国家科技支撑计划项目(2008BADC4B05);筹建上海设施农业工程技术研究中心项目(08DZ2210700);上海市科委项目(07DZ12050)

摘  要:建立远程监控系统已成为现代沼气工程发展的实际需要,网络通讯是远程监控系统中的关键环节,由于受地处偏远郊区的限制,网络不稳定性和通讯成本问题非常突出。如何结合沼气工程远程监控数据传输的自身特点,制定合适的网络通讯策略,直接关系到通讯的稳定可靠性和效率。本文通过数据通讯的短帧格式,沼气站点编号校验,以及中断重连机制等措施解决通讯的稳定性;通过命令字,数据帧长度,以及校验码设计等字节设置解决通讯的可靠性;通过通讯软件的定时器设计,多重连接防止机制,以及心跳信号机制等措施解决通讯的效率问题。这些策略,通过通讯协议设计,数据帧接受处理机制,以及客户端、服务器端软件架构设计来实现,经调试运行是可行的。The building of remote monitoring system is the basic requirement of the modern biogas project.The key step of this system is the network communication.Due to the restrictions in rural areas,the unstability of the network and the cost of communication network are becoming a problem.It is a better to design an appropriate network communications program according to the data characteristics of the biogas remote monitoring system,for they directly related to the stability,reliability and efficiency of the whole system.This paper showed a way to keep the stability of communication by the short frame format data communicating,biogas site ID verification,and re-connection mechanism for network interruption etc.It ensures the reliability of data through setting the bytes of the command word,data frame length,and the checksum etc.It improves the efficiency by setting timer in software,preventing multiple connections,as well as,the heartbeat mechanism.By designing the communication protocol,the data frame processing technology,and the architecture of client and server software,all of these measures are accomplished.It was proved feasibly by debugging.

关 键 词:沼气工程 SOCKET通讯 稳定性 可靠性 效率 

分 类 号:S126.4[农业科学—农业基础科学] TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象