| In existing wireless communication technologies,most mobile communication technologies require a central control device such as a base station,an access service point,or a foreign agent to provide a wireless access point to connect to an existing network.However,in some special circumstances or emergencies,such as combat,disaster relief,field scientific exploration environment,there can not have pre-installed equipment or equipment has been damaged.Under these circumstances,in order to meet the dynamic network,rapid deployment,independent of external central control equipment,mobile communication technology,the urgent needs of wireless ad hoc network technology came into being.Wireless self-organizing network technology consists of a group of mobile terminal nodes with wireless communication transceiver devices.The mobile end-points themselves form a network and do not need the support of the existing information infrastructure.This topic belongs to the sub-project of the comprehensive intelligent terminal project of XX Institute.Based on the research background of wireless ad-hoc network and the technical basis of ZigBee,the dual-chip hardware platform of STM32F103 and A7190 is chosen as the research object,and the wireless communication of the handheld terminal in ad hoc network mode is realized.This paper designs the overall hardware framework of the ad hoc network module,completes the hardware circuit diagram,PCB design work and circuit debugging by the selected chip.This paper studies the state machine running mechanism of msstatePAN protocol stack in the data transmission and reception group.Transplanting the msstatePAN protocol stack to the hardware platform of the project,completing the protocol stack clock configuration and various communication interface driver configuration and so on,make protocol stack in the new hardware platform to normal operation.Packaging A7190 related interface function and designing external interrupt service function achieve transceiver data between the protocol layer and the RF module.Defining the USB communication data frame format and transplanting the Custom_HID routine based on the USB2.0 communication protocol and modifing the USB related configuration and writing the USB transceiver interface function realize the USB communication between the network module and the mobile phone.The test software is used to test the networking,communication quality and online communication of the ad hoc network module.The test results show that the self-organizing network module can realize the function of network communication,and the network has a certain self-healing property,and the communication quality is good in 1.8km distance,which verifies the reliability,feasibility and stability of the module.After the ad hoc network module and the mobile phone are connected,the voice text communication in the ad hoc network mode can be realized,and the problem that the original wireless network can not be communicated when the central control equipment such as the base station does not exist or is paralyzed is solved. |