温室环境监控系统网关多进程调度方法  被引量:6

Schedule Algorithm of Multiple Threads of Gateway of Environmental Monitoring System in Greenhouse

在线阅读下载全文

作  者:侯琛[1] 王海波[2] 刘凤之[2] 史祥宾[2] 赵千川[1] 

机构地区:[1]清华大学自动化系,北京100084 [2]中国农业科学院果树研究所,兴城125100

出  处:《农业机械学报》2017年第5期167-173,共7页Transactions of the Chinese Society for Agricultural Machinery

基  金:国家自然科学基金项目(61425027;61425024);国家重点研发计划项目(2016YFB0901901);中国农业科学院创新工程项目(CAAS-ASTIP-2015-RIP-04);信息物理融合系统创新联合研究中心项目

摘  要:作为应用层与感知层的桥梁,网关通常具有多个进程。温室环境监控系统中各个进程间的调度是否合理直接影响到网关甚至温室环境监控系统的性能。针对网关的多进程调度问题,研究并设计了一种网关的多进程调度算法(Multiple thread schedule algorithm,MTSA)。该算法先通过网关向服务器推送数据的时间间隔、进程数目、最大功率与有效功率的关系来确定每个进程被挂起的时间片,然后通过合理地控制每一个进程的执行顺序及执行时间片来有效地降低数据阻塞度。在实验中,本文方法的数据丢失率为3.4%,而启发式方法的数据丢失率为56%,表明本文方法优于启发式方法。As Internet of things (IoT) has stepped out of the infancy and is gaining more and more popularity around the world, the gateway of environmental monitoring system has also always been attracting people' s eyes. With the capability to bridge application layer with sensing layer, gateway usually possesses multiple threads. Reasonably scheduling these threads matters most to the performance of gateway even the environmental monitoring system. Targeting at reasonable schedule, a kind of multiple threads schedule algorithm was researched and developed (MTSA) to weaken data jam by suitable duration of pending each thread and reasonable control for the execution sequence of thread. This duration was subject to the interval between two operations of pushing data from gateway to Web Server, the number of threads, and the relationship between maximal and effective power consumption. In order to overcome the difficulty in deciding the duration of pending each thread just by experience, the multiple threads integrated into the gateway of the environmental monitoring system were firstly displayed, and then the specific steps of MTSA were presented. In addition, the duration of pending each thread in MTSA was determined by taking the relationship between the maximal and effective power consumption into consideration, and the impact of MTSA on weakening data jam was also analyzed. With the purpose of demonstrating the performance of MTSA, a field experiment in the grape greenhouse was carried out. In this experiment, the comparison between MTSA and a popular algorithm of heuristic method (HM) was done in terms of decreasing the data loss to check the higher efficiency of MTSA than HM in guaranteeing that Web was capable of receiving the environment data, including temperature, relative humidity and illumine. As for the experiment results, data loss by NTSA was only 3.4% , which was much more less than that of 56% by HM, which verified the use of MSTA.

关 键 词:温室环境 监控系统 网关 多进程 调度 

分 类 号:TP274.2[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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