Control method, device and equipment of smart home gas valve based on WIFI
Through the WIFI smart home gas valve control method, gas flow and temperature are monitored in real time and valves are automatically closed, solving the problems of gas leakage and fire explosion risks, and providing a comprehensive safety monitoring and rapid response mechanism.
Patent Information
- Application Number
- CN202311694885.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2043-12-11
AI Technical Summary
Gas valves used for households may not be completely closed when not in use, resulting in gas leakage and increasing the risk of fire and explosion, especially if the gas stove is extinguished when the person leaves the room and the gas continues to be supplied.
Using the smart home gas valve control method based on WIFI, the gas flow rate is obtained periodically and the temperature is monitored, and the temperature is compared with the preset threshold. If it is below the threshold, it generates a leakage signal and sends it to the cloud. Activates the alarm and automatically shuts off the gas. Valve to ensure safety.
Timely detection and alarm of gas leakage is achieved, the risks during gas use are reduced, the safety of users is ensured, and fires and explosion accidents caused by gas leakage are avoided.
Smart Images

Figure CN117685407B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gas valve equipment, and in particular to a control method, device and equipment for a smart home gas valve based on WIFI. Background Art
[0002] Gas valve is an important component in the gas supply system, used to control the flow of gas. The valve can be operated manually or automatically, and its main function is to open, close or regulate the flow of gas through the pipeline.
[0003] Manual gas valves require users or technicians to open or close them personally. This type of valve is usually used in household gas appliances, such as gas furnaces or water heaters.
[0004] Automatic gas valves are controlled by electronic control systems and are commonly found in more complex gas systems, such as central heating systems or large industrial gas equipment.
[0005] For the gas valves currently used in households, there is a problem that the gas valve is not completely closed when not in use. Once the gas valve is not completely closed, it will cause gas leakage. At this time, if there is an open flame or spark, it will cause a fire. In serious cases, it will cause an explosion, causing personal and property damage, which is not conducive to the use of gas.
[0006] Secondly, when using gas, people may leave the room for a short time. At this time, if the fire on the gas stove is extinguished, the gas will continue to be supplied to the gas stove, causing a large amount of gas leakage. If the user enters the house without knowing it, once turning on the lights, using the mobile phone or smoking, it will cause an explosion and threaten personal safety. Summary of the invention
[0007] Based on this, it is necessary to propose a control method, device and equipment for a smart home gas valve based on WIFI to address the above problems.
[0008] A control method for a smart home gas valve based on WIFI, the method comprising:
[0009] Periodically obtain the gas flow rate passing through the gas valve;
[0010] Determine whether the gas flow is greater than 0. If the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal, the gas leakage time, and a leakage warning instruction if the temperature of the gas stove is less than the first threshold;
[0011] Sending the gas leakage signal to the cloud;
[0012] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0013] In one embodiment of the present invention, the method further comprises:
[0014] If the gas flow is greater than 0, the gas flow of the gas valve is obtained in real time during the detection period and uploaded to the cloud.
[0015] In one embodiment of the present invention, the method further comprises:
[0016] If the gas flow rate is greater than 0, the gas stove temperature and the real-time gas flow rate are obtained in real time within the detection period, and a combustion temperature difference is generated according to the gas stove temperature and the real-time gas flow rate;
[0017] Comparing the combustion temperature difference with a second threshold, and generating a gas combustion abnormality signal if the combustion temperature difference is less than the second threshold;
[0018] And the gas combustion abnormal signal is sent to the cloud.
[0019] In one embodiment of the present invention, if the gas flow rate is greater than 0, the step of obtaining the gas stove temperature and the real-time gas flow rate in real time within the detection period, and generating the combustion temperature difference according to the gas stove temperature and the real-time gas flow rate further includes:
[0020] Calculating the corresponding gas combustion temperature according to the real-time gas flow rate;
[0021] The difference between the gas stove temperature and the corresponding gas combustion temperature is calculated to obtain the combustion temperature difference.
[0022] In one embodiment of the present invention, the method further comprises:
[0023] Generate alarm signals and control the sirens to give warnings;
[0024] It detects whether the shut-off valve is closed within the threshold time. If it is not closed at the end of the threshold time, a valve closing signal is generated, and the valve closing signal is sent to the gas valve. The MOS tube on the gas valve executes the valve closing signal. The MOS tube on the gas valve drives the driving motor on the gas valve to move, so as to drive the shut-off valve on the gas valve to close the gas channel of the gas valve.
[0025] In one embodiment of the present invention, the method further comprises:
[0026] After the closing valve closes the gas channel of the gas valve, it detects whether there is a user approaching within the first range. If there is a user approaching, it detects whether a valve opening signal is received. If the valve opening signal is received, it is sent to the MOS tube on the gas valve. The MOS tube on the gas valve executes the valve opening signal. The MOS tube on the gas valve drives the driving motor on the gas valve to move, so as to drive the closing valve on the gas valve to open the gas channel of the gas valve.
[0027] In one embodiment of the present invention, the method further comprises:
[0028] If the gas flow is equal to 0, then wait for the next cycle to obtain the gas flow of the gas valve.
[0029] A WIFI-based smart home gas valve control system, the system comprising:
[0030] A gas flow acquisition module, used for acquiring the gas flow passing through the gas valve;
[0031] A judgment module, judging whether the gas flow is greater than 0 or judging whether the temperature of the gas stove is less than a first threshold;
[0032] A gas stove temperature acquisition module is used to obtain the temperature of the gas stove;
[0033] A gas leakage signal generating module, which generates a gas leakage signal according to the judgment result of the judging module;
[0034] A sending module, used for sending the gas leakage signal to the cloud;
[0035] An execution module executes a leakage warning instruction;
[0036] The system performs the following steps:
[0037] Periodically obtain the gas flow rate passing through the gas valve;
[0038] If the gas flow rate is greater than 0, the gas stove temperature is obtained in real time during the detection period, and the gas stove temperature is compared with the first threshold. If the gas stove temperature is less than the first threshold, a gas leakage signal, gas leakage time, and leakage warning instruction are generated;
[0039] Send gas leak signals to the cloud;
[0040] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0041] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0042] Periodically obtain the gas flow rate passing through the gas valve;
[0043] Determine whether the gas flow is greater than 0. If the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal, the gas leakage time, and a leakage warning instruction if the temperature of the gas stove is less than the first threshold;
[0044] Sending the gas leakage signal to the cloud;
[0045] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0047] Periodically obtain the gas flow rate passing through the gas valve;
[0048] Determine whether the gas flow is greater than 0. If the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal, the gas leakage time, and a leakage warning instruction if the temperature of the gas stove is less than the first threshold;
[0049] Sending the gas leakage signal to the cloud;
[0050] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0051] Implementing the embodiments of the present invention will have at least the following beneficial effects:
[0052] The present invention provides a control method for a smart home gas valve based on WIFI, wherein the system utilizes a sensor to periodically measure the gas flow through the gas valve.
[0053] When the system detects that the gas flow rate is greater than 0 (ie, the gas is being used), the system automatically starts to monitor the temperature of the gas stove in real time during the detection cycle.
[0054] The system compares the real-time monitored gas stove temperature with a preset first threshold value. If the gas stove temperature is lower than the first threshold value (indicating that the stove is leaking), the system determines that it is leaking and generates an alarm signal.
[0055] Once a gas leak signal is generated, the system sends it to the cloud.
[0056] If the temperature of the gas range is lower than the first threshold, the system identifies it as a leakage condition and generates a gas leakage signal.
[0057] The leakage signal is sent to the cloud, and the system activates the alarm in the home, and the user may be notified via mobile applications or text messages to remind the user that there is a gas leak, so as to avoid personal and property damage caused by gas leaks.
[0058] The WIFI-based smart home gas valve control method provides comprehensive safety monitoring and rapid response mechanisms, greatly reducing the risks in the use of gas. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0060] in:
[0061] Figure 1 It is a flow chart of a method for controlling a smart home gas valve based on WIFI in one embodiment;
[0062] Figure 2 It is a flow chart of a method for controlling a smart home gas valve based on WIFI in another embodiment;
[0063] Figure 3 A flowchart of a method for controlling a smart home gas valve based on WIFI in yet another embodiment;
[0064] Figure 4 It is a structural block diagram of a control system of a smart home gas valve based on WIFI in one embodiment;
[0065] Figure 5 FIG. 4 is a structural block diagram of a computer device in one embodiment.
[0066] 200. A control system for a smart home gas valve based on WIFI; 210. A gas flow acquisition module; 220. A judgment module; 230. A gas stove temperature acquisition module; 240. A gas leakage signal generation module; 250. A sending module; 260. An execution module. DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0068] The present invention provides a WIFI-based smart home gas valve control method, the method comprising:
[0069] S101, the system periodically obtains the gas flow rate passing through the gas valve;
[0070] S102, the system determines whether the gas flow rate is greater than 0;
[0071] S103, if the gas flow rate is greater than 0, the system obtains the gas stove temperature in real time during the detection period;
[0072] S104, the system compares the temperature of the gas stove with a first threshold;
[0073] S105, if the temperature of the gas stove is less than the first threshold, the system generates a gas leakage signal, the gas leakage time, and a leakage warning instruction;
[0074] S106, the system sends the gas leakage signal to the cloud;
[0075] S107: The system executes the leakage warning instruction of the gas leakage signal to control the alarm to issue a warning.
[0076] Please refer to Figure 1 In this embodiment, the system uses a sensor to periodically measure the gas flow through the gas valve.
[0077] When the system detects that the gas flow rate is greater than 0 (ie, the gas is being used), the system automatically starts to monitor the temperature of the gas stove in real time during the detection cycle.
[0078] The system compares the real-time monitored gas stove temperature with a preset first threshold value. If the gas stove temperature is lower than the first threshold value (indicating that the stove is leaking), the system determines that it is leaking and generates an alarm signal.
[0079] Once a gas leak signal is generated, the system sends it to the cloud.
[0080] If the temperature of the gas range is lower than the first threshold, the system identifies it as a leakage condition and generates a gas leakage signal.
[0081] The leakage signal is sent to the cloud, and the system activates the alarm in the home, and notifies the user through a mobile app or text message to remind the user that there is a gas leak, thus avoiding personal and property damage caused by gas leaks.
[0082] The WIFI-based smart home gas valve control method provides comprehensive safety monitoring and rapid response mechanisms, greatly reducing the risks in the use of gas.
[0083] It should be noted that the gas flow sensing probe is installed on the inner wall of the valve pipe to sense the gas flow.
[0084] The first infrared sensor is arranged on the wall and faces the gas stove. The first infrared sensor is used to monitor the temperature of the gas stove.
[0085] The first threshold is a manually preset value range.
[0086] The system uses sensors to periodically measure the gas flow through the gas valve. This periodic monitoring is in seconds or minutes, ensuring continuous monitoring.
[0087] Enables the system to continuously monitor gas flow and promptly detect any minor leaks or abnormal flow, even when not in use.
[0088] When the system detects that the gas flow is greater than 0 (ie the gas is being used), it automatically starts to monitor the temperature of the gas stove in real time.
[0089] Ensure real-time temperature monitoring while the gas is in use so that abnormalities can be detected immediately if the gas stove is actually off but the gas is still flowing.
[0090] The system compares the real-time monitored gas stove temperature with a preset first threshold value. If the gas stove temperature is lower than the threshold value (indicating that the stove is leaking), the system determines that it is leaking and generates an alarm signal.
[0091] It can accurately distinguish between normal gas usage and potential leaks, automatically triggering a safety response without human supervision.
[0092] Once a gas leak signal is generated, the system sends it to the cloud, such as Wi-Fi or cellular networks.
[0093] By transmitting alarm signals to the cloud, the system can not only trigger the home alarm system, but also notify remote users or emergency services. This ensures a timely response and allows users to get real-time updates even when they are not at home.
[0094] In one embodiment of the present invention, the method further comprises:
[0095] If the gas flow rate is greater than 0, the gas flow rate of the gas valve is obtained in real time during the detection period;
[0096] S108. The system uploads the real-time acquired gas flow of the gas valve to the cloud.
[0097] In this embodiment, when the system detects that the gas flow rate is greater than 0, it indicates that the gas is being used, and the system will immediately start to monitor the gas flow rate at the gas valve in real time.
[0098] Real-time monitoring ensures continuous data recording during gas usage, allowing the system to instantly capture any abnormal flow changes, thereby improving the response time to potential problems.
[0099] The monitored gas flow data is uploaded to the cloud. Through the built-in wireless communication module (such as Wi-Fi or cellular network), the data is sent to the cloud server.
[0100] Cloud data storage enables long-term data tracking and analysis, while providing historical data reference for users and maintenance personnel. It allows remote monitoring and control, enhancing the flexibility and reliability of the system.
[0101] It not only improves home safety, but also enhances data management and remote control capabilities, making gas use safer, more efficient and convenient.
[0102] In one embodiment of the present invention, the method further comprises:
[0103] S109: If the gas flow is equal to 0, the system waits for the next cycle to obtain the gas flow of the gas valve.
[0104] In this embodiment, the system periodically detects the gas flow rate of the gas valve.
[0105] When the system detects that the gas flow is equal to 0, it recognizes that there is currently no gas usage and no leak occurs.
[0106] In this state, the system enters a power-saving periodic detection mode.
[0107] In this mode, the system detects the gas flow at a preset longer time interval, for example, once every hour.
[0108] If a change in gas flow from 0 is detected during a subsequent detection cycle, the system will readjust its operating mode to respond to this change.
[0109] Without sacrificing safety, the system effectively reduces energy consumption when there is no gas, making the overall operation more efficient and economical.
[0110] In one embodiment of the present invention, the method further comprises:
[0111] If the gas flow rate is greater than 0, the gas stove temperature and the real-time gas flow rate are obtained in real time within the detection period, and a combustion temperature difference is generated according to the gas stove temperature and the real-time gas flow rate;
[0112] S203, the system compares the combustion temperature difference with a second threshold;
[0113] S204, if the combustion temperature difference is less than the second threshold, generating a gas combustion abnormality signal;
[0114] S205, and sending the gas combustion abnormality signal to the cloud.
[0115] In one embodiment of the present invention, if the gas flow rate is greater than 0, the step of obtaining the gas stove temperature and the real-time gas flow rate in real time within the detection period, and generating the combustion temperature difference according to the gas stove temperature and the real-time gas flow rate further includes:
[0116] S201, the system calculates the corresponding gas combustion temperature according to the real-time gas flow rate;
[0117] S202: The system calculates the difference between the gas stove temperature and the corresponding gas combustion temperature to obtain a combustion temperature difference.
[0118] Please refer to Figure 1 to Figure 2 In this embodiment, when the gas flow rate is greater than 0, the system simultaneously monitors the gas flow rate and the temperature of the gas stove in real time.
[0119] The system predicts the theoretical combustion temperature based on the real-time gas flow rate, and compares it with the actual gas stove temperature to calculate the combustion temperature difference.
[0120] The calculated combustion temperature difference is compared with a set second threshold value, which is used to determine whether the combustion is normal.
[0121] If the combustion temperature difference is less than the second threshold, it indicates that the coal gas may not be completely burned, and the system generates a coal gas combustion abnormality signal.
[0122] Abnormal signals are sent to the cloud for remote monitoring and data analysis.
[0123] By monitoring and analyzing the gas flow and gas stove temperature, the system can accurately determine whether the gas is completely burned.
[0124] If the gas is not completely burned, it may be because of a leak in the pipe between the gas valve and the gas stove. The system can identify this risk in time and issue an alarm.
[0125] The system can promptly detect incomplete combustion of gas, thereby preventing possible gas leaks in advance and enhancing the safety of household gas use.
[0126] Existing detection methods can only detect the gas content in the air during idle time (i.e. when the gas is not in use), but during use (when the gas stove is in use), there will be problems with gas combustion, resulting in the presence of gas in the air, which in turn causes detection abnormalities.
[0127] In this embodiment, the real-time gas flow is used to calculate the temperature generated by the theoretical gas combustion, and then the difference caused by the temperature loss is subtracted to obtain the temperature range generated by the theoretical gas combustion, and the second threshold range is obtained. The temperature generated by the gas stove is compared with the second threshold range to determine whether the connecting pipe between the gas stove and the gas valve is leaking.
[0128] The system predicts the theoretical combustion temperature based on the real-time gas flow rate, and compares it with the actual gas stove temperature to calculate the combustion temperature difference.
[0129] The calculated combustion temperature difference is compared with a set second threshold value, which is used to determine whether the combustion is normal.
[0130] For example: when the gas valve is fully open, it is supplied at a flow rate of 2.5 cubic meters per hour. The theoretical combustion temperature is between 2000 degrees Celsius and 2200 degrees Celsius. Due to the influence of factors such as the design of the gas stove, combustion efficiency, and the mixing ratio of air and gas, the actual combustion temperature is between 1000 degrees Celsius and 1600 degrees Celsius. The second threshold range is 600 to 1000.
[0131] The second threshold is an artificially set value, and is a difference range between actual gas combustion and theoretical gas combustion.
[0132] In one embodiment of the present invention, the method further comprises:
[0133] S301, generating an alarm signal and controlling the alarm to give an alarm;
[0134] S302, detecting whether the closing valve is closed within the threshold time;
[0135] S303, if the valve is not closed at the end of the threshold time, a valve closing signal is generated;
[0136] S304: Send the valve closing signal to the gas valve. The MOS tube on the gas valve executes the valve closing signal. The MOS tube on the gas valve drives the driving motor on the gas valve to move, so as to drive the closing valve on the gas valve to close the gas channel of the gas valve.
[0137] In one embodiment of the present invention, the method further comprises:
[0138] S305, after the closing valve closes the gas passage of the gas valve, detecting whether there is a user approaching within the first range;
[0139] S306, if there is a user approaching, detecting whether a valve opening signal is received;
[0140] S307: If the valve opening signal is received, it is sent to the MOS tube on the gas valve. The MOS tube on the gas valve executes the valve opening signal. The MOS tube on the gas valve drives the driving motor on the gas valve to move, so as to drive the closing valve on the gas valve to open the gas channel of the gas valve.
[0141] Please refer to Figures 1 to 3 In this embodiment, when a gas leak or other risk is detected, the system automatically generates an alarm signal and activates the alarm, and at the same time detects whether the valve is closed. If the valve is not closed within a preset time, the system automatically generates a valve closing signal.
[0142] After receiving the valve closing signal, the MOS tube on the gas valve drives the motor on the gas valve to close the gas channel.
[0143] After the valve is closed, the system monitors whether the user is approaching, and receives the valve opening signal sent to the system by the user operating the terminal device or the button on the valve. When the valve opening signal is received, the gas valve is reopened through the MOS tube.
[0144] The system ensures that safety measures are taken quickly and automatically in emergency situations, while also allowing users to re-open the gas supply after confirming it is safe.
[0145] Timely alarms and automatic gas valve closures can quickly respond to emergencies and prevent accidents from escalating.
[0146] The use of MOS tubes improves the response speed and reliability of valve operation, ensuring that the gas supply can be effectively cut off at critical moments.
[0147] Users can re-enable gas supply while ensuring safety, providing operational flexibility and convenience.
[0148] A WIFI-based smart home gas valve control system 200, the system 200 comprising:
[0149] A gas flow acquisition module 210, used to acquire the gas flow passing through the gas valve;
[0150] A judgment module 220, judging whether the gas flow rate is greater than 0 or judging whether the temperature of the gas stove is less than a first threshold;
[0151] The gas stove temperature acquisition module 230 is used to acquire the temperature of the gas stove;
[0152] A gas leakage signal generating module 240, which generates a gas leakage signal according to the judgment result of the judging module 220;
[0153] A sending module 250, used for sending a gas leakage signal to the cloud;
[0154] An execution module 260 executes a leakage warning instruction;
[0155] The system 200 performs the following steps:
[0156] Periodically obtain the gas flow rate passing through the gas valve;
[0157] If the gas flow rate is greater than 0, the gas stove temperature is obtained in real time during the detection period, and the gas stove temperature is compared with the first threshold. If the gas stove temperature is less than the first threshold, a gas leakage signal, gas leakage time, and leakage warning instruction are generated;
[0158] Send gas leak signals to the cloud;
[0159] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0160] Please refer to Figure 4 In this embodiment, the gas flow acquisition module 210 monitors and accurately acquires the gas flow passing through the gas valve in real time, usually through high-precision flow sensors that can detect even tiny flow changes.
[0161] The determination module 220 analyzes the gas flow data and determines whether it is greater than 0. At the same time, the module also analyzes the gas stove temperature data to determine whether it is lower than a set first threshold.
[0162] The gas stove temperature acquisition module 230 acquires the real-time temperature of the gas stove, usually through a temperature sensor installed on or near the gas stove, which can accurately measure and transmit temperature data in real time.
[0163] The gas leakage signal generating module 240 generates a gas leakage signal according to the result of the determining module 220 when it is detected that the gas flow is abnormal or the temperature of the gas stove is too low.
[0164] The sending module 250 is responsible for sending the gas leakage signal to the cloud to achieve remote monitoring and alarm.
[0165] The execution module 260 receives instructions from the leakage signal generation module 240 and activates an alarm or other safety device.
[0166] The system 200 periodically acquires gas flow data to detect whether there is gas flow.
[0167] When the gas flow is detected, the system 200 automatically obtains the real-time temperature of the gas stove.
[0168] The determination module 220 analyzes the gas flow rate and the temperature of the gas stove to determine whether there is a leakage risk.
[0169] If there is a leak, a gas leak signal is generated and transmitted to the cloud via the sending module 250 .
[0170] The execution module 260 receives the signal and activates the alarm to alert the occupants.
[0171] The WIFI-based smart home gas valve control system 200 can provide a high degree of security and flexibility, respond to potential gas leakage problems in a timely manner, and protect users from danger.
[0172] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0173] Periodically obtain the gas flow rate passing through the gas valve;
[0174] Determine whether the gas flow is greater than 0. If the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal, the gas leakage time, and a leakage warning instruction if the temperature of the gas stove is less than the first threshold;
[0175] Sending the gas leakage signal to the cloud;
[0176] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0177] The system uses sensors to periodically measure the gas flow through the gas valve.
[0178] When the system detects that the gas flow rate is greater than 0 (ie, the gas is being used), the system automatically starts to monitor the temperature of the gas stove in real time during the detection cycle.
[0179] The system compares the real-time monitored gas stove temperature with a preset first threshold value. If the gas stove temperature is lower than the first threshold value (indicating that the stove is leaking), the system determines that it is leaking and generates an alarm signal.
[0180] Once a gas leak signal is generated, the system sends it to the cloud.
[0181] If the temperature of the gas range is lower than the first threshold, the system identifies it as a leakage condition and generates a gas leakage signal.
[0182] The leakage signal is sent to the cloud, and the system activates the alarm in the home, and the user may be notified via mobile applications or text messages to remind the user that there is a gas leak, so as to avoid personal and property damage caused by gas leaks.
[0183] The WIFI-based smart home gas valve control method provides comprehensive safety monitoring and rapid response mechanisms, greatly reducing the risks in the use of gas.
[0184] Figure 5 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 5 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement a control method for a smart home gas valve based on WIFI. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement a control method for a smart home gas valve based on WIFI. Those skilled in the art will appreciate that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0185] In one embodiment, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:
[0186] Periodically obtain the gas flow rate passing through the gas valve;
[0187] Determine whether the gas flow is greater than 0. If the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal, the gas leakage time, and a leakage warning instruction if the temperature of the gas stove is less than the first threshold;
[0188] Sending the gas leakage signal to the cloud;
[0189] And execute the leakage warning instruction of the gas leakage signal to control the alarm to warn.
[0190] Please refer to Figure 5 , the system uses sensors to periodically measure the gas flow through the gas valve.
[0191] When the system detects that the gas flow rate is greater than 0 (ie, the gas is being used), the system automatically starts to monitor the temperature of the gas stove in real time during the detection cycle.
[0192] The system compares the real-time monitored gas stove temperature with a preset first threshold value. If the gas stove temperature is lower than the first threshold value (indicating that the stove is leaking), the system determines that it is leaking and generates an alarm signal.
[0193] Once a gas leak signal is generated, the system sends it to the cloud.
[0194] If the temperature of the gas range is lower than the first threshold, the system identifies it as a leakage condition and generates a gas leakage signal.
[0195] The leakage signal is sent to the cloud, and the system activates the alarm in the home, and the user may be notified via mobile applications or text messages to remind the user that there is a gas leak, so as to avoid personal and property damage caused by gas leaks.
[0196] The WIFI-based smart home gas valve control method provides comprehensive safety monitoring and rapid response mechanisms, greatly reducing the risks in the use of gas.
[0197] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0198] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0199] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A control method for a smart home gas valve based on WIFI, characterized in that: The method comprises: Periodically obtain the gas flow rate passing through the gas valve; Determine whether the gas flow is greater than 0, if the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal if the temperature of the gas stove is less than the first threshold; Sending the gas leakage signal to the cloud; and executing the leakage warning instruction of the gas leakage signal to control the alarm to give a warning; Obtain the gas flow of the gas valve in real time during the detection period and upload it to the cloud; Acquire the gas stove temperature and the real-time gas flow in real time during the detection period, calculate the corresponding gas combustion temperature according to the real-time gas flow, generate a combustion temperature difference according to the gas stove temperature and the real-time gas flow, calculate the difference between the gas stove temperature and the corresponding gas combustion temperature, and obtain the combustion temperature difference; Comparing the combustion temperature difference with a second threshold, and generating a gas combustion abnormality signal if the combustion temperature difference is less than the second threshold; And the gas combustion abnormal signal is sent to the cloud.
2. The control method of the smart home gas valve based on WIFI according to claim 1 is characterized in that: The method further comprises: Generate alarm signals and control the sirens to give warnings; It detects whether the shut-off valve is closed within the threshold time. If it is not closed at the end of the threshold time, a valve closing signal is generated, and the valve closing signal is sent to the gas valve. The MOS tube on the gas valve executes the valve closing signal. The MOS tube on the gas valve drives the driving motor on the gas valve to move, so as to drive the shut-off valve on the gas valve to close the gas channel of the gas valve.
3. The control method of the smart home gas valve based on WIFI according to claim 2 is characterized in that: The method further comprises: After the closing valve closes the gas channel of the gas valve, it detects whether there is a user approaching within the first range. If there is a user approaching, it detects whether a valve opening signal is received. If the valve opening signal is received, it is sent to the MOS tube on the gas valve. The MOS tube on the gas valve executes the valve opening signal. The MOS tube on the gas valve drives the driving motor on the gas valve to move, so as to drive the closing valve on the gas valve to open the gas channel of the gas valve.
4. The method for controlling a smart home gas valve based on WIFI according to claim 1, characterized in that: The method further comprises: If the gas flow is equal to 0, then wait for the next cycle to obtain the gas flow of the gas valve.
5. A WIFI-based smart home gas valve control system, characterized in that: The system comprises: A gas flow acquisition module, used for acquiring the gas flow passing through the gas valve; A judgment module, judging whether the gas flow rate is greater than 0 or judging whether the temperature of the gas stove is less than a first threshold; A gas stove temperature acquisition module is used to obtain the temperature of the gas stove; A gas leakage signal generating module, which generates a gas leakage signal according to the judgment result of the judging module; A sending module, used for sending gas leakage signals to the cloud; An execution module executes a leakage warning instruction; The system performs the following steps: Periodically obtain the gas flow rate passing through the gas valve; Determine whether the gas flow is greater than 0, if the gas flow is greater than 0, obtain the temperature of the gas stove in real time within a detection period, compare the temperature of the gas stove with a first threshold, and generate a gas leakage signal if the temperature of the gas stove is less than the first threshold; Sending the gas leakage signal to the cloud; and executing the leakage warning instruction of the gas leakage signal to control the alarm to give a warning; Obtain the gas flow of the gas valve in real time during the detection period and upload it to the cloud; Acquire the gas stove temperature and the real-time gas flow in real time during the detection period, calculate the corresponding gas combustion temperature according to the real-time gas flow, generate a combustion temperature difference according to the gas stove temperature and the real-time gas flow, calculate the difference between the gas stove temperature and the corresponding gas combustion temperature, and obtain the combustion temperature difference; Comparing the combustion temperature difference with a second threshold, and generating a gas combustion abnormality signal if the combustion temperature difference is less than the second threshold; And the gas combustion abnormal signal is sent to the cloud.
6. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the method for controlling a WIFI-based smart home gas valve as claimed in any one of claims 1 to 4.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the WIFI-based smart home gas valve control method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Intelligence gas valve
CN206175766U