Controller low-power mode wake-up method, device, appliance and storage medium
By analyzing the characteristics of standard wake-up signals and interference signals, detection parameters are determined for signal detection, which solves the problem of false wake-up in the low-power mode of the controller, and achieves precise wake-up control and improves user experience.
Patent Information
- Application Number
- CN202311058072.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-21
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2043-08-21
AI Technical Summary
Existing controllers are susceptible to interference signals in low-power mode, leading to false wake-up issues.
By analyzing the duration and duty cycle of standard wake-up signals and interference signals, the number of detection rounds, single-round detection duration, number of detections, and detection time interval are determined. These parameters are used to detect signals at the controller's wake-up port, accurately identify wake-up signals, and avoid false wake-ups.
It achieves precise wake-up control in the low-power mode of the controller, improves the user experience, and effectively eliminates the influence of interference signals.
Smart Images

Figure CN116880332B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of signal control, in particular to a controller low-power mode wake-up method and device, an electrical appliance and a storage medium. BACKGROUND
[0002] To meet the requirements of specific scenarios, electrical products need to enter a low-power mode after standby to meet the power consumption requirements. Existing controllers mostly use external interrupts to wake up from low power. That is, when the controller detects a change in the level on a specific pin, it will exit the low-power mode. If the level signal at this pin is unstable, it will cause the controller to incorrectly exit the low-power mode. Taking infrared wake-up as an example, when there is no infrared signal, the detection pin is at a high level, and when there is an infrared signal, the level at the detection pin will change from high to low, thereby completing the wake-up function when the detection pin detects a high-low change in level. Visible light and other interference can also cause the level at the detection pin to be pulled low for a moment, thereby causing the controller to incorrectly exit the low-power mode. SUMMARY
[0003] Therefore, the present application provides a controller low-power mode wake-up method and device, an electrical appliance and a storage medium to solve the problem of false wake-up caused by interference signals when the controller is woken up in low-power mode.
[0004] In a first aspect, the present application provides a controller low-power mode wake-up method, which comprises:
[0005] obtaining a standard wake-up signal and an interference signal of a controller in a low-power mode;
[0006] analyzing a first duration, a third duration of an effective level in a single cycle and a first duty cycle corresponding to the standard wake-up signal and a second duration, a fourth duration of an effective level in a single cycle and a second duty cycle corresponding to the interference signal, respectively;
[0007] determining the number of detection rounds and the single round detection time corresponding to each round of detection based on the relationship between the first duration and the second duration;
[0008] determining the number of detections corresponding to each round of detection and the single detection time interval based on the single round detection time and the relationship between the third duration and the fourth duration;
[0009] performing signal detection on the wake-up port of the controller according to the number of detection rounds, the single detection time, the number of detections corresponding to each round of detection and the single detection time interval, and performing wake-up control on the controller based on the detection result, the first duty cycle and the second duty cycle.
[0010] Thus, by analyzing the signal characteristics of the standard wake-up signal and the interference signal in terms of duration and duration of effective level in a single cycle, the detection parameters of the number of detection rounds, the single detection duration, the corresponding detection number of each round of detection, and the single detection time interval are determined, and signal detection is performed using these detection parameters to accurately identify the detected signal, thereby avoiding the problem of the controller incorrectly exiting the low-power mode due to interference signals, achieving precise wake-up control of the controller in low-power mode, and improving user experience.
[0011] In an optional embodiment, the signal detection of the wake-up port of the controller according to the number of detection rounds, the single detection duration, the corresponding detection number of each round of detection, and the single detection time interval comprises:
[0012] According to the single detection time interval, the wake-up port of the controller is detected until the corresponding detection number of the current round of detection is reached, and the first number of detected signals is recorded.
[0013] After the detection duration reaches the single detection duration, the step of detecting the wake-up port of the controller according to the single detection time interval is returned.
[0014] Thus, by utilizing the regularity of the standard wake-up signal and the randomness of the interference signal, through multiple rounds of signal detection of the wake-up port of the controller, the accuracy of the signal detection result can be improved, the interference signal can be effectively excluded, and the precise control of the controller wake-up can be ensured, further improving user experience.
[0015] In an optional embodiment, the wake-up control of the controller based on the detection result, the first duty cycle, and the second duty cycle comprises:
[0016] The first number of detected signals corresponding to each round of detection is obtained.
[0017] Based on the relationship between the ratio of the first number of detected signals corresponding to each round of detection and the detection number and a first preset ratio, it is determined whether each round of detection detects a wake-up flag signal, the minimum value of the first preset ratio is greater than the minimum value of the first duty cycle and the second duty cycle, and the maximum value of the first preset ratio is less than the maximum value of the first duty cycle and the second duty cycle.
[0018] The first detection round number of the detected wake-up flag signal is counted, and the controller is wake-up controlled based on the ratio of the first detection round number to a preset detection round number.
[0019] Thus, by using the ratio of the number of signals detected in each round and the total number of detections in each round, it is determined whether the wake-up flag signal is detected in each round. By counting the proportion of the number of rounds in which the wake-up flag signal is detected to the preset number of detection rounds, the controller is controlled to wake up, which can effectively eliminate interference signals and thus realize accurate control of the controller wake-up.
[0020] In an optional embodiment, the relationship between the ratio of the first number of signals detected in each round of detection and the number of detections and the first preset ratio is used to determine whether the wake-up flag signal is detected in each round of detection, which comprises:
[0021] Based on the first preset ratio and the first duty cycle, a first range is determined.
[0022] It is determined whether the ratio of the first number of signals detected in the current round of detection and the number of detections belongs to the first range.
[0023] When the ratio of the first number of signals detected in the current round of detection and the number of detections belongs to the first range, or when the ratio of the first number of signals detected in the current round of detection and the number of detections does not belong to the first range and the difference between it and the first duty cycle is less than the difference between it and the first preset ratio, it is determined that the wake-up flag signal is detected.
[0024] Thus, by setting the first preset ratio, the size relationship between the ratio of the first number of signals detected in the current round of detection and the number of detections and the first preset ratio and the first duty cycle is compared to accurately identify the wake-up flag signal, which can effectively eliminate interference signals and thus realize accurate control of the controller wake-up.
[0025] In an optional embodiment, the relationship between the ratio of the first number of signals detected in each round of detection and the number of detections and the first preset ratio is used to determine whether the wake-up flag signal is detected in each round of detection, which comprises:
[0026] Based on the first preset ratio and the second duty cycle, a second range is determined.
[0027] It is determined whether the ratio of the first number of signals detected in the current round of detection and the number of detections belongs to the second range.
[0028] When the ratio of the first number of signals detected in the current round of detection and the number of detections belongs to the second range, or when the ratio of the first number of signals detected in the current round of detection and the number of detections does not belong to the second range and the difference between it and the second duty cycle is less than the difference between it and the first preset ratio, it is determined that the wake-up flag signal is not detected.
[0029] By setting a first preset ratio, and comparing the ratio of the first number of times the signal was detected to the number of times the detection was performed with the first preset ratio and the second duty cycle, the wake-up flag signal can be accurately identified. This can effectively identify interference signals and prevent the controller from being woken up by mistake.
[0030] In one optional implementation, the step of waking up the controller based on the ratio of the first number of detection rounds to the preset number of detection rounds includes:
[0031] Based on the relationship between the ratio of the first detection rounds to the preset detection rounds and the second preset ratio, it is determined whether the detected signal is a standard wake-up signal. The minimum value of the second preset ratio is greater than the minimum value between the first duty cycle and the second duty cycle, and the maximum value of the second preset ratio is less than the maximum value between the first duty cycle and the second duty cycle.
[0032] When the detected signal is a standard wake-up signal, the controller is controlled to resume normal operation.
[0033] By setting a second preset ratio, and comparing the ratio of the first detection rounds to the preset detection rounds with the second preset ratio, it can identify whether the detected signal is a standard wake-up signal. If the detected signal is a standard wake-up signal, the controller is controlled to resume normal operation, thereby achieving precise wake-up of the controller.
[0034] In an optional implementation, the method further includes:
[0035] When the detected signal is not a standard wake-up signal, the controller is controlled to enter a low-power mode.
[0036] By setting a second preset ratio, and comparing the ratio of the first detection rounds to the preset detection rounds with the second preset ratio, it can identify whether the detected signal is a standard wake-up signal. If the detected signal is not a standard wake-up signal, the controller is put back into low-power mode, thereby eliminating the influence of interference signals and avoiding the problem of the controller being falsely woken up by interference signals.
[0037] In an optional implementation, before performing signal detection on the wake-up port of the controller according to the number of detection rounds, the duration of a single detection, the number of detections corresponding to each round of detection, and the time interval between single detections, the method further includes:
[0038] The timing begins after the controller enters low-power mode;
[0039] When the timeout period reaches the preset timeout threshold, the controller's detection function for the wake-up port is activated.
[0040] By setting a pre-designed timing duration threshold, the detection function of the wake-up port of the controller is woken up in a timed manner, so that the wake-up port signal detection is performed in a partial power consumption mode, and the product power consumption is reduced as much as possible.
[0041] In an optional embodiment, when the detected signal is not a standard wake-up signal, the method further comprises:
[0042] resuming the timing, and returning to the step of waking up the detection function of the wake-up port of the controller when the timing duration reaches the pre-designed timing duration threshold.
[0043] Thus, the partial power consumption is woken up in a timed manner to complete the wake-up of the detection function of the wake-up port of the controller, and the wake-up signal is responded to in time, so that the accuracy of the wake-up control of the controller is improved.
[0044] In an optional embodiment, the determination of whether the detected signal is a standard wake-up signal based on the relationship between the ratio of the first detection round number to the preset detection round number and the second preset ratio comprises:
[0045] determining a third range based on the second preset ratio and the first duty cycle;
[0046] determining whether the ratio of the first detection round number to the preset detection round number belongs to the third range;
[0047] when the ratio of the first detection round number to the preset detection round number belongs to the third range, or when the ratio of the first detection round number to the preset detection round number does not belong to the third range and the difference between the ratio and the first duty cycle is smaller than the difference between the ratio and the second preset ratio, determining that the detected signal is a standard wake-up signal.
[0048] Thus, by setting the second preset ratio, the relationship between the ratio of the first detection round number to the preset detection round number and the second preset ratio and the first duty cycle is compared, and it is determined whether the detected signal is a standard wake-up signal, so that the accuracy of signal recognition is improved.
[0049] In an optional embodiment, the determination of whether the detected signal is a standard wake-up signal based on the relationship between the ratio of the first detection round number to the preset detection round number and the second preset ratio further comprises:
[0050] determining a fourth range based on the second preset ratio and the second duty cycle;
[0051] determining whether the ratio of the first detection round number to the preset detection round number belongs to the fourth range;
[0052] When the ratio of the first detection round number to the preset detection round number belongs to the fourth range, or when the ratio of the first detection round number to the preset detection round number does not belong to the fourth range and the difference between the ratio and the second duty cycle is less than the difference between the ratio and the second preset ratio, it is determined that the detected signal is not a standard wake-up signal.
[0053] Therefore, by setting the second preset ratio, by comparing the ratio of the first detection round number to the preset detection round number with the second preset ratio and the second duty cycle, it is determined whether the detected signal is a standard wake-up signal, and the accuracy of signal recognition is improved.
[0054] In an optional embodiment, based on the relationship between the first duration and the second duration, the detection round number and the single round detection time corresponding to each detection round are determined, including:
[0055] Based on the maximum value and the minimum value in the first duration and the second duration, the upper limit value and the lower limit value of the single round detection time are determined respectively;
[0056] Based on the ratio of the maximum value to the lower limit value and the ratio of the minimum value to the upper limit value, the upper limit value and the lower limit value of the detection round number are determined respectively;
[0057] The detection round number is set based on the upper limit value and the lower limit value of the detection round number, and the single round detection time is set based on the upper limit value and the lower limit value of the single round detection time.
[0058] Therefore, by utilizing the difference between the duration corresponding to the standard wake-up signal and the duration corresponding to the interference signal, the selection range of the detection round number and the selection range of the single round detection time are determined, so as to accurately identify the wake-up signal and accurately control the controller.
[0059] In an optional embodiment, based on the single round detection time and the relationship between the third duration and the fourth duration, the detection number corresponding to each detection round and the single detection time interval are determined, including:
[0060] Based on the maximum value and the minimum value in the third duration and the fourth duration, the upper limit value and the lower limit value of the single detection time interval are determined respectively;
[0061] Based on the single round detection time and the lower limit value of the single detection time interval, the upper limit value of the detection number is determined, and the lower limit value of the detection number is 1;
[0062] The detection number is set based on the lower limit value and the upper limit value of the detection number, and the single detection time interval is set based on the upper limit value and the lower limit value of the single detection time interval.
[0063] Thus, by utilizing the difference between the standard wake-up signal and the interference signal in terms of the duration of the effective level signal in a single period, the selection range of the single round detection duration and the single detection time interval is determined, so as to accurately identify the wake-up signal and accurately wake up the controller.
[0064] In a second aspect, the present application provides a controller low-power mode wake-up device, the device comprising:
[0065] a first processing module, configured to analyze the first duration, the third duration of the effective level in a single period and the first duty cycle corresponding to the standard wake-up signal, and the second duration, the fourth duration of the effective level in a single period and the second duty cycle corresponding to the interference signal, respectively;
[0066] a first processing module, configured to analyze the first duration, the third duration of the effective level in a single period and the first duty cycle corresponding to the standard wake-up signal, and the second duration, the fourth duration of the effective level in a single period and the second duty cycle corresponding to the interference signal, respectively;
[0067] a second processing module, configured to determine the number of detection rounds and the single round detection duration corresponding to each round of detection based on the relationship between the first duration and the second duration;
[0068] a third processing module, configured to determine the detection frequency corresponding to each round of detection and the single detection time interval based on the single round detection duration and the relationship between the third duration and the fourth duration;
[0069] a fourth processing module, configured to perform signal detection on the wake-up port of the controller according to the number of detection rounds, the single detection duration, the detection frequency corresponding to each round of detection and the single detection time interval, and to perform wake-up control on the controller based on the detection result, the first duty cycle and the second duty cycle.
[0070] In a third aspect, the present application provides an electric appliance, comprising: a controller in a low-power mode, the controller comprising:
[0071] a memory and a processor, which are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions to perform the controller low-power mode wake-up method of the first aspect or any of the corresponding embodiments thereof.
[0072] In an optional embodiment, the electric appliance is an electric fan.
[0073] The controller is a mainboard of the electric fan.
[0074] The standard wake-up signal of the controller is an infrared signal, and the interference signal of the controller is a visible light signal.
[0075] In a fourth aspect, the present application provides a computer readable storage medium, having stored thereon computer instructions for causing a computer to execute the controller low-power mode wake-up method of the first aspect or any of its possible implementation forms. BRIEF DESCRIPTION OF DRAWINGS
[0076] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the specific embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings described below are some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0077] Figure 1 is a flowchart of a controller low-power mode wake-up method according to an embodiment of the present application;
[0078] Figure 2 is a flowchart of another controller low-power mode wake-up method according to an embodiment of the present application;
[0079] Figure 3 is a flowchart of still another controller low-power mode wake-up method according to an embodiment of the present application;
[0080] Figure 4 is a specific process diagram of wake-up signal detection according to an embodiment of the present application;
[0081] Figure 5 is a specific process diagram of specific pin state detection according to an embodiment of the present application;
[0082] Figure 6 is a structural block diagram of a controller low-power mode wake-up device according to an embodiment of the present application;
[0083] Figure 7 is a structural block diagram of an electrical appliance according to an embodiment of the present application;
[0084] Figure 8 is a hardware structure diagram of a controller in an electrical appliance according to an embodiment of the present application. DETAILED DESCRIPTION
[0085] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0086] To meet the requirements of specific scenarios, the electric appliance product needs to make the controller of the product enter a low-power mode after standby to meet the power consumption requirements. The existing controller mostly uses an external interrupt to wake up the low-power mode. That is, when the controller detects that the level on a specific pin changes, the controller exits the low-power mode. If the level signal at the pin is unstable, the controller may exit the low-power mode incorrectly. Taking infrared wake-up as an example, when there is no infrared signal, the detection pin is at a high level, and when there is an infrared signal, the level at the detection pin changes from high to low, so the wake-up function can be completed when the detection pin detects that the level changes from high to low. Visible light and other interference may also pull the level at the detection pin low for a moment, thus causing the controller to exit the low-power mode incorrectly.
[0087] The controller low-power mode wake-up scheme provided by the present application detects and records the state of a specific pin of a wake-up port, then determines whether a wake-up signal exists according to the recorded state, and decides whether to exit the low-power mode or to enter the low-power mode again. The problem of incorrect exit of the low-power mode of the controller caused by interference signals is avoided, precise wake-up control of the low-power mode of the controller is achieved, and the user experience is improved.
[0088] According to an embodiment of the present application, a controller low-power mode wake-up method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0089] In this embodiment, a controller low-power mode wake-up method is provided, which can be used for the controller of an electric appliance device, such as an MCU, a single-chip microcomputer, etc. Figure 1 The flowchart of the controller low-power mode wake-up method according to an embodiment of the present application is shown in FIG. 1, which includes the following steps: Figure 1
[0090] In step S101, the standard wake-up signal and the interference signal of the controller in the low-power mode are acquired.
[0091] Exemplarily, taking the mainboard in the controller of an electric fan as an example, the corresponding standard wake-up signal is the infrared signal sent by a remote controller, and the corresponding interference signal is the visible light signal. In actual application, the wake-up signal can also be other wake-up signals of the controller, such as a serial port interrupt signal, and the interference signal can also be other communication signals for serial communication with the controller. The present application is only used as an example and is not limited thereto.
[0092] Step S102, respectively analyze the first duration corresponding to the standard wake-up signal, the third duration and the first duty cycle of the effective level in a single cycle, and the second duration corresponding to the interference signal, the fourth duration and the second duty cycle of the effective level in a single cycle.
[0093] Exemplarily, taking the infrared signal of the remote controller as the standard wake-up signal, the user usually operates the remote controller for about 100ms at a time, so the first duration corresponding thereto can be set to 100ms, and the duty cycle is 50%. Taking the high level as the effective level in a single cycle, assuming that the cycle length is 10ms and the third duration is 5ms, the second duration of the visible light interference signal is 20ms, and the duty cycle is 20%. Taking the high level as the effective level in a single cycle, assuming that the cycle length is also 10ms and the fourth duration is 2ms. This is only an example, and the present application is not limited thereto. It should be noted that in the embodiments of the present application, the standard wake-up signal and the interference signal are both periodic signals, and the time of a single cycle of the two can be equal or not equal. In addition, the effective signal in a single cycle can also be a low level signal, which can be set according to the signal characteristics of the standard wake-up signal and the interference signal. The present application is not limited thereto.
[0094] Step S103, based on the relationship between the first duration and the second duration, determine the detection round number and the single round detection duration corresponding to each detection round.
[0095] Specifically, by utilizing the difference characteristics of the standard wake-up signal and the interference signal duration, by setting the detection round number and the single round detection duration that can reflect the difference between the two, the two can be distinguished.
[0096] Step S104, based on the single round detection duration and the relationship between the third duration and the fourth duration, determine the detection number corresponding to each detection round and the single detection time interval.
[0097] Specifically, by utilizing the difference characteristics of the standard wake-up signal and the duty cycle, by setting the detection single detection number and the detection time interval that can reflect the difference between the two, and combining the above detection round number and single round detection duration, the two can be distinguished more accurately.
[0098] Step S105, according to the detection round number, the single detection duration, the detection number corresponding to each detection round and the single detection time interval, the signal of the wake-up port of the controller is detected, and the controller is awakened based on the detection result, the first duty cycle and the second duty cycle.
[0099] Thus, by analyzing the signal characteristics of the standard wake-up signal and the interference signal in terms of duration and duration of effective level in a single cycle, the detection parameters of the number of detection rounds, the single detection duration, the corresponding detection number of each round of detection, and the single detection time interval are determined, and the signal detection is performed using these detection parameters, so as to accurately identify the detected signal, thereby avoiding the problem of false exit of the controller from the low-power mode due to the interference signal, achieving accurate wake-up control of the low-power mode of the controller, and improving the user experience.
[0100] In the embodiment, a controller low-power mode wake-up method is provided, which can be used for the controller of an electrical appliance, such as an MCU, a single-chip microcomputer, etc. Figure 1 The flowchart of the controller low-power mode wake-up method according to the embodiment of the present application is shown in Figure 1 The flowchart includes the following steps:
[0101] In step S201, the standard wake-up signal and the interference signal of the controller in the low-power mode are obtained. For details, refer to the related description of step S101 as shown in Figure 1 The detailed description of step S101 is not repeated here.
[0102] In step S202, the first duration, the third duration of the effective level in a single cycle, and the first duty cycle corresponding to the standard wake-up signal, and the second duration, the fourth duration of the effective level in a single cycle, and the second duty cycle corresponding to the interference signal are analyzed respectively. For details, refer to the related description of step S102 as shown in Figure 1 The detailed description of step S102 is not repeated here.
[0103] In step S103, based on the relationship between the first duration and the second duration, the number of detection rounds and the single round detection duration corresponding to each round of detection are determined.
[0104] Specifically, step S203 includes:
[0105] In step S2031, based on the maximum value and the minimum value in the first duration and the second duration, the upper limit value and the lower limit value of the single round detection duration are determined respectively.
[0106] For example, assuming that the first duration is 100 ms and the second duration is 20 ms, the range of the single round detection duration is (20 ms, 100 ms), for example, the single round detection duration is selected as 30 ms, which is only an example, and the present application is not limited thereto.
[0107] In step S2032, based on the ratio of the maximum value to the lower limit value and the ratio of the minimum value to the upper limit value, the upper limit value and the lower limit value of the number of detection rounds are determined respectively.
[0108] Exemplarily, the range of the detection rounds is (5, 0.2), and in actual application, since the detection rounds are positive numbers, the actual selection range of the detection rounds is an integer from 1 to 5, for example, the detection rounds are 4 rounds, which is only an example, and the application is not limited thereto.
[0109] In step S2033, the detection rounds are set based on the upper limit value and the lower limit value of the detection rounds, and the single-round detection duration is set based on the upper limit value and the lower limit value of the single-round detection duration.
[0110] Specifically, the detection rounds and the single-round detection duration can be flexibly set in the range of the detection rounds and the range of the single-round detection duration determined above, and in actual application, the detection rounds and the single-round detection duration can be flexibly set according to the detection accuracy and the detection efficiency requirement, and the application is not limited thereto.
[0111] Thus, the selection range of the detection rounds and the selection range of the single-round detection duration are determined by using the difference between the corresponding durations of the standard wake-up signal and the interference signal, so as to accurately identify the wake-up signal and accurately wake up the controller.
[0112] In step S204, the detection times corresponding to each round of detection and the single-detection time interval are determined based on the single-round detection duration and the relationship between the third duration and the fourth duration.
[0113] Specifically, the step S204 includes:
[0114] In step S2041, the upper limit value and the lower limit value of the single-detection time interval are respectively determined based on the maximum value and the minimum value of the third duration and the fourth duration.
[0115] Exemplarily, it is assumed that the third duration and the fourth duration are 15 ms and 6 ms respectively, that is, the value range of the single-detection time interval is (6 ms, 15 ms), and signal detection in this range can distinguish whether the detection signal is a standard wake-up signal or an interference signal.
[0116] In step S2042, the upper limit value of the detection times is respectively determined based on the single-round detection duration and the lower limit value of the single-detection time interval, and the lower limit value of the detection times is 1.
[0117] Exemplarily, taking the single-round detection duration of 30 ms as an example, when the value range of the single-detection time interval is (6 ms, 15 ms), the corresponding detection times are obtained by dividing the single-round detection duration by the single-detection time interval, that is, the upper limit value of the detection times is 5, and the value range of the detection times is (1, 5), which is only an example, and the application is not limited thereto.
[0118] Step S2043, setting the detection times based on the lower limit value and the upper limit value of the detection times, and setting the single detection time interval based on the lower limit value and the upper limit value of the single detection time interval.
[0119] Specifically, the detection times and the single detection time interval can be flexibly set within the above-mentioned determined detection times range and single detection time interval range, and in actual applications, can be flexibly set according to the detection accuracy and detection efficiency requirements, and the present application is not limited thereto.
[0120] Thus, by utilizing the difference of the effective level signal duration in the single cycle corresponding to the standard wake-up signal and the interference signal, the selection range of the single round detection duration and the single detection time interval is determined, so as to accurately identify the wake-up signal and accurately wake up the controller.
[0121] In actual applications, if the time of maintaining the special level in the interference signal is very short t11, and the time of maintaining the special level in the wake-up signal is relatively long t12. Then, after each low-power wake-up, P times of level detection can be performed, and the interval time is t. If the P times of level are all special levels, it is considered that the signal detected this time is the wake-up signal (t11
[0122] Essentially, after each wake-up of low power, each round of signal detection is actually a single filtering (partial filtering) of the detected signal. It is mainly suitable for interference signals and wake-up signals with different short-time signal characteristics. Short-time signal characteristics refer to the level characteristics of the signal in a short time. In applications, the "performance optimization" and "power consumption increase" brought by the single filtering are evaluated as a whole, and then it is decided whether to perform single filtering and how many times of single filtering should be performed.
[0123] Step S205, performing signal detection on the wake-up port of the controller according to the detection round number, the single detection duration, the detection times corresponding to each round of detection, and the single detection time interval, and performing wake-up control on the controller based on the detection result, the first duty cycle, and the second duty cycle.
[0124] Specifically, the above-mentioned step S205 includes:
[0125] Step S2051, performing signal detection on the wake-up port of the controller according to the single detection time interval, until the detection times corresponding to the current round of detection are reached, and recording the first number of detected signals.
[0126] Exemplarily, taking the remote control infrared signal detection as an example, the level of the wake-up port of the controller is detected twice in each round, the detection interval is 0.5 ms, and as long as any one of the two detections detects a special level (the special level can be a high level or a low level, which is determined according to the characteristics of the standard wake-up signal), it is considered that this round of detection is in a special state, that is, this detection detects a signal, and records it.
[0127] Step S2052, after the detection duration reaches the single detection duration, returning to the step of signal detection of the wake-up port of the controller according to the single detection time interval.
[0128] Exemplarily, taking 5 rounds of detection as an example, the number of times of detecting a special level in each round is recorded by detecting twice in each round, so as to further improve the accuracy of the detection result.
[0129] Therefore, by utilizing the regularity of the standard wake-up signal and the randomness of the interference signal, through multiple rounds of signal detection of the wake-up port of the controller, the accuracy of the signal detection result can be improved, the interference signal can be effectively excluded, and the accurate control of the controller wake-up can be ensured, thereby further improving the user experience.
[0130] Step S2053, obtaining the first number of times of detecting a signal corresponding to each round of detection.
[0131] Exemplarily, taking the above embodiment as an example, the number of times of detecting a signal in each round of detection is one of 0, 1 and 2.
[0132] Step S2054, judging whether the wake-up flag signal is detected in each round of detection based on the relationship between the ratio of the first number of times of detecting a signal and the detection number corresponding to each round of detection and the first preset ratio.
[0133] The minimum value of the first preset ratio is greater than the minimum value of the first duty cycle and the second duty cycle, and the maximum value of the first preset ratio is less than the maximum value of the first duty cycle and the second duty cycle. By setting the first preset ratio between the first duty cycle and the second duty cycle, the standard wake-up signal and the interference signal can be distinguished.
[0134] Exemplarily, assuming that the first duty cycle is 50% and the second duty cycle is 20%, the first preset ratio can be set to 30% or the like, and the actual interference signal and the standard wake-up signal can be flexibly set according to the characteristics, which is not limited by the present application.
[0135] Specifically, the above step S2054 specifically includes:
[0136] Step a1, determining a first range based on the first preset ratio and the first duty cycle.
[0137] For example, the first range is (30%, 50%) in the above embodiment.
[0138] Step a2, judging whether the ratio of the first number of detected signals in the current round of detection to the detection number belongs to the first range.
[0139] Step a3, when the ratio of the first number of detected signals in the current round of detection to the detection number belongs to the first range, or when the ratio of the first number of detected signals in the current round of detection to the detection number does not belong to the first range and the difference between the ratio and the first duty cycle is smaller than the difference between the ratio and the first preset ratio, it is determined that the wake-up flag signal is detected.
[0140] For example, assuming that the detection number is 5, if the first number of detected signals is 2, the ratio of the first number of detected signals in the current round of detection to the detection number is 0.4, which belongs to the first range, and it is determined that the wake-up flag signal is detected; if the first number of detected signals is 1, the ratio of the first number of detected signals in the current round of detection to the detection number is 0.2, which does not belong to the first range; if the first number of detected signals is 4, the ratio of the first number of detected signals in the current round of detection to the detection number is 0.8, which does not belong to the first range, but the difference between the ratio and the first duty cycle 0.3 is smaller than the difference between the ratio and the first preset ratio 0.5, so it is determined that the wake-up flag signal is detected.
[0141] Therefore, by setting the first preset ratio, comparing the ratio of the first number of detected signals in the current round of detection to the detection number with the first preset ratio and the first duty cycle, the wake-up flag signal can be accurately identified, the interference signal can be effectively excluded, and the accurate control of the controller wake-up can be realized.
[0142] Step a4, determining the second range based on the first preset ratio and the second duty cycle.
[0143] For example, the second range is (20%, 30%) in the above embodiment.
[0144] Step a5, judging whether the ratio of the first number of detected signals in the current round of detection to the detection number belongs to the second range.
[0145] Step a6, when the ratio of the first number of detected signals in the current round of detection to the detection number belongs to the second range, or when the ratio of the first number of detected signals in the current round of detection to the detection number does not belong to the second range and the difference between the ratio and the second duty cycle is smaller than the difference between the ratio and the first preset ratio, it is determined that the wake-up flag signal is not detected.
[0146] Exemplarily, assuming that the detection times are 5 times, if the first detection times of the signal is 2, the ratio of the first detection times of the signal corresponding to the current round of detection to the detection times is 0.4, which does not belong to the second range; if the first detection times of the signal is 1, the ratio of the first detection times of the signal corresponding to the current round of detection to the detection times is 0.2, which belongs to the second range, and it is determined that the wake-up flag signal is not detected; if the first detection times of the signal is 0, the ratio of the first detection times of the signal corresponding to the current round of detection to the detection times is 0, which does not belong to the second range, but the difference between 0 and the second duty ratio 0.2 is less than the difference between 0 and the first preset ratio 0.3, and thus it is determined that the wake-up flag signal is not detected.
[0147] Therefore, by setting the first preset ratio, the ratio of the first detection times of the signal corresponding to the current round of detection to the detection times is compared with the first preset ratio and the second duty ratio, so as to accurately identify the wake-up flag signal, and the interference signal can be effectively identified to avoid the controller from being falsely woken up.
[0148] Step S2055: The first detection round number of the wake-up flag signal is counted, and the controller is woken up based on the ratio of the first detection round number to the preset detection round number.
[0149] The preset detection round number is a maximum detection round number capable of identifying the standard wake-up signal and the interference signal, which can be flexibly set according to the signal characteristics of the standard wake-up signal and the interference signal, or can be selected according to experience, and the present application is not limited thereto.
[0150] Therefore, by using the ratio of the number of signals detected in each round to the total number of detections in each round, it is determined whether the wake-up flag signal is detected in each round, and the controller is woken up by counting the ratio of the round number of the wake-up flag signal to the preset detection round number, so that the interference signal can be effectively excluded, and the accurate control of the controller is realized.
[0151] Specifically, the controller is woken up based on the ratio of the first detection round number to the preset detection round number in step S2055, including:
[0152] Step b1: It is judged whether the detected signal is the standard wake-up signal based on the relationship between the ratio of the first detection round number to the preset detection round number and the second preset ratio.
[0153] The minimum value of the second preset ratio is greater than the minimum value of the first duty ratio and the second duty ratio, and the maximum value of the second preset ratio is less than the maximum value of the first duty ratio and the second duty ratio. The second preset ratio is set between the first duty ratio and the second duty ratio to distinguish the standard wake-up signal and the interference signal.
[0154] Exemplarily, assuming that the first duty cycle is 50% and the second duty cycle is 20%, the second preset ratio can be set as 40% and the like, and can be flexibly set according to the characteristics of the actual interference signal and the standard wake-up signal, and the application is not limited thereto.
[0155] Specifically, the step b1 comprises:
[0156] Step c1, determining a third range based on the second preset ratio and the first duty cycle.
[0157] Exemplarily, taking the above embodiment as an example, the first range is (40%, 50%).
[0158] Step c2, judging whether the ratio of the first detection round number to the preset detection round number belongs to the third range.
[0159] Step c3, when the ratio of the first detection round number to the preset detection round number belongs to the third range, or when the ratio of the first detection round number to the preset detection round number does not belong to the third range and the difference between the ratio and the first duty cycle is less than the difference between the ratio and the second preset ratio, determining that the detected signal is the standard wake-up signal.
[0160] Exemplarily, assuming that the preset detection round number is 5 times, if the first detection round number is 2, the ratio of the first detection round number to the preset detection round number is 0.4, which belongs to the third range, and it is determined that the detected signal is the standard wake-up signal; if the first detection round number of the detected signal is 1, the ratio of the first detection round number to the preset detection round number is 0.2, which does not belong to the third range, and does not meet the detection condition of the standard wake-up signal; if the first detection round number of the detected signal is 4, the ratio of the first detection round number to the preset detection round number corresponding to the detected signal is 0.8, which does not belong to the third range, but the difference between the ratio and the first duty cycle 0.3 is less than the difference between the ratio and the second preset ratio 0.4, and therefore, it is determined that the detected signal is the standard wake-up signal.
[0161] Step c4, determining a fourth range based on the second preset ratio and the second duty cycle.
[0162] Exemplarily, taking the above embodiment as an example, the first range is (20%, 40%).
[0163] Step c5, judging whether the ratio of the first detection round number to the preset detection round number belongs to the fourth range.
[0164] Step c6, when the ratio of the first detection round number to the preset detection round number belongs to the fourth range, or when the ratio of the first detection round number to the preset detection round number does not belong to the fourth range and the difference between the ratio and the second duty cycle is less than the difference between the ratio and the second preset ratio, determining that the detected signal is not the standard wake-up signal.
[0165] Exemplarily, assuming that the preset detection round number is 5 times, if the first detection round number is 3, the ratio of the first detection round number and the preset detection round number is 0.6, which does not belong to the fourth range, and does not meet the detection condition of the non-standard wake-up signal; if the first detection round number of the detected signal is 1, the ratio of the first detection round number and the preset detection round number is 0.2, which belongs to the fourth range, and it is determined that the detected signal is not the standard wake-up signal; if the first detection round number of the detected signal is 0, the ratio of the detection round number corresponding to the detected signal and the preset detection round number is 0, which does not belong to the fourth range, but the difference between the first duty cycle and the first detection round number is 0.2, which is less than the difference between the second preset ratio and the first detection round number, that is, 0.4. Therefore, it is determined that the detected signal is not the standard wake-up signal.
[0166] Therefore, by setting the second preset ratio, by comparing the ratio of the first detection round number and the detection round number with the second preset ratio and the size relationship of the second duty cycle, it is identified whether the detected signal is the standard wake-up signal, and the accuracy of signal identification is improved.
[0167] Step b2, when the detected signal is the standard wake-up signal, controlling the controller to resume normal work.
[0168] Therefore, by setting the second preset ratio, by comparing the ratio of the first detection round number and the preset detection round number with the second preset ratio, it is identified whether the detected signal is the standard wake-up signal, and when the detected signal is the standard wake-up signal, the controller is controlled to resume normal work, so as to realize the accurate wake-up of the controller.
[0169] Step b3, when the detected signal is not the standard wake-up signal, controlling the controller to enter the low-power mode.
[0170] Therefore, by setting the second preset ratio, by comparing the ratio of the first detection round number and the preset detection round number with the second preset ratio, it is identified whether the detected signal is the standard wake-up signal, and when the detected signal is not the standard wake-up signal, the controller is re-entered into the low-power mode, so as to exclude the influence of the interference signal and avoid the problem that the controller is falsely woken up by the interference signal.
[0171] In the embodiment, a controller low-power mode wake-up method is provided, which can be used for the controller of an electrical appliance, such as an MCU, a single-chip microcomputer, etc. Figure 3 The flow chart of the controller low-power mode wake-up method according to the embodiment of the present application is shown in FIG. 1, which includes the following steps: Figure 3
[0172] Step S301, acquiring the standard wake-up signal and the interference signal of the controller in the low-power mode. For details, see FIG. 1. Figure 2 The detailed description of the step S201 is not repeated here.
[0173] The step S302 analyzes the first duration, the third duration of the effective level in a single cycle and the first duty cycle corresponding to the standard wake-up signal and the second duration, the fourth duration of the effective level in a single cycle and the second duty cycle corresponding to the interference signal, respectively. For details, see, for example, Figure 2 The detailed description of the step S202 is not repeated here.
[0174] The step S303 determines the detection round number and the single round detection duration corresponding to each round of detection based on the relationship between the first duration and the second duration. For details, see, for example, Figure 2 The detailed description of the step S203 is not repeated here.
[0175] The step S304 determines the detection number corresponding to each round of detection and the single detection time interval based on the single round detection duration and the relationship between the third duration and the fourth duration. For details, see, for example, Figure 2 The detailed description of the step S204 is not repeated here.
[0176] The step S305 starts timing after the controller enters the low-power mode.
[0177] The step S306 wakes up the detection function of the controller to the wake-up port when the timing duration reaches the pre-designed timing duration threshold.
[0178] The pre-designed timing duration threshold can be flexibly set according to whether the interference signal appears frequently. If it appears frequently, the duration can be set according to the frequency of its appearance. Assuming that the average frequency of the interference signal is 3 times per minute, the pre-designed timing duration threshold can be set to 20 ms, etc. This is only an example, and the present application is not limited thereto.
[0179] Specifically, a special timer such as a "watchdog" can be used for countdown, and when the countdown ends, the partial power consumption is woken up, that is, the function of detecting the state of the wake-up port pin is woken up. In practical applications, the selection of the "timer" is related to the chip itself, and different manufacturers and models of chips may have different types of "timers". The embodiments of the present application refer to those "timers" that can count in a low-power state and make the chip exit the low-power state through an interrupt when the countdown ends. The pre-designed time threshold, that is, the countdown T of the timer, is mainly determined according to the functional requirements. For example, some projects need to detect touch keys in a low-power state, and in order not to affect the touch effect, this T needs to be very short, such as within 100 ms. In addition, this T is related to the number of detection rounds m required for filtering, because m*T needs to be detected to wake up the low-power state, and in order to ensure the timeliness of the wake-up, this time cannot be too long. For example, in order to ensure the timeliness of the infrared wake-up, m*T cannot exceed 500 ms. In addition, this time T also needs to consider the proportional relationship between the low-power time and the wake-up detection time to ensure that the power consumption meets the requirements. (The larger the proportion of wake-up time, the higher the average power consumption).
[0180] In practical applications, if the interference signal appears infrequently, the method of external interrupt wake-up can be used to detect the level change of the special pin first, and then a certain period of timing wake-up detection is performed after the level change is detected, to distinguish whether it is a wake-up signal or an interference signal. If a wake-up signal is detected within this period of time, the low-power state is exited, otherwise the low-power state is entered again and the timing wake-up detection function is turned off until the next detection of the level change of the special pin.
[0181] For example, by monitoring the waveform of the interference signal in real time, the characteristics of the interference signal are summarized, for example: an infrared receiver will occasionally have a short level fluctuation under natural light. If its appearance frequency is high (once every few seconds), external interrupt cannot be used for wake-up, because this will cause the controller to be frequently mis-woken up, and filtering needs to be performed at this time. If this interference signal does not appear basically, but appears for a period of time under certain conditions, the external interrupt can be used to detect the appearance of the interference signal first, and then the filtering method is used to judge the signal type after its appearance. If no valid signal is detected for a long time (the interference signal has basically disappeared by time judgment), the external interrupt detection process is entered again, waiting for the appearance of the wake-up signal or the next interference signal.
[0182] By setting a pre-designed time threshold, the detection function of the wake-up port of the controller is woken up in a timely manner, so that the wake-up port signal detection is performed only by waking up the partial power consumption, and the product power consumption is reduced as much as possible.
[0183] Step S307, according to the detection wheel number, single detection time length, detection number corresponding to each detection wheel and single detection time interval, signal detection is performed on the wake-up port of the controller, and the controller is controlled to wake up based on the detection result, the first duty cycle and the second duty cycle. For details, see the detailed description of step S205 shown in Figure 2 The detailed description of step S205 is not repeated here.
[0184] In some optional embodiments, when the signal detected in step S307 is not a standard wake-up signal, the timing is restarted and step S306 is returned to perform.
[0185] Thus, the wake-up of the controller for the detection function of the wake-up port of the partial power consumption is completed, and the response to the wake-up signal is timely, so that the accuracy of the wake-up control of the controller is improved.
[0186] The controller low-power mode wake-up method provided by the embodiments of the application will be described in detail below with reference to specific application examples.
[0187] When the controller of the electric fan is in a low-power mode, a special timer such as a "watchdog" is used for T countdown, and when the countdown is over, the partial power consumption is woken up (without starting the mainboard irrelevant peripherals), and the state of the pins of the wake-up port is detected, judged and recorded, and then according to the recorded pin state data, it is judged whether it is a wake-up signal or an interference signal, if it is a wake-up signal, the controller exits the low-power mode, if it is an interference signal, the controller enters the low-power mode again.
[0188] Specifically, after the controller enters the low-power mode, T countdown is started, after the countdown is over, the partial power consumption is woken up (without starting irrelevant peripherals), the state of the special pins at this time is detected, and the number x of special states in the last m times of detection is recorded. If x is not less than n (or x is not greater than n), it is considered that the wake-up signal exists, and the controller exits the low-power mode (starts all peripherals to work normally), otherwise, the low-power mode is entered again, and the previous judgment process is continued until the low-power mode is exited.
[0189] Taking the remote control to wake up the electric fan by infrared as an example, assuming that the interference signal exists for T1, only the condition of "T*m>T1" needs to be met, that is, the interference signal can be basically filtered out, and considering the response time required by the remote control button, T is set to 100 ms. In order to avoid the case of multiple interference signals appearing continuously, combined with the case of "the proportion of the special level of the interference signal to the cycle K1 is less than the proportion of the special level of the wake-up signal to the cycle K2", only the condition of "K1<(n / m)<K2" needs to be met, that is, the interference signal and the wake-up signal can be distinguished, combined with the proportion characteristics of the special level of the remote control signal and the interference signal to the cycle, m is set to 5 and n is set to 2. If K2<K1, the judgment criteria of the wake-up signal and the interference signal can be exchanged.
[0190] Exemplarily, assuming that the infrared signal emitted by the remote control is high when it does not exist, the interference signal will cause the level to be low occasionally (1 / 10), and the wake-up signal will cause the level to be low for half of the time (1 / 2). At this time, m is set to 5 and n is set to 2, and then the wake-up signal and the interference signal can be distinguished by judging "whether the number of low levels in the last 5 detections is not less than 2 times".
[0191] It should be noted that, due to the "uncertainty" of the interference signal, K1 is only an "estimate". At this time, the interference can be better filtered by increasing the value of n / m. In addition, the characteristics of the interference signal can be made closer to the "estimate" K1 by prolonging T or increasing m (the more dispersed the sampling points are, the more the sampling times are, and the more "average" the final characteristics are, and the closer to K1 they are).
[0192] As shown in Figure 4 , according to the "duration" and "proportion of special level to cycle" of the wake-up signal and the interference signal, the influence of the interference signal on the low-power mode can be filtered out by adjusting the parameters of T, m and n, thereby solving the problem of the controller incorrectly exiting the low-power mode.
[0193] Similarly, in each round of level detection, as shown in Figure 5 , the special pin level can be detected multiple times, and the pin state at this time can be judged combined with the multiple detection results, thereby ensuring the accuracy of each level detection. That is, in each round of detection, the controller performs the next detection after a delay for a period of time after completing a detection, until the number of detections in this round of detection is not less than P times, and then the result of this round of state is judged according to the P level results (the detection times, the delay time and the judgment method are closely related to the waveform characteristics). In the remote control detection, the level is detected twice in each round of detection, and the detection interval is 0.5 ms. As long as any special level is detected in the two detections, it is considered that this round of detection is a special state.
[0194] The detection number P, the delay time t, and the judgment mode of each round of level detection need to be adjusted according to the waveform of the wake-up signal to distinguish the wake-up signal from the interference signal as much as possible. For example, if the wake-up signal is a square wave with a duty cycle of 50% and a period of 2*t1, the delay time t can be set as t1 to use the least number of detections to make the wake-up signal and the interference signal have different detection characteristics. The detection number needs to consider the user demand. In the case of not affecting the user experience, the detection number of each round can be slightly more to improve the resolution of each round of detection. The judgment mode is related to the characteristics of the detection results corresponding to the wake-up signal and the interference signal. If the interference signal corresponding to the above square wave has a special level that accounts for less than 20% of the period, then "detecting j times in each round, and the interval time t1 between each detection, if the special signal is not less than i times (20%<(i / j)<50%), it is considered that the detection result of this round is a special state" is a detection mode that can distinguish the wake-up signal from the interference signal.
[0195] By adjusting the parameters of the detection number P and the delay time t, different characteristics of the detection results corresponding to the wake-up signal and the interference signal can be constructed, so that the interference signal and the wake-up signal can be distinguished to some extent in each round of detection. If the reliability of each round of detection is high enough, the number of m can be appropriately reduced to improve the detection efficiency. Whether to distribute the filtering process to each round of detection or to multiple rounds of detection needs to be combined with the actual demand. If the real-time requirement of the detection is high, the interval time of each round of detection needs to be short, so the filtering process needs to be distributed to multiple rounds of detection. If the real-time requirement of the detection is not high, the interval between each round of detection can be extended, the time of each round of detection can be extended, the accuracy of each round of detection can be improved, and the number of rounds required for detection can be reduced.
[0196] If the interference signal does not appear frequently, the method of external interrupt wake-up can be used to detect the level change of the special pin. When the level change is detected, a certain period of time of timing wake-up detection is performed to distinguish whether it is a wake-up signal or an interference signal. If the wake-up signal is detected within this period of time, the low-power consumption is exited, otherwise the low-power consumption is entered again and the timing wake-up detection function is turned off until the next level change of the special pin is detected.
[0197] In the embodiment, a controller low-power consumption mode wake-up device is also provided, which is used to implement the above embodiments and preferred embodiments, and will not be described again. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware or a combination of software and hardware is also possible and contemplated.
[0198] The embodiment provides a controller low-power mode wake-up device, as shown in the accompanying drawings, comprising: Figure 6
[0199] The acquisition module 601 is used for acquiring a standard wake-up signal and an interference signal of a controller in a low-power mode.
[0200] The first processing module 602 is used for respectively analyzing a first duration corresponding to the standard wake-up signal, a third duration of an effective level in a single cycle and a first duty cycle, and a second duration corresponding to the interference signal, a fourth duration of an effective level in a single cycle and a second duty cycle.
[0201] The second processing module 603 is used for determining a detection round number and a single round detection duration corresponding to each round of detection based on a relationship between the first duration and the second duration.
[0202] The third processing module 604 is used for determining a detection number corresponding to each round of detection and a single detection time interval based on the single round detection duration and a relationship between the third duration and the fourth duration.
[0203] The fourth processing module 605 is used for performing signal detection on a wake-up port of the controller according to the detection round number, the single detection duration, the detection number corresponding to each round of detection and the single detection time interval, and performing wake-up control on the controller based on a detection result, the first duty cycle and the second duty cycle.
[0204] In some optional embodiments, the fourth processing module 605 performs signal detection on the wake-up port of the controller according to the detection round number, the single detection duration, the detection number corresponding to each round of detection and the single detection time interval, and specifically comprises the following steps.
[0205] The first processing unit is used for performing signal detection on the wake-up port of the controller according to the single detection time interval until the detection number corresponding to the current round of detection is reached, and recording a first number of times of detecting signals,
[0206] The second processing unit is used for returning to the step of performing signal detection on the wake-up port of the controller according to the single detection time interval after the detection duration reaches the single detection duration.
[0207] In some optional embodiments, the fourth processing module 605 performs wake-up control on the controller based on the detection result, the first duty cycle and the second duty cycle, and specifically comprises the following steps.
[0208] The first acquisition unit is used for acquiring the first number of times of detecting signals corresponding to each round of detection.
[0209] the third processing unit is configured to determine whether the wake-up flag signal is detected in each round of detection based on a relationship between a ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection and a first preset ratio, a minimum value of the first preset ratio being greater than a minimum value of the first duty cycle and the second duty cycle, and a maximum value of the first preset ratio being less than a maximum value of the first duty cycle and the second duty cycle;
[0210] the fourth processing unit is configured to count a first number of detection rounds in which the wake-up flag signal is detected, and perform wake-up control on the controller based on a ratio of the first number of detection rounds and a preset number of detection rounds.
[0211] In some optional embodiments, the third processing unit comprises:
[0212] the first processing sub-unit is configured to determine the first range based on the first preset ratio and the first duty cycle;
[0213] the second processing sub-unit is configured to determine whether the ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection belongs to the first range;
[0214] the third processing sub-unit is configured to determine that the wake-up flag signal is detected when the ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection belongs to the first range, or when the ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection does not belong to the first range and a difference between the ratio and the first duty cycle is less than a difference between the ratio and the first preset ratio.
[0215] In some optional embodiments, the third processing unit further comprises:
[0216] the fourth processing sub-unit is configured to determine a second range based on the first preset ratio and the second duty cycle;
[0217] the fifth processing sub-unit is configured to determine whether the ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection belongs to the second range;
[0218] the sixth processing sub-unit is configured to determine that the wake-up flag signal is not detected when the ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection belongs to the second range, or when the ratio of the first number of times of detecting the signal and the number of times of detection in the current round of detection does not belong to the second range and a difference between the ratio and the second duty cycle is less than a difference between the ratio and the first preset ratio.
[0219] In some optional embodiments, the fourth processing unit comprises:
[0220] the seventh processing subunit is configured to determine whether the detected signal is a standard wake-up signal based on a relationship between a ratio of the first detection round number and the preset detection round number and a second preset ratio, a minimum value of the second preset ratio being greater than a minimum value of the first duty cycle and the second duty cycle, and a maximum value of the second preset ratio being less than a maximum value of the first duty cycle and the second duty cycle;
[0221] the eighth processing subunit is configured to control the controller to resume normal operation when the detected signal is the standard wake-up signal.
[0222] the ninth processing subunit is configured to control the controller to enter a low-power mode when the detected signal is not the standard wake-up signal.
[0223] In some optional embodiments, before the third processing module 604 is invoked to execute, the apparatus further comprises:
[0224] a timing module configured to start timing after the controller enters the low-power mode;
[0225] a wake-up module configured to wake up the controller to detect the wake-up port when a timing duration reaches a preset timing duration threshold.
[0226] In some optional embodiments, the apparatus further comprises:
[0227] a fifth processing module configured to restart the timing and invoke the wake-up module to execute when the detected signal is not the standard wake-up signal.
[0228] In some optional embodiments, the seventh processing subunit determines whether the detected signal is the standard wake-up signal based on the relationship between the ratio of the first detection round number and the preset detection round number and the second preset ratio, and specifically comprises: determining a third range based on the second preset ratio and the first duty cycle; determining whether the ratio of the first detection round number and the preset detection round number belongs to the third range; and determining that the detected signal is the standard wake-up signal when the ratio of the first detection round number and the preset detection round number belongs to the third range, or when the ratio of the first detection round number and the preset detection round number does not belong to the third range and a difference between the ratio and the first duty cycle is less than a difference between the ratio and the second preset ratio.
[0229] In some optional embodiments, the seventh processing subunit determines, based on a relationship between the ratio of the first detection round number and the preset detection round number and the second preset ratio, whether the detected signal is the standard wake-up signal, and specifically further includes: determining a fourth range based on the second preset ratio and the second duty cycle; determining whether the ratio of the first detection round number and the preset detection round number belongs to the fourth range; and determining that the detected signal is not the standard wake-up signal when the ratio of the first detection round number and the preset detection round number belongs to the fourth range, or when the ratio of the first detection round number and the preset detection round number does not belong to the fourth range and a difference between the ratio and the second duty cycle is less than a difference between the ratio and the second preset ratio.
[0230] In some optional embodiments, the second processing module 603 includes:
[0231] The fifth processing unit is configured to determine an upper limit value and a lower limit value of the single round detection duration based on a maximum value and a minimum value in the first duration and the second duration, respectively.
[0232] The sixth processing unit is configured to determine an upper limit value and a lower limit value of the detection round number based on a ratio of the maximum value to the lower limit value and a ratio of the minimum value to the upper limit value, respectively.
[0233] The seventh processing unit is configured to set the detection round number based on the upper limit value and the lower limit value of the detection round number, and set the single round detection duration based on the upper limit value and the lower limit value of the single round detection duration.
[0234] In some optional embodiments, the third processing module 604 includes:
[0235] The ninth processing unit is configured to determine an upper limit value and a lower limit value of the single detection time interval based on a maximum value and a minimum value in the third duration and the fourth duration, respectively.
[0236] The tenth processing unit is configured to determine an upper limit value of the detection number based on the single round detection duration and the lower limit value of the single detection time interval, and the lower limit value of the detection number is 1.
[0237] The eleventh processing unit is configured to set the detection number based on the lower limit value and the upper limit value of the detection number, and set the single detection time interval based on the upper limit value and the lower limit value of the single detection time interval.
[0238] Further function descriptions of the above various modules and units are the same as those of the above corresponding embodiments, and will not be described here again.
[0239] The controller low-power mode wake-up device in the embodiment is in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0240] The embodiment of the present application also provides an electric appliance, referring to Figure 7 , Figure 7 is a structural schematic diagram of an electric appliance provided by the optional embodiment of the present application, and the electric appliance comprises a controller 701, and the controller 701 is in a low-power mode. Figure 6 The controller 701 has the controller low-power mode wake-up device shown in the above
[0241] In some embodiments, the electric appliance can be an electric fan. It should be noted that the electric appliance is taken as an electric fan for example in the embodiment of the present application, and in actual application, the electric appliance can also be an air conditioner or other controller with a low-power function, which is only taken as an example, and the present application is not limited thereto. Further, the controller is a mainboard of the electric fan, the standard wake-up signal is an infrared signal, that is, an infrared control signal sent by a user operating an electric fan remote controller, and the interference signal is a visible light signal.
[0242] Referring to Figure 8 , Figure 8 is a structural schematic diagram of the controller 701 shown in the above, as shown in Figure 8 The controller 701 comprises one or more processors 10, a memory 20, and an interface for connecting various components, including a high-speed interface and a low-speed interface. Various components are communicatively connected to each other by different buses, and can be installed on a common mainboard or in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in the memory or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, each providing part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 The processor 10 is taken as an example in the above.
[0243] The processor 10 can be a central processor, a network processor, or a combination thereof. The processor 10 can further include hardware chips. The hardware chips can be application specific integrated circuits, programmable logic devices, or a combination thereof. The programmable logic devices can be complex programmable logic devices, field programmable logic gate arrays, general array logic, or any combination thereof.
[0244] The memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods illustrated by the above embodiments.
[0245] The memory 20 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs required by at least one function, and the like. The data storage area can store data created according to the use of the computer device, and the like. In addition, the memory 20 can include a high-speed random access memory, and can further include a non-transitory memory such as at least one disk storage device, a flash memory device, or other non-transitory solid state storage device. In some alternative embodiments, the memory 20 can optionally include a memory disposed remotely from the processor 10, which can be connected to the computer device through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0246] The memory 20 can include a volatile memory such as a random access memory, and can also include a non-volatile memory such as a flash memory, a hard disk, or a solid state disk. The memory 20 can further include a combination of the above-mentioned types of memories.
[0247] The controller 701 further includes a communication interface 30 for communication of the controller with other devices or communication networks.
[0248] The embodiments of the present application also provide a computer readable storage medium. The above-mentioned method according to the embodiments of the present application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium originally through network downloading and then stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid state disk, etc. Further, the storage medium can further include a combination of the above-mentioned types of memories. It can be understood that the computer, the processor, the microprocessor controller, or the programmable hardware includes a storage component that can store or receive software or computer code, when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method illustrated by the above embodiments is implemented.
[0249] While embodiments of the present application have been described in conjunction with the appended drawings, various modifications and changes can be suggested by persons skilled in the art, and all such modifications and changes are believed to fall within the scope of the present application as defined by the appended claims.
Claims
1. A controller low power mode wake-up method, comprising: The method comprises: acquiring a standard wake-up signal and an interference signal of a controller in a low-power mode; analyzing a first duration, a third duration of an effective level in a single cycle and a first duty cycle corresponding to the standard wake-up signal and a second duration, a fourth duration of an effective level in a single cycle and a second duty cycle corresponding to the interference signal, respectively; determining a detection round number and a single round detection duration corresponding to each detection round based on a relationship between the first duration and the second duration; determining a detection number corresponding to each detection round and a single detection time interval based on the single round detection duration and a relationship between the third duration and the fourth duration; performing signal detection on a wake-up port of the controller according to the detection round number, the single detection duration, the detection number corresponding to each detection round and the single detection time interval, and performing wake-up control on the controller based on a detection result, the first duty cycle and the second duty cycle; the determination of the detection round number and the single round detection duration corresponding to each detection round based on the relationship between the first duration and the second duration comprises: determining an upper limit value and a lower limit value of the single round detection duration based on a maximum value and a minimum value in the first duration and the second duration, respectively; determining an upper limit value and a lower limit value of the detection round number based on a ratio of the maximum value to the lower limit value and a ratio of the minimum value to the upper limit value; setting the detection round number based on the upper limit value and the lower limit value of the detection round number and setting the single round detection duration based on the upper limit value and the lower limit value of the single round detection duration.
2. The method of claim 1, wherein, the signal detection on the wake-up port of the controller according to the detection round number, the single detection duration, the detection number corresponding to each detection round and the single detection time interval comprises: performing signal detection on the wake-up port of the controller according to the single detection time interval until the detection number corresponding to the current detection round is reached, and recording a first number of detected signals; after the detection duration reaches the single detection duration, returning to the step of performing signal detection on the wake-up port of the controller according to the single detection time interval.
3. The method of claim 2, wherein, the wake-up control on the controller based on the detection result, the first duty cycle and the second duty cycle comprises: acquiring a first number of detected signals corresponding to each detection round; judging whether an wake-up flag signal is detected in each detection round based on a relationship between a ratio of the first number of detected signals corresponding to each detection round to the detection number and a first preset ratio, a minimum value of the first preset ratio being greater than a minimum value in the first duty cycle and the second duty cycle, and a maximum value of the first preset ratio being less than a maximum value in the first duty cycle and the second duty cycle; statistically determining a first detection round number of the wake-up flag signal, and performing wake-up control on the controller based on a ratio of the first detection round number to a preset detection round number.
4. The method of claim 3, wherein, The method further comprises: determining a first range based on the first preset ratio and the first duty cycle; determining whether the ratio of the first number of signals detected in the current round of detection to the detection number belongs to the first range; when the ratio of the first number of signals detected in the current round of detection to the detection number belongs to the first range, or when the ratio of the first number of signals detected in the current round of detection to the detection number does not belong to the first range and the difference between the ratio and the second duty cycle is smaller than the difference between the ratio and the first preset ratio, determining that the wake-up flag signal is not detected.
5. The method of claim 3, wherein, The method further comprises: determining a second range based on the first preset ratio and the second duty cycle; determining whether the ratio of the first number of signals detected in the current round of detection to the detection number belongs to the second range; when the ratio of the first number of signals detected in the current round of detection to the detection number belongs to the second range, or when the ratio of the first number of signals detected in the current round of detection to the detection number does not belong to the second range and the difference between the ratio and the second duty cycle is smaller than the difference between the ratio and the first preset ratio, determining that the wake-up flag signal is not detected.
6. The method of claim 3, wherein, The method further comprises: determining whether the detected signal is a standard wake-up signal based on the ratio of the first detection number to the preset detection number and a second preset ratio, wherein the minimum value of the second preset ratio is greater than the minimum value of the first duty cycle and the second duty cycle, and the maximum value of the second preset ratio is smaller than the maximum value of the first duty cycle and the second duty cycle; when the detected signal is a standard wake-up signal, controlling the controller to resume normal operation.
7. The method of claim 6, wherein, The method further comprises: when the detected signal is not a standard wake-up signal, controlling the controller to enter a low-power mode.
8. The method of claim 7, wherein, Before performing signal detection on the wake-up port of the controller according to the detection number, the single detection time, the detection number corresponding to each round of detection, and the single detection time interval, the method further comprises: starting timing after the controller enters the low-power mode; when the timing duration reaches a preset timing duration threshold, waking up the detection function of the controller on the wake-up port.
9. The method of claim 8, wherein, When the detected signal is not a standard wake-up signal, the method further comprises: resuming timing and returning to the step of waking up the detection function of the controller on the wake-up port when the timing duration reaches the preset timing duration threshold.
10. The method of claim 6, wherein, The method further comprises: determining whether the detected signal is a standard wake-up signal based on the ratio of the first detection number to the preset detection number and the second preset ratio, wherein the minimum value of the second preset ratio is greater than the minimum value of the first duty cycle and the second duty cycle, and the maximum value of the second preset ratio is smaller than the maximum value of the first duty cycle and the second duty cycle; determining a third range based on the second preset ratio and the first duty cycle; determining whether the ratio of the first detection round number and the preset detection round number belongs to the third range; when the ratio of the first detection round number and the preset detection round number belongs to the third range, or when the ratio of the first detection round number and the preset detection round number does not belong to the third range and the difference between the ratio and the first duty cycle is less than the difference between the ratio and the second preset ratio, determining that the detected signal is a standard wake-up signal.
11. The method of claim 6, wherein, The relationship between the ratio of the first detection round number and the preset detection round number and the second preset ratio is used to determine whether the detected signal is a standard wake-up signal, and further includes: determining a fourth range based on the second preset ratio and the second duty cycle; determining whether the ratio of the first detection round number and the preset detection round number belongs to the fourth range; when the ratio of the first detection round number and the preset detection round number belongs to the fourth range, or when the ratio of the first detection round number and the preset detection round number does not belong to the fourth range and the difference between the ratio and the second duty cycle is less than the difference between the ratio and the second preset ratio, determining that the detected signal is not a standard wake-up signal.
12. The method according to any one of claims 1 to 11, characterized in that, The relationship between the single round detection duration and the third duration and the fourth duration is used to determine the detection number corresponding to each detection round and the single detection time interval, and includes: determining an upper limit value and a lower limit value of the single detection time interval based on the maximum value and the minimum value of the third duration and the fourth duration; determining an upper limit value of the detection number based on the single round detection duration and the lower limit value of the single detection time interval, and the lower limit value of the detection number is 1; setting the detection number based on the lower limit value and the upper limit value of the detection number, and setting the single detection time interval based on the upper limit value and the lower limit value of the single detection time interval.
13. A controller low power mode wake-up apparatus, comprising: The device includes: an acquisition module configured to acquire a standard wake-up signal and an interference signal of a controller in a low-power consumption mode; a first processing module configured to analyze a first duration corresponding to the standard wake-up signal, a third duration of an effective level in a single period and a first duty cycle, and a second duration corresponding to the interference signal, a fourth duration of an effective level in a single period and a second duty cycle; a second processing module configured to determine a detection round number and a single round detection duration corresponding to each detection round based on the relationship between the first duration and the second duration; a third processing module configured to determine a detection number corresponding to each detection round and a single detection time interval based on the single round detection duration and the relationship between the third duration and the fourth duration; a fourth processing module configured to perform signal detection on a wake-up port of the controller according to the detection round number, the single detection duration, the detection number corresponding to each detection round and the single detection time interval, and to perform wake-up control on the controller based on a detection result, the first duty cycle and the second duty cycle; the second processing module includes: The fifth processing unit is configured to determine an upper limit value and a lower limit value of the single round detection duration based on a maximum value and a minimum value of the first duration and the second duration, respectively. The sixth processing unit is configured to determine an upper limit value and a lower limit value of the detection round number based on a ratio of the maximum value to the lower limit value and a ratio of the minimum value to the upper limit value, respectively. The seventh processing unit is configured to set the detection round number based on the upper limit value and the lower limit value of the detection round number, and set the single round detection duration based on the upper limit value and the lower limit value of the single round detection duration.
14. An electrical appliance, characterized in that Comprise: The controller is in a low-power mode, and the controller comprises: A memory and a processor are connected in communication with each other, and the memory stores computer instructions. The processor executes the computer instructions to perform the controller low-power mode wake-up method of any one of claims 1 to 12.
15. The electrical appliance of claim 14, wherein: The electrical appliance is an electric fan; The controller is a mainboard of the electric fan; The standard wake-up signal of the controller is an infrared signal, and the interference signal of the controller is a visible light signal.
16. A computer readable storage medium characterized by: The computer readable storage medium stores computer instructions for causing a computer to execute the controller low-power mode wake-up method of any one of claims 1 to 12.
Citation Information
Patent Citations
Low-power consumption chip-based vehicle-mounted charger wide-range duty cycle CP signal detection method
CN108254626A
Infrared receiver awakening low-power-consumption control method, device and equipment and medium
CN114116029A
Wake-up method and device, equipment and medium
CN115226191A