| With the development of industrialization,chemical flammable gas has increasingly spread to every corner of our production and life.Every year,due to the accident caused by the leakage of chemical flammable gas in the production storage and use process,its hidden dangers cannot be ignored.The indoor flammable gas leakage source monitoring and positioning system designed in this paper aims to realize the alarm,monitoring and leakage source location of indoor flammable gas leakage,so as to provide instantaneous safety response to the timely treatment of dangerous sources.This article focuses on indoor flammable gas leakage source monitoring and positioning,and carries out the following work:(1)The three-tier system structure design of "sensor network-control processing center-background monitoring and management system" is adopted.1)The node processor adopts STC15F2K60S2 chip,and the gas concentration sensor is used to build a 485 bus sensor network;2)The control processing platform uses S3C2440 A to build a Linux embedded environment for data processing,and the PTZ camera submodule uses UDP protocol network to transmit surveillance video Background;3)The background monitoring and management system is developed by C #.According to management needs,it includes four function interfaces: patrol monitoring control interface,PTZ manual control interface,coordinate system construction interface and node gas concentration display interface.(2)An improved 485 bus communication protocol based on CSMA / CD and adaptive CRC check backoff is proposed.By introducing carrier-sense multiple access /collision detection mechanism for channel interception,and adaptive CRC check backoff mechanism for conflict handling,each sensor node can actively upload concentration information and improve bus communication efficiency,ensuring indoor points Timely accuracy of gas concentration upload and alarm.(3)An automatic indoor coordinate system construction method based on PTZ camera distance measurement is proposed.The inverse calculation of the leak source not only needs to know the concentration of each node but also its coordinates.There are defects such as errors and cumbersome operations in manual measurement.In this paper,the PTZ camera is used to mark the pattern recognition,and the PID control algorithm is used to lock the pattern center,which can obtain the camera angle parameters.And calculate the distance of each node to automatically realize the construction of indoor coordinate system.(4)A destructive self-repair quantum genetic algorithm for damage location of indoor flammable gas leakage source is proposed.By constructing the Gaussian smoke cluster model as the prior model of indoor flammable gas diffusion,the destructive self-repair quantum genetic algorithm is destroyed to locate the leak source coordinates.The algorithm improves the search efficiency by integrating quantum computing into the genetic algorithm,destroys the destructive self-repair mechanism,improves the global optimization,and greatly improves the performance of the algorithm.Compared with the traditional genetic algorithm and the hybrid genetic-Nelder Mead algorithm,the proposed experimental results show that the proposed algorithm has higher leak source location accuracy and an average relative error of less than 5%. |