Abstract:Traditional wireless network protocol stacks have some problems, such as weak hardware compatibility, high memory and CPU usage, complex function interface and so on. Using such stacks will increase the cost of software and hardware for project development. In this paper, a lightweight layered protocol stack is designed through the hierarchical design of protocol stack architecture, the open design of hardware layer, the re-entrant design of function. It has the characteristics of low system resource occupancy, high portability and multi-card cooperation. IAR EW8051, KEIL MDK, STM32CUBE are utilized as software platforms to develop and test protocol stack. The test results show that this protocol stack can be applied to wireless chips such as CC1100, CC2500, SI4463 and SX1278, and it can effectively deal with signal interference in complex environment and enhance the effect of point-to-multipoint communication, which has high practical value.