| Gas alarm is a gas leakage monitoring device.When the leakage occurs,it can give an alarm in time and take corresponding measures.It plays an irreplaceable role in ensuring the safety of domestic gas use.With gradual maturity of various theories and technologies in the field of gas monitoring,gas users are more inclined to obtain the data of gas leakage remotely through smart phones,and can receive the accurate information about remote warning from the monitoring device and the information about the status of the linkage processing device in time in case of gas leakage.This paper proposes an ARM-based(Advanced RISC Machine)solution for remote monitoring and automatic processing of domestic gas to achieve three core functions,i.e.remote real-time gas monitoring,automatic linkage processing of gas leakage and issuing of warning message.In order to implement the above three core functions,this paper explores the software and hardware system architecture of embedded device based on ARM+Linux framework,the remote gas monitoring software of smart phone based on Qt framework,and the Grey Prediction GM(1,1)model of gas leakage based on grey prediction theory,respectively.With S3C2440 A chip as processor,and Linux as operating system,the hardware system of embedded device selects combustible gas acquisition module,GPRS module,network card module,memory module and related modules of linkage device,designs the power circuit,reset circuit,memory circuit,network card circuit,serial port socket circuit and JTAG logic debugging circuit,and formulated the explosion-proof scheme and memory scheme.The software system of embedded device transplants U-Boot,trims Linux kernel as needed,builds the root file system with Busy Box tool,designs logic processing program,gas acquisition program,data packet packaging program,storage program,network transmission program and emergency warning program.A cross-platform Qt development environment is built in the gas remote monitoring software of smart phone,and the login verification interface,gas information monitoring page and historical information retrieval page are designed with QMLlanguage.In the grey prediction algorithm,the establishment method and accuracy test method of GM(1,1)model for gas leakage are determined.Based on the model,a multi-threshold early warning system composed of linkage device and emergency alarm device is established,in which the linkage processing device consists of sound and light alarm module,gas solenoid valve and exhaust fan,and the emergency alarm consists of text message and telephone.In the embedded device,the JXM-CH4 module is used to implement real-time gas data acquisition,the JSON tool is used to implement the gas data packet packaging,the My SQL tool is used to achieve data storage and retrieval,and the TCP protocol is used to achieve the reliable point-to-point WAN transmission from the embedded device to the smart phone.According to the data actually acquired,the early warning system establishes the grey prediction for gas leakage GM(1,1),thereby implementing the control and status information feedback of the linkage processing device,short-term prediction of gas leakage and timely sending of the corresponding level of early warning information.The gas remote monitoring software of smart phone terminal is used to implement the display of gas concentration information and operation status information of the linkage device,and realize the retrieval of historical gas data and the receiving of emergency warning information.Through test and analysis,this paper establishes the gas remote monitoring and automatic processing system and implements the three core functions,thereby effectively solving the problems of remote real-time monitoring for gas leakage,linkage automatic processing of gas leakage and accurate receiving of early warning information and the status information of the linkage device.Therefore,the expected design objectives have been achieved. |