Abstract:online measurement of transmission and storage data packet loss rate is high due to the remote multi hop communication rely only onWireless sensor networks. The obstacle avoidance ability of the simulation robot fish in the two-dimensional structural design stage is poor. data acquisition and transmission costs of GPRS traffic is high all weather.in order to solve the above problems, a set of rea-time monitoring system of water quality for automatic obstacle avoidance is designed. the system is designed by using the mobile terminal program, using 3D acquisition path tracking algorithm and WSNs and Wifi hot spot technology to realize the precise control of the robot fish, according the set depth and planning of acquisition point, achieve five water quality environmental datas including of water level and temperature, pH, dissolved oxygen, conductivity, turbidity, etc in real-time acquisition, processing, remote storage, display, analysis and warning. the overall design of the system, the structure and control system design, the hardware system of the terminal node and coordinator, the software design of the upper and lower computer are given.the application of the system to the five sampling points in the Chaohu Lake,the average error rate of water temperature, dissolved oxygen and pH value were 0.18%, 0.5% and 0.01%, respectively,much higher than other water quality on-line monitoring accuracy requirements,to achieve the expected results. It has a very high value for the on-line monitoring and early warning ofreservoir and fine aquaculture.