CN112612028A - 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
CN112612028A
CN112612028A CN202011587873.9A CN202011587873A CN112612028A CN 112612028 A CN112612028 A CN 112612028A CN 202011587873 A CN202011587873 A CN 202011587873A CN 112612028 A CN112612028 A CN 112612028A
Authority
CN
China
Prior art keywords
value
infrared sensor
proximity sensing
induction
infrared
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
CN202011587873.9A
Other languages
Chinese (zh)
Other versions
CN112612028B (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

Images

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 an infrared sensor; adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameters; and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold. Through the technical scheme, the technical problem that the induction is inaccurate when the environment changes due to 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 direction of intellectualization and diversification, technologies such as infrared proximity sensing and the like are applied more and more. The infrared proximity sensing technology generally uses an infrared proximity sensor capable of realizing active infrared emission and receiving functions, infrared rays emitted by the sensor can be reflected when encountering shielding of an object, and when a sensor receiving end receives the infrared rays reflected back and reaches a sensing trigger threshold value, the object is considered to be close.
Generally, the sensing trigger threshold is preset or fixed, and if the product surface of the sensor has dust, water mist and large structural difference, the effect of proximity sensing is deteriorated, which affects user experience.
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 an infrared sensor;
adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameters;
and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold.
In one embodiment, adjusting the proximity sensing trigger threshold of the infrared sensor based on the environmental parameter includes:
adjusting the proximity sensing reference value of the infrared sensor according to the environmental parameter;
obtaining a sensitivity value corresponding to the currently set induction sensitivity;
and taking the sum of the adjusted proximity induction reference value and the sensitivity value as an adjusted proximity induction trigger threshold value.
In one embodiment, the above method further comprises:
detecting whether the infrared sensor is powered on to operate or not;
after the infrared sensor is electrified and operated, acquiring an ADC value acquired by the infrared sensor for the first time;
and taking the ADC value acquired for the first time as an initial approach induction reference value.
In one embodiment, adjusting the proximity sensing trigger threshold of the infrared sensor based on the environmental parameter includes:
determining whether the ADC value acquired by the infrared sensor exceeds a proximity sensing trigger threshold value continuously for a first time period:
determining whether the real-time environment parameter exceeds a preset value or not under the condition that the ADC value acquired by the continuous first time-length infrared sensor exceeds the proximity sensing trigger threshold value;
and under the condition that the environmental parameter exceeds a preset value in the determination process, adjusting the proximity induction trigger threshold value of the infrared sensor.
In one embodiment, the environmental parameter includes at least one of: the ambient humidity, the dust concentration of the environment.
In one embodiment, the above method further comprises:
determining whether the infrared sensor senses that no people exist in the target area for a second duration;
determining whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range or not under the condition that the infrared sensor senses that no person exists in the target area for a second continuous time;
if the measured ADC value exceeds the preset fluctuation range, storing the measured ADC value acquired by the infrared sensor into an array;
determining whether the number quantity stored in the array reaches a preset quantity;
and under the condition of reaching the preset quantity, adjusting the approach induction reference value according to a plurality of values stored in the array.
In one embodiment, the above method further comprises:
determining whether the key triggering operation is continuously carried out for the second duration;
under the condition that no key triggering operation exists in the continuous second time period, whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range is determined;
if the measured ADC value exceeds the preset fluctuation range, storing the measured ADC value acquired by the infrared sensor into an array;
determining whether the number quantity stored in the array reaches a preset quantity;
and under the condition of reaching the preset quantity, adjusting the approach induction reference value according to a plurality of values stored in the array.
In one embodiment, adjusting the proximity sensing reference value according to a plurality of values stored in an array comprises:
removing a maximum value and a minimum value from the plurality of values stored in the array;
calculating the variance of a plurality of values after a maximum value and a minimum value are removed;
under the condition that the variance is smaller than a preset variance threshold value, averaging a plurality of values after a maximum value and a minimum value are removed;
and taking the result of the averaging operation as the adjusted approach induction reference value.
In another aspect, an infrared proximity sensing apparatus is provided, including:
the acquisition module is used for acquiring environmental parameters of the infrared sensor;
the first adjusting module is used for adjusting the proximity sensing trigger threshold of the infrared sensor according to the environmental parameters;
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 adjusting 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 generation 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 above apparatus further comprises:
the first determining module is used for determining whether the key triggering operation is continuously carried out for the second time length;
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 triggering operation is determined in the second continuous time;
the storage module is used for storing the ADC value obtained by the infrared sensor measured at this time into the array under the condition that the ADC value exceeds the preset fluctuation range;
a third determining module, configured to determine whether the amount of the numerical value stored in the array reaches a preset amount;
and the second adjusting module is used for adjusting the approaching induction reference value according to the values stored in the array under the condition of reaching the preset amount.
In still another aspect, there is provided an air conditioner including: the infrared proximity sensing device is described above.
In yet another aspect, a network device is provided, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In a further aspect, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method.
In the above embodiment, an infrared proximity sensing method and an infrared proximity sensing device are provided, where an ambient parameter of an infrared sensor is acquired, a proximity sensing trigger threshold of the infrared sensor is adjusted, and infrared sensing monitoring is performed based on the adjusted proximity sensing trigger threshold. Namely, the triggering threshold value of the infrared induction is dynamically adjusted through the environmental parameters, so that the technical problem that the induction is inaccurate when the environment changes due to the adoption of the fixed triggering threshold value in the prior art can be solved, and the technical effect of improving the induction accuracy is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a method flow diagram of an infrared proximity sensing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the configuration of a line controller according to an embodiment of the present invention;
figure 3 is a flow chart of a method for a line controller to automatically calibrate a proximity sensing reference value in accordance with an embodiment of the present invention;
FIG. 4 is a flow diagram of a proximity sensing trigger implementation of a line controller according to an embodiment of the present invention;
fig. 5 is a block diagram of an infrared proximity sensing apparatus 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, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In order to solve the problem that the sensitivity of the infrared sensor is greatly affected by the environment in the existing method using a fixed sensing trigger threshold, in this example, an infrared proximity sensing method is provided, as shown in fig. 1, which may include the following steps:
step 101: acquiring environmental parameters of an infrared sensor;
step 102: adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameters;
step 103: and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold.
In the above example, the proximity sensing trigger threshold of the infrared sensor is adjusted by acquiring the environmental parameters of the infrared sensor, and infrared sensing monitoring is performed based on the adjusted proximity sensing trigger threshold. Namely, the triggering threshold value of the infrared induction is dynamically adjusted through the environmental parameters, so that the technical problem that the induction is inaccurate when the environment changes due to the adoption of the fixed triggering threshold value in the prior art can be solved, and the technical effect of improving the induction accuracy is achieved.
The approach sensing trigger threshold value can be generated according to an approach sensing reference value and a sensitivity preset value when the approach sensing trigger threshold value is realized, so that the approach sensing reference value can be adjusted when the approach sensing trigger threshold value is adjusted, and the approach sensing trigger threshold value can be correspondingly adjusted after the approach 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: adjusting the proximity sensing reference value of the infrared sensor according to the environmental parameter; obtaining a sensitivity value corresponding to the currently set induction sensitivity; and taking the sum of the adjusted proximity induction reference value and the sensitivity value as an adjusted proximity induction trigger threshold value.
For the proximity sensing reference value, the initial proximity sensing reference value may be determined according to a first return value after the infrared sensor is powered on, because a value measured by the powered-on operation of the infrared sensor is used as the proximity sensing reference value, and therefore, the influence of the structure on the trigger threshold value may be reduced. Specifically, whether the infrared sensor is powered on to operate or not can be detected; after the infrared sensor is electrified and operated, acquiring an ADC (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 approach induction reference value.
In an actual application scenario, if the dust concentration in the environment is too high, or the fog is too large, etc., the ADC value always exceeds the proximity sensing trigger threshold, that is, the ADC value is always in a sensing triggered state, and for such a state, the ADC value can be adjusted by the environmental parameters. 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 a proximity sensing trigger threshold value continuously for a first time period: determining whether the real-time environment parameter exceeds a preset value or not under the condition that the ADC value acquired by the continuous first time-length infrared sensor exceeds the proximity sensing trigger threshold value; and under the condition that the environmental parameter exceeds a preset value in the determination process, adjusting the proximity induction trigger threshold value of the infrared sensor.
Wherein the environmental parameter may include, but is not limited to, at least one of: the ambient humidity, the dust concentration of the environment.
Further, if no one triggers infrared sensing for a long time, but the ADC value continuously exceeds the preset fluctuation range, the adjustment of the proximity sensing reference value may be triggered, and specifically, it may be determined whether there is no key triggering operation for the second duration; under the condition that no key triggering operation exists in the continuous second time period, whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range is determined; if the measured ADC value exceeds the preset fluctuation range, storing the measured ADC value acquired by the infrared sensor into an array; determining whether the number quantity stored in the array reaches a preset quantity; and under the condition of reaching the preset quantity, adjusting the approach induction reference value according to a plurality of values stored in the array.
When the method is implemented, the approach sensing reference value can be adjusted according to a plurality of values stored in the array in the following way: removing a maximum value and a minimum value from the plurality of values stored in the array; calculating the variance of a plurality of values after a maximum value and a minimum value are removed; under the condition that the variance is smaller than a preset variance threshold value, averaging a plurality of values after a maximum value and a minimum value are removed; and taking the result of the averaging operation as the adjusted approach induction reference value.
The above method is described below with reference to a specific example, however, it should be noted that the specific example is only for better illustrating the present application and is not a process limitation of the present application.
Aiming at the problems that the existing sensor has dust accumulation, water mist and large structural difference on the surface, the proximity sensing effect becomes poor, and even the phenomenon that the proximity sensing function is triggered by mistake and cannot be triggered is caused, so that the user experience is influenced, the method for automatically calibrating the infrared proximity sensing 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 the sensitivity of proximity sensing trigger, and can set default sensitivity k, high sensitivity k (1-n%), and low sensitivity k (1+ n%). The method comprises the following steps that a switch setting of a proximity sensing automatic calibration function is set for a wire controller, and 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, key operation, change of the proximity sensing detection value and the like.
When the infrared ADC value obtained currently is larger than the trigger threshold value, a person is considered to be close to the line controller, wherein the trigger threshold value is a reference value + a sensitivity value, and when the infrared ADC value obtained is smaller than the trigger threshold value m%, the person is considered to be away from the line controller.
The wired controller may include, as shown in fig. 2: host system, human response module, button module, atmospheric sensor detection module such as temperature and humidity measurement module, PM2.5, infrared proximity response detection module, display module, communication module etc. wherein: the human body induction module can detect human body activity and send the result 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 a detection value to the main control module for processing; the PM2.5 and other air sensor detection modules are used for detecting the 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 the detected various parameters and various interactive interfaces; the communication module is used for communicating with the indoor unit or the mobile phone App.
In this example, the line controller has a function of setting a switch of a proximity sensing automatic calibration function and a function of setting a sensitivity of a proximity sensing trigger, and a user can set the sensitivity of the proximity sensing to a default sensitivity k, a high sensitivity k (1-n%), and a low sensitivity k (1+ n%), and when the sensitivity is set to the high sensitivity, the line controller can wake up the screen display and key operation of the line controller at a longer distance, and when the sensitivity is set to the high sensitivity, the line controller can only wake up the display and key operation of the line controller at a shorter distance, but when the sensitivity is set to the low sensitivity, the line controller can be prevented from being woken up by mistake due to the fact that a pedestrian passes by the line controller or is not close to the line controller, and.
As shown in fig. 3, the following steps may be included:
s1: after the wire controller is electrified, all modules detect the surrounding environment in real time, and an infrared ADC value Y acquired for the first time after the infrared proximity sensor is electrified is used as an initial reference value of the proximity sensing function. The ADC value that the electricity was obtained is as initial reference value, can obtain a comparatively accurate reference value according to each line accuse ware self structural error or assembly error to can prevent the bad problem of the response function effect of being close that each line accuse ware self structural error or assembly error arouse.
S2: determining whether the proximity sensing auto-calibration function is turned on, if so, performing step S3, otherwise, performing step S13;
when user operation line accuse ware, the hand can be close to line accuse ware, if calibration reference value under this condition, the miscalibration can appear, ADC value when being about to someone is close as the benchmark value, leads to being close the response and triggers the threshold value great to lead to being close the unable trigger of response function, for this reason need combine human response or button to detect and judge.
S3: when the key operation is detected or when the indoor person is detected, the proximity sensing reference value is not calibrated, specifically, whether the human body sensor detects no human in the room continuously for h seconds or the wireless controller detects no key operation continuously for h seconds can be determined, if yes, S5 is executed, otherwise, S4 is executed;
s4: the proximity sensing reference value is not calibrated.
S5: determining whether the infrared ADC value currently acquired by the line controller is greater than or equal to (reference value + a) or less than or equal to (reference value-a) (wherein a is the maximum fluctuation range value allowed under the normal condition of the proximity sensing), if so, executing S6, otherwise, executing S7;
s6: determining whether the number i of ADC values stored in an Array [ b ] is smaller than an Array length b, wherein b is larger 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 value is 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 less than the length b of the Array, sorting the b ADC values from small to large, then respectively removing d of the maximum value and the minimum value, solving the average value and the variance of the residual values, and clearing i;
s10: determining whether the variance is less than or equal to e2, if so, executing S11, otherwise executing S12;
s11: updating the obtained average value to a new approach induction reference value;
s12: the proximity sensing reference value obtained this time is not updated.
When the obtained variance is large, the detected ADC value is large in fluctuation, and is likely to be only instantaneous environment fluctuation, if the reference value is calibrated in the environment, the effect of the proximity sensing function is deteriorated, so that the calibration is not performed, and the reference value is calibrated after the environment is stable.
S13: and determining whether the ADC values acquired for w seconds are all greater than the proximity sensing trigger threshold (the trigger threshold is the reference value + the proximity sensing sensitivity value), and if the primary calibration is not completed, executing S3 to allow the line controller to automatically calibrate the primary proximity sensing reference value, so as to prevent the surface of the line controller from being stained and the proximity sensing from being in the trigger state all the time. If not, go to 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 high, the surface of the wire controller is likely to generate water mist to influence the approaching sensing effect, or the dust concentration is high, the surface of the wire controller is likely to generate dust accumulation to influence the approaching sensing effect, and allowing the wire controller to automatically calibrate the once approaching sensing reference value;
s16: when the indoor relative humidity is larger than f, allowing the wire controller to automatically calibrate the approaching sensing reference value once when the relative humidity of x% is increased; or when the PM2.5 concentration is greater than g, allowing the line controller to automatically calibrate the approaching sensing reference value once every time 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 approach sensing reference value once. The situation allows the proximity sensing automatic calibration to be performed once, so that the effect of the proximity sensing function is prevented from being influenced due to large environmental change when the user closes the automatic calibration, and the user experience is improved.
S17: the proximity sensing reference value is not calibrated.
For the process of implementing proximity sensing trigger of the line controller, as shown in fig. 4, the process includes:
s1: after the wire controller is powered on, 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 greater than a proximity sensing trigger threshold, wherein the trigger threshold is a reference value + a proximity sensing sensitivity value, if so, executing S3, otherwise, executing S5;
s3: a person is considered to be approaching the line controller;
s4: when the drive-by-wire ware detects someone and approaches, can awaken up drive-by-wire ware screen display and button operation, accessible drive-by-wire ware screen is to user's propelling movement web page information two-dimensional code, propelling movement news etc. also can be detected formaldehyde sensor, CO2 sensor, PM2.5 sensor and is adjusted into real-time detection by timing detection.
S5: determining whether the currently acquired ADC value is less than a trigger threshold m%, where m% is less than 1, if so, performing S6, otherwise performing S8;
s6: think people leave the drive-by-wire;
s7: after the person leaves for a period of time, screen display and key dormancy of the wire controller and sensor detection are adjusted to be timing detection, so that electricity 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 approach 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 approach sensing detection value and the like, so that the trigger threshold value is adjusted, and the problems of poor approach sensing effect, false triggering and incapability of triggering when dust is accumulated on the surface of a product, water mist exists on the surface of the product and the structure difference is large can be prevented.
Based on the same inventive concept, an infrared proximity sensing apparatus is further 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 repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an 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, and as shown in fig. 5, the infrared proximity sensing apparatus may include: an obtaining module 501, a first adjusting module 502 and a monitoring module 503, which are described below.
An obtaining module 501, configured to obtain an environmental parameter of an infrared sensor;
a first adjusting module 502, configured to adjust a proximity sensing trigger threshold of the infrared sensor according to the environmental parameter;
and a monitoring module 503, configured to perform infrared sensing monitoring according to the adjusted proximity sensing trigger threshold.
In one embodiment, the first adjusting 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 generation 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 device may be further configured to detect whether the infrared sensor is powered on; after the infrared sensor is electrified and operated, acquiring an ADC value acquired by the infrared sensor for the first time; and taking the ADC value acquired for the first time as an initial approach induction reference value.
In one embodiment, the infrared proximity sensing apparatus may further include: the first determining module is used for determining whether the key triggering operation is continuously carried out for the second time length; 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 triggering operation is determined in the second continuous time; the storage module is used for storing the ADC value obtained by the infrared sensor measured at this time into the array under the condition that the ADC value exceeds the preset fluctuation range; a third determining module, configured to determine whether the amount of the numerical value stored in the array reaches a preset amount; and the second adjusting module is used for adjusting the approaching induction reference value according to the values stored in the array under the condition of reaching the preset amount.
In an embodiment, the second adjusting module may be specifically configured to remove a maximum value and a minimum value from a plurality of values stored in the array; calculating the variance of a plurality of values after a maximum value and a minimum value are removed; under the condition that the variance is smaller than a preset variance threshold value, averaging a plurality of values after a maximum value and a minimum value are removed; and taking the result of the averaging operation as the adjusted approach induction reference value.
In an embodiment, the first adjusting module 502 may be specifically configured to determine whether, for a first duration, the ADC value obtained by the infrared sensor exceeds the proximity sensing trigger threshold: determining whether the real-time environment parameter exceeds a preset value or not under the condition that the ADC value acquired by the continuous first time-length infrared sensor exceeds the proximity sensing trigger threshold value; and under the condition that the environmental parameter exceeds a preset value in the determination process, adjusting the proximity induction trigger threshold value of the infrared sensor.
In one embodiment, the environmental parameter may include, but is not limited to, at least one of: the ambient humidity, the dust concentration of the environment.
In another embodiment, a software is provided, which is used to execute the technical solutions described in the above embodiments and preferred embodiments.
In another embodiment, a storage medium is provided, in which the software is stored, and the storage medium includes but is not limited to: optical disks, floppy disks, hard disks, erasable memory, etc.
From the above description, it can be seen that the embodiments of the present invention achieve the following technical effects: the method comprises the steps of adjusting a proximity sensing trigger threshold value of an infrared sensor by acquiring environmental parameters of the infrared sensor, and carrying out infrared sensing monitoring based on the adjusted proximity sensing trigger threshold value. Namely, the triggering threshold value of the infrared induction is dynamically adjusted through the environmental parameters, so that the technical problem that the induction is inaccurate when the environment changes due to the adoption of the fixed triggering threshold value in the prior art can be solved, and the technical effect of improving the induction accuracy is achieved.
Although various specific embodiments are mentioned in the disclosure of the present application, the present application is not limited to the cases described in the industry standards or the examples, and the like, and some industry standards or the embodiments slightly modified based on the implementation described in the custom manner or the examples can also achieve the same, equivalent or similar, or the expected implementation effects after the modifications. Embodiments employing such modified or transformed data acquisition, processing, output, determination, etc., may still fall within the scope of alternative embodiments of the present application.
Although the present application provides method steps as described in an embodiment or flowchart, more or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an apparatus or client product in practice executes, it may execute sequentially or in parallel (e.g., in a parallel processor or multithreaded processing environment, or even in a distributed data processing environment) according to the embodiments or methods shown in the figures. 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, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded.
The devices or modules and the like explained in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the present application, the functions of each module may be implemented in one or more pieces of software and/or hardware, or a module that implements the same function may be implemented by a combination of a plurality of sub-modules, and the like. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
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 the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied 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, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type 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.
While the present application has been described by way of examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application that do not depart from the spirit of the present application and that the appended embodiments are intended to include such variations and permutations without departing from the present application.

Claims (13)

1. An infrared proximity sensing method, comprising:
acquiring environmental parameters of an infrared sensor;
adjusting a proximity sensing trigger threshold of the infrared sensor according to the environmental parameters;
and carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold.
2. The method of claim 1, wherein adjusting the proximity-sensitive trigger threshold of the infrared sensor based on the environmental parameter comprises:
adjusting the proximity sensing reference value of the infrared sensor according to the environmental parameter;
obtaining a sensitivity value corresponding to the currently set induction sensitivity;
and taking the sum of the adjusted proximity induction reference value and the sensitivity value as an adjusted proximity induction trigger threshold value.
3. The method of claim 2, further comprising:
detecting whether the infrared sensor is powered on to operate or not;
after the infrared sensor is electrified and operated, acquiring an ADC value acquired by the infrared sensor for the first time;
and taking the ADC value acquired for the first time as an initial approach induction reference value.
4. The method of claim 1, wherein adjusting the proximity-sensitive trigger threshold of the infrared sensor based on the environmental parameter comprises:
determining whether the ADC value acquired by the infrared sensor exceeds a proximity sensing trigger threshold value continuously for a first time period:
determining whether the real-time environment parameter exceeds a preset value or not under the condition that the ADC value acquired by the continuous first time-length infrared sensor exceeds the proximity sensing trigger threshold value;
and under the condition that the environmental parameter exceeds a preset value in the determination process, adjusting the proximity induction trigger threshold value of the infrared sensor.
5. The method of claim 4, wherein the environmental parameter comprises at least one of: the ambient humidity, the dust concentration of the environment.
6. The method of claim 1, further comprising:
determining whether the infrared sensor senses that no people exist in the target area for a second duration;
determining whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range or not under the condition that the infrared sensor senses that no person exists in a target area for a second continuous time;
if the measured ADC value exceeds the preset fluctuation range, storing the measured ADC value acquired by the infrared sensor into an array;
determining whether the number quantity stored in the array reaches a preset quantity;
and under the condition of reaching the preset quantity, adjusting the approach induction reference value according to a plurality of values stored in the array.
7. The method of claim 1, further comprising:
determining whether the key triggering operation is continuously carried out for the second duration;
under the condition that no key triggering operation exists in the continuous second time period, whether an ADC value acquired by the infrared sensor exceeds a preset fluctuation range is determined;
if the measured ADC value exceeds the preset fluctuation range, storing the measured ADC value acquired by the infrared sensor into an array;
determining whether the number quantity stored in the array reaches a preset quantity;
and under the condition of reaching the preset quantity, adjusting the approach induction reference value according to a plurality of values stored in the array.
8. The method of claim 6 or 7, wherein adjusting the proximity sensing reference value according to a plurality of values stored in an array comprises:
removing a maximum value and a minimum value from the plurality of values stored in the array;
calculating the variance of a plurality of values after a maximum value and a minimum value are removed;
under the condition that the variance is smaller than a preset variance threshold value, averaging a plurality of values after a maximum value and a minimum value are removed;
and taking the result of the averaging operation as the adjusted approach induction reference value.
9. An infrared proximity sensing device, comprising:
the acquisition module is used for acquiring environmental parameters of the infrared sensor;
the first adjusting module is used for adjusting the proximity sensing trigger threshold of the infrared sensor according to the environmental parameters;
and the monitoring module is used for carrying out infrared induction monitoring through the adjusted proximity induction triggering threshold value.
10. The apparatus of claim 9, wherein the first adjusting 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 generation 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.
11. An air conditioner, comprising: the infrared proximity sensing device of any one of claims 9 to 10.
12. A network device, comprising: memory, processor and 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 of claims 1 to 8 when executing the computer program.
13. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of any of claims 1 to 8.
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 true CN112612028A (en) 2021-04-06
CN112612028B 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
CN112612028B (en) 2024-01-23

Similar Documents

Publication Publication Date Title
US20130234987A1 (en) Method and system for updating reference data of capacitive multi-touch screen
JP2015130200A (en) Method and system for waking up device due to motion
KR102367061B1 (en) Apparatus for estimating air quality and system for estimating air quality
CN106225806B (en) Calibrate the method, device and mobile terminal of Magnetic Sensor
CN109920192A (en) Fire alarm method, system and computer readable storage medium
CN108896613B (en) Water immersion detection device and method
CN101963873A (en) Method for setting and calibrating capacitive-type touch panel capacitance base value
CN106019260A (en) Distance sensor anti-fouling method and system on mobile terminal
US20220338551A1 (en) Method for controlling electronic cigarette, and electronic cigarette
CN104182145A (en) Method and device for preventing faulty operation of touch screen and mobile equipment
WO2022021650A1 (en) Step counting method, step counting device, and computer readable storage medium
CN112050970A (en) Environment monitoring method and device
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor
US10332369B2 (en) System for setting non-warning area of people detector and method thereof
CN114282169A (en) Abnormal data detection method and related device
CN111198626A (en) Reference value correction method and device for capacitive touch key and storage medium
CN110989031B (en) Human body detection method, device, system, electronic equipment and storage medium
KR101695500B1 (en) Server capable of Context-aware about a fire
CN106775071B (en) Touch screen correction method and device
CN110989430A (en) Smart home linkage method and system and readable storage medium
CN111258225B (en) Environment distribution establishment method, intelligent device, cleaning robot and storage medium
CN112612028A (en) Infrared proximity sensing method and device, air conditioner and storage medium
CN113920705A (en) Photoelectric smoke sensing test method and device, photoelectric smoke sensing equipment and storage medium
CN109141355A (en) Relative height measuring method based on multiple sensors and wearable equipment
CN104867292A (en) Intelligent alarm method and device

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