CN108242137B - Alarm triggering method for sensor and electronic device using same - Google Patents

Alarm triggering method for sensor and electronic device using same Download PDF

Info

Publication number
CN108242137B
CN108242137B CN201710403044.2A CN201710403044A CN108242137B CN 108242137 B CN108242137 B CN 108242137B CN 201710403044 A CN201710403044 A CN 201710403044A CN 108242137 B CN108242137 B CN 108242137B
Authority
CN
China
Prior art keywords
sensor
signal value
signal
value
trigger condition
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
CN201710403044.2A
Other languages
Chinese (zh)
Other versions
CN108242137A (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.)
Lite On Technology Corp
Original Assignee
Lite On Technology Corp
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 Lite On Technology Corp filed Critical Lite On Technology Corp
Priority to US15/697,455 priority Critical patent/US10121363B2/en
Publication of CN108242137A publication Critical patent/CN108242137A/en
Application granted granted Critical
Publication of CN108242137B publication Critical patent/CN108242137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B29/00Checking or monitoring of signalling or alarm systems; Prevention or correction of operating errors, e.g. preventing unauthorised operation
    • G08B29/18Prevention or correction of operating errors
    • G08B29/185Signal analysis techniques for reducing or preventing false alarms or for enhancing the reliability of the system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J5/0022Radiation pyrometry, e.g. infrared or optical thermometry for sensing the radiation of moving bodies
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J5/02Constructional details
    • G01J5/027Constructional details making use of sensor-related data, e.g. for identification of sensor parts or optical elements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Geophysics And Detection Of Objects (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Emergency Alarm Devices (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides an alarm triggering method for a sensor and an electronic device using the same. The method includes receiving a sensor signal from a sensor and determining whether a signal value of the sensor signal meets a first trigger condition, wherein the first trigger condition is associated with a first decision threshold. And when the signal value meets the first triggering condition, judging whether the signal value meets a second triggering condition or a third triggering condition, wherein the second triggering condition is associated with a second judgment threshold value, the second judgment threshold value is higher than the first judgment threshold value, and the third triggering condition is associated with a time judgment threshold value. And when the signal value meets the second triggering condition or the third triggering condition, judging that the sensor is in an alarm state to output an alarm signal.

Description

Alarm triggering method for sensor and electronic device using same
Technical Field
The present invention relates to an alarm triggering method and an electronic device using the same, and more particularly, to an alarm triggering method for a sensor and an electronic device using the same.
Background
An infrared motion sensor (also called human body infrared sensor) is a passive infrared sensor, which absorbs infrared radiation signals of a foreign object, and generates positive and negative oscillation analog signals through a Fresnel Lens (Fresnel Lens) on the surface of the sensor. It is common practice to sample the analog signal to convert the infrared radiation signal into an infrared radiation value, and compare the infrared radiation value with a predetermined threshold value to determine whether any object is approaching.
However, the infrared radiation emitted by human body, animal and other objects has different values, and the infrared radiation received by the sensor under different environments will also change. Therefore, the fixed threshold and the single judgment method adopted by the prior art are easy to cause the false alarm triggering caused by the infrared radiation values of different foreign objects and different environments.
Disclosure of Invention
In view of the above, the present invention provides an alarm triggering method for a sensor and an electronic device using the same, which determine whether a signal value of the sensor meets an alarm triggering condition by using multiple thresholds, so as to reduce the probability of false alarm triggering.
In an embodiment of the present invention, the alarm triggering method for a sensor is applied to an electronic device and includes the following steps. The method includes receiving a sensor signal from a sensor and determining whether a signal value of the sensor signal meets a first trigger condition, wherein the first trigger condition is associated with a first decision threshold. And when the signal value meets the first triggering condition, judging whether the signal value meets a second triggering condition or a third triggering condition, wherein the second triggering condition is associated with a second judgment threshold value, the second judgment threshold value is higher than the first judgment threshold value, and the third triggering condition is associated with a time judgment threshold value. And when the signal value meets the second triggering condition or the third triggering condition, judging that the sensor is in an alarm state to output an alarm signal.
In an embodiment of the invention, the electronic device includes an adc, a memory, and a processor, wherein the processor is coupled to the adc and the memory. The analog-to-digital converter is used for receiving the sensor signal from the sensor and converting the sensor signal into a signal numerical value. The processor is used for judging whether a signal value of a sensor signal meets a first trigger condition, judging whether the signal value meets a second trigger condition or a third trigger condition when the signal value meets the first trigger condition, and judging that the sensor is in an alarm state to output an alarm signal when the signal value meets the second trigger condition or the third trigger condition, wherein the second trigger condition is related to a second judgment threshold value, the second judgment threshold value is higher than the first judgment threshold value, and the third trigger condition is related to a time judgment threshold value.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of an electronic device according to an embodiment of the invention.
Fig. 2 is a flow chart illustrating an alarm triggering method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a conventional alarm triggering method.
Fig. 4A-4B are schematic diagrams illustrating an alarm triggering method according to an embodiment of the invention.
Fig. 5 is a flowchart illustrating an alarm triggering method according to an embodiment of the present invention.
FIG. 6 is a state transition diagram illustrating an alarm triggering method according to one embodiment of the present invention.
Fig. 7 is a block diagram of an electronic device according to another embodiment of the invention.
Description of the reference numerals
100: electronic device
110: analog-to-digital converter
120: memory device
130: processor with a memory having a plurality of memory cells
SR: sensor with a sensor element
S202 to S212, S502 to S522: step (ii) of
PC: children's children
PA: adult
Ac. AA, a1, a2, A3, B1, B2: amplitude of signal
TH, TH +, TH-: threshold value
TH1, TH1+, TH 1-: first decision threshold
TH2, TH2+, TH 2-: second determination threshold value
TD: detecting delay time
TB: time of blindness
S0: steady state
S1: misjudged state
S2: alarm state
T0, T10, T01, T12, T20, T02: direction of state transition
And (2) DS: detection sensor
TS: temperature sensor
700: electronic device
ADC: analog-to-digital converter
AVG: threshold value adjusting generator
THG: threshold value generator
TH 1C: first threshold comparator
TH 2C: second threshold comparator
CLK: timing clock
DDTC: comparator for detecting delay time
SP: state processor
Detailed Description
Some embodiments of the invention will be described in detail below with reference to the drawings, wherein like reference numerals refer to like or similar elements throughout the several views. These embodiments are merely exemplary of the invention and do not disclose all possible embodiments of the invention. Rather, these embodiments are merely exemplary of the methods and electronic devices in the scope of the present invention.
Fig. 1 is a block diagram of an electronic device according to an embodiment of the invention, which is for convenience of illustration and is not intended to limit the invention. First, fig. 1 first describes all components and the arrangement relationship of the electronic device, and the detailed functions will be disclosed together with fig. 2.
Referring to fig. 1, an electronic device 100 in the present embodiment includes a sensor SR, an adc 110, a memory 120, and a processor 130, wherein the processor 130 is coupled to the adc 110 and the memory 120. However, in other embodiments, the electronic device 100 may be a computer system or a device with signal and data processing capabilities, which is externally connected to the sensor SR. However, in other embodiments, the electronic device 100 may be integrated with the sensor SR as a single device. The sensor SR here may be, for example, a light source sensor, a sound sensor, an infrared sensor, a temperature sensor, a humidity sensor, a gas pressure sensor, a gas sensor, an ultraviolet sensor, or the like for sensing environmental information.
The analog-to-digital converter 110 is used to convert the continuous signal in analog form received from the sensor SR into a discrete signal in digital form.
The memory 120 is used for storing data, program codes and other data, and may be any type of fixed or removable Random Access Memory (RAM), read-only memory (ROM), flash memory (flash memory), hard disk or other similar devices, integrated circuits and combinations thereof.
The processor 130 may be, for example, a Central Processing Unit (CPU), or other programmable general purpose or special purpose microprocessor (microprocessor), a Microcontroller (MCU), a Programmable Logic Device (PLD), a Digital Signal Processor (DSP), a field-programmable gate array (FPGA), an Application Specific Integrated Circuit (ASIC), or other similar devices or circuits, which are used to control the overall operation of the electronic device 100.
The following describes the detailed steps of the electronic device 100 performing the alarm triggering method for the sensor SR by combining the components of the electronic device 100 of fig. 1.
Fig. 2 is a flow chart illustrating an alarm triggering method according to an embodiment of the present invention. The present embodiment primarily reduces the occurrence of false alarm triggers by using two different detection thresholds and a time determination threshold, wherein all thresholds have been previously stored in the memory 120.
Referring to fig. 1 and fig. 2, first, the adc 110 of the electronic device 100 receives the sensor signal from the sensor SR (step S202), and converts the sensor signal into a digital signal value. Next, the processor 130 determines whether the signal value of the sensor signal meets a first trigger condition associated with a first determination threshold (step S204). The first trigger condition is that the signal value of the sensing signal exceeds a first determination threshold. When the processor 130 determines that the signal value does not meet the first trigger condition (i.e., the signal value is lower than the first determination threshold), it indicates that the sensor SR is in a steady state (step S206), i.e., the condition for triggering the alarm has not been met.
On the other hand, when the processor 130 determines that the signal value meets the first trigger condition (i.e., the signal value exceeds the first determination threshold), the processor 130 further determines whether the signal value of the sensing signal meets a second trigger condition associated with a second determination threshold higher than the first determination threshold or a third trigger condition associated with a time determination threshold (step S208).
In detail, in order to avoid that the signal value of the sensor SR slightly fluctuates due to the internal factor or the slight external factor so as to exceed the first determination threshold, a second trigger condition may be added to adjust the trigger sensitivity to avoid the occurrence of the false alarm, where the second trigger condition is that the signal value of the sensing signal exceeds the second determination threshold. When the processor 130 determines that the signal value meets the second triggering condition (i.e., the signal value of the sensing signal exceeds the second determination threshold), it is determined that the sensor SR is in the alarm state (step S212), i.e., the condition for triggering the alarm is met.
It should be noted that when the processor 130 determines that the signal value does not satisfy the second trigger condition (i.e., the signal value of the sensing signal is between the first determination threshold and the second determination threshold), it further determines whether the condition is a false alarm by using the third trigger condition as an auxiliary condition. The third trigger condition is that the continuous time for which the signal value of the sensing signal exceeds the first determination threshold exceeds the time determination threshold. When the processor 130 determines that the signal value meets the third triggering condition (i.e., the continuous time during which the signal value of the sensing signal exceeds the first determination threshold exceeds the time determination threshold), it indicates that the sensor SR is in the alarm state (step S212), i.e., the condition for triggering the alarm is met.
As a corollary, when the processor 130 determines that the signal value does not satisfy either of the second trigger condition and the third trigger condition (i.e., the continuous time during which the signal value of the sensing signal exceeds the first determination threshold does not exceed the time determination threshold), i.e., the signal value fluctuates slightly so as to briefly exceed the first determination threshold and then falls back to a state lower than the first determination threshold, it represents that the sensor SR is in a false determination state (step S210), i.e., the condition for triggering the alarm is not met.
In the present embodiment, when the processor 130 determines that the sensor SR is in the alarm state, an alarm signal is output. The processor 130 may be connected to an output device (not shown), such as a speaker, screen, indicator light, etc., to emit an alarm signal, such as a sound, voice, text, graphics, or light, when in an alarm state. The electronic device 100 may be connected to another device wirelessly or by wire, and the alarm signal may be transmitted to the other device to serve as a trigger signal for the operation of the other device.
In order to facilitate the explanation of the flow of fig. 2, a passive infrared sensor will be described as an example of the sensor SR.
Fig. 3 is a schematic diagram of a conventional alarm triggering method. Fig. 4A-4B are schematic diagrams illustrating an alarm triggering method for a sensor according to an embodiment of the present invention. The sensor in this embodiment is a passive infrared sensor.
Referring to fig. 3, for example, the passive infrared sensor PIR detects different infrared radiation values within the same detection range R due to the object being a child PC or an adult PA, and generates different signal amplitudes Ac and AA within the same time. Therefore, a single set of fixed thresholds TH (including TH + and TH-) makes the trigger condition less flexible.
Referring to fig. 4A again, in the same detection environment as that of fig. 3, it is assumed that the thresholds used by the electronic device 100 to determine the trigger condition are a first set of thresholds TH1 (including TH1+ and TH1-) and a second set of thresholds TH2 (including TH2+ and TH 2-). The first group threshold TH1 is used as a determination value for steady state transition, and the second group threshold TH2 is used as a determination value for adjusting trigger sensitivity, so that the second group threshold TH2 can be adjusted depending on an object to be detected.
The signal value of the sensor SR may fall into three different intervals. The first is that the signal value does not exceed the first set of thresholds, i.e., the signal amplitude falls within a steady state between TH1+ and TH1-, such as signal amplitude A1. The second is an alarm condition where the signal magnitude exceeds a second set of thresholds, i.e., the signal amplitude falls between TH2+ and ∞ or between-and TH2-, such as the signal amplitude A2. The third is that the signal value exceeds the first set of thresholds but does not exceed the second set of thresholds, i.e., the signal amplitude falls between TH1+ and TH2+ or TH 2-and TH1-, such as signal amplitude A3. When the signal value of the sensor SR falls in the third interval, a detection delay time needs to be additionally set as a buffer to avoid the false alarm.
In detail, referring to fig. 4B, the signal amplitude B1 exceeds the first threshold TH1+ (does not exceed TH2+) after the time t1, but falls back within the first threshold TH1+ before the detection delay time TD, thereby indicating that the sensor SR is in a false positive state. On the other hand, the signal amplitude B2 exceeds the first set of thresholds TH1- (does not exceed TH2-) at time t1 and continues for a time exceeding the detection delay time TD, thus indicating that the sensor SR is in an alarm state. In addition, after the first oscillation, the processor 130 sets a time length (hereinafter referred to as "blind time TB") to turn off the detection oscillation, so as to avoid the situation that the trigger is repeatedly detected. Therefore, the signal amplitude B1 and the signal amplitude B2 determine that the sensor SR returns to the steady state after the first oscillation and the blind time TB.
To more fully illustrate the foregoing method, fig. 5 is a flowchart illustrating an alarm triggering method according to an embodiment of the present invention.
Referring to fig. 1 and fig. 5, when the electronic device 100 starts to enter the alarm triggering method flow of the sensor SR, the processor 130 starts a timer (step S502). Before the processor 130 obtains the signal value, the state of the sensor SR is preset to a stable state (step S504). The processor 130 obtains the signal value a at a time t (step S506), where the time t is a current time point of the timer. Next, the processor 130 first determines whether the interval in which the signal value a falls meets a > TH1+ or a < TH1 by using the first set of determination thresholds TH1 (step S508), if not, it represents that the signal value a is lower than the first set of determination thresholds TH1, i.e., the sensor SR is in a stable state, and the process returns to step S504, and the processor 130 continuously determines the interval in which the signal value obtained at the next time point falls.
When the determination in step S508 is yes, the processor 130 further determines the state of the sensor SR by detecting the signal value a' within the delay time TD. Here, the processor 130 determines whether the interval in which the signal value a ' falls meets a ' > TH2+ or a ' < TH2 by using the second set of determination thresholds TH2 (step S512).
When the determination of step S512 is yes, the processor 130 will determine that the sensor SR is in the alarm state (step S516). Next, the blind time TB is entered, and the processor 130 determines whether the blind time TB is over (step S518), i.e. whether the time point has reached t + TD + TB). If the blind time TB is not over, the processor 130 will continue to determine the sensor SR as the alarm state (step S516), until the blind time TB is over, the processor 130 will transfer the sensor SR to the preset stable state (step S504) to perform the state determination again.
On the other hand, when the determination in step S512 is no, the processor 130 will further detect whether the section in which the signal value a ' falls within the delay time TD still satisfies a ' > TH1+ or a ' < TH1 (step S514). If so, the processor 130 determines that the sensor SR is in an alarm state (step S516). If not, the processor 130 determines that the sensor SR is in the erroneous determination state (step S520). Then, the blind time TB is also entered, and the processor 130 determines whether the blind time TB is over (step S522, i.e. whether the time point has reached t + TD + TB). If the blind time TB is not over, the processor 130 will continue to determine the sensor SR as the erroneous determination state (step S520), until the blind time TB is over, the processor 130 will transfer the sensor SR to the preset stable state (step S504) to perform the state determination again.
In the present embodiment, when the processor 130 determines that the sensor SR is in the alarm state, an alarm signal is output. Taking the sensor SR as a passive infrared sensor for detecting a human body as an example, the processor 130 may be connected to, for example, a speaker, so as to enable the speaker to emit an alarm when outputting an alarm signal, for monitoring anti-theft purposes. Alternatively, the processor 130 may be connected to the light source so that the light source may be turned on when the alarm signal is output to achieve automated control.
Regarding the sensor SR, fig. 6 is a state transition diagram illustrating an alarm triggering method according to an embodiment of the present invention.
Referring to fig. 6, the processor 130 obtains the signal value S of the sensor SR, the first determination threshold TH1, the second determination threshold TH2, the current Time point Time _ C, the end Time point Time _ D of the detection delay Time, and the end Time point Time _ B of the blind Time, and the sensor SR is preset to be in the stable state S0 (state transition direction T0).
In the present embodiment, when the processor 130 determines that the signal value S is between the first determination threshold TH1 and the second determination threshold TH2 and has not reached before the end Time _ D of the detection delay Time (i.e., the logical expression "TH 1< S < TH2& & Time _ C < Time _ D"), the sensor SR will temporarily transition to the false determination state S1 (state transition direction T01). During this Time, when the signal value S returns to be lower than the first decision threshold TH1 (i.e., the logic expression is "S < TH1& & Time _ C < Time _ D"), the sensor SR stays in the false decision state S1. When the processor 130 further determines that the signal value S is lower than the first determination threshold TH1 after the Time point Time _ B at the end of the blind Time (i.e., the logic expression "S < TH1& & Time _ C > Time _ B"), the sensor SR transitions back to the stable state S0 (state transition direction T10). On the other hand, when the sensor SR temporarily transitions to the erroneous determination state S1, when the processor 130 determines that the signal value S exceeds the second determination threshold TH2 or that the signal value S has not fallen below the first determination threshold TH1 after the end Time _ D of the detection delay Time (i.e., the logical expression is "S > TH2| (TH1< S < TH2& & Time _ C > Time _ D)"), the sensor SR transitions to the alarm state S2 (state transition direction T12).
It should be noted that, in another embodiment, when the processor 130 determines that the signal value S is between the first determination threshold TH1 and the second determination threshold TH2 and does not reach the end Time point Time _ D of the detection delay Time during the stable state S0, the sensor SR will not temporarily transition to the false determination state S1, but the processor 130 will not transition the sensor SR from the stable state S0 to the false determination state S1 (state transition direction T01) when the processor 130 determines that the signal value S is lower than the first determination threshold TH1 within the detection delay Time. When the processor 130 determines that the duration of the signal value S between the first determination threshold TH1 and the second determination threshold TH2 exceeds the end Time _ D of the detection delay Time, the sensor SR is directly transitioned from the stable state S0 to the alarm state S2 (state transition direction T02).
When the sensor SR is in the stable state S0 and the processor 130 determines that the signal value S exceeds the second determination threshold TH2 (i.e., the logical expression "S > TH2& & Time _ C < Time _ D"), the sensor SR is directly transferred to the alarm state S2 (state transfer direction T02). Similarly, when the processor 130 further determines that the signal value S is lower than the first determination threshold TH1 after the Time point Time _ B at the end of the blind Time (i.e., the logical expression "S < TH1& & Time _ C > Time _ B"), the sensor SR transitions back to the stable state S0 (state transition direction T20).
In another embodiment, the electronic device 100 may further be connected to another sensor, and adaptively adjust the originally set threshold value according to a sensor signal detected by the other sensor or an environmental parameter. For example, fluctuations in ambient temperature may affect the magnitude of the signal value. Taking the infrared sensor as an example, when the temperature is high, the measured radiation value is large, so the threshold value needs to be adjusted high to avoid the erroneous judgment caused by easily reaching the triggering condition. Specifically, fig. 7 is a block diagram of an electronic device according to another embodiment of the invention.
Referring to fig. 7, the electronic device 700 is coupled to the temperature sensor TS, and has a memory (not shown) for storing a first determination threshold, a second determination threshold and a time determination threshold. The analog-to-digital converter ADC of the electronic device 700 receives the sensor signal of the detection sensor DS and converts it into a signal value. The threshold adjustment generator AVG of the electronic device 700 receives the ambient temperature sensed by the temperature sensor TS and generates a threshold adjustment value to be transmitted to the threshold generator THG. The threshold generator THG adjusts at least one of the first determination threshold, the second determination threshold and the time determination threshold by using the threshold adjustment value. Then, the first and second threshold comparators TH1C and TH2C compare the signal value of the ADC with the adjusted first and second decision thresholds, and the DDTC compares the duration of the signal value with the time decision threshold according to the clock CLK. Then, the comparison result is transmitted to the state processor SP to perform the state determination process related to the detection sensor DS as described in the foregoing embodiment. The detection sensor DS and the analog-to-digital converter ADC here are similar to the sensor SR and the analog-to-digital converter 110 in fig. 1, respectively. The threshold adjustment generator AVG, the threshold generator THG, the first threshold comparator TH1C, the second threshold comparator TH2C, the detection delay time comparator DDTC, the clock CLK, and the state processor SP may be modules or circuits, which are similar to the processor 130 in fig. 1, and thus will not be described herein again.
In summary, the present invention provides an alarm triggering method for a sensor and an electronic device using the same, which utilize multiple thresholds to determine whether a signal value of a sensor signal meets an alarm triggering condition, so as to reduce the probability of false alarm triggering. In addition, the invention can also adaptively adjust the threshold value according to different environments and different detection objects so as to realize more accurate alarm triggering.
Although the present invention has been described with reference to the above embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention.

Claims (22)

1. An alarm triggering method for a sensor, comprising the steps of:
receiving a sensor signal from the sensor;
comparing the signal value of the sensor signal with a first judgment threshold value to judge whether the signal value of the sensor signal meets a first trigger condition;
when the signal value meets the first trigger condition, comparing the signal value with a second judgment threshold value to judge whether the signal value meets the second trigger condition, wherein the second judgment threshold value is higher than the first judgment threshold value;
when the signal value does not meet the second trigger condition, judging whether the signal value meets a third trigger condition by comparing the signal value with a time judgment threshold, wherein the signal value is between the first judgment threshold and the second judgment threshold when the signal value does not meet the second trigger condition;
when the signal value meets the second trigger condition or the third trigger condition, judging that the sensor is in an alarm state to output an alarm signal; and
and when the signal value does not meet the second trigger condition and the third trigger condition, judging that the sensor is in a misjudgment state.
2. The method of claim 1, wherein comparing the signal value of the sensor signal to the first decision threshold to determine whether the signal value of the sensor signal meets the first trigger condition comprises:
judging whether the signal value exceeds the first judgment threshold value or not; and
and when the signal value exceeds the first judgment threshold value, judging that the signal value meets the first trigger condition.
3. The method of claim 2, further comprising:
and when the signal value does not exceed the first judgment threshold value, judging that the sensor is in a stable state.
4. The method of claim 2, wherein comparing the signal value with the second determination threshold to determine whether the signal value satisfies the second trigger condition when the signal value satisfies the first trigger condition comprises:
judging whether the signal value exceeds the second judgment threshold value; and
when the signal value exceeds the second determination threshold, determining that the signal value meets the second trigger condition, thereby determining that the sensor is in the alarm state.
5. The method of claim 4, wherein when the sensor is in the alarm state, the method further comprises:
and when the signal value is lower than the first judgment threshold value after the blind time, the sensor is transferred to be in a stable state.
6. The method of claim 4, wherein when the signal value does not satisfy the second trigger condition, the step of determining whether the signal value satisfies the third trigger condition by comparing the signal value with the time determination threshold comprises:
when the signal value does not exceed the second judgment threshold, judging whether the continuous time of the signal value exceeding the first judgment threshold exceeds the time judgment threshold; and
when the continuous time that the signal value exceeds the first determination threshold exceeds the time determination threshold, determining that the signal value meets the third trigger condition, thereby determining that the sensor is in the alarm state.
7. The method of claim 6, further comprising:
and when the continuous time that the signal value exceeds the first judgment threshold value does not exceed the time judgment threshold value, judging that the sensor is in the misjudgment state.
8. The method of claim 7, wherein when the sensor is in the false positive state, the method further comprises:
and when the signal value is lower than the first judgment threshold value after the blind time, the sensor is transferred to be in a stable state.
9. The method of claim 1, further comprising:
receiving another sensor signal from another sensor; and
adjusting at least one of the first determination threshold, the second determination threshold, and the time determination threshold according to a signal value of the other sensor signal.
10. The method of claim 9, wherein the further sensor is an ambient temperature sensor and the signal value of the further sensor signal is an ambient temperature value.
11. An electronic device, comprising:
a sensor;
an analog-to-digital converter coupled to the sensor for receiving a sensor signal from the sensor and converting the sensor signal to a signal value;
a memory to store data; and
a processor, coupled to the adc and the memory, for performing the following steps:
comparing the signal value of the sensor signal with a first decision threshold to determine whether the signal value of the sensor signal meets a first trigger condition;
when the signal value meets the first trigger condition, comparing the signal value with a second judgment threshold value to judge whether the signal value meets a second trigger condition, wherein the second judgment threshold value is higher than the first judgment threshold value;
when the signal value does not meet the second trigger condition, judging whether the signal value meets a third trigger condition by comparing the signal value with a time judgment threshold, wherein the signal value is between the first judgment threshold and the second judgment threshold when the signal value does not meet the second trigger condition;
when the signal value meets the second trigger condition or the third trigger condition, judging that the sensor is in an alarm state to output an alarm signal; and
and when the signal value does not meet the second trigger condition and the third trigger condition, judging that the sensor is in a misjudgment state.
12. The electronic device of claim 11, wherein the processor is further configured to perform the following steps:
judging whether the signal value exceeds the first judgment threshold value or not; and
and when the signal value exceeds the first judgment threshold value, judging that the signal value meets the first trigger condition.
13. The electronic device of claim 12, wherein the processor is further configured to perform the following steps:
and when the signal value does not exceed the first judgment threshold value, judging that the sensor is in a stable state.
14. The electronic device of claim 12, wherein when the signal value satisfies the first trigger condition, the processor is configured to perform the following steps:
judging whether the signal value exceeds the second judgment threshold value; and
when the signal value exceeds the second determination threshold, determining that the signal value meets the second trigger condition, thereby determining that the sensor is in the alarm state.
15. The electronic device of claim 14, wherein when the sensor is in the alarm state, the processor is further configured to perform the steps of:
and when the signal value is lower than the first judgment threshold value after the blind time, the sensor is transferred to be in a stable state.
16. The electronic device of claim 14, wherein when the signal value satisfies the first trigger condition, the processor is configured to perform the following steps:
when the signal value does not exceed the second judgment threshold, judging whether the continuous time of the signal value exceeding the first judgment threshold exceeds the time judgment threshold; and
when the continuous time that the signal value exceeds the first determination threshold exceeds the time determination threshold, determining that the signal value meets the third trigger condition, thereby determining that the sensor is in the alarm state.
17. The electronic device of claim 16, wherein the processor is further configured to perform the following steps:
and when the continuous time that the signal value exceeds the first judgment threshold value does not exceed the time judgment threshold value, judging that the sensor is in the misjudgment state.
18. The electronic device of claim 17, wherein when the sensor is in the false positive state, the processor is further configured to perform the following steps:
and when the signal value is lower than the first judgment threshold value after the blind time, the sensor is transferred to be in a stable state.
19. The electronic device of claim 11, further comprising another sensor, the processor further configured to perform the steps of:
receiving another sensor signal from another sensor; and
adjusting at least one of the first determination threshold, the second determination threshold, and the time determination threshold according to a signal value of the other sensor signal.
20. The electronic device of claim 19, wherein the further sensor is an ambient temperature sensor and the signal value of the further sensor signal is an ambient temperature value.
21. The electronic device of claim 11, adapted for use with another sensor, wherein the processor is further configured to perform the steps of:
receiving another sensor signal from another sensor; and
adjusting at least one of the first determination threshold, the second determination threshold, and the time determination threshold according to a signal value of the other sensor signal.
22. The electronic device of claim 21, wherein the further sensor is an ambient temperature sensor and the signal value of the further sensor signal is an ambient temperature value.
CN201710403044.2A 2016-12-27 2017-06-01 Alarm triggering method for sensor and electronic device using same Active CN108242137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/697,455 US10121363B2 (en) 2016-12-27 2017-09-07 Alarm triggering method for sensor and electronic device using the same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201662439155P 2016-12-27 2016-12-27
US62/439,155 2016-12-27

Publications (2)

Publication Number Publication Date
CN108242137A CN108242137A (en) 2018-07-03
CN108242137B true CN108242137B (en) 2020-02-14

Family

ID=62700120

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201710329371.8A Active CN108260073B (en) 2016-12-27 2017-05-11 Gateway, gateway installation method and Internet of things device installation method
CN201710340773.8A Active CN108240866B (en) 2016-12-27 2017-05-15 Photoelectric module, motion sensing device and driving method thereof
CN201710403044.2A Active CN108242137B (en) 2016-12-27 2017-06-01 Alarm triggering method for sensor and electronic device using same

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN201710329371.8A Active CN108260073B (en) 2016-12-27 2017-05-11 Gateway, gateway installation method and Internet of things device installation method
CN201710340773.8A Active CN108240866B (en) 2016-12-27 2017-05-15 Photoelectric module, motion sensing device and driving method thereof

Country Status (2)

Country Link
CN (3) CN108260073B (en)
TW (3) TWI638578B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111426387A (en) * 2019-01-10 2020-07-17 杭州海康威视数字技术股份有限公司 Temperature anomaly detection method and device
CN112185070B (en) * 2020-09-11 2021-12-17 珠海格力电器股份有限公司 Fault early warning method, storage medium and electronic equipment
CN115174636A (en) * 2022-08-04 2022-10-11 中兴(温州)轨道通讯技术有限公司 Centralized warning management system for rail transit
CN115810259A (en) * 2022-11-17 2023-03-17 环维电子(上海)有限公司 Method for avoiding repeated triggering of alarm and intelligent monitoring alarm system
CN115830809B (en) * 2022-11-28 2024-05-03 河南辉煌科技股份有限公司 Mud-rock flow alarm intelligent power grid sensor and monitoring method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203611860U (en) * 2013-11-22 2014-05-28 北汽福田汽车股份有限公司 Vehicle alarm system and vehicle
CN105205988A (en) * 2015-10-30 2015-12-30 杨喆 Closestool cover capable of giving alarm in case of accidents when people sit on closestool, alarming method and closestool
CN105222486A (en) * 2015-10-30 2016-01-06 青岛海尔特种电冰箱有限公司 Refrigerator detection method and checkout gear
CN105551194A (en) * 2016-03-10 2016-05-04 广州视源电子科技股份有限公司 Fall detection method and device

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69633524T2 (en) * 1995-04-12 2005-03-03 Matsushita Electric Industrial Co., Ltd., Kadoma Method and device for object detection
JP2007206449A (en) * 2006-02-02 2007-08-16 Institute Of National Colleges Of Technology Japan Light-emitting device with sensor function
CN101509787B (en) * 2008-02-14 2011-06-08 敦南科技股份有限公司 Electro-magnetic wave sensing apparatus
TWI372370B (en) * 2008-06-16 2012-09-11 Ind Tech Res Inst Thermal detection system and detection method thereof
TWI389536B (en) * 2008-11-07 2013-03-11 Ind Tech Res Inst Access control system and method based on hierarchical key, and authentication key exchange thereof
CN101751740B (en) * 2008-12-22 2013-06-19 深圳市豪恩安全科技有限公司 Detector and alarm method and alarm device thereof
TWI390471B (en) * 2009-03-26 2013-03-21 Compal Communications Inc Portable electronic apparatus
CN101639961B (en) * 2009-09-14 2012-06-13 北京航星网讯技术股份有限公司 Detection alarm method and system thereof
GB2490691A (en) * 2011-05-10 2012-11-14 Thomas David Cullen Motion detection device for use in a hospital or retirement home
CN202758888U (en) * 2012-08-22 2013-02-27 标准科技股份有限公司 Sensor sealing module
US9847961B2 (en) * 2013-02-25 2017-12-19 Qualcomm Incorporated Automatic IoT device social network expansion
CN108667699B (en) * 2013-08-06 2021-07-20 华为终端(深圳)有限公司 Method and device for interconnecting terminal equipment and gateway equipment
TWI542171B (en) * 2013-12-18 2016-07-11 Alpha Networks Inc Automatically set the way the gateway device
CN106463043B (en) * 2014-03-03 2019-05-31 Vsk电子有限公司 Utilize the intrusion detecting system and method for action induction
US9998501B2 (en) * 2014-12-02 2018-06-12 Netgear, Inc. Sensor gateway
CN104580478A (en) * 2015-01-15 2015-04-29 环旭电子股份有限公司 Internet-of-Things device off-line sharing access right control method
TWI578491B (en) * 2015-05-07 2017-04-11 億光電子工業股份有限公司 Optical sensing device and manufacturing method for optical device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203611860U (en) * 2013-11-22 2014-05-28 北汽福田汽车股份有限公司 Vehicle alarm system and vehicle
CN105205988A (en) * 2015-10-30 2015-12-30 杨喆 Closestool cover capable of giving alarm in case of accidents when people sit on closestool, alarming method and closestool
CN105222486A (en) * 2015-10-30 2016-01-06 青岛海尔特种电冰箱有限公司 Refrigerator detection method and checkout gear
CN105551194A (en) * 2016-03-10 2016-05-04 广州视源电子科技股份有限公司 Fall detection method and device

Also Published As

Publication number Publication date
TWI655614B (en) 2019-04-01
CN108242137A (en) 2018-07-03
TWI625705B (en) 2018-06-01
CN108240866B (en) 2020-06-09
CN108260073A (en) 2018-07-06
TW201824944A (en) 2018-07-01
TW201824196A (en) 2018-07-01
CN108240866A (en) 2018-07-03
TW201824202A (en) 2018-07-01
TWI638578B (en) 2018-10-11
CN108260073B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN108242137B (en) Alarm triggering method for sensor and electronic device using same
JP2018501531A5 (en)
JP2017015604A (en) Seismic sensor and earthquake determination method
US10692362B2 (en) Systems and methods for comparing signal channels having different common mode transient immunity
JP2018091741A5 (en)
WO2020059449A1 (en) Person detection system and program
US20170192063A1 (en) Battery status detection method and network device using the same
JP2020051757A (en) Person detection system and program
WO2004054105A3 (en) Capacitive proximity sensor
CN105818715A (en) Alarm method and device
EP3301891A1 (en) Mobile device and method for determining its context
TWI634455B (en) Motion detection method and motion detection device
US10121363B2 (en) Alarm triggering method for sensor and electronic device using the same
JP2007104210A (en) Reset circuit
SE544639C2 (en) Method and system for determining the presence of a person to wake up a device
JP5329240B2 (en) Free fall detection method and free fall detection device
US10656218B2 (en) Leakage current detection apparatus and detection method thereof
TWI658437B (en) Human detection system
CN107807403B (en) Motion sensing method and motion sensor for reducing false alarms
JP2015232475A (en) Radiation detection device and detection method
US9823149B2 (en) Slew rate detection circuit
US9915684B2 (en) Signal processing circuit and sensor system
US8710870B2 (en) Power supply input voltage detection circuit
JP2010078509A (en) Measuring device using infrared sensor, and calibration method
JP2010151751A (en) Radiodetector

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