Intelligent equipment state control method and device, computer equipment and storage medium

CN119064939APending Publication Date: 2024-12-03TOUCHAIR TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411198038.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The infrared sensing technology used in existing smart devices has high detection costs and limited angle and accuracy, making it difficult to accurately judge the user's range of activities, resulting in inaccurate activation and extinguishing status of the device.

Method used

The speakers and microphones that come with the smart device transmit and receive ultrasonic signals. By calculating the variance and maximum value of ultrasonic observation data, the spatial distance between the target object and the device is determined, and the working state of the device is controlled.

Benefits of technology

It improves the accuracy of the ultrasonic detection and control device status, avoids the problem of screen quit, enhances the user's detection accuracy in focus mode, and reduces the detection cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119064939A_ABST
    Figure CN119064939A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an intelligent equipment state control method and device, computer equipment and a storage medium. The method comprises the following steps: controlling an ultrasonic transmitting unit to transmit an ultrasonic signal, and collecting a preset number of ultrasonic observation data to a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in an ultrasonic echo signal received by the ultrasonic receiving unit; calculating the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; under the condition that the ultrasonic observation difference value is greater than or equal to a preset threshold value, determining a spatial distance between a target object and the intelligent equipment according to the maximum value of the ultrasonic observation data in the dynamic resource pool; and controlling the working state of the intelligent equipment according to the spatial distance. According to the technical scheme provided by the embodiment of the invention, the accuracy of detecting the state of the control equipment by using ultrasonic waves can be improved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of living body perception technology, and specifically to a method, apparatus, computer equipment and storage medium for controlling the state of an intelligent device. Background Art

[0002] In the application scenarios of smart devices, in order to improve the battery life of smart devices and ensure the security of the content on the smart device screen after the user leaves, a human body sensing detection device is usually added to the smart device. The human body sensing detection device detects whether there is a human body on the smart device terminal, and controls the working state of the smart device according to the detection results. In the prior art, infrared detection technology is usually used for human body perception detection, but this traditional infrared sensing often requires the installation of multiple devices at multiple angles, the detection cost is high, and the angle and accuracy of infrared detection are limited.

[0003] Therefore, the speaker and microphone of the smart device can be used to send and receive ultrasonic signals, and based on this, it can be judged whether there is human activity, so as to control the working state of the smart device. However, the activation and locking conditions of the smart device cannot be directly judged based on whether human activity is detected. Summary of the invention

[0004] In view of this, multiple embodiments of this specification are dedicated to providing a method, apparatus, computer device, storage medium and computer program product for controlling the state of an intelligent device, so as to improve the accuracy of controlling the state of the device using ultrasonic detection to a certain extent.

[0005] The implementation mode of this specification proposes a method for controlling the state of an intelligent device, wherein the intelligent device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the method includes: controlling the ultrasonic transmitting unit to transmit an ultrasonic signal, and collecting a preset number of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflected signal in an ultrasonic echo signal received by the ultrasonic receiving unit; calculating the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; when the ultrasonic observation difference value is greater than or equal to a preset threshold value, determining the spatial distance between the target object and the intelligent device according to the maximum value of the ultrasonic observation data in the dynamic resource pool; and controlling the working state of the intelligent device according to the spatial distance.

[0006] The implementation mode of this specification proposes a control device for the state of an intelligent device, wherein the intelligent device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the control device for the state of the intelligent device includes: a signal acquisition module, used to control the ultrasonic transmitting unit to transmit an ultrasonic signal, and collect a preset number of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in an ultrasonic echo signal received by the ultrasonic receiving unit; a variance calculation module, used to calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; a distance measurement module, used to determine the spatial distance between the target object and the intelligent device according to the maximum value of the ultrasonic observation data in the dynamic resource pool when the ultrasonic observation difference value is greater than or equal to a preset threshold; and a device control module, used to control the working state of the intelligent device according to the spatial distance.

[0007] An embodiment of the present specification provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in the above embodiment when executing the computer program.

[0008] The embodiments of this specification provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in the above embodiments is implemented.

[0009] The embodiments of this specification provide a computer program product, including computer instructions, and the computer instructions are used to enable a computer to execute the method described in the above embodiments.

[0010] The implementation method of this specification sends an ultrasonic signal through the microphone of the smart device, and then the speaker receives the echo signal reflected by the target object in the environment, and collects ultrasonic observation data representing the ultrasonic reflection signal in the echo signal into a dynamic resource pool, and then calculates the variance of the ultrasonic observation data in the dynamic resource pool to obtain the ultrasonic observation difference value. When the ultrasonic observation difference value is greater than or equal to a preset threshold, the spatial distance between the target object and the smart device is determined according to the maximum value of the ultrasonic observation data in the dynamic resource pool, and then the screen of the smart device is controlled to be in the on or off state according to the spatial distance. Based on the perception of human activities, the distance between the human body and the smart device is further measured, which can improve the accuracy of controlling the device status using ultrasonic detection to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 The figure is a flow chart of a method for controlling the state of a smart device provided in one embodiment.

[0012] Figure 2Shown is a schematic diagram of a computer device provided by an embodiment. DETAILED DESCRIPTION

[0013] In order to enable those skilled in the art to better understand the solution of this specification, the technical solution in the implementation of this specification will be clearly and completely described below in conjunction with the drawings in the implementation of this specification. Obviously, the described implementation is only a part of the implementation of this specification, not all of the implementations. Based on the implementation in this specification, all other implementations obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0014] In the application scenarios of smart devices, in order to improve the battery life of smart devices and ensure the security of the content on the smart device screen after the user leaves, a human body sensing detection device is usually added to the smart device. The human body sensing detection device detects whether there is a human body on the smart device terminal, and controls the working state of the smart device according to the detection results. In the prior art, infrared detection technology is usually used for human body perception detection, but this traditional infrared sensing often requires the installation of multiple devices at multiple angles, the detection cost is high, and the angle and accuracy of infrared detection are limited.

[0015] Therefore, the speaker and microphone of the smart device can be used to send and receive ultrasonic signals, and based on this, it can be judged whether there is human activity, so as to control the working state of the smart device. However, the lighting or extinguishing of the smart device needs to be determined according to the specific range of the user's activities. For example, when the user is within 30cm around the smart device, the smart device is activated to work, and when the user is outside the range of 90cm of the smart device, it is necessary to turn off the screen. If the judgment is only based on the sending and receiving signals, the smart device may also be activated when the user is within the range of 30-60cm.

[0016] Therefore, the embodiments of this specification provide a human body static detection method to improve the accuracy of human body detection using ultrasound in focus mode to a certain extent, and avoid the smart device being accidentally turned off because the user is in focus mode.

[0017] See also Figure 1 The embodiment of this specification provides a method for controlling the state of an intelligent device, wherein the intelligent device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the method may include the following steps.

[0018] Step S110: Control the ultrasonic transmitting unit to transmit an ultrasonic signal, and collect a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit.

[0019] In some cases, ultrasonic waves are generated by ultrasonic sensors and propagated into the air or medium. When ultrasonic waves encounter the surface of an object, part of the wave energy will be reflected back by the surface of the object to form a reflected wave. For ultrasonic reflection, when the transmitted ultrasonic wave encounters a stationary object, the frequency of the reflected wave is the same as the frequency of the transmitted wave. However, if the object itself is in motion, such as moving closer to or farther away from the transmitter or receiver, the frequency of the reflected wave will change. Therefore, the reflected signal received by the ultrasonic receiving unit can be used to determine whether there is human activity around the smart device.

[0020] In this embodiment, the smart device refers to an electronic device that can connect and interact with other devices or systems through the Internet or other wireless communication technologies. These devices usually have certain intelligent functions, such as data analysis, automated operation and artificial intelligence technology. The smart device can be a laptop, a mobile phone, a learning machine, a server, etc.

[0021] In this embodiment, the ultrasonic transmitting unit is usually made of piezoelectric ceramic material, such as strontium tantalum titanate (PZT), which has a piezoelectric effect. This means that when an electric field is applied, the piezoelectric material will produce mechanical deformation, that is, vibration or compression. This mechanical deformation causes the atoms in the material to rearrange, thereby generating sound waves. The generated sound waves will propagate to the object being detected through the air or medium at a specific frequency and amplitude.

[0022] In this embodiment, the ultrasonic receiving unit generally also includes a piezoelectric ceramic piece or crystal. When the transmitted ultrasonic wave encounters the surface or internal structure of the object to be measured, part of the energy will return to the ultrasonic receiving unit in the form of a reflected wave. After the piezoelectric material of the receiving unit receives the reflected ultrasonic wave, it will produce a tiny mechanical vibration. This mechanical vibration is converted into an electrical signal through the piezoelectric effect. The vibration of the piezoelectric material will produce a voltage change between the electrodes, and this change is the received ultrasonic signal. The received electrical signal will first be amplified by an amplifier to enhance the strength and clarity of the signal. Subsequently, it will pass through a signal processing system to measure the characteristics of the signal, such as the amplitude of the signal, time delay, etc.

[0023] In this embodiment, first, the intelligent device can control the ultrasonic transmitting unit (such as a speaker) to emit a sound signal outward, where the sound signal can be an ultrasonic signal between 18.5kHZ and 22kHZ. Then, the ultrasonic receiving unit can receive these echo signals reflected from the surfaces of objects in these spaces, and then determine the ultrasonic observation data representing the reflected signals of the target objects in the echo signals. Each frame of ultrasonic signal emitted can correspond to multiple frames of ultrasonic observation data at different locations. Then, the reflected signal (ultrasonic observation data) representing a position can be stored in a dynamic resource pool.

[0024] In this embodiment, the dynamic resource pool can be an array or vector of fixed length. When the dynamic resource pool is full of ultrasonic observation data, whenever new ultrasonic observation data enters the tail of the dynamic resource pool, the ultrasonic observation data at the head of the dynamic resource pool needs to be deleted first, and the remaining ultrasonic observation data is moved forward one position one by one.

[0025] Step S120: Calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value.

[0026] In this embodiment, variance is a statistic that measures the degree of dispersion of a data set. It calculates the average of the squares of the differences between the data points and the mean. The larger the variance, the more dispersed the data points are; the smaller the variance, the more concentrated the data points are.

[0027] In this embodiment, the ultrasonic observation data reflects the change of the reflected signal in the echo signal. For the reflected signals of the same material at the same location, they should be uniform as a whole, that is, the data points of each ultrasonic observation data should be relatively concentrated. Therefore, the variance can be used to measure whether the data has changed. If the variance is large, it means that there are human activities around the smart device. Therefore, the variance of the ultrasonic observation data detected over a period of time can be used to determine whether there are human activities around the smart device.

[0028] Step S130: When the ultrasonic observation difference value is greater than or equal to a preset threshold, determine the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool.

[0029] In this embodiment, if the ultrasonic observation difference value is greater than or equal to the preset threshold, it means that there is human activity around the smart device at this time. At this time, it is necessary to determine the distance between the smart device and the person based on the distance measurement to determine the working state of the smart device. The spatial distance between the smart device and the obstacle can be measured based on "TOF". If the spatial distance is less than or equal to the preset threshold, it means that the user may still be around the smart device; if the spatial distance is greater than the preset threshold, it means that the user is away from the smart device at this time.

[0030] Step S140: controlling the working state of the smart device according to the spatial distance.

[0031] In this embodiment, the working state of the smart device can be controlled according to the spatial distance. Specifically, for example, when the user is within 30cm of the smart device, the smart device is activated to work, and when the user is outside 90cm of the smart device, the screen needs to be turned off. When the user is between 30 and 30cm, the smart device only needs to maintain its original working state.

[0032] In some embodiments, controlling the working state of the smart device according to the spatial distance may include: when the smart device is in a screen-off state, if the spatial distance is less than or equal to a first preset distance, controlling the smart device to be in a screen-on state; when the smart device is in a screen-on state, if the spatial distance is greater than or equal to a second preset distance, controlling the smart device to be in a screen-off state; wherein the second preset distance is greater than the first preset distance.

[0033] In this embodiment, when the user is relatively close to the smart device (less than the first preset distance), it means that the user may want to activate the smart device at this time. Therefore, if the screen of the smart device is in the off state at this time, the screen of the smart device can be turned on. If the screen of the smart device is in the lit state at this time, the screen of the smart device can continue to be kept in the lit state. Among them, the first preset distance can be 30cm, that is, when the distance between the smart device and the user is less than or equal to 30cm, it is necessary to control the screen of the smart device to be in the lit state. Of course, the first preset distance can be set at the factory, and can also be set by the user.

[0034] In this embodiment, when the user is relatively far away from the smart device (greater than the second preset distance), it means that the user does not need to use the smart device at this time. At this time, from the perspective of saving power consumption and from the perspective of information security, the screen of the smart device needs to be turned off. Therefore, at this time, if the screen of the smart device is in a lit state, the screen of the smart device can be turned off. If the screen of the smart device is in an off state at this time, continue to keep the smart device in an off state. Among them, the second preset distance can be 90cm, that is, when the distance between the smart device and the user is greater than or equal to 90cm, it is necessary to control the screen of the smart device to be in an off state. Of course, the second preset distance can be set at the factory, or it can be set by the user. It only needs to ensure that the second preset distance is greater than the first preset distance.

[0035] In this embodiment, when the distance between the user and the smart device is between the first preset distance and the second preset distance, the current state of the smart device can be maintained. Specifically, for example, when 30cm<spatial distance L<90cm, if the current smart device is in a lit state, it can be maintained in a lit state; if the current smart device is in an off-screen state, it can be maintained in an off-screen state.

[0036] In some embodiments, the method may further include: determining a threshold of the Kalman filter based on the ultrasonic observation difference value with the smallest value among multiple ultrasonic observation difference values ​​within a preset time period; performing Kalman filtering on the ultrasonic observation difference value according to the threshold of the Kalman filter to obtain a target ultrasonic observation difference value; accordingly, in the step of determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool, it may include: when the target ultrasonic observation difference value is less than or equal to the preset threshold, determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool.

[0037] In this embodiment, in the process of continuously updating the variance, due to the influence of environmental noise, human body detection based on the change of the observed value will have errors, and it is difficult to define the threshold of human presence and absence. Therefore, this embodiment uses the Kalman filtering method to filter the variance to eliminate the influence of environmental noise on the detection results. Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through the system input and output ultrasonic observation values. Its function is filtering, and its purpose is to reduce the influence of noise and interference on data measurement.

[0038] The Kalman equation adopted in this embodiment is as follows:

[0039] (1) Prediction part:

[0040] The covariance of the system estimate at time K = the system covariance at time k-1 + the process noise covariance, that is:

[0041]

[0042] (2) Kalman gain equation:

[0043] Kalman gain = system estimation covariance at time k / (system estimation covariance at time k + observation noise covariance), that is:

[0044]

[0045] (3) Update the optimal value solution:

[0046] The optimal value of the state at time k = the predicted value of the state + Kalman gain * (measured value - predicted value of the state), that is:

[0047]

[0048] Specifically, in the process of updating the variance, it is necessary to retain the minimum value Var of the variance over a period of time min During this period of time, a certain multiple of the minimum variance value Var during this period of time min *K var Set as the threshold of Kalman filter, that is, the preset threshold.

[0049] Among them, K var The setting range is 10-20 times. Variance indicates the discreteness of data. The variance data in the unmanned state is relatively stable, mainly concentrated near a value, and the variance is small. The noise in the environment only makes the data fluctuate slightly larger. This part of the fluctuation can be included by 10-20 times the minimum variance. var By setting it within the above range, the filtered target ultrasonic observation difference value can be obtained. Therefore, when the target ultrasonic observation difference value is less than or equal to the preset threshold, it can be determined that there is no one around the smart device or the user's movement is very small. At this time, it is necessary to further detect the distance between the smart device and the obstacle.

[0050] In some embodiments, determining the spatial distance between the target object and the smart device based on the maximum value of the ultrasonic observation data in the dynamic resource pool may include: determining the emission time of the ultrasonic signal corresponding to the maximum value of the ultrasonic observation data, and the receiving time when the ultrasonic observation data is received; determining the two-way transmission time of the ultrasonic signal in the air based on the receiving time and the emission time; and determining the spatial distance between the target object and the smart device based on the two-way transmission time and the speed at which sound is transmitted in the air.

[0051] In this embodiment, since sound is not penetrating, it will be reflected after encountering an obstacle, so that the ultrasonic receiving unit (microphone) of the smart device can receive it. The intensity of this reflected signal has a certain relationship with the distance of the obstacle and the material of the obstacle. In general, the closer the distance between the obstacle and the smart device, the stronger the intensity of the reflected signal received by the ultrasonic receiving unit. Smart devices are often faced with a relatively open environment with few obstacles around them. Therefore, it can be judged based on the distance between the target object and the smart device. If the distance between the target object represented by the strongest ultrasonic observation data and the smart device is far, it means that it may be a reflection signal of a wall, bookcase, etc.; if the distance between the target object represented by the strongest ultrasonic observation data and the smart device is close, it may be that only the people around the device are in focus mode.

[0052] In this embodiment, the method for measuring the spatial distance can be based on the emission time of the ultrasonic signal and the receiving time of the ultrasonic signal. Specifically, the number of samples corresponding to the emission time of a certain frame of ultrasonic signal is 32, and the number of samples at the time of receiving the ultrasonic observation data is 128, where the frequency of echo signal acquisition is 48,000 ultrasonic signals per second, then the two-way transmission time is (128-32) / 48000=0.002 (seconds), and according to the propagation speed of sound in the air is 340 meters / second, the spatial distance between the target object and the smart device is 340×0.002 / 2=0.34 meters. At this time, the distance between the target object and the smart device is 0.34 meters. If the preset distance is 0.5 meters, it means that there may be someone around the user at this time, so keep the smart device in working state.

[0053] In some implementations, the method may further include: calculating an average value of the difference between a maximum value and a minimum value of the ultrasound observation data in the dynamic resource pool within a preset time period; and multiplying the average value by a preset multiple to determine a preset threshold.

[0054] In this embodiment, the minimum absolute difference mean of the ultrasonic observation values ​​is calculated, and the minimum absolute difference mean is multiplied by a preset multiple to obtain a preset threshold; then, the ultrasonic observation difference value is compared with the preset threshold. If the ultrasonic observation difference value is greater than or equal to the preset threshold, it is determined that human activity is detected around the smart device; otherwise, continue to determine whether there is human activity at the next time node.

[0055] In this embodiment, the preset multiple is 20-30 times. The mean absolute deviation indicates the degree of dispersion of data around the mean. By continuously updating the minimum mean absolute deviation, the minimum mean absolute deviation is relatively small in a quiet environment; the minimum mean absolute deviation is larger in a noisy environment. The larger the preset multiple, the smaller the range of detecting whether there are human activities around the smart device.

[0056] In some embodiments, a device for controlling the state of a smart device may be provided. The smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit. The device for controlling the state of the smart device may include: a signal acquisition module, a variance calculation module, a distance measurement module, and a device control module.

[0057] A signal acquisition module is used to control the ultrasonic transmitting unit to transmit ultrasonic signals and collect a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit.

[0058] The variance calculation module is used to calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain the ultrasonic observation difference value.

[0059] The distance measurement module is used to determine the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool when the ultrasonic observation difference value is greater than or equal to a preset threshold.

[0060] The device control module is used to control the working state of the smart device according to the spatial distance.

[0061] The specific functions and effects achieved by the control device for the state of the intelligent device can be explained in reference to other embodiments of this specification, and will not be repeated here. The various modules in the control device for the state of the intelligent device can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0062] See also Figure 2 In some implementations, a computer device may be provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method steps in the implementation are implemented.

[0063] In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the embodiments are implemented.

[0064] In some implementations, a computer program product may be provided, including computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the above implementations.

[0065] Those of ordinary skill in the art can understand that all or part of the processes in the implementation method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the implementation methods of the methods described. Among them, any reference to memory, storage, database or other media used in the various implementations provided in this specification may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0066] It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0067] The descriptions of the various embodiments of this specification are made in a progressive manner. Different embodiments focus on describing the parts that are different from other embodiments. After reading this specification, a person skilled in the art can know that the various embodiments in this specification, as well as the various technical features disclosed in the embodiments, can be combined in more ways. To make the description concise, not all possible combinations of the various technical features in the 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.

[0068] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0069] The multiple embodiments in this specification emphasize the parts that are different from other embodiments, and the various embodiments can be explained in comparison with each other. Any combination of the multiple embodiments in this specification by technicians in the relevant field based on general technical knowledge is included in the disclosure scope of this specification.

[0070] The above description is only an implementation method of this case and is not intended to limit the scope of protection of the claims of this case. For those skilled in the art, this case may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this case should be included in the scope of the claims of this case.

Claims

1. A method for controlling the state of an intelligent device, characterized in that: The smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the method includes: Controlling the ultrasonic transmitting unit to transmit an ultrasonic signal, and collecting a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit; Calculating the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; When the ultrasonic observation difference value is greater than or equal to a preset threshold, determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool; The working state of the smart device is controlled according to the spatial distance.

2. The method according to claim 1, characterized in that Controlling the working state of the smart device according to the spatial distance includes: When the smart device is in a screen-off state, if the spatial distance is less than or equal to a first preset distance, controlling the smart device to be in a screen-on state; When the smart device is in a screen-on state, if the spatial distance is greater than or equal to a second preset distance, the smart device is controlled to be in a screen-off state; wherein the second preset distance is greater than the first preset distance.

3. The method according to claim 1, characterized in that The method further comprises: Determining a threshold of Kalman filtering based on the ultrasonic observation difference value with the smallest value among the plurality of ultrasonic observation difference values ​​within a preset time period; Performing Kalman filtering on the ultrasonic observation difference value according to the threshold of the Kalman filter to obtain a target ultrasonic observation difference value; Accordingly, the step of determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool includes: When the target ultrasonic observation difference value is less than or equal to a preset threshold, the spatial distance between the target object and the smart device is determined according to the maximum value of the ultrasonic observation data in the dynamic resource pool.

4. The method according to claim 1, characterized in that: Determining the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool includes: Determine the time of transmitting the ultrasonic signal corresponding to the maximum value of the ultrasonic observation data, and the time of receiving the ultrasonic observation data; Determine a two-way transmission time of the ultrasonic signal in the air based on the receiving time and the transmitting time; The spatial distance between the target object and the smart device is determined according to the two-way transmission time and the speed at which sound is transmitted in the air.

5. The method according to claim 1, characterized in that The method further comprises: Calculate the average value of the difference between the maximum value and the minimum value of the ultrasonic observation data in the dynamic resource pool within a preset time period; The average value is multiplied by a preset multiple to determine a preset threshold.

6. A control device for the state of an intelligent device, characterized in that: The smart device includes an ultrasonic transmitting unit and an ultrasonic receiving unit, and the control device of the smart device state includes: A signal acquisition module, used to control the ultrasonic transmitting unit to transmit an ultrasonic signal, and collect a preset amount of ultrasonic observation data into a dynamic resource pool; wherein the ultrasonic observation data is a reflection signal in the ultrasonic echo signal received by the ultrasonic receiving unit; A variance calculation module, used to calculate the variance of the ultrasonic observation data in the dynamic resource pool to obtain an ultrasonic observation difference value; A distance measurement module, configured to determine the spatial distance between the target object and the smart device according to the maximum value of the ultrasonic observation data in the dynamic resource pool when the ultrasonic observation difference value is greater than or equal to a preset threshold; The device control module is used to control the working state of the smart device according to the spatial distance.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

9. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 5.