Fan control method, device and medium
By analyzing the impact relationship between positioning and control commands of multiple users in the space where the fan is located, the control parameters of the fan are determined, and the problem of low flexibility in using existing fans in multiple people is solved, achieving more efficient multi-user usage needs.
Patent Information
- Application Number
- CN202311230230.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-04-01
AI Technical Summary
Existing fans cannot meet the different usage needs of each user in multiple use scenarios, resulting in low usage flexibility.
By detecting multiple users in the space where the fan is located, positioning and obtaining positioning information of each user, combining the influence relationship between multiple control instructions, fan control parameters that meet the needs of multiple users, including rotation track, usage order and usage duration.
It realizes flexible control of the fan, can meet the different usage needs of multiple users, and improves the practicality of the fan.
Smart Images

Figure CN119737331A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart home appliances, and specifically provides a method, device and medium for controlling a fan. Background Art
[0002] Fans are essential for cooling down in summer. Currently, most fans have two modes: directional blowing and swing blowing. Users can switch the blowing mode of the fan through a switch on the fan, for example, switching from directional blowing mode to swing blowing mode.
[0003] However, in a multi-person scenario, since each person is in a different position and has different requirements for the use of the fan, the fan, whether in directional blowing mode or swing blowing mode, cannot meet the needs of multiple people, making the flexibility of using the fan low. Summary of the invention
[0004] In order to overcome the above-mentioned defects, the present invention is proposed to provide a controller that solves or at least partially solves the technical problem of low flexibility in using a fan.
[0005] In a first aspect, the present invention provides a method for controlling a fan, the method comprising:
[0006] If it is detected that there are multiple users in the space where the fan is located, each user is located to obtain the location information of each user relative to the fan;
[0007] When multiple control instructions are received, determining the influence relationship between the multiple control instructions according to the location information of the user corresponding to each of the control instructions;
[0008] Determining fan control parameters that meet the needs of multiple users according to the influence relationship between the multiple control instructions and the location information of the user corresponding to each control instruction;
[0009] The fan is controlled according to the fan control parameter.
[0010] Furthermore, in the above-mentioned fan control method, determining the fan control parameter according to the influence relationship between the plurality of control instructions and the location information of the user corresponding to each control instruction includes:
[0011] If the influence relationship between the multiple control instructions is that all the control instructions influence each other, determine the priority of the user corresponding to each control instruction;
[0012] Determining the fan control parameter according to the priority of the user corresponding to each of the control instructions and the location information of the user corresponding to each of the control instructions;
[0013] The fan control parameters include at least the rotation trajectory of the fan, the order in which each user uses the fan, and the duration for which each user uses the fan.
[0014] Furthermore, in the above-mentioned fan control method, determining the priority of the user corresponding to each control instruction includes:
[0015] Determining the priority of the user corresponding to each control instruction according to the reception time of each control instruction; and / or
[0016] Determine the priority of the user corresponding to each control instruction according to the identity information of the user corresponding to each control instruction, and / or
[0017] According to the content of each control instruction, the priority of the user corresponding to each control instruction is determined.
[0018] Furthermore, in the above-mentioned fan control method, determining the fan control parameter according to the influence relationship between the plurality of control instructions and the location information of the user corresponding to each control instruction includes:
[0019] If the influence relationship between the multiple control instructions is that all the control instructions do not influence each other, determine the fan control parameter according to the location information of the user corresponding to each control instruction;
[0020] Wherein, the fan control parameter at least includes the rotation trajectory of the fan.
[0021] Furthermore, in the above-mentioned fan control method, the control instruction includes a first part of control instructions and a second part of control instructions, and the fan control parameters are determined according to the influence relationship between the multiple control instructions and the location information of the user corresponding to each control instruction, including:
[0022] If the influence relationship between the plurality of control instructions is that the first part of the control instructions influence each other, and the second part of the control instructions do not influence each other, determining the priority of the user corresponding to each control instruction in the first part of the control instructions;
[0023] determining the fan control parameter according to the location information of the user corresponding to each of the control instructions and the priority of the user corresponding to each of the control instructions in the first part of the control instructions;
[0024] The fan control parameters include at least the rotation trajectory of the fan, the order in which the user uses the fan corresponding to each control instruction in the first part of the control instructions, and the duration of the user using the fan corresponding to each control instruction in the first part of the control instructions.
[0025] Furthermore, in the above-mentioned fan control method, determining the influence relationship between the plurality of control instructions according to the location information of the user corresponding to each control instruction includes:
[0026] Perform the following operations on any two to-be-matched control instructions among all control instructions until all control instructions are traversed to obtain the influence relationship between the multiple control instructions;
[0027] Determining, according to the location information of the user corresponding to each of the control instructions to be matched, whether the use requirements of the user corresponding to each of the control instructions to be matched can be met simultaneously during the use of the fan;
[0028] If the use requirements of the user corresponding to each of the control instructions to be matched can be met simultaneously during the use of the fan, it is determined that the two control instructions to be matched do not affect each other;
[0029] If the use requirements of the user corresponding to each of the control instructions to be matched cannot be met simultaneously during the use of the fan, it is determined that the two control instructions to be matched affect each other.
[0030] Furthermore, in the above-mentioned fan control method, after positioning a user in the same space as the fan and obtaining the user's positioning information, the method further includes:
[0031] The positioning information of each user relative to the fan and the information of the fan are sent to a control device that matches the positioning information of the user, so that the user can issue control instructions to the fan based on the positioning information of the user and the information of the fan displayed by the control device; wherein the control instructions include voice instructions and / or manipulation instructions.
[0032] Furthermore, in the above-mentioned fan control method, positioning each user to obtain positioning information of each user relative to the fan includes:
[0033] Based on at least one of the sound source positioning technology, the millimeter wave radar positioning technology and the infrared sensing positioning technology, each user is positioned to obtain the positioning information of each user relative to the fan.
[0034] In a second aspect, the present invention provides a fan control device, which includes a controller and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the controller to execute any of the fan control methods described above.
[0035] In a third aspect, a computer-readable storage medium is provided, in which a plurality of program codes are stored. The program codes are suitable for being loaded and run by a controller to execute any one of the above-mentioned fan control methods.
[0036] The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
[0037] When implementing the technical solution of the present invention, if there are multiple users in the space where the fan is located, each user is located separately to obtain the positioning information of each user relative to the fan. When multiple control instructions are received, the influence relationship between the multiple control instructions is determined according to the positioning information of the user corresponding to each control instruction; based on the influence relationship between the multiple control instructions and the positioning information of the user corresponding to each control instruction, fan control parameters that meet the usage needs of multiple users are determined; based on the fan control parameters, the fan is controlled, so that the fan can be flexibly controlled to improve the practicality of the fan. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which:
[0039] Figure 1 is a schematic flow chart of main steps of a fan control method according to an embodiment of the present invention;
[0040] Figure 2 It is a schematic diagram of the principle of controlling the fan shaking of the present invention;
[0041] Figure 3 It is a schematic diagram of the principle of controlling the fan speed of the present invention;
[0042] Figure 4 is a main structural block diagram of a fan control device according to an embodiment of the present invention;
[0043] Figure 5 is a main structural block diagram of a fan control device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0044] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0045] In the description of the present invention, "module" and "controller" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The controller may be a central controller, a microcontroller, an image controller, a digital signal controller, or any other suitable controller. The controller has data and / or signal processing functions. The controller may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
[0046] Fans are essential for cooling down in summer. Currently, most fans have two modes: directional blowing and swing blowing. Users can switch the blowing mode of the fan through a switch on the fan, for example, switching from directional blowing mode to swing blowing mode.
[0047] However, in a multi-person scenario, since each person is in a different position and has different requirements for the use of the fan, the fan, whether in directional blowing mode or swing blowing mode, cannot meet the needs of multiple people, making the flexibility of using the fan low.
[0048] Therefore, in order to solve the above technical problems, the present invention provides the following technical solutions:
[0049] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart showing the main steps of a fan control method according to an embodiment of the present invention. Figure 1 As shown, the fan control method in the embodiment of the present invention mainly includes the following steps 101 to 104.
[0050] Step 101: if it is detected that there are multiple users in the space where the fan is located, each user is positioned to obtain positioning information of each user relative to the fan;
[0051] In a specific implementation process, the number of users in the space where the fan is located can be detected in the following ways but not limited to. For example, a voice recognition device, a radar sensor, an infrared sensor, etc. can be set on the fan to collect data to obtain the number of users in the space where the fan is located. A camera can also be set in the space where the fan is located to obtain the number of users in the space where the fan is located using images captured by the camera. Examples are not given one by one here.
[0052] If it is detected that there are multiple users in the space where the fan is located, each user can be located to obtain the location information of each user relative to the fan. Specifically, at least one of a voice recognition device, a radar sensor, and an infrared sensor can be used to collect data to obtain data related to the user's location information, and then each user can be located based on at least one of a sound source localization technology, a millimeter wave radar localization technology, and an infrared sensing localization technology to obtain the location information of each user relative to the fan.
[0053] Specifically, the positioning of each user based on the sound source positioning technology, the millimeter wave radar positioning technology and the infrared sensing positioning technology is used as an example to illustrate the positioning information of each user relative to the fan: the sound source positioning technology is combined with two microphones to perform sound source positioning, and the sound source positioning uses the time delay method to determine the time difference т between the sound source and the two microphones, and the angle between the specific sound source and the line connecting the two microphones is determined by the time difference, so that the first positioning information of each user relative to the fan can be obtained. The millimeter wave radar and the infrared sensor can also be used to sense the human body located in the space where the electric fan is located, and the millimeter wave radar positioning technology and the infrared sensor can be used to obtain the second positioning information and the third positioning information of each user relative to the fan. Then, the first positioning information, the second positioning information and the third positioning information are subjected to but not limited to logical AND operations to obtain the positioning information of each user relative to the fan. For example, the first positioning information, the second positioning information and the third positioning information can also be calculated by weighted summation calculation and other methods, which will not be explained one by one here.
[0054] In a specific implementation process, since the demand for the use of fans by mobile users is not very clear, the users detected here may be relatively stationary users, and mobile users may be eliminated. After multiple users are detected, they may be added to a preset congestion queue.
[0055] Step 102: when multiple control instructions are received, determining the influence relationship between the multiple control instructions according to the location information of the user corresponding to each of the control instructions;
[0056] In a specific implementation process, when there are multiple users, at least two users may issue control instructions. For any two instructions, there may be a conflict between the two users' needs to use the fan, which means that the two instructions affect each other. Otherwise, it means that the two instructions do not affect each other. Therefore, when multiple control instructions are received, the influence relationship between the multiple control instructions can be determined based on the location information of the user corresponding to each control instruction.
[0057] It should be noted that the control instructions received here can be control instructions received at different times. When multiple control instructions are received at the same time, the command can be output as invalid, and the user can be informed that the voice instructions are confused and cannot be recognized. Indeed, if multiple control instructions are received at the same time, the content of the empty instruction can also be detected. If the contents of these instructions are different, the instruction invalidation function can actually be not executed. Only when the contents of these instructions are the same, the instruction invalidation function can be executed.
[0058] Specifically, for any two control instructions to be matched among all control instructions, it can be determined whether the use requirements of the users corresponding to each control instruction to be matched can be met simultaneously during the use of the fan according to the location information of the users corresponding to each control instruction to be matched; if the use requirements of the users corresponding to each control instruction to be matched can be met simultaneously during the use of the fan, it is determined that the two control instructions to be matched do not affect each other; if the use requirements of the users corresponding to each control instruction to be matched cannot be met simultaneously during the use of the fan, it is determined that the two control instructions to be matched affect each other. In this way, the influence relationship between any two control instructions to be matched can be obtained, and other control instructions to be matched can be traversed continuously until all control instructions to be matched are traversed to obtain the influence relationship between multiple control instructions.
[0059] The influence relationship between multiple control instructions is described below with a specific example, wherein the input of the control instruction can be voice, remote control button, etc. Here, voice is taken as an example:
[0060] The first case: User 1 says to shake the fan to blow, and User 2 says not to blow it. The two users have different intentions. The fan can shake within the maximum shaking range and between the position of User 2. At this time, the fan only needs to be able to move to the position of User 1, and does not need to move to the position of User 2. That is, the use needs of User 1 and User 2 can be met at the same time, and the two control instructions do not affect each other.
[0061] The second situation: User 1 says shake your head and blow, and User 2 says blow me. The intentions of the two users are different. The fan needs to turn to both User 1 and User 2. That is, the needs of User 1 and User 2 cannot be met at the same time, and the two control instructions affect each other.
[0062] The third case: User 1 says "blow me", and User 2 says "don't blow me". The two users have different intentions, and the fan only needs to rotate to the position of User 1. That is, the use needs of User 1 and User 2 can be met at the same time, and the two control instructions do not affect each other.
[0063] The fourth case: User 1 says to shake the head and blow, and User 2 says to shake the head and blow. The two users have the same intention, and the fan can rotate. In this case, the fan can rotate to the position of User 1 and the position of User 2. That is, the needs of User 1 and User 2 can be met at the same time, and the two control instructions do not affect each other.
[0064] The fifth situation: User 1 says "blow me", and User 2 says "blow me", and the two users have the same intention, and the fan needs to be turned to both User 1 and User 2. That is, the use needs of User 1 and User 2 cannot be met at the same time, and the two control instructions affect each other.
[0065] The sixth case: User 1 says "Don't blow me", and User 2 says "Don't blow me", and the two users have the same intention, so the fan can rotate to a position that is neither the user's position nor the user 2's position. That is, the use needs of User 1 and User 2 can be met at the same time, and the two control instructions do not affect each other.
[0066] Step 103: determining fan control parameters that meet the use requirements of multiple users according to the influence relationship between the multiple control instructions and the location information of the user corresponding to each control instruction;
[0067] In a specific implementation process, the influence relationship between the multiple control instructions can be divided into the following three situations:
[0068] a. The influence relationship between the multiple control instructions is that all the control instructions influence each other;
[0069] In a specific implementation process, if the influence relationship between the multiple control instructions is that all the control instructions influence each other, the priority of the user corresponding to each control instruction can be determined; according to the priority of the user corresponding to each control instruction and the location information of the user corresponding to each control instruction, the fan control parameters can be determined, and the fan control parameters can be broadcasted by voice; wherein the fan control parameters at least include the rotation trajectory of the fan, the order in which each user uses the fan, and the duration for which each user uses the fan. Specifically, the order and duration for which each user uses the fan can be determined according to the user's priority, and then the rotation trajectory of the fan can be determined according to the user's location information, the order in which each user uses the fan, and the duration for which each user uses the fan.
[0070] In a specific implementation process, the priority of the user corresponding to each control instruction can be determined according to the reception time of each control instruction, such as the earlier the reception time, the higher the priority; and / or, the priority of the user corresponding to each control instruction can be determined according to the identity information of the user corresponding to each control instruction, such as the association between the user's identity information and the priority can be set in advance to obtain the priority corresponding to the user's identity information, and / or, the priority of the user corresponding to each control instruction can be determined according to the content of each control instruction, such as the content of the instruction is the wind speed, the greater the wind speed, the higher the priority; the content of the instruction is the required duration of hair blowing, the greater the required duration, the higher the priority. Examples will not be given one by one here.
[0071] It should be noted that if multiple methods of determining the priority mentioned above are simultaneously included when determining the priority, the priority of the user can be obtained by weighted summation.
[0072] In a specific implementation process, two users are used as an example. User 1 says "blow me", and user 2 says "blow me". The two users have the same intention, and the fan needs to be turned to both user 1 and user 2. That is, the use needs of user 1 and user 2 cannot be met at the same time, and the two control instructions affect each other.
[0073] In a specific implementation process, if the time of the control instruction issued by user 1 is earlier than the time of the control instruction issued by user 2, user 1 has a higher priority. At this time, the order of using the fan can be determined as follows: user 1 uses the fan first, and user 2 uses the fan later. The blowing time of each position can be determined according to actual needs, and the fan control parameters such as the blowing trajectory can be determined according to the order in which the users use the fan, the blowing time and the position information of the two users, so as to perform control. For example, it can stop at the position of user 1 but not limited to 60s, and then turn to the position of user 2 and stop but not limited to 60s.
[0074] In a specific implementation process, if user 1 says shake your head to blow, and user 2 says blow me, the intentions of the two users are different. The fan needs to turn to the position of user 1 and also needs to turn to the position of user 2. That is, the use needs of user 1 and user 2 cannot be met at the same time, and the two control instructions affect each other. At this time, the priority of the user can be determined according to the user's content and the time when the instruction is issued. For example, the priority of the user is determined to be higher than that of user 2. At this time, the determined fan control parameters may include: shake your head to blow first, and stay at the position of user 1 for the time required for shaking the head, and when turning to the position of user 2, stay for a longer period of time.
[0075] It should be noted that other methods of determining user priorities and other examples of how to determine fan control parameters that meet the needs of multiple users in other situations of mutual influence are not described one by one here.
[0076] b. The influence relationship between the multiple control instructions is that all the control instructions do not influence each other;
[0077] In a specific implementation process, if the influence relationship between the multiple control instructions is that all the control instructions do not influence each other, the fan control parameters are determined according to the location information of the user corresponding to each control instruction; wherein the fan control parameters at least include the rotation trajectory of the fan. The rotation trajectory of the fan can be obtained according to the time of executing the control instruction and the location information of the user.
[0078] In a specific implementation process, if user 1 says "blow me" and user 2 says "don't blow me", the intentions of the two users are different, and the fan only needs to rotate to the position of user 1. That is, the use needs of user 1 and user 2 can be met at the same time, and the two control instructions do not affect each other. At this time, it can be determined that the fan control parameters include the rotation trajectory of the fan from the current position of the fan to the position of user 1.
[0079] c. The control instructions include a first part of control instructions and a second part of control instructions. The influence relationship between the multiple control instructions is that the first part of control instructions influence each other, while the second part of control instructions do not influence each other.
[0080] If the influence relationship between the multiple control instructions is that the control instructions of the first part influence each other, and the control instructions of the second part do not influence each other, determine the priority of the user corresponding to each control instruction in the first part of the control instructions; determine the fan control parameters according to the positioning information of the user corresponding to each control instruction and the priority of the user corresponding to each control instruction in the first part of the control instructions; wherein the fan control parameters include at least the rotation trajectory of the fan, the order in which the users corresponding to each control instruction in the first part of the control instructions use the fan, and the length of time that the users corresponding to each control instruction in the first part of the control instructions use the fan.
[0081] In this case, the fan control parameters may be specifically determined according to the above cases a and b, which will not be described in detail here.
[0082] Step 104: Control the fan according to the fan control parameter.
[0083] In a specific implementation process, the fan may be controlled according to the fan control parameter. For example, the fan may be controlled to shake its head. Figure 2FIG. 1 is a schematic diagram showing the principle of controlling the fan to shake its head according to the present invention. Figure 2 As shown, the limit switch can be used to control the shaking of the fan. Among them, the limit switch may include but is not limited to an ordinary elastic metal sheet. When the shaking motor M turns to this left limit switch S1, the lever of the shaking motor M1 moves the elastic metal sheet so that the two metal sheets of the left limit switch S1 are in contact, and the pin corresponding to the first limit signal SW1 is connected, and the controller MCU obtains a high-level signal. The controller MCU outputs signals Q4 and Q7, so that the first photoelectric isolation relay Q1 and the sixth photoelectric isolation relay Q6 are turned on, and the shaking motor M controls the fan to turn right. The right limit switch is the same, but the direction is opposite to that of the left limit switch S1, which will not be repeated here. After the controller MCU obtains the left and right limit signals, the H-bridge drive circuit in the figure is controlled to be forward and reversed, or the operation is stopped to complete the control of the shaking motor M1. Among them, the pin of the output signal and the corresponding photoelectric isolation relay may include amplification, current limiting and other devices, which will not be described in detail here.
[0084] For another example, the fan may be controlled according to the speed requirement in the control instruction. Figure 3 FIG. 1 is a schematic diagram of the principle of controlling the fan speed of the present invention. Figure 3 As shown, after the controller MCU obtains the user's speed control instruction, it drives the fan motor through the 10th transistor Q10 and the 9th transistor Q9. Figure 3 The hardware has two gears, the large gear is MOS1 and the small gear is MOS2. Different numbers of diodes are used to divide the voltage, so that the fan motor M2 obtains different driving voltages, thereby controlling the speed of the fan motor M2. Users can set more gears in the software, and complete the multi-gear speed reduction and speed increase control of the motor by applying different PWM waveforms to the 10th transistor Q10 and the 9th transistor Q9.
[0085] In a specific implementation process, the fan control method of this embodiment is described with the following specific implementation process, and other implementation processes are not described one by one by examples:
[0086] 1) After the fan is powered on and initialized, it will first swing its head at full angles to perform full-range scanning and room user position modeling;
[0087] 2) When multiple human bodies are identified, determine whether they are relatively stationary targets. If so, add them to the congestion processing queue. If they are moving targets, discard them. This step is performed once every 30 seconds and the queue is refreshed.
[0088] 3) If user A issues the command "blow towards me" first, and user B issues the same command later, user A's priority is increased, and the command to blow towards direction A for 60 seconds is executed. After 60 seconds, blow towards direction B for 60 seconds, and repeat the blowing process successively. The blowing time and operation plan are broadcasted through voice. If there is no new command, repeat this step and execute step 2) to refresh the queue every 30 seconds.
[0089] 4) If user A issues a command saying "Don't blow me", and user B issues a command saying "Blow me", then the blowing operation in direction B is executed, the execution result is announced by voice, and the blowing operation in direction B continues until the next instruction is issued. During this period, step 2) program refresh queue is continuously executed at intervals;
[0090] 5) If user A issues a command saying "Don't blow me", and user B also issues a command saying "Don't blow me", the fan will mark the user's position as a prohibited blowing area, and then move the fan head to the blowing area to blow air.
[0091] 6) If multiple users issue commands at the same time, the commands will be invalidated and the user will be informed that the voice commands are mixed and cannot be recognized.
[0092] The fan control method of the present embodiment locates each user separately if there are multiple users in the space where the fan is located, and obtains the location information of each user relative to the fan. When multiple control instructions are received, the influence relationship between the multiple control instructions is determined according to the location information of the user corresponding to each control instruction; fan control parameters that meet the usage requirements of the multiple users are determined according to the influence relationship between the multiple control instructions and the location information of the user corresponding to each control instruction; the fan is controlled according to the fan control parameters, so that the fan can be flexibly controlled to improve the practicality of the fan.
[0093] In a specific implementation process, after locating a user in the same space as the fan and obtaining the user's location information, the following operations may be performed:
[0094] The positioning information of each user relative to the fan and the information of the fan are sent to a control device that matches the positioning information of the user, so that the user can issue control instructions to the fan based on the positioning information of the user and the information of the fan displayed by the control device; wherein the control instructions include voice instructions and / or manipulation instructions.
[0095] Specifically, when there are multiple users, each user can carry a control device, and the user's positioning information relative to the fan is usually also the positioning information of the control device relative to the fan. Then, the positioning information of the control device can be obtained and matched with the positioning information of each user relative to the fan, and then the positioning information of each user relative to the fan and the information of the fan are sent to the control device that matches the positioning information of the user. In other words, each user can only see his or her relative position to the fan and the information of the fan from the control device he or she carries, thereby preventing the user from seeing the relative position of other users to the fan, causing the input of erroneous instructions, and affecting the use of other users. Among them, the positioning information of the control device can be determined according to the MAC address of the control device.
[0096] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
[0097] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above method embodiments when executed by the controller. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0098] Furthermore, the present invention also provides a fan control device.
[0099] See attached Figure 4 , Figure 4 FIG. 1 is a main structural block diagram of a fan control device according to an embodiment of the present invention. Figure 4 As shown, the fan control device in the embodiment of the present invention may include a controller 41 and a storage device 42 .
[0100] The storage device 42 may be configured to store a program for executing the fan control method of the above method embodiment, and the controller 41 may be configured to execute the program in the storage device 42, which includes but is not limited to the program for executing the fan control method of the above method embodiment. For ease of explanation, only the part related to the embodiment of the present invention is shown, and for specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The fan control device may be a control device formed by various electronic devices.
[0101] In a specific implementation process, the number of the storage device 42 and the controller 41 can be multiple. The program for executing the fan control method of the above method embodiment can be divided into multiple subprograms, and each subprogram can be loaded and run by the controller 41 to execute different steps of the fan control method of the above method embodiment. Specifically, each subprogram can be stored in different storage devices 42 respectively, and each controller 41 can be configured to execute the program in one or more storage devices 42 to jointly implement the fan control method of the above method embodiment, that is, each controller 41 executes different steps of the fan control method of the above method embodiment respectively to jointly implement the fan control method of the above method embodiment.
[0102] The multiple controllers 41 may be controllers deployed on the same device. For example, the device may be a high-performance device composed of multiple controllers, and the multiple controllers 41 may be controllers configured on the high-performance device. In addition, the multiple controllers 41 may also be controllers deployed on different devices. For example, the device may be a server cluster, and the multiple controllers 41 may be controllers on different servers in the server cluster.
[0103] See attached Figure 5 , Figure 5 FIG. 1 is a main structural block diagram of a fan control device according to another embodiment of the present invention. Figure 5 As shown, the fan control device in the embodiment of the present invention may also include a Bluetooth chip, a voice chip, a microphone, a millimeter radar, an infrared sensor, a first drive circuit, a fan motor, a second drive circuit, a shaking motor, and two shaking limit switches. Among them, the model of the Bluetooth chip may be but is not limited to PHY6222, the model of the voice chip may be but is not limited to CSK6012, and the millimeter radar may be a 24GHZ millimeter wave radar.
[0104] Furthermore, the present invention also provides a fan, which includes the fan control device as described above.
[0105] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the fan control method of the above method embodiment, and the program can be loaded and run by the controller to implement the above fan control method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
[0106] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules can be the controller itself, or a part of the software in the controller, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
[0107] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.
[0108] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A method for controlling a fan, characterized in that: include: If it is detected that there are multiple users in the space where the fan is located, each user is located to obtain the location information of each user relative to the fan; When multiple control instructions are received, determining the influence relationship between the multiple control instructions according to the location information of the user corresponding to each of the control instructions; Determining fan control parameters that meet the needs of multiple users according to the influence relationship between the multiple control instructions and the location information of the user corresponding to each control instruction; The fan is controlled according to the fan control parameter.
2. The fan control method according to claim 1, characterized in that: Determining a fan control parameter according to the influence relationship between the plurality of control instructions and the location information of a user corresponding to each control instruction includes: If the influence relationship between the multiple control instructions is that all the control instructions influence each other, determine the priority of the user corresponding to each control instruction; determining the fan control parameter according to the priority of the user corresponding to each of the control instructions and the location information of the user corresponding to each of the control instructions; The fan control parameters include at least the rotation trajectory of the fan, the order in which each user uses the fan, and the duration for which each user uses the fan.
3. The fan control method according to claim 2, characterized in that: Determining the priority of the user corresponding to each of the control instructions includes: Determining the priority of the user corresponding to each control instruction according to the reception time of each control instruction; and / or Determine the priority of the user corresponding to each control instruction according to the identity information of the user corresponding to each control instruction, and / or According to the content of each control instruction, the priority of the user corresponding to each control instruction is determined.
4. The fan control method according to claim 1, characterized in that: Determining a fan control parameter according to the influence relationship between the plurality of control instructions and the location information of a user corresponding to each control instruction includes: If the influence relationship between the multiple control instructions is that all the control instructions do not influence each other, determine the fan control parameter according to the location information of the user corresponding to each control instruction; Wherein, the fan control parameter at least includes the rotation trajectory of the fan.
5. The fan control method according to claim 1, characterized in that: The control instruction includes a first part of control instructions and a second part of control instructions, and the fan control parameter is determined according to the influence relationship between the plurality of control instructions and the location information of the user corresponding to each control instruction, including: If the influence relationship between the plurality of control instructions is that the first part of the control instructions influence each other, and the second part of the control instructions do not influence each other, determining the priority of the user corresponding to each control instruction in the first part of the control instructions; determining the fan control parameter according to the location information of the user corresponding to each of the control instructions and the priority of the user corresponding to each of the control instructions in the first part of the control instructions; The fan control parameters include at least the rotation trajectory of the fan, the order in which the user uses the fan corresponding to each control instruction in the first part of the control instructions, and the duration of the user using the fan corresponding to each control instruction in the first part of the control instructions.
6. The fan control method according to claim 1, characterized in that: Determining the influence relationship between the plurality of control instructions according to the location information of the user corresponding to each of the control instructions includes: Perform the following operations on any two to-be-matched control instructions among all control instructions until all control instructions are traversed to obtain the influence relationship between the multiple control instructions; Determining, according to the location information of the user corresponding to each of the control instructions to be matched, whether the use requirements of the user corresponding to each of the control instructions to be matched can be met simultaneously during the use of the fan; If the use requirements of the user corresponding to each of the control instructions to be matched can be met simultaneously during the use of the fan, it is determined that the two control instructions to be matched do not affect each other; If the use requirements of the user corresponding to each of the control instructions to be matched cannot be met simultaneously during the use of the fan, it is determined that the two control instructions to be matched affect each other.
7. The fan control method according to claim 1, characterized in that: After locating the user in the same space as the fan and obtaining the user's location information, the method further includes: The positioning information of each user relative to the fan and the information of the fan are sent to a control device that matches the positioning information of the user, so that the user can issue control instructions to the fan based on the positioning information of the user and the information of the fan displayed by the control device; wherein the control instructions include voice instructions and / or manipulation instructions.
8. The fan control method according to claim 1, characterized in that: Position each user and obtain the positioning information of each user relative to the fan, including: Based on at least one of the sound source positioning technology, the millimeter wave radar positioning technology and the infrared sensing positioning technology, each user is positioned to obtain the positioning information of each user relative to the fan.
9. A fan control device, characterized in that: The device comprises a controller and a storage device, wherein the storage device is suitable for storing a plurality of program codes, and the program codes are suitable for being loaded and run by the controller to execute the fan control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: A plurality of program codes are stored therein, and the program codes are suitable for being loaded and run by the controller to execute the fan control method according to any one of claims 1 to 8.