| In large chemical plant areas,equipment failures are often caused by aging and corrosion of equipment,which in turn will cause some toxic gas leakage and even lead to explosions.If it is not dealt with in time,the leakage of gas will inevitably cause serious damage to the relevant staff in the plant area.The toxic gas in continuous objects is different from the more common continuous objects such as liquid water and oil.Therefore,it is not enough to report only the inner boundary of toxic gas,and it is also necessary to clarify the outer boundary of toxic gas diffusion,which will help the emergency evacuation of workers in the plant area.The technical advantages of the wireless sensor network can be used to obtain the location information of the plant area,and the abnormal value of the gas concentration can be monitored by the nodes to determine the gas leakage point and the safe area.The main research contents of this paper are as follows:Firstly,this paper analyzes in detail the significance of WSN in the monitoring system of toxic gas leakage in chemical plants,and expounds the architecture of WSN,classical localization algorithm,gray wolf optimization algorithm and related technologies for determining safe area.Secondly,by analyzing the idea of traditional non-line-of-sight DV-Hop localization algorithm,aiming at the shortcomings and limitations of the algorithm,a DV-Hop localization algorithm based on multi-communication radius and improved gray wolf optimization algorithm is proposed.The algorithm uses RSSI value and multi-communication radius division to correct the minimum number of hops.The average hop distance is weighted by the weighting coefficient to avoid the accumulation of errors caused by the hop distance.The improved gray wolf optimization algorithm is used to replace the traditional least squares method,and the optimal coordinates of the unknown nodes are found through continuous solution and optimization.The algorithm proposed in this paper makes up for the shortcomings of traditional algorithms,reduces the accumulation of errors to a certain extent,and enhances the positioning accuracy of nodes.Finally,the localization algorithm proposed in this paper is applied to the gas leakage monitoring system of chemical plant,and the gas leakage monitoring system of chemical plant is designed and implemented.According to the actual needs of the system,the hardware equipment is strictly selected,and the data acquisition is completed by using the CC2530 chip equipped with various types of sensors.The host computer realizes the functions of node positioning,real-time receiving analysis data and dynamic display,and at the same time completes the function of dynamic division of the safety area.It has been verified by tests that the system runs stably and performs well in every aspect,meeting the practical needs of predicting the safe area of toxic gas leakage in large chemical plants. |