CN112665168B - Method and device for controlling working state of infrared sensor and storage medium - Google Patents

Method and device for controlling working state of infrared sensor and storage medium Download PDF

Info

Publication number
CN112665168B
CN112665168B CN202011576644.7A CN202011576644A CN112665168B CN 112665168 B CN112665168 B CN 112665168B CN 202011576644 A CN202011576644 A CN 202011576644A CN 112665168 B CN112665168 B CN 112665168B
Authority
CN
China
Prior art keywords
air conditioner
signal
infrared sensor
group
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.)
Active
Application number
CN202011576644.7A
Other languages
Chinese (zh)
Other versions
CN112665168A (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.)
Foshan Shunde Midea Electric Science and Technology Co Ltd
Original Assignee
Foshan Shunde Midea Electric Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Foshan Shunde Midea Electric Science and Technology Co Ltd filed Critical Foshan Shunde Midea Electric Science and Technology Co Ltd
Priority to CN202011576644.7A priority Critical patent/CN112665168B/en
Publication of CN112665168A publication Critical patent/CN112665168A/en
Application granted granted Critical
Publication of CN112665168B publication Critical patent/CN112665168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Air Conditioning Control Device (AREA)
  • Geophysics And Detection Of Objects (AREA)

Abstract

The application discloses a method, a device and a storage medium for controlling the working state of an infrared sensor, wherein the method comprises the following steps: controlling a first group of infrared sensors in at least two groups of infrared sensors in the air conditioner to emit first signals; determining a use environment of the air conditioner based on whether a reflected signal of the first signal is received; and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner. The detection function of the infrared sensor can be guaranteed to be effective by determining the working state of the infrared sensor.

Description

Method and device for controlling working state of infrared sensor and storage medium
Technical Field
The present disclosure relates to the field of infrared sensing technologies, and in particular, to a method, an apparatus, and a storage medium for controlling a working state of an infrared sensor.
Background
The air conditioner generally uses an internal infrared sensor to control an operation mode of the air conditioner, and a function of detecting a signal by using the infrared sensor is particularly important. Therefore, how to prove that the detection function of the infrared sensor is effective is a problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present application are expected to provide a method, an apparatus, and a storage medium for controlling an operating state of an infrared sensor, which can ensure that a detection function of the infrared sensor is effective by determining the operating state of the infrared sensor.
In order to achieve the purpose, the technical scheme of the application is realized as follows:
the application provides a method for controlling the working state of an infrared sensor, which comprises the following steps:
controlling a first group of infrared sensors in at least two groups of infrared sensors in the air conditioner to emit first signals;
determining a use environment of the air conditioner based on whether a reflected signal of the first signal is received;
and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner.
In some optional embodiments, the determining the usage environment of the air conditioner based on whether the reflected signal of the first signal is received includes:
under the condition that the air conditioner is in an operating state, if the time length of receiving the reflected signal of the first signal is greater than or equal to a first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the first group of infrared sensors in the using environment of the air conditioner;
and if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, determining that no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner.
In some optional embodiments, the controlling the operating state of the first set of infrared sensors based on the usage environment of the air conditioner includes:
if an obstacle exists at a position corresponding to the first group of infrared sensors in the using environment of the air conditioner, controlling the working state of the first group of infrared sensors to be closed;
and if no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, keeping the working state of the first group of infrared sensors to be on.
In some optional embodiments, the method further comprises:
the method further comprises the following steps:
controlling the infrared sensor groups except the first group of infrared sensors in the air conditioner to emit second signals, determining that no obstacle exists at a position corresponding to the infrared sensor group emitting the second signals in the use environment of the air conditioner if the reflected signals of the second signals are not received or the duration of receiving the reflected signals of the second signals is less than the first continuous duration threshold value under the condition that the air conditioner is in the running state, and keeping the working state of the infrared sensor group emitting the second signals to be started;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
In some optional embodiments, the method further comprises:
and if the reflected signals of the signals transmitted by all the infrared sensor groups in the air conditioner are received at the first continuous time threshold, determining that the installation position of the air conditioner needs to be adjusted.
The application also provides a device for controlling the working state of the infrared sensor, which comprises:
the control unit is used for controlling a first group of infrared sensors in at least two groups of infrared sensors in the air conditioner to emit first signals;
a processing unit for determining a usage environment of the air conditioner based on whether a reflected signal of the first signal is received; and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner.
In some optional embodiments, the processing unit is configured to, when the air conditioner is in an operating state, determine that an obstacle exists at a position in the usage environment of the air conditioner corresponding to the first group of infrared sensors if a duration of receiving the reflected signal of the first signal is greater than or equal to the first continuous duration threshold;
and if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, determining that no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner.
In some optional embodiments, the processing unit is configured to control an operating state of the first group of infrared sensors to be off if an obstacle exists at a position corresponding to the first group of infrared sensors in a usage environment of the air conditioner;
and if no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, keeping the working state of the first group of infrared sensors to be on.
In some optional embodiments, the processing unit is further configured to control an infrared sensor group in the air conditioner, except for the first infrared sensor group, to emit a second signal, and if the air conditioner is in an operating state, and if a reflected signal of the second signal is not received or a duration of receiving the reflected signal of the second signal is less than the first continuous duration threshold, it is determined that no obstacle exists at a position in a use environment of the air conditioner corresponding to the infrared sensor group that emits the second signal, and an operating state of the infrared sensor group that emits the second signal is kept at on;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
In some optional embodiments, the processing unit is further configured to determine that the installation location of the air conditioner needs to be adjusted if the lengths of time for receiving the reflected signals of the signals transmitted by all the infrared sensor groups in the air conditioner are greater than the first continuous length threshold value.
The application also provides a device for controlling the working state of the infrared sensor, which comprises a memory, a processor and an executable program which is stored on the memory and can be run by the processor, and is characterized in that the processor executes the steps of the method for controlling the working state of the infrared sensor when running the executable program.
The application also provides a storage medium, which stores an executable program, and is characterized in that the executable program is executed by a processor to realize the method for controlling the working state of the infrared sensor.
The method, the device and the storage medium for controlling the working state of the infrared sensor provided by the embodiment of the application control the first group of infrared sensors in at least two groups of infrared sensors in an air conditioner to emit first signals; determining a use environment of the air conditioner based on whether a reflected signal of the first signal is received and a time period for receiving the reflected signal; and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner. Therefore, when the air conditioner is in the running state, the first group of infrared sensors are used for transmitting the first signals, and when the duration of receiving the reflected signals of the first signals is greater than the first continuous duration threshold value, the obstacles such as the wall surface and the like exist in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, the detection function of the first group of infrared sensors is considered to be invalid, the working state of the first group of infrared sensors is controlled to be closed, the error control on the air conditioner caused by the invalid detection function of the first group of infrared sensors is avoided, and the performance of the product and the use experience of a user are improved.
Drawings
FIG. 1a is a schematic view of a dual perfusion cabinet air conditioner of the present application;
FIG. 1b is a schematic diagram of the internal structure of the infrared sensor of the present application;
FIG. 2a is a schematic view of an air conditioner of the present embodiment placed in a corner;
fig. 2b is a schematic position diagram of an infrared sensor when the air conditioner provided by the embodiment of the present application is placed in a corner;
fig. 3 is a schematic view of an alternative flow chart of a method for controlling an operating state of an infrared sensor according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an air conditioner including a first set of infrared sensors and a second infrared sensor according to an embodiment of the present application;
fig. 5 is a detailed alternative flow chart of a method for controlling an operating state of an infrared sensor according to an embodiment of the present application;
fig. 6 is a schematic diagram of an alternative structure of an apparatus for controlling an operating state of an infrared sensor according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware composition structure of the apparatus for controlling an operating state of an infrared sensor according to the embodiment of the present application.
Detailed Description
The technical solutions of the present application are further described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific embodiments described herein are only used for explaining the present application and are not used for limiting the present application.
Before the embodiments of the present application are described in detail, a brief description of the air conditioner will be given.
The air conditioner is internally provided with an infrared sensor, particularly, the air conditioner cabinet can be internally provided with the infrared sensor, and the infrared sensor is used for detecting the environment where the air conditioner is located, such as whether people, animals or other obstacles exist in front of the air conditioner, so that the air conditioner can determine the operation mode of the air conditioner according to the environment. For example, if there is an obstacle in front of the air conditioner, the air conditioner starts an operation mode corresponding to an environment with the obstacle. Taking a dual-perfusion cabinet air conditioner as an example, as shown in fig. 1a, the left and right sides of the air conditioner are respectively provided with an air outlet, and a group of infrared sensors are respectively arranged below the two air outlets. The internal structure schematic diagram of the infrared sensor is as shown in fig. 1b, an infrared element is arranged in the infrared sensor, such as an infrared transmitting tube and an infrared receiving probe, and transmits an infrared signal through the infrared transmitting tube, the infrared signal reflects infrared light when encountering a person or other obstacles, and the infrared receiving probe receives the reflected infrared light and judges that the person or other obstacles are in front of the air conditioner.
However, in some scenarios, as shown in fig. 2a, when the air conditioner is placed in a corner, the air outlet of the air conditioner faces the corner, and since the infrared sensor is located below the air outlet, the position of the infrared sensor is schematically shown when the air conditioner is placed in the corner, as shown in fig. 2b, when the door of the air conditioner is opened, the infrared signal emitted by the infrared emitting tube of the infrared sensor will be incident on the wall surface and reflected on the wall surface, and the reflected signal will be received by the infrared receiving probe of the infrared sensor. In this scenario, the infrared receiving probe of the infrared sensor receives the reflected signal reflected by the wall surface instead of the signal required for controlling the air conditioner, so that the detection performance of the infrared sensor is disabled, and the detection performance of the infrared sensor is affected.
The application provides a method, a device and a storage medium for controlling the working state of an infrared sensor, aiming at all infrared sensor groups included in an air conditioner, the air conditioner is in a running state, namely, a switch door of the air conditioner is opened, after an infrared transmitting tube of the infrared sensor group transmits a signal, a reflection signal of the signal received by an infrared receiving probe of the infrared sensor group is greater than a preset first continuous time domain, if the reflection signal is greater than half an hour, a barrier formed by a fixed object is considered to be arranged in front of the infrared sensor, namely, a barrier formed by a part or all of the air outlet directions of an air outlet of the air conditioner face the fixed object; wherein, the barrier formed by the fixed object can be a wall surface, an article stored for a long time, and the like; in the scene, the detection result of the infrared sensor group comprises additional signals except signals required by the control of the air conditioner, so that the detection function of the infrared sensor is influenced, and the detection function of the infrared sensor is invalid; therefore, the working state of the infrared sensor is controlled to be closed, namely the infrared sensor does not detect signals; controlling the working state of another infrared sensor in the air conditioner to be on, and determining whether the detection function of the infrared sensor is effective or not by using the same method as that for the previous infrared sensor; if the detection function of the infrared sensor is effective, the working state of the infrared sensor is started, and the infrared sensor is utilized to detect signals.
As shown in fig. 4, an optional flowchart of the method for controlling the operating state of the infrared sensor according to the embodiment of the present application may at least include the following steps:
step S101, a first group of infrared sensors in at least two infrared sensors in the air conditioner are controlled to emit first signals.
In some alternative embodiments, the control air conditioner may include at least two sets of infrared sensors, each set of infrared sensors being formed of an infrared sensor array including at least one infrared sensor; taking an air conditioner including a first group of infrared sensors and a second group of infrared sensors as an example, as shown in fig. 4, the device for controlling the operating state of the infrared sensors controls the first group of infrared sensors in the air conditioner to emit a first signal, that is, the device for controlling the operating state of the infrared sensors controls the operating state of the first group of infrared sensors to be on.
And step S102, determining the use environment of the air conditioner based on whether the reflected signal of the first signal is received.
In some optional embodiments, the device for controlling the working state of the infrared sensor determines the use environment of the air conditioner based on whether the reflected signal of the first signal is received or not under the condition that the air conditioner is in the running state; when the air conditioner is in an operating state, an opening and closing door in the air conditioner is opened, and a first signal emitted by the first group of infrared sensors can not form a reflection signal on the opening and closing door.
In some optional embodiments, when the air conditioner is in an operating state, if the duration of receiving the reflected signal of the first signal is greater than or equal to the first continuous duration threshold, it is determined that an obstacle exists at a position in the use environment of the air conditioner corresponding to the first group of infrared sensors, and if the first group of infrared sensors is located below a first air outlet of the air conditioner, part or all of the air outlet direction of the first air outlet faces the obstacle; if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, it is determined that no obstacle exists at the position corresponding to the first group of infrared sensors in the use environment of the air conditioner, that is, all air outlet directions of the first air outlet do not face the obstacle. Wherein the absence of the obstacle may be an obstacle placed momentarily within a first continuous length of time, i.e. the time of placement of the obstacle is less than the first continuous length of time; the presence of the obstacle may be an obstacle placed for a long period of time at a first continuous length threshold, i.e. the obstacle has been placed for a time greater than or equal to the first continuous length.
The first continuous duration threshold may refer to a preset time period, such as half an hour, and the value of the first continuous duration threshold may be flexibly set according to an actual application scenario. In the embodiment of the application, by limiting and judging whether the time period of receiving the reflected signal of the first signal is the first continuous time threshold, the detection function failure of the first group of infrared sensors caused by the obstacle existing in the short time in front of the air conditioner can be eliminated, and the detection function failure of the first group of infrared sensors caused by the obstacle existing in the long time such as the wall surface in front of the air conditioner is determined; the temporary obstacle may be a human being, an animal, an electric appliance, or the like.
For example, if the first continuous time threshold is half an hour, when the air conditioner is in the operating state, and the time period for receiving the reflected signal of the first signal is less than or equal to half an hour, it cannot be determined that the position corresponding to the first group of infrared sensors in the use environment of the air conditioner has a long-term obstacle, possibly a temporarily placed object; the reflected signal of the first signal may be a reflected signal of the first signal formed on a surface of the object placed transiently. If the duration of receiving the reflected signal of the first signal is greater than the first continuous duration threshold, it can be determined that a long-term obstacle such as a wall surface exists at a position corresponding to the first group of infrared sensors in the use environment of the air conditioner, and the reflected signal of the first signal may be a reflected signal formed by the first signal on the surface of the long-term obstacle.
In some alternative embodiments, the device for controlling the working state of the infrared sensor can be positioned in the air conditioner, namely, the device for controlling the working state of the infrared sensor belongs to a part of the air conditioner; the device for controlling the working state of the infrared sensor can also be positioned outside the air conditioner, and the device for controlling the working state of the infrared sensor is in communication connection with the air conditioner through communication modes such as network communication or near field communication and the like so as to determine whether the reflected signal of the received first signal is greater than the first continuous time threshold value.
And step S103, controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner.
In some optional embodiments, if there is no obstacle in the position corresponding to the first group of infrared sensors in the usage environment of the air conditioner, that is, all the air outlet directions of the first air outlet do not face the obstacle, the device for controlling the operating state of the infrared sensors keeps the operating state of the first group of infrared sensors turned on; in this scenario, the operating state of the second group of sensors in the air conditioner may not be turned on, or may be turned on.
In other optional embodiments, if a barrier exists at a position corresponding to the first group of infrared sensors in the usage environment of the air conditioner, that is, a part or all of the air outlet direction of the first air outlet faces the barrier, the device for controlling the operating state of the infrared sensors controls the operating state of the first group of infrared sensors to be off. In this scenario, since the air conditioner is in an operating state and the opening and closing door of the air conditioner is opened, it can be determined that the reflected signal received by the infrared receiving probe of the first group of infrared sensors is not formed by the reflection of the first signal on the opening and closing door, but formed by the reflection of the first signal on other obstacles; at the moment, the detection function of the first group of infrared sensors is invalid, and the first group of infrared sensors are closed, so that the error control of the air conditioner caused by the invalid detection function of the first group of infrared sensors is avoided.
The method for controlling the working state of the infrared sensor provided by the embodiment of the application can further comprise the following steps:
and step S104, controlling the infrared sensor groups except the first group of infrared sensors in the air conditioner to emit second signals.
In some optional embodiments, when the air conditioner is in an operating state, if the reflected signal of the second signal is received or the duration of receiving the reflected signal of the second signal is less than the first continuous duration threshold, the device for controlling the operating state of the infrared sensor determines that no obstacle exists at a position in the use environment of the air conditioner corresponding to the infrared sensor group that transmits the second signal, and if the sensor group that transmits the second signal is below the second air outlet of the air conditioner, all air outlet directions of the second air outlet do not face the obstacle, and the operating state of the infrared sensor group that transmits the second signal is kept on.
In other optional embodiments, when the air conditioner is in the operating state, if the duration of receiving the reflected signal of the second signal is greater than or equal to the first continuous duration threshold, the device for controlling the operating state of the infrared sensor determines that an obstacle exists at a position, in the use environment of the air conditioner, corresponding to the infrared sensor group that transmits the second signal, that is, a part or all of the air outlet direction of the second air outlet faces the obstacle, and controls the operating state of the infrared sensor group that transmits the second signal to be off.
The method for controlling the working state of the infrared sensor provided by the embodiment of the application can further comprise the following steps:
step S105, if the time length of receiving the reflected signals of the signals transmitted by all the infrared sensor groups in the air conditioner is greater than the first continuous time length threshold value, determining that the installation position of the air conditioner needs to be adjusted.
For example, if the air conditioner includes a first group of infrared sensors and a second group of infrared sensors, and the lengths of time for receiving the reflected signals of the signals transmitted by the first group of infrared sensors and the second group of infrared sensors are both greater than the first continuous length threshold, it is indicated that there are obstacles placed for a long time in the positions corresponding to the first group of infrared sensors and the second group of infrared sensors in the use environment of the air conditioner, that is, part or all of the air outlet directions of the first air outlet of the air conditioner face the obstacles, and part or all of the air outlet directions of the second air outlet face the obstacles, and it is determined that the installation position of the air conditioner needs to be adjusted
In the above embodiment, the air conditioner includes two sets of infrared sensors as an example, and in practical application, the air conditioner may further include three or more sets of infrared sensors; aiming at the condition that three or more groups of infrared sensors are included in the air conditioner, the method for controlling the working state of the infrared sensors is the same as the method for controlling two groups of infrared sensors included in the air conditioner, namely, each group of infrared sensors is controlled to transmit signals, whether the reflected signals of the transmitted signals are received or not and the time length for receiving the reflected signals are judged, if the reflected signals of the transmitted signals are not received or the time length for receiving the reflected signals is less than a first continuous time length threshold value, the fact that no barrier exists in the position, corresponding to the infrared sensor group, in the using environment of the air conditioner is determined, the detection function of the infrared sensor group is effective, and the working state of the infrared sensor group is controlled to be on; if the duration of receiving the emission signal of the emission signal is greater than or equal to the first continuous duration threshold, determining that an obstacle exists at a position corresponding to the infrared sensor group in the using environment of the air conditioner, and if the detection function of the infrared sensor group is invalid, controlling the working state of the infrared sensor group to be closed; if the reflected signals of the transmitted signals of all the infrared sensor groups are received, it is determined that obstacles exist at the positions corresponding to all the infrared sensor groups in the using environment of the air conditioner, and the installation position of the air conditioner needs to be adjusted. Therefore, the working state of the infrared sensor group corresponding to the position where the obstacle exists in the using environment of the air conditioner is closed, the error control of the air conditioner caused by the fact that the infrared sensor group detects invalid reflection signals is avoided, and the accurate control of the air conditioner is guaranteed.
As shown in fig. 5, a detailed optional flowchart of the method for controlling the operating state of the infrared sensor according to the embodiment of the present application may at least include the following steps:
step S301, the air conditioner is started.
And step S302, opening the air conditioner switch door.
Step S303, judging whether the opening and closing of the air conditioner door is finished; if yes, go to step S304; if not, go to step S302.
In the embodiment of the application, if the opening and closing door of the air conditioner is opened, and after the infrared transmitting tube of the infrared sensor transmits a signal, the infrared receiving probe of the infrared sensor can receive a reflected signal of the signal, an obstacle formed by a fixed object is considered to be in front of the infrared sensor; under this scene, the detection result of infrared sensor includes the extra signal beyond the signal that control air conditioner needs, and then influences infrared sensor's detection function, leads to infrared sensor's detection function inefficacy. Therefore, the embodiment of the application requires the opening and closing door to be opened.
Step S304, a mechanism for detecting the function of the infrared sensor is turned on.
In step S305, the transmitting tubes of the first group of infrared sensors transmit signals.
Step S306, judging whether the receiving probes of the first group of infrared sensors receive the reflected signals of the transmitted signals; if yes, go to step S307; if not, go to step S305'.
In some alternative embodiments, step S305' may also be performed if it is determined that the receiving probe of the first group of infrared sensors receives the reflected signal of the signal.
Step S307, judging whether the time length of the receiving probes of the first group of infrared sensors for receiving the reflected signals is greater than a first continuous time length threshold value; if yes, go to step S308; if not, go to step S305.
The first continuous time threshold can be flexibly set according to practical application, such as half an hour.
And step S308, closing the working state of the first group of infrared sensors.
Step S305', the emission tubes of the second group of infrared sensors emit signals.
Step S306', judging whether the receiving probes of the second group of infrared sensors receive the reflected signals of the transmitted signals; if yes, go to step S307'; if not, go to step S305'.
Step S307', judging whether the time length of the receiving probes of the second group of infrared sensors for receiving the reflected signals is greater than a first continuous time length threshold value or not; if yes, go to step S308'; if not, go to step S305.
And step 308', the working state of the second group of infrared sensors is closed.
In some optional embodiments, if the operating states of the first group of infrared sensors and the second group of infrared sensors are both off, it is indicated that there is a long-term obstacle in the use environment of the air conditioner at the positions corresponding to the first group of infrared sensors and the second group of infrared sensors, that is, part or all of the air outlet directions of the first air outlet of the air conditioner face the obstacle, and part or all of the air outlet directions of the second air outlet face the obstacle, and the obstacle will affect the detection performance of the group of infrared sensors, so that it is determined that the use environment of the air conditioner needs to be changed, such as adjusting the placement position of the air conditioner.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In order to implement the method for controlling the operating state of the infrared sensor, an embodiment of the present application further provides a device for controlling the operating state of the infrared sensor, and as shown in fig. 6, an optional structural schematic diagram of the device 400 for controlling the operating state of the infrared sensor may include:
a control unit 401 for controlling a first group of at least two infrared sensors in the air conditioner to emit a first signal;
a processing unit 402 for determining a usage environment of the air conditioner based on whether a reflected signal of the first signal is received; and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner.
In this embodiment of the application, the processing unit 402 is configured to, when the air conditioner is in an operating state, determine that an obstacle exists at a position in the usage environment of the air conditioner corresponding to the first group of infrared sensors if a duration of receiving a reflected signal of the first signal is greater than or equal to the first continuous duration threshold;
and if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, determining that no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner.
In some optional embodiments, the processing unit 402 is configured to control an operating state of the first group of infrared sensors to be off if an obstacle exists at a position corresponding to the first group of infrared sensors in the usage environment of the air conditioner;
and if no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, keeping the working state of the first group of infrared sensors to be on.
In some optional embodiments, the processing unit 402 is further configured to control an infrared sensor group in the air conditioner, except for the first infrared sensor group, to emit a second signal, and if the air conditioner is in an operating state, and if a reflected signal of the second signal is not received or a duration of receiving the reflected signal of the second signal is less than the first continuous duration threshold, it is determined that no obstacle exists at a position in the use environment of the air conditioner corresponding to the infrared sensor group that emits the second signal, and the operating state of the infrared sensor group that emits the second signal is kept at on;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
In some optional embodiments, the processing unit 402 is further configured to determine that the installation location of the air conditioner needs to be adjusted if the lengths of time for receiving the reflected signals of the signals transmitted by all infrared sensor groups in the air conditioner are greater than the first continuous length threshold.
The embodiment of the application also provides a storage medium, which stores an executable program, and when the executable program is executed by a processor, the control of the first group of infrared sensors in at least two groups of infrared sensors in the air conditioner to emit first signals is realized;
determining a use environment of the air conditioner based on whether a reflected signal of the first signal is received;
and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner.
In some optional embodiments, when executed by the processor, the executable program is configured to determine that an obstacle exists at a position corresponding to the first group of infrared sensors in the use environment of the air conditioner if the duration of receiving the reflected signal of the first signal is greater than or equal to a first continuous duration threshold while the air conditioner is in the running state;
and if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, determining that no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner.
In some optional embodiments, when executed by the processor, the executable program is configured to control an operating state of the first group of infrared sensors to be off if an obstacle exists at a position corresponding to the first group of infrared sensors in a usage environment of the air conditioner;
and if no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, keeping the working state of the first group of infrared sensors to be on.
In some optional embodiments, when being executed by the processor, the executable program further controls the infrared sensor groups in the air conditioner except the first infrared sensor group to emit a second signal, and when the air conditioner is in an operating state, if a reflected signal of the second signal is not received or a duration of receiving the reflected signal of the second signal is less than the first continuous duration threshold, it is determined that no obstacle exists at a position in a use environment of the air conditioner corresponding to the infrared sensor group emitting the second signal, and an operating state of the infrared sensor group emitting the second signal is kept on;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
In some optional embodiments, when executed by the processor, the executable program further enables determining that the installation location of the air conditioner needs to be adjusted if the lengths of time for receiving the reflected signals of the signals transmitted by all the infrared sensor groups in the air conditioner are greater than the first continuous length threshold.
The embodiment of the application also provides a device for controlling the working state of the infrared sensors, which comprises a memory, a processor and an executable program, wherein the executable program is stored on the memory and can be run by the processor;
determining a use environment of the air conditioner based on whether a reflected signal of the first signal is received;
and controlling the working state of the first group of infrared sensors based on the use environment of the air conditioner.
In some optional embodiments, the processor executes the executable program, when the air conditioner is in an operating state, if a duration of receiving a reflected signal of the first signal is greater than or equal to a first continuous duration threshold, determining that an obstacle exists at a position corresponding to the first group of infrared sensors in a use environment of the air conditioner;
and if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, determining that no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner.
In some optional embodiments, the processor executes the executable program, and if an obstacle exists at a position corresponding to the first group of infrared sensors in the use environment of the air conditioner, the processor controls the working state of the first group of infrared sensors to be off;
and if no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, keeping the working state of the first group of infrared sensors as on.
In some optional embodiments, when the processor runs the executable program, the processor executes control of an infrared sensor group in the air conditioner, except for the first infrared sensor group, to emit a second signal, and when the air conditioner is in an operating state, if a reflected signal of the second signal is not received or a duration of receiving the reflected signal of the second signal is less than the first continuous duration threshold, it is determined that no obstacle exists at a position in a use environment of the air conditioner corresponding to the infrared sensor group emitting the second signal, and the operating state of the infrared sensor group emitting the second signal is kept on;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
In some optional embodiments, the processor executes the executable program to perform the step of determining that the installation location of the air conditioner needs to be adjusted if the lengths of time for receiving the reflected signals of the signals transmitted by all the infrared sensor groups in the air conditioner are greater than the first continuous length threshold value.
Fig. 7 is a schematic hardware component structure diagram of an apparatus for controlling an operating state of an infrared sensor according to an embodiment of the present application, where the apparatus 700 for controlling an operating state of an infrared sensor includes: at least one processor 701, a memory 702, and at least one network interface 704. The various components of the apparatus 700 for sensing infrared performance of an air conditioner are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The non-volatile Memory may be ROM, Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic random access Memory (FRAM), Flash Memory (Flash Memory), magnetic surface Memory, optical Disc, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 702 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 702 in the embodiment of the present application is used to store various types of data to support the operation of the apparatus 700 for controlling the operating state of the infrared sensor. Examples of such data include: any computer program for operating on the device 700 for controlling the operating state of an infrared sensor, such as application 7022. A program for implementing the methods according to embodiments of the present application may be included in application 7022.
The method disclosed in the embodiments of the present application may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 701 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 702, and the processor 701 may read the information in the memory 702 and perform the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the apparatus 700 for controlling the operating state of the infrared sensor may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, MPUs, or other electronic components for performing the aforementioned methods.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be understood that the terms "system" and "network" are often used interchangeably herein in this application. The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this application generally indicates that the former and latter related objects are in an "or" relationship.
The above description is only exemplary of the present application and should not be taken as limiting the scope of the present application, as any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (12)

1. A method of controlling an operating condition of an infrared sensor, the method comprising:
controlling a first group of infrared sensors in at least two groups of infrared sensors in the air conditioner to emit first signals;
under the condition that the air conditioner is in the running state, if the duration of receiving the reflected signal of the first signal is greater than or equal to a first continuous duration threshold, determining that an obstacle exists at a position corresponding to the first group of infrared sensors in the using environment of the air conditioner, and controlling the working state of the first group of infrared sensors to be in a closed state; and controlling the infrared sensor groups except the first group of infrared sensors in the air conditioner to emit second signals.
2. The method of claim 1, further comprising:
and if the reflected signal of the first signal is not received or the duration of receiving the reflected signal of the first signal is less than the first continuous duration threshold, determining that no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner.
3. The method of claim 2, further comprising:
and if no obstacle exists in the position corresponding to the first group of infrared sensors in the using environment of the air conditioner, keeping the working state of the first group of infrared sensors to be on.
4. The method according to any one of claims 1 to 3, further comprising:
under the condition that the air conditioner is in the running state, if the reflected signal of the second signal is not received or the duration of receiving the reflected signal of the second signal is smaller than the first continuous duration threshold, determining that no obstacle exists at the position, corresponding to the infrared sensor group emitting the second signal, in the use environment of the air conditioner, and keeping the working state of the infrared sensor group emitting the second signal to be started;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
5. The method of claim 4, further comprising:
and if the time lengths of the reflected signals of the signals transmitted by all the infrared sensor groups in the air conditioner are greater than the first continuous time length threshold value, determining that the installation position of the air conditioner needs to be adjusted.
6. An apparatus for controlling an operating state of an infrared sensor, the apparatus comprising:
the control unit is used for controlling a first group of infrared sensors in at least two groups of infrared sensors in the air conditioner to emit first signals;
the processing unit is used for determining that an obstacle exists at a position corresponding to the first group of infrared sensors in the using environment of the air conditioner and controlling the working state of the first group of infrared sensors to be a closed state if the duration of receiving the reflected signal of the first signal is greater than or equal to a first continuous duration threshold value under the condition that the air conditioner is in the running state; and controlling the infrared sensor groups except the first group of infrared sensors in the air conditioner to emit second signals.
7. The apparatus of claim 6, wherein the processing unit determines that no obstacle exists at a location in the environment of use of the air conditioner corresponding to the first set of infrared sensors if the reflected signal of the first signal is not received or the duration of the received reflected signal of the first signal is less than the first duration threshold.
8. The device of claim 7, wherein the processing unit is configured to keep the first set of infrared sensors in an on state if no obstacle exists at a position corresponding to the first set of infrared sensors in the usage environment of the air conditioner.
9. The device according to any one of claims 6 to 8, wherein the processing unit is further configured to control the infrared sensor groups in the air conditioner, except for the first infrared sensor group, to emit a second signal, and when the air conditioner is in the operating state, if a reflected signal of the second signal is not received or a duration of receiving the reflected signal of the second signal is less than the first duration threshold, it is determined that no obstacle exists in a position in the use environment of the air conditioner corresponding to the infrared sensor group emitting the second signal, and the operating state of the infrared sensor group emitting the second signal is kept on;
and if the time length of receiving the reflected signal of the second signal is greater than the first continuous time length threshold value, determining that an obstacle exists at a position corresponding to the infrared sensor group transmitting the second signal in the use environment of the air conditioner, and controlling the working state of the infrared sensor group transmitting the second signal to be closed.
10. The apparatus of claim 9, wherein the processing unit is further configured to determine that the installation location of the air conditioner needs to be adjusted if the lengths of time for receiving the reflected signals of the signals transmitted by all infrared sensor groups in the air conditioner are greater than the first continuous length threshold.
11. An apparatus for controlling an operating state of an infrared sensor, comprising a memory, a processor and an executable program stored on the memory and executable by the processor, wherein the processor executes the executable program to perform the steps of the method for controlling an operating state of an infrared sensor according to any one of claims 1 to 5.
12. A storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the method of controlling an operating state of an infrared sensor according to any one of claims 1 to 5.
CN202011576644.7A 2020-12-28 2020-12-28 Method and device for controlling working state of infrared sensor and storage medium Active CN112665168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011576644.7A CN112665168B (en) 2020-12-28 2020-12-28 Method and device for controlling working state of infrared sensor and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011576644.7A CN112665168B (en) 2020-12-28 2020-12-28 Method and device for controlling working state of infrared sensor and storage medium

Publications (2)

Publication Number Publication Date
CN112665168A CN112665168A (en) 2021-04-16
CN112665168B true CN112665168B (en) 2022-04-12

Family

ID=75410409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011576644.7A Active CN112665168B (en) 2020-12-28 2020-12-28 Method and device for controlling working state of infrared sensor and storage medium

Country Status (1)

Country Link
CN (1) CN112665168B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107525238A (en) * 2017-08-22 2017-12-29 广东美的制冷设备有限公司 Air-conditioner control method, infrared signal transceiver and air conditioner
CN107906680A (en) * 2017-10-02 2018-04-13 广东美的制冷设备有限公司 Infrared sensor control process method, apparatus, air conditioner and readable storage medium storing program for executing
CN108489049A (en) * 2018-03-29 2018-09-04 广东美的制冷设备有限公司 Infrared detection distance method, air conditioner and the computer storage media of air conditioner
CN108923865A (en) * 2018-07-06 2018-11-30 Oppo(重庆)智能科技有限公司 Calibration method, device, mobile terminal and the storage medium of infrared distance sensor
CN110233547A (en) * 2018-03-06 2019-09-13 江森自控科技公司 HVAC actuator with contactless adjustable setting
CN111207782A (en) * 2020-01-06 2020-05-29 厦门狄耐克智能科技股份有限公司 Environment self-adaption method based on infrared distance induction device
WO2020135839A1 (en) * 2018-12-29 2020-07-02 青岛海尔空调器有限总公司 Method and apparatus for controlling anti-direct blowing air conditioner, storage medium and computer device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107869825B (en) * 2017-10-02 2020-12-11 广东美的制冷设备有限公司 Air conditioner control method, air conditioner and readable storage medium
CN109990428B (en) * 2019-04-18 2020-06-05 珠海格力电器股份有限公司 Method and device for determining installation position of air conditioner
CN111142120A (en) * 2020-02-25 2020-05-12 珠海市一微半导体有限公司 Infrared receiving and transmitting unit, detection device, multi-infrared detection device and obstacle avoidance robot

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107525238A (en) * 2017-08-22 2017-12-29 广东美的制冷设备有限公司 Air-conditioner control method, infrared signal transceiver and air conditioner
CN107906680A (en) * 2017-10-02 2018-04-13 广东美的制冷设备有限公司 Infrared sensor control process method, apparatus, air conditioner and readable storage medium storing program for executing
CN110233547A (en) * 2018-03-06 2019-09-13 江森自控科技公司 HVAC actuator with contactless adjustable setting
CN108489049A (en) * 2018-03-29 2018-09-04 广东美的制冷设备有限公司 Infrared detection distance method, air conditioner and the computer storage media of air conditioner
CN108923865A (en) * 2018-07-06 2018-11-30 Oppo(重庆)智能科技有限公司 Calibration method, device, mobile terminal and the storage medium of infrared distance sensor
WO2020135839A1 (en) * 2018-12-29 2020-07-02 青岛海尔空调器有限总公司 Method and apparatus for controlling anti-direct blowing air conditioner, storage medium and computer device
CN111207782A (en) * 2020-01-06 2020-05-29 厦门狄耐克智能科技股份有限公司 Environment self-adaption method based on infrared distance induction device

Also Published As

Publication number Publication date
CN112665168A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
EP3130696A1 (en) Washing machine and anti-pinching control method for electric door thereof
US9825775B2 (en) Local interconnect network system and method, and computer readable medium for implementing the method
JP4136359B2 (en) Microcomputer
US7240222B1 (en) Using ACPI power button signal for remotely controlling the power of a PC
EP3130697A1 (en) Washing machine and anti-pinching control method for electric door thereof
US20120049651A1 (en) Power switch control device and method
CN112665168B (en) Method and device for controlling working state of infrared sensor and storage medium
US20070226545A1 (en) Methods and systems for generating and storing computer program execution trace data
US5740199A (en) High speed wire-or communication system and method therefor
CN112593777B (en) Motor control method of intelligent door lock and intelligent door lock
WO2021027970A1 (en) Traveling method, traveling device and storage medium
CN116905924A (en) Control method, device, medium and equipment for noise reduction brush rocker arm motor
CN112665627B (en) Method, device and storage medium for calibrating infrared performance of air conditioner
KR970056215A (en) Method and apparatus for direct data transmission between telecommunication network accessor and multimedia data processor
CN107577562B (en) Data interaction method and device and computer readable storage medium
JP7153277B2 (en) Determining presence and absence
CN110202571B (en) Method, device and equipment for setting sensor address and storage medium
CN114980263B (en) Method and device for controlling terminal, processing equipment and storage medium
ATE259528T1 (en) MONITORING SYSTEM
US20230203872A1 (en) Object detection sensor and automatic door system
KR101927022B1 (en) Operation method of terminal, application, and operation method of server
US20230195447A1 (en) Method for expanding application possibilities of a sensor, sensor and application of the sensor
JP2504191B2 (en) Microprocessor
KR101831026B1 (en) Operation method of terminal, application, and operation method of server
CN114035489A (en) Gate valve control method and system, gate valve and computer readable storage medium

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