第28卷 第8期 计 算机 技 术 与发 展 Vol.28 No.8
2018年8月 COMPUTERTECHNOLOGY AND DEVELOPMENT Aug. 2018
一种基于树莓派的多ZigBee 网关协作方案
肖 鹏,沈苏彬
(南京邮电大学计算机学院,江苏 南京 210003)
摘 要:在ZigBee 网络单网关模式下,靠近网关节点的路由节点与网络中其他路由节点相比,转发数据量更大导致过早消
耗能量,影响网络性能;单一网关的数据传输能力有限,易造成网关数据拥塞,降低了全网数据吞吐量。 对此,提出一种基
于树莓派的多网关协作方案。 ZigBee终端节点根据网关选择算法寻找到最优网关节点作为其数据的汇聚中心,算法将网
关负载和数据路由成本作为主要的约束参数,通过两者之间的关系计算出网关最优值。 树莓派作为一个开源的硬件平
台,硬件资源丰富,结合QT应用框架,能够满足ZigBee 网关的应用需求。 实验结果表明,网关测试平台使用ZigBee多网
关协作方案,可以降低网络功耗和数据时延,增加网络的数据吞吐量,达到了提高无线传感器网络系统工作能力的目的。
关键词:ZigBee;物联网网关;无线传感器网络;树莓派
中图分类号:TP393 文献标识码:A 文章编号:1673-629X(2018)08-0175-05
doi:10.3969/j.issn.1673-629X.2018.08.037
A Multi-ZigBee Gateway Collaboration Scheme Based on Raspberry
XIAO Peng,SHEN Su-bin
(School of Computer,Nanjing University of Postsand Telecommunications,Nanjing210003,China)
Abstract:In the ZigBee network with only one gateway,the router near the gateway node consumes more energy than other router be-
cause the former needsto forward moredatainthenetwork,anditaffectsnetworkperformance. Thedatatransmission capacity ofa sin-
gle gateway islimited,which makesthe data congestion of gateway and reducesthe data throughput of the whole network. For this,we
propose a multi-gateway cooperation scheme based on raspberry. The ZigBee terminal nodesfind optimal gateway asthe data aggrega-
tion center accordingtothegateway selection algorithm which calculatesthe optimal value ofthegatewayusingtherelationship between
the gateway loadanddataroutingcost. Raspberry,anopen sourcehardwareplatform,meetstheZigBeegatewayapplicationrequirements
due to the rich hardwareresourcescombinedwith QTapplicationfram