CN112612028B - Infrared proximity sensing method and device, air conditioner and storage medium - Google Patents

Infrared proximity sensing method and device, air conditioner and storage medium Download PDF

Info

Publication number
CN112612028B
CN112612028B CN202011587873.9A CN202011587873A CN112612028B CN 112612028 B CN112612028 B CN 112612028B CN 202011587873 A CN202011587873 A CN 202011587873A CN 112612028 B CN112612028 B CN 112612028B
Authority
CN
China
Prior art keywords
proximity sensing
value
infrared sensor
infrared
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011587873.9A
Other languages
Chinese (zh)
Other versions
CN112612028A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011587873.9A priority Critical patent/CN112612028B/en
Publication of CN112612028A publication Critical patent/CN112612028A/en
Application granted granted Critical
Publication of CN112612028B publication Critical patent/CN112612028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/02Systems using the reflection of electromagnetic waves other than radio waves
    • G01S17/04Systems determining the presence of a target
    • 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
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The invention provides an infrared proximity sensing method and device, an air conditioner and a storage medium, wherein the method comprises the following steps: acquiring environmental parameters of the infrared sensor; adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter; and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold value. The technical problem of inaccurate induction under the condition of environmental change caused by the adoption of the fixed trigger threshold is solved, and the technical effect of improving the induction accuracy is achieved.

Description

Infrared proximity sensing method and device, air conditioner and storage medium
Technical Field
The invention relates to the technical field of equipment control, in particular to an infrared proximity sensing method and device, an air conditioner and a storage medium.
Background
With the development of household appliances in the intelligent and diversified directions, infrared proximity sensing and other technologies are increasingly applied. The infrared proximity sensing technology generally uses an infrared proximity sensor capable of realizing active infrared emission and receiving functions, when infrared rays emitted by the sensor meet shielding of objects, the infrared rays are reflected, and when the reflected infrared rays received by a receiving end of the sensor reach a sensing triggering threshold, the infrared rays are considered to be close to the objects.
In general, the sensing trigger threshold is generally preset or fixed, and if dust accumulation, water mist and large structural difference exist on the surface of the sensor product, the effect of proximity sensing is poor, and the user experience is affected.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an infrared proximity sensing method and device, an air conditioner and a storage medium, so as to improve the accuracy and sensitivity of infrared proximity sensing.
In one aspect, an infrared proximity sensing method is provided, including:
acquiring environmental parameters of the infrared sensor;
adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter;
and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold value.
In one embodiment, adjusting the proximity sensing trigger threshold of the infrared sensor according to the environmental parameter includes:
according to the environmental parameters, the proximity sensing reference value of the infrared sensor is adjusted;
acquiring a sensitivity value corresponding to the currently set induction sensitivity;
and taking the sum of the adjusted proximity sensing reference value and the sensitivity value as an adjusted proximity sensing trigger threshold.
In one embodiment, the method further comprises:
detecting whether the infrared sensor is powered on;
after the infrared sensor is electrified and operated, an ADC value acquired by the infrared sensor for the first time is acquired;
and taking the ADC value acquired for the first time as an initial proximity sensing reference value.
In one embodiment, adjusting the proximity sensing trigger threshold of the infrared sensor according to the environmental parameter includes:
determining whether the ADC value acquired by the infrared sensor exceeds the proximity sensing trigger threshold for a first continuous time period:
under the condition that ADC values acquired by continuous first-time long infrared sensors exceed a proximity sensing trigger threshold, determining whether real-time environment parameters exceed preset values;
and under the condition that the environment parameter exceeds a preset value in the determining process, adjusting the proximity sensing triggering threshold of the infrared sensor.
In one embodiment, the environmental parameter includes at least one of: the humidity of the environment and the dust concentration of the environment.
In one embodiment, the method further comprises:
determining whether the infrared sensor senses no person in the target area for a second continuous time period;
under the condition that the infrared sensor senses no person in the target area in the continuous second time period, determining whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range;
if the measured ADC value exceeds the preset fluctuation range, storing the ADC value obtained by the infrared sensor in an array;
determining whether the numerical value stored in the array reaches a preset value;
and when the preset quantity is reached, adjusting the proximity sensing reference value according to a plurality of values stored in the array.
In one embodiment, the method further comprises:
determining whether a key-free triggering operation is performed for a second continuous duration;
under the condition that no key triggering operation is carried out in the continuous second time period, determining whether the ADC value acquired by the infrared sensor exceeds a preset fluctuation range;
if the measured ADC value exceeds the preset fluctuation range, storing the ADC value obtained by the infrared sensor in an array;
determining whether the numerical value stored in the array reaches a preset value;
and when the preset quantity is reached, adjusting the proximity sensing reference value according to a plurality of values stored in the array.
In one embodiment, adjusting the proximity sensing reference value based on a plurality of values stored in an array includes:
removing a maximum value and a minimum value from the plurality of values stored in the array;
solving variance of a plurality of values after removing a maximum value and a minimum value;
under the condition that the variance is smaller than a preset variance threshold, carrying out averaging operation on a plurality of values with one maximum value and one minimum value removed;
and taking the result of the averaging operation as the adjusted proximity sensing reference value.
In another aspect, an infrared proximity sensing apparatus is provided, comprising:
the acquisition module is used for acquiring the environmental parameters of the infrared sensor;
the first adjusting module is used for adjusting the proximity sensing triggering threshold value of the infrared sensor according to the environmental parameter;
and the monitoring module is used for carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold value.
In one embodiment, the first adjustment module includes:
the adjusting unit is used for adjusting the proximity sensing reference value of the infrared sensor according to the environmental parameter;
the acquisition unit is used for acquiring a sensitivity value corresponding to the currently set induction sensitivity;
and the generating unit is used for taking the sum of the adjusted proximity sensing reference value and the sensitivity value as the adjusted proximity sensing trigger threshold value.
In one embodiment, the apparatus further comprises:
the first determining module is used for determining whether the key-free triggering operation is continuous for a second duration;
the second determining module is used for determining whether the ADC value acquired by the infrared sensor exceeds a preset fluctuation range under the condition that no key trigger operation is determined in the continuous second time period;
the storage module is used for storing the ADC value obtained by the infrared sensor measured at the time into an array under the condition that the fluctuation range exceeds the preset fluctuation range;
a third determining module, configured to determine whether the numerical value stored in the array reaches a preset value;
and the second adjusting module is used for adjusting the proximity sensing reference value according to a plurality of values stored in the array under the condition that the preset quantity is reached.
In still another aspect, there is provided an air conditioner including: the infrared proximity sensing device.
In yet another aspect, a network device is provided, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which processor implements the steps of the above method when executing the computer program.
In yet another aspect, a non-transitory computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the above method.
In the above embodiment, an infrared proximity sensing method and apparatus are provided, where the proximity sensing trigger threshold of the infrared sensor is adjusted by acquiring the environmental parameter of the infrared sensor, and infrared sensing monitoring is performed based on the adjusted proximity sensing trigger threshold. Namely, the triggering threshold value of infrared induction is dynamically adjusted through the environment parameters, so that the technical problem of inaccurate induction under the condition of environmental change caused by the existing adoption of the fixed triggering threshold value can be solved, and the technical effect of improving the induction accuracy is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding 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 invention. In the drawings:
FIG. 1 is a method flow diagram of an infrared proximity sensing method in accordance with an embodiment of the present invention;
FIG. 2 is a schematic diagram of a composition structure of a drive-by-wire device according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for automatically calibrating a proximity sensing reference value for a drive-by-wire device in accordance with an embodiment of the present invention;
FIG. 4 is a flow chart of a proximity sensing trigger implementation of a drive-by-wire in accordance with an embodiment of the present invention;
fig. 5 is a block diagram of an infrared proximity sensing apparatus in accordance with an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following embodiments and the accompanying drawings, in order to make the objects, technical solutions and advantages of the present invention more apparent. The exemplary embodiments of the present invention and the descriptions thereof are used herein to explain the present invention, but are not intended to limit the invention.
Aiming at the problem that the sensitivity of the infrared sensor is greatly influenced by the environment in the prior art by adopting a fixed sensing trigger threshold, in the embodiment, an infrared sensing method is provided, as shown in fig. 1, and the method can comprise the following steps:
step 101: acquiring environmental parameters of the infrared sensor;
step 102: adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter;
step 103: and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold value.
In the above example, the proximity sensing trigger threshold of the infrared sensor is adjusted by acquiring the environmental parameter of the infrared sensor, and the infrared sensing is monitored based on the adjusted proximity sensing trigger threshold. Namely, the triggering threshold value of infrared induction is dynamically adjusted through the environment parameters, so that the technical problem of inaccurate induction under the condition of environmental change caused by the existing adoption of the fixed triggering threshold value can be solved, and the technical effect of improving the induction accuracy is achieved.
The proximity sensing trigger threshold may be generated according to the proximity sensing reference value and the sensitivity preset value when the proximity sensing trigger threshold is implemented, so that the proximity sensing reference value may be adjusted when the proximity sensing reference value is adjusted, and the proximity sensing trigger threshold may be correspondingly adjusted after the proximity sensing reference value is adjusted. Based on this, adjusting the proximity sensing trigger threshold of the infrared sensor according to the environmental parameter may include: according to the environmental parameters, the proximity sensing reference value of the infrared sensor is adjusted; acquiring a sensitivity value corresponding to the currently set induction sensitivity; and taking the sum of the adjusted proximity sensing reference value and the sensitivity value as an adjusted proximity sensing trigger threshold.
For the proximity sensing reference value, the initial proximity sensing reference value may be determined according to the first return value after the infrared sensor is powered up, and since the value measured by the power-up operation of the infrared sensor is used as the proximity sensing reference value, the influence of the structure on the trigger threshold value may be reduced. Specifically, whether the infrared sensor is powered on or not can be detected; after the infrared sensor is powered on, acquiring an ADC (Analog-to-Digital Converter, analog-to-digital converter or Analog-to-digital converter) value acquired by the infrared sensor for the first time; and taking the ADC value acquired for the first time as an initial proximity sensing reference value.
In an actual application scenario, if the dust concentration in the environment is too high, or the mist is too high, the ADC value always exceeds the proximity sensing trigger threshold, i.e. is always in a sensing triggered state, and for this state, the environment parameters can be adjusted. Specifically, adjusting the proximity sensing trigger threshold of the infrared sensor according to the environmental parameter may include: determining whether the ADC value acquired by the infrared sensor exceeds the proximity sensing trigger threshold for a first continuous time period: under the condition that ADC values acquired by continuous first-time long infrared sensors exceed a proximity sensing trigger threshold, determining whether real-time environment parameters exceed preset values; and under the condition that the environment parameter exceeds a preset value in the determining process, adjusting the proximity sensing triggering threshold of the infrared sensor.
Wherein the environmental parameters may include, but are not limited to, at least one of: the humidity of the environment and the dust concentration of the environment.
Further, if no person triggers infrared sensing for a long time, but the ADC value continuously exceeds a preset fluctuation range, then adjustment of the proximity sensing reference value may be triggered, specifically, whether a second duration no-key triggering operation is continuous may be determined; under the condition that no key triggering operation is carried out in the continuous second time period, determining whether the ADC value acquired by the infrared sensor exceeds a preset fluctuation range; if the measured ADC value exceeds the preset fluctuation range, storing the ADC value obtained by the infrared sensor in an array; determining whether the numerical value stored in the array reaches a preset value; and when the preset quantity is reached, adjusting the proximity sensing reference value according to a plurality of values stored in the array.
When implemented, the proximity sensing reference value may be adjusted according to a plurality of values stored in an array as follows: removing a maximum value and a minimum value from the plurality of values stored in the array; solving variance of a plurality of values after removing a maximum value and a minimum value; under the condition that the variance is smaller than a preset variance threshold, carrying out averaging operation on a plurality of values with one maximum value and one minimum value removed; and taking the result of the averaging operation as the adjusted proximity sensing reference value.
The above method is described below in connection with a specific embodiment, however, it should be noted that this specific embodiment is only for better illustrating the present application, and the procedure is not meant to be unduly limiting.
Aiming at the problems that when dust accumulation exists on the surface of a sensor, water mist exists on the surface of the sensor, the structure difference is large, the effect of proximity induction is poor, even the phenomenon that the proximity induction function is triggered by mistake and cannot be triggered is caused, and the user experience is influenced, the method for automatically calibrating the infrared proximity induction and the wire controller are provided in the embodiment, so that the user experience is improved.
Specifically, the wire controller has a function of setting a proximity sensing trigger sensitivity, and can set a default sensitivity k, a high sensitivity k (1-n%), and a low sensitivity k (1+n%). Setting a switch of the proximity sensing automatic calibration function for the wire controller, wherein when the proximity sensing automatic calibration function is closed, the wire controller can automatically calibrate a reference value of the proximity sensing function according to relative humidity, PM2.5 concentration, human body sensing, key operation, change of a proximity sensing detection value and the like; when the proximity sensing automatic calibration function is turned on, the line controller can automatically calibrate the reference value of the proximity sensing function according to human body sensing, whether key operation exists, change of a proximity sensing detection value and the like.
When the currently acquired infrared ADC value is greater than the trigger threshold, a person is considered to be approaching the line controller, wherein the trigger threshold=reference value+sensitivity value, and when the acquired infrared ADC value is less than the trigger threshold×m%, the person is considered to be leaving the line controller.
The above-mentioned line controller may, as shown in fig. 2, include: the device comprises a main control module, a human body sensing module, a key module, a temperature and humidity detection module, an air sensor detection module such as PM2.5, an infrared sensing detection module, a display module, a communication module and the like, wherein: the human body induction module can detect human body activities and send the results to the main control module for processing; the key module can detect key operation and send the detected key value to the main control module; the temperature and humidity detection module can detect the temperature and humidity of the surrounding environment and send the detection value to the main control module for processing; the PM2.5 air sensor detection module is used for detecting air conditions such as dust concentration and the like of the surrounding environment and sending detection data to the main control module; the infrared proximity sensing detection module is used for detecting whether a person approaches in a close range; the display module is used for displaying various detected parameters and various interaction interfaces; the communication module is used for communicating with an indoor unit or a mobile phone App.
In this example, the wire controller has the functions of setting the switch of the proximity sensing automatic calibration function and setting the proximity sensing triggering sensitivity, the user can set the proximity sensing sensitivity to be the default sensitivity k, the high sensitivity k (1-n), the low sensitivity k (1+n) according to own preference, the wire controller can wake up the functions of the screen display, the key operation and the like of the wire controller at a longer distance when the sensitivity is set to be high, and the functions of the wire controller and the key and the like can only be wake up at a shorter distance when the sensitivity is low, but the user can prevent the pedestrian from waking up the wire controller by mistake due to the behaviors of passing or unintentionally approaching the wire controller and the like when the sensitivity is low, and the user can also set the proximity sensing automatic calibration function to be started or closed according to own preference.
As shown in fig. 3, the steps may be included as follows:
s1: after the wire controller is electrified, each module detects the surrounding environment in real time, and an infrared ADC value Y acquired for the first time when the infrared proximity sensor is electrified is used as an initial reference value of the proximity sensing function. The ADC value obtained by power-on is used as an initial reference value, and a relatively accurate reference value can be obtained according to the self structural error or assembly error of each wire controller, so that the problem of poor proximity sensing function effect caused by the self structural error or assembly error of each wire controller can be prevented.
S2: determining whether the proximity sensing automatic calibration function is started, if so, executing step S3, otherwise, executing step S13;
when a user operates the wire controller, the hand can approach the wire controller, if the calibration reference value is in the situation, the error calibration can occur, namely, the ADC value when someone approaches is used as the reference value, so that the approach sensing triggering threshold value is larger, the approach sensing function cannot be triggered, and the judgment needs to be carried out by combining human body sensing or key detection.
S3: when key operation is detected or indoor people are detected, the proximity sensing reference value is not calibrated, specifically, whether the continuous h-second human body sensor detects indoor no people or not or whether the continuous h-second line controller detects no key operation or not can be determined, if yes, S5 is executed, and otherwise S4 is executed;
s4: the proximity sensing reference value is not calibrated.
S5: determining whether the infrared ADC value currently acquired by the wire controller is greater than or equal to (reference value+a) or less than or equal to (reference value-a) (wherein a is a maximum fluctuation range value allowed under the condition of near sensing), if so, executing S6, otherwise, executing S7;
s6: determining whether the number i of ADC values stored in the Array [ b ] is smaller than the Array length b, wherein b is greater than or equal to 10, if so, executing S8, otherwise, executing S9;
s7: and clearing the number of the ADC values stored in the array.
S8: the ADC values are stored in an Array.
S9: and clearing the number i of the ADC values stored in the array. If the number i of the AD values stored in the Array is not smaller than the length b of the Array, sequencing the b ADC values from small to large, then respectively removing d maximum values and d minimum values, then solving the average value and the variance of the residual values, and resetting the i;
s10: determining whether the variance is less than or equal to e2, if yes, executing S11, otherwise executing S12;
s11: updating the obtained average value to a new proximity sensing reference value;
s12: the approach sensing reference value acquired this time is not updated.
When the obtained variance is large, it means that the detected ADC value fluctuates greatly, and it is likely to be only a momentary environmental fluctuation, and if the reference value is calibrated in this environment, the effect of the proximity sensing function will be deteriorated instead, and therefore the reference value will be recalibrated after waiting until the environment is stable.
S13: and determining whether ADC values acquired in w seconds are all larger than a proximity sensing trigger threshold (trigger threshold=reference value+proximity sensing sensitivity value), and executing S3 to allow the wire controller to automatically calibrate the proximity sensing reference value once if the calibration is not completed once, so as to prevent the surface of the wire controller from being stained and the proximity sensing is always in a trigger state. If not, executing S14;
s14: judging whether the indoor relative humidity is greater than f or the PM2.5 concentration is greater than g, if so, executing S15, otherwise executing S17;
s15: determining that the indoor humidity is large, the water mist on the surface of the wire controller may influence the proximity sensing effect, or the dust concentration is large, and the dust accumulation on the surface of the wire controller may influence the proximity sensing effect, so that the wire controller is allowed to automatically calibrate the proximity sensing reference value once;
s16: when the indoor relative humidity is greater than f, the line controller is allowed to automatically calibrate the approach sensing reference value once when the relative humidity is increased by x%; or when the PM2.5 concentration is greater than g, the drive-by-wire controller is allowed to automatically calibrate once to approach the sensing reference value when the PM2.5 concentration of z is increased; when the two conditions are met simultaneously, the wire controller is only allowed to automatically calibrate the proximity sensing reference value once. The situation allows the proximity sensing automatic calibration once to prevent the user from closing the automatic calibration, and the effect of the proximity sensing function is influenced due to large environmental change, so that the user experience is improved.
S17: the proximity sensing reference value is not calibrated.
For the implementation flow of the proximity sensing trigger of the line controller, as shown in fig. 4, the implementation flow may include:
s1: after the wire controller is electrified, the infrared proximity sensing module detects the surrounding environment in real time and acquires an infrared AD value;
s2: determining whether the currently acquired ADC value is larger than a proximity sensing trigger threshold, wherein the trigger threshold=reference value+proximity sensing sensitivity value, if so, executing S3, otherwise, executing S5;
s3: consider that someone is approaching the drive-by-wire;
s4: when the line controller detects that a person approaches, the line controller screen display and key operation can be awakened, the line controller screen can be used for pushing webpage information two-dimensional codes, pushing news and the like to a user, and the detection of the formaldehyde sensor, the CO2 sensor and the PM2.5 sensor can be adjusted from timing detection to real-time detection.
S5: determining whether the currently acquired ADC value is smaller than a trigger threshold value by m%, wherein m% is smaller than 1, if so, executing S6, otherwise executing S8;
s6: consider a person leaving the drive-by-wire;
s7: after a person is determined to leave for a period of time, screen display of the drive-by-wire device and key dormancy are adjusted to timing detection by sensor detection, so that electricity consumption can be saved and the service life of the sensor can be prolonged;
s8: the current proximity sensing state is not changed.
In the above example, the proximity sensing reference value can be automatically calibrated according to the relative humidity, the PM2.5 concentration, the human body sensing, the key operation, the change of the proximity sensing detection value and the like, so that the trigger threshold is adjusted, and the problems of poor proximity sensing effect, false triggering and incapability of triggering when dust accumulation, water mist and large structural difference exist on the surface of a product can be prevented.
Based on the same inventive concept, an infrared proximity sensing apparatus is also provided in the embodiments of the present invention, as described in the following embodiments. Because the principle of solving the problem of the infrared proximity sensing device is similar to that of the infrared proximity sensing method, the implementation of the infrared proximity sensing device can be referred to the implementation of the infrared proximity sensing method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated. Fig. 5 is a block diagram of an infrared proximity sensing apparatus according to an embodiment of the present invention, as shown in fig. 5, may include: the configuration of the acquisition module 501, the first adjustment module 502, and the monitoring module 503 is described below.
An acquisition module 501, configured to acquire an environmental parameter of the infrared sensor;
a first adjustment module 502, configured to adjust a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter;
and the monitoring module 503 is configured to perform infrared sensing monitoring through the adjusted proximity sensing trigger threshold.
In one embodiment, the first adjustment module 502 may include: the adjusting unit is used for adjusting the proximity sensing reference value of the infrared sensor according to the environmental parameter; the acquisition unit is used for acquiring a sensitivity value corresponding to the currently set induction sensitivity; and the generating unit is used for taking the sum of the adjusted proximity sensing reference value and the sensitivity value as the adjusted proximity sensing trigger threshold value.
In one embodiment, the infrared proximity sensing apparatus may be further configured to detect whether the infrared sensor is powered on; after the infrared sensor is electrified and operated, an ADC value acquired by the infrared sensor for the first time is acquired; and taking the ADC value acquired for the first time as an initial proximity sensing reference value.
In one embodiment, the infrared proximity sensing apparatus may further include: the first determining module is used for determining whether the key-free triggering operation is continuous for a second duration; the second determining module is used for determining whether the ADC value acquired by the infrared sensor exceeds a preset fluctuation range under the condition that no key trigger operation is determined in the continuous second time period; the storage module is used for storing the ADC value obtained by the infrared sensor measured at the time into an array under the condition that the fluctuation range exceeds the preset fluctuation range; a third determining module, configured to determine whether the numerical value stored in the array reaches a preset value; and the second adjusting module is used for adjusting the proximity sensing reference value according to a plurality of values stored in the array under the condition that the preset quantity is reached.
In one embodiment, the second adjustment module may specifically be configured to remove a maximum value and a minimum value from the values stored in the array; solving variance of a plurality of values after removing a maximum value and a minimum value; under the condition that the variance is smaller than a preset variance threshold, carrying out averaging operation on a plurality of values with one maximum value and one minimum value removed; and taking the result of the averaging operation as the adjusted proximity sensing reference value.
In one embodiment, the first adjustment module 502 may be specifically configured to determine whether the ADC value acquired by the infrared sensor exceeds the proximity sensing trigger threshold for a first duration: under the condition that ADC values acquired by continuous first-time long infrared sensors exceed a proximity sensing trigger threshold, determining whether real-time environment parameters exceed preset values; and under the condition that the environment parameter exceeds a preset value in the determining process, adjusting the proximity sensing triggering threshold of the infrared sensor.
In one embodiment, the above-described environmental parameters may include, but are not limited to, at least one of: the humidity of the environment and the dust concentration of the environment.
In another embodiment, there is also provided software for executing the technical solutions described in the foregoing embodiments and preferred embodiments.
In another embodiment, there is also provided a storage medium having the software stored therein, including but not limited to: optical discs, floppy discs, hard discs, erasable memory, etc.
From the above description, it can be seen that the following technical effects are achieved in the embodiments of the present invention: and adjusting the proximity sensing trigger threshold of the infrared sensor by acquiring the environmental parameters of the infrared sensor, and carrying out infrared sensing monitoring based on the adjusted proximity sensing trigger threshold. Namely, the triggering threshold value of infrared induction is dynamically adjusted through the environment parameters, so that the technical problem of inaccurate induction under the condition of environmental change caused by the existing adoption of the fixed triggering threshold value can be solved, and the technical effect of improving the induction accuracy is achieved.
Although various specific embodiments are described in this application, the application is not limited to the details of the industry standard or examples, which are intended to indicate that the same, equivalent or similar embodiments or variations as described in the above examples may be achieved by the use of custom or modified embodiments. Examples of ways of data acquisition, processing, output, judgment, etc. using these modifications or variations are still within the scope of alternative embodiments of the present application.
Although the present application provides method operational steps as described in the examples or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by an apparatus or client product in practice, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even in a distributed data processing environment). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element.
The apparatus or module, etc. set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when implementing the present application, the functions of each module may be implemented in the same or multiple pieces of software and/or hardware, or a module that implements the same function may be implemented by a combination of multiple sub-modules, or the like. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed.
Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller can be regarded as a hardware component, and means for implementing various functions included therein can also be regarded as a structure within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) to perform the methods described in the various embodiments or some parts of the embodiments of the present application.
Various embodiments in this specification are described in a progressive manner, and identical or similar parts are all provided for each embodiment, each embodiment focusing on differences from other embodiments. The subject application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
Although the present application has been described by way of example, one of ordinary skill in the art will recognize that there are many variations and modifications to the present application without departing from the spirit of the present application, and it is intended that the appended embodiments include such variations and modifications without departing from the application.

Claims (11)

1. An infrared proximity sensing method, comprising:
acquiring environmental parameters of the infrared sensor;
adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter;
performing infrared induction monitoring through the adjusted proximity induction triggering threshold value;
adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter, including:
determining whether the ADC value acquired by the infrared sensor exceeds the proximity sensing trigger threshold for a first continuous time period:
under the condition that ADC values acquired by continuous first-time long infrared sensors exceed a proximity sensing trigger threshold, determining whether real-time environment parameters exceed preset values;
when the environment parameter exceeds a preset value during the determination, adjusting a proximity sensing trigger threshold of the infrared sensor;
the environmental parameters include at least one of: the humidity of the environment and the dust concentration of the environment.
2. The method of claim 1, wherein adjusting the proximity sensing trigger threshold of the infrared sensor based on the environmental parameter comprises:
according to the environmental parameters, the proximity sensing reference value of the infrared sensor is adjusted;
acquiring a sensitivity value corresponding to the currently set induction sensitivity;
and taking the sum of the adjusted proximity sensing reference value and the sensitivity value as an adjusted proximity sensing trigger threshold.
3. The method as recited in claim 2, further comprising:
detecting whether the infrared sensor is powered on;
after the infrared sensor is electrified and operated, an ADC value acquired by the infrared sensor for the first time is acquired;
and taking the ADC value acquired for the first time as an initial proximity sensing reference value.
4. The method as recited in claim 1, further comprising:
determining whether the infrared sensor senses no person in the target area for a second continuous time period;
under the condition that the infrared sensor senses no person in the target area in the continuous second time period, determining whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range;
if the measured ADC value exceeds the preset fluctuation range, storing the ADC value obtained by the infrared sensor in an array;
determining whether the numerical value stored in the array reaches a preset value;
and when the preset quantity is reached, adjusting the proximity sensing reference value according to a plurality of values stored in the array.
5. The method as recited in claim 1, further comprising:
determining whether a key-free triggering operation is performed for a second continuous duration;
under the condition that no key triggering operation is carried out in the continuous second time period, determining whether the ADC value acquired by the infrared sensor exceeds a preset fluctuation range;
if the measured ADC value exceeds the preset fluctuation range, storing the ADC value obtained by the infrared sensor in an array;
determining whether the numerical value stored in the array reaches a preset value;
and when the preset quantity is reached, adjusting the proximity sensing reference value according to a plurality of values stored in the array.
6. The method of claim 4 or 5, wherein adjusting the proximity sensing reference value based on the plurality of values stored in the array comprises:
removing a maximum value and a minimum value from the plurality of values stored in the array;
solving variance of a plurality of values after removing a maximum value and a minimum value;
under the condition that the variance is smaller than a preset variance threshold, carrying out averaging operation on a plurality of values with one maximum value and one minimum value removed;
and taking the result of the averaging operation as the adjusted proximity sensing reference value.
7. An infrared proximity sensing apparatus, comprising:
the acquisition module is used for acquiring the environmental parameters of the infrared sensor;
the first adjusting module is used for adjusting the proximity sensing triggering threshold value of the infrared sensor according to the environmental parameter;
the monitoring module is used for carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold value;
the first adjusting module is used for determining whether the first duration is continuous, and the ADC value acquired by the infrared sensor exceeds the proximity sensing trigger threshold value: under the condition that ADC values acquired by continuous first-time long infrared sensors exceed a proximity sensing trigger threshold, determining whether real-time environment parameters exceed preset values; when the environment parameter exceeds a preset value during the determination, adjusting a proximity sensing trigger threshold of the infrared sensor;
the environmental parameters include at least one of: the humidity of the environment and the dust concentration of the environment.
8. The apparatus of claim 7, wherein the first adjustment module comprises:
the adjusting unit is used for adjusting the proximity sensing reference value of the infrared sensor according to the environmental parameter;
the acquisition unit is used for acquiring a sensitivity value corresponding to the currently set induction sensitivity;
and the generating unit is used for taking the sum of the adjusted proximity sensing reference value and the sensitivity value as the adjusted proximity sensing trigger threshold value.
9. An air conditioner, comprising: an infrared proximity sensing apparatus as defined in any one of claims 7 to 8.
10. A network device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
11. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
CN202011587873.9A 2020-12-28 2020-12-28 Infrared proximity sensing method and device, air conditioner and storage medium Active CN112612028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011587873.9A CN112612028B (en) 2020-12-28 2020-12-28 Infrared proximity sensing method and device, air conditioner and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011587873.9A CN112612028B (en) 2020-12-28 2020-12-28 Infrared proximity sensing method and device, air conditioner and storage medium

Publications (2)

Publication Number Publication Date
CN112612028A CN112612028A (en) 2021-04-06
CN112612028B true CN112612028B (en) 2024-01-23

Family

ID=75248694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011587873.9A Active CN112612028B (en) 2020-12-28 2020-12-28 Infrared proximity sensing method and device, air conditioner and storage medium

Country Status (1)

Country Link
CN (1) CN112612028B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0485857A2 (en) * 1990-11-15 1992-05-20 TEMIC TELEFUNKEN microelectronic GmbH Sensor system and its application
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN106210227A (en) * 2016-07-06 2016-12-07 广东欧珀移动通信有限公司 The calibration steps of a kind of infrared proximity transducer, device and mobile terminal
CN106545963A (en) * 2016-10-31 2017-03-29 广州华凌制冷设备有限公司 A kind of human body sensing detection method of air-conditioner, apparatus and system
DE102018115424A1 (en) * 2018-06-27 2020-01-02 Valeo Schalter Und Sensoren Gmbh Setting a distance sensor arranged on a motor vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0485857A2 (en) * 1990-11-15 1992-05-20 TEMIC TELEFUNKEN microelectronic GmbH Sensor system and its application
CN102265252A (en) * 2011-06-24 2011-11-30 华为终端有限公司 A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN106210227A (en) * 2016-07-06 2016-12-07 广东欧珀移动通信有限公司 The calibration steps of a kind of infrared proximity transducer, device and mobile terminal
CN106545963A (en) * 2016-10-31 2017-03-29 广州华凌制冷设备有限公司 A kind of human body sensing detection method of air-conditioner, apparatus and system
DE102018115424A1 (en) * 2018-06-27 2020-01-02 Valeo Schalter Und Sensoren Gmbh Setting a distance sensor arranged on a motor vehicle

Also Published As

Publication number Publication date
CN112612028A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
US9739762B2 (en) Portable sensor device with a gas sensor and low-power mode
US20130234987A1 (en) Method and system for updating reference data of capacitive multi-touch screen
CN104182145A (en) Method and device for preventing faulty operation of touch screen and mobile equipment
US20110216016A1 (en) Touch Sensor With Active Baseline Tracking
JP2015130200A (en) Method and system for waking up device due to motion
CN106933109B (en) Intelligent control method for kitchen household appliances
CN108896613B (en) Water immersion detection device and method
CN103294583A (en) Terminal screen control method and mobile terminal
CN105939427A (en) Control method of infrared proximity sensor, device and mobile terminal
CN106131334B (en) Method and device for controlling screen state of mobile terminal
CN106913313B (en) Sleep monitoring method and system
CN106662970A (en) Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
US20230023062A1 (en) Control method of an apparatus for activating one or more functionalities of the same
CN110989031B (en) Human body detection method, device, system, electronic equipment and storage medium
CN112612028B (en) Infrared proximity sensing method and device, air conditioner and storage medium
US20180308329A1 (en) System for setting non-warning area of people detector and method thereof
CN109062024B (en) Switching method, device and equipment of reminding mode of smart watch and storage medium
CN110989430A (en) Smart home linkage method and system and readable storage medium
CN113721769A (en) Projection interference detection method, device, equipment and storage medium
CN104867292A (en) Intelligent alarm method and device
CN109996203B (en) Method and device for configuring sensor, electronic equipment and computer readable storage medium
JP2020502729A (en) Energy measurement for lighting systems
CN104123136A (en) Information processing method, device and terminal
CN108387201B (en) Opening and closing distance detection method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant