| With the rapid development of mobile communication technology,wireless communication network occupies an increasing proportion in networking communication,and has been paid more and more attention in various application fields.For wireless AD hoc network,the research of communication protocol plays an important role in the development of the network.In order to meet the actual needs of communication protocols in wireless AD hoc networks in different application scenarios,this paper carries out the implementation and research of wireless communication protocols based on ZYNQ embedded,and provides technical accumulation in engineering implementation for wireless AD hoc networks to complete communication work by using different network protocols in different network environments.The main contents and achievements are as follows:1.The basic principle and working mechanism of AODV protocol and flood communication protocol are studied.The hardware circuit configuration based on PYNQ-Z2 development board is carried out according to the required functions of the protocol operation.The hardware configuration information file after integrated circuit mapping is obtained,which provides a hardware platform for the embedded Linux system transplanted by the protocol.2.Based on PYNQ-Z2 development platform,the customization function configuration of embedded system and the configuration of embedded application development environment are systematically studied.On the basis of Ubuntu system,a cross-compilation environment is established,and the kernel,root file system and engineering device tree of embedded system are customized with Petalinux tool.On this basis,the startup image and kernel image are constructed to ensure the normal startup and operation of embedded Linux operating system in PYNQ-Z2 development platform.The device tree file is generated comprehensively,and the root file system is mounted,so that the embedded platform has the basic conditions for application development.3.On the basis of sorting out the source code architecture of AODV protocol,some API of kernel layer is redesigned according to the changes of Linux kernel version,and the implementation method of loadable module in kernel layer is redesigned with Petalinux,which realizes the operation of AODV protocol on high version embedded Linux operating system.The communication test between the protocol and the upper application program in embedded system environment is completed.Before transmitting user data,the AODV protocol needs to establish a route between two communication nodes in advance.However,when the network is disconnected within a certain period of time,the AODV protocol cannot find an effective route between two communication nodes,the communication between nodes cannot be completed.In view of the above problems,the logic function of switching from AODV protocol to flooding protocol is completed,and the application of flooding protocol in embedded Linux system is designed and implemented.Nodes running this protocol can store and carry data,and the stored data can be forwarded and exchanged when the two nodes are moved to the range of mutual communication.The storage-carry-forward mode can be used to realize the communication between two communication nodes through different transmission paths.The test results show that the AODV protocol can be successfully run in the high version embedded Linux system.It can establish the communication link between the source node and the destination node through route discovery when the source node and the destination node are not directly connected,and complete the establishment of AD hoc network.The communication between nodes can be completed through the data forwarding of intermediate nodes.Node terminals running the flooding protocol can find neighbor nodes within the communication range of their own nodes.Nodes can forward the data stored and carried by their own nodes to neighbor nodes,and finally complete the communication between source node and destination node through different transmission paths. |