Disclosure of Invention
In view of the above, the present invention provides a smoke alarm method, a smoke alarm device and an electronic device, so as to solve the problem that fire fighting power cannot reach a fire place quickly.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
according to one aspect of the invention, the embodiment of the invention discloses a smoke alarm method, which is applied to smoke alarm equipment and comprises the following steps: acquiring real-time smoke concentration in a target environment; judging whether the real-time smoke concentration exceeds an alarm threshold value; if the alarm threshold value is exceeded, alarm information is sent to a terminal of the first-level user group, wherein the alarm information at least comprises a positioning link of the target environment, so that the first-level user group can navigate to the target environment through the positioning link; the positioning link is associated with third party navigation software.
Optionally, the positioning link is obtained by any one of the following methods: acquiring a positioning link of a target environment from a satellite navigation system, and storing the positioning link in the alarm device; and reading the positioning link of the target environment from the connected intelligent equipment and storing the positioning link, wherein the intelligent equipment is equipment for transmitting the positioning link to the smoke alarm equipment.
Optionally, if the smoke concentration does not exceed the alarm threshold, the real-time smoke concentration of the target environment is continuously obtained.
Optionally, before sending the alarm information to the terminal of the first-level user group, the method includes: judging whether the real-time smoke concentration exceeds the alarm threshold value after alarm information is sent; and if the alarm threshold value is not exceeded, sending an alarm release short message to the terminal of the first-level user group.
Optionally, before the first-level user group is a fire center, a property and a householder and sends alarm information to the terminal of the first-level user group, the method includes: judging whether the real-time smoke concentration exceeds an early warning threshold value; and if the fire condition of the user exceeds the early warning threshold value, sending early warning information to a terminal of a secondary user group, wherein the early warning information comprises a positioning link, the early warning information is used for prompting that the user in the secondary user group has the risk of fire occurrence, and the secondary user group comprises property and a user owner.
Optionally, the warning information further includes address information and picture information of the target environment.
According to another aspect of the invention, an embodiment of the invention discloses a smoke alarm device, which comprises: the smoke concentration acquisition module is used for acquiring the real-time smoke concentration in the target environment; the primary smoke concentration judgment module is used for judging whether the real-time smoke concentration exceeds an alarm threshold value; the alarm information sending module is used for sending alarm information to a terminal of a first-level user group if the alarm information exceeds an alarm threshold value, wherein the alarm information at least comprises a positioning link of a target environment, so that the first-level user group can navigate to the target environment through the positioning link; the positioning link is associated with third party navigation software.
Optionally, the apparatus further comprises: the alarm release judging module is used for judging whether the real-time smoke concentration exceeds an alarm threshold value after the alarm information is sent; and the alarm release module is used for sending an alarm release short message to the terminal of the first-level user group if the alarm threshold is not exceeded.
Optionally, the apparatus further comprises: the secondary smoke concentration judgment module is used for judging whether the real-time smoke concentration exceeds an early warning threshold value; and the early warning information sending module is used for sending early warning information to the terminal of the secondary user group if the early warning threshold value is exceeded, wherein the early warning information comprises the positioning link, the early warning information is used for prompting that the user in the secondary user group has the risk of fire occurrence, and the secondary user group comprises property and a user owner.
According to yet another aspect of the present invention, an electronic device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when executed.
Compared with the prior art, the smoke alarm method has the following advantages:
according to the invention, after the real-time smoke concentration of the target environment is obtained by the smoke alarm equipment, whether the real-time smoke concentration of the target environment exceeds an alarm threshold value is judged, when the real-time smoke concentration exceeds the alarm threshold value, alarm information is sent to a terminal of a first-level user group, the alarm information contains a positioning link of the target environment, the first-level user group can access third-party navigation software through the positioning link to navigate to the target environment, an optimal route to the target environment can be planned according to the third-party navigation software through the positioning link, accurate position information is provided, users of the first-level user group can arrive at a fire place in a short time and rescue is implemented, unnecessary time waste is reduced, and rescue time is greatly increased.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, the alarm information of the smoke alarm device is single, when a fire occurs, the content of the alarm information only has address information, and no positioning link corresponding to the address information exists, so that a fire fighter cannot plan an optimal route to a fire place at the first time.
In view of this, an embodiment of the present application provides a smoke alarm method, an apparatus, and an electronic device, where the method is applied to a smoke alarm device, and the method includes: acquiring real-time smoke concentration in a target environment; judging whether the real-time smoke concentration exceeds an alarm threshold value; if the alarm threshold value is exceeded, alarm information is sent to a terminal of the first-level user group, wherein the alarm information at least comprises a positioning link of the target environment, so that the first-level user group can navigate to the target environment through the positioning link; the positioning link is associated with third party navigation software.
After the real-time smoke concentration of a target environment is obtained by the smoke alarm equipment, whether the real-time smoke concentration of the target environment exceeds an alarm threshold value or not is judged, alarm information is sent to a terminal of a first-level user group when the real-time smoke concentration exceeds the alarm threshold value, a positioning link of the target environment is contained in the alarm information, the first-level user group can access third-party navigation software through the positioning link to navigate to the target environment, an optimal route to the target environment can be planned according to the third-party navigation software through the positioning link, accurate position information is provided, users of the first-level user group can reach a fire place in a short time and carry out rescue, unnecessary time waste is reduced, and rescue time is greatly increased.
Referring to fig. 1, fig. 1 is a flowchart of a smoke alarm method according to an embodiment of the present application. As shown in fig. 1, the method is applied to a smoke alarm device, and comprises the following steps:
and S11, acquiring the real-time smoke concentration in the target environment.
In this embodiment, the target environment is the smoke detection space of smoke alarm device at the installation site, and smoke alarm device obtains the real-time smoke concentration in the target environment, can realize mastering the smoke concentration in the target environment in real time, reduces the risk that brings because of the condition of a fire appears in the target environment.
It should be noted that, the real-time smoke concentration is obtained through the smoke detection module formed by the ion smoke sensor and the photoelectric smoke sensor, and compared with the smoke detection module formed by the semiconductor smoke sensor and the photoelectric smoke sensor, the smoke concentration detection module is beneficial to improving the detection precision of the smoke concentration, reducing the false alarm rate and prolonging the service life.
S12, before the first-level user group is a fire center, a property and a householder and alarm information is sent to the terminal of the first-level user group, the method comprises the following steps: and judging whether the real-time smoke concentration exceeds an early warning threshold value.
In this embodiment, before sending the alarm information to the terminal of the first-level user group, it needs to be determined whether the real-time smoke concentration in the target environment exceeds the early warning threshold, where the early warning threshold is a smoke concentration standard used for determining that a fire may occur in the target environment.
And S13, if the fire alarm threshold value is exceeded, sending early alarm information to the terminal of the secondary user group, wherein the early alarm information comprises a positioning link, the early alarm information is used for prompting that the users in the secondary user group have the risk of fire, and the secondary user group comprises property and a user owner.
In the embodiment, when the real-time smoke concentration exceeds the early warning threshold, the early warning information with the positioning link is sent to the second-level user group, namely, the property and the householder are informed to the target environment to check the fire risk, the target environment is prevented from suffering from fire, and waste of fire prevention resources is reduced.
It should be noted that fig. 2 is a schematic diagram of a smoke alarm device according to an embodiment of the present application, and referring to fig. 1 and fig. 2, a specific implementation manner of the smoke alarm device is that when acquiring a real-time smoke concentration of a target environment, an ion/photoelectric smoke sensor converts the real-time smoke concentration into a smoke concentration analog signal based on the real-time smoke concentration, and transmits the smoke concentration analog signal to an a/D amplification module to generate a smoke concentration digital signal, the smoke concentration digital signal is transmitted to a single chip to process the digital signal, an early warning threshold mapped to the real-time smoke concentration and a communication record of a secondary user group are stored in a storage module connected to the single chip, the single chip compares the smoke concentration digital signal with the stored early warning threshold and determines whether to send early warning information to the secondary user group, when the smoke concentration digital signal exceeds the early warning threshold, the single chip calls the address book in the storage module and orders the communication module or a communication function of the communication module to send the early warning information with the positioning link to a terminal of a second-level user group, wherein the terminal can be a smart phone, a tablet computer, a smart watch and the like, the second-level user group clicks the positioning link after receiving the early warning information with the positioning link, and the positioning link is associated with third-party navigation software, so that the navigation page of the third-party navigation software can be jumped to, and a route of the target environment is displayed on the navigation page.
In this application, can also set up temperature and humidity sensor on the smog alarm device, temperature and humidity sensor is used for detecting ambient temperature and humidity around the target environment to with the relevant data transmission of temperature and humidity to singlechip, supplementary singlechip judge whether take place the condition of a fire.
Meanwhile, the smoke alarm equipment can be further provided with a sound-light alarm module, the sound-light alarm module receives a command of the single chip microcomputer, when the single chip microcomputer judges that early warning information needs to be sent, the single chip microcomputer commands the sound-light alarm module to send out flashing yellow light and accompanied by prompt tones, the single chip microcomputer is used for prompting that a householder in a target environment has a fire risk, the householder needs to process the fire in time, when the single chip microcomputer judges that alarm information needs to be sent, the single chip microcomputer commands the sound-light alarm module to send out flashing red light and accompanied by prompt tones, the single chip microcomputer is used for prompting that the householder in the target environment has the fire, the fire is processed in time, and if the fire cannot be processed, the householder needs to escape from a fire scene in time.
Secondly, can also set up the status indicator lamp module on smoke alarm equipment, when target environment does not have the condition of a fire risk, smoke alarm equipment's status indicator lamp is green, when target environment has the condition of a fire risk, smoke alarm equipment's status indicator lamp is yellow, when target environment has the condition of a fire, smoke alarm equipment's status indicator lamp is red.
And S14, judging whether the real-time smoke concentration exceeds an alarm threshold value.
In this embodiment, the alarm threshold is a smoke concentration standard for determining a fire condition in the target environment, and the real-time smoke concentration is compared with the standard smoke concentration, that is, the real-time smoke concentration is compared with the alarm threshold, so that whether the real-time smoke concentration in the target environment exceeds the standard or not can be determined.
S15, if the alarm threshold is exceeded, alarm information is sent to a terminal of a first-level user group, wherein the alarm information at least comprises a positioning link of the target environment, so that the first-level user group can navigate to the target environment through the positioning link; the positioning link is associated with third party navigation software.
In the embodiment, when the real-time smoke concentration exceeds the alarm threshold value, the alarm information is sent to the terminal of the first-level user group, the alarm information at least comprises the positioning link of the target environment, and the positioning link is associated with the third-party navigation software, namely, the first-level user group accesses the third-party navigation software through the positioning link to navigate to the target environment, namely, the positioning link can plan the optimal route to the target environment according to the third-party navigation software, so that accurate position information is provided, users of the first-level user group can arrive at a fire place in a short time and perform rescue, unnecessary time waste is reduced, and rescue time is greatly increased.
It should be noted that the terminal of the primary user group may be an intelligent device such as a mobile phone, a tablet, an intelligent watch, and the like, and the intelligent device may obtain the positioning link and access the third-party navigation software based on the positioning link, and the third-party navigation software plans a route to the target environment based on the positioning link. The third-party navigation software can be a Baidu map, a Google map, a Gade map and the like.
Referring to fig. 1 and fig. 2, when the smoke concentration of the target environment exceeds the alarm threshold, the smoke alarm device is specifically implemented in such a way that the single chip compares the digital signal of the smoke concentration with the stored early warning threshold and judges whether to send alarm information to the first-class user group, when the digital signal of the smoke concentration exceeds the alarm threshold, the single chip calls the address book in the storage module and commands the communication module or the communication function thereof to send the alarm information with the positioning link to the terminal of the first-class user group, the first-class user group clicks the positioning link after receiving the alarm information with the positioning link, the positioning link is associated with the third-party navigation software, so that the navigation page of the third-party navigation software can be skipped, and the route of the target environment location is displayed on the navigation page, which is favorable for the first-class user group to be able to reach the target environment location, the police force of the defense center in the first-level user group can quickly reach the location of the target environment, unnecessary time waste is reduced, and the emergency rescue time is greatly increased.
In one possible embodiment, the smoke alarm device dials an alarm call to the primary user group after the alarm message is sent to the terminal of the primary user group.
In this embodiment, the communication module adopts a SIM800C chip, and a phone card is inserted on the SIM800C chip. When the single chip microcomputer judges that a fire occurs, the single chip microcomputer calls the address book in the storage module, and drives the communication module to make a call to the terminal of the first-level user group according to the address book, so that the users of the first-level user group are reminded to check alarm information, and the users of the first-level user group are prevented from ignoring alarm short messages.
In a possible embodiment, the positioning link is obtained by any one of the following methods: acquiring a positioning link of a target environment from a satellite navigation system, and storing the positioning link in alarm equipment; and reading the positioning link of the target environment from the connected intelligent equipment and storing the positioning link, wherein the intelligent equipment is equipment for transmitting the positioning link to the smoke alarm equipment.
In this embodiment, the positioning link is a positioning link which is generated by a Beidou or global positioning system and can be directly identified by third-party navigation software, and the positioning link is stored in the single chip microcomputer, wherein after the smoke alarm device reads the positioning link of the target environment from the intelligent device, the intelligent device transmits the positioning link to the smoke alarm device, and the smoke alarm device stores the positioning link.
Wherein, smart machine can be smart mobile phone, panel computer, intelligent wrist-watch, intelligent bracelet etc. and it can generate the location through big dipper or global positioning system and link the transmission to the singlechip in with the location.
It should be noted that a positioning chip may be added to the smoke alarm device, where the positioning chip may be a BDS, GPS, GNSS, GLONASS, SBAS, or the like, and the positioning chip receives coordinate data of the current target environment, outputs the data according to the NMEA0183 protocol, analyzes and processes the data through a programming means, and finally outputs the data to the single chip microcomputer to be stored and to be called.
In a possible embodiment, the warning information also includes address information and picture information of the target environment.
In this embodiment, the address information of the target environment is the text information of the address of the target environment, so that the user of the first-level user group can check and position the end point position linked to the third-party navigation software, and the picture information of the target environment can provide a fire place for the first-level user group, so that the first-level user group can provide more accurate fire rescue according to the fire place.
It should be noted that the position of the fire place can be accurately locked to the first-level user group through the picture information, and users in the first-level user group can provide more accurate fire rescue according to the fire place.
And S16, if the smoke concentration does not exceed the alarm threshold, continuously acquiring the real-time smoke concentration of the target environment.
In this embodiment, when the real-time smoke concentration in the target environment does not exceed the alarm threshold, the smoke alarm device continues to acquire the real-time smoke concentration in the target environment, that is, continuously monitors the smoke concentration in the target environment.
And S17, after the alarm information is sent to the terminal of the first-level user group, judging whether the real-time smoke concentration exceeds an alarm threshold value after the alarm information is sent.
In this embodiment, after the alarm information is sent to the terminal of the first-level user group, the smoke alarm device continues to acquire the real-time smoke concentration in the target environment, and determines whether the real-time smoke concentration after the alarm information is sent is always within the alarm threshold range.
And S18, if the alarm threshold value is not exceeded, sending an alarm release short message to the terminal of the first-level user group.
In this embodiment, when the real-time smoke concentration at this time is lower than the alarm threshold, the alarm release message is sent to the primary user group, so that waste of fire fighting resources is avoided, and when the real-time smoke concentration at this time is not lower than the alarm threshold, that is, when the fire is not eliminated, the alarm message release message is not sent to the terminal of the primary user group.
Based on the same inventive concept, an embodiment of the application provides a smoke alarm device. Referring to fig. 3, a schematic diagram of a smoke alarm device is shown. The figure is a schematic diagram of a smoke alarm device according to an embodiment of the application. As shown in fig. 3, the apparatus includes:
the smoke concentration acquisition module is used for acquiring the real-time smoke concentration in the target environment;
the primary smoke concentration judgment module is used for judging whether the real-time smoke concentration exceeds an alarm threshold value;
the alarm information sending module is used for sending alarm information to the terminal of the first-level user group if the alarm threshold is exceeded, wherein the alarm information at least comprises a positioning link of the target environment, so that the first-level user group can navigate to the target environment through the positioning link; the positioning link is associated with third party navigation software.
Optionally, the alarm release judging module is configured to judge whether the real-time smoke concentration exceeds an alarm threshold after the alarm information is sent;
and the alarm release module is used for sending an alarm release short message to the terminal of the first-level user group if the alarm threshold is not exceeded.
Optionally, the secondary smoke concentration judgment module is configured to judge whether the real-time smoke concentration exceeds an early warning threshold;
and the early warning information sending module is used for sending early warning information to the terminal of the secondary user group if the early warning threshold value is exceeded, wherein the early warning information comprises the positioning link, the early warning information is used for prompting that the user in the secondary user group has the risk of fire occurrence, and the secondary user group comprises property and a user owner.
Based on the same inventive concept, another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps in the smoke alarm method according to any of the above embodiments of the present application are implemented.
The application scenario of the invention is as follows:
the smoke alarm equipment is installed in a target environment, wherein the target environment can be a kitchen, a living room, a bedroom, an office area and the like, the smoke alarm equipment obtains the real-time smoke concentration in the target environment, and the real-time smoke concentration is compared with an early warning threshold value. When the real-time smoke concentration exceeds the early warning threshold value, the smoke warning equipment sends early warning information to the secondary user group, namely the smoke warning equipment sends the early warning information to terminals of property and a user owner, the early warning information is used for prompting users in the secondary user group to inform that the target environment has the risk of fire, the users in the secondary user group need to reach the place where the target environment is located through a positioning link in the early warning information, and the fire risk is processed. When the real-time smoke concentration exceeds the alarm threshold value, the smoke alarm equipment sends alarm information to the first-level user group, namely the smoke alarm equipment sends the alarm information to the terminals of the fire center, the property and the householder, and the smoke alarm equipment is used for prompting users in the first-level user group and informing the target environment that a fire happens, and the users in the first-level user group reach the place where the target environment is located through a positioning link in the alarm information and process the fire of the target environment. The positioning link is associated with the third-party navigation software, so that after the positioning link is clicked, the user jumps to the third-party navigation software on the intelligent device, and the route from the user in the first-level user group to the target environment is displayed on the page of the third-party navigation software, namely the positioning link can plan the optimal route to the target environment according to the third-party navigation software, thereby reducing unnecessary time waste and greatly increasing the rescue time.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The smoke alarm method, the smoke alarm device and the electronic equipment provided by the application are introduced in detail, specific examples are applied in the description to explain the principle and the implementation mode of the application, and the description of the embodiments is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.