Clothes hanger control method, device and equipment and computer storage medium
By installing an ultrasonic probe on the clothes drying rack, detecting the user's height and automatically adjusting the descent speed, the problem that the existing clothes drying rack cannot automatically adjust the descent height according to the user's height is solved, achieving a better user experience.
Patent Information
- Application Number
- CN202311093511.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-02-28
Smart Images

Figure CN119536372A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of smart home appliances, and specifically relates to a clothes drying rack control method, device, equipment and computer storage medium. Background Art
[0002] With the development of economy, the progress of society and the improvement of people's living standards, more and more people are beginning to use automatic descending clothes drying racks.
[0003] The automatic descending clothes rack can be descended to the height required by the user to facilitate the user to dry clothes. However, in the prior art, the descending height of the automatic descending clothes rack can only be adjusted by the user independently, and it cannot automatically descend to a suitable height according to the height of each user. Moreover, the clothes rack can only automatically pause after hitting an obstacle during the descent process.
[0004] Therefore, the current problem to be solved is how to make the clothes drying rack automatically descend to a suitable height according to the height of the user and be controllable during the descending process. Summary of the invention
[0005] In order to solve the above problems in the prior art, that is, in order to solve the problem that in the prior art, the descending height of the automatic descending clothes rack can only be adjusted by the user, and cannot be automatically descended to a suitable height according to the height of each user, and the clothes rack can only be automatically paused after hitting an obstacle during the descent process. The embodiments of the present invention provide a clothes rack control method, device, equipment and computer storage medium.
[0006] In a first aspect, an embodiment of the present invention provides a method for controlling a clothes drying rack, which is applied to the field of smart home. The method includes:
[0007] When the ultrasonic probe detects that the user enters a preset clothes drying range, the clothes drying rack is controlled to descend at a first descending speed;
[0008] When the ultrasonic probe detects that the user has been at the current position for more than a preset time, the ultrasonic probe is used to obtain the user's height;
[0009] The target position is obtained according to the height of the user, and the clothes rack is controlled to continue to descend to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed.
[0010] Optionally, obtaining the user's height by using the ultrasonic probe includes:
[0011] Adjusting the rotation direction of the ultrasonic probe to obtain the shortest reflection time and the corresponding first reflection direction in the reflected wave;
[0012] Acquire a first distance between the user and the clothes drying rack according to the shortest reflection time and the first reflection direction, where the first distance is a vertical distance between the top of the user's head and the bottom of the clothes drying rack;
[0013] The user's height is obtained according to the first distance and the second distance, wherein the second distance is the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground.
[0014] Optionally, controlling the clothes drying rack to descend at a first descending speed includes:
[0015] Obtaining a distance difference between a current position of the clothes drying rack and a preset position;
[0016] According to the target descent time and the distance difference, a first descent speed of the clothes drying rack is obtained; wherein the target descent time is greater than the estimated time, and the estimated time is the estimated time for obtaining the target position;
[0017] According to the first descending speed, the clothes drying rack is controlled to descend to a preset position.
[0018] Optionally, controlling the clothes drying rack to continue descending to the target position at a second descending speed includes:
[0019] In the process of the clothes drying rack descending to the target position, a second descending speed is selected from a plurality of descending speeds with gradient settings, wherein the second descending speed is closest to the first descending speed and greater than the first descending speed;
[0020] The clothes drying rack is controlled to descend to the target position at the second descending speed.
[0021] Optionally, detecting that the user enters a preset clothes drying range through the ultrasonic probe includes:
[0022] Controlling the ultrasonic probe to be located in a preset direction, and obtaining the echo reflection duration and the second reflection direction when a reflected echo is detected;
[0023] Acquire a third distance between the user and the clothes drying rack according to the echo reflection duration and the second reflection direction, where the third distance is a horizontal distance between the user and the clothes drying rack;
[0024] When the third distance is less than the preset distance, it is determined that the user enters the preset clothes drying range.
[0025] Optionally, acquiring the target position according to the height of the user includes:
[0026] Obtain the height range to which the user's height belongs;
[0027] Acquire a candidate position corresponding to the height range, wherein the candidate position is determined based on historical big data of the drying position of the clothes drying rack;
[0028] If the user's height is less than the median of the height range, the candidate position is subjected to downward fine-tuning processing to obtain the target position; wherein the fine-tuning distance of the downward fine-tuning processing is determined based on the third distance, and the fine-tuning distance is proportional to the third distance.
[0029] Optionally, the method further includes:
[0030] If the ultrasonic probe detects that the user is at the current position for a period of time that does not exceed a preset time, the clothes drying rack is controlled to reset.
[0031] In a second aspect, an embodiment of the present invention provides a clothes drying rack control device, comprising:
[0032] A control module: when the ultrasonic probe detects that the user enters a preset clothes drying range, controls the clothes drying rack to descend at a first descending speed;
[0033] Acquisition module: when the ultrasonic probe detects that the user is at the current position for more than a preset time, the ultrasonic probe is used to acquire the user's height;
[0034] Processing module: obtaining a target position according to the height of the user, and controlling the clothes rack to continue descending to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed.
[0035] Optionally, the control module is further used to adjust the rotation direction of the ultrasonic probe to obtain the shortest reflection time and the corresponding first reflection direction in the reflected wave;
[0036] The acquisition module is further used to acquire a first distance between the user and the clothes drying rack according to the shortest reflection time and the first reflection direction, where the first distance is a vertical distance between the top of the user's head and the bottom of the clothes drying rack;
[0037] The acquisition module is further used to acquire the user's height based on the first distance and the second distance, wherein the second distance is the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground.
[0038] Optionally, the acquisition module is further used to acquire the distance difference between the current position of the clothes drying rack and the preset position;
[0039] The acquisition module is further used to acquire a first descending speed of the clothes drying rack according to a target descending time and the distance difference; wherein the target descending time is greater than an estimated time, and the estimated time is an estimated time for acquiring a target position;
[0040] The control module is further used to control the clothes drying rack to descend to a preset position according to the first descending speed.
[0041] Optionally, the processing module is further configured to select a second descent speed from a plurality of gradient-set descent speeds during the process of the clothes drying rack descending to the target position, wherein the second descent speed is closest to the first descent speed and greater than the first descent speed;
[0042] The control module is further used to control the clothes rack to descend to the target position at the second descending speed.
[0043] Optionally, the control module is further used to control the ultrasonic probe to be located in a preset direction, and when a reflected echo is detected, obtain the echo reflection duration and the second reflection direction;
[0044] The acquisition module is further used to acquire a third distance between the user and the clothes rack according to the echo reflection duration and the second reflection direction, wherein the third distance is a horizontal distance between the user and the clothes rack;
[0045] The processing module is further configured to determine that the user has entered a preset clothes drying range when the third distance is less than a preset distance.
[0046] Optionally, the acquisition module is further used to acquire the height range to which the user's height belongs;
[0047] The acquisition module is further used to acquire candidate positions corresponding to the height range, wherein the candidate positions are determined based on historical big data of the drying positions of the clothes drying rack;
[0048] The processing module is also used to perform downward fine-tuning processing on the candidate position to obtain the target position if the user's height is less than the median of the height range; wherein the fine-tuning distance of the downward fine-tuning processing is determined based on the third distance, and the fine-tuning distance is proportional to the third distance.
[0049] Optionally, the control module is further used to control the clothes rack to reset if the ultrasonic probe detects that the user has been in the current position for no longer than a preset time.
[0050] In a third aspect, an embodiment of the present invention provides a clothes drying rack control device, including: at least one processor and a memory;
[0051] The memory stores computer-executable instructions;
[0052] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the clothes drying rack control method as described in the first aspect and various possible implementations of the first aspect.
[0053] In a fourth aspect, an embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the clothes drying rack control method described in the first aspect and various possible implementations of the first aspect is implemented.
[0054] The present application provides a method, device, equipment and computer storage medium for controlling a clothes drying rack. When an ultrasonic probe detects that a user has entered a preset clothes drying range, the clothes drying rack is controlled to descend at a first descent speed; when the ultrasonic probe detects that the user has been at a current position for more than a preset time, the ultrasonic probe is used to obtain the user's height; the target position is obtained according to the user's height, and the clothes drying rack is controlled to continue to descend to the target position at a second descent speed, wherein the second descent speed is greater than the first descent speed. When the user approaches the clothes drying rack, the clothes drying rack can quickly respond to descent and further descend to a suitable position according to the user's height after obtaining the user's height, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0056] Figure 1 The process of the clothes drying rack control method provided in the embodiment of the present application Figure 1 ;
[0057] Figure 2 The process of the clothes drying rack control method provided in the embodiment of the present application Figure 2 ;
[0058] Figure 3 The process of the clothes drying rack control method provided in the embodiment of the present application Figure 3 ;
[0059] Figure 4 A schematic diagram of an implementation scenario of the clothes drying rack control method provided in an embodiment of the present application;
[0060] Figure 5 The process of the clothes drying rack control method provided in the embodiment of the present application Figure 4 ;
[0061] Figure 6 It is a structural schematic diagram of the clothes drying rack control device provided by the present invention;
[0062] Figure 7It is a structural schematic diagram of the clothes drying rack control device provided by the present invention.
[0063] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0065] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0066] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0067] With the development of economy, the progress of society and the improvement of people's living standards, smart homes are becoming more and more popular, and people are beginning to use contactless control to automatically lower clothes drying racks.
[0068] The automatically descending clothes rack can be descended to the height required by the user to facilitate the user to dry clothes. The descending height can be controlled by the user through voice, gestures, etc., but it cannot automatically descend to the appropriate height according to the height of each user. Moreover, the clothes rack can only automatically pause after hitting an obstacle during the descent process, and the user experience is poor. Therefore, the current problem to be solved is how to make the clothes rack automatically descend to a suitable height according to the user's height and be controllable during the descent process to improve the user experience.
[0069] The present application provides a method for controlling a clothes drying rack, by installing an ultrasonic probe on the clothes drying rack to detect the user's position, when it is detected that the user enters a preset clothes drying range, the clothes drying rack is controlled to descend at a first speed to respond to the user, when the ultrasonic probe detects that the user has been in the current position for more than a preset time, the user's height is obtained, and the clothes drying rack is controlled to further descend at a second speed greater than the first speed according to the user's height, and finally reaches an optimal drying position suitable for the user's height, thereby improving the user experience.
[0070] The principles and features of the embodiments of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the embodiments of the present invention and are not used to limit the scope of the embodiments of the present invention.
[0071] Figure 1 The process of the clothes drying rack control method provided by the present invention is Figure 1 ;like Figure 1 As shown, the clothes drying rack control method specifically includes the following steps:
[0072] S101: When the ultrasonic probe detects that a user enters a preset clothes drying range, the clothes drying rack is controlled to descend at a first descending speed.
[0073] The ultrasonic probe is installed in the clothes drying rack, and it can be used to detect whether the user has entered the preset clothes drying range. The preset clothes drying range can be, for example, a range with a radius of 1 meter centered on the clothes drying rack. Ultrasonic waves have multi-directionality and good reflection ability. After the ultrasonic probe transmits ultrasonic waves to the human body, the human body reflects back reflected waves in different sound wave directions. According to the reflection time and reflection angle of the reflected wave, the horizontal distance between the user and the clothes drying rack can be obtained. By comparing the horizontal distance with the radius of the preset clothes drying range, it can be determined whether the user has entered the preset clothes drying range. In addition, due to the multi-directionality of ultrasonic waves, when a user stands in an oblique position of the clothes drying rack, it can be monitored, and the clothes drying rack will respond immediately, without having to wait until the user stands vertically below the clothes drying rack to take corresponding actions.
[0074] In order to further improve the user experience, when the ultrasonic probe detects that the user enters the preset clothes drying range, the clothes rack is controlled to descend at a first descent speed so that the user can feel the response action of the clothes rack. Since it is not currently determined whether the user has a need to dry clothes, the clothes rack can first descend at the first descent speed to the historical highest descent height stored in the clothes rack system database, or it can descend at the first speed to the user preset maximum descent height. This application does not impose any restrictions on this.
[0075] S102: When the ultrasonic probe detects that the user has been at the current position for more than a preset time, the ultrasonic probe is used to obtain the user's height.
[0076] Among them, the preset time length is the lower limit of the time length for judging whether the user has the need to dry clothes. When the ultrasonic probe detects that the user is in the current position for more than the preset time length, it is determined that the user has the need to dry clothes. It is necessary to further obtain the user's height through the ultrasonic probe to control the clothes rack to descend to the optimal drying height according to the user's height.
[0077] The method of obtaining the user's height through the ultrasonic probe can specifically be: controlling the ultrasonic probe to continuously adjust the rotation direction and transmit ultrasonic waves to the user, receiving the reflected waves returned from the user and obtaining the reflection time of the reflected waves and the corresponding reflection angle. It can be understood that the user's height needs to be determined based on the reflection time and reflection angle of the reflected waves returned from the top of the user's head. Among all the reflected waves obtained in the above manner, the reflected wave returned from the top of the user's head has the shortest reflection time. After screening it out, the user's height can be obtained in combination with the current height of the clothes drying rack from the ground.
[0078] S103: Obtaining a target position according to the height of the user, and controlling the clothes rack to continue descending to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed.
[0079] The target position is the optimal drying height suitable for the current user's height, and the specific determination method can be: obtain the height range to which the user's height belongs and obtain the candidate position corresponding to the height range, and the candidate position is determined based on the historical big data of the drying position of the clothes rack in the current user's height range stored in the system database. In order to further match the user with the optimal drying height, the user's height can be compared with the median of the height range to which he belongs.
[0080] If the user's height is less than the median of the height range, the candidate position is fine-tuned downward to obtain the target position.
[0081] After obtaining the target position, the clothes rack is controlled to continue to descend to the target position at a second speed. In order to ensure the continuity of the clothes rack's descending process, the present application provides multiple gradient descent speeds. Among the multiple gradient descent speeds, the second descent speed that is closest to the first descent speed and greater than the first descent speed is selected to control the clothes rack to descend to the target position.
[0082] The clothes drying rack control method provided in this embodiment controls the clothes drying rack to descend at a first descending speed when the ultrasonic probe detects that the user has entered a preset clothes drying range; obtains the user's height through the ultrasonic probe when the ultrasonic probe detects that the user has been at the current position for more than a preset time; obtains the target position according to the user's height, and controls the clothes drying rack to continue to descend to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed. When the user approaches the clothes drying rack, the clothes drying rack can quickly respond to the descent and further descend to a suitable position according to the user's height after obtaining the user's height, thereby improving the user experience.
[0083] Figure 2 is a flow chart of a second embodiment of the method for controlling a clothes drying rack provided by the present invention, Figure 2 exist Figure 1 Based on the above, a detailed description is given on detecting whether the user enters the preset clothes drying range and controlling the clothes drying rack to descend at the first descending speed, such as Figure 2 As shown, the method includes:
[0084] S201: Control the ultrasonic probe to be located in a preset direction, and obtain the echo reflection duration and the second reflection direction when a reflected echo is detected.
[0085] The preset direction is obtained based on the user's historical orientation big data stored in the system database, and the preset direction is the normal direction of the user approaching the clothes drying rack. For example, if the clothes drying rack is installed on the balcony of the user's home, the preset direction is the direction of the balcony entrance. In order to detect whether the user has entered the preset clothes drying range, the ultrasonic probe can be controlled to emit ultrasonic waves in a preset direction, and when the reflected wave is detected, it is determined that the user is close to the clothes drying rack; the reflection time of the reflected wave and its corresponding second reflection direction are obtained, and according to the reflection time and the second reflection direction, the horizontal distance (third distance) between the user and the clothes drying rack can be obtained, and the horizontal distance can be used to determine whether the user has entered the preset clothes drying range.
[0086] S202: Acquire a third distance between the user and the clothes drying rack according to the echo reflection duration and the second reflection direction.
[0087] Among them, the echo reflection time is the reflection time of the echo reflected by the user's body after the ultrasonic probe transmits the ultrasonic wave in the preset direction, and the second reflection direction is the reflection direction of the above echo. According to the echo reflection time and the second reflection direction, the third distance between the user and the clothes drying rack can be obtained, and the third distance is the horizontal distance between the user and the clothes drying rack. The acquisition method can be, for example: if the echo reflection time is 1.76 milliseconds, the angle between the second reflection direction and the horizontal direction is 30°; according to the propagation speed of sound 340m / s, it can be concluded that the current user is 0.6m away from the ultrasonic probe in the second reflection direction; according to the current user's distance from the ultrasonic probe in the second reflection direction of 0.6m, the angle between the second reflection direction and the horizontal direction is 30°, the calculation formula of the third distance between the user and the clothes drying rack can be obtained by the trigonometric function formula: 1m*cos30°=0.86m, that is, the horizontal distance between the user and the clothes drying rack is 0.86m.
[0088] S203: Determine whether the third distance is less than a preset distance; if so, execute S204; if not, the process ends.
[0089] Among them, the ultrasonic probe is installed in the clothes drying rack, and it can be used to detect whether the user enters the preset clothes drying range. The preset clothes drying range can be, for example, a range with a radius of 1 meter centered on the clothes drying rack. The radius of the preset clothes drying rack range is the preset distance. By comparing the horizontal distance between the user and the clothes drying rack, that is, the third distance and the preset distance, it can be determined whether the user enters the preset range.
[0090] S204: Determine that the user enters a preset clothes drying range.
[0091] If the current horizontal distance between the user and the clothes drying rack, i.e., the third distance, is less than the preset distance, it is determined that the user has entered the preset clothes drying range. For example, if the horizontal distance between the user and the clothes drying rack, i.e., the third distance, is 0.86 m, and the preset distance is 1 m, it is determined that the user has entered the preset clothes drying range because the third distance is less than the preset distance.
[0092] S205: Obtaining a distance difference between the current position of the clothes drying rack and a preset position.
[0093] Among them, in order to further improve the user experience, when the ultrasonic probe detects that the user has entered the preset clothes drying range, because it is not determined whether the current user has the need to dry clothes, the clothes drying rack is first controlled to descend to the preset position at the first descent speed within the target descent time, so that the user can feel the response action of the clothes drying rack; after the clothes drying rack descends to the preset descent position, if it is determined that the current user has the need to dry clothes, the clothes drying rack is further controlled to descend to the optimal drying height of the clothes drying rack that matches the height of the user. The preset position can be the highest historical descent height of the clothes drying rack stored in the system database, or it can be the highest descent height preset by the user, and this application does not limit this. The first descent speed of the clothes drying rack can be obtained by obtaining the distance difference between the current position of the clothes drying rack and the preset position.
[0094] S206: Acquire a first descending speed of the clothes rack according to the target descending time and the distance difference.
[0095] Among them, it takes a certain amount of time to calculate the optimal drying height. Through the historical data of the clothes rack system, the estimated time for calculating the optimal drying height can be obtained; in order to make the clothes rack descent process seen by the user coherent, the target descent time for the clothes rack to descend to the preset position at the first descent speed should be greater than the estimated time, so that the clothes rack system can calculate the optimal drying height during the first descent of the clothes rack, and continuously descend to the optimal drying height after determining that the user has the need to dry clothes. The target descent time is obtained based on the general time for the clothes rack to descend to the preset position stored in the clothes rack system, which is greater than the estimated time. By obtaining the quotient of the distance difference and the target descent time, the first descent speed of the clothes rack to descend to the preset position within the target descent time can be obtained.
[0096] S207: According to the first descending speed, controlling the clothes rack to descend to a preset position.
[0097] Among them, in order to further improve the user experience, when the ultrasonic probe detects that the user enters the preset clothes drying range, the clothes rack is controlled to descend to a preset position at a first descent speed within the target descent time, so that the user can feel the response action of the clothes rack. The preset position is the historical highest descent height of the clothes rack stored in the system database. It can also descend at the first speed to the user-preset maximum descent height, and the present application does not impose any restrictions on this.
[0098] The clothes drying rack control method provided in this embodiment controls the ultrasonic probe to be located in a preset direction, obtains the echo reflection time and the second reflection direction when the reflected echo is detected; obtains the third distance between the user and the clothes drying rack according to the echo reflection time and the second reflection direction; determines that the user has entered the preset clothes drying range when the third distance is less than the preset distance; then obtains the distance difference between the current position of the clothes drying rack and the preset position, obtains the first descent speed of the clothes drying rack according to the target descent time and the distance difference; controls the clothes drying rack to descend to the preset position according to the first descent speed. After the user enters the preset clothes drying range, the clothes drying rack can respond to the user and descend immediately, thereby improving the user experience.
[0099] Figure 3 is a flow chart of a third embodiment of a clothes drying rack control method provided by the present invention; Figure 3 exist Figure 1 Based on the above, a method for determining whether the user has a need for drying clothes, and obtaining the user's height through the ultrasonic probe when the user has a need for drying clothes is described in detail, such as Figure 3 As shown, the method includes:
[0100] S301: Determine whether the time the user has been at the current location exceeds a preset time; if so, execute S303; if not, execute S302.
[0101] S302: Control the clothes drying rack to reset.
[0102] Among them, in the process of detecting that the user enters the preset clothes drying range and controlling the clothes drying rack to descend to the preset position at the first descent speed, the ultrasonic probe simultaneously monitors whether the time the user is at the current position exceeds the preset time. The preset time is the lower limit of the time for judging whether the user has the need to dry clothes. If the time the user is at the current position is less than the preset time, it is determined that the user currently has no need to dry clothes, and the clothes drying rack is controlled to reset.
[0103] S303: Adjust the rotation direction of the ultrasonic probe to obtain the shortest reflection time and the corresponding first reflection direction in the reflected wave.
[0104] Among them, when the ultrasonic probe monitors that the user is at the current position for a time period exceeding the preset time period, it is determined that the user has a demand for drying clothes, and the user's height needs to be further obtained, so as to determine the optimal drying height corresponding to the user's height according to the user's height, and control the clothes drying rack to continue to descend to the optimal drying height. The user's height can be obtained by adjusting the rotation direction of the ultrasonic probe, emitting ultrasonic waves at different angles to the user, and according to the reflection time and reflection angle of the reflected waves returned by the ultrasonic waves at different angles. Specifically, the user's height needs to be determined according to the reflection time and reflection angle of the reflected wave returned from the top of the user's head. Among all the reflected waves obtained in the above manner, the reflection time of the reflected wave returned from the top of the user's head is the shortest. The reflection time of the emitted wave returned from the top of the user's head and the corresponding first reflection direction are obtained to obtain the user's height. The adjustment method of the ultrasonic probe can be: on the basis of controlling the ultrasonic wave to be emitted to the user's position, adjusting the ultrasonic emission angle so that the angle between it and the gravity direction is continuously increased, or adjusting the ultrasonic emission angle so that the angle between it and the gravity direction is continuously reduced, and this application does not limit this.
[0105] S304: Acquire a first distance between the user and the clothes drying rack according to the shortest reflection time and the first reflection direction.
[0106] The first distance is the vertical distance between the top of the user's head and the bottom of the clothes drying rack. Figure 4 A schematic diagram of an implementation scenario of the clothes drying rack control method provided in an embodiment of the present application, such as Figure 4 As shown, the direction marked by the arrow is the reflection direction of the reflected wave returned from the top of the user's head, that is, the first reflection direction; the angle ɑ is the angle between the first reflection direction and the horizontal direction. According to the reflection time of the reflected wave returned from the top of the user's head and the angle ɑ, the vertical distance between the top of the user's head and the bottom of the clothes rack, that is, the first distance, can be obtained.
[0107] For example, if the reflection time of the reflected wave returned from the top of the user's head is 1.76 milliseconds, the angle between the first reflection direction and the horizontal direction is 30°; based on the sound propagation speed of 340m / s, it can be concluded that the distance between the current user's head and the ultrasonic probe is 0.6m; based on the distance of 0.6m between the user's head and the ultrasonic probe and the angle of 30° between the first reflection direction and the horizontal direction, the trigonometric function formula can be used to derive the first distance between the user and the clothes rack: 1m*sin30°=0.3m, that is, the vertical distance between the user's head and the clothes rack is 0.3m.
[0108] S305: Obtain the user's height according to the first distance and the second distance.
[0109] Among them, the second distance is the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground, and its calculation method can be, for example: control the ultrasonic probe to emit ultrasonic waves in the direction perpendicular to the ground and receive reflected waves, and obtain the reflection time of the reflected wave. If the reflection time of the reflected wave is 5.9 milliseconds, combined with the sound propagation speed of 340m / s, it can be concluded that the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground is 2m, that is, the second distance is 2m; the user's height can be obtained by the difference between the second distance and the first distance, that is, the difference between the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground and the vertical distance between the top of the user's head and the bottom of the clothes rack. If the first distance is 0.3m, the user's height in this example is 1.7m.
[0110] The clothes drying rack control method provided in this embodiment adjusts the rotation direction of the ultrasonic probe to obtain the shortest reflection time and the corresponding first reflection direction in the reflected wave; obtains the first distance between the user and the clothes drying rack according to the shortest reflection time and the first reflection direction; and obtains the user's height according to the first distance and the second distance. The clothes drying rack can be lowered to the optimal drying position according to the obtained user's height during use, thereby improving the user's use experience.
[0111] Figure 4 Schematic diagram of the process of the fourth embodiment of the clothes drying rack control method provided by the present invention Figure 3 exist Figure 1 Based on the above, a method of obtaining the target position according to the height of the user and controlling the clothes drying rack to continue descending to the target position at the second descending speed is described in detail, such as Figure 4 As shown, the method includes:
[0112] S401: Obtain the height range to which the user's height belongs.
[0113] Among them, in order to more accurately match the user with the best drying height that is suitable for his / her height, the present application divides the user height range according to the user height big data stored in the clothes drying rack system database. The user height range can be, for example: 1m-1.3m, 1.3m-1.5m, 1.5m-1.6m, 1.6m-1.7m, 1.7m-1.8m, 1.8m-1.9m, 1.9m and above. The present application does not limit this. The user height range can be dynamically adjusted according to the user's family member information data. After obtaining the user's height, the height range to which the user's height belongs is obtained to accurately match the user with the best drying height.
[0114] S402: Obtain candidate positions corresponding to the height range.
[0115] The present application provides corresponding candidate positions for different height ranges, which can be suitable drying heights for users of different height ranges obtained by analyzing the big data stored in the clothes drying rack system. For example, for users in the height range of 1.7m-1.8m, the corresponding candidate position can be 1.65m.
[0116] S403: Determine whether the user's height is less than the median of the height range. If so, execute S405; if not, execute S404.
[0117] Among them, in order to make the best drying position matched to the user's height more accurate, after obtaining the candidate position corresponding to the user's height range, the candidate position can be fine-tuned by comparing the user's height with the median of the range to which the user's height belongs. It can be understood that because the candidate position is the appropriate drying height for users corresponding to different height ranges obtained after analyzing the big data stored in the clothes drying rack system, its value is closer to the best drying height for users whose height value is in the median of the range to which the user's height belongs. In order to avoid errors, by comparing the user's height with the median of the range to which the user's height belongs and controlling the clothes drying rack to make adjustments according to the comparison results, the best drying position matched with the current user's height can be obtained more accurately.
[0118] S404: Taking the candidate position as the target position.
[0119] Among them, if the user's height is greater than or equal to the median in the height range, there will be no situation where the best drying position matched for the user is slightly higher due to the user's height being lower in the height range, thereby reducing the user experience; the candidate position can be used as the target position, and the target position is the best drying height that matches the current user's height.
[0120] S405: The candidate position is subjected to downward fine-tuning processing to obtain the target position.
[0121] Among them, if the user's height is less than the median of the height range, the optimal drying height matched for the user may be slightly higher due to the lower value of the user's height in the height range, which reduces the user's experience. In order to avoid this situation, the present application is set to perform a downward fine-tuning process on the candidate position when the user's height is less than the median of the height range, and the height of the clothes drying rack after the downward fine-tuning process is used as the optimal drying height matched with the current user's height, that is, the target position. The fine-tuning distance of the downward fine-tuning process is determined according to the third distance, and the third distance is the horizontal distance between the user and the clothes drying rack, and the fine-tuning distance is proportional to the third distance. It can be understood that if the user's height is less than the median of the height range to which he belongs, the candidate position matched with his height is relatively high to a certain extent relative to the user. On this basis, if the user is farther away from the clothes drying rack, the difficulty of the user in the process of drying clothes is higher, so the greater the third distance, the greater the fine-tuning distance.
[0122] S406: When the clothes rack is descending to the target position, a second descending speed is selected from a plurality of descending speeds with gradient settings, and the clothes rack is controlled to descend to the target position at the second descending speed.
[0123] Among them, in order to make the descent process of the clothes rack seen by the user coherent, the second descent speed of the clothes rack in the process of descending to the target position should be consistent with the first speed of the clothes rack descending to the preset position in response to the user when the user enters the preset clothes drying range. At the same time, in order to improve the working efficiency of the clothes rack, the second descent speed should be greater than the first descent speed. To this end, the present application provides a plurality of gradient-set descent speeds as candidate speeds, from which the second descent speed is selected. For example, if the first descent speed of the clothes rack currently obtained is 30mm / s, the second descent speed can be selected as 40mm / s; after obtaining the second descent speed, the clothes rack is controlled to descend to the target position at the second descent speed, that is, the optimal drying height matching the current user height.
[0124] The clothes drying rack control method provided in this embodiment obtains the height range to which the user's height belongs and obtains the candidate position corresponding to the height range; if the user's height is less than the median of the height range, the candidate position is subjected to a downward fine-tuning process to obtain a target position; when the clothes drying rack descends to the target position, a second descending speed is selected from a plurality of descending speeds set in a gradient, and the clothes drying rack is controlled to descend to the target position at the second descending speed. The clothes drying rack is made to descend to the optimal drying position according to the user's height, thereby improving the user experience.
[0125] Figure 6 Schematic diagram of the structure of the clothes drying rack control device provided by the present invention. Figure 6 As shown, the clothes drying rack control device 50 includes:
[0126] Control module 51: When the ultrasonic probe detects that the user enters a preset clothes drying range, control the clothes drying rack to descend at a first descending speed;
[0127] Acquisition module 52: when the ultrasonic probe detects that the user is at the current position for more than a preset time, the ultrasonic probe is used to acquire the user's height;
[0128] Processing module 53: obtaining a target position according to the height of the user, and controlling the clothes rack to continue descending to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed.
[0129] Optionally, the control module 51 is further used to adjust the rotation direction of the ultrasonic probe to obtain the shortest reflection time and the corresponding first reflection direction in the reflected wave;
[0130] The acquisition module 52 is further configured to acquire a first distance between the user and the clothes drying rack according to the shortest reflection duration and the first reflection direction, wherein the first distance is a vertical distance between the top of the user's head and the bottom of the clothes drying rack;
[0131] The acquisition module 52 is further used to acquire the user's height according to the first distance and the second distance, wherein the second distance is the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground.
[0132] Optionally, the acquisition module 52 is further used to acquire a distance difference between the current position of the clothes drying rack and a preset position;
[0133] The acquisition module 52 is further used to acquire the first descending speed of the clothes drying rack according to the target descending time and the distance difference; wherein the target descending time is greater than the estimated time, and the estimated time is the estimated time for acquiring the target position;
[0134] The control module 51 is further configured to control the clothes drying rack to descend to a preset position according to the first descending speed.
[0135] Optionally, the processing module 53 is further configured to select a second descent speed from a plurality of gradient-set descent speeds during the process of the clothes drying rack descending to the target position, wherein the second descent speed is closest to the first descent speed and greater than the first descent speed;
[0136] The control module 51 is further configured to control the clothes drying rack to descend to the target position at the second descending speed.
[0137] Optionally, the control module 51 is further used to control the ultrasonic probe to be located in a preset direction, and when a reflected echo is detected, obtain the echo reflection duration and the second reflection direction;
[0138] The acquisition module 52 is further configured to acquire a third distance between the user and the clothes drying rack according to the echo reflection duration and the second reflection direction, wherein the third distance is a horizontal distance between the user and the clothes drying rack;
[0139] The processing module 53 is further configured to determine that the user has entered a preset clothes drying range when the third distance is less than a preset distance.
[0140] Optionally, the acquisition module 52 is further used to acquire the height range to which the user's height belongs;
[0141] The acquisition module 52 is further used to acquire candidate positions corresponding to the height range, wherein the candidate positions are determined based on historical big data of the drying positions of the clothes drying rack;
[0142] The processing module 53 is also used to perform downward fine-tuning processing on the candidate position to obtain the target position if the user's height is less than the median of the height range; wherein the fine-tuning distance of the downward fine-tuning processing is determined based on the third distance, and the fine-tuning distance is proportional to the third distance.
[0143] Optionally, the control module 51 is further configured to control the clothes rack to reset if the ultrasonic probe detects that the user has been at the current position for a period of time that does not exceed a preset time.
[0144] Figure 7 : is a structural schematic diagram of a clothes drying rack control device provided by the present invention, wherein the clothes drying rack control device comprises:
[0145] at least one processor and memory;
[0146] The memory stores computer-executable instructions;
[0147] The at least one processor executes the computer-executable instructions stored in the memory, so that when the at least one processor executes, the clothes drying rack control method as described in the first aspect and various possible implementation methods of the first aspect is implemented.
[0148] The present invention also provides a readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the clothes drying rack control method described in any one of the first aspects.
[0149] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling a clothes drying rack, characterized in that: An ultrasonic probe is provided at the bottom of the clothes drying rack, and the method comprises: When the ultrasonic probe detects that the user enters a preset clothes drying range, the clothes drying rack is controlled to descend at a first descending speed; When the ultrasonic probe detects that the user has been at the current position for more than a preset time, the ultrasonic probe is used to obtain the user's height; The target position is obtained according to the height of the user, and the clothes rack is controlled to continue to descend to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed.
2. The method according to claim 1, characterized in that The obtaining the user's height by using the ultrasonic probe comprises: Adjusting the rotation direction of the ultrasonic probe to obtain the shortest reflection time and the corresponding first reflection direction in the reflected wave; Acquire a first distance between the user and the clothes drying rack according to the shortest reflection time and the first reflection direction, where the first distance is a vertical distance between the top of the user's head and the bottom of the clothes drying rack; The user's height is obtained according to the first distance and the second distance, wherein the second distance is the distance between the bottom of the clothes rack and the ground obtained when the ultrasonic probe is perpendicular to the ground.
3. The method according to claim 1, characterized in that: The controlling the clothes drying rack to descend at a first descending speed comprises: Obtaining a distance difference between a current position of the clothes drying rack and a preset position; According to the target descent time and the distance difference, a first descent speed of the clothes drying rack is obtained; wherein the target descent time is greater than the estimated time, and the estimated time is the estimated time for obtaining the target position; According to the first descending speed, the clothes drying rack is controlled to descend to a preset position.
4. The method according to claim 1, characterized in that The controlling the clothes drying rack to continue descending to the target position at the second descending speed comprises: In the process of the clothes drying rack descending to the target position, a second descending speed is selected from a plurality of descending speeds with gradient settings, wherein the second descending speed is closest to the first descending speed and greater than the first descending speed; The clothes drying rack is controlled to descend to the target position at the second descending speed.
5. The method according to claim 1, characterized in that The detecting, by the ultrasonic probe, that the user enters a preset clothes drying range comprises: Controlling the ultrasonic probe to be located in a preset direction, and obtaining the echo reflection duration and the second reflection direction when a reflected echo is detected; Acquire a third distance between the user and the clothes drying rack according to the echo reflection duration and the second reflection direction, where the third distance is a horizontal distance between the user and the clothes drying rack; When the third distance is less than the preset distance, it is determined that the user enters the preset clothes drying range.
6. The method according to claim 5, characterized in that The acquiring the target position according to the height of the user comprises: Obtain the height range to which the user's height belongs; Acquire a candidate position corresponding to the height range, wherein the candidate position is determined based on historical big data of the drying position of the clothes drying rack; If the user's height is less than the median of the height range, the candidate position is subjected to downward fine-tuning processing to obtain the target position; wherein the fine-tuning distance of the downward fine-tuning processing is determined based on the third distance, and the fine-tuning distance is proportional to the third distance.
7. The method according to claim 1, characterized in that The method further comprises: If the ultrasonic probe detects that the user is at the current position for a period of time that does not exceed a preset time, the clothes drying rack is controlled to reset.
8. A clothes drying rack control device, characterized in that: include: A control module: when the ultrasonic probe detects that the user enters a preset clothes drying range, controls the clothes drying rack to descend at a first descending speed; Acquisition module: when the ultrasonic probe detects that the user is at the current position for more than a preset time, the ultrasonic probe is used to acquire the user's height; Processing module: obtaining a target position according to the height of the user, and controlling the clothes rack to continue descending to the target position at a second descending speed, wherein the second descending speed is greater than the first descending speed.
9. A clothes drying rack control device, characterized in that: include: Memory; processor; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the clothes drying rack control method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and when the computer executable instructions are executed by the processor, they are used to implement the clothes drying rack control method according to any one of claims 1 to 7.