CN109600736B - Alarm device and alarm method - Google Patents

Alarm device and alarm method Download PDF

Info

Publication number
CN109600736B
CN109600736B CN201811216415.7A CN201811216415A CN109600736B CN 109600736 B CN109600736 B CN 109600736B CN 201811216415 A CN201811216415 A CN 201811216415A CN 109600736 B CN109600736 B CN 109600736B
Authority
CN
China
Prior art keywords
alarm
signal
things module
trigger
trigger signal
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.)
Active
Application number
CN201811216415.7A
Other languages
Chinese (zh)
Other versions
CN109600736A (en
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.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions 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 Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN201811216415.7A priority Critical patent/CN109600736B/en
Publication of CN109600736A publication Critical patent/CN109600736A/en
Application granted granted Critical
Publication of CN109600736B publication Critical patent/CN109600736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/12Manually actuated calamity alarm transmitting arrangements emergency non-personal manually actuated alarm, activators, e.g. details of alarm push buttons mounted on an infrastructure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Alarm Systems (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

The embodiment of the invention relates to the field of security and protection, and discloses an alarm device and an alarm method. In the alarm device, the power supply module is respectively and electrically connected with the alarm circuit and the narrow-band Internet of things module; an interrupt port of the narrow-band Internet of things module is electrically connected with a first output end of the alarm circuit, and a general input/output port of the narrow-band Internet of things module is electrically connected with a second output end of the alarm circuit; the narrowband Internet of things module is used for acquiring a first trigger signal through the interrupt port and switching from a power saving mode to a working mode under the trigger of the first trigger signal; and under the condition that the narrow-band Internet of things module is in a working mode, acquiring a second trigger signal through the universal input/output port, determining an alarm signal according to the duration of the acquired second trigger signal, and sending the determined alarm signal to the alarm platform. The alarm device in the embodiment reduces the power consumption and the cost of the alarm device and improves the alarm speed of the alarm device.

Description

Alarm device and alarm method
Technical Field
The embodiment of the invention relates to the field of security and protection, in particular to an alarm device and an alarm method.
Background
An alarm device is an electronic product that reminds or warns people of certain actions in the form of sound, light, air pressure and the like, such as a smoke alarm device, a fire alarm device and the like, in order to prevent or prevent the consequences caused by certain events. Along with the continuous development of the security market, the alarm device is also gradually perfected and matured.
The existing alarm device receives an alarm signal through a wireless module and transmits the alarm signal to a network platform in time to rapidly complete the alarm of a dangerous event. Meanwhile, in order to improve the security function of the alarm device, the alarm device generally has an alarm function of being damaged or being detached.
The inventor finds that at least the following problems exist in the prior art: at present, a single chip microcomputer is generally used as a main control module of an alarm device, a plurality of functional pins are arranged on the single chip microcomputer, and different alarm buttons are connected through different pins, so that the alarm function of the alarm device can be actively triggered by a user, and the alarm function when the alarm device is damaged or detached can be realized; and the alarm signal is uploaded to a network platform through the connected 2G/3G/4G communication module. However, the power consumption of the single chip microcomputer and the energy consumption of the 2G/3G/4G communication module are very large, which increases the cost of the alarm device, and meanwhile, in the process of uploading the alarm signal to the network platform by using the single chip microcomputer as the main control module, the signal needs to be transmitted to the communication module connected with the single chip microcomputer, and then the signal is transmitted, which may generate time delay and affect the alarm function of the alarm device.
Disclosure of Invention
The invention aims to provide an alarm device and an alarm method, which can reduce the power consumption and the cost of the alarm device and improve the alarm speed of the alarm device.
In order to solve the above technical problem, an embodiment of the present invention provides an alarm device, including: the alarm device comprises a narrow-band Internet of things module, an alarm circuit provided with a key and a power supply module, wherein the power supply module is electrically connected with the alarm circuit and the narrow-band Internet of things module respectively; an interrupt port of the narrow-band Internet of things module is electrically connected with a first output end of the alarm circuit, and a general input/output port of the narrow-band Internet of things module is electrically connected with a second output end of the alarm circuit; under the condition that the key is in a trigger state, a first output end outputs a first trigger signal, and a second output end outputs a second trigger signal; the narrowband Internet of things module is used for acquiring a first trigger signal through the interrupt port and switching from a power saving mode to a working mode under the trigger of the first trigger signal; and under the condition that the narrow-band Internet of things module is in a working mode, acquiring a second trigger signal through the universal input/output port, determining an alarm signal according to the duration of the acquired second trigger signal, and sending the determined alarm signal to the alarm platform.
The embodiment of the invention also provides an alarm method, which comprises the following steps: acquiring a first trigger signal; under the trigger of a first trigger signal, switching from a power saving mode to a working mode; under the condition of being in a working mode, acquiring a second trigger signal, wherein the first trigger signal and the second trigger signal are generated when the alarm circuit is in a trigger state; determining an alarm signal according to the duration of the second trigger signal; and sending the determined alarm signal to an alarm platform.
Compared with the prior art, the alarm device has the advantages that the narrow-band Internet of things module is a main power consumption module in the alarm device, the narrow-band Internet of things modules are all in the power saving mode under the condition that the keys of the alarm circuit are not triggered, and the power consumption is very low under the condition that the narrow-band Internet of things modules are in the power saving mode, so that the power consumption of the whole alarm device is greatly reduced. Meanwhile, the narrowband Internet of things module only has one interrupt port, the interrupt port is only used for waking up the narrowband Internet of things module, the interrupt port is connected with a first output port of the alarm circuit, a general input/output port is connected with a second output port of the alarm circuit, when a key is triggered, a first trigger signal is output by the first output port, the narrowband Internet of things module is woken up from a power-saving mode, a second trigger signal is output by the second output port, when the narrowband Internet of things module enters a working mode, different alarm signals are determined through the second trigger signal, so that the alarm device can realize different types of alarms, and the narrowband Internet of things module can communicate with a base station without sending the alarm signal to another communication module, and the other communication module sends the alarm signal, therefore, the time for uploading the alarm signal to the alarm platform is reduced, and the alarm speed is improved.
In addition, the narrowband Internet of things module comprises a timer; under the condition that the narrowband internet of things module is in the working mode, the narrowband internet of things module is specifically used for: starting a timer, and counting the duration of the second trigger signal acquired by the general input/output port; comparing the duration time with the preset time, if the duration time is less than the preset time and greater than 0, determining a first alarm signal, and sending the determined first alarm signal to an alarm platform, and if the duration time is greater than the preset time, determining a second alarm signal, and sending the determined second alarm signal to the alarm platform; the first alarm signal is used for indicating the state that the alarm device is actively triggered, and the second alarm signal is used for indicating the damaged state of the alarm device. The time that the general input/output port continuously receives the second trigger signal is counted, the alarm signal is determined according to the duration and the preset time, the implementation is simple, the speed of determining the alarm signal is high, the first alarm signal is used for indicating the state that the alarm device is actively triggered, the second alarm signal indicates the damaged condition of the alarm device, the two alarm modes meet the alarm conditions of active alarm and the condition that the alarm device is detached or damaged, and the function of the alarm device is more complete.
The alarm circuit includes: the device comprises a resistor, a first triode, a second triode and a key; the input end of the resistor is electrically connected with the power supply module, the output end of the resistor is electrically connected with the base electrode of the first triode, the base electrode of the second triode and the first end of the key respectively, the emitting electrode of the first triode and the emitting electrode of the second triode are grounded respectively, and the second end of the key is grounded; the interrupt port is electrically connected with a collector electrode of the first triode and used for acquiring a first trigger signal generated by the first triode under the condition that the key is in a trigger state; the universal input/output port is electrically connected with a collector electrode of the second triode and is used for acquiring a second trigger signal generated by the second triode under the condition that the narrowband Internet of things module is in a working mode. The alarm circuit generates a first trigger signal and a second trigger signal through the resistor, the first triode and the second triode, the alarm circuit is simple to realize, and the cost of the alarm circuit is reduced.
In addition, the button is a mechanical switch, and the triggering state of the button is a disconnection state. The mechanical switch has stable performance and simple connection, and the cost of the alarm device is further reduced.
In addition, the alarm circuit further includes: a third triode and a trigger device; the output end of the trigger device is electrically connected with the base electrode of the third triode, the interrupt port is electrically connected with the collector electrode of the third triode, and the emitter electrode of the third triode is grounded; the interrupt port is used for acquiring a third trigger signal generated by a third triode under the condition that the trigger device is in a trigger state, and the narrow-band Internet of things module is switched from a power saving mode to a working mode under the trigger of the third trigger signal; the narrowband Internet of things module is also used for: and if the third trigger signal is received and the second trigger signal is not received, determining a first alarm signal and sending the first alarm signal to an alarm platform, wherein the first alarm signal is used for indicating the state of the alarm device which is actively triggered. Through the third triode and the triggering device, another alarming triggering mode of the alarming device is added, so that multiple alarming modes are provided, and the applicability of the alarming device is improved.
In addition, before the key is in the trigger state, the narrowband internet of things module is further configured to: establishing communication connection with a communication base station, and determining an interval period of the narrow-band Internet of things module entering a working mode from a power saving mode; and the narrow-band Internet of things module sends a feedback signal in a normal state to the alarm platform at intervals. The alarm platform is prevented from losing monitoring of the alarm device by communicating with the base station once at fixed intervals and feeding back information in a normal state.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of an alarm device provided in a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an alarm device provided in a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an alarm device provided in a third embodiment of the present invention;
FIG. 4 is a detailed flow chart of a method for alarming according to a fourth embodiment of the present invention;
FIG. 5 is a detailed flow chart of a method of alarming according to a fifth embodiment of the present invention;
fig. 6 is a detailed flowchart of an alarm method according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to an alarm device. The alarm device includes: the alarm device comprises a narrow-band Internet of things module 101, an alarm circuit 103 provided with a key 102 and a power supply module 104, and the alarm device is structurally shown in FIG. 1.
The power supply module 104 is electrically connected with the alarm circuit 103 and the narrowband internet of things module 101 respectively; an interrupt port (e.g., PSM _ EINT port shown in fig. 1) of the narrowband internet of things module 101 is electrically connected to a first output terminal (e.g., P1 shown in fig. 1) of the alarm circuit 103, and a general purpose input/output port (e.g., GPIO shown in fig. 1) of the narrowband internet of things module 101 is electrically connected to a second output terminal (e.g., P2 shown in fig. 1) of the alarm circuit 103.
Specifically, as shown in fig. 1, a power input port (e.g., VBAT port in fig. 1) of the narrowband internet of things module 101 is electrically connected to a power module 104, the power module 104 provides power to the narrowband internet of things module 101, in addition, the narrowband internet of things module 101 further has a power-on port (e.g., PWRKEY port in fig. 1), the power-on port is electrically connected to a capacitor (e.g., C1 in fig. 1), and the power-on port triggers the narrowband internet of things module 101 to power on through the capacitor C1 when the level of the power-on port reaches a preset level value (e.g., the preset level value is 500 ms).
The power supply port of the alarm circuit 103 is electrically connected with the power supply module 104, the alarm circuit is powered by the power supply module 104, the input end of the alarm circuit 103 is electrically connected with the key 102, the first output end (such as P1 shown in FIG. 1) is electrically connected with the interrupt port (such as PSM _ EINT port shown in FIG. 1), and the second output end (such as P2 shown in FIG. 1) is electrically connected with the general input/output end (such as GPIO shown in FIG. 1). Under the condition that the key 102 is in a trigger state, a first output end outputs a first trigger signal, and a second output end outputs a second trigger signal; the narrowband internet of things module 101 is configured to acquire a first trigger signal through an interrupt port, and switch from a power saving mode to a working mode under the trigger of the first trigger signal; under the condition that the narrowband internet of things module 101 is in the working mode, a second trigger signal is obtained through the general input/output port, an alarm signal is determined according to the duration of the obtained second trigger signal, and the determined alarm signal is sent to the alarm platform.
Specifically, the narrowband internet of things module 101 has a communication function, and realizes a communication connection with a base station through a radio frequency antenna (such as an RF port shown in fig. 1, where the RF port is electrically connected to the radio frequency antenna). The data of the narrowband internet of things 101 usually has two modes, namely a power saving mode and a working mode, and under the power saving mode, the power consumption of the narrowband internet of things 101 module is very low, usually only 4 uA. The GPIO port of the narrowband internet of things module 101 may be configured to an internal pull-up level, i.e., the GPIO port is triggered by a low level. Similarly, the interrupt port may also be set to be triggered by a low level. In this embodiment, the example is only given, and in practical application, the trigger mode of the GPIO port and the interrupt port of the narrowband internet of things module 101 may be set as needed, which is not limited in this embodiment. After the connection of each part in the alarm device is completed, if the key 102 is not triggered after the power is on, the narrowband internet of things module 101 is in a power saving mode, and the interrupt port and the GPIO port do not execute any operation; when the key 102 is triggered, the alarm circuit 103 generates a first trigger signal and a second trigger signal, and when the interrupt port acquires the first trigger signal, switches from the power saving mode to the working mode under the trigger of the first trigger signal, and determines the alarm signal according to the duration of the second trigger signal received by the GPIO port in the working mode.
In a specific implementation, the narrowband internet of things module 101 includes a timer; under the condition that the narrowband internet of things module 101 is in the working mode, the narrowband internet of things module 101 starts a timer, and counts the duration of the second trigger signal acquired by the general input/output port; comparing the duration time with the preset time, if the duration time is less than the preset time and greater than 0, determining a first alarm signal, and sending the determined first alarm signal to an alarm platform, and if the duration time is greater than the preset time, determining a second alarm signal, and sending the determined second alarm signal to the alarm platform; the first alarm signal is used for indicating the state that the alarm device is actively triggered, and the second alarm signal is used for indicating the damaged state of the alarm device.
The whole process of realizing the alarm by the alarm device will be described as a specific example.
For example, the narrowband internet of things module 101 and the alarm circuit 103 in the alarm device are electrically connected, and the power supply module 104 is electrically connected with the narrowband internet of things module 101 and the alarm circuit 103 respectively, the narrowband internet of things module 101 is in a power saving mode when the key 102 is not triggered, when the key 102 is triggered, the alarm circuit 103 generates a first trigger signal and a second trigger signal, the interrupt port triggers the narrowband internet of things module 101 to switch from the power saving mode to the working mode through the acquired first trigger signal, if the time for the GPIO port to receive the second trigger signal is T, and 0< T0, then a first alarm signal is determined, the first alarm signal is sent to the alarm platform through the radio frequency antenna, the alarm platform acquires the first alarm signal, the alarm is known to be an active alarm, and the alarm is processed according to the processing strategy of the active alarm. If the preset time is T0, if the time for the GPIO port to receive the second trigger signal is T and T is greater than T0, a second alarm signal is determined and sent to the alarm platform through the radio frequency antenna, the alarm platform acquires the second alarm signal, and then the alarm device can be known to be in a damaged state (such as man-made damage, device structure loosening and failure), and at the moment, the alarm device can be processed according to the damaged strategy. Of course, the preset time may be set according to actual needs, and is not limited herein, for example, the preset time may be set to 10 seconds.
Compared with the prior art, the alarm device has the advantages that the narrow-band Internet of things module is a main power consumption module in the alarm device, the narrow-band Internet of things modules are all in the power saving mode under the condition that the keys of the alarm circuit are not triggered, and the power consumption is very low under the condition that the narrow-band Internet of things modules are in the power saving mode, so that the power consumption of the whole alarm device is greatly reduced. Meanwhile, the narrowband Internet of things module only has one interrupt port and is used for awakening the narrowband Internet of things module, the interrupt port is connected with a first output port of the alarm circuit, a general input/output port is connected with a second output port of the alarm circuit, when the key is triggered, a first trigger signal is output by the first output port, the narrowband Internet of things module is awakened from a power-saving mode, the second output port outputs a second trigger signal, when the narrowband Internet of things module enters a working mode, different alarm signals are determined through the second trigger signal, so that the alarm device can realize different types of alarms, and the narrowband Internet of things module can communicate with the base station without sending the alarm signals to another communication module by the narrowband Internet of things module and sending the alarm signals by the other communication module, so that the time for uploading the alarm signals to an alarm platform is reduced, the alarm speed is improved.
A second embodiment of the present invention relates to an alarm device. The second embodiment is a further improvement of the first embodiment, and the main improvements are as follows: in the second embodiment of the present invention, before the key 102 is in the trigger state, the narrowband internet of things module 101 sends a normal feedback signal to the alarm platform according to a set interval period.
In one specific implementation, the alarm circuit 103 includes: a resistor 1034, a first transistor 1035, a second transistor 1036, and a key 102, and the specific structure of the alarm circuit 103 is shown in fig. 2, wherein the specific connection between the power module 104 and the alarm circuit 103 in fig. 2 is not shown.
An input end of the resistor 1034 is electrically connected with the power module 104, an output end of the resistor 1034 is electrically connected with a base of the first triode 1035, a base of the second triode 1036 and a first end of the key 102 respectively, an emitter of the first triode 1035 and an emitter of the second triode 1036 are grounded respectively, wherein a second end of the key 102 is grounded; the interrupt port is electrically connected with the collector of the first transistor 1035 and is used for acquiring a first trigger signal generated by the first transistor 1035 under the condition that the key 102 is in a trigger state; the general input/output port is electrically connected to a collector of the second triode 1036, and is configured to acquire a second trigger signal generated by the second triode when the narrowband internet of things module 101 is in the operating mode.
Specifically, in this embodiment, the resistor 1034 is used to avoid short circuit when the key is in the connected state, and therefore, the resistor 1034 may be selected according to practical applications, for example, a resistor with a resistance value of 10K is used in this embodiment. The first transistor 1035 and the second transistor 1036 may be NPN transistors or PNP transistors. In this embodiment, an NPN-type triode is taken as an example to describe in detail the working principles of the alarm circuit 103 and the narrowband internet of things module 101.
As shown in fig. 2, when the key 102 is not triggered, the bases of the first transistor 1035 and the second transistor 1036 are at a low level, the first transistor 1035 and the second transistor 1036 are not turned on, and the gio port and the interrupt port of the narrowband internet of things module 101 are equivalently floating, and at this time, the narrowband internet of things module 101 is in a power saving mode; when the key 102 is triggered (as shown in fig. 2), the key 102 is disconnected, the levels of the base of the first transistor 1035 and the base of the second transistor 1036 are pulled high, at this time, the first transistor 1035 and the second transistor 1036 are turned on, that is, the GPIO port and the interrupt port of the narrowband internet of things module 101 are turned on, where a current signal (or a voltage signal) at the collector of the first transistor 1035 is a first trigger signal; the current signal (or voltage signal) at the collector of the second transistor 1036 is the second trigger signal. The interrupt port 1011 switches the narrowband internet of things module 101 from the power saving mode to the working mode through the first trigger signal, and when the narrowband internet of things module 101 is in the working mode, the timer in the narrowband internet of things module 101 is turned on, and the time that the GPIO port continuously receives the second trigger signal is counted. And determining an alarm signal according to the counted duration, and reporting the determined alarm signal to an alarm platform.
In a specific implementation, before the key 102 is in the trigger state, the narrowband internet of things module 101 establishes a communication connection with a communication base station, and determines an interval period during which the narrowband internet of things module 101 enters the working mode from the power saving mode; the narrowband internet of things module 101 sends a feedback signal of a normal state to the alarm platform at intervals.
Specifically, after connection of each part in the alarm device is completed and after power-on, before the key 102 is not triggered, the narrowband internet of things module 101 needs to establish communication connection with a communication base station in advance, and negotiates with the base station for an interval period for switching the narrowband internet of things from the power saving mode to the working mode, where the interval period may be set according to actual needs. The narrowband internet of things module 101 switches from the power saving mode to the working mode every other time interval, and this function may be implemented by a timer (e.g., T3412) in the narrowband internet of things module. The narrow-band internet of things module 101 enters a working mode at the moment, sends a normal feedback signal to the alarm platform, and communicates with the base station once at a fixed interval time period to feed back information in a normal state, so that the alarm platform is prevented from losing monitoring of the alarm device.
In the alarm device provided by the embodiment, the alarm circuit generates the first trigger signal and the second trigger signal through the resistor, the first triode and the second triode, the alarm circuit is simple to realize, and the cost of the alarm circuit is reduced. In addition, before the key is triggered, the narrow-band Internet of things module is in communication connection with the communication base station, the interval time period of switching the narrow-band Internet of things from the power saving mode to the working mode is determined, and the narrow-band Internet of things module communicates with the base station once at the fixed interval time period to feed back information in a normal state, so that the alarm platform is prevented from losing monitoring of the alarm device.
A third embodiment of the present invention relates to an alarm device, which is a further improvement of the second embodiment, and has the main improvements that: in this embodiment, the alarm circuit 103 further includes: a third transistor 1037 and a triggering device 1038. The specific structure of the alarm device is shown in fig. 3:
the alarm circuit 103 further includes: a third transistor 1037 and a triggering device 1038; the output end of the triggering device 1038 is electrically connected to the base of the third transistor 1037, the interrupt port is electrically connected to the collector of the third transistor 1037, and the emitter of the third transistor 1037 is grounded; the interrupt port is configured to acquire a third trigger signal generated by the third triode 1037 when the triggering device 1038 is in a triggering state, and the narrowband internet of things module 101 switches from the power saving mode to the working mode under the triggering of the third trigger signal; narrowband internet of things module 101 is also configured to: and if the third trigger signal is received and the second trigger signal is not received, determining a first alarm signal and sending the first alarm signal to an alarm platform, wherein the first alarm signal is used for indicating the state of the alarm device which is actively triggered.
In particular, the triggering device 1038 can be a sensor, such as a smoke sensor, an infrared sensor, or the like. When the triggering device 1038 is triggered, a signal is output, and the third triode 1037 is further turned on, so that the interrupt port of the narrowband internet of things module 101 obtains a third triggering signal generated by the third triode 1037, at this time, the narrowband internet of things module 101 is switched from the power saving mode to the working mode under the triggering of the third triggering signal, if the key 102 is not triggered, the narrowband internet of things module 101 does not receive the second triggering signal, and the narrowband internet of things module 101 can determine that the triggering is the first alarm signal and send the first alarm signal to the alarm platform.
It can be understood that the third triode 1037 is turned on, the narrowband internet of things module 101 receives the third trigger signal, if the key 102 is triggered at the same time, the alarm signal is still determined according to the mode in the first embodiment or the second embodiment, that is, the narrowband internet of things module 101 receives the third trigger signal, the power saving mode is switched to the operating mode, meanwhile, the key 101 is triggered, the timer is started, the duration time of the GPIO port acquiring the second trigger signal is counted, if the duration time is compared with the preset time, the duration time is less than the preset time and greater than 0, the first alarm signal is determined, and if the duration time is compared with the preset time, the duration time is greater than the preset time, the second alarm signal is determined.
According to the alarm device provided by the embodiment, another alarm triggering mode of the alarm device is added through the third triode and the triggering device, so that multiple alarm modes are provided, and the applicability of the alarm device is improved.
A fourth embodiment of the present invention relates to an alarm method, which is applied to a narrowband internet of things module in an alarm device, and a specific flow of the alarm method is shown in fig. 4.
The narrow-band internet of things module in the embodiment is electrically connected with the alarm circuit, the power module in the alarm device is electrically connected with the narrow-band internet of things module and the alarm circuit respectively, the alarm circuit comprises a key, and the alarm circuit generates a first trigger signal and a second trigger signal through triggering of the key. In this embodiment, the connection relationship between the narrowband internet of things module, the power module, and the alarm circuit is substantially the same as that of the alarm device in the first embodiment or the second embodiment, and details are not repeated here.
Step 401: a first trigger signal is acquired.
Specifically, the interrupt port of the narrowband internet of things module is used for acquiring a first trigger signal.
Step 402: and under the triggering of the first trigger signal, switching from the power saving mode to the working mode.
Specifically, the interrupt port acquires a first trigger signal, and the narrowband internet of things module is switched from a power saving mode to a working mode under the trigger of the first signal.
Step 403: and under the condition of working mode, acquiring a second trigger signal, wherein the first trigger signal and the second trigger signal are generated by the alarm circuit when the key is in a trigger state.
Specifically, under the condition that the narrowband internet of things module is in the working mode, a general input/output port in the narrowband internet of things module acquires a second trigger signal.
Step 404: and determining an alarm signal according to the duration of the second trigger signal.
In a specific implementation, the duration of the second trigger signal is obtained through statistics; comparing the duration time with a preset time, if the duration time is less than the preset time and greater than 0, determining a first alarm signal, and if the duration time is greater than the preset time, determining a second alarm signal; the first alarm signal is used for indicating the state that the alarm device is actively triggered, and the second alarm signal is used for indicating the damaged state of the alarm device.
Specifically, under the condition that the narrowband internet of things module is in the working mode, a timer is started, the time for continuously acquiring the second trigger signal is counted, the counted duration time is compared with the preset time, the first alarm signal is determined according to the comparison result, the first alarm signal is sent to the alarm platform, and similarly, if the second alarm signal is determined, the second alarm signal is sent to the alarm platform. It should be noted that the first alarm signal and the second alarm signal may be pre-stored in the narrowband internet of things module.
Step 405: and sending the determined alarm signal to an alarm platform.
Specifically, after the narrow-band internet of things module determines the alarm signal, the first alarm signal or the second alarm signal is immediately sent to the alarm platform, so that the opportunity of processing the alarm signal is prevented from being delayed, the alarm signal is sent at the highest speed, and the timeliness of alarming is ensured.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
It should be understood that this embodiment is a method example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A fifth embodiment of the present invention is directed to a method of alarming. The fifth embodiment is a further improvement of the fourth embodiment, and the main improvements are as follows: in a fifth embodiment of the present invention, before the first trigger signal is acquired, a feedback signal of a normal state is sent to the alarm platform at certain intervals. The specific flow of the alarm method is shown in fig. 5.
Step 501: and establishing communication connection with the communication base station, and determining the interval period of entering the working mode from the power saving mode.
Specifically, after the alarm device including the narrowband internet of things module is powered on, communication connection is established with a communication base station, and an interval period for switching the narrowband internet of things module from a power saving mode to a working mode is set according to actual needs. Of course, the implementation may be performed by a timer in the narrowband internet of things module, such as the timer T3412.
Step 502: and sending a feedback signal of a normal state to the alarm platform at intervals.
Specifically, in order to avoid losing contact with the narrowband internet of things module in the alarm device, the narrowband internet of things module is switched from the power saving mode to the working mode at intervals, and a feedback signal in a normal state is sent to the alarm platform. It can be understood that after the feedback signal of the normal state is sent to the alarm platform, the narrowband internet of things module is switched from the working mode to the power saving mode without receiving the control instruction. For example, at time T1, the narrowband internet of things module sends a feedback signal of a normal state to the alarm platform, and within a time period from T1 to T2, the narrowband internet of things module does not receive any operation instruction, and then the narrowband internet of things module switches to the power saving mode.
Step 503: a first trigger signal is acquired.
Step 504: and under the triggering of the first trigger signal, switching from the power saving mode to the working mode.
Step 505: and under the condition of working mode, acquiring a second trigger signal, wherein the first trigger signal and the second trigger signal are generated by the alarm circuit when the key is in a trigger state.
Step 506: and determining an alarm signal according to the duration of the second trigger signal.
According to the alarm method provided by the embodiment, the alarm platform is prevented from losing monitoring of the alarm device by communicating with the base station once at fixed intervals and feeding back information in a normal state.
Step 507: and sending the determined alarm signal to an alarm platform.
It should be noted that steps 503 to 507 in this embodiment are substantially the same as steps 401 to 405 in the third embodiment, and will not be described again here.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
A sixth embodiment of the present invention is directed to a method of alarming. The sixth embodiment is a further improvement of the fifth embodiment, and the main improvements are as follows: in the sixth embodiment of the present invention, the alarm signal may be determined according to the received third trigger signal and the second trigger signal. The specific flow of the alarm method is shown in fig. 6.
Step 601: and establishing communication connection with the communication base station, and determining the interval period of entering the working mode from the power saving mode.
Step 602: and sending a feedback signal of a normal state to the alarm platform at intervals.
Step 603: a third trigger signal is acquired.
Specifically, after the triggering device in the alarm circuit is triggered, a third triode in the alarm circuit generates a third triggering signal, and the interrupt port of the narrowband internet of things module acquires the third triggering signal.
Step 604: and under the triggering of the third trigger signal, switching from the power saving mode to the working mode.
Specifically, the interrupt port acquires a third trigger signal, and the narrowband internet of things module is switched from the power saving mode to the working mode under the trigger of the third signal.
Step 605: and if the third trigger signal is determined to be received and the second trigger signal is not received, determining a first alarm signal.
Specifically, the narrowband internet of things module determines whether the GPIO port receives the second trigger signal when the narrowband internet of things module is in the operating mode, that is, if the duration of obtaining the second trigger signal is determined to be zero, it is determined that the GPIO port does not receive the second trigger signal, and the narrowband internet of things module may determine that the alarm signal is the first alarm signal, that is, the alarm device is in the state of being actively triggered.
Step 606: and sending the determined alarm signal to an alarm platform.
It should be noted that steps 601 to 602 and step 606 in this embodiment are substantially the same as steps 501 to 502 and 507 in the fifth embodiment, and this embodiment is not repeated, wherein steps 503 to 506 in the fifth embodiment may be performed after step 605 and before step 606 in this embodiment; of course, step 503 to step 506 in the fifth embodiment may be executed after step 602, and then step 603 to step 606 in the present embodiment may be executed.
Since the third embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and the technical effects that can be achieved in the third embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the third embodiment.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (7)

1. An alarm device, comprising: the alarm device comprises a narrow-band Internet of things module, an alarm circuit provided with a key and a power supply module, wherein the power supply module is electrically connected with the alarm circuit and the narrow-band Internet of things module respectively;
an interrupt port of the narrow-band Internet of things module is electrically connected with a first output end of the alarm circuit, and a universal input/output port of the narrow-band Internet of things module is electrically connected with a second output end of the alarm circuit;
under the condition that the key is in a trigger state, the first output end outputs a first trigger signal, and the second output end outputs a second trigger signal;
the narrowband Internet of things module is used for acquiring the first trigger signal through the interrupt port and switching from a power saving mode to a working mode under the trigger of the first trigger signal;
and under the condition that the narrowband Internet of things module is in the working mode, acquiring the second trigger signal through the universal input/output port, determining an alarm signal according to the duration of the second trigger signal, and sending the determined alarm signal to an alarm platform.
2. The warning device of claim 1, wherein the narrowband internet of things module comprises a timer;
under the condition that the narrowband internet of things module is in the working mode, the narrowband internet of things module is specifically configured to:
starting a timer, and counting the duration of the second trigger signal acquired by the general input/output port;
comparing the duration time with a preset time, if the duration time is less than the preset time and greater than 0, determining a first alarm signal, and sending the determined first alarm signal to the alarm platform, and if the duration time is greater than the preset time, determining a second alarm signal, and sending the determined second alarm signal to the alarm platform;
the first alarm signal is used for indicating the state that the alarm device is actively triggered, and the second alarm signal is used for indicating the damaged state of the alarm device.
3. The alarm device according to claim 1 or 2, wherein the alarm circuit comprises: the key comprises a resistor, a first triode, a second triode and the key;
the input end of the resistor is electrically connected with the power supply module, the output end of the resistor is respectively electrically connected with the base electrode of the first triode, the base electrode of the second triode and the first end of the key, the emitting electrode of the first triode and the emitting electrode of the second triode are respectively grounded, and the second end of the key is grounded;
the interrupt port is electrically connected with a collector electrode of the first triode and is used for acquiring the first trigger signal generated by the first triode under the condition that the key is in a trigger state;
the universal input/output port is electrically connected with a collector electrode of the second triode and is used for acquiring the second trigger signal generated by the second triode under the condition that the narrowband Internet of things module is in the working mode.
4. The alarm device according to claim 1 or 2, wherein the button is a mechanical switch and the activation state of the button is a disconnected state.
5. The alarm device of claim 3, wherein the alarm circuit further comprises: a third triode and a trigger device;
the output end of the trigger device is electrically connected with the base electrode of the third triode, the interrupt port is electrically connected with the collector electrode of the third triode, and the emitter electrode of the third triode is grounded;
the interrupt port is used for acquiring a third trigger signal generated by the third triode under the condition that the trigger device is in a trigger state, and the narrowband internet of things module is switched from a power saving mode to the working mode under the trigger of the third trigger signal;
the narrowband internet of things module is further used for: and if the third trigger signal is received and the second trigger signal is not received, determining a first alarm signal and sending the first alarm signal to the alarm platform, wherein the first alarm signal is used for indicating the state of the alarm device which is actively triggered.
6. The alarm device of claim 3, wherein before the key is in the activated state, the narrowband IOT module is further configured to:
establishing communication connection with a communication base station, and determining an interval period of the narrow-band Internet of things module entering a working mode from a power saving mode;
and the narrow-band Internet of things module sends a feedback signal of a normal state to the alarm platform every other interval time period.
7. The warning device of claim 5 wherein the triggering device is a sensor.
CN201811216415.7A 2018-10-18 2018-10-18 Alarm device and alarm method Active CN109600736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811216415.7A CN109600736B (en) 2018-10-18 2018-10-18 Alarm device and alarm method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811216415.7A CN109600736B (en) 2018-10-18 2018-10-18 Alarm device and alarm method

Publications (2)

Publication Number Publication Date
CN109600736A CN109600736A (en) 2019-04-09
CN109600736B true CN109600736B (en) 2021-11-23

Family

ID=65958035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811216415.7A Active CN109600736B (en) 2018-10-18 2018-10-18 Alarm device and alarm method

Country Status (1)

Country Link
CN (1) CN109600736B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2089503U (en) * 1990-08-30 1991-11-27 戴世钧 Reed alarm lock
KR20140054555A (en) * 2012-10-29 2014-05-09 삼성전자주식회사 Method for operating alarm and electronic device supporting the same
CN104464136A (en) * 2013-09-23 2015-03-25 深圳市海洋王照明工程有限公司 Infrared alarm control circuit
CN206497558U (en) * 2016-12-29 2017-09-15 东莞亿动智能科技有限公司 Ship, underwater propeller, single-button Digiplex and its individual palpation key circuit
CN206805735U (en) * 2017-04-13 2017-12-26 上海昊想智能科技有限公司 Intelligent base and fire alarm installation
CN107157459A (en) * 2017-07-03 2017-09-15 李凤麟 A kind of wearable smart machine and intelligent rescue system

Also Published As

Publication number Publication date
CN109600736A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
US9820234B2 (en) Economical motor vehicle operation during a parked phase
CN102523402B (en) Intelligent television remote controller and power-saving method thereof
US20160055739A1 (en) Apparatus and method for locating and updating low-power wireless communication devices
CN204632030U (en) A kind of infrared microwave dual technology detector
JP2001517831A (en) System and method for intermittently communicating diagnostic information from a user input device
CN103248663A (en) Terminal equipment control circuit
CN111103963A (en) Fingerprint module starting method and device, storage medium and terminal
CN109600736B (en) Alarm device and alarm method
US11543853B2 (en) Pulse counting apparatus operating at low power and operation method thereof
WO2024007679A1 (en) Key control circuit, method and apparatus, device, storage medium, and remote controller
CN103021158B (en) Remote controller, and testing device and method thereof
CN110797841A (en) Power supply management device, electronic apparatus, and management device control method
CN113193631B (en) Power supply control device, power supply control method, storage medium, and electronic device
CN215954490U (en) Remote control circuit and remote controller
CN112543017A (en) Long-connection circuit without influence on power consumption
CN215072349U (en) Key circuit, key assembly and electronic equipment
CN219435243U (en) Dormancy wake-up circuit, motor controller and vehicle
CN216161221U (en) Remote control circuit and remote controller
CN210894645U (en) Fault alarm device
CN110730490A (en) Low-power-consumption OOK data processing device, communication system and method
CN215526418U (en) Control device for electronic machine
CN214375951U (en) NB-IOT module data transmission control circuit
CN104682934A (en) Single-key switch control circuit
CN219417761U (en) Infrared emission tube detection circuit and system
CN219370250U (en) Temperature management circuit and terminal equipment

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
GR01 Patent grant
GR01 Patent grant