Recently, with the development of mobile communication industry, the security problems how to protect the battery from theft at the base station is becoming more and more serious. According to reports, for stolen battery, in August 2010, communications operators made statistics. It shows that every three days a battery were stolen, only in 2010. The direct economic loss caused by battery stolen went up to nearly several millions yuan. Solving such the security problem effectively has become one of the important topics, That is, it needs to answer how to build a security communication network with providing quality services, improving economic efficiency and reducing the system failure rates.This paper will design and implement a security system based on ZigBee network. And, the whole system consists of alarm host and sub-machines. Through the wireless communication, the host always makes detection to ensure that sub-machine is online. The sub-machine does the same detection at the same time. If there is any security problem, the the system will switch to positioning and the communicating module, and will output the alarm. By the testing of the anti-theft system, the system and algorithm are work well to meet with the need.Because of the wireless communication, we need to consider the system security and anti-interference. In this paper, the design of hardware and software of the system will be present in detail. The communication protocol between the host and a sub-machine will be used based on encrypt and fault tolerance mechanisms. Collect the Received Signal Strength Indication (RSSI) several times and make their average. If a node lost and last more than the threshold we set for the lost times, with the method we presented, an alarm will be made for the interference... |