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

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

Info

Publication number
TW201824202A
TW201824202A TW106118011A TW106118011A TW201824202A TW 201824202 A TW201824202 A TW 201824202A TW 106118011 A TW106118011 A TW 106118011A TW 106118011 A TW106118011 A TW 106118011A TW 201824202 A TW201824202 A TW 201824202A
Authority
TW
Taiwan
Prior art keywords
sensor
signal
determination threshold
signal value
value
Prior art date
Application number
TW106118011A
Other languages
Chinese (zh)
Other versions
TWI655614B (en
Inventor
林素珍
林士榮
陳俊諺
Original Assignee
光寶電子(廣州)有限公司
光寶科技股份有限公司
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 光寶電子(廣州)有限公司, 光寶科技股份有限公司 filed Critical 光寶電子(廣州)有限公司
Publication of TW201824202A publication Critical patent/TW201824202A/en
Application granted granted Critical
Publication of TWI655614B publication Critical patent/TWI655614B/en

Links

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
    • 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
    • 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/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

Abstract

An alarm triggering method for a sensor and an electronic device using the same are proposed. The method is applicable to an electronic device and includes the following steps. A sensor signal is received from the sensor. Whether a signal magnitude of the sensor signal satisfies a first triggering condition is determined, where the first triggering condition is associated with a first determination threshold. In response to the signal magnitude satisfying the first triggering condition, whether the signal magnitude satisfies a second triggering condition or a third triggering condition is further determined, where the second triggering condition is associated with a second determination threshold, the second determining threshold is greater than the first determination threshold, and the third triggering condition is associated with a time determination threshold. When the signal magnitude satisfies the second triggering condition or the third triggering condition, the sensor is determined to be in an alarm state so as to output an alarm signal.

Description

用於感測器的警報觸發方法及使用其的電子裝置Alarm triggering method for sensor and electronic device using same

本發明是有關於一種警報觸發方法及使用其的電子裝置,且特別是有關於一種用於感測器的警報觸發方法及使用其的電子裝置。The 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.

紅外線動作感測器(又稱「人體紅外線感測器」)是一種被動式紅外線感測器,其是透過吸收外來物體的紅外線輻射訊號,經過感測器表面的菲涅耳透鏡(Fresnel Lens),進而產生正負震盪的類比訊號。一般習知做法是對此類比訊號進行取樣,以將紅外線輻射訊號轉換成紅外線輻射值,並且將紅外線輻射值與一個預設的閥值進行比較,從而判斷是否有任何物體靠近。Infrared motion sensor (also known as "body infrared sensor") is a passive infrared sensor that absorbs infrared radiation signals from foreign objects and passes through the Fresnel Lens on the surface of the sensor. This produces analog signals with positive and negative oscillations. It is common practice to sample such a comparison signal to convert the infrared radiation signal into an infrared radiation value, and compare the infrared radiation value with a preset threshold value to determine whether any object is approaching.

然而,人體、動物以及其它物體所發出的紅外線輻射值各有不同,且感測器在不同環境下所接收到的紅外線輻射值也會有所改變。故,習知做法所採用的固定閥值以及單一的判斷方式容易導致不同外來物體以及不同環境下的紅外線輻射值造成錯誤的警報觸發。However, the infrared radiation values emitted by humans, animals, and other objects are different, and the infrared radiation values received by the sensor under different environments will also change. Therefore, the fixed threshold value and the single judgment method used in the conventional practice easily lead to false alarms triggered by different foreign objects and infrared radiation values in different environments.

有鑑於此,本發明提供一種用於感測器的警報觸發方法及使用其的電子裝置,其利用多重閥值來判斷感測器的訊號數值是否達到警報觸發的條件,以降低錯誤觸發警報的機率。In view of this, the present invention provides an alarm triggering method for a sensor and an electronic device using the same. The method uses multiple thresholds to determine whether the signal value of the sensor reaches the alarm triggering condition, so as to reduce the false triggering of the alarm. Chance.

本發明的一實施例中,上述用於感測器的警報觸發方法適用於電子裝置並且包括下列步驟。自感測器接收感測器訊號,並且判斷感測器訊號的訊號數值是否符合第一觸發條件,其中第一觸發條件關聯於第一判定閥值。當訊號數值符合第一觸發條件時,判斷訊號數值是否符合第二觸發條件或是第三觸發條件,其中第二觸發條件關聯於第二判定閥值,第二判定閥值高於第一判定閥值,第三觸發條件關聯於時間判定閥值。當訊號數值符合第二觸發條件或是第三觸發條件時,判定感測器為警報狀態,以輸出警報訊號。In an embodiment of the present invention, the above-mentioned alarm triggering method for a sensor is suitable for an electronic device and includes the following steps. The self-sensor receives the sensor signal and determines whether the signal value of the sensor signal meets a first trigger condition, wherein the first trigger condition is associated with a first determination threshold. When the signal value meets the first trigger condition, it is determined whether the signal value meets the second trigger condition or the third trigger condition, wherein the second trigger condition is associated with the second decision threshold, and the second decision threshold is higher than the first decision threshold. Value, the third trigger condition is associated with a time decision threshold. When the signal value meets the second trigger condition or the third trigger condition, it is determined that the sensor is in an alarm state to output an alarm signal.

在本發明的一實施例中,上述的電子裝置包括類比數位轉換器、記憶體以及處理器,其中處理器耦接於類比數位轉換器以及記憶體。類比數位轉換器用以自感測器接收感測器訊號,以將感測器訊號轉換為訊號數值。處理器用以判斷感測器訊號的訊號數值是否符合第一觸發條件,當訊號數值符合第一觸發條件時,將判斷訊號數值是否符合第二觸發條件或是第三觸發條件,而當訊號數值符合第二觸發條件或是第三觸發條件時,將判定感測器為警報狀態,以輸出警報訊號,其中第二觸發條件關聯於第二判定閥值,第二判定閥值高於第一判定閥值,第三觸發條件關聯於時間判定閥值。In an embodiment of the present invention, the electronic device includes an analog-to-digital converter, a memory, and a processor. The processor is coupled to the analog-to-digital converter and the memory. The analog-to-digital converter is used to receive the sensor signal from the sensor to convert the sensor signal into a signal value. The processor is used to determine whether the signal value of the sensor signal meets the first trigger condition. When the signal value meets the first trigger condition, it will determine whether the signal value meets the second trigger condition or the third trigger condition, and when the signal value meets When the second trigger condition or the third trigger condition, the determination sensor is in an alarm state to output an alarm signal, wherein the second trigger condition is associated with a second determination threshold, and the second determination threshold is higher than the first determination threshold. Value, the third trigger condition is associated with a time decision threshold.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的方法以及電子裝置的範例。Some embodiments of the present invention will be described in detail with reference to the accompanying drawings. The component symbols cited in the following description will be regarded as the same or similar components when the same component symbols appear in different drawings. These examples are only a part of the present invention and do not disclose all the possible embodiments of the present invention. Rather, these embodiments are merely examples of the methods and electronic devices within the scope of the patent application of the present invention.

圖1是根據本發明一實施例所繪示的電子裝置的方塊示意圖,但此僅是為了方便說明,並不用以限制本發明。首先圖1先介紹電子裝置中的所有構件以及配置關係,詳細功能將配合圖2一併揭露。FIG. 1 is a schematic block diagram of an electronic device according to an embodiment of the present invention, but this is only for convenience of description, and is not intended to limit the present invention. First, FIG. 1 first introduces all components and configuration relationships in the electronic device. Detailed functions will be disclosed together with FIG. 2.

請參照圖1,本實施例中的電子裝置100包括感測器SR、類比數位轉換器110、記憶體120以及處理器130,其中處理器130耦接於類比數位轉換器110以及記憶體120。然而,在其它實施例中,電子裝置100可以為具有訊號與資料處理能力的電腦系統或是裝置,其外接於感測器SR。然而在其它實施例中,電子裝置100亦可以是與感測器SR整合為單一裝置。在此的感測器SR可以例如是光源感測器、聲音感測器、紅外線感測器、溫度感測器、濕度感測器、氣壓感測器、氣體感測器、紫外線感測器等用以感測環境資訊的裝置。Referring to FIG. 1, the electronic device 100 in this embodiment includes a sensor SR, an analog-to-digital converter 110, a memory 120, and a processor 130. The processor 130 is coupled to the analog-to-digital converter 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 into a single device. The sensor SR herein may be, for example, a light source sensor, a sound sensor, an infrared sensor, a temperature sensor, a humidity sensor, an air pressure sensor, a gas sensor, an ultraviolet sensor, and the like. Device for sensing environmental information.

類比數位轉換器110用以將自感測器SR所接收到的類比形式的連續訊號轉換為數位形式的離散訊號。The analog-to-digital converter 110 is configured to convert a continuous signal in an analog form received from the sensor SR into a discrete signal in a digital form.

記憶體120用以儲存數據、程式碼等資料,其可以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟或其他類似裝置、積體電路及其組合。The memory 120 is used to store data, code, and other data, and may be, for example, 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.

處理器130可以例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、微控制器(microcontroller,MCU)、可程式化邏輯裝置(programmable logic device,PLD)、數位訊號處理器(digital signal processor,DSP)、現場可程式邏輯閘陣列(field-programmable gate array,FPGA)、特殊應用積體電路(application specific integrated circuits,ASIC)、其他類似裝置或電路,其用以控制電子裝置100的整體運作。The processor 130 may be, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessor (microprocessor), microcontroller (microcontroller, MCU), and programmable logic Device (programmable logic device (PLD)), digital signal processor (DSP), field-programmable gate array (FPGA), application specific integrated circuits (ASIC) And other similar devices or circuits, which are used to control the overall operation of the electronic device 100.

以下即搭配圖1的電子裝置100的各元件列舉實施例,以說明電子裝置100對於感測器SR執行警報觸發方法的詳細步驟。The embodiments are described below with reference to the components of the electronic device 100 in FIG. 1 to describe the detailed steps of the electronic device 100 executing the alarm trigger method for the sensor SR.

圖2是根據本發明一實施例所繪示的警報觸發方法的流程圖。本實施例主要是透過兩個不同的偵測閥值以及一個時間判定閥值來減少錯誤警報觸發的產生,其中所有閥值已預先儲存於記憶體120中。FIG. 2 is a flowchart of an alarm triggering method according to an embodiment of the present invention. In this embodiment, the generation of false alarm triggers is mainly reduced through two different detection thresholds and a time-determined threshold. All the thresholds have been stored in the memory 120 in advance.

請同時參照圖1以及圖2,首先,電子裝置100的類比數位轉換器110自感測器SR接收感測器訊號(步驟S202),並且將感測器訊號轉換成數位形式的訊號數值。接著,處理器130判斷感測器訊號的訊號數值是否符合關聯於第一判定閥值的第一觸發條件(步驟S204)。在此的第一觸發條件為感測訊號的訊號數值超過第一判定閥值。當處理器130判定訊號數值不符合第一觸發條件時(亦即,訊號數值低於第一判定閥值),則代表感測器SR處於穩定狀態(步驟S206),也就是尚未達到觸發警報的條件。Please refer to FIG. 1 and FIG. 2 at the same time. First, the analog-to-digital converter 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 here is that the signal value of the sensing signal exceeds the first determination threshold. When the processor 130 determines that the signal value does not meet the first trigger condition (that is, the signal value is lower than the first decision threshold), it means that the sensor SR is in a stable state (step S206), that is, the sensor that has not yet reached the triggering alarm. condition.

另一方面,當處理器130判定訊號數值符合第一觸發條件時(亦即,訊號數值超過第一判定閥值),處理器130將會更進一步地判斷感測訊號的訊號數值是否符合關聯於第二判定閥值的第二觸發條件或是關聯於時間判定閥值的第三觸發條件(步驟S208),其中第二判定閥值高於第一判定閥值。On the other hand, when the processor 130 determines that the signal value meets the first trigger condition (that is, the signal value exceeds the first determination threshold), the processor 130 will further determine whether the signal value of the sensing signal meets the correlation with The second triggering condition of the second determination threshold or the third triggering condition related to the time determination threshold (step S208), wherein the second determination threshold is higher than the first determination threshold.

詳細來說,為了避免感測器SR因內部因素或是些微的外在因素使得訊號數值略為起伏以致於超過第一判定閥值,在此可增設第二觸發條件以做為調整觸發靈敏度之用,避免錯誤警報的情況發生,而上述的第二觸發條件為感測訊號的訊號數值超過第二判定閥值。當處理器130判定訊號數值符合第二觸發條件時(亦即,感測訊號的訊號數值超過第二判定閥值),則確認感測器SR處於警報狀態(步驟S212),也就是達到觸發警報的條件。In detail, in order to prevent the sensor SR from fluctuating due to internal factors or slight external factors so that it exceeds the first determination threshold, a second trigger condition may be added here to adjust the trigger sensitivity. , To avoid the occurrence of false alarms, and the second triggering condition described above 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 trigger condition (that is, the signal value of the sensing signal exceeds the second decision threshold), it is confirmed that the sensor SR is in an alarm state (step S212), that is, the trigger alarm is reached. conditions of.

必須說明的是,當處理器130判定訊號數值不符合第二觸發條件時(亦即,感測訊號的訊號數值介於第一判定閥值與第二判定閥值之間),將更進一步地以第三觸發條件做為輔助條件來判斷此狀況是否為錯誤警報。上述的第三觸發條件為感測訊號的訊號數值超過第一判定閥值的連續時間超過時間判定閥值。當處理器130判定訊號數值符合第三觸發條件時(亦即,感測訊號的訊號數值超過第一判定閥值的連續時間超過時間判定閥值),則代表感測器SR處於警報狀態(步驟S212),也就是達到觸發警報的條件。It must be noted that when the processor 130 determines that the signal value does not meet the second trigger condition (that is, the signal value of the sensing signal is between the first decision threshold and the second decision threshold), it will go further The third trigger condition is used as an auxiliary condition to determine whether the condition is a false alarm. The above-mentioned third trigger condition is that the continuous value of 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 (that is, the continuous value of the signal value of the sensing signal exceeds the first determination threshold value exceeds the time determination threshold value), it means that the sensor SR is in an alarm state (step S212), that is, the condition for triggering the alarm is reached.

可推論地,當處理器130判定訊號數值不符合第二觸發條件以及第三觸發條件任一者時(亦即,感測訊號的訊號數值超過第一判定閥值的連續時間未超過時間判定閥值),也就是訊號值略為起伏以致於短暫地超過第一判定閥值而隨即又落回低於第一判定閥值的狀態,則代表感測器SR處於誤判狀態(步驟S210),也就是未達到觸發警報的條件。Inferentially, when the processor 130 determines that the signal value does not meet any of the second trigger condition and the third trigger condition (that is, the continuous time of the signal value of the sensing signal exceeds the first determination threshold value does not exceed the time determination valve Value), that is, the signal value fluctuates so slightly that it briefly exceeds the first decision threshold and then falls back to a state below the first decision threshold, which indicates that the sensor SR is in a misjudgment state (step S210), that is, The conditions that triggered the alert were not met.

在本實施例中,當處理器130判斷感測器SR處於警報狀態時,將會輸出警報訊號。處理器130可以是連接至例如是揚聲器、螢幕、指示燈等輸出裝置(未繪示),以在警報狀態時發出聲響、語音、文字、圖形或是燈光等警報訊號。電子裝置100可以是無線或是有線連接至另一裝置,而此警報訊號可傳送至另一裝置,以做為另一裝置進行操作的觸發訊號。In this embodiment, when the processor 130 determines that the sensor SR is in an alarm state, it will output an alarm signal. The processor 130 may be connected to an output device (not shown) such as a speaker, a screen, and an indicator, so as to emit an alarm signal such as sound, voice, text, graphics, or light during an alarm state. The electronic device 100 can be connected to another device wirelessly or by wire, and the alarm signal can be transmitted to another device as a trigger signal for the operation of the other device.

為了更方便明瞭圖2的流程,以下將以被動式紅外線感測器來做為感測器SR做為實施例加以說明。In order to make the process of FIG. 2 more convenient and clear, a passive infrared sensor is used as the sensor SR as an embodiment for description below.

圖3是習知的警報觸發方法的情境示意圖。圖4A~圖4B是根據本發明一實施例所繪示用於感測器的警報觸發方法的示意圖。在本實施例中的感測器為被動式紅外線感測器。FIG. 3 is a schematic diagram of a conventional alarm triggering method. 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.

請先參照圖3,以被動式紅外線感測器PIR為例,在同樣的偵測範圍R內,其會因感測對象是孩童PC或是成人PA而偵測到不同的紅外線幅射值,而在同樣時間內產生不同的訊號振幅Ac以及訊號振幅AA。因此,若是以單一組固定的閥值TH(包括TH+以及TH-)會使得觸發條件彈性較差。Please refer to FIG. 3 first. Taking the passive infrared sensor PIR as an example, in the same detection range R, it will detect different infrared radiation values because the sensing object is a child PC or an adult PA, and Different signal amplitudes Ac and signal amplitudes AA are generated in the same time. Therefore, if the threshold TH (including TH + and TH-) is fixed in a single group, the trigger conditions will be less flexible.

請再參照圖4A,在與圖3相同的偵測環境下,假設電子裝置 100用以判定觸發條件的閥值為第一組閥值TH1(包括TH1+以及TH1-)以及第二組閥值TH2(包括TH2+以及TH2-)。第一組閥值TH1是用來做為穩定狀態轉移的判定值,而第二組閥值TH2是用來做為調整觸發靈敏度所用,因此第二組閥值TH2可以視所欲偵測的物體而有所調整。Please refer to FIG. 4A again. Under the same detection environment as FIG. 3, it is assumed that the threshold value used by the electronic device 100 to determine the trigger condition is the first set of thresholds TH1 (including TH1 + and TH1-) and the second set of thresholds TH2 (Including TH2 + and TH2-). The first set of thresholds TH1 is used as a judgment value for steady state transition, and the second set of thresholds TH2 is used to adjust the trigger sensitivity. Therefore, the second set of thresholds TH2 can be based on the object to be detected And adjusted.

感測器SR的訊號數值可能會落入三個不同區間。第一種為訊號數值未超過第一組閥值,也就是訊號振幅落入TH1+與TH1-之間的穩定狀態,例如訊號振幅A1。第二種為訊號數值超過第二組閥值,也就是訊號振幅落入TH2+與∞之間或是-∞與TH2-之間的警報狀態,例如訊號振幅A2。第三種為訊號數值超過第一組閥值但未超過第二組閥值,也就是訊號振幅落入TH1+與TH2+或是TH2-與TH1-之間,例如訊號振幅A3。當感測器SR的訊號數值落入第三種區間的情況下,需要額外設定一個偵測延遲時間來做為緩衝,以避免錯誤警報的發出。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, that is, the signal amplitude falls within a stable state between TH1 + and TH1-, such as the signal amplitude A1. The second is that the signal value exceeds the second set of thresholds, that is, the alarm state where the signal amplitude falls between TH2 + and ∞ or -∞ and TH2-, such as the signal amplitude A2. The third type is that the signal value exceeds the first group threshold but does not exceed the second group threshold, that is, the signal amplitude falls between TH1 + and TH2 + or TH2- and TH1-, such as the signal amplitude A3. When the signal value of the sensor SR falls into the third interval, an additional detection delay time needs to be set as a buffer to avoid false alarms.

詳細來說,請參照圖4B,訊號振幅B1於時間t1後超出第一組閥值TH1+(不超出TH2+),但在偵測延遲時間TD之前已落回第一組閥值TH1+內,因此代表感測器SR處於誤判狀態。另一方面,訊號振幅B2於時間t1時超出第一組閥值TH1-(不超出TH2-)並且連續時間超過偵測延遲時間TD,因此代表感測器SR處於警報狀態。此外,在首次震盪後,處理器130將設定一個時間長度(以下稱為「盲目時間TB」)來關閉偵測震盪,以避免重複偵測到觸發的情況。因此,訊號振幅B1以及訊號振幅B2在首次震盪並且經過盲目時間TB後,才會判定感測器SR回到穩定狀態。In detail, please refer to FIG. 4B. The signal amplitude B1 exceeds the first threshold TH1 + (not exceeding TH2 +) after time t1, but falls back within the first threshold TH1 + before the detection delay time TD. The sensor SR is in a misjudgment state. On the other hand, the signal amplitude B2 exceeds the first set of thresholds TH1- (not exceeding TH2-) at time t1 and the continuous time exceeds the detection delay time TD, so it means that the sensor SR is in an alarm state. In addition, after the first shock, the processor 130 will set a time length (hereinafter referred to as the "blind time TB") to turn off the detection shock to avoid repeated detection of triggering. Therefore, after the signal amplitude B1 and the signal amplitude B2 oscillate for the first time and the blind time TB elapses, it is determined that the sensor SR returns to a stable state.

為了更完整地說明前述方法,圖5是根據本發明一實施例所繪示的警報觸發方法的演算流程圖。In order to explain the foregoing method more completely, FIG. 5 is a calculation flowchart of an alarm triggering method according to an embodiment of the present invention.

請同時參照圖1以及圖5,當電子裝置100開始進入感測器SR的警報觸發方法流程時,處理器130將啟動計時器(步驟S502)。處理器130在尚未取得訊號數值前,會將感測器SR的狀態預設為穩定狀態(步驟S504)。處理器130在時間t時取得訊號數值a(步驟S506),而在此的時間t為計時器的目前時間點。接著,處理器130先以第一組判定閥值TH1來判斷訊號數值a所落入的區間是否符合a>TH1+或是a<TH1-(步驟S508),若否,即代表訊號數值a低於第一組判定閥值TH1,也就是感測器SR處於穩定狀態,即流程回到步驟S504,而處理器130將會持續地判斷下個時間點取得的訊號值所落入的區間。Referring to FIG. 1 and FIG. 5 at the same time, 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). The processor 130 presets the state of the sensor SR to a stable state before obtaining the signal value (step S504). The processor 130 obtains the signal value a at time t (step S506), and the time t here is the 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- using the first set of thresholds TH1 (step S508). If not, it means that the signal value a is lower than The first set of determination thresholds TH1, that is, the sensor SR is in a stable state, that is, the flow returns to step S504, and the processor 130 will continuously determine the interval in which the signal value obtained at the next time point falls.

當步驟S508的判斷為是時,處理器130將進一步地於偵測延遲時間TD內的訊號數值a’來判斷感測器SR的狀態。在此,處理器130將以第二組判定閥值TH2來判斷訊號數值a’所落入的區間是否符合a’>TH2+或是a’<TH2-(步驟S512)。When the determination in step S508 is YES, the processor 130 further determines the state of the sensor SR based on the signal value a 'within the detection delay time TD. Here, the processor 130 uses the second set of determination thresholds TH2 to determine whether the interval in which the signal value a 'falls falls within a'> TH2 + or a '<TH2- (step S512).

當步驟S512的判斷為是時,處理器130將判定感測器SR為警報狀態(步驟S516)。接著,將進入到盲目時間TB,而處理器130將判斷盲目時間TB是否結束(步驟S518,即時間點是否已到達t+TD+TB)。若盲目時間TB尚未結束,則處理器130會持續將感測器SR判定為警報狀態(回到步驟S516),直到盲目時間TB結束時,處理器130會將感測器SR轉移到預設的穩定狀態(回到步驟S504),以重新進行狀態的判定。When the determination of step S512 is YES, the processor 130 determines that the sensor SR is in an alarm state (step S516). Next, the blind time TB will be entered, and the processor 130 will determine whether the blind time TB is over (step S518, that is, whether the time point has reached t + TD + TB). If the blind time TB has not ended, the processor 130 will continue to determine the sensor SR as an alarm state (return to step S516), and until the blind time TB ends, the processor 130 will transfer the sensor SR to a preset The steady state (returns to step S504) to re-judgment the state.

另一方面,當步驟S512的判斷為否時,處理器130將進一步地於偵測延遲時間TD內的訊號數值a’所落入的區間是否仍符合a’>TH1+或是a’<TH1-(步驟S514)。若是,處理器130將判定感測器SR為警報狀態(步驟S516)。若否,處理器130將判定感測器SR為誤判狀態(步驟S520)。接著,同樣將進入到盲目時間TB,而處理器130將判斷盲目時間TB是否結束(步驟S522,即時間點是否已到達t+TD+TB)。若盲目時間TB尚未結束,則處理器130會持續將感測器SR判定為誤判狀態(回到步驟S520),直到盲目時間TB結束時,處理器130會將感測器SR轉移到預設的穩定狀態(回到步驟S504),以重新進行狀態的判定。On the other hand, when the determination of step S512 is no, the processor 130 will further detect whether the interval in which the signal value a 'within the delay time TD falls still meets a'> TH1 + or a '<TH1- (Step S514). If yes, 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 a false judgment state (step S520). Next, it will also enter the blind time TB, and the processor 130 will determine whether the blind time TB is over (step S522, that is, whether the time point has reached t + TD + TB). If the blind time TB has not ended, the processor 130 will continue to determine the sensor SR as a misjudgment state (return to step S520), and until the blind time TB ends, the processor 130 will transfer the sensor SR to a preset The steady state (returns to step S504) to re-judgment the state.

在本實施例中,當處理器130判定感測器SR為警報狀態時,將會輸出警報訊號。以感測器SR為偵測人體的被動式紅外線感測器為例,處理器130可以是連接至例如是揚聲器,以在輸出警報訊號時使得揚聲器發出警鈴,以做為監控防盜之用途。或者,處理器130可以是連接至光源,以在輸出警報訊號時可以開啟光源,以達到自動化的控制。In this embodiment, when the processor 130 determines that the sensor SR is in an alarm state, it will output an alarm signal. Taking the sensor SR as a passive infrared sensor for detecting human body as an example, the processor 130 may be connected to, for example, a speaker, so that when the alarm signal is output, the speaker emits an alarm bell 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 an alarm signal is output to achieve automatic control.

以感測器SR而言,圖6是根據本發明一實施例所繪示的感測器的狀態轉移圖。In terms of the sensor SR, FIG. 6 is a state transition diagram of the sensor according to an embodiment of the present invention.

請參照圖6,處理器130將取得感測器SR的訊號數值S、第一判定閥值TH1、第二判定閥值TH2、目前時間點Time_C、偵測延遲時間的結束時點Time_D以及盲目時間的結束時點Time_B,而感測器SR將預設為穩定狀態S0(狀態轉移方向T0)。Referring to FIG. 6, the processor 130 will obtain the signal value S of the sensor SR, the first determination threshold value TH1, the second determination threshold value TH2, the current time point Time_C, the end time point of the detection delay time Time_D, and the blind time. At the end point, Time_B, and the sensor SR will be preset to the stable state S0 (state transition direction T0).

在本實施例中,當處理器130判定訊號數值S介於第一判定閥值TH1與第二判定閥值TH2之間並且尚未到達偵測延遲時間的結束時點Time_D之前時(即,邏輯表達式為「TH1<S<TH2 && Time_C<Time_D」),感測器SR將暫時地轉移到誤判狀態S1(狀態轉移方向T01)。在此期間,當訊號數值S回到低於第一判定閥值TH1時(即,邏輯表達式為「S<TH1 && Time_C<Time_D」),則感測器SR將停留在誤判狀態S1。當處理器130進一步地判定在盲目時間的結束時點Time_B之後訊號數值S低於第一判定閥值TH1時(即,邏輯表達式為「S<TH1 && Time_C>Time_B」),感測器SR將會轉移回穩定狀態S0(狀態轉移方向T10)。另一方面,當感測器SR暫時地轉移到誤判狀態S1時,當處理器130判定訊號數值S超過第二判定閥值TH2或者是於偵測延遲時間的結束時點Time_D之後訊號數值S仍未低於第一判定閥值TH1時(即,邏輯表達式為「S>TH2 || (TH1<S<TH2 && Time_C>Time_D)」),則感測器SR將轉移到警報狀態S2(狀態轉移方向T12)。In this 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 the end of the detection delay time before Time_D (that is, a logical expression "TH1 <S <TH2 && Time_C <Time_D"), the sensor SR will temporarily transition to the misjudgment state S1 (state transition direction T01). During this period, when the signal value S returns below the first determination threshold TH1 (that is, the logical expression is “S <TH1 && Time_C <Time_D”), the sensor SR will stay in the misjudgment state S1. When the processor 130 further determines that the signal value S after Time_B at the end of the blind time is lower than the first determination threshold TH1 (that is, the logical expression is “S <TH1 && Time_C> Time_B”), the sensor SR will Will return to the stable state S0 (state transition direction T10). On the other hand, when the sensor SR temporarily transits to the misjudgment state S1, when the processor 130 determines that the signal value S exceeds the second judgment threshold value TH2 or the signal value S is not yet reached after Time_D at the end of the detection delay time When it is lower than the first decision threshold TH1 (that is, the logical expression is "S> TH2 || (TH1 <S <TH2 && Time_C> Time_D)"), the sensor SR will transition to the alarm state S2 (state transition Direction T12).

必須說明的是,在另一實施例中,感測器SR在穩定狀態S0的期間,當處理器130判定訊號數值S介於第一判定閥值TH1與第二判定閥值TH2之間並且尚未到達偵測延遲時間的結束時點Time_D之前時,感測器SR將不會暫時地轉移到誤判狀態S1,而是處理器130在偵測延遲時間內判定訊號數值S回到低於第一判定閥值TH1時才會將感測器SR自穩定狀態S0轉移至誤判狀態S1(狀態轉移方向T01)。當處理器130判定訊號數值S介於第一判定閥值TH1與第二判定閥值TH2之間的持續時間超過偵測延遲時間的結束時點Time_D時,則會將感測器SR自穩定狀態S0直接轉移至警報狀態S2(狀態轉移方向T02)。It must be noted that, in another embodiment, when the sensor SR is in the steady state S0, 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 yet When the end of the detection delay time is reached before Time_D, the sensor SR will not temporarily transition to the misjudgment state S1, but the processor 130 determines that the signal value S returns below the first determination valve within the detection delay time. Only when the value is TH1, the sensor SR is transferred from the stable state S0 to the misjudgment state S1 (state transition direction T01). 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 point Time_D of the detection delay time, the sensor SR will be in a stable state S0. Directly transition to alarm state S2 (state transition direction T02).

當感測器SR在穩定狀態S0並且處理器130判定訊號數值S超過第二判定閥值TH2時(即,邏輯表達式為「S>TH2 && Time_C<Time_D」),會直接將感測器SR轉移至警報狀態S2(狀態轉移方向T02)。同樣地,當處理器130進一步地判定在盲目時間的結束時點Time_B之後訊號數值S低於第一判定閥值TH1時(即,邏輯表達式為「S<TH1 && Time_C>Time_B」),感測器SR將會轉移回穩定狀態S0(狀態轉移方向T20)。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 (that is, the logical expression is “S> TH2 && Time_C <Time_D”), the sensor SR will be directly Transition to alarm state S2 (state transition direction T02). Similarly, when the processor 130 further determines that the value S of the signal after Time_B at the end of the blind time is lower than the first determination threshold TH1 (that is, the logical expression is “S <TH1 && Time_C> Time_B”), it senses The controller SR will return to the stable state S0 (state transition direction T20).

在另一實施例中,電子裝置100更可以與另一個感測器連接,並且根據另一個感測器所偵測到的感測器訊號或者是環境參數來適應性地調整原本所設定的閥值。舉例來說,環境溫度的波動可影響到訊號數值的大小。以紅外線感測器為例,當溫度較高時,所量測到的輻射值較大,因此需要將閥值調高,以避免輕易達到觸發條件而產生誤判。具體來說,圖7是根據本發明另一實施例所繪示的電子裝置的方塊示意圖。In another embodiment, the electronic device 100 may be further connected to another sensor, and the originally set valve is adaptively adjusted according to a sensor signal or an environmental parameter detected by the other sensor. value. For example, fluctuations in ambient temperature can affect the magnitude of the signal value. Taking an infrared sensor as an example, when the temperature is high, the measured radiation value is large, so the threshold value needs to be increased to avoid the false condition due to the trigger condition being easily reached. Specifically, FIG. 7 is a schematic block diagram of an electronic device according to another embodiment of the present invention.

請參照圖7,電子裝置700耦接至溫度感測器TS,並且在記憶體(未繪示)中已預先儲存第一判定閥值、第二判定閥值以及時間判定閥值。電子裝置700的類比數位轉換器ADC將會接收偵測感測器DS的感測器訊號並且轉換為訊號數值。電子裝置700的閥值調整產生器AVG將會接收溫度感測器TS所感測到的環境溫度並且產生閥值調整值,以傳送到閥值產生器THG。閥值產生器THG將利用閥值調整值針對原本的第一判定閥值、第二判定閥值以及時間判定閥值至少之一者進行調整。接著,第一閥值比較器TH1C、第二閥值比較器TH2C會將類比數位轉換器ADC的訊號數值與調整後的第一判定閥值、第二判定閥值進行比較,而偵測延遲時間比較器DDTC會根據計時時鐘CLK來將訊號數值所持續的時間與時間判定閥值進行比較。接著,前述的比較結果傳送至狀態處理器SP以進行如同前述實施例所述有關於偵測感測器DS的狀態判定流程。在此的偵測感測器DS和類比數位轉換器ADC分別類似於圖1中的感測器SR和類比數位轉換器110。閥值調整產生器AVG、閥值產生器THG、第一閥值比較器TH1C、第二閥值比較器TH2C、偵測延遲時間比較器DDTC、計時時鐘CLK、狀態處理器SP可以是模組或者是電路,其類似於圖1中的處理器130,因此於此將不再贅述。Referring to FIG. 7, the electronic device 700 is coupled to the temperature sensor TS, and the first determination threshold, the second determination threshold, and the time determination threshold have been stored in a memory (not shown) in advance. The analog-to-digital converter ADC of the electronic device 700 will receive the sensor signal of the detection sensor DS and convert it into a signal value. The threshold adjustment generator AVG of the electronic device 700 will receive the ambient temperature sensed by the temperature sensor TS and generate a threshold adjustment value for transmission to the threshold generator THG. The threshold generator THG will use the threshold adjustment value to adjust at least one of the original first determination threshold, the second determination threshold, and the time determination threshold. Next, the first threshold comparator TH1C and the second threshold comparator TH2C compare the signal value of the analog-to-digital converter ADC with the adjusted first and second decision thresholds, and detect the delay time. The comparator DDTC compares the duration of the signal value with the time determination threshold according to the timing clock CLK. Then, the aforementioned comparison result is transmitted to the state processor SP to perform a state determination process on 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 timing clock CLK, and the state processor SP can be modules or It is a circuit, which is similar to the processor 130 in FIG. 1, so it will not be repeated here.

綜上所述,本發明所提出用於感測器的警報觸發方法及使用其的電子裝置,其利用多重閥值來判斷感測器訊號的訊號數值是否達到警報觸發的條件,以降低錯誤觸發警報的機率。此外,本發明更可依據不同環境以及不同偵測物而適應性地調整閥值,以實現更為精準的警報觸發。In summary, the alarm triggering method for the sensor and the electronic device using the same according to the present invention utilize multiple thresholds to determine whether the signal value of the sensor signal meets the condition of the alarm trigger to reduce false triggering. The probability of an alert. In addition, the present invention can adaptively adjust the threshold value according to different environments and different detection objects, so as to achieve more accurate alarm triggering.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.

100‧‧‧電子裝置100‧‧‧ electronic device

110‧‧‧類比數位轉換110‧‧‧ Analog Digital Conversion

120‧‧‧記憶體120‧‧‧Memory

130‧‧‧處理器130‧‧‧ processor

SR‧‧‧感測器SR‧‧‧Sensor

S202~S212、S502~S522‧‧‧步驟S202 ~ S212, S502 ~ S522‧‧‧step

PC‧‧‧孩童PC‧‧‧Child

PA‧‧‧成人PA‧‧‧Adult

Ac、AA、A1、A2、A3、B1、B2‧‧‧訊號振幅Ac, AA, A1, A2, A3, B1, B2‧‧‧ signal amplitude

TH、TH+、TH-‧‧‧閥值TH, TH +, TH-‧‧‧ threshold

TH1、TH1+、TH1-‧‧‧第一判定閥值TH1, TH1 +, TH1-‧‧‧ first decision threshold

TH2、TH2+、TH2-‧‧‧第二判定閥值TH2, TH2 +, TH2-‧‧‧ second decision threshold

TD‧‧‧偵測延遲時間TD‧‧‧ Detection delay time

TB‧‧‧盲目時間TB‧‧‧ blind time

S0‧‧‧穩定狀態S0‧‧‧steady state

S1‧‧‧誤判狀態S1‧‧‧Misjudgment status

S2‧‧‧警報狀態S2‧‧‧Alarm status

T0、T10、T01、T12、T20、T02‧‧‧狀態轉移方向T0, T10, T01, T12, T20, T02‧‧‧ State transition direction

DS‧‧‧偵測感測器DS‧‧‧ Detection Sensor

TS‧‧‧溫度感測器TS‧‧‧Temperature Sensor

700‧‧‧電子裝置700‧‧‧ electronic device

ADC‧‧‧類比數位轉換器ADC‧‧‧ Analog Digital Converter

AVG‧‧‧閥值調整產生器AVG‧‧‧Threshold Adjustment Generator

THG‧‧‧閥值產生器THG‧‧‧Threshold Generator

TH1C‧‧‧第一閥值比較器TH1C‧‧‧The first threshold comparator

TH2C‧‧‧第二閥值比較器TH2C‧‧‧Second threshold comparator

CLK‧‧‧計時時鐘CLK‧‧‧ timing clock

DDTC‧‧‧偵測延遲時間比較器DDTC‧‧‧ Detection Delay Comparator

SP‧‧‧狀態處理器SP‧‧‧ State Processor

圖1是根據本發明一實施例所繪示的電子裝置的方塊示意圖。 圖2是根據本發明一實施例所繪示的警報觸發方法的流程圖。 圖3是習知的警報觸發方法的情境示意圖。 圖4A~圖4B是根據本發明一實施例所繪示的警報觸發方法的示意圖。 圖5是根據本發明一實施例所繪示的警報觸發方法的演算流程圖。 圖6是根據本發明一實施例所繪示的警報觸發方法的狀態轉移圖。 圖7是根據本發明另一實施例所繪示的電子裝置的方塊示意圖。FIG. 1 is a block diagram of an electronic device according to an embodiment of the invention. FIG. 2 is a flowchart of an alarm triggering method according to an embodiment of the present invention. FIG. 3 is a schematic diagram of a conventional alarm triggering method. 4A-4B are schematic diagrams of an alarm triggering method according to an embodiment of the present invention. FIG. 5 is a calculation flowchart of an alarm triggering method according to an embodiment of the present invention. FIG. 6 is a state transition diagram of an alarm triggering method according to an embodiment of the present invention. FIG. 7 is a schematic block diagram of an electronic device according to another embodiment of the present invention.

Claims (22)

一種用於感測器的警報觸發方法,包括下列步驟: 自該感測器接收感測器訊號; 判斷該感測器訊號的訊號數值是否符合第一觸發條件,其中該第一觸發條件關聯於第一判定閥值; 當該訊號數值符合該第一觸發條件時,判斷該訊號數值是否符合第二觸發條件或是第三觸發條件,其中該第二觸發條件關聯於第二判定閥值,該第二判定閥值高於該第一判定閥值,該第三觸發條件關聯於時間判定閥值;以及 當該訊號數值符合該第二觸發條件或是該第三觸發條件時,判定該感測器為警報狀態,以輸出警報訊號。An alarm triggering method for a sensor includes the following steps: receiving a sensor signal from the sensor; 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; when the signal value meets the first trigger condition, determining whether the signal value meets a second trigger condition or a third trigger condition, where the second trigger condition is associated with a second decision threshold, the The second determination threshold is higher than the first determination threshold, the third trigger condition is associated with the time determination threshold; and when the signal value meets the second trigger condition or the third trigger condition, the sensing is determined The device is in an alarm state to output an alarm signal. 如申請專利範圍第1項所述的方法,其中判斷該感測器訊號的該訊號數值是否符合該第一觸發條件的步驟包括: 判斷該訊號數值是否超過該第一判定閥值;以及 當該訊號數值超過該第一判定閥值時,判定該訊號數值符合該第一觸發條件。The method according to item 1 of the scope of patent application, wherein the step of determining whether the signal value of the sensor signal meets the first trigger condition includes: determining whether the signal value exceeds the first determination threshold; and when the When the signal value exceeds the first determination threshold, it is determined that the signal value meets the first trigger condition. 如申請專利範圍第2項所述的方法,更包括: 當該訊號數值未超過該第一判定閥值時,判定該感測器為穩定狀態。The method according to item 2 of the patent application scope further comprises: determining that the sensor is in a stable state when the signal value does not exceed the first determination threshold. 如申請專利範圍第2項所述的方法,其中當該訊號數值符合該第一觸發條件時,判斷該訊號數值是否符合該第二觸發條件的步驟包括: 判斷該訊號數值是否超過該第二判定閥值;以及 當該訊號數值超過該第二判定閥值時,判定該訊號數值符合該第二觸發條件,從而判定該感測器為該警報狀態。The method according to item 2 of the scope of patent application, wherein when the signal value meets the first trigger condition, the step of determining whether the signal value meets the second trigger condition includes: determining whether the signal value exceeds the second determination A threshold value; and when the signal value exceeds the second determination threshold value, it is determined that the signal value meets the second triggering condition, thereby determining that the sensor is in the alarm state. 如申請專利範圍第4項所述的方法,其中當該感測器為該警報狀態時,該方法更包括:   當該訊號數值於盲目時間後低於該第一判定閥值時,轉移該感測器為穩定狀態。The method according to item 4 of the scope of patent application, wherein when the sensor is in the alarm state, the method further comprises: 转移 transferring the sense when the signal value is lower than the first determination threshold after a blind time The detector is stable. 如申請專利範圍第2項所述的方法,其中當該訊號數值符合該第一觸發條件時,判斷該訊號數值是否符合該第三觸發條件的步驟包括:   判斷該訊號數值是否超過該第二判定閥值; 當該訊號數值未超過該第二判定閥值時,判斷該訊號數值超過該第一判定閥值的連續時間是否超過該時間判定閥值;以及 當該訊號數值超過該第一判定閥值的該連續時間超過該時間判定閥值時,判定該訊號數值符合該第三觸發條件,從而判定該感測器為該警報狀態。The method according to item 2 of the scope of patent application, wherein when the signal value meets the first trigger condition, the step of determining whether the signal value meets the third trigger condition includes: judging whether the signal value exceeds the second judgment Threshold value; when the value of the signal does not exceed the second determination threshold value, determine whether the continuous time that the value of the signal exceeds the first determination threshold value exceeds the time determination threshold value; and when the value of the signal exceeds the first determination threshold value When the continuous time of the value exceeds the time determination threshold, it is determined that the signal value meets the third triggering condition, thereby determining that the sensor is in the alarm state. 如申請專利範圍第1項所述的方法,更包括: 當該訊號數值超過該第一判定閥值的該連續時間未超過該時間判定閥值時,判定該感測器為誤判狀態。The method according to item 1 of the scope of patent application, further comprising: determining that the sensor is in a false judgment state when the continuous value of the signal value exceeds the first judgment threshold value does not exceed the time judgment threshold value. 如申請專利範圍第7項所述的方法,其中當該感測器為該誤判狀態時,該方法更包括: 當該訊號數值於盲目時間後低於該第一判定閥值時,轉移該感測器為穩定狀態。The method according to item 7 of the scope of patent application, wherein when the sensor is in the state of misjudgment, the method further comprises: when the signal value is lower than the first decision threshold after a blind time, transferring the sense The detector is stable. 如申請專利範圍第1項所述的方法,更包括:   自另一感測器接收另一感測器訊號;以及   根據該另一感測器訊號的訊號數值調整該第一判定閥值、該第二判定閥值以及該時間判定閥值至少之一者。The method according to item 1 of the patent application scope further comprises: 接收 receiving another sensor signal from another sensor; and adjusting the first determination threshold, the At least one of the second determination threshold and the time determination threshold. 如申請專利範圍第9項所述的方法,其中該另一感測器為環境溫度感測器,而該另一感測器訊號的訊號數值為環境溫度值。The method according to item 9 of the application, wherein the other sensor is an ambient temperature sensor, and the signal value of the other sensor signal is an ambient temperature value. 一種電子裝置,包括:   一感測器; 一類比數位轉換器,耦接該感測器,用以自該感測器接收感測器訊號,並且轉換該感測器訊號為訊號數值;   一記憶體,用以儲存資料;以及   一處理器,耦接該類比數位轉換器以及該記憶體,用以執行下列步驟:     判斷該感測器訊號的該訊號數值是否符合第一觸發條件,其中該第一觸發條件關聯於第一判定閥值;   當該訊號數值符合該第一觸發條件時,判斷該訊號數值是否符合第二觸發條件或是第三觸發條件,其中該第二觸發條件關聯於第二判定閥值,該第二判定閥值高於該第一判定閥值,該第三觸發條件關聯於時間判定閥值;以及     當該訊號數值符合該第二觸發條件或是該第三觸發條件時,判定該感測器為警報狀態,以輸出警報訊號。An electronic device includes: a sensor; an analog digital converter coupled to the sensor for receiving a sensor signal from the sensor and converting the sensor signal into a signal value; a memory Body for storing data; and a processor coupled to the analog-to-digital converter and the memory for performing the following steps: judging whether the signal value of the sensor signal meets a first trigger condition, wherein the first A trigger condition is associated with the first determination threshold; When the signal value meets the first trigger condition, determine whether the signal value meets the second trigger condition or the third trigger condition, wherein the second trigger condition is associated with the second A determination threshold, the second determination threshold is higher than the first determination threshold, and the third trigger condition is associated with a time determination threshold; and when the signal value meets the second trigger condition or the third trigger condition To determine that the sensor is in an alarm state to output an alarm signal. 如申請專利範圍第11項所述的電子裝置,其中該處理器更用以執行下列步驟: 判斷該訊號數值是否超過該第一判定閥值;以及 當該訊號數值超過該第一判定閥值時,判定該訊號數值符合該第一觸發條件。The electronic device according to item 11 of the patent application scope, wherein the processor is further configured to perform the following steps: determine whether the value of the signal exceeds the first determination threshold; and when the value of the signal exceeds the first determination threshold To determine that the signal value meets the first trigger condition. 如申請專利範圍第12項所述的電子裝置,其中該處理器更用以執行下列步驟: 當該訊號數值未超過該第一判定閥值時,判定該感測器為穩定狀態。The electronic device according to item 12 of the patent application scope, wherein the processor is further configured to perform the following steps: when the signal value does not exceed the first determination threshold, determine that the sensor is in a stable state. 如申請專利範圍第12項所述的電子裝置,其中當該訊號數值符合該第一觸發條件時,該處理器用以執行下列步驟: 判斷該訊號數值是否超過該第二判定閥值;以及 當該訊號數值超過該第二判定閥值時,判定該訊號數值符合該第二觸發條件,從而判定該感測器為該警報狀態。The electronic device according to item 12 of the patent application scope, wherein when the signal value meets the first trigger condition, the processor is configured to perform the following steps: determine whether the signal value exceeds the second determination threshold; and when the signal value When the signal value exceeds the second determination threshold, it is determined that the signal value meets the second triggering condition, thereby determining that the sensor is in the alarm state. 如申請專利範圍第14項所述的電子裝置,其中當該感測器為該警報狀態時,該處理器更用以執行下列步驟: 當該訊號數值於盲目時間後低於該第一判定閥值時,轉移該感測器為穩定狀態。The electronic device according to item 14 of the patent application scope, wherein when the sensor is in the alarm state, the processor is further configured to perform the following steps: when the signal value is lower than the first determination valve after a blind time Value, the sensor is transferred to a steady state. 如申請專利範圍第12項所述的電子裝置,其中當該訊號數值符合該第一觸發條件時,該處理器用以執行下列步驟:   判斷該訊號數值是否超過該第二判定閥值; 當該訊號數值未超過該第二判定閥值時,判斷該訊號數值超過該第一判定閥值的連續時間是否超過該時間判定閥值;以及 當該訊號數值超過該第一判定閥值的該連續時間超過該時間判定閥值時,判定該訊號數值符合該第三觸發條件,從而判定該感測器為該警報狀態。The electronic device according to item 12 of the scope of patent application, wherein when the signal value meets the first trigger condition, the processor is configured to perform the following steps: : determine whether the value of the signal exceeds the second determination threshold; when the signal When the value does not exceed the second determination threshold, determine whether the continuous time that the signal value exceeds the first determination threshold exceeds the time determination threshold; and when the signal value exceeds the first determination threshold, the continuous time exceeds When the time determines the threshold, it is determined that the signal value meets the third triggering condition, thereby determining that the sensor is in the alarm state. 如申請專利範圍第11項所述的電子裝置,該處理器更用以執行下列步驟: 當該訊號數值超過該第一判定閥值的該連續時間未超過該時間判定閥值時,判定該感測器為誤判狀態。According to the electronic device described in claim 11 of the patent application scope, the processor is further configured to perform the following steps: when the continuous value of the signal value exceeds the first determination threshold does not exceed the time determination threshold, determine the sense The detector is in a state of misjudgment. 如申請專利範圍第17項所述的電子裝置,其中當該感測器為該誤判狀態時,該處理器更用以執行下列步驟: 當該訊號數值於盲目時間後低於該第一判定閥值時,轉移該感測器為穩定狀態。The electronic device according to item 17 of the scope of patent application, wherein when the sensor is in the misjudgment state, the processor is further configured to perform the following steps: when the signal value is lower than the first decision valve after a blind time Value, the sensor is transferred to a steady state. 如申請專利範圍第11項所述的電子裝置,更包括另一感測器,該處理器更用以執行下列步驟:   自另一感測器接收另一感測器訊號;以及   根據該另一感測器訊號的訊號數值調整該第一判定閥值、該第二判定閥值以及該時間判定閥值至少之一者。The electronic device according to item 11 of the patent application scope further includes another sensor, and the processor is further configured to perform the following steps: 接收 receiving another sensor signal from the other sensor; and according to the another sensor, The signal value of the sensor signal adjusts at least one of the first determination threshold, the second determination threshold, and the time determination threshold. 如申請專利範圍第19項所述的電子裝置,其中該另一感測器為環境溫度感測器,而該另一感測器訊號的訊號數值為環境溫度值。The electronic device according to item 19 of the application, wherein the other sensor is an ambient temperature sensor, and the signal value of the other sensor signal is an ambient temperature value. 如申請專利範圍第11項所述的電子裝置,適與另一感測器搭配使用,該處理器更用以執行下列步驟:   自另一感測器接收另一感測器訊號;以及   根據該另一感測器訊號的訊號數值調整該第一判定閥值、該第二判定閥值以及該時間判定閥值至少之一者。If the electronic device described in item 11 of the patent application scope is suitable for use with another sensor, the processor is further configured to perform the following steps: 接收 receiving another sensor signal from another sensor; and according to the A signal value of another sensor signal adjusts at least one of the first determination threshold, the second determination threshold, and the time determination threshold. 如申請專利範圍第21項所述的電子裝置,其中該另一感測器為環境溫度感測器,而該另一感測器訊號的訊號數值為環境溫度值。According to the electronic device of claim 21, the other sensor is an ambient temperature sensor, and the signal value of the other sensor signal is an ambient temperature value.
TW106118011A 2016-12-27 2017-06-01 Alarm triggering method for sensor and electronic device using same TWI655614B (en)

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
TW201824202A true TW201824202A (en) 2018-07-01
TWI655614B TWI655614B (en) 2019-04-01

Family

ID=62700120

Family Applications (3)

Application Number Title Priority Date Filing Date
TW106115541A TWI638578B (en) 2016-12-27 2017-05-11 GATEWAY, GATEWAY SETUP METHOD, AND IoT DEVICE SETUP METHOD IN IoT SYSTEM
TW106115914A TWI625705B (en) 2016-12-27 2017-05-15 Photoelectric module, motion sensing device and driving method thereof
TW106118011A TWI655614B (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
TW106115541A TWI638578B (en) 2016-12-27 2017-05-11 GATEWAY, GATEWAY SETUP METHOD, AND IoT DEVICE SETUP METHOD IN IoT SYSTEM
TW106115914A TWI625705B (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 (4)

* 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
CN115830809A (en) * 2022-11-28 2023-03-21 河南辉煌科技股份有限公司 Debris flow alarm smart grid sensor and monitoring method

Family Cites Families (21)

* 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
CN203611860U (en) * 2013-11-22 2014-05-28 北汽福田汽车股份有限公司 Vehicle alarm system and vehicle
TWI542171B (en) * 2013-12-18 2016-07-11 Alpha Networks Inc Automatically set the way the gateway device
CA2941497A1 (en) * 2014-03-03 2015-09-11 Vsk Electronics Nv Intrusion detection with motion sensing
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
CN105205988B (en) * 2015-10-30 2018-07-06 张金宏 The toilet lid and method and closestool that generation contingency can alarm during toilet seat
CN105222486B (en) * 2015-10-30 2018-02-02 青岛海尔特种电冰箱有限公司 Refrigerator detection method and detection means
CN105551194B (en) * 2016-03-10 2018-01-23 广州视源电子科技股份有限公司 A kind of fall detection method and device

Also Published As

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

Similar Documents

Publication Publication Date Title
TWI655614B (en) Alarm triggering method for sensor and electronic device using same
EP3511938B1 (en) Audio events triggering video analytics
JP2018501531A5 (en)
US20190362613A1 (en) System and Method for Surveillance
WO2020059449A1 (en) Person detection system and program
JP2020051757A (en) Person detection system and program
WO2018069922A3 (en) Systems and methods for acoustic emission monitoring of semiconductor devices
Bai et al. Use of ultrasonic signal coding and PIR sensors to enhance the sensing reliability of an embedded surveillance system
US10121363B2 (en) Alarm triggering method for sensor and electronic device using the same
TW201915660A (en) Motion detection method and motion detection device
MX2022009865A (en) Conductor support structure position monitoring system.
TWI658437B (en) Human detection system
KR100554617B1 (en) Passive infrared intrusion detector
WO2015190036A1 (en) Infrared detection device and detection method
CN107807403B (en) Motion sensing method and motion sensor for reducing false alarms
JP6667158B2 (en) Infrared detection system
KR101260789B1 (en) Apparatus for sensing object using sensors and method for thereof
JP2006215708A (en) Antitheft device and method for operating it
US20140354430A1 (en) Energy harvesting, ambient light fluctuation sensing intrusion detector
JP6281936B2 (en) Human detection device, distance determination device, distance determination method and program
JPS5834555Y2 (en) Storage type fire detector
SE544639C2 (en) Method and system for determining the presence of a person to wake up a device
JP4544988B2 (en) Image sensing device
WO2019102645A1 (en) Human body detection device and human body detection method
CN109541710B (en) Motion detection method and motion detection device