由于ZigBee网络和WiFi网络共同工作在2.4 GHz的频段上,因此会产生信道间干扰,严重影响ZigBee的网络性能。针对该问题,提出一种基于概率的载波侦听多路访问(CSMA)控制算法。在接收端节点计算包接收率,采用反馈包机制将包接收率发送给发送端节点,发送端节点根据包接收率大小判断网络干扰的强弱,并通过预先设置概率函数选择开启或者关闭CSMA。实验结果表明,不论是否有WiFi干扰,该算法都能够有效保证ZigBee的网络性能。
Because the ZigBee network and WiFi network work together in the 2.4 GHz band, it produces inter channel interference, which seriously affects the performance of ZigBee. In view of the above problems, a Carrier Sense Multiple Access (CSMA) control algorithm based on probability is proposed. The Packet Reception Rate (PRR) is calculated at the receiving node ,the feedback packet scheme is adopted to transmit the packets to the sending node, the sending node determines the strength of the network interference according to the PRR, and decides to open or close the CSMA with pre-set probability function. Experimental results show that the proposed algorithm can effectively guarantee the network performance of ZigBee, regardless of whether there is WiFi interference.