Distance determination method and state control method
By generating a real-time electromagnetic field and determining the distance between a living organism and the device based on the capacitance value, the problem of limited infrared detection range is solved, achieving high-accuracy detection of living organisms and safety control.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2022-11-23
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, infrared detection methods have a limited detection range when determining whether a living being is close to a target device, resulting in low detection accuracy.
By controlling the target device to generate a real-time electromagnetic field, and based on the interaction between the electromagnetic field and the living organism, the voltage value corresponding to the real-time capacitance value is obtained, thereby determining the real-time distance between the target living organism and the device.
It enables comprehensive and multi-angle detection of target life forms, improves detection accuracy, and determines the working status of control devices by distance, avoiding safety hazards and enhancing user experience.
Smart Images

Figure CN115854846B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of household appliance technology, and in particular to a distance determination method, apparatus, state control method, apparatus, computer program product, and computer-readable storage medium. Background Technology
[0002] In some applications of devices or components (referred to as target devices in the following embodiments), there is a need to detect whether a living being (e.g., a human body) is approaching, and to perform corresponding actions when a living being is detected approaching.
[0003] Typically, target devices can use infrared detection to determine if a living being is nearby. However, the application scenarios of infrared detection are limited and the detection range is limited, making it impossible to accurately detect whether a living being is around the target device, resulting in low detection accuracy. Summary of the Invention
[0004] Therefore, it is necessary to provide a distance determination method, apparatus, state control method, apparatus, computer program product, and computer-readable storage medium that can improve the detection accuracy in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a distance determination method, including:
[0006] Control the target device to generate a real-time electromagnetic field;
[0007] Based on the real-time electromagnetic field, the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form is obtained.
[0008] Based on the real-time voltage value, the real-time distance between the target life form and the target device is determined.
[0009] In one embodiment, the control target device generates a real-time electromagnetic field, including:
[0010] Determine the real-time transmission signal corresponding to the transmission frequency;
[0011] The target device is controlled to generate the real-time electromagnetic field corresponding to the real-time transmitted signal.
[0012] In one embodiment, obtaining the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target living organism includes:
[0013] Based on the multiple capacitance changes formed between the target device and the target life form, a corresponding real-time capacitance value and a voltage value corresponding to the real-time capacitance value are determined; wherein, the corresponding real-time capacitance value is the sum of the calibration capacitance value and each capacitance change, the calibration capacitance value is the capacitance formed between the target device and the life form when the distance between the life form and the target device is greater than or equal to a first calibration distance; each voltage value is the ratio of the current value corresponding to the real-time transmitted signal to a first value, the first value being the product of the corresponding real-time capacitance value and the transmission frequency;
[0014] The real-time voltage value is obtained based on the preset sampling period, the preset sampling quantity, and the corresponding voltage value.
[0015] In one embodiment, the calibration distance is the distance between the target life form and the target device, and the step of determining the real-time distance between the target life form and the target device based on the real-time voltage value includes:
[0016] When the real-time voltage value is less than the first calibration voltage value and the real-time voltage value is greater than or equal to the second calibration voltage value, the real-time distance between the target life form and the target device is determined to be within a first calibration range; wherein, the calibration distance includes a first calibration distance and a second calibration distance, the upper limit of the first calibration range is the first calibration distance, the lower limit of the first calibration range is the second calibration distance, and the second calibration distance is less than the first calibration distance.
[0017] In one embodiment, the method further includes: when the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value, determining the real-time distance between the target life form and the target device within a second calibration range; wherein the calibration distance further includes a third calibration distance, the upper limit of the second calibration range is the second calibration distance, the lower limit of the second calibration range is the third calibration distance, and the third calibration distance is less than the second calibration distance.
[0018] In one embodiment, the method further includes: when the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value, determining that the real-time distance between the target life form and the target device is within the third calibration range; wherein the calibration distance further includes a fourth calibration distance, the upper limit of the third calibration range is the third calibration distance, the lower limit of the third calibration range is the fourth calibration distance, and the fourth calibration distance is less than the third calibration distance.
[0019] In one embodiment, the method further includes: when the real-time voltage value is less than the fourth calibration voltage value, determining that the real-time distance between the target life form and the target device is within the fourth calibration range; wherein the upper limit of the fourth calibration range is the fourth calibration distance.
[0020] Secondly, this application provides a distance determining device, the device comprising:
[0021] The magnetic field generating module is used to control the target device to generate a real-time electromagnetic field.
[0022] The voltage value acquisition module is used to obtain the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target living organism based on the real-time electromagnetic field.
[0023] The judgment module is used to determine the real-time distance between the target life form and the target device based on the real-time voltage value.
[0024] Thirdly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0025] Control the target device to generate a real-time electromagnetic field;
[0026] Based on the real-time electromagnetic field, the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form is obtained.
[0027] Based on the real-time voltage value, the real-time distance between the target life form and the target device is determined.
[0028] Fourthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0029] Control the target device to generate a real-time electromagnetic field;
[0030] Based on the real-time electromagnetic field, the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form is obtained.
[0031] Based on the real-time voltage value, the real-time distance between the target life form and the target device is determined.
[0032] The aforementioned distance determination method, apparatus, computer-readable storage medium, and computer program product control the target device to generate a real-time electromagnetic field. Based on the real-time electromagnetic field, they obtain the real-time voltage value corresponding to the real-time capacitance value formed between the target device and the target living organism. Then, they determine the real-time distance between the target living organism and the target device based on the real-time voltage value. By utilizing the interaction between the conductive properties of the target living organism and the real-time electromagnetic field generated by the target device, they determine whether the target living organism is close to the target device. Compared with existing infrared detection methods, the method proposed in this application can comprehensively and from multiple angles detect whether the target living organism is close to the target device, thereby improving the detection accuracy.
[0033] Fifthly, this application provides a state control method, comprising:
[0034] Obtain the real-time distance between the target user and the target device; wherein the real-time distance between the target user and the target device is the distance determined based on the method described in the first aspect or one of the embodiments of the first aspect, and the target life form is the target user;
[0035] The operating status of the target device is controlled based on the real-time distance and the current operating mode of the target device.
[0036] In one embodiment, the calibration distance is the distance between the target user and the target device, the target device being a first target device, and the step of controlling the operating state of the target device based on the real-time distance and the current operating mode of the target device includes:
[0037] When the real-time distance is within the first calibration range and the target device is currently operating in the first mode, the first mode of the target device is maintained; wherein, the first mode is the heating mode, the calibration distance includes a first calibration distance and a second calibration distance, the second calibration distance is less than the first calibration distance, and the first calibration range is between the first calibration distance and the second calibration distance;
[0038] When the real-time distance is within the first calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the first gear; wherein, the second mode is the air supply mode.
[0039] In one embodiment, the method further includes: reducing the heating power of the first mode when the real-time distance is within the second calibration range and the target device is currently operating in the first mode; wherein the calibration distance further includes a third calibration distance, the third calibration distance is smaller than the second calibration distance, and the second calibration range is between the second calibration distance and the third calibration distance;
[0040] When the real-time distance is within the second calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the second gear; the second gear is lower than the first gear.
[0041] In one embodiment, the method further includes: when the real-time distance is within a third calibration range and the target device is currently operating in the first mode, turning off the first mode; wherein the calibration distance further includes a fourth calibration distance, the fourth calibration distance is less than the third calibration distance, and the third calibration range is between the third calibration distance and the fourth calibration distance;
[0042] When the real-time distance is within the third calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the third gear; the third gear is lower than the second gear.
[0043] In one embodiment, the method further includes: when the real-time distance is within a fourth calibration range and the target device is currently operating in the first mode, controlling the target device to move away from the target user; wherein the fourth calibration range is between the target device and the fourth calibration distance;
[0044] When the real-time distance is within the fourth calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the fourth gear; the fourth gear is less than the third gear.
[0045] In one embodiment, the preset distance is the distance between the target user and the target device, and the target device is a second target device. The step of controlling the operating state of the target device based on the real-time distance and the current operating mode of the target device includes:
[0046] When the real-time distance is within a first preset range and the target device is currently operating in a third mode, the third mode of the target device is maintained; wherein, the third mode is a heating mode, the preset distance includes a first preset distance and a second preset distance, the second preset distance is less than the first preset distance, and the first preset range is between the first preset distance and the second preset distance.
[0047] In one embodiment, the method further includes: reducing the heating power of the third mode when the real-time distance is within a second preset range and the target device is currently operating in the third mode; wherein the preset distance further includes a third preset distance, the third preset distance is less than the second preset distance, and the second preset range is between the second preset distance and the third preset distance.
[0048] In one embodiment, it further includes:
[0049] When the real-time distance is within a third preset range and the target device is currently operating in the third mode, the third mode is turned off; wherein, the preset distance also includes a fourth preset distance, the fourth preset distance is less than the third preset distance, and the third preset range is between the third preset distance and the fourth preset distance.
[0050] In one embodiment, the method further includes: when the real-time distance is within a fourth preset range and the current operating mode of the target device is the third mode, controlling the target device to move away from the target user; wherein the fourth preset range is between the target device and the fourth preset distance.
[0051] Sixthly, this application provides a state control device, the device comprising:
[0052] A distance acquisition module is used to acquire the real-time distance between a target user and a target device; wherein, the real-time distance between the target user and the target device is a distance determined based on the method described in the first aspect or one of the embodiments of the first aspect, and the target life form is the target user;
[0053] The status control module is used to control the working status of the target device based on the real-time distance and the current working mode of the target device.
[0054] Seventhly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0055] Obtain the real-time distance between the target user and the target device; wherein the real-time distance between the target user and the target device is the distance determined based on the method described in the first aspect or one of the embodiments of the first aspect, and the target life form is the target user;
[0056] The operating status of the target device is controlled based on the real-time distance and the current operating mode of the target device.
[0057] Eighthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0058] Obtain the real-time distance between the target user and the target device; wherein the real-time distance between the target user and the target device is the distance determined based on the method described in the first aspect or one of the embodiments of the first aspect, and the target life form is the target user;
[0059] The operating status of the target device is controlled based on the real-time distance and the current operating mode of the target device.
[0060] The aforementioned state control method, apparatus, computer-readable storage medium, and computer program product acquire the real-time distance between the target user and the target device, thereby determining whether the target user is close to the target device based on the real-time distance, and controlling the working state of the target device to avoid affecting the safety of the target user during the operation of the target device, thereby increasing protection functions, improving the user's experience and safety when using the target device, and avoiding safety hazards. Attached Figure Description
[0061] Figure 1 This is a diagram illustrating the application environment of the distance determination method in one embodiment;
[0062] Figure 2 This is a flowchart illustrating a distance determination method in one embodiment;
[0063] Figure 3 This is a schematic diagram of a process for obtaining the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form in one embodiment.
[0064] Figure 4 This is a flowchart illustrating a state control method in one embodiment;
[0065] Figure 5 This is a schematic diagram of the target device in one embodiment;
[0066] Figure 6 This is a flowchart illustrating a process in one embodiment for determining the real-time distance between a target device and a target user, and controlling the working state of the target device based on the real-time distance and the current working mode of the target device.
[0067] Figure 7 This is a structural block diagram of a distance determining device in one embodiment;
[0068] Figure 8 This is a structural block diagram of a state control device in one embodiment. Detailed Implementation
[0069] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0070] The distance determination method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, the target device 102 includes a distance determining device 104. The distance determining device 104 detects whether the target life form 106 is approaching the target device 102. Specifically, the distance determining device 102 controls the target device to generate a real-time electromagnetic field, and based on the real-time electromagnetic field, obtains the real-time voltage value corresponding to the real-time capacitance value formed between the target device and the target life form. Then, based on the real-time voltage value, it determines the real-time distance between the target life form and the target device. It can be understood that after determining the real-time distance between the target life form and the target device, it can determine whether the target life form is approaching or moving away from the target device based on the real-time distance, thereby controlling the target device to perform corresponding actions.
[0071] For example, the target device can be a desk lamp, and the target life form can be a user. When the distance determines that the user is approaching the desk lamp, the desk lamp can be turned on automatically, and when the distance determines that the user is moving away from the desk lamp, the desk lamp can be turned off automatically. In this way, the user can avoid manually turning the desk lamp on and off, thereby improving the user's experience of using the desk lamp.
[0072] For example, the target device can be a cabinet air conditioner, and the target life form can be a user. When the cabinet air conditioner is in air supply mode, and based on distance judgment, when the user is approaching the cabinet air conditioner, the cabinet air conditioner can automatically lower the power level; when the user is moving away from the cabinet air conditioner, the cabinet air conditioner can automatically raise the power level. This avoids the user having to manually raise or lower the power level, thereby improving the user's experience of using the cabinet air conditioner. When the cabinet air conditioner is in heating mode, and based on distance judgment, when the user is approaching the cabinet air conditioner, the cabinet air conditioner can reduce the heating power or turn off the heating mode; when the user is moving away from the cabinet air conditioner, the cabinet air conditioner can maintain the heating mode, thereby improving the user's experience of using the cabinet air conditioner.
[0073] For example, the target device can be an electric heating device, and the target life form can be a user. When the distance determines that the user is close to the electric heating device, the electric heating device can reduce the heating power or turn off the heating mode. When the distance determines that the user is far away from the electric heating device, the electric heating device can maintain the heating mode.
[0074] It is understood that the target life form 106 can be a user or an animal, and the target device 102 can be a household appliance for user use, such as an electric heating device or other type of device that affects the safety of the target life form. It is understood that the specific content of the target device can be determined according to the actual application, and this application does not make specific limitations. For ease of description, the following embodiments are exemplified by the target device 102 being a device that affects the safety of the target life form.
[0075] In one embodiment, such as Figure 2 As shown, a distance determination method is provided, which can be applied to... Figure 1 The following steps are described using the distance determining device 104 as an example:
[0076] S202 controls the target device to generate a real-time electromagnetic field.
[0077] In this embodiment, the target life form is a conductor. Conductors can interact with magnetic fields. Therefore, based on the interaction between the real-time electromagnetic field generated by the target device and the target life form, it can be determined whether the target life form is close to the target device. Specifically, controlling the target device to generate a real-time electromagnetic field includes:
[0078] S11, determine the real-time transmission signal corresponding to the transmission frequency.
[0079] S12 controls the target device to generate a real-time transmission magnetic field corresponding to the real-time transmission signal.
[0080] Once the transmission frequency is determined, the signal can be transmitted at that frequency, and the transmitted signal is the real-time transmission signal. The transmission frequency can be a fixed frequency or a variable frequency. When the transmission frequency is variable, the sampling period and the number of samples need to be set, and the transmission frequency is less than the ratio of 1 to a first value. The first value is the ratio of the number of samples to the sampling period. For example, when f represents the variable transmission frequency, N represents the number of samples, and T represents the sampling period, and the first value is N / T, then f < 1 / (N / T).
[0081] S204, based on the real-time electromagnetic field, obtains the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form.
[0082] In this embodiment, when the target device generates a real-time electromagnetic field, since the target life form is a conductor, there will be an interaction between the target life form and the target device. Specifically, when the target life form approaches the target device, a real-time capacitance value will be formed between the target device and the target life form, so that the corresponding real-time voltage value can be obtained based on the real-time capacitance value.
[0083] S206, Based on the real-time voltage value, determine the real-time distance between the target life form and the target device.
[0084] In this embodiment, the closer the target life form is to the target device, the smaller the corresponding real-time voltage value. Therefore, the real-time distance between the target life form and the target device can be determined by the real-time voltage value, and then it can be determined whether the target life form is close to the target device. When it is determined that the target life form is close to the target device, the target device can be controlled to perform corresponding actions to avoid the target device from affecting the safety of the target life form.
[0085] In the aforementioned distance determination method, a real-time electromagnetic field is generated by controlling the target device, and a real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target living organism is obtained based on the real-time electromagnetic field. Then, the real-time distance between the target living organism and the target device is determined based on the real-time voltage value. By the interaction between the conductor characteristics of the target living organism and the real-time electromagnetic field generated by the target device, it is determined whether the target living organism is close to the target device. Compared with the existing infrared detection methods, the method proposed in this application can detect whether the target living organism is close to the target device comprehensively and from multiple angles, thereby improving the detection accuracy.
[0086] exist Figure 2 In the illustrated embodiment, the implementation of S204 is specifically as follows: Figure 3 The diagram illustrates a process for obtaining the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target living organism. This method is applied to... Figure 1 The following steps are described using the distance determining device 104 as an example:
[0087] S302, based on the multiple capacitance changes formed by the target device and the target life form, determine the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value.
[0088] In this embodiment, when the target life form is not close to the target device, a calibrated voltage value is established between the target life form and the target device. As the target life form gradually approaches the target device, a corresponding capacitance change occurs between the target life form and the target device based on the calibrated voltage value. Therefore, after multiple capacitance changes are established between the target device and the target life form, the corresponding real-time capacitance value is the sum of the calibrated capacitance value and each capacitance change. For example, C0 represents the calibrated voltage value. △ C represents the change in capacitance, so the real-time capacitance value C = C0 + ΔC. The calibration voltage value is a pre-set voltage value, which can be measured in advance through experiments. Specifically, in the experiment, the voltage value formed between the living organism and the target device when the distance between them is greater than or equal to the first calibration distance can be determined as the calibration voltage value.
[0089] In this embodiment, the transmitted signal includes a current value, and each real-time capacitance value corresponds to a voltage value. Therefore, each voltage value is the ratio of the current value corresponding to the real-time transmitted signal to the first value. The first value is the product of the corresponding real-time capacitance value and the transmission frequency. For example, U represents the voltage value, C represents the real-time capacitance value, I represents the current value corresponding to the real-time transmitted signal, and f represents the transmission frequency. Then, the first value = C × f, and U = I / (C × f).
[0090] S304 obtains the real-time voltage value based on the preset sampling period, preset sampling quantity, and corresponding voltage value.
[0091] In this embodiment, the voltage values corresponding to a preset number of samples can be sampled according to a preset sampling period, and the real-time voltage value can be obtained by averaging the preset number of voltage values. For example, if the preset sampling period is T and the preset number of samples is N, then N voltage values are sampled, and the real-time voltage value can be obtained by averaging the N voltage values.
[0092] In summary, Figure 3 In the illustrated embodiment, by determining the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value based on the multiple capacitance changes formed between the target device and the target life form, and then obtaining the real-time voltage value based on the preset sampling period, preset sampling quantity and the corresponding voltage value, it is possible to obtain the real-time voltage value based on the capacitance changes formed between the target life form and the target device, thereby determining the real-time distance between the target life form and the target device based on the real-time voltage value.
[0093] Based on the above, the calibration distance is the distance between the target life form and the target device. Specifically, the real-time distance between the target life form and the target device is determined according to the real-time voltage value, including: when the real-time voltage value is less than the first calibration voltage value and the real-time voltage value is greater than or equal to the second calibration voltage value, the real-time distance between the target life form and the target device is determined to be within a first calibration range; wherein, the calibration distance includes the first calibration distance and the second calibration distance, the upper limit of the first calibration range is the first calibration distance, the lower limit of the first calibration range is the second calibration distance, and the second calibration distance is less than the first calibration distance. Therefore, by setting the first calibration range, it can be determined that the target life form has not yet approached the target device. Therefore, the target device can continue to work according to the previous mode. Wherein, when the target device is an electric heating device, the previous mode can be the heating mode.
[0094] Furthermore, when the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value, the real-time distance between the target life form and the target device is determined to be within the second calibration range; wherein, the calibration distance also includes a third calibration distance, the upper limit of the second calibration range is the second calibration distance, the lower limit of the second calibration range is the third calibration distance, and the third calibration distance is less than the second calibration distance.
[0095] Furthermore, when the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value, the real-time distance between the target life form and the target device is determined to be within the third calibration range; wherein, the calibration distance also includes the fourth calibration distance, the upper limit of the third calibration range is the third calibration distance, the lower limit of the third calibration range is the fourth calibration distance, and the fourth calibration distance is less than the third calibration distance.
[0096] Furthermore, when the real-time voltage value is less than the fourth calibration voltage value, the real-time distance between the target life form and the target device is determined to be within the fourth calibration range; wherein, the upper limit of the fourth calibration range is the fourth calibration distance.
[0097] Based on the above, it can be seen that the above is an illustrative example using the target device as an example. It can be understood that when the target life form is the target user, such as Figure 4 As shown, a state control method is provided, including:
[0098] S402, obtain the real-time distance between the target user and the target device.
[0099] In this embodiment, the real-time distance between the target user and the target device is the distance determined by the distance determination method, wherein, Figures 2 to 3 The target life form shown is the target user in this embodiment. The target device can be a home appliance, such as an electric heating device with a heating function. The home appliance can also be a cabinet air conditioner with a heating mode and a ventilation mode. The heating mode can provide hot air to the user, and the ventilation mode can provide cold air to the user. It is understood that the specific content of the target device can be set according to the actual application scenario, and this embodiment does not limit it.
[0100] S402 controls the operating status of the target device based on the real-time distance and the current operating mode of the target device.
[0101] In this embodiment, by obtaining the real-time distance between the target user and the target device, it is possible to determine whether the target user is close to the target device based on the real-time distance, and control the working state of the target device based on the current working mode of the target device to avoid affecting the safety of the target user during the operation of the target device, thereby increasing the protective function, preventing the target user from touching the target device and causing burns, improving the user's experience and safety when using the target device, and avoiding safety hazards.
[0102] It should be noted that the current working mode of the target device is different when the target device is different. For example, when the target device is the first target device, the first target device can be a cabinet air conditioner, and the current working mode of the cabinet air conditioner can be heating mode or ventilation mode; when the target device is the second target device, the second target device can be a heating device, for example, an electric kettle, and the current working mode of the heating device can be heating mode.
[0103] In one embodiment, taking the target device as the first target device and the target device's current operating mode as heating mode or ventilation mode as an example, the following is an illustrative description: Specifically, the calibrated distance is the distance between the target user and the target device. Based on the real-time distance and the target device's current operating mode, the operating state of the target device is controlled, including: when the real-time distance is within the first calibrated range and the target device's current operating mode is the first mode, maintaining the target device's first mode; wherein, the first mode is the heating mode.
[0104] The calibration distance includes a first calibration distance and a second calibration distance. The second calibration distance is smaller than the first calibration distance. The first calibration range is between the first calibration distance and the second calibration distance. Therefore, by setting the first calibration range, it can be determined that the target user has not yet approached the target device. Thus, the target device can be controlled to continue working according to the previous first mode.
[0105] When the real-time distance is within the first calibration range and the target device is currently operating in the second mode, the target device is controlled to operate at the first gear; where the first gear is the highest gear, and the second mode is the air supply mode. It can be understood that by setting the first calibration range, it can be determined that the target user has not yet approached the target device; therefore, the target device can be controlled to operate at the highest gear.
[0106] Furthermore, it may also include: when the real-time distance is within the second calibration range and the target device is currently operating in the first mode, reducing the heating power of the first mode; wherein, the current heating power may be reduced to half or the heating power may be reduced to a preset power; the calibration distance may also include a third calibration distance, the third calibration distance being less than the second calibration distance, and the second calibration range being between the second calibration distance and the third calibration distance.
[0107] When the real-time distance is within the second calibration range and the target device is currently operating in the second mode, the target device is controlled to the second speed setting; the second speed setting is lower than the first speed setting. Thus, by using the set second calibration range, it can be determined that the target user is approaching the target device; therefore, in air supply mode, the target device can be controlled to the second speed setting.
[0108] Furthermore, it may also include: when the real-time distance is within the third calibration range and the target device is currently operating in the first mode, turning off the first mode; wherein, the calibration distance also includes a fourth calibration distance, the fourth calibration distance is less than the third calibration distance, and the third calibration range is between the third calibration distance and the fourth calibration distance.
[0109] When the real-time distance is within the third calibration range and the target device is currently operating in the second mode, the control level of the target device is the third level; the third level is lower than the second level.
[0110] Furthermore, it may also include: when the real-time distance is within the fourth calibration range and the target device is currently operating in the first mode, controlling the target device to move away from the target user; wherein the fourth calibration range is between the target device and the fourth calibration distance.
[0111] The target device can be equipped with wheels at the bottom. When the real-time distance between the target user and the target device is detected to be within the fourth calibration range, the target device can be moved away from the target user by controlling the direction and speed of the wheels driven by the motor inside the target device.
[0112] When the real-time distance is within the fourth calibration range and the target device is currently operating in the second mode, the control position of the target device is the fourth position; the fourth position is the lowest position and is lower than the third position.
[0113] It is understood that when the target device is the first target device and the current working mode of the target device is the first mode, the above-mentioned methods of reducing the heating power of the target device in the first mode, turning off the first mode, and controlling the target device away from the target user are all safety modes of the target device. They are modes to avoid the target device from causing harm to the target user, so as to improve the safety and user experience of the target user when using the target device.
[0114] The target device can also be equipped with a voice broadcast function to remind users through voice playback; when the target device cannot recognize the above-set conditions, that is, when it cannot detect the target user within the set distance, it can resume the heating state, making it more intelligent.
[0115] It is understandable that when the target device is the first target device and the first target device is in air supply mode, the method of reducing the speed as the target user gradually approaches the target device, as described above, can improve the user experience of the target user using the target device.
[0116] In one embodiment, taking the target device as the second target device and the current operating mode of the target device as the third mode, specifically the heating mode, as an example, the preset distance is the distance between the target user and the target device. Based on the real-time distance and the current operating mode of the target device, the operating state of the target device is controlled, including:
[0117] When the real-time distance is within the first preset range and the target device is currently in the third working mode, the target device is maintained in the third mode; wherein, the third mode is the heating mode, the preset distance includes the first preset distance and the second preset distance, the second preset distance is less than the first preset distance, and the first preset range is between the first preset distance and the second preset distance.
[0118] Furthermore, it may also include: when the real-time distance is within a second preset range and the target device is currently operating in a third mode, reducing the heating power of the third mode; wherein the preset distance also includes a third preset distance, the third preset distance is less than the second preset distance, and the second preset range is between the second preset distance and the third preset distance.
[0119] Furthermore, it may also include: turning off the third mode when the real-time distance is within the third preset range and the target device is currently operating in the third mode; wherein the preset distance also includes a fourth preset distance, the fourth preset distance is less than the third preset distance, and the third preset range is between the third preset distance and the fourth preset distance.
[0120] Furthermore, it may also include: when the real-time distance is within a fourth preset range and the current operating mode of the target device is the third mode, controlling the target device to move away from the target user; wherein the fourth preset range is between the target device and the fourth preset distance.
[0121] The target device can be equipped with wheels at the bottom. When the real-time distance between the target user and the target device is detected to be within a fourth preset range, the target device can be moved away from the target user by controlling the direction and speed of the wheels driven by the motor inside the target device.
[0122] It is understandable that when the target device is a second target device, the second target device can be a heating device. If the heating device is in heating mode, there may be a risk of burns if the user gets close to the heating device. Therefore, based on the distance between the heating device and the user, the working state of the heating device can be controlled to prevent the user from being accidentally burned.
[0123] Combination Figure 4 The content shown is as follows: Figure 5 As shown, a target device is provided, which is a second target device. The second target device can be a heating device, which may include a power supply module, a microcontroller unit (MCU), and a transceiver antenna. The calibration capacitance value is the equivalent capacitance formed by the transceiver antenna and the ground. The transceiver antenna can be made of any kind of conductive metal material, such as a coil, a metal mesh, or a metal decorative strip. The fixed position of the transceiver antenna should be far away from the metal casing of the target device, the switching power supply, and other strong interference sources to avoid the strong interference sources affecting the detection results of whether the target user is close to the electric heating device, thereby improving the detection accuracy.
[0124] Specifically, the power supply module is used to power the MCU, enabling the MCU to transmit a real-time transmission signal with a transmission frequency of f to the transceiver antenna. When the target user approaches the heating device, the transceiver antenna and the ground form a real-time capacitance C. The MCU obtains the real-time voltage value U corresponding to the real-time capacitance C by sampling. Then, the MCU determines the real-time distance between the target user and the heating device based on the real-time voltage value U, and controls the working state of the heating device based on the real-time distance.
[0125] Combination Figures 2 to 4 The content shown is illustrated using the example of a target life form as the target user, a target device as the first target device, and the target device's current operating mode as the first mode, which is the heating mode. Figure 6 As shown, a flowchart illustrates a process for determining the real-time distance between a target device and a target user, and controlling the operating state of the target device based on the real-time distance and the current operating mode of the target device. The flowchart includes:
[0126] S602, determine the real-time transmission signal corresponding to the transmission frequency.
[0127] S604 controls the target device to generate a real-time electromagnetic field corresponding to the real-time transmitted signal.
[0128] S606, based on the multiple capacitance changes formed by the target device and the target user, determine the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value.
[0129] S608 obtains the real-time voltage value based on the preset sampling period, preset sampling quantity, and corresponding voltage value.
[0130] It is understandable that after obtaining the real-time voltage value, the real-time distance between the target user and the target device can be determined based on the relationship between the real-time voltage value and the calibrated voltage value. Based on this real-time distance, the target device is controlled to perform corresponding actions. The actions performed by the controlled target device differ depending on the real-time distance. The calibrated voltage value includes a first calibrated voltage value, a second calibrated voltage value, a third calibrated voltage value, and a fourth calibrated voltage value. The calibrated distance is the distance between the target user and the target device, and it includes a first calibrated distance, a second calibrated distance, a third calibrated distance, and a fourth calibrated distance. Specifically:
[0131] S610, when the real-time voltage value is less than the first calibrated voltage value and the real-time voltage value is greater than or equal to the second calibrated voltage value, the real-time distance between the target user and the target device is determined to be within the first calibrated range, and the first mode of the target device is maintained.
[0132] S612, when the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value, the real-time distance between the target user and the target device is determined to be within the second calibration range, and the heating power of the first mode is reduced.
[0133] S614, when the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value, determine that the real-time distance between the target user and the target device is within the third calibration range, and close the first mode.
[0134] S616, when the real-time voltage value is less than the fourth calibration voltage value, determines that the real-time distance between the target user and the target device is within the fourth calibration range, and controls the target device to move away from the target user.
[0135] The contents of S602 to S616 can be referred to the aforementioned content for adaptation description, and will not be repeated here.
[0136] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0137] Based on the same inventive concept, this application also provides a distance determining device for implementing the distance determining method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more distance determining device embodiments provided below can be found in the limitations of the distance determining method described above, and will not be repeated here.
[0138] In one embodiment, such as Figure 7 As shown, a distance determination device is provided, including: a magnetic field generating module 702, a voltage value acquisition module 704, and a judgment module 706, wherein: the magnetic field generating module 702 is used to control the target device to generate a real-time electromagnetic field; the voltage value acquisition module 704 is used to obtain the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form based on the real-time electromagnetic field; and the judgment module 706 is used to determine the real-time distance between the target life form and the target device based on the real-time voltage value.
[0139] In one embodiment, the magnetic field generating module 702 is further configured to determine the real-time transmission signal corresponding to the transmission frequency and control the target device to generate a real-time electromagnetic field corresponding to the real-time transmission signal.
[0140] In one embodiment, the voltage value acquisition module 704 is further configured to determine the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value based on the multiple capacitance changes formed between the target device and the target living organism; wherein, the corresponding real-time capacitance value is the sum of the calibration capacitance value and each capacitance change, the calibration capacitance value is the capacitance value formed between the target device and the living organism when the distance between the living organism and the target device is greater than or equal to a first calibration distance; each voltage value is the ratio of the current value corresponding to the real-time transmitted signal to a first value, the first value is the product of the corresponding real-time capacitance value and the transmission frequency; and the real-time voltage value is obtained according to the preset sampling period, the preset sampling quantity and the corresponding voltage value.
[0141] In one embodiment, the determination module 706 is further configured to determine the real-time distance between the target life form and the target device within a first calibration range when the real-time voltage value is less than the first calibration voltage value and the real-time voltage value is greater than or equal to the second calibration voltage value; wherein the calibration distance is the distance between the target life form and the target device, the calibration distance includes the first calibration distance and the second calibration distance, the upper limit of the first calibration range is the first calibration distance, the lower limit of the first calibration range is the second calibration distance, and the second calibration distance is less than the first calibration distance.
[0142] In one embodiment, the determination module 706 is further configured to determine the real-time distance between the target life form and the target device within a second calibration range when the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value; wherein the calibration distance also includes a third calibration distance, the upper limit of the second calibration range is the second calibration distance, the lower limit of the second calibration range is the third calibration distance, and the third calibration distance is less than the second calibration distance.
[0143] In one embodiment, the determination module 706 is further configured to determine that the real-time distance between the target life form and the target device is within the third calibration range when the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value; wherein the calibration distance also includes the fourth calibration distance, the upper limit of the third calibration range is the third calibration distance, the lower limit of the third calibration range is the fourth calibration distance, and the fourth calibration distance is less than the third calibration distance.
[0144] In one embodiment, the determination module 706 is further configured to determine that the real-time distance between the target life form and the target device is within the fourth calibration range when the real-time voltage value is less than the fourth calibration voltage value; wherein the upper limit of the fourth calibration range is the fourth calibration distance.
[0145] Each module in the aforementioned distance determining device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the target device in hardware form or independently of it, or stored in the memory of the target device in software form, so that the processor can call and execute the operations corresponding to each module.
[0146] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: controlling a target device to generate a real-time electromagnetic field; obtaining a real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target living organism based on the real-time electromagnetic field; and determining the real-time distance between the target living organism and the target device based on the real-time voltage value.
[0147] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining a real-time transmission signal corresponding to the transmission frequency; and controlling the target device to generate a real-time electromagnetic field corresponding to the real-time transmission signal.
[0148] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: determining the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value based on multiple capacitance changes formed between the target device and the target living organism; wherein, the corresponding real-time capacitance value is the sum of the calibration capacitance value and each capacitance change, the calibration capacitance value is the capacitance value formed between the target device and the living organism when the distance between the living organism and the target device is greater than or equal to a first calibration distance; each voltage value is the ratio of the current value corresponding to the real-time transmitted signal to a first value, the first value being the product of the corresponding real-time capacitance value and the transmission frequency; and obtaining the real-time voltage value based on a preset sampling period, a preset sampling quantity, and the corresponding voltage value.
[0149] In one embodiment, the calibration distance is the distance between the target life form and the target device. When the computer program is executed by the processor, it further implements the following steps: when the real-time voltage value is less than the first calibration voltage value and the real-time voltage value is greater than or equal to the second calibration voltage value, the real-time distance between the target life form and the target device is determined to be within a first calibration range; wherein, the calibration distance includes the first calibration distance and the second calibration distance, the upper limit of the first calibration range is the first calibration distance, the lower limit of the first calibration range is the second calibration distance, and the second calibration distance is less than the first calibration distance.
[0150] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value, determining the real-time distance between the target life form and the target device within a second calibration range; wherein the calibration distance further includes a third calibration distance, the upper limit of the second calibration range is the second calibration distance, the lower limit of the second calibration range is the third calibration distance, and the third calibration distance is less than the second calibration distance.
[0151] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value, it determines that the real-time distance between the target life form and the target device is within the third calibration range; wherein the calibration distance also includes the fourth calibration distance, the upper limit of the third calibration range is the third calibration distance, the lower limit of the third calibration range is the fourth calibration distance, and the fourth calibration distance is less than the third calibration distance.
[0152] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the real-time voltage value is less than the fourth calibration voltage value, it determines that the real-time distance between the target life form and the target device is within the fourth calibration range; wherein the upper limit of the fourth calibration range is the fourth calibration distance.
[0153] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: controlling a target device to generate a real-time electromagnetic field; obtaining a real-time voltage value corresponding to the real-time capacitance value formed between the target device and the target living organism based on the real-time electromagnetic field; and determining the real-time distance between the target living organism and the target device based on the real-time voltage value.
[0154] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining a real-time transmission signal corresponding to the transmission frequency; and controlling the target device to generate a real-time electromagnetic field corresponding to the real-time transmission signal.
[0155] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: determining the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value based on multiple capacitance changes formed between the target device and the target living organism; wherein, the corresponding real-time capacitance value is the sum of the calibration capacitance value and each capacitance change, the calibration capacitance value is the capacitance value formed between the target device and the living organism when the distance between the living organism and the target device is greater than or equal to a first calibration distance; each voltage value is the ratio of the current value corresponding to the real-time transmitted signal to a first value, the first value being the product of the corresponding real-time capacitance value and the transmission frequency; and obtaining the real-time voltage value based on a preset sampling period, a preset sampling quantity, and the corresponding voltage value.
[0156] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time voltage value is less than the first calibration voltage value and the real-time voltage value is greater than or equal to the second calibration voltage value, determining the real-time distance between the target life form and the target device within a first calibration range; wherein the calibration distance includes the first calibration distance and the second calibration distance, the upper limit of the first calibration range is the first calibration distance, the lower limit of the first calibration range is the second calibration distance, and the second calibration distance is less than the first calibration distance.
[0157] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value, determining the real-time distance between the target life form and the target device within a second calibration range; wherein the calibration distance further includes a third calibration distance, the upper limit of the second calibration range is the second calibration distance, the lower limit of the second calibration range is the third calibration distance, and the third calibration distance is less than the second calibration distance.
[0158] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value, it determines that the distance between the target life form and the target device is within the third calibration range; wherein the calibration distance also includes the fourth calibration distance, the upper limit of the third calibration range is the third calibration distance, the lower limit of the third calibration range is the fourth calibration distance, and the fourth calibration distance is less than the third calibration distance.
[0159] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the real-time voltage value is less than the fourth calibration voltage value, it determines that the real-time distance between the target life form and the target device is within the fourth calibration range; wherein the upper limit of the fourth calibration range is the fourth calibration distance.
[0160] In one embodiment, such as Figure 8 As shown, a state control device is provided, including: a distance generation module 802 and a state control module 804, wherein: the distance acquisition module 802 is used to acquire the real-time distance between the target user and the target device; wherein, the real-time distance between the target user and the target device is the distance determined based on the distance determination method, and the target life form is the target user; the state control module 804 is used to control the working state of the target device according to the real-time distance and the current working mode of the target device.
[0161] In one embodiment, the state control module 804 is further configured to: maintain the first mode of the target device when the real-time distance is within a first calibration range and the current operating mode of the target device is a first mode; wherein the first mode is a heating mode, the calibration distance is the distance between the target user and the target device, the calibration distance includes a first calibration distance and a second calibration distance, the second calibration distance is less than the first calibration distance, and the first calibration range is between the first calibration distance and the second calibration distance; and control the target device to a first gear when the real-time distance is within the first calibration range and the current operating mode of the target device is a second mode; wherein the second mode is a ventilation mode; and the target device is a first target device.
[0162] In one embodiment, the state control module 804 is further configured to: reduce the heating power of the first mode when the real-time distance is within the second calibration range and the current operating mode of the target device is the first mode; wherein the calibration distance includes a third calibration distance, the third calibration distance is less than the second calibration distance, and the second calibration range is between the second calibration distance and the third calibration distance; when the real-time distance is within the second calibration range and the current operating mode of the target device is the second mode, control the gear of the target device to the second gear; the second gear is less than the first gear.
[0163] In one embodiment, the state control module 804 is further configured to: shut down the first mode when the real-time distance is within the third calibration range and the target device is currently operating in the first mode; wherein the calibration distance includes a fourth calibration distance, the fourth calibration distance is less than the third calibration distance, and the third calibration range is between the third calibration distance and the fourth calibration distance; and control the target device to a third gear when the real-time distance is within the third calibration range and the target device is currently operating in the second mode; the third gear is less than the second gear.
[0164] In one embodiment, the state control module 804 is further configured to: control the target device to move away from the target user when the real-time distance is within the fourth calibration range and the current operating mode of the target device is the first mode; wherein the fourth calibration range is between the target device and the fourth calibration distance; and control the target device to the fourth gear when the real-time distance is within the fourth calibration range and the current operating mode of the target device is the second mode; the fourth gear is lower than the third gear.
[0165] The status control module 804 is further configured to: maintain the third mode of the target device when the real-time distance is within the first preset range and the current working mode of the target device is the third mode; wherein the third mode is the heating mode, the preset distance includes a first preset distance and a second preset distance, the second preset distance is less than the first preset distance, and the first preset range is between the first preset distance and the second preset distance; the preset distance is the distance between the target user and the target device, and the target device is the second target device.
[0166] In one embodiment, the state control module 804 is further configured to: reduce the heating power of the third mode when the real-time distance is within a second preset range and the current working mode of the target device is the third mode; wherein the preset distance includes a third preset distance, the third preset distance is less than the second preset distance, and the second preset range is between the second preset distance and the third preset distance.
[0167] In one embodiment, the state control module 804 is further configured to: shut down the third mode when the real-time distance is within a third preset range and the target device is currently operating in the third mode; wherein the preset distance includes a fourth preset distance, the fourth preset distance is less than the third preset distance, and the third preset range is between the third preset distance and the fourth preset distance.
[0168] In one embodiment, the state control module 804 is further configured to: control the target device to move away from the target user when the real-time distance is within a fourth preset range and the current working mode of the target device is the third mode; wherein the fourth preset range is between the target device and the fourth preset distance.
[0169] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps: obtaining the real-time distance between a target user and a target device; wherein the real-time distance between the target user and the target device is a distance determined based on a distance determination method, and the target life form is the target user; and controlling the working state of the target device according to the real-time distance and the current working mode of the target device.
[0170] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a first calibration range and the current operating mode of the target device is a first mode, maintaining the first mode of the target device; wherein the first mode is a heating mode, the calibration distance is the distance between the target user and the target device, the target device is a first target device, the calibration distance includes a first calibration distance and a second calibration distance, the second calibration distance is less than the first calibration distance, and the first calibration range is between the first calibration distance and the second calibration distance; when the real-time distance is within the first calibration range and the current operating mode of the target device is a second mode, controlling the target device to the first gear; wherein the second mode is a ventilation mode.
[0171] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within the second calibration range and the current operating mode of the target device is the first mode, reducing the heating power of the first mode; wherein the calibration distance further includes a third calibration distance, the third calibration distance is less than the second calibration distance, and the second calibration range is between the second calibration distance and the third calibration distance; when the real-time distance is within the second calibration range and the current operating mode of the target device is the second mode, controlling the target device to a second gear; the second gear is less than the first gear.
[0172] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within the third calibration range and the target device is currently operating in the first mode, the first mode is turned off; wherein the calibration distance further includes a fourth calibration distance, the fourth calibration distance is less than the third calibration distance, and the third calibration range is between the third calibration distance and the fourth calibration distance; when the real-time distance is within the third calibration range and the target device is currently operating in the second mode, the target device is controlled to a third gear; the third gear is less than the second gear.
[0173] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within the fourth calibration range and the current operating mode of the target device is the first mode, controlling the target device to move away from the target user; wherein the fourth calibration range is between the target device and the fourth calibration distance; when the real-time distance is within the fourth calibration range and the current operating mode of the target device is the second mode, controlling the target device to the fourth gear; the fourth gear is less than the third gear.
[0174] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a first preset range and the current working mode of the target device is a third mode, maintaining the third mode of the target device; wherein the third mode is a heating mode, the preset distance includes a first preset distance and a second preset distance, the second preset distance is less than the first preset distance, and the first preset range is between the first preset distance and the second preset distance; the preset distance is the distance between the target user and the target device, and the target device is a second target device.
[0175] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a second preset range and the current operating mode of the target device is a third mode, the heating power of the third mode is reduced; wherein, the preset distance further includes a third preset distance, the third preset distance is less than the second preset distance, and the second preset range is between the second preset distance and the third preset distance.
[0176] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a third preset range and the target device is currently operating in the third mode, the third mode is turned off; wherein, the preset distance further includes a fourth preset distance, the fourth preset distance is less than the third preset distance, and the third preset range is between the third preset distance and the fourth preset distance.
[0177] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a fourth preset range and the current operating mode of the target device is the third mode, controlling the target device to move away from the target user; wherein the fourth preset range is between the target device and the fourth preset distance.
[0178] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: obtaining the real-time distance between a target user and a target device; wherein the real-time distance between the target user and the target device is a distance determined based on a distance determination method, and the target life form is the target user; and controlling the working state of the target device according to the real-time distance and the current working mode of the target device.
[0179] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a first calibration range and the current operating mode of the target device is a first mode, maintaining the first mode of the target device; wherein the first mode is a heating mode, the calibration distance is the distance between the target user and the target device, the target device is a first target device, the calibration distance includes a first calibration distance and a second calibration distance, the second calibration distance is less than the first calibration distance, and the first calibration range is between the first calibration distance and the second calibration distance; when the real-time distance is within the first calibration range and the current operating mode of the target device is a second mode, controlling the target device to the first gear; wherein the second mode is a ventilation mode.
[0180] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within the second calibration range and the current operating mode of the target device is the first mode, reducing the heating power of the first mode; wherein the calibration distance further includes a third calibration distance, the third calibration distance is less than the second calibration distance, and the second calibration range is between the second calibration distance and the third calibration distance; when the real-time distance is within the second calibration range and the current operating mode of the target device is the second mode, controlling the target device to a second gear; the second gear is less than the first gear.
[0181] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within the third calibration range and the target device is currently operating in the first mode, the first mode is turned off; wherein the calibration distance further includes a fourth calibration distance, the fourth calibration distance is less than the third calibration distance, and the third calibration range is between the third calibration distance and the fourth calibration distance; when the real-time distance is within the third calibration range and the target device is currently operating in the second mode, the target device is controlled to a third gear; the third gear is less than the second gear.
[0182] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within the fourth calibration range and the current operating mode of the target device is the first mode, controlling the target device to move away from the target user; wherein the fourth calibration range is between the target device and the fourth calibration distance; when the real-time distance is within the fourth calibration range and the current operating mode of the target device is the second mode, controlling the target device to the fourth gear; the fourth gear is less than the third gear.
[0183] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a first preset range and the current working mode of the target device is a third mode, maintaining the third mode of the target device; wherein the third mode is a heating mode, the preset distance includes a first preset distance and a second preset distance, the second preset distance is less than the first preset distance, and the first preset range is between the first preset distance and the second preset distance; the preset distance is the distance between the target user and the target device, and the target device is a second target device.
[0184] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a second preset range and the current operating mode of the target device is a third mode, the heating power of the third mode is reduced; wherein, the preset distance further includes a third preset distance, the third preset distance is less than the second preset distance, and the second preset range is between the second preset distance and the third preset distance.
[0185] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a third preset range and the target device is currently operating in the third mode, the third mode is turned off; wherein, the preset distance further includes a fourth preset distance, the fourth preset distance is less than the third preset distance, and the third preset range is between the third preset distance and the fourth preset distance.
[0186] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the real-time distance is within a fourth preset range and the current operating mode of the target device is the third mode, controlling the target device to move away from the target user; wherein the fourth preset range is between the target device and the fourth preset distance.
[0187] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0188] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0189] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A distance determination method, characterized in that, include: Control the target device to generate a real-time electromagnetic field; Based on the real-time electromagnetic field, the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form is obtained. The closer the target life form is to the target device, the smaller the real-time voltage value; Based on the real-time voltage value, determine the real-time distance between the target life form and the target device; Wherein, obtaining the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form includes: Based on the multiple capacitance changes formed between the target device and the target organism, a corresponding real-time capacitance value and a corresponding voltage value are determined. The corresponding real-time capacitance value is the sum of a calibration capacitance value and the corresponding capacitance change. The calibration capacitance value is the capacitance formed between the target device and the target organism when the distance between them is greater than or equal to a first calibration distance. The corresponding voltage value is the ratio of the current value corresponding to the real-time transmitted signal to a first value, where the first value is the product of the corresponding real-time capacitance value and the transmission frequency. The real-time transmitted signal is used by the target device to generate the real-time electromagnetic field, and the transmission frequency refers to the frequency corresponding to the real-time transmitted signal. The real-time voltage value is obtained based on the preset sampling period, the preset sampling quantity, and the corresponding voltage value.
2. The method of claim 1, wherein, The calibrated distance is the distance between the target life form and the target device. The step of determining the real-time distance between the target life form and the target device based on the real-time voltage value includes: When the real-time voltage value is less than the first calibration voltage value and the real-time voltage value is greater than or equal to the second calibration voltage value, the real-time distance between the target life form and the target device is determined to be within a first calibration range; wherein, the calibration distance includes a first calibration distance and a second calibration distance, the upper limit of the first calibration range is the first calibration distance, the lower limit of the first calibration range is the second calibration distance, and the second calibration distance is less than the first calibration distance.
3. The method of claim 2, wherein, Also includes: When the real-time voltage value is less than the second calibration voltage value and the real-time voltage value is greater than or equal to the third calibration voltage value, the real-time distance between the target life form and the target device is determined to be within a second calibration range; wherein, the calibration distance also includes a third calibration distance, the upper limit of the second calibration range is the second calibration distance, the lower limit of the second calibration range is the third calibration distance, and the third calibration distance is less than the second calibration distance.
4. The method according to claim 3, characterized in that, Also includes: When the real-time voltage value is less than the third calibration voltage value and the real-time voltage value is greater than or equal to the fourth calibration voltage value, the real-time distance between the target life form and the target device is determined to be within the third calibration range; wherein, the calibration distance also includes a fourth calibration distance, the upper limit of the third calibration range is the third calibration distance, the lower limit of the third calibration range is the fourth calibration distance, and the fourth calibration distance is less than the third calibration distance.
5. The method of claim 4, wherein, Also includes: When the real-time voltage value is less than the fourth calibration voltage value, the real-time distance between the target life form and the target device is determined to be within the fourth calibration range; wherein, the upper limit of the fourth calibration range is the fourth calibration distance.
6. The method of claim 1, wherein, The method further includes: When the transmission frequency is a variable frequency, a first ratio of the preset sampling quantity to the preset sampling period is determined; the transmission frequency is less than the ratio between 1 and the first ratio.
7. The method of claim 1, wherein, The step of obtaining the real-time voltage value based on a preset sampling period, a preset sampling quantity, and the corresponding voltage value includes: Based on the preset sampling period, the voltage value corresponding to the preset number of samples is obtained; The average of the voltage values of the preset number of samples is determined as the real-time voltage value.
8. A state control method characterized by, include: Obtain the real-time distance between the target user and the target device; wherein the real-time distance between the target user and the target device is the real-time distance determined based on the method described in any one of claims 1-7, and the target life form is the target user; The operating status of the target device is controlled based on the real-time distance and the current operating mode of the target device.
9. The method according to claim 8, characterized in that, The calibrated distance is the distance between the target user and the target device, where the target device is a first target device. The step of controlling the operating state of the target device based on the real-time distance and the current operating mode of the target device includes: When the real-time distance is within the first calibration range and the target device is currently operating in the first mode, the first mode of the target device is maintained; wherein, the first mode is the heating mode, the calibration distance includes a first calibration distance and a second calibration distance, the second calibration distance is less than the first calibration distance, and the first calibration range is between the first calibration distance and the second calibration distance; When the real-time distance is within the first calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the first gear; wherein, the second mode is the air supply mode.
10. The method of claim 9, wherein, Also includes: When the real-time distance is within the second calibration range and the target device is currently operating in the first mode, the heating power of the first mode is reduced; wherein, the calibration distance also includes a third calibration distance, the third calibration distance is smaller than the second calibration distance, and the second calibration range is between the second calibration distance and the third calibration distance; When the real-time distance is within the second calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the second gear; the second gear is lower than the first gear.
11. The method of claim 10, wherein, Also includes: When the real-time distance is within the third calibration range and the target device is currently operating in the first mode, the first mode is turned off; wherein, the calibration distance further includes a fourth calibration distance, the fourth calibration distance is less than the third calibration distance, and the third calibration range is between the third calibration distance and the fourth calibration distance; When the real-time distance is within the third calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the third gear; the third gear is lower than the second gear.
12. The method of claim 11, wherein, Also includes: When the real-time distance is within the fourth calibration range and the target device is currently operating in the first mode, the target device is controlled to move away from the target user; wherein, the fourth calibration range is between the target device and the fourth calibration distance; When the real-time distance is within the fourth calibration range and the target device is currently operating in the second mode, the target device is controlled to be in the fourth gear; the fourth gear is less than the third gear.
13. The method of claim 8, wherein, The preset distance is the distance between the target user and the target device, where the target device is a second target device. The step of controlling the operating state of the target device based on the real-time distance and the current operating mode of the target device includes: When the real-time distance is within a first preset range and the target device is currently operating in a third mode, the third mode of the target device is maintained; wherein, the third mode is a heating mode, the preset distance includes a first preset distance and a second preset distance, the second preset distance is less than the first preset distance, and the first preset range is between the first preset distance and the second preset distance.
14. The method of claim 13, wherein, Also includes: When the real-time distance is within the second preset range and the target device is currently operating in the third mode, the heating power of the third mode is reduced; wherein, the preset distance also includes a third preset distance, the third preset distance is less than the second preset distance, and the second preset range is between the second preset distance and the third preset distance.
15. The method according to claim 14, characterized in that, Also includes: When the real-time distance is within a third preset range and the target device is currently operating in the third mode, the third mode is turned off; wherein, the preset distance also includes a fourth preset distance, the fourth preset distance is less than the third preset distance, and the third preset range is between the third preset distance and the fourth preset distance.
16. The method of claim 15, wherein, Also includes: When the real-time distance is within a fourth preset range and the target device is currently operating in the third mode, the target device is controlled to move away from the target user; wherein, the fourth preset range is between the target device and the fourth preset distance.
17. A distance determining apparatus, characterized by The device includes: The magnetic field generating module is used to control the target device to generate a real-time electromagnetic field. The voltage value acquisition module is used to obtain the real-time voltage value corresponding to the real-time capacitance value formed by the target device and the target life form based on the real-time electromagnetic field; the closer the target life form is to the target device, the smaller the real-time voltage value is; The judgment module is used to determine the real-time distance between the target life form and the target device based on the real-time voltage value. The voltage value acquisition module is further configured to determine the corresponding real-time capacitance value and the voltage value corresponding to the real-time capacitance value based on multiple capacitance changes formed between the target device and the target organism; wherein, the corresponding real-time capacitance value is the sum of the calibration capacitance value and the corresponding capacitance change, the calibration capacitance value is the capacitance formed between the target device and the target device when the distance between the organism and the target device is greater than or equal to a first calibration distance; the corresponding voltage value is the ratio of the current value corresponding to the real-time transmitted signal to a first value, the first value being the product of the corresponding real-time capacitance value and the transmission frequency; the real-time transmitted signal is used by the target device to generate the real-time electromagnetic field, and the transmission frequency refers to the frequency corresponding to the real-time transmitted signal; the real-time voltage value is obtained according to a preset sampling period, a preset sampling quantity, and the corresponding voltage value.
18. A state control device, characterized by comprising: The device includes: A distance acquisition module is used to acquire the real-time distance between a target user and a target device; wherein, the real-time distance between the target user and the target device is a real-time distance determined based on the method described in any one of claims 1-7, and the target life form is the target user; The status control module is used to control the working status of the target device based on the real-time distance and the current working mode of the target device.
19. A computer readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 16.
20. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 16.