CN112067146A - PIR sensor detection method, device and system and computer storage medium - Google Patents

PIR sensor detection method, device and system and computer storage medium Download PDF

Info

Publication number
CN112067146A
CN112067146A CN202010745100.2A CN202010745100A CN112067146A CN 112067146 A CN112067146 A CN 112067146A CN 202010745100 A CN202010745100 A CN 202010745100A CN 112067146 A CN112067146 A CN 112067146A
Authority
CN
China
Prior art keywords
pir
working mode
pir sensor
analog
digital
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.)
Granted
Application number
CN202010745100.2A
Other languages
Chinese (zh)
Other versions
CN112067146B (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.)
Shenzhen Haiyi Zhixin Technology Co Ltd
Original Assignee
Shenzhen Haiyi Zhixin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Haiyi Zhixin Technology Co Ltd filed Critical Shenzhen Haiyi Zhixin Technology Co Ltd
Priority to CN202010745100.2A priority Critical patent/CN112067146B/en
Publication of CN112067146A publication Critical patent/CN112067146A/en
Application granted granted Critical
Publication of CN112067146B publication Critical patent/CN112067146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/10Radiation pyrometry, e.g. infrared or optical thermometry using electric radiation detectors
    • G01J5/34Radiation pyrometry, e.g. infrared or optical thermometry using electric radiation detectors using capacitors, e.g. pyroelectric capacitors
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01VGEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
    • G01V8/00Prospecting or detecting by optical means
    • G01V8/10Detecting, e.g. by using light barriers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geophysics (AREA)
  • Photometry And Measurement Of Optical Pulse Characteristics (AREA)

Abstract

The invention discloses a PIR sensor detection method, a device, a system and a computer storage medium, wherein the method comprises the following steps: acquiring trigger information; switching the digital PIR working mode to the analog PIR working mode based on the trigger information; and carrying out target detection in the analog PIR working mode based on the trigger information. According to the PIR sensor detection method, the device, the system and the computer storage medium provided by the invention, the PIR sensor is switched between the digital type PIR working mode and the analog type PIR working mode, so that the power consumption of the PIR sensor is reduced while the detection effect is ensured, and the performance of the PIR sensor is improved.

Description

PIR sensor detection method, device and system and computer storage medium
Technical Field
The invention relates to the field of sensors, in particular to a PIR sensor detection method, a device, a system and a computer storage medium.
Background
A core component of a Passive Infrared (PIR) sensor comprises a pyroelectric sensor which can convert infrared signal change with the wavelength of 8-12 mu m into an electric signal. Because the wavelength of infrared light radiated by a human body is 3-50 microns, wherein 8-14 microns account for 46 percent, and the peak wavelength is about 9.5 microns, the PIR sensor sensitive to infrared radiation of about 10 microns is widely applied to security monitoring, express delivery cabinets and other intelligent household products.
The digital PIR sensor is limited by the requirement of low power consumption, the processing capacity of the sensor is limited, and only simple trigger conditions such as detection sensitivity, detection pulse number and the like can be configured. When the sensitivity setting is high, many false triggering problems occur. When the sensitivity setting is low, the requirement for detection is difficult to achieve. In addition, the digital PIR sensor has fixed and long detection time and insufficient detection timeliness.
The analog type PIR sensor analyzes an analog signal output by the sensor, the detection is more timely, the judgment algorithm is more intelligent so as to ensure the accuracy of the detection, however, whether a person passes through the detection area or not, the analog type PIR sensor needs a processor at the rear end to operate all the time, the power consumption is increased, and the analog type PIR sensor is not suitable for equipment application powered by a battery.
Therefore, there is a need for a new PIR sensor detection method, apparatus, system, and computer storage medium to improve detection accuracy of the PIR sensor while reducing power consumption of the PIR sensor.
Disclosure of Invention
In this summary, concepts in a simplified form are introduced that are further described in the detailed description. This summary of the invention is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The invention provides a PIR sensor detection method, which comprises the following steps:
acquiring trigger information;
switching the digital PIR working mode to the analog PIR working mode based on the trigger information;
and carrying out target detection in the analog PIR working mode based on the trigger information.
Further, the PIR sensor detection method further includes:
when the target is detected, alarming is carried out;
and when the target is not detected, switching the analog type PIR working mode to the digital type PIR working mode.
Further, the PIR sensor detection method further includes:
when the target is not detected, acquiring current data;
comparing the current data to a threshold;
and when the current data is lower than the threshold value, switching the analog type PIR working mode to the digital type PIR working mode.
Further, the PIR sensor detection method further includes:
and when the current data is lower than the threshold, entering an analog PIR standby mode, continuously comparing the current data with the threshold, and if the current data is continuously lower than the threshold in a preset time, switching to a digital PIR working mode.
Further, the PIR sensor detection method further includes:
counting results of the target detection;
and adjusting the sensitivity of the digital PIR working mode according to the counting result.
Further, the initial sensitivity of the digital type PIR operation mode is set in advance according to the detection space range and/or the density of the stream of people.
The invention also provides a PIR sensor detection device, comprising:
the information acquisition module is used for acquiring trigger information;
the working mode switching module is used for switching from a digital PIR working mode to an analog PIR working mode based on the trigger information;
and the target detection module is used for carrying out target detection based on the trigger information.
The invention also provides a PIR sensor detection device, comprising:
the digital PIR sensor is used for acquiring trigger information;
the analog PIR sensor is used for carrying out target detection based on the trigger information;
a processor module for controlling switching from the digital type PIR sensor to the analog type PIR sensor.
The present invention also provides a PIR sensor detection system comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the steps of the method described above when executing the computer program.
The invention also provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a computer, implements the steps of the method described above.
According to the PIR sensor detection method, the device, the system and the computer storage medium provided by the invention, the PIR sensor is switched between the digital type PIR working mode and the analog type PIR working mode, so that the power consumption of the PIR sensor is reduced while the detection effect is ensured, and the performance of the PIR sensor is improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail embodiments of the present invention with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings, like reference numbers generally represent like parts or steps.
FIG. 1 is a schematic flow diagram of a PIR sensor detection method according to an embodiment of the invention;
figure 2 is a schematic block diagram of a PIR sensor detection arrangement according to an embodiment of the present invention.
Figure 3 is another schematic block diagram of a PIR sensor detection arrangement according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the invention described herein without inventive step, shall fall within the scope of protection of the invention.
In the following description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. It will be apparent, however, to one skilled in the art, that the present invention may be practiced without one or more of these specific details. In other instances, well-known features have not been described in order to avoid obscuring the invention.
It is to be understood that the present invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes any and all combinations of the associated listed items.
In order to provide a thorough understanding of the present invention, detailed steps and detailed structures will be set forth in the following description in order to explain the technical solutions provided by the present invention. The following detailed description of the preferred embodiments of the invention, however, the invention is capable of other embodiments in addition to those detailed.
The invention provides a method, a device and a system for detecting a PIR sensor and a computer storage medium, aiming at solving the technical problem that the detection effect of the PIR sensor is not ideal. The PIR sensor detection method, apparatus, system and computer storage medium of the present invention are schematically described below with reference to fig. 1 and 2, where fig. 1 shows a schematic flow diagram of a PIR sensor detection method according to an embodiment of the present invention; figure 2 shows a schematic block diagram of a PIR sensor detection arrangement according to an embodiment of the present invention.
Example one
The invention provides a PIR sensor detection method 100, as shown in FIG. 1:
in step S110, trigger information is acquired;
in step S120, switching the digital type PIR working mode to the analog type PIR working mode based on the trigger information;
in step S130, target detection is performed in the analog PIR operating mode based on the trigger information.
Illustratively, a PIR sensor detection method according to embodiments of the present invention may be implemented in a device, apparatus, or system having a memory and a processor.
The PIR sensor detection method provided by the embodiment of the invention can be deployed at intelligent household products comprising PIR sensors, for example, in the security application field, monitoring cameras, doorbells and the like, and in the Internet of things application field, express cabinets and the like.
First, as shown in fig. 1, step S110 is executed to acquire trigger information.
Illustratively, when the information acquisition device is triggered, the trigger information is acquired to acquire the trigger information.
Illustratively, the trigger information includes infrared rays, and further, the trigger information includes infrared rays having a specific wavelength.
According to the embodiment of the invention, all objects with the temperature exceeding absolute 0K (-273 ℃) can generate heat radiation (infrared rays), the heat radiation spectrum generated by the objects with the temperature lower than 1725 ℃ is concentrated in the infrared light region, so that all objects in the nature can radiate the infrared rays outwards, and the wavelengths of the infrared rays released by the objects with different temperatures are different, so that the infrared ray wavelength is related to the temperature. The wavelength and distance of infrared rays generated by any object due to different physical and chemical properties and different temperature are different, and the infrared rays are generally divided into three bands: near infrared ray with wavelength range of 0.75-3 micron; middle infrared ray with wavelength range of 3-25 micron; far infrared ray with wavelength range of 25-1000 μm. The surface temperature of human body is about 37 deg.C, the wavelength of infrared ray radiated by human body is 3-50 μm, in which 8-14 μm is 46%, and the peak wavelength is about 9.5 μm. PIR sensors sensitive to infrared radiation of around 10 μm are therefore widely used to detect whether a person enters a detection zone.
Illustratively, the information acquisition device includes a PIR sensor.
According to an embodiment of the present invention, a core component of a Passive Infrared (PIR) sensor includes a pyroelectric sensor, which can convert infrared signal changes with a wavelength between 8 μm and 12 μm into an electric signal and can have an inhibitory effect on a white light signal in nature. The pyroelectric sensor has a body of thin film ferroelectric material that is polarized under the action of an applied electric field and remains polarized when the applied electric field is removed, referred to as spontaneous polarization. Spontaneous polarization decreases with increasing temperature and decreases to zero at the curie point. Therefore, when infrared rays with a certain intensity are radiated onto the polarized ferroelectric material, the temperature of the material is increased, the polarization intensity is reduced, the surface polarization charge is reduced, and the released charge is converted into an output voltage through the amplifier. If the irradiation of the same intensity of radiation continues, the ferroelectric material stabilizes at a certain point and no charge is released, i.e. no voltage is output. Because the pyroelectric sensor only has voltage signal output in the temperature rising and falling process, an optical system of the PIR sensor not only has the capacity of gathering infrared radiation, but also ensures that the heat gathered and radiated on the pyroelectric sensor has rising and falling changes so as to ensure that the PIR sensor has voltage signal output when a human body enters a detection area. The optical system of a PIR sensor typically employs an optical reflection system and/or a fresnel lens as a focusing system for infrared radiation.
Illustratively, the PIR sensor supports a digital type PIR operating mode and an analog type PIR operating mode.
According to an embodiment of the invention, the PIR sensor comprises a sensor having a digital PIR mode of operation and an analog PIR mode of operation, or the PIR sensor is a combination of a sensor having a digital PIR mode of operation and a sensor having an analog PIR mode of operation.
Illustratively, the trigger information is obtained in a font PIR operating mode.
According to the embodiment of the invention, when the digital PIR working mode is adopted, the sensor has limited processing capacity due to the limitation of low power consumption requirement, and only simple trigger conditions including detection sensitivity, detection pulse number and the like can be configured.
Illustratively, the sensitivity of the PIR sensor is proportional to the detection range.
According to the embodiment of the invention, when the sensitivity of the PIR sensor is set to be higher, the longer range of the detection distance is larger, and the problem of false triggering is easily caused; and when the sensitivity of the PIR sensor is set to be low, the closer range of the detection distance is smaller, so that the detection requirement cannot be met.
Next, as shown in fig. 1, step S120 is executed to switch the digital PIR operating mode to the analog PIR operating mode based on the trigger information.
Illustratively, when the sensor in the digital type PIR operating mode detects the trigger information, the micro control unit adjusts the operating mode of the PIR sensor, switches the PIR sensor from the digital type PIR operating mode to the analog type PIR operating mode, or turns off the sensor in the digital type PIR operating mode and turns on the sensor in the analog type PIR operating mode.
According to the embodiment of the present invention, a Micro Control Unit (MCU), also called a Single Chip Microcomputer (Single Chip Microcomputer) or a Single Chip Microcomputer, appropriately reduces the frequency and specification of a Central Processing Unit (CPU), and integrates peripheral interfaces such as a memory (memory), a counter (Timer), a USB, an a/D converter, a UART, a PLC, a DMA, and even an LCD driving circuit on a Single Chip to form a Chip-level computer, which performs different combination control for different application occasions.
Illustratively, the power consumption of the digital type PIR operating mode is lower than the power consumption of the analog type PIR operating mode.
According to the embodiment of the invention, when the PIR sensor enters a digital PIR working mode, the MCU enters a low-power consumption standby mode; when the PIR sensor enters an analog PIR working mode, the MCU is set to be in a high-power working mode.
Next, step S130 is executed to perform target detection in the analog PIR operating mode based on the trigger information. The target detection of the trigger information comprises: and acquiring original data based on the trigger information.
Illustratively, raw data is obtained based on the trigger information in an analog PIR operating mode.
According to the embodiment of the invention, when the PIR sensor is switched from the digital type PIR working mode to the analog type PIR working mode, the analog type PIR working mode is based on the trigger information acquired by the digital type PIR working mode as the original data, and the data before the trigger information is discarded and not adopted.
According to the embodiment of the invention, when the sensor in the digital type PIR working mode is switched to the sensor in the analog type PIR working mode, the sensor in the digital type PIR working mode transmits the trigger information to the sensor in the analog type PIR working mode as the original data, further, the sensor in the digital type PIR working mode also transmits the information acquired after the trigger information to the sensor in the analog type PIR working mode as the original data, and the data before the trigger information is discarded and not adopted. Or the sensor in the digital PIR working mode transmits the trigger information to the sensor in the analog PIR working mode, and then interrupts all operations, and the sensor in the analog PIR working mode continues to acquire data.
Illustratively, the raw data includes raw ADC data.
According to an embodiment of the present invention, an Analog to Digital Converter (ADC) generally refers to an electronic component that converts an Analog signal into a Digital signal. A typical analog-to-digital converter converts a continuous-time and continuous-amplitude analog quantity into a discrete-time and discrete-amplitude digital signal. Since digital signals do not have practical significance per se, only one relative magnitude is represented. Therefore, any analog-to-digital converter needs a reference analog quantity as a conversion standard, and a common reference standard is the maximum convertible signal size. And the output digital quantity represents the magnitude of the input signal relative to the reference signal.
Further, the target detection of the trigger information further includes: and performing query processing and/or intelligent analysis on the raw data to detect the target.
According to an embodiment of the invention, the object detection comprises human body detection, i.e. the detected object is a human body. And inquiring and/or intelligently analyzing the original ADC data to judge whether the original ADC data contains human body information, if so, determining that the result of target detection is 'yes', namely the target is detected, and a human body enters a detection area, and if not, determining that the result of target detection is 'no', namely the target is not detected, and no human body enters the detection area.
Illustratively, the PIR sensor comprises a smart sensor, which is subjected to a query processing and/or a smart analysis by the micro-control unit.
According to an embodiment of the present invention, the smart sensor is a sensor having an information processing function. The intelligent sensor is provided with a microprocessor, has the capability of collecting, processing and exchanging information, and is a product of the integration of the sensor and the microprocessor. The functions of the smart sensor include, but are not limited to: the device has the functions of self-zero calibration, self-calibration and self-correction; the automatic compensation function is realized; the data can be automatically acquired and preprocessed; the device can automatically carry out inspection, range selection and fault finding; has the functions of data storage, memory and information processing; the device has the functions of bidirectional communication, standardized digital output or symbol output; has the functions of judgment and decision processing. Therefore, the precision, the reliability and the cost performance of the sensor are improved, and the multi-functionalization of the sensor is promoted.
Next, the PIR sensor detection method further includes:
when the target is detected, alarming is carried out;
and when the target is not detected, switching the analog type PIR working mode to the digital type PIR working mode.
According to an embodiment of the invention, the alarm comprises a specific form of sound signal or light signal. For example, when the doorbell detects that a human body enters the detection area, sound can be played to remind the user; when the express cabinet detects that a human body enters the detection area, the screen can be lightened so that a user can operate to take the express.
According to the embodiment of the invention, when the target is not detected, the sensor is switched from the analog type PIR working mode to the digital type PIR working mode, or the sensor in the analog type PIR working mode is closed and the sensor in the digital type PIR working mode is opened, or the sensor in the analog type PIR working mode enters the standby mode and the sensor in the digital type PIR working mode is opened, and meanwhile, the MCU is restored to the low power consumption standby mode again to reduce the power consumption of the PIR sensor.
Illustratively, when no target is detected, current data may also be obtained and compared to a threshold.
According to the embodiment of the invention, when the original data is detected and the target is not detected, the PIR sensor acquires the current data after triggering the information and compares the current data with the preset threshold value to judge the threshold value.
Illustratively, it is determined whether to switch the analog type PIR operating mode to the digital type PIR operating mode based on the result of the threshold determination.
According to the embodiment of the invention, when the current data is lower than the threshold value, the PIR sensor is switched from the analog type PIR working mode to the digital type PIR working mode, or when the current data is lower than the threshold value, the analog type PIR standby mode is entered, the current data is continuously compared with the threshold value, and if the current data is continuously lower than the threshold value in a preset time, the digital type PIR working mode is switched.
Illustratively, the method may further comprise the step of counting the results of the target detection.
According to an embodiment of the present invention, when no target is detected, the counter is incremented by one; when the target is detected, the counter is reset to zero; when the target has not been detected yet, the calculator accumulates. By this counting manner, the number of times that the result of target detection continues to be "no" can be obtained.
Next, the sensitivity of the digital type PIR operating mode is adjusted according to the result of the counting.
According to the embodiment of the present invention, the counting result is compared with the preset value, for example, the preset value is 3, when the counting result is equal to 3, it indicates that the analog type PIR operating mode has not detected the target for 3 consecutive times, therefore, the sensitivity of the digital type PIR operating mode is higher, and the sensitivity of the digital type PIR operating mode needs to be adjusted lower to reduce the number of false triggering and reduce the power consumption of the PIR sensor.
Further, the initial sensitivity of the digital type PIR operation mode is set in advance according to the detection space range and/or the density of the stream of people.
According to the embodiment of the invention, when the sensitivity of the PIR sensor is set to be higher, the longer range of the detection distance is larger, and the problem of false triggering is easily caused; and when the sensitivity of the PIR sensor is set to be low, the closer range of the detection distance is smaller, so that the detection requirement cannot be met. Therefore, the initial sensitivity of the digital type PIR operation mode should be set in advance according to the detection space range and/or the density of the stream of people, for example, when the PIR sensor is used in an urban area, the initial sensitivity may be set to be low when the vehicles, people, pets, etc. are dense, and when the PIR sensor is used in a rural or suburban area, the range may be open, and the initial sensitivity may be set to be high.
According to the PIR sensor detection method provided by the invention, the PIR sensor is switched between the digital type PIR working mode and the analog type PIR working mode, so that the power consumption of the PIR sensor is reduced while the detection effect is ensured, and the performance of the PIR sensor is improved.
Example two
The present invention also provides a PIR sensor detection apparatus 200, as shown in fig. 2, including:
an information acquisition module 210, configured to acquire trigger information;
a working mode switching module 220, configured to switch from a digital PIR working mode to an analog PIR working mode based on the trigger information;
and an object detection module 230, configured to perform object detection based on the trigger information.
The PIR sensor detection device provided by the embodiment of the invention can be deployed in smart home products, for example, in the security application field, monitoring cameras, doorbells and the like, and in the Internet of things application field, express cabinets and the like.
As shown in fig. 2, the PIR sensor detection apparatus 200 includes an information acquisition module 210 for acquiring trigger information.
Illustratively, the trigger information includes infrared rays, and further, the trigger information includes infrared rays having a specific wavelength.
Illustratively, the information collection module 210 includes a PIR sensor.
Further, the PIR sensor supports a digital type PIR operating mode and an analog type PIR operating mode.
According to an embodiment of the invention, the PIR sensor comprises a sensor having a digital type PIR operating mode and an analog type PIR operating mode.
Illustratively, the trigger information is obtained in a font PIR operating mode.
According to the embodiment of the invention, when the digital PIR working mode is adopted, the sensor has limited processing capacity due to the limitation of low power consumption requirement, and only simple trigger conditions including detection sensitivity, detection pulse number and the like can be configured.
Illustratively, the initial sensitivity of the digital type PIR operating mode is set in advance according to the detection spatial range and/or the density of the stream of people.
As shown in fig. 2, the PIR sensor detection apparatus 200 comprises an operation mode switching module 220 for switching the digital type PIR operation mode to the analog type PIR operation mode based on the trigger information.
Illustratively, when the sensor in the digital type PIR operating mode detects the trigger information, the micro control unit adjusts the operating mode of the PIR sensor, switches the sensor from the digital type PIR operating mode to the analog type PIR operating mode, or turns off the sensor in the digital type PIR operating mode and turns on the sensor in the analog type PIR operating mode.
Illustratively, the power consumption of the digital type PIR operating mode is lower than the power consumption of the analog type PIR operating mode.
According to the embodiment of the invention, when the PIR sensor enters a digital PIR working mode, the MCU enters a low-power consumption standby mode; when the PIR sensor enters an analog PIR working mode, the MCU is set to be in a high-power working mode.
As shown in fig. 2, the PIR sensor detection apparatus 200 includes a target detection module 230 for performing target detection based on the trigger information. The target detection module 230 includes a data acquisition module for acquiring raw data based on the trigger information.
Illustratively, raw data is obtained based on the trigger information in an analog PIR operating mode.
According to the embodiment of the invention, when the PIR sensor is switched from the digital type PIR working mode to the analog type PIR working mode, the analog type PIR working mode acquires original data based on the trigger information acquired in the digital type PIR working mode, further acquires information acquisition data after the trigger information, and discards the information acquired before the trigger information without adopting the information.
Illustratively, the raw data includes raw ADC data.
According to an embodiment of the present invention, an Analog to Digital Converter (ADC) generally refers to an electronic component that converts an Analog signal into a Digital signal. A typical analog-to-digital converter converts a continuous-time and continuous-amplitude analog quantity into a discrete-time and discrete-amplitude digital signal.
The target detection module 230 further includes a data analysis module for performing query processing and/or intelligent analysis on the raw data to detect a target.
According to an embodiment of the invention, the object detection comprises human body detection, i.e. the detected object is a human body. And inquiring and/or intelligently analyzing the original ADC data to judge whether the original ADC data contains human body information, if so, determining that the result of target detection is 'yes', namely the target is detected, and a human body enters a detection area, and if not, determining that the result of target detection is 'no', namely the target is not detected, and no human body enters the detection area.
Illustratively, the PIR sensor comprises a smart sensor, which is subjected to a query processing and/or a smart analysis by the micro-control unit.
Illustratively, the PIR sensor detection apparatus 200 includes an alarm module for alarming when an object is detected.
Illustratively, the operating mode switching module 220 is configured to switch the analog type PIR operating mode to the digital type PIR operating mode when the target is not detected.
According to an embodiment of the invention, the alarm comprises a specific form of sound signal or light signal. For example, when the doorbell detects that a human body enters the detection area, sound can be played to remind the user; when the express cabinet detects that a human body enters the detection area, the screen can be lightened so that a user can operate to take the express.
According to the embodiment of the invention, when the target is not detected, the PIR sensor is switched from the analog type PIR working mode to the digital type PIR working mode, or the sensor of the analog type PIR working mode is closed and the sensor of the digital type PIR working mode is opened, or the sensor of the analog type PIR working mode enters the standby mode and the sensor of the digital type PIR working mode is opened, and meanwhile, the MCU is restored to the low power consumption standby mode again to reduce the power consumption of the PIR sensor.
Illustratively, the PIR sensor detection apparatus 200 further comprises a threshold determination module.
Illustratively, when the target is not detected, the information collecting module 210 may further be configured to obtain current data, and the threshold determining module is configured to compare the current data with a threshold.
According to the embodiment of the invention, when the original data acquired based on the trigger information is detected and the target is not detected, the PIR sensor acquires the current data after acquiring the trigger information and compares the current data with the preset threshold value to judge the threshold value.
Illustratively, it is determined whether to switch the analog type PIR operating mode to the digital type PIR operating mode based on the result of the threshold determination.
According to the embodiment of the invention, when the current data is lower than the threshold value, the analog type PIR working mode is switched to the digital type PIR working mode, or when the current data is lower than the threshold value, the analog type PIR standby mode is entered, the current data is continuously compared with the threshold value, and if the current data is continuously lower than the threshold value in a preset time, the digital type PIR working mode is switched to.
Illustratively, the PIR sensor detection apparatus 200 further comprises a counter module for counting results of the target detection.
According to an embodiment of the present invention, when no target is detected, the counter is incremented by one; when the target is detected, the counter is reset to zero; when the target has not been detected yet, the calculator accumulates. By this counting manner, the number of times that the result of target detection continues to be "no" can be obtained.
Illustratively, the PIR sensor detection apparatus 200 further comprises a comparison module and a sensitivity adjustment module.
According to the embodiment of the present invention, the counting result is compared with the preset value, for example, the preset value is 3, when the counting result is equal to 3, it indicates that the analog type PIR operation mode has not detected the target for 3 consecutive times, therefore, the sensitivity of the digital type PIR sensor is higher, and the sensitivity of the digital type PIR sensor needs to be adjusted lower to reduce the number of false triggering and reduce the power consumption of the PIR sensor.
The present invention also provides a PIR sensor detection apparatus 300, as shown in fig. 3, including:
a digital type PIR sensor 310 for acquiring trigger information;
an analog PIR sensor 320 for performing target detection based on the trigger information;
a processor module 330 for controlling switching from the digital type PIR sensor 310 to the analog type PIR sensor 320.
Illustratively, the digital type PIR sensor 310 acquires the trigger information.
Further, the initial sensitivity of the digital type PIR sensor 310 is set in advance according to the detection space range and/or the density of the stream of people.
According to the embodiment of the invention, when the sensitivity of the digital PIR sensor 310 is set to be higher, the detection distance is longer, and the problem of false triggering is easily caused; when the sensitivity of the digital PIR sensor 310 is set to be low, the closer range of the detection distance is smaller, which results in the problem that the detection requirement cannot be met. Therefore, the initial sensitivity of the digital PIR sensor 310 should be set in advance according to the detection space range and/or the traffic density, for example, when the digital PIR sensor 310 is used in an downtown area, the initial sensitivity may be set to be low when the vehicle, person, pet, etc. are dense, and when the digital PIR sensor 310 is used in a rural or suburban area, the initial sensitivity may be set to be high when the range is open.
Illustratively, the analog-type PIR sensor 320 acquires raw data based on the trigger information.
According to an embodiment of the present invention, when switching from the digital type PIR sensor 310 to the analog type PIR sensor 320, the digital type PIR sensor 310 transmits the trigger information to the analog type PIR sensor 320 as raw data, and further, the digital type PIR sensor 310 also transmits information acquired after the trigger information to the analog type PIR sensor 320 as raw data, while discarding data before the trigger information. Alternatively, the digital PIR sensor 310 may interrupt all operations after transmitting the trigger information to the analog PIR sensor 320, and the analog PIR sensor 320 may continue to acquire data.
Illustratively, a processor module 330 is used to control switching from the digital type PIR sensor 310 to the analog type PIR sensor 320.
Illustratively, the processor module 330 turns off the digital type PIR sensor 310 and turns on the analog type PIR sensor 320 after the trigger information is detected by the digital type PIR sensor 310.
Illustratively, the power consumption of the digital type PIR sensor 310 is lower than the power consumption of the analog type PIR sensor 320.
According to the PIR sensor detection device provided by the invention, the PIR sensor is switched between the digital type PIR working mode and the analog type PIR working mode, so that the power consumption of the PIR sensor is reduced while the detection effect is ensured, and the performance of the PIR sensor is improved.
EXAMPLE III
The invention provides a PIR sensor detection system, which comprises a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor realizes the corresponding steps of the PIR sensor detection method according to the embodiment of the invention when executing the computer program.
The processor may include a Central Processing Unit (CPU) or other form of Processing Unit having data Processing capabilities and/or Instruction execution capabilities, such as a Field Programmable Gate Array (FPGA) or Advanced Reduced Instruction Set Machine (Reduced Instruction Set Computer) Machine (ARM), etc., and may control other components in the device to perform desired functions. For example, the processor may include the aforementioned single-chip microcomputer.
Illustratively, the computer program code when executed by the processor performs the steps of: acquiring trigger information; switching the digital PIR working mode to the analog PIR working mode based on the trigger information; performing target detection based on the trigger information; and executing preset processing according to the target detection result.
Example four
An embodiment of the present invention further provides a computer storage medium on which a computer program is stored. The computer program, when executed by a processor, may implement the respective steps of a PIR sensor detection method according to embodiments of the present invention. For example, the computer storage medium is a computer-readable storage medium.
The computer storage medium may include, for example, a memory card of a smart phone, a storage component of a tablet computer, a hard disk of a personal computer, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, a memory internal to a Micro Control Unit (MCU), or any combination of the above storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
The present invention has been illustrated by the above embodiments, but it should be understood that the above embodiments are for illustrative and descriptive purposes only and are not intended to limit the invention to the scope of the described embodiments. Furthermore, it will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that many variations and modifications may be made in accordance with the teachings of the present invention, which variations and modifications are within the scope of the present invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. A PIR sensor detection method is characterized by comprising the following steps:
acquiring trigger information;
switching the digital PIR working mode to the analog PIR working mode based on the trigger information;
and carrying out target detection in the analog PIR working mode based on the trigger information.
2. A PIR sensor detection method according to claim 1, further comprising:
when the target is detected, alarming is carried out;
and when the target is not detected, switching the analog type PIR working mode to the digital type PIR working mode.
3. A PIR sensor detection method according to claim 2, further comprising:
when the target is not detected, acquiring current data;
comparing the current data to a threshold;
and when the current data is lower than the threshold value, switching the analog type PIR working mode to the digital type PIR working mode.
4. A PIR sensor detection method according to claim 3, further comprising:
and when the current data is lower than the threshold, entering an analog PIR standby mode, continuously comparing the current data with the threshold, and if the current data is continuously lower than the threshold in a preset time, switching to a digital PIR working mode.
5. A PIR sensor detection method according to claim 1, further comprising:
counting results of the target detection;
and adjusting the sensitivity of the digital PIR working mode according to the counting result.
6. A PIR sensor detection method according to claim 1 wherein the initial sensitivity of the digital type PIR operating mode is set in advance according to the detection space range and/or the traffic density.
7. A PIR sensor detection apparatus, comprising:
the information acquisition module is used for acquiring trigger information;
the working mode switching module is used for switching from a digital PIR working mode to an analog PIR working mode based on the trigger information;
and the target detection module is used for carrying out target detection based on the trigger information.
8. A PIR sensor detection apparatus, comprising:
the digital PIR sensor is used for acquiring trigger information;
the analog PIR sensor is used for carrying out target detection based on the trigger information;
a processor module for controlling switching from the digital type PIR sensor to the analog type PIR sensor.
9. A PIR sensor detection system comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a computer, implements the steps of the method of any of claims 1 to 6.
CN202010745100.2A 2020-07-29 2020-07-29 PIR sensor detection method, device and system and computer storage medium Active CN112067146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010745100.2A CN112067146B (en) 2020-07-29 2020-07-29 PIR sensor detection method, device and system and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010745100.2A CN112067146B (en) 2020-07-29 2020-07-29 PIR sensor detection method, device and system and computer storage medium

Publications (2)

Publication Number Publication Date
CN112067146A true CN112067146A (en) 2020-12-11
CN112067146B CN112067146B (en) 2022-03-22

Family

ID=73656245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010745100.2A Active CN112067146B (en) 2020-07-29 2020-07-29 PIR sensor detection method, device and system and computer storage medium

Country Status (1)

Country Link
CN (1) CN112067146B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749206A (en) * 2020-12-29 2021-05-04 深圳海翼智新科技有限公司 Processing method and device for detector triggering and electronic equipment
CN116668667A (en) * 2023-04-11 2023-08-29 深圳市龙之源科技股份有限公司 PIR recovery time testing device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201828341U (en) * 2010-08-13 2011-05-11 深圳市豪恩安全科技有限公司 Infrared test platform
CN102507017A (en) * 2011-10-17 2012-06-20 李云飞 Digital type human body infrared receiver
CN104010354A (en) * 2013-09-05 2014-08-27 上海赛赫信息科技有限公司 Sensor, remote measuring device, wireless sensor system and using method thereof
CN105100730A (en) * 2015-08-21 2015-11-25 联想(北京)有限公司 Monitoring method and camera device
CN108109306A (en) * 2017-12-27 2018-06-01 中国电子科技集团公司第五十四研究所 A kind of low-power-consumption infrared and image composite sensing detection device
CN210835282U (en) * 2019-09-03 2020-06-23 胡威 Infrared induction processing system for continuously detecting human body movement data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201828341U (en) * 2010-08-13 2011-05-11 深圳市豪恩安全科技有限公司 Infrared test platform
CN102507017A (en) * 2011-10-17 2012-06-20 李云飞 Digital type human body infrared receiver
CN104010354A (en) * 2013-09-05 2014-08-27 上海赛赫信息科技有限公司 Sensor, remote measuring device, wireless sensor system and using method thereof
CN105100730A (en) * 2015-08-21 2015-11-25 联想(北京)有限公司 Monitoring method and camera device
CN108109306A (en) * 2017-12-27 2018-06-01 中国电子科技集团公司第五十四研究所 A kind of low-power-consumption infrared and image composite sensing detection device
CN210835282U (en) * 2019-09-03 2020-06-23 胡威 Infrared induction processing system for continuously detecting human body movement data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112749206A (en) * 2020-12-29 2021-05-04 深圳海翼智新科技有限公司 Processing method and device for detector triggering and electronic equipment
CN116668667A (en) * 2023-04-11 2023-08-29 深圳市龙之源科技股份有限公司 PIR recovery time testing device

Also Published As

Publication number Publication date
CN112067146B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN112067146B (en) PIR sensor detection method, device and system and computer storage medium
KR20180048445A (en) Fingerprint collecting device and method, terminal device, and screen on-off control method
US9237635B2 (en) Intelligent lighting control apparatus and method
US10089860B2 (en) Remote control having a biometric sensor
CN104167034A (en) Human body counting device based on pyroelectric technology
CN104408802A (en) Intelligent entrance guard system based on human face identification
Fourniol et al. Low-power wake-up system based on frequency analysis for environmental internet of things
JP2020051756A (en) Person detection system and program
Fourniol et al. Analog ultra Low-Power acoustic Wake-Up system based on frequency detection
CN101148956A (en) Intelligent door lock with human face identification function
CN109917133B (en) Low-power-consumption glucometer controlled by magnetic control switch and control method thereof
CN105890770B (en) The body state detection method of body state detection device based on pyroelectricity technology
JP5663781B2 (en) Infrared receiver
CN201616858U (en) Video camera with functions of temperature recognizing, automatic photographing and video recording
CN109068176A (en) TV suspend mode control system
CN204813041U (en) Intelligence mirror device
CN113487768A (en) Intelligent door lock touch key detection device and method
CN106326813B (en) Intelligent variable-frequency 3D fingerprint sensor
WO2013067661A1 (en) Double-finger, single-finger and rolling fingerprints acquisition, registration and identification device
CN209841200U (en) Human body infrared movement detection device
CN108831084B (en) Control method, device and system based on passive infrared human body sensor
US20070232929A1 (en) Skin detection sensor
CN103442476A (en) LED illuminating system infrared identification controller
CN210983055U (en) Circuit control device of wisdom police service car mobile unit
CN206039765U (en) Warehouse safety theftproof intelligent monitoring system

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