| ZigBee technology has a very broad application prospect in consumer electronics, industrial control, automotive and Intelligent Transportation, Agricultural automation and Medical auxiliary control. CC2530of TI is the real solution of integration, it meets all the requirement of the underlying hardware implementation and demand for smaller and low power consumption of ZigBee technology. ZigBee protocol stack(ZStack) that TI provides turning the software development of ZigBee nodes into the application layer program development, reduces the workload of software developers as much as possible.Although ZStack provides a number of routines for ZigBee application developers to refer to, these routines only gives the realization of a simple application, for different actual cases, these routines can not meet the requirement of development. First, the ZigBee network is a address centric network, ZigBee network communication is realized by the network address; most of the ZigBee application system are application centric network, that user is concerned with the application of the function of each ZigBee device, but not its network address. Therefore, the majority of ZigBee application system is needed in the application layer development of network management function. Second, ZStack support the terminal nodes with Sleep function to reduce node power consumption, which is very necessary for the battery powered terminal nodes; but in the dormant state, the terminal node serial receiver will cause loss of datas and can not work normally. For the terminal node with demands of low power and serial communication we need to solve the contradiction of low power consumption and serial communication. Third, for complicated ZigBee network with large amounts of rudimentary Endpoints. the process of its development will become more complex, we need to creat a convenient design method to reduce the complexity of software development.This paper makes a research on the working mechanism of ZStack, analyzes and solves the three problems mentioned above, gives solutions for the specific software solutions combining two practical ZigBee application system development process. The main work and innovation points of this paper are as follows:1, Developed the application layer network management of the protocol stack Developed configuration interface to configure the parameters of the equipment, achieve the ZigBee network configuration; using the mark of network layer net joinment, it establishes the mapping relations between the nodes of the network address and its application function, simplify network management, improve the user experience.2, Developed of the serial data transmission function:lowing power consumption by increasing port triggering signal, realizes the control of terminal dormancy, solves the node sleep when the serial port to receive the packet loss problem, reduce the power consumption of node; for a large number of data communication needs, design the data transmission mode is reasonable, the serial port and wireless channel data load used to the greatest extent, to improve the communication efficiency and ensure the stability of data transmission.3, For complicated ZigBee network with large amounts of rudimentary Endpoints, this paper puts forward a realization method of general terminal:dial the code switch to identifies a node, realized the hardware and software that can be in common use, reduces the complexity of software development. |