Fire early warning circuit, fire early warning method and fire early warning device

By designing a fire early warning circuit in the terminal equipment and using the photoelectric effect of infrared light-emitting diodes to detect fire infrared radiation, the problem of fire alarm delay is solved and the timeliness and accuracy of fire early warning is achieved.

CN119028077APending Publication Date: 2024-11-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310611890.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

When a fire occurs, the mobile terminal device is not near the user or the user cannot move, and the alarm cannot be promptly made through the mobile terminal device, resulting in the fire being discovered and dealt with in a timely manner.

Method used

A fire early warning circuit was designed, including infrared light emitting diodes, switching devices and comparators, which use the photoelectric effect of infrared light emitting diodes to detect infrared radiation in fire situations, output early warning signals, and communicate through terminal equipment after receiving the early warning signal. The module sends alarm information to the target terminal equipment to ensure the timeliness and accuracy of fire alarms.

Benefits of technology

The infrared radiation of fire is detected through the photoelectric effect of infrared light-emitting diodes, and the timely issuance of fire warnings is achieved, and alarm information is continued when no shutdown command is received within the preset time, improving the accuracy and timeliness of fire alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119028077A_ABST
    Figure CN119028077A_ABST
Patent Text Reader

Abstract

The invention provides a fire early warning circuit, a fire early warning method and a fire early warning device, and relates to the technical field of terminal equipment. Comprising a first switching device, an infrared light emitting diode, a first resistor, a second resistor, a comparator and a controller, the first end of the first switching device is connected with a power supply, and the second end of the first switching device is connected with the cathode of the infrared light-emitting diode; the anode of the infrared light-emitting diode is connected with the first end of the first resistor; the second end of the first resistor is connected with the first end of the second resistor and the first input end of the comparator; the second end of the second resistor is grounded; a second input end of the comparator is connected with a reference voltage, and the comparator is used for outputting an early warning signal when detecting that the voltage of the first input end is greater than the reference voltage; the controller is used for controlling the conduction state of the first switching device. Therefore, the infrared light-emitting diode is in a reverse bias state by controlling the conduction of the first switching device, so that fire early warning is realized by utilizing the photoelectric effect of the infrared light-emitting diode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of terminal equipment, and in particular to a fire warning circuit, a fire warning method and a fire warning device. Background Art

[0002] With the continuous development of economic construction and social civilization, and the increasing number of large public entertainment venues, markets, airports, waiting halls, subway stations, warehouses, oil depots, etc., fires are also constantly occurring. Therefore, the detection, sensing, communication and alarm technology of fire is also constantly being improved.

[0003] With the continuous development of mobile terminal devices, more and more users have mobile terminal devices. However, when a fire occurs, if the mobile terminal device is not near the user, or the user cannot move, or the user is unaware, the user cannot promptly report the fire through the mobile terminal device. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] The first aspect of the present disclosure provides a fire warning circuit, including: a first switch device, an infrared light emitting diode, a first resistor, a second resistor, a comparator, and a controller;

[0006] Wherein, the first end of the first switch device is connected to a power source, and the second end of the first switch device is connected to the cathode of the infrared light emitting diode;

[0007] The anode of the infrared light emitting diode is connected to the first end of the first resistor;

[0008] The second end of the first resistor is connected to the first end of the second resistor and the first input end of the comparator;

[0009] The second end of the second resistor is grounded;

[0010] The second input terminal of the comparator is connected to a reference voltage, and the comparator is used to output a warning signal when detecting that the voltage of the first input terminal is greater than the reference voltage;

[0011] The controller is used to control the conduction state of the first switch device.

[0012] A second aspect of the present disclosure provides a fire warning method, including:

[0013] In response to receiving a fire warning function activation instruction, controlling a first switch device in a fire warning circuit to be turned on;

[0014] Upon receiving the warning signal output by the fire warning circuit, controlling the warning device in the terminal device to issue a fire warning;

[0015] Within a preset time period after the warning device is controlled to issue a fire warning, if no warning closing instruction is received, the communication module in the terminal device is controlled to send an alarm message to the target terminal device.

[0016] The third aspect of the present disclosure provides a fire warning device, including:

[0017] A first control module, configured to control a first switch device in a fire warning circuit to conduct in response to receiving a fire warning function activation instruction;

[0018] A second control module is used to control the warning device in the terminal device to issue a fire warning when receiving the warning signal output by the fire warning circuit;

[0019] The third control module is used to control the communication module in the terminal device to send alarm information to the target terminal device if no warning closing instruction is received within a preset time period after the warning device is controlled to issue a fire warning.

[0020] The fourth aspect embodiment of the present disclosure proposes a terminal device, including: the fire warning circuit proposed in the first aspect embodiment, a memory, a processor and a computer program stored in the memory and executable on the processor, when the processor executes the program, the fire warning method proposed in the second aspect embodiment of the present disclosure is implemented.

[0021] The fifth aspect of the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the fire warning method provided in the second aspect of the present disclosure is implemented.

[0022] The sixth aspect of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the fire warning method provided in the second aspect of the present disclosure.

[0023] The fire warning circuit, fire warning method and device provided by the present disclosure have the following beneficial effects:

[0024] In the disclosed embodiment, the infrared light emitting diode can be reverse biased by controlling the conduction of the first switching device in the fire warning circuit, thereby utilizing the photoelectric effect of the infrared light emitting diode. When the infrared characteristics around the infrared light emitting diode are greater than the infrared radiation far exceeding the daily background, the leakage current of the infrared light emitting diode increases, and the voltage at the second end of the first resistor increases. Therefore, when the comparator detects that the voltage at the second end of the first resistor is greater than the reference voltage, it outputs a warning signal, thereby being able to issue a fire warning in a timely manner.

[0025] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0027] Figure 1 A schematic diagram of a fire warning circuit provided by an embodiment of the present disclosure;

[0028] Figure 2 A schematic diagram of a fire warning circuit provided by another embodiment of the present disclosure;

[0029] Figure 3 A schematic diagram of a fire warning circuit provided by another embodiment of the present disclosure;

[0030] Figure 4 A schematic diagram of a fire warning circuit provided by another embodiment of the present disclosure;

[0031] Figure 5 A schematic diagram of a fire warning circuit provided by another embodiment of the present disclosure;

[0032] Figure 6 A flow chart of a fire warning method provided by another embodiment of the present disclosure;

[0033] Figure 7 A flow chart of a fire warning method provided by another embodiment of the present disclosure;

[0034] Figure 8 A schematic structural diagram of a fire warning device provided by another embodiment of the present disclosure;

[0035] Fig. 9 A block diagram of an exemplary terminal device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0037] The fire warning circuit, fire warning method and device according to the embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0038] The fire warning method of the embodiment of the present disclosure can be executed by the fire warning device provided by the embodiment of the present disclosure, and the device can be configured in a terminal device. The terminal device includes a fire warning circuit.

[0039] Figure 1 This is a schematic diagram of a fire warning circuit provided by an embodiment of the present disclosure. It can be understood that the fire warning circuit provided by the present disclosure can be applied to any electronic device.

[0040] like Figure 1 As shown, the fire warning circuit may include: a first switch device, an infrared light emitting diode, a first resistor, a second resistor, a comparator, and a controller;

[0041] Wherein, the first end of the first switch device is connected to the power supply, the second end of the first switch device is connected to the cathode of the infrared light emitting diode; the anode of the infrared light emitting diode is connected to the first end of the first resistor;

[0042] The second end of the first resistor is connected to the first end of the second resistor and the first input end of the comparator;

[0043] A second end of the second resistor is grounded;

[0044] The second input terminal of the comparator is connected to a reference voltage, and the comparator is used to output a warning signal when it is detected that the voltage at the first input terminal is greater than the reference voltage;

[0045] The controller is used to control the conduction state of the first switch device.

[0046] For example, the first switch device may be a metal-oxide-semiconductor field-effect transistor (MOSFET). For example, the first switch device may be a P-type field effect transistor (PMOS transistor) or any other type of switch device, and the present disclosure does not limit this.

[0047] Among them, infrared light emitting diode is a diode that can emit infrared light, and is usually used in remote controls and other occasions. The commonly used infrared light emitting diode has a similar appearance to the light emitting diode LED and emits infrared light.

[0048] In the disclosed embodiment, the photoelectric effect of an infrared light emitting diode under a strong infrared source condition can be used to perform a fire alarm. That is, the infrared light emitting diode is controlled to be reverse biased. When there are infrared features such as flames around the infrared light emitting diode that far exceed the infrared radiation of the daily background, the photoelectric effect generated by the infrared light emitting diode is much higher than that of the daily environment, thereby judging that a fire may occur.

[0049] The resistance value of the first resistor may be smaller than the resistance value of the second resistor.

[0050] The comparator is used to compare the voltage at the second end of the first resistor with the reference voltage, and output a warning signal when the voltage at the second end of the first resistor is less than the reference voltage. For example, when the voltage at the second end of the first resistor is less than the reference voltage, a high level is output.

[0051] The reference voltage can be determined according to the voltage of the power supply, and the resistance values ​​of the first resistor and the second resistor.

[0052] Optionally, the controller may be connected to the control terminal of the first switching device, so as to control the conduction state of the first switching device.

[0053] In the disclosed embodiment, the controller can be used to control the first switch device to conduct upon receiving a fire warning function activation instruction, thereby making the infrared light emitting diode reverse biased, and then utilizing the photoelectric effect of the infrared light emitting diode to detect the surrounding infrared light.

[0054] In the disclosed embodiment, the infrared light emitting diode can be reverse biased by controlling the conduction of the first switching device in the fire warning circuit, thereby utilizing the photoelectric effect of the infrared light emitting diode. When the infrared characteristics around the infrared light emitting diode are greater than the infrared radiation far exceeding the daily background, the leakage current of the infrared light emitting diode increases, and the voltage at the second end of the first resistor increases. Therefore, when the comparator detects that the voltage at the second end of the first resistor is greater than the reference voltage, it outputs a warning signal, thereby being able to issue a fire warning in a timely manner.

[0055] Figure 2 A schematic diagram of a fire warning circuit provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, in Figure 1 On the basis of the fire warning circuit shown, the fire warning circuit may further include an amplifier circuit and a Schmitt trigger.

[0056] The input end of the amplifier circuit is connected to the second end of the first resistor, and the output end of the amplifier circuit is connected to the first input end of the comparator; the amplifier circuit is used to amplify the voltage of the input end of the amplifier circuit.

[0057] It is understandable that, since the voltage at the second end of the first resistor is relatively small, in order to make the comparator output the fire warning signal more accurately, an amplifier circuit may be added before the comparator to amplify the voltage at the second end of the first resistor.

[0058] Optionally, the amplifier circuit may be a Class A amplifier composed of a MOSFET or a Junction Field-Effect Transistor (JFET), or an operational amplifier, or any circuit that can amplify voltage, which is not limited in the present disclosure.

[0059] It should be noted that if an amplifier circuit is added before the comparator, the reference voltage input to the comparator needs to be increased according to the amplification rate of the amplifier circuit.

[0060] The input end of the Schmitt trigger is connected to the output end of the comparator, and is used to shape and output the warning signal output by the comparator, so that the output warning signal can be more stable.

[0061] It should be noted that Figure 2 The circuit structure and components are only for illustrative purposes. In actual use, they can be added or deleted as needed, and the present disclosure does not limit this.

[0062] In the embodiments of the present disclosure, an amplifier circuit and / or a Schmitt trigger may be added to the fire warning circuit so that the warning signal output by the fire warning circuit can be made more accurate and stable.

[0063] Figure 3 A schematic diagram of a fire warning circuit provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, in Figure 1 or Figure 2 On the basis of the fire warning circuit shown, the fire warning circuit further includes a second switch device, a third switch device, a fourth switch device, and a fifth switch device.

[0064] Wherein, the first end of the second switch device is connected to the second end of the second resistor, and the second end of the second switch device is grounded;

[0065] The first end of the third switch device is connected to the power supply, the second end of the fourth switch device is connected to the second end of the first resistor, the first end of the fourth switch device is connected to the cathode of the infrared light emitting diode, and the second end of the fourth switch device is grounded.

[0066] The second switch device, the third switch device and the fourth switch device may be switch devices of the same type, or may be switch devices of different types, etc., which is not limited in the present disclosure.

[0067] For example, the second switch device can be an N-type field effect transistor (NMOS transistor), the third switch device and the fourth transistor can both be P-type field effect transistors (PMOS transistors); or they can be any other type of switch device, etc., which is not limited in the present disclosure.

[0068] The controller can also be connected to the control end of the second switch device, the control end of the third switch device, and the control end of the fourth switch device, so as to control the conduction state of the second switch device, the third switch device, and the fourth switch device.

[0069] like Figure 3 The fire warning circuit shown can not only realize the fire warning function, but also realize the infrared remote control function.

[0070] Specifically, when a fire warning function activation instruction is received, the first switch device and the second switch device in the fire warning circuit are controlled to be turned on, and the third switch device and the fourth switch device are turned off, so that the infrared light emitting diode is reverse biased to realize the fire warning function.

[0071] When receiving the infrared remote control function start command, the first switch device and the second switch device in the fire warning circuit are controlled to be disconnected, and the third switch device and the fourth switch device are controlled to be turned on, so that the infrared light emitting diode in the fire warning circuit is forward-conducted and emits infrared light, realizing the infrared remote control function.

[0072] The first end of the fifth switch device is connected to the second end of the first resistor, and the second end of the fifth switch device is connected to the first input end of the comparator. If the fire warning circuit includes an amplifier circuit, the second end of the fifth switch device is connected to the input end of the amplifier circuit.

[0073] The controller is also used to control the conduction state of the fifth switching device.

[0074] For example, the fifth switch device may be an N-type field effect transistor (NMOS transistor), or may be any other type of switch device, etc., and the present disclosure does not limit this.

[0075] It should be noted that, when the infrared remote control function is executed, the fifth switch device can be disconnected to protect the amplifier, comparator, etc. in the fire warning circuit.

[0076] Furthermore, if the output end of the amplifier circuit can withstand the voltage during infrared emission and can ensure no leakage, the fifth switch device may not be connected. In actual use, it can be increased or decreased as needed, and the present disclosure does not limit this.

[0077] In some embodiments, Figure 3 In the fire warning circuit shown in FIG. 1 , if the first switch device, the third switch device, and the fourth switch device are P-type field effect transistors, and the second switch device and the fifth switch device are N-type field effect transistors, then the fire warning circuit can be as follows: Figure 4 As shown, the gate voltages of the first switching device, the second switching device, the third switching device, the fourth switching device, and the fifth switching device can be controlled by the controller, so that the controller can control the conduction states of the first switching device, the second switching device, the third switching device, the fourth switching device, and the fifth switching device.

[0078] In some possible implementations, since existing terminal devices often have infrared remote control functions, the terminal device has an infrared remote control circuit (i.e., including components such as an infrared light emitting diode and a first resistor) inside. A fire warning circuit can be added to the infrared remote control circuit, thereby reducing unnecessary components.

[0079] In the embodiments of the present disclosure, a second switch device, a third switch device, a fourth switch device, and a fifth switch device can be added to the fire warning circuit, and then by controlling the conduction state of the first switch device, the second switch device, the third switch device, the fourth switch device, and the fifth switch device, the fire warning circuit can realize both fire warning and infrared remote control.

[0080] Figure 5 A schematic diagram of a fire warning circuit provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the fire warning circuit may include: a first switch device, a second switch device, a third switch device, a fourth switch device, a fifth switch device, an infrared light emitting diode, a first resistor, a second resistor, an amplifier circuit, a comparator, a Schmitt trigger, and a controller;

[0081] Wherein, a first end of the first switch device is connected to a power source, and a second end of the first switch device is connected to a first end of a second resistor;

[0082] The second end of the second resistor is connected to the cathode of the infrared light emitting diode and the first end of the fourth switch device, and the second end of the fourth switch device is grounded;

[0083] The anode of the infrared light emitting diode is connected to the first end of the first resistor;

[0084] The second end of the first resistor is connected to the first end of the second switch device, the first end of the third switch device, and the first end of the fifth switch device;

[0085] The second terminal of the second switch device is grounded; the second terminal of the third switch device is connected to the power supply;

[0086] The second terminal of the fifth switch device is connected to the first terminal of the amplifier circuit;

[0087] The second terminal of the amplifier circuit is connected to the first input terminal of the comparator;

[0088] The second input terminal of the comparator is connected to the reference voltage, and the output terminal of the comparator is connected to the input terminal of the Schmitt trigger; the comparator is used to output a warning signal when it is detected that the voltage at the first input terminal is greater than the reference voltage;

[0089] The controller is used to control the conduction states of the first switching device, the second switching device, the third switching device, the fourth switching device, and the fifth switching device.

[0090] It should be noted that Figure 5 The circuit structures and components are only for illustrative purposes. In actual use, they can be added or deleted according to the descriptions in the embodiments of the present disclosure and actual needs, and the present disclosure does not limit this.

[0091] In the embodiment of the present disclosure, another connection method of the second resistor is provided, which can also realize fire warning and infrared remote control.

[0092] Figure 6 A flow chart of a fire warning method provided by an embodiment of the present disclosure; Figure 6 As shown, the fire warning method may include the following steps:

[0093] Step 601, in response to receiving a fire warning function activation instruction, controlling a first switch device in a fire warning circuit to be turned on.

[0094] Optionally, a fire warning function activation instruction may be received when it is determined that the fire warning function is activated.

[0095] like Figure 1 or Figure 2 In order to make the infrared light emitting diode in a reverse biased state and utilize the photoelectric effect of the infrared light emitting diode for fire warning in the fire warning circuit shown, the first switch device in the fire warning circuit needs to be controlled to be turned on.

[0096] Step 602: upon receiving the warning signal output by the fire warning circuit, controlling the warning device in the terminal device to issue a fire warning.

[0097] Among them, the warning signal can be used to indicate that the infrared characteristics around the infrared light-emitting diode far exceed the infrared radiation of the daily background. Therefore, the warning device in the terminal device can be controlled to issue a fire warning.

[0098] Optionally, the warning device may include one or more of a vibrator, a flash light, a voice broadcast module, and a display screen, which is not limited in the present disclosure.

[0099] In some possible implementations, controlling the early warning device in the terminal device to issue a fire early warning includes at least one of the following:

[0100] In response to the early warning device being a vibrator, the vibrator is controlled to vibrate at a preset vibration frequency.

[0101] Alternatively, in response to the early warning device being a flashlight, controlling the flashlight to emit light at a preset light emission frequency;

[0102] Alternatively, in response to the early warning device being a voice broadcast module, controlling the voice broadcast module to issue a voice early warning; and,

[0103] Alternatively, in response to the early warning device being a display screen, the display screen is controlled to display information associated with the fire early warning in the form of a pop-up window.

[0104] Among them, the preset vibration frequency needs to be distinguished from the normal vibration frequency of the terminal device (for example, the vibration frequency when making a call, the vibration frequency when sending a text message), so as to remind the user that a fire has occurred around.

[0105] The preset light emission frequency may be a pre-set frequency for controlling the light emission of the flashlight.

[0106] The content of the voice warning may be a pre-set voice content, so that when the warning signal is received, the voice broadcast module is controlled to broadcast the preset voice content to issue a voice warning. For example, the preset voice content may be "There is a fire, escape quickly".

[0107] The information associated with the fire warning may be a pre-set text, such as "fire occurs", or may be a pre-set fire pattern or the like.

[0108] Step 603: within a preset time period after the warning device issues a fire warning, if no warning closing instruction is received, the communication module in the control terminal device sends an alarm message to the target terminal device.

[0109] The preset time period may be 1 minute, 2 minutes, etc., and the present disclosure does not limit this.

[0110] The target terminal device may be a terminal device in a fire station for receiving fire alarm information, etc. This disclosure does not limit this.

[0111] It should be noted that if the warning closing instruction is not received within the preset time period of issuing the fire warning, the user may not be near the terminal device, or the user may be near the terminal device but cannot move, so the fire warning cannot be closed in time. Therefore, the communication module in the terminal device can be further controlled to send alarm information to the target terminal device, so that the alarm can be issued in time in the event of a fire.

[0112] In addition, if the terminal device is placed next to a stove, the flame of the stove may also cause the terminal device to issue a fire warning. If the warning off command is received within the preset time period for issuing a fire warning, it means that the user is near the terminal device and has received a fire warning, so that the user can judge whether a fire has occurred by himself. If no fire has occurred, the fire warning can be turned off, and if a fire has occurred, an alarm message can be sent.

[0113] In the embodiment of the present disclosure, a fire warning function start instruction can be received, the first switch device in the fire warning circuit can be controlled to be turned on, and after receiving the warning signal, the warning device in the terminal device is controlled to issue a fire warning, and finally, within a preset time period after the warning device is controlled to issue the fire warning, if the warning off instruction is not received, the communication module in the terminal device is controlled to send an alarm message to the target terminal device. Thus, by controlling the conduction of the first switch device in the fire warning circuit, the infrared light emitting diode is reverse biased, so that the photoelectric effect of the infrared light emitting diode is used for fire warning, and if the warning off instruction is not received within the preset time, the communication module in the terminal device is controlled to send an alarm message to the target terminal device, thereby improving the accuracy and timeliness of the fire alarm.

[0114] Figure 7 A flow chart of a fire warning method provided by an embodiment of the present disclosure; Figure 7 As shown, the fire warning method may include the following steps:

[0115] Step 701, when receiving a fire warning function activation instruction, controlling the first switch device, the second switch device, and the fifth switch device in the fire warning circuit to be turned on, and the third switch device and the fourth switch device to be turned off.

[0116] like Figure 3 or Figure 4 or Figure 5In order to make the infrared light emitting diode in a reverse biased state and use the photoelectric effect of the infrared light emitting diode to provide fire warning, the fire warning circuit shown in the figure needs to control the first switch device, the second switch device, and the fifth switch device in the fire warning circuit to be turned on, and the third switch device and the fourth switch device to be turned off, so that the infrared light emitting diode is reverse biased to achieve the fire warning function.

[0117] like Figure 3 or Figure 4 or Figure 5 The fire warning circuit shown can also realize the infrared remote control function by controlling the conduction state of the first switch device, the second switch device, and the fifth switch device, and the conduction state of the third switch device and the fourth switch device.

[0118] In some possible implementations, when an instruction to turn on the infrared remote control function is received, the first switch device, the second switch device, and the fifth switch device in the fire warning circuit are controlled to be disconnected, and the third switch device and the fourth switch device are controlled to be turned on, so that the infrared light emitting diode in the fire warning circuit is forward-conducted and emits infrared light.

[0119] Step 702: upon receiving the warning signal output by the fire warning circuit, controlling the warning device in the terminal device to issue a fire warning.

[0120] Step 703: within a preset time period after the warning device issues a fire warning, if no warning closing instruction is received, the communication module in the control terminal device sends an alarm message to the target terminal device.

[0121] In the embodiment of the present disclosure, a fire warning function start instruction can be received, and the first switch device, the second switch device, and the fifth switch device in the fire warning circuit can be controlled to be turned on, and the third switch device and the fourth switch device can be turned off. After receiving the warning signal, the warning device in the terminal device is controlled to issue a fire warning. Finally, within a preset time period after the warning device is controlled to issue the fire warning, if the warning off instruction is not received, the communication module in the terminal device is controlled to send an alarm message to the target terminal device. Thus, by controlling the conduction state of the switch device in the fire warning circuit, the infrared light emitting diode is reverse biased, so that the photoelectric effect of the infrared light emitting diode is used for fire warning, and if the warning off instruction is not received within the preset time, the communication module in the terminal device is controlled to send an alarm message to the target terminal device, thereby improving the accuracy and timeliness of the fire alarm.

[0122] In order to implement the above embodiments, the present disclosure also proposes a fire warning device.

[0123] Figure 8A schematic diagram of the structure of a fire warning device provided in an embodiment of the present disclosure.

[0124] like Figure 8 As shown, the fire warning device 800 may include:

[0125] The first control module 810 is used to control the first switch device in the fire warning circuit to turn on in response to receiving a fire warning function start instruction;

[0126] The second control module 820 is used to control the warning device in the terminal device to issue a fire warning when receiving the warning signal output by the fire warning circuit;

[0127] The third control module 830 is used to control the communication module in the terminal device to send alarm information to the target terminal device if no warning closing instruction is received within a preset time period after the control warning device issues a fire warning.

[0128] Optionally, the third control module 830 is specifically configured to:

[0129] In response to the early warning device being a vibrator, controlling the vibrator to vibrate at a preset vibration frequency;

[0130] In response to the early warning device being a flashlight, controlling the flashlight to emit light at a preset light emission frequency;

[0131] In response to the early warning device being a voice broadcast module, controlling the voice broadcast module to issue a voice early warning; and,

[0132] In response to the early warning device being a display screen, the display screen is controlled to display information associated with the fire early warning in the form of a pop-up window.

[0133] Optionally, the first control module 810 is specifically configured to:

[0134] When a fire warning function activation instruction is received, the first switch device, the second switch device, and the fifth switch device in the fire warning circuit are controlled to be turned on, and the third switch device and the fourth switch device are turned off.

[0135] Optionally, the first control module 810 is specifically configured to:

[0136] When receiving the infrared remote control function start command, the first switch device, the second switch device, and the fifth switch device in the fire warning circuit are controlled to be disconnected, and the third switch device and the fourth switch device are turned on, so that the infrared light emitting diode in the fire warning circuit is forward-conducted and emits infrared light.

[0137] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0138] The fire warning device of the disclosed embodiment can first receive a fire warning function start instruction, control the first switch device in the fire warning circuit to conduct, and after receiving the warning signal, control the warning device in the terminal device to issue a fire warning, and finally, within a preset time period after the warning device is controlled to issue a fire warning, if the warning shutdown instruction is not received, control the communication module in the terminal device to send an alarm message to the target terminal device. Thus, by controlling the conduction of the first switch device in the fire warning circuit, the infrared light emitting diode is reverse biased, so that the photoelectric effect of the infrared light emitting diode is used for fire warning, and if the warning shutdown instruction is not received within the preset time, the communication module in the terminal device is controlled to send an alarm message to the target terminal device, thereby improving the accuracy and timeliness of the fire alarm.

[0139] In order to implement the above embodiments, the present disclosure also proposes a terminal device, including: a fire warning circuit, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the fire warning method proposed in the above embodiments of the present disclosure is implemented.

[0140] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the fire warning method proposed in the above embodiments of the present disclosure is implemented.

[0141] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program. When the computer program is executed by a processor, it implements the fire warning method proposed in the above embodiments of the present disclosure.

[0142] Fig. 9 A block diagram of an exemplary terminal device suitable for implementing the embodiments of the present disclosure is shown. Fig. 9 The terminal device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0143] like Fig. 9 As shown, the terminal device 12 is in the form of a general-purpose computing device. The components of the terminal device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0144] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0145] The terminal device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the terminal device 12, including volatile and non-volatile media, removable and non-removable media.

[0146] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The terminal device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Fig. 9 not shown, usually called a "hard drive"). Although Fig. 9 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0147] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0148] The terminal device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the terminal device 12, and / or any device that enables the terminal device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the terminal device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the terminal device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the terminal device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0149] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0150] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0151] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0152] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0153] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0154] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0155] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0156] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0157] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A fire warning circuit, It is characterized in that include: A first switch device, an infrared light emitting diode, a first resistor, a second resistor, a comparator, and a controller; Wherein, the first end of the first switch device is connected to a power source, and the second end of the first switch device is connected to the cathode of the infrared light emitting diode; The anode of the infrared light emitting diode is connected to the first end of the first resistor; The second end of the first resistor is connected to the first end of the second resistor and the first input end of the comparator; The second end of the second resistor is grounded; The second input terminal of the comparator is connected to a reference voltage, and the comparator is used to output a warning signal when detecting that the voltage of the first input terminal is greater than the reference voltage; The controller is used to control the conduction state of the first switching device.

2. The circuit according to claim 1, It is characterized in that Also includes: Amplifier circuit; The input end of the amplifier circuit is connected to the second end of the first resistor, and the output end of the amplifier circuit is connected to the first input end of the comparator; The amplifier circuit is used to amplify the voltage at the input end of the amplifier circuit.

3. The circuit according to claim 1, It is characterized in that Also includes: Schmitt trigger; The input end of the Schmitt trigger is connected to the output end of the comparator, and is used to shape and output the early warning signal output by the comparator.

4. The circuit according to claim 1, It is characterized in that Also includes a second switching device, a third switching device, and a fourth switching device; Wherein, the first end of the second switch device is connected to the second end of the second resistor, and the second end of the second switch device is grounded; A first end of the third switch device is connected to the power supply, and a second end of the third switch device is connected to the second end of the first resistor; A first end of the fourth switch device is connected to the cathode of the infrared light emitting diode, and a second end of the fourth switch device is grounded; The controller is further used to control the conduction states of the second switching device, the third switching device, and the fourth switching device.

5. The circuit according to claim 4, It is characterized in that Also includes: a fifth switching device; The first end of the fifth switch device is connected to the second end of the first resistor, and the second end of the fifth switch device is connected to the first input end of the comparator; The controller is further configured to control a conduction state of the fifth switching device.

6. The circuit according to claim 5, It is characterized in that The first switch device, the third switch device, and the fourth switch device are P-type field effect transistors; the second switch device and the fifth switch device are N-type field effect transistors.

7. The circuit according to any one of claims 1 to 6, It is characterized in that The resistance value of the first resistor is smaller than the resistance value of the second resistor.

8. A fire early warning method, It is characterized in that include: In response to receiving a fire warning function activation instruction, controlling a first switch device in a fire warning circuit to be turned on; Upon receiving the warning signal output by the fire warning circuit, controlling the warning device in the terminal device to issue a fire warning; Within a preset time period after the warning device is controlled to issue a fire warning, if no warning closing instruction is received, the communication module in the terminal device is controlled to send an alarm message to the target terminal device.

9. The method according to claim 8, It is characterized in that The control terminal device in the early warning device issues a fire early warning, including at least one of the following: In response to the early warning device being a vibrator, controlling the vibrator to vibrate at a preset vibration frequency; In response to the early warning device being a flashlight, controlling the flashlight to emit light at a preset light emission frequency; In response to the early warning device being a voice broadcast module, controlling the voice broadcast module to issue a voice early warning; and, In response to the early warning device being a display screen, the display screen is controlled to display information associated with the fire early warning in the form of a pop-up window.

10. The method according to any one of claims 8-9, It is characterized in that Also includes: When the fire warning function activation instruction is received, the first switch device, the second switch device, and the fifth switch device in the fire warning circuit are controlled to be turned on, and the third switch device and the fourth switch device are controlled to be turned off.

11. The method according to any one of claims 8 to 9, It is characterized in that Also includes: When receiving the infrared remote control function start command, the first switch device, the second switch device, and the fifth switch device in the fire warning circuit are controlled to be disconnected, and the third switch device and the fourth switch device are turned on, so that the infrared light emitting diode in the fire warning circuit is forward-conducted and emits infrared light.

12. A fire warning device, It is characterized in that include: A first control module, configured to control a first switch device in a fire warning circuit to conduct in response to receiving a fire warning function activation instruction; A second control module is used to control the warning device in the terminal device to issue a fire warning when receiving the warning signal output by the fire warning circuit; The third control module is used to control the communication module in the terminal device to send alarm information to the target terminal device if no warning closing instruction is received within a preset time period after the warning device is controlled to issue a fire warning.

13. A terminal device, It is characterized in that The method comprises a fire warning circuit as described in any one of claims 1 to 7, a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the fire warning method as described in any one of claims 8 to 11 is implemented.

14. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the fire warning method as described in any one of claims 8 to 11 is implemented.