CN116189699A - Automatic valve closing method, device, equipment and computer readable storage medium - Google Patents

Automatic valve closing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN116189699A
CN116189699A CN202310133892.1A CN202310133892A CN116189699A CN 116189699 A CN116189699 A CN 116189699A CN 202310133892 A CN202310133892 A CN 202310133892A CN 116189699 A CN116189699 A CN 116189699A
Authority
CN
China
Prior art keywords
valve
sound information
information
loudness
alarm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310133892.1A
Other languages
Chinese (zh)
Inventor
孙连鹏
李良斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN202310133892.1A priority Critical patent/CN116189699A/en
Publication of CN116189699A publication Critical patent/CN116189699A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Processing of the speech or voice signal to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms

Abstract

The present disclosure relates to a method, apparatus, device and computer readable storage medium for automatically closing a valve, the method comprising: acquiring sound information around the valve; processing the sound information to obtain the loudness of the sound information; if the loudness of the sound information is smaller than a preset threshold value, controlling the valve to alarm; and controlling the valve to be closed based on the fact that the response of the alarm is not received. According to the method, the sound information around the valve is obtained and processed to obtain the loudness of the sound information, so that the size of the sound information around the valve is defined; if the loudness of the sound information is smaller than the preset threshold value, controlling the valve to alarm, thereby playing a role in reminding a user; based on the response of not receiving the alarm, the valve is controlled to be closed, so that the valve is closed timely, property loss and casualties are avoided, and energy waste is reduced.

Description

Automatic valve closing method, device, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for automatically closing a valve.
Background
The valve is a control component in the pipeline fluid conveying system and is used for changing the section of the passage and the flow direction of the medium, and has the functions of diversion, cut-off, throttling, check, diversion or overflow pressure relief and the like.
In the prior art, if a user forgets to close the valve, property loss of the user can be caused, even life danger can occur to the user, if the user forgets to close the faucet valve, the house can be flooded, and if the user forgets to close the gas valve, fire disaster or casualties can be caused.
Accordingly, it is desirable to provide a method for automatically closing a valve.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an automatic closing method, an apparatus, a device and a computer readable storage medium for a valve, and timely closing the valve, so as to avoid property loss.
In a first aspect, an embodiment of the present disclosure provides a method for automatically closing a valve, including:
acquiring sound information around the valve;
processing the sound information to obtain the loudness of the sound information;
if the loudness of the sound information is smaller than a preset threshold value, controlling the valve to alarm;
and controlling the valve to be closed based on the fact that the response of the alarm is not received.
In a second aspect, embodiments of the present disclosure provide an automatic closing apparatus for a valve, including:
the acquisition module is used for acquiring sound information around the valve;
the processing module is used for processing the sound information to obtain the loudness of the sound information;
the alarm module is used for controlling the valve to alarm if the loudness of the sound information is smaller than a preset threshold value;
and the control module is used for controlling the valve to be closed based on the fact that the response of the alarm is not received.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method according to the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
In a fifth aspect, embodiments of the present disclosure also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement the method of the first aspect.
According to the automatic closing method, the automatic closing device, the automatic closing equipment and the computer readable storage medium of the valve, sound information around the valve is obtained, the sound information is processed to obtain the loudness of the sound information, and the size of the sound information around the valve is defined; if the loudness of the sound information is smaller than the preset threshold value, controlling the valve to alarm, thereby playing a role in reminding a user; based on the response of not receiving the alarm, the valve is controlled to be closed, and compared with the prior art that the valve is not closed, the method closes the valve in time, reduces the waste of energy sources, and avoids property loss and casualties.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method for automatically closing a valve according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for automatically closing a valve according to another embodiment of the present disclosure;
FIG. 3 is a schematic view of an automatic valve closing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
The valve is a control component in the pipeline fluid conveying system and is used for changing the section of the passage and the flow direction of the medium, and has the functions of diversion, cut-off, throttling, check, diversion or overflow pressure relief and the like.
In the prior art, if a user forgets to close the valve, property loss of the user can be caused, even life danger can occur to the user, if the user forgets to close the faucet valve, the house can be flooded, and if the user forgets to close the gas valve, fire disaster or casualties can be caused. In view of this problem, embodiments of the present disclosure provide a method for automatically closing a valve, which is described below in connection with specific embodiments.
Fig. 1 is a flowchart of a method for automatically closing a valve according to an embodiment of the present disclosure. The method may be performed by an automatic valve system, which may be implemented in software and/or hardware, which may be configured in an electronic device, such as a server or a terminal, wherein the terminal specifically comprises an automatic valve or the like. In addition, the method can be applied to an application scene of automatic closing of the valve. It can be appreciated that the method for automatically closing a valve provided in the embodiments of the present disclosure may also be applied in other scenarios.
The following describes a method for automatically closing a valve shown in fig. 1, which comprises the following specific steps:
s101, acquiring sound information around the valve.
The automatic valve system acquires sound information around the valve, specifically, the valve can be a gas valve or a water tap valve, when the valve is a gas valve, the sound information can be specifically sound uttered by a user such as speaking sound, walking sound of the user and the like, and it can be understood that the gas valve can also receive noise such as sound of a range hood when being opened; when the valve is a faucet valve, the sound information may be a sound uttered by a user, such as a sound uttered by the user speaking, a sound uttered by the user walking, etc., and it is understood that the faucet valve may also receive noise, such as a sound of water flow when opened.
S102, processing the sound information to obtain the loudness of the sound information.
Loudness, also known as volume. The intensity of sound perceived by the human ear is a subjective sensation of the size of the sound. The loudness is determined by the amplitude of the sound at the receiving position, and the more far the amplitude propagates, the smaller the loudness is for the same sound source; the greater the amplitude of the sound source, the greater the loudness when the propagation distance is fixed. The magnitude of the loudness is closely related to the sound intensity, but the change in loudness with sound intensity is not a simple linear relationship, but is close to a logarithmic relationship. When the frequency of the sound, the waveform of the sound wave, changes, the human perception of the loudness level will also change.
After the automatic valve system processes the sound information, the loudness of the sound information can be obtained, that is, the automatic valve system processes the sound information to obtain the loudness of the sound information sent by the user, so that whether a person is within the preset distance of the valve can be determined according to the loudness of the sound information.
And S103, if the loudness of the sound information is smaller than a preset threshold value, controlling the valve to alarm.
If the loudness of the sound information is smaller than the preset threshold, that is, no person is within the preset distance of the valve, the automatic valve system controls the valve to alarm, and it can be understood that the preset threshold can be an average value obtained after a plurality of scenes are marked in a training way for many times.
Optionally, the alert mode includes at least one of: ringing, vibrating, greetings, sending information.
Specifically, the bell may be a similar sound such as "beep" by the automatic valve system, or a music set by the user by the automatic valve system; the vibration may be the automatic valve system itself or other objects; greetings may be "host" issued by an automatic valve system, you are? "et al like greetings; the sending information can be any one or more of sending WeChat information, short message information, mail information, smart phone information and the like.
Correspondingly, when the alarm is the sending information, if the loudness of the sound information is smaller than a preset threshold, controlling the valve to alarm comprises: if the loudness of the sound information is smaller than a preset threshold value, acquiring a contact way of the user; and sending information to the user according to the contact mode.
Specifically, when the alarm is information transmission, if the loudness of the sound information is smaller than a preset threshold value, acquiring a contact way of the user; and sending information to the user for warning through the contact way of the user, wherein the sending information can be any one or more of sending micro-message information, short message information, mail information, intelligent telephone information and the like.
Optionally, if the loudness of the sound information is greater than or equal to a preset threshold, the valve is controlled to be kept open.
Specifically, if the loudness of the sound information is greater than or equal to the preset threshold, that is, if a person is within the preset distance of the valve, the automatic valve system controls the valve to be kept open.
And S104, controlling the valve to be closed based on the fact that the response of the alarm is not received.
If the automatic valve system does not receive the response of the alarm, the valve is controlled to be closed. Specifically, the response of the alarm may be "stop ringing", "stop shaking", "i am" and reply message, respectively. And if any response of the alarm is not received in the automatic valve system within the preset time, controlling the valve to be closed.
Optionally, if the automatic valve system receives the response of the alarm, controlling the opening and closing states of the valve according to the content of the response; if the valve is kept open, the steps of acquiring sound information around the valve are executed.
Specifically, if the automatic valve system receives any response of the alarms, the opening and closing states of the valves are controlled according to the content of the response. If the response content is the reply information and the information content is the valve opening, the valve opening is controlled according to the content of the reply information, and the steps of obtaining the sound information around the valve are continuously executed.
According to the embodiment of the disclosure, the sound information around the valve is obtained and processed to obtain the loudness of the sound information, so that the size of the sound information around the valve is defined; if the loudness of the sound information is smaller than the preset threshold value, controlling the valve to alarm, thereby playing a role in reminding a user; based on the response of not receiving the alarm, the valve is controlled to be closed, so that the valve is closed timely, property loss and casualties are avoided, and energy waste is reduced.
On the basis of the above embodiment, acquiring sound information around the valve includes: the sound information around the valve is acquired by a sound sensor array.
The sound sensor acts as a microphone. It is used to receive sound waves, display a vibrating image of the sound, but cannot measure the intensity of the noise. The sensor incorporates a capacitive electret microphone that is sensitive to sound. The sound wave vibrates the electret film in the microphone, and causes a change in capacitance, thereby generating a minute voltage that changes in response thereto. This voltage is then converted to a voltage of 0-5V, a/D converted and received by the data collector and transmitted to the computer.
Microphones (MIC), also known as microphones, microphones. A microphone is an energy conversion device that converts sound signals into electrical signals. There are classified moving coil, capacitive, electret and recently emerging silicon micro microphones, in addition to liquid microphones and laser microphones. Most microphones are electret capacitor microphones which operate on the principle of using a polymeric material diaphragm with permanent charge isolation.
An array of acoustic sensors, which may be in particular microphones, is arranged around the valve, and the automatic valve system acquires acoustic information around the valve via the array of acoustic sensors arranged around the valve.
Specifically, the gas for home use is exemplified, the gas may be a combustible gas such as natural gas or liquefied gas, and an acoustic sensor array is disposed in each room in the room, and when the valve is a gas valve, acoustic information around the gas valve is obtained through the acoustic sensor array in the room in which the gas valve is located.
Optionally, processing the sound information to obtain the loudness of the sound information includes: noise is reduced on the sound information, and the sound information after noise reduction is obtained; and monitoring the size of the noise-reduced sound information to obtain the loudness of the sound information.
Specifically, noise reduction is performed on sound information, the specific noise reduction modes comprise sound absorption and noise elimination, when the valve is a gas valve, the specific noise reduction aims at eliminating noise of a smoke exhaust ventilator and the like, and when the valve is a water tap valve, the specific noise reduction aims at eliminating noise of running water and the like; and (3) obtaining the noise-reduced sound information, monitoring the size of the noise-reduced sound information, and obtaining the loudness of the sound information, namely monitoring whether the sound information sent by the user is monitored to judge whether the user is in the room where the valve is located.
According to the embodiment of the disclosure, noise is reduced on the sound information, so that the noise-reduced sound information is obtained; the size of sound information after noise reduction is monitored to obtain the loudness of the sound information, the size of sound information around the valve is defined, whether people exist around the valve or not is conveniently determined according to the size of the sound information, and therefore a foundation is laid for the opening and closing state of the valve.
In some embodiments, controlling the valve to close based on a response that the alert is not received comprises: receiving a response to the alert in real time; and if the response is not received within the preset time, controlling the valve to be closed.
Real time is a level of computer response that the user feels sufficiently timely or the computer remains synchronized with external processes. Real-time is an adjective about a computer or program that runs in real-time.
The automatic valve system receives the response to the alarm in real time, namely, when the user replies to the alarm, the automatic valve system receives the reply information in real time, wherein the reply information comprises, but is not limited to, weChat information, short message information, mail information and intelligent telephone information, and if the automatic valve system does not receive the response to the alarm within the preset time, namely, the user is possibly not in a room, the valve is controlled to be closed.
The embodiment of the disclosure receives the response to the alarm in real time; if the response is not received within the preset time, the valve is controlled to be closed, so that the valve is closed at the fastest speed, property loss and casualties are avoided, and the energy waste is reduced.
Fig. 2 is a flowchart of a method for automatically closing a valve according to another embodiment of the present disclosure, as shown in fig. 2, the method includes the following steps:
s201, acquiring sound information around the valve through a sound sensor array.
An array of acoustic sensors, which may be in particular microphones, is arranged around the valve, and the automatic valve system acquires acoustic information around the valve via the array of acoustic sensors arranged around the valve.
Specifically, the gas for home use is exemplified, the gas may be a combustible gas such as natural gas or liquefied gas, and an acoustic sensor array is disposed in each room in the room, and when the valve is a gas valve, acoustic information around the gas valve is obtained through the acoustic sensor array in the room in which the gas valve is located.
S202, noise reduction is carried out on the sound information, and the noise-reduced sound information is obtained.
The automatic valve system carries out noise reduction treatment on sound information, the specific noise reduction modes comprise sound absorption and noise elimination, when the valve is a gas valve, the specific noise reduction aims at eliminating the noise of a smoke exhaust ventilator and the like, and when the valve is a water tap valve, the specific noise reduction aims at eliminating the noise of running water and the like; and obtaining the noise-reduced sound information.
And S203, monitoring the size of the noise-reduced sound information to obtain the loudness of the sound information.
The automatic valve system monitors the size of the noise-reduced sound information to obtain the loudness of the sound information, namely, monitors whether the sound information sent by the user is monitored to judge whether the user is in the room where the valve is located.
S204, judging whether the loudness of the sound information is smaller than a preset threshold value, if yes, executing S206; if not, S205 is performed.
The automatic valve system judges whether the loudness of the sound information is smaller than a preset threshold value, if yes, S206 is executed; if not, S205 is performed.
S205, controlling the valve to be kept open.
If the loudness of the sound information is greater than or equal to a preset threshold, that is, a person is within a preset distance of the valve, the automatic valve system controls the valve to be kept open.
S206, controlling the valve to alarm.
If the loudness of the sound information is smaller than the preset threshold, that is, no person is within the preset distance of the valve, the automatic valve system controls the valve to alarm, and it can be understood that the preset threshold can be an average value obtained after a plurality of scenes are marked in a training way for many times.
Optionally, the alert mode includes at least one of: ringing, vibrating, greetings, sending information.
Specifically, the bell may be a similar sound such as "beep" by the automatic valve system, or a music set by the user by the automatic valve system; the vibration may be the automatic valve system itself or other objects; greetings may be "host" issued by an automatic valve system, you are? "et al like greetings; the sending information can be any one or more of sending WeChat information, short message information, mail information, smart phone information and the like.
Correspondingly, when the alarm is the sending information, if the loudness of the sound information is smaller than a preset threshold, controlling the valve to alarm comprises: if the loudness of the sound information is smaller than a preset threshold value, acquiring a contact way of the user; and sending information to the user according to the contact mode.
Specifically, when the alarm is information transmission, if the loudness of the sound information is smaller than a preset threshold value, acquiring a contact way of the user; and sending information to the user for warning through the contact way of the user, wherein the sending information can be any one or more of sending micro-message information, short message information, mail information, intelligent telephone information and the like.
S207, receiving a response to the alarm in real time.
The automatic valve system receives the response to the alarm in real time, namely, when the user replies to the alarm, the automatic valve system receives the reply information in real time, and the reply information comprises, but is not limited to, weChat information, short message information, mail information and smart phone information.
And S208, if the response of the alarm is not received, controlling the valve to be closed.
If the automatic valve system does not receive the response of the alarm within the preset time, that is, the user may not be in the room, the valve is controlled to be closed.
S209, if the response of the alarm is received, the opening and closing states of the valve are controlled according to the content of the response.
If the automatic valve system receives any response of the alarm, the opening and closing states of the valve are controlled according to the content of the response. If the response content is the reply information and the information content is the valve opening, the valve opening is controlled according to the content of the reply information, and the steps of obtaining the sound information around the valve are continuously executed.
According to the embodiment of the disclosure, the sound information around the valve is obtained and processed to obtain the loudness of the sound information, so that the size of the sound information around the valve is defined; if the loudness of the sound information is smaller than the preset threshold value, controlling the valve to alarm, thereby playing a role in reminding a user; based on the response of not receiving the alarm, the control valve is closed, so that the valve is closed timely, dry burning and fire disaster are prevented, the house is prevented from being flooded, property loss and casualties are avoided, and energy waste is reduced.
Fig. 3 is a schematic structural diagram of an automatic valve closing device according to an embodiment of the disclosure. The automatic closing means of the valve may be an automatic valve system as described in the above embodiments, or the automatic closing means of the valve may be a component or assembly in the automatic valve system. The automatic valve closing apparatus provided in the embodiments of the present disclosure may execute the process flow provided in the embodiment of the automatic valve closing method, as shown in fig. 3, where the automatic valve closing apparatus 30 includes: the system comprises an acquisition module 31, a processing module 32, an alarm module 33 and a control module 34; the acquiring module 31 is configured to acquire sound information around the valve; a processing module 32, configured to process the sound information to obtain a loudness of the sound information; the alarm module 33 is configured to control the valve to alarm if the loudness of the sound information is less than a preset threshold; a control module 34 for controlling the valve to close based on the failure to receive the response to the alarm.
Optionally, the acquiring module 31 is further configured to acquire, through the acoustic sensor array, acoustic information around the valve.
Optionally, the processing module 32 is further configured to perform noise reduction on the sound information to obtain noise-reduced sound information; and monitoring the size of the noise-reduced sound information to obtain the loudness of the sound information.
Optionally, the control module 34 is further configured to control the valve to be opened if the loudness of the sound information is greater than or equal to a preset threshold.
Optionally, the alert includes at least one of: ringing, vibrating and sending information; when the alarm is the sending information, the control module 34 is further configured to obtain a contact way of the user if the loudness of the sound information is less than a preset threshold; and sending information to the user for alarming according to the contact mode.
Optionally, the information includes at least one of: weChat information, short message information, mail information and intelligent telephone information.
Optionally, the control module 34 is further configured to receive a response to the alarm in real time; and if the response is not received within the preset time, controlling the valve to be closed.
The automatic closing device of the valve in the embodiment shown in fig. 3 may be used to implement the technical solution of the above embodiment of the automatic closing method of the valve, and its implementation principle and technical effects are similar, and will not be repeated here.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. The electronic device may be a terminal as described in the above embodiments. The electronic device provided in the embodiment of the present disclosure may execute the processing flow provided in the embodiment of the method for automatically closing a valve, as shown in fig. 4, where the electronic device 40 includes: memory 41, processor 42, computer programs and communication interface 43; wherein a computer program is stored in the memory 41 and configured to be executed by the processor 42 for performing the method of automatic closing of a valve as described above.
In addition, the embodiment of the present disclosure further provides a computer readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the method for automatically closing a valve according to the above embodiment.
Furthermore, embodiments of the present disclosure provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement a method of automatically closing a valve as described above.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
acquiring sound information around the valve;
processing the sound information to obtain the loudness of the sound information;
if the loudness of the sound information is smaller than a preset threshold value, controlling the valve to alarm;
and controlling the valve to be closed based on the fact that the response of the alarm is not received.
In addition, the electronic device may also perform other steps in the automatic closing method of the valve as described above.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of automatically closing a valve, the method comprising:
acquiring sound information around the valve;
processing the sound information to obtain the loudness of the sound information;
if the loudness of the sound information is smaller than a preset threshold value, controlling the valve to alarm;
and controlling the valve to be closed based on the fact that the response of the alarm is not received.
2. The method of claim 1, wherein obtaining acoustic information about the valve comprises:
the sound information around the valve is acquired by a sound sensor array.
3. The method of claim 1, wherein processing the sound information to obtain the loudness of the sound information comprises:
noise is reduced on the sound information, and the sound information after noise reduction is obtained;
and monitoring the size of the noise-reduced sound information to obtain the loudness of the sound information.
4. The method according to claim 1, wherein the method further comprises:
and if the loudness of the sound information is greater than or equal to a preset threshold value, controlling the valve to be kept open.
5. The method of claim 1, wherein the alert comprises at least one of: ringing, vibrating and sending information;
and when the alarm is the sending information, if the loudness of the sound information is smaller than a preset threshold, controlling the valve to alarm, including:
if the loudness of the sound information is smaller than a preset threshold value, acquiring a contact way of the user;
and sending information to the user for alarming according to the contact mode.
6. The method of claim 5, wherein the information comprises at least one of:
WeChat information, short message information, mail information and intelligent telephone information.
7. The method of claim 1, wherein controlling the valve to close based on the lack of receipt of the response to the alert comprises:
receiving a response to the alert in real time;
and if the response is not received within the preset time, controlling the valve to be closed.
8. An automatic closing device for a valve, the device comprising:
the acquisition module is used for acquiring sound information around the valve;
the processing module is used for processing the sound information to obtain the loudness of the sound information;
the alarm module is used for controlling the valve to alarm if the loudness of the sound information is smaller than a preset threshold value;
and the control module is used for controlling the valve to be closed based on the fact that the response of the alarm is not received.
9. An electronic device, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202310133892.1A 2023-02-10 2023-02-10 Automatic valve closing method, device, equipment and computer readable storage medium Pending CN116189699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310133892.1A CN116189699A (en) 2023-02-10 2023-02-10 Automatic valve closing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310133892.1A CN116189699A (en) 2023-02-10 2023-02-10 Automatic valve closing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116189699A true CN116189699A (en) 2023-05-30

Family

ID=86451951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310133892.1A Pending CN116189699A (en) 2023-02-10 2023-02-10 Automatic valve closing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116189699A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117373170A (en) * 2023-12-08 2024-01-09 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument residual gas charge management method and system based on Internet of things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117373170A (en) * 2023-12-08 2024-01-09 成都秦川物联网科技股份有限公司 Ultrasonic metering instrument residual gas charge management method and system based on Internet of things

Similar Documents

Publication Publication Date Title
US9609441B2 (en) Smart hearing aid
US8280067B2 (en) Integrated ambient audio transformation device
US10275210B2 (en) Privacy protection in collective feedforward
US8243937B2 (en) Adaptive ambient audio transformation
US8379870B2 (en) Ambient audio transformation modes
US9736264B2 (en) Personal audio system using processing parameters learned from user feedback
US8280068B2 (en) Ambient audio transformation using transformation audio
US9171450B2 (en) Emergency handling system using informative alarm sound
KR20190026234A (en) Method and apparatus for removimg an echo signal
CN111819560B (en) Computing device with gatekeeper function, decoupling accessory and computer implementation method thereof
US9584899B1 (en) Sharing of custom audio processing parameters
CN116189699A (en) Automatic valve closing method, device, equipment and computer readable storage medium
WO2012151997A1 (en) Call voice recording method and device for mobile terminal and mobile terminal
CN108370457B (en) Personal audio system, sound processing system and related methods
US20190324710A1 (en) Sharing Of Custom Audio Processing Parameters
CN110830866A (en) Voice assistant awakening method and device, wireless earphone and storage medium
WO2011026113A2 (en) Hearing aid feedback noise alarms
WO2010039657A2 (en) An integrated ambient audio transformation device
CN105472152A (en) Method and system for automatically answering call for intelligent terminal
US9678709B1 (en) Processing sound using collective feedforward
Xia et al. {Near-Ultrasound} Inaudible Trojan (Nuit): Exploiting Your Speaker to Attack Your Microphone
CN110992951B (en) Method for protecting personal privacy based on countermeasure sample
KR20030027925A (en) Rescue request apparatus using voice recognition and method thereof
CN104978810A (en) Glass breakage detection device and method and LED lighting device
Santiago et al. ReM-AM: reflective middleware for acoustic management in intelligent environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination