| Due to the specialty of Non-Infrastructure and Self-Organize, people are paying more and more attentions to Ad hoc network,which allows people and devices to access to construct a network rapidly and communicate with each other with no pre-existing infrastructure.The positioning of the Ad hoc network is the fundamental and key technology for Ad hoc network.The topology structure built with the location information can provide help to the router algorithms, that will decrease the load and increase the efficiency of the network. What is more ,the location information is the basic factor for the smart network to make decision.This paper analyses and compares the performance of several position method.According to the demand of project , a method which uses relative positon algorithm based on GPS and IEEE 802.15.4(Zigbee) stack is decided.This paper analyses the characteristic and principle of ultrasonic wave. A kind of ultrasonic distance detection system based on micro-control unit is designed, which synthesizes variable gain and temperature compensation.A kind of DSP algorithm is implemented on ARM hardware platform to deal with the ultrasonic echo wave signal,in order to improve the accuracy and flexibility.This paper realized the hardware constructing and the software programming for the Ad hoc network's relative position The work includes selection of MCU and GPS module,drawing the schematic and PCB circuit board,parsing the NMEA 0183 protocol,sampling transmiting and processing the GPS data. Outdoor experiment was made, which shows Ad hoc network's relative position algorithm can bring more accurate result and meet the demand of ad hoc network project. |