This application claims the benefit of Chinese Patent Application No. 202310355675.7, filed on Mar. 27, 2023, which is incorporated herein by reference in its entirety.
The present disclosure relates to the technical field of intelligent sensing, and particularly to a heating body sensing method, apparatus, device, and storage medium.
With the development of society, an object detection technology is more and more widely applied to intelligent identification of an electronic device. At present, in most of the prior arts, operations are performed under the hardware collocation of one transmission and one reception to confirm people in a specific space. In the one transmission and one reception, one transmission represents that a given light source illuminates the specific space, and one reception represents that a given sensor continuously receives the reflection of the given light source for the specific space.
However, by the one transmission and one reception technology, due to the high cost of the core hardware thereof, products are popularized difficultly; moreover, at least medium and high-order central processing unit/processor (CPU) hardware is required to do a large number of complex real-time operations, and the data processing efficiency is low; meanwhile, the system has low falling resistance; furthermore, in a case that a certain degree of dust is present in the environment, the identification determination will be in failure.
In view of this, embodiments of the present disclosure provide a heating body sensing method, apparatus, device, and storage medium, thereby reducing the sensing cost under the presence condition of a heating body and improving the sensing efficiency.
According to a first aspect, a heating body sensing method is provided. The method includes:
In some embodiments, the sensing signal includes a first signal and a second signal, where the first signal is used to represent the presence of a heating body, and the second signal is used to represent the absence of a heating body.
In some embodiments, the generating a sensing signal according to the first detection signal and the receiving state of the second detection signal includes:
In some embodiments, the generating a sensing signal according to the first detection signal and the receiving state of the second detection signal includes:
In some embodiments, the generating the sensing signal according to the representation of the first detection signal specifically includes:
In some embodiments, the generating the sensing signal periodically according to the representation of the first detection signal specifically includes:
In some embodiments, the generating a sensing signal of the current period according to the representation of the first detection signal includes:
According to a second aspect, a heating body sensing apparatus is provided. The apparatus includes:
According to a third aspect, a heating body sensing device is provided. The heating body sensing device includes:
According to a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program; and when the computer program is executed by a processor, the method according to the first aspect is implemented.
According to the embodiments of the present disclosure, a detection temperature is acquired by receiving a first detection signal and is stored, the change of a heat source is acquired according to a receiving state of a second detection signal, and a sensing signal is generated according to the first detection signal and the receiving state of the second detection signal to determine the presence condition of a heating body. Therefore, the sensing cost of the heating body may be reduced, and the sensing efficiency may be improved.
The foregoing and other objectives, features and advantages of the present disclosure will become more clearly from the following description of embodiments of the present disclosure with reference to the accompanying drawings. In the drawings:
The present disclosure is described below based on embodiments, but the present disclosure is not only limited to these embodiments. In the following detailed description of the present disclosure, some specific details are described in detail. The present disclosure may be fully understood by those skilled in the art without the description of these detailed parts. To avoid confusing the essence of the present disclosure, well-known methods, processes, flows, elements and circuits are not described in detail.
In addition, it should be understood by those of ordinary skill in the art that the drawings provided herein are for illustrative purposes, and the drawings are not necessarily drawn to scale.
Meanwhile, it should be understood that in the following description, “circuit” refers to a conductive loop constituted by at least one element or sub-circuit through an electrical connection or an electromagnetic connection. When an element or circuit is referred to as being “connected to” another element or an element/circuit is referred to as being “connected” between two nodes, it may be directly coupled or connected to another element or there may be intermediate elements, and the connection between the elements may be physical, logical, or a combination thereof. On the contrary, when an element is referred to as being “directly coupled to” or “directly connected to” another element, it means that there is no intermediate element between the two elements.
Unless specifically required in the context, words like “include”, “contain” and the like in the description should be interpreted as inclusive rather than exclusive or exhaustive meanings, that is to say, “including, but not limited to”.
In the description of the present disclosure, it should be understood that the terms “first”, “second” and the like are merely used for descriptive purposes, but cannot be understand as indicating or implying relative importance. Moreover, in the description of the present disclosure, unless otherwise stated, “a plurality of” means two or more.
With the development of society, object detection is more and more widely applied to various scenarios. In the prior art, generally, operations are performed through one transmission and one reception hardware in combination with a light detection and ranging (LiDAR), time of flight (TOF) or structure light algorithm to confirm an object in a specific space.
The principle of the LiDAR algorithm is shown in
The difference of the TOF algorithm is that the light source is emitted at a specially controlled frequency, in a case that the reflected light received by a receiver conforms to the controlled frequency, the algorithm will effectively take the reflected light, and perform an operation with the light speed in the process time to obtain the distance, like LiDAR.
The structure light algorithm is: the light source emits a controlled special pattern, the reflected light returns to a receiver, the algorithm will make a Fourier expression on the known emitted light pattern and the reflected light pattern to be converted into a distance and then be converted into an outline, and finally, whether people is present or not is known.
However, the operation is performed by a one transmission and one reception hardware collocation method to determine the object in the specific space, at least medium and high-order CPU hardware is required to do a large number of complex real-time operation, the used core hardware has high cost, so that products are popularized difficultly and may be owned by only high-end consumer groups. Meanwhile, the system has low falling resistance. Furthermore, in a case that a certain degree of dust is present in the environment, the identification determination will be in failure.
In view of this, the present disclosure provides a heating body sensing method and apparatus, thereby reducing the sensing cost under the presence of a heating body and improving the sensing efficiency.
The first detection unit 21 is configured to acquire a first detection signal, and the first detection signal is used to represent a detection temperature. More specifically, the representation of the first detection signal is a temperature value.
In some implementation manners, the first detection unit may be implemented by an infrared temperature sensor. The infrared temperature sensor is a sensor for detecting the temperature of an object by infrared rays, has the advantages of high sensitivity and the like, and is often used for non-contact temperature measurement. Specifically, since all objects above absolute zero in nature are constantly radiating energy outward, the magnitude of the outward radiation energy of an object and the distribution of the object according to the wavelength are closely related to the surface temperature of the object. The higher of the temperature of the object is, the stronger the ability of emitting the infrared radiation is. The infrared temperature sensor measures the absorbed infrared radiation by utilizing the heat effect of infrared radiation and through thermoelectric effect, pyroelectric effect and a thermistor, and indirectly measures the temperature of the object for radiating infrared light.
It should be understood that detecting temperature by the infrared temperature sensor is only one implementation manner of the embodiments of the present disclosure, and in some other implementation manners, the first detection unit may detect the temperature in a monitoring range through various other devices capable of continuously receiving heat sources, for example, a temperature sensor for radiation temperature measurement and a contact type temperature sensor, which will not be limited by the embodiments of the present disclosure.
The second detection unit 22 is configured to output a second detection signal, and the second detection signal is used to represent that the heat source changes. That is, when the heat source in the detection range of the second detection unit 22 changes, the second detection signal is output.
In some implementation manners, the second detection unit 22 may be implemented by a pyroelectric infrared sensor. The pyroelectric infrared sensor is configured to detect infrared rays emitted by a heating body (for example, people or some animals) and convert the infrared rays into electrical signals for output. The pyroelectric infrared sensor detects temperature change, so when the ambient temperature is stable, the pyroelectric infrared sensor has no output. When the heating body enters the monitoring range, since the temperature of the heating body is different from the ambient temperature, the pyroelectric infrared sensor detects that temperature changes and outputs a second detection signal. In a case that the heating body does not move after entering the monitoring range, the temperature does not change and the pyroelectric infrared sensor has no output. When the heating body leaves a detection area, since the temperature of the heating body is different from the ambient temperature, the pyroelectric infrared sensor detects that temperature changes and outputs the second detection signal. Therefore, the activity of the heating body, such as a human body or animal, may be detected by the pyroelectric infrared sensor, and may be converted into an electrical signal for output. It should be understood that detecting the change of the heat source by the pyroelectric infrared sensor is only one implementation manner of the embodiments of the present disclosure, and in some other implementation manners, the change of the heat source in the monitoring range may be detected through other various manners, for example, an optical sensor and a radar sensor, which will not limited by the embodiments of the present disclosure.
The control unit 23 includes a processor and a memory, and the memory is suitable for storing an instruction or program executable by the processor. The processor may be an independent microprocessor, or may be one or more microprocessor sets. Thus, the processor performs the heating body sensing method of the embodiments of the present disclosure by executing the instruction stored by the memory.
It should be noted that the embodiments of the present disclosure do not limit the use scenario of the heating body sensing device and may be applied to existing various detection scenarios, for example, may performing recognizable intelligent updating on devices, electrical appliances and 3C products (a washing machine, a refrigerator, cold and warm air, a lamp for lighting, a computer, VR and a food processor) interacting with a heat source (people, pets and environment), may serve as intelligent upgrading of intelligent power-saving/rapid waking up the above various devices, electrical appliances and 3C products, and may be configured to collect big data of “attendance rate” and “use rate”.
Specifically,
Step S110: receiving and storing a first detection signal, where the first detection signal is used to represent a detection temperature.
In some implementation manners, the first detection unit continuously detects the temperature in the monitoring range to acquire the first detection signal, the infrared sensor transmits the acquired first detection signal to the control unit, and the received first detection signal is stored by the control unit, where the first detection signal is used for representing a detection temperature.
Further, the control unit samples the first detection signal according to a predetermined time interval, and stores the first detection signal. The predetermined time interval may be set according to an actual application scenario, for example, 100 milliseconds or 1 second. That is, the first detection unit continuously acquires the first detection signal and outputs the first detection signal to the control unit, and the control unit samples the received first detection signal according to the predetermined time interval and stores the received first detection signal.
In some embodiments, the stored data further includes time information corresponding to each first detection signal in addition to the first detection signal mentioned above.
Step S120: determining a receiving state of a second detection signal, where the receiving state includes that: the second detection signal is received and the second detection signal is not received, and the second detection signal is used to represent that a heat source changes.
In some implementation manners, whether the heat source changes is determined by whether the pyroelectric infrared sensor acquires the second detection signal. After the pyroelectric infrared sensor receives the second detection signal, it indicates that the heat source in the monitoring range changes, the pyroelectric infrared sensor transmits the second detection signal to the control unit, and after the control units receives the second detection unit, corresponding data processing is started.
Specifically, the pyroelectric infrared sensor detects temperature change, so when the ambient temperature is stable, the pyroelectric infrared sensor has no output. When the heating body enters the monitoring range, since the temperature of the heating body is different from the ambient temperature, the pyroelectric infrared sensor detects that temperature changes and outputs the second detection signal, and after the control unit receives the second detection signal, corresponding data processing is started. In a case that the heating body does not move after entering the monitoring range, the temperature does not change and the pyroelectric infrared sensor has no output. When the heating body leaves a detection area, since the temperature of the heating body is different from the ambient temperature, the pyroelectric infrared sensor detects that temperature changes and outputs the second detection signal, and after the control unit receives the second detection signal, corresponding data processing is started. Therefore, the activity of the heating body, such as a human body or animal, may be detected by the pyroelectric infrared sensor, and may be converted into an electrical signal for output.
It should be understood that detecting the temperature change by the pyroelectric infrared sensor is only one implementation manner of the embodiments of the present disclosure, and the change of the heat source in the monitoring range may be detected through other various manners, for example, an optical sensor and a radar sensor, which will not limited by the embodiments of the present disclosure.
Step S130: generating a sensing signal according to the first detection signal and the receiving state of the second detection signal, where the sensing signal is used to represent the presence condition of a heating body.
The receiving state of the second detection signal includes that: the second detection signal is received and the second detection signal is not received, and the second detection signal is used to represents that the heat source changes. As mentioned above, the second detection signal is used to represent that the heat source changes. Therefore, after the control unit receives the second detection signal, it represents that the heat source in the detection range changes.
Further, the sensing signal includes a first signal and a second signal, where the first signal is used to represent the presence of a heating body, and the second signal is used to represent the absence of a heating body.
Specifically, after the second detection signal is received, whether the second detection signal is received for the first time is determined; in response to that the second detection signal is received for the first time, the sensing signal is generated as a first signal; and in a case that the second detection signal is not received for the first time, the sensing signal is generated according to the representation of the first detection signal.
The step that generating the sensing signal according to the representation of the first detection signal specifically includes: generating the sensing signal periodically according to the representation of the first detection signal. Specifically, in each period, a detection duration of a current period is determined, where the detection duration of the current period is a time difference between a current time and a time when the second detection signal is received; in response to that the detection duration is less than or equal to a second predetermined duration, the sensing signal of the current period is generated according to the representation of the first detection signal; and in response to that the detection duration is greater than the second predetermined duration, this detection is ended, and the sensing signal is kept unchanged.
Specifically, since after the second detection signal is received, it represents that the heat source in the detection range changes, but after that, the heat source in the detection range may keep unchanged for a long time. In a case that the control unit performs detection all the time, the detection result is unchanged. Therefore, to reduce the power consumption, in the embodiments of the present disclosure, a second predetermined duration (for example, 8 seconds, 10 seconds and 15 seconds) is preset; within the second predetermined duration after the second detection signal is received, the sensing signal is generated periodically; and after the second predetermined duration after the second detection signal is received, the sensing signal is not generated any more, and the sensing signal is kept unchanged, thereby reducing the power of the heating body sensing device.
Within the second predetermined duration after the second detection signal is received and within each period, the control unit generates the sensing signal according to the first detection signal at the current time and the stored historical first detection signal. Specifically, a reference signal is acquired from data storing the first detection signal, where the reference signal is a first detection signal at a time corresponding to a first predetermined duration before the current time, and the first predetermined duration is a preset value, for example, 4 seconds and 5 seconds. Taking the case where the first predetermined duration is 5 seconds as an example for description, the reference signal is the first detection signal corresponding to the time 5 seconds before the current time. The reference signal is subtracted from the first detection signal at the current time to determine the temperature difference data. In a case that the temperature difference data is greater than a preset upper limit value, it represents that the temperature in the detection range at the current time is increased higher than the temperature before the first predetermined duration, then the sensing signal is generated as a first signal, representing that a heating body is present at the current time. In a case that the temperature difference data is less than a preset lower limit value, it represents that the temperature in the detection range at the current time changes little before the first predetermined duration, then the sensing signal is generated as a second signal, representing the absence of the heating body in the current period. In a case that the temperature difference data is greater than or equal to a preset lower limit value and less than or equal to the preset upper limit value, the sensing signal is kept unchanged, where that the sensing signal is kept unchanged specifically includes: the sensing signal in the current period is set to be the same as the sensing signal in the previous period. Therefore, the above step is repeated within each period until the difference value between the current time and the time when the second detection signal is received is greater than the second predetermined duration.
It should be understood that in the detection process of the second predetermined duration, the second detection signal is received again, then taking the time when the second detection signal is received again as a starting time, the sensing signal is generated periodically according to the presentation of the first detection signal. That is, taking the case where the second predetermined duration is 8 seconds as an example for description, in a case that the second detection signal is not received again within 8 seconds after the second detection signal is received, the sensing signal within 8 seconds is acquired according to a predetermined period. In a case that the second detection signal is received again within 8 seconds after the second detection signal is received, execution is restarted.
Taking the case where the first predetermined duration is set to 5 seconds and the second predetermined duration is set to 8 seconds as an example for description, assuming that the second detection signal is received at the 20th second after the system is electrified and the second detection signal is not received for the first time, the first detection signal corresponding to 5 seconds before the current time is acquired as a reference signal, that is, the first detection signal corresponding to the 15th second after the system is electrified is acquired as a reference signal corresponding to the 20th second, the first detection signal corresponding to the 15th second is subtracted from the 20th second, it is determined whether the temperature difference data corresponding to the 20th second is greater than a preset upper limit value or less than a preset lower limit value; when the temperature difference data corresponding to the 20th second is greater than the preset upper limit value, the sensing signal is generated as the first signal at the 20th second, representing that a heating body is present; when the temperature difference data corresponding to the 20th second is less than the preset lower limit value, it represents that no heating body is present; when the temperature difference data corresponding to the 20th second is greater than or equal to the preset lower limit value and less than or equal to the preset upper limit value, the sensing signal is kept unchanged, that is, the sensing signal in the current period is set to be the same as the sensing signal in the previous period.
Meanwhile, in each period, it is determined whether the detection duration is less than or equal to 8 seconds. In a case that the detection duration is less than or equal to 8 seconds, the sensing signal at this period is started for timing; and in a case that the detection duration is not less than or equal to 8 seconds, the sensing signal is kept unchanged after this detection is ended.
Furthermore, the second detection signal is received again in the detection period from the 20th second to the 28th second (for example, the 26th second after the system is electrified), then taking the 26th s after the system is electrified as the starting time for timing the second predetermined duration, the sensing signal is generated again periodically according to the representation of the first detection signal.
It should be understood that when the second detection signal is received and the second detection signal is received for the first time, the sensing signal is generated as the first signal. This is because the time difference between the time when the second detection signal is received for the first time and the time when the system is electrified may be less than the first predetermined duration, at this time, the reference signal corresponding to the first detection signal at the current time cannot be acquired, so the corresponding temperature difference cannot be calculated. Therefore, when the second detection signal is received and the second detection signal is received for the first time, the sensing signal is directly generated as the first signal.
According to the embodiments of the present disclosure, a detection temperature is acquired by receiving a first detection signal and is stored, the change of a heat source is acquired according to a receiving state of a second detection signal, and a sensing signal is generated according to the first detection signal and the receiving state of the second detection signal to determine the presence condition of a heating body. Therefore, the sensing cost of the heating body may be reduced, and the sensing efficiency may be improved.
The heating body in the monitoring range at the time t3 leaves, the temperature in the monitoring range changes, the pyroelectric infrared sensor detects the second detection signal 43, the control unit starts from the time t3 to calculate the temperature difference data according to the stored first detection signal, a waveform 44 takes the time t3 as the starting time to continue the temperature difference data waveform within the time period of the second predetermined duration; and since when the heating body in the environment leaves, the ambient temperature is finally changed from a stable state with the heating body to the stable state without the heating body as time goes by. That is, before the heating body leaves the monitoring range and after the heating body leaves the monitoring range for a certain time, the ambient temperature is the stable state; therefore, the temperature difference data waveform shown in the waveform 42 is reduced from 0 to a certain value and then is increased to 0, the temperature difference data at a time t4 is less than a preset lower limit value, and the sensing signal is generated as a second signal at the time t4 and is continuously output.
A waveform 45 is a changing waveform of the sensing signal; before the time t2, the sensing signal is the second signal, representing that no heating body is present in the monitoring range in the time period; within the time t2-t4, the sensing signal is the first signal, representing that a heating body is present in the monitoring range in the time period; and after the time t4, the sensing signal is the second signal, representing that no heating body is present in the monitoring range in the time period.
The heating body in the monitoring range at the time t30 leaves, the temperature in the monitoring range changes, the pyroelectric infrared sensor detects the second detection signal 53, the control unit starts from the time t30 to calculate the temperature difference data according to the stored first detection signal, a waveform 54 takes the time t30 as the starting time to continue the temperature difference data waveform within the time period of the second predetermined duration; and since when the heating body in the environment leaves, the ambient temperature is finally changed from a stable state with the heating body to the stable state without the heating body as time goes by. That is, before the heating body leaves the monitoring range and after the heating body leaves the monitoring range for a certain time, the ambient temperature is in the stable state. Therefore, the temperature difference data waveform shown in the waveform 52 is reduced from 0 to a certain value and then is kept unchanged. It is not difficult to understand that the value is a difference value between the ambient temperature in the stable state before the heating body leaves the monitoring range and the ambient temperature in the stable state after the heating body leaves the monitoring range. The temperature difference data at a time t40 is less than the preset lower limit value, so the sensing signal is generated as the second signal at the time t40 and is continuously output.
A waveform 55 is a changing waveform of the sensing signal; before the time t20, the sensing signal is the second signal, representing that no heating body is present in the monitoring range in the time period; within the time t20-t40, the sensing signal is the first signal, representing that a heating body is present in the monitoring range in the time period; and after the time t40, the sensing signal is the second signal, representing that no heating body is present in the monitoring range in the time period.
Therefore, the heating body serves as an emitting source, a sensing apparatus performs signal receiving and processing, the presence condition of the heating body is converted into a vector on a one dimension, whether the presence condition of the heating body in the monitoring range is determined based on whether the output signal is the first signal or the second signal. Specifically, in the monitoring range, the heating body is present in the time period when the output signal is the first signal, and no heating body is present in the time period when the output signal is the second signal. Therefore, the complex operation is reduced, and medium and high-order core operand is not required, so that data may be processed by a low-cost structural component (for example, a single chip).
It should be understood that in the above embodiments, detecting the temperature and detecting the temperature change are implemented by the infrared sensor and the pyroelectric infrared sensor, respectively; and detecting the temperature and detecting the temperature change actually may be implemented by existing various manners, which will not be limited by the embodiments of the present disclosure.
Step S601: receiving and storing a first detection signal.
Specifically, the sensor (for example, the infrared sensor) capable of continuously receiving the heat source continuously detects the temperature in the monitoring range to acquire and store the first detection signal, where the first detection signal is used to represent the detection temperature.
Step S602: determining whether a second detection signal is received or not.
The moving heating body is detected by a device (for example, the pyroelectric infrared sensor) capable of detecting the moving heating body, thereby determining whether to acquire the second detection signal. In a case that the second detection signal is received, Step S603 is performed, otherwise, Step S602 is continuously performed to determine whether the second detection signal is received or not.
Step S603: determining whether the second detection signal is received for the first time.
In a case that the second detection signal is received for the first time, Step S607 is performed to direct generate a sensing signal, otherwise, Step S604 is entered.
Step S604: acquiring a reference signal from data storing the first detection signal.
Specifically, the reference signal is acquired from the data storing the first detection signal, and the reference signal is a first detection signal at a time corresponding to a first predetermined duration before the current time.
Step S605: determining temperature difference data according to the reference signal and the first detection signal at the current time.
Specifically, the reference signal is subtracted from the first detection signal at the current time to determine the temperature difference data.
Step S606: determining whether the temperature difference data is greater than a preset upper limit value.
In a case that the temperature difference data is greater than the preset upper limit value, Step S607 is performed, otherwise, Step S608 is performed.
Step S607: generating the sensing signal as a first signal.
In this step, the sensing signal in the current period is generated as the first signal and is output to represent the presence of the heating body.
Step S608: determining whether the temperature difference data is less than a preset lower limit value.
In a case that the temperature difference data is less than the lower limit value, Step S609 is performed, otherwise, Step S610 is performed.
Step S609: generating the sensing signal as a second signal.
In this step, the sensing signal in the current period is generated as the second signal and is output to represent that no heating body is present.
Step S606 and Step S608 do not have a fixed performing relationship. In an optional implementation manner, Step S608 is performed and then Step S606 is performed. In an optional implementation manner, Step S606 and Step S608 are performed at the same time.
Step S610: setting the sensing signal to be the same as the sensing signal in the previous period.
Specifically, in a case that the temperature difference data is greater than or equal to a preset lower limit value and less than or equal to the preset upper limit value, the sensing signal in the current period is set to be the same as the sensing signal in the previous period.
Step S611: determining whether the detection duration is greater than a second predetermined duration.
In a case that the detection duration is greater than or equal to the second predetermined duration, Step S612 is performed, otherwise, Step S604 is performed and the next detection period is entered.
Step S612: keeping the sensing signal unchanged.
Step S613: ending this detection.
In a case that the detection duration is greater than the second predetermined duration, this detection is ended, and the sensing signal is kept as the sensing signal in the current period and is continuously output.
According to the embodiments of the present disclosure, a detection temperature is acquired by receiving a first detection signal and is stored, the change of a heat source is acquired according to a receiving state of a second detection signal, and a sensing signal is generated according to the first detection signal and the receiving state of the second detection signal to determine the presence condition of a heating body. Therefore, the sensing cost of the heating body may be reduced, and the sensing efficiency may be improved.
The receiving module 71 is configured to receive and store the first detection signal, where the first detection signal is used to represent the detection temperature. The determining module 72 is configured to determine a receiving state of the second detection signal, where the receiving state includes that: the second detection signal is received and the second detection signal is not received, and the second detection signal is used to represent that a heat source changes. The generation module 73 is configured to generate a sensing signal according to the first detection signal and the receiving state of the second detection signal, where the sensing signal is used to represent the presence condition of a heating body.
In some implementation manners, the sensing signal includes a first signal and a second signal, where the first signal is used to represent the presence of a heating body, and the second signal is used to represent the absence of a heating body.
In some implementation manners, the generation module 73 includes a first generation unit and a second generation unit. The first generation unit is configured to: in response to receiving the second detection signal which is received for the first time, generate the sensing signal as the first signal. The second generation unit is configured to: in response to receiving the second detection signal which is not received for the first time, generate the sensing signal according to a representation of the first detection signal.
In some implementation manners, the first detection signal at the time corresponding to the first predetermined duration before the current time is acquired from the data storing the first detection signal to serve as a reference signal, and the temperature difference data is determined according to the reference signal and the first detection signal at the current time. In response to that the temperature difference data is greater than a preset upper limit value, the sensing signal is generated as a first signal. In response to that the temperature difference data is less than a preset lower limit value, the sensing signal is generated as a second signal. in response to that the temperature difference data is greater than or equal to a preset lower limit value and is less than or equal to the preset upper limit value, keeping the sensing signal unchanged.
In some implementation manners, a detection duration is determined, where the detection duration is a time difference between a current time and a time when the second detection signal is received. In response to that the detection duration is less than or equal to a second predetermined duration, a next period is entered. In response to that the detection duration is greater than the second predetermined duration, this detection is ended and the sensing signal is kept unchanged. Therefore, the sensing signal is generated periodically according to the representation of the first detection signal.
Those skilled in the art should understand that the embodiment of the present disclosure may provide a method, an apparatus (a device) or a computer program product. Therefore, the present application may adopt a form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software with hardware. Furthermore, the present application may adopt a computer program product implemented on one or more computer-readable storage medium (including, but not limited to a magnetic disk memory, a CD-ROM, an optical memory, etc.) including a computer usable program code therein.
The present application is described with reference to flowcharts of the method, apparatus (device) and computer program product according to the embodiments of the present application. It should be understood that each procedure in the flowchart may be implemented by computer program instructions.
These computer program instructions may be stored in a computer-readable memory that may guide a computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction apparatus, and the instruction apparatus implements specified functions in one or more processes of the flowchart.
The computer program instructions may also be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or a processor of other programmable data processing devices to generate a machine, so that an apparatus for implementing specified functions in one or more procedures of the flowchart is generated by instructions executed by the computer or the processor of other programmable data processing devices.
Another embodiment of the present disclosure relates to a non-volatile readable storage medium, which is used to store a computer-readable program, where the computer-readable program is used to assist a computer to perform some or all of the method embodiments described above.
That is, those skilled in the art may understand that all or a part of steps in the method for implementing the above described embodiments may be accomplished by specifying a relevant hardware through a program. The program is stored in a readable storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor to perform all or a part of the steps of the methods in the embodiments of the present application. The storage medium includes: a USB flash disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and another medium that may store program codes.
The above description is only the preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various alterations and changes may be made in the present disclosure for those skilled in the art. Any modification, equivalent replacement, improvement, and the like made within the spirit and principle of the present disclosure should fall within the protection scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202310355675.7 | Mar 2023 | CN | national |