Power bank control method and power bank

By incorporating an accelerometer sensor within the power bank, the acceleration signal is used to determine and control the power bank's function switching, solving the problem of buttons being difficult to trigger in cold and dark environments, and achieving convenient control without the need for buttons.

CN121602591APending Publication Date: 2026-03-03SYSMAX INNOVATIONS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511790432.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-01
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In cold and dark outdoor environments, the physical buttons on power banks are difficult to trigger, making them inconvenient to use and prone to accidental touches. Existing technology cannot achieve a buttonless control method.

Method used

By setting an accelerometer inside the power bank, it continuously acquires acceleration signals and converts them into values. It then compares the acceleration value with a preset value and controls the power bank to switch functions when the acceleration value is greater than the preset value. This acceleration judgment replaces physical button operation.

Benefits of technology

It enables the power bank to be controlled without pressing any buttons in cold and dark environments, improving the convenience and accuracy of operation and avoiding accidental triggering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121602591A_ABST
    Figure CN121602591A_ABST
Patent Text Reader

Abstract

The invention discloses a power bank control method and a power bank. The power bank control method comprises the following steps: continuously acquiring acceleration signals of the power bank in each time node and converting the acceleration signals into acceleration values; judging the acceleration value and a preset acceleration value; and when the acceleration value is greater than a preset acceleration value, controlling the power bank to perform function switching. According to the invention, the power bank can be controlled without a physical button.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power bank control, and more particularly to a power bank control method and a power bank. Background Technology

[0002] With the widespread use of portable electronic devices, power banks have become an indispensable power supply device for outdoor travel (such as camping, mountain climbing, cycling, etc.). Currently, most power banks on the market use physical buttons as the core operation method for switching functions. By pressing the button, functions such as powering on, checking the battery level, switching fast charging mode, and activating low-current power supply mode can be achieved. However, in colder outdoor environments, users often need to wear gloves to keep warm. In this case, the thickness of the gloves weakens the tactile feedback and trigger sensitivity of the buttons, making it difficult for users to press the physical buttons on the power bank, causing inconvenience. At the same time, when users are in a dark outdoor environment, they can only locate the button by touch, which is not only time-consuming, but also prone to accidental touches that cause the power bank to malfunction. Therefore, how to implement a power bank control method that does not require pressing physical buttons has become an urgent problem to be solved. Summary of the Invention

[0003] In view of the shortcomings of the prior art, the purpose of this invention is to provide a power bank control method and a power bank, so that the power bank can be controlled without the need for physical buttons.

[0004] The technical solution of the present invention is as follows: A method for controlling a power bank includes the following steps: Continuously acquire the acceleration signals of the power bank at various time points and convert them into acceleration values; Determine the magnitude of the acceleration value compared to the preset acceleration value; When the acceleration value is greater than the preset acceleration value, the power bank is controlled to switch functions.

[0005] Optionally, the step of determining the magnitude of the acceleration value and the preset acceleration value specifically includes: Arrange the various time points in sequence and divide them into several monitoring periods; Determine the magnitude of the acceleration value and the preset acceleration value in each monitoring period; If the acceleration value is greater than the preset acceleration value during any monitoring period, then it is determined that the acceleration value of the power bank is greater than the preset acceleration value.

[0006] Optionally, the step of determining the magnitude of the acceleration value and the preset acceleration value in each monitoring period specifically includes: Obtain the maximum and minimum values ​​of the acceleration during the monitoring period; Calculate the difference between the maximum and minimum values ​​of the acceleration. When the difference is greater than the preset acceleration value, it is determined that the acceleration value in the monitoring period is greater than the preset acceleration value.

[0007] Optionally, the step of controlling the power bank to switch functions when the acceleration value is greater than the preset acceleration value specifically includes: The rise time of the acceleration value from its minimum value to a preset peak value range during the monitoring period is obtained; When the rise time is less than the preset rise time, determine the duration for which the acceleration value is within the peak range; When the duration exceeds the preset duration, it is determined that the power bank is in a tapped state, and the corresponding power bank function is matched according to the tapped state.

[0008] Optionally, the step of controlling the power bank to switch functions when the acceleration value is greater than the preset acceleration value further includes: Obtain a preset recognition coordinate system, which includes an X-axis, a Y-axis, and a Z-axis for measuring acceleration in the three orthogonal directions X, Y, and Z. Obtain the acceleration reference point of the power bank on the identification coordinate system at each time point during the monitoring period; The acceleration reference points are integrated into an acceleration sequence for the power bank; Match the corresponding power bank function according to the acceleration sequence, and control the power bank to switch to the power bank function.

[0009] Optionally, the step of matching the corresponding power bank function based on the acceleration sequence specifically includes: The average value of the corresponding X-axis coordinate value of each acceleration reference point is obtained and recorded as the X-axis coordinate average. The average value of the corresponding Y-axis coordinate value of each acceleration reference point is obtained and recorded as the Y-axis coordinate average. The average value of the corresponding Z-axis coordinate value of each acceleration reference point is obtained and recorded as the Z-axis coordinate average. Determine whether the difference between the mean Z-axis coordinate and the mean X-axis coordinate, and the difference between the mean Z-axis coordinate and the mean Y-axis coordinate, are both greater than a first preset coordinate difference. If so, then determine whether the acceleration reference point reciprocates along the Z-axis with the first time frequency based on the Z-axis coordinate value; If so, it is determined that the power bank is in a shaking state, and the corresponding power bank function is matched according to the shaking state.

[0010] Optionally, after performing the steps of obtaining the average value of the corresponding X-axis coordinates of each of the acceleration reference points and recording it as the X-axis coordinate mean, obtaining the average value of the corresponding Y-axis coordinates of each of the acceleration reference points and recording it as the Y-axis coordinate mean, and obtaining the average value of the corresponding Z-axis coordinates of each of the acceleration reference points and recording it as the Z-axis coordinate mean, the method further includes: Determine whether the difference between the mean of the X-axis coordinate and the mean of the Y-axis coordinate, and the difference between the mean of the X-axis coordinate and the mean of the Z-axis coordinate, are both greater than a second preset coordinate difference. If so, then determine whether the acceleration reference point moves back and forth along the X-axis with the second time frequency based on the X-axis coordinate value; If so, it is determined that the power bank is in a left-right shaking state, and the corresponding power bank function is matched according to the left-right shaking state.

[0011] Optionally, the step of matching the corresponding power bank function based on the acceleration sequence specifically includes: Obtain the phase difference between the X-axis coordinate values ​​and the Y-axis coordinate values ​​at each of the acceleration reference points; Determine whether each of the stated phase difference values ​​exceeds a preset phase difference value; If so, then based on the X-axis coordinate value and the Y-axis coordinate value, it is determined whether the acceleration reference point moves back and forth along the X-axis and Y-axis with the third time frequency; If so, it is determined that the power bank is in a circular shaking state, and the corresponding power bank function is matched according to the circular shaking state.

[0012] The present invention also proposes a power bank, comprising: The power bank itself; A processor is located inside the power bank body. The processor stores a power bank function switching program. When the power bank function switching program is executed by the processor, the power bank control method described above is implemented.

[0013] Optionally, the power bank also includes: The display device is electrically connected to the processor and is used to display corresponding information when it receives a display control signal output by the processor.

[0014] This invention's technical solution continuously acquires the acceleration signals of the power bank at various time points and converts them into acceleration values; then it compares these acceleration values ​​with a preset acceleration value; when the acceleration value exceeds the preset value, it controls the power bank to switch functions. Thus, this solution only requires a sensor inside the power bank to detect its acceleration, and the function switching is controlled by judging the acceleration value; no physical buttons are needed to control the power bank. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0016] Figure 1 This is a flowchart of the method steps of an embodiment of the power bank control method of the present invention.

[0017] Figure 2 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention.

[0018] Figure 3 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention.

[0019] Figure 4 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention.

[0020] Figure 5 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention.

[0021] Figure 6 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention.

[0022] Figure 7 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention.

[0023] Figure 8 This is a flowchart of the method steps of another embodiment of the power bank control method of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0025] In the implementation methods and claims, unless otherwise specified in the text, the terms "a," "an," "the," and "the" may also include plural forms. If the embodiments of the present invention involve descriptions of "first," "second," etc., such descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.

[0026] It should be further understood that the term "comprising" as used in this specification means the presence of the stated features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when an element is referred to as "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there may be intermediate elements present. Furthermore, "connected" or "coupled" as used herein can include wireless connections or wireless coupling. The term "and / or" as used herein includes all or any unit and all combinations of one or more associated listed items.

[0027] It will be understood by those skilled in the art that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art, and should not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0028] Furthermore, the technical solutions of the various embodiments can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0029] With the widespread use of portable electronic devices, power banks have become an indispensable power supply device for outdoor travel (such as camping, mountain climbing, cycling, etc.). Currently, most power banks on the market use physical buttons as the core operation method for switching functions. By pressing the button, functions such as powering on, checking the battery level, switching fast charging mode, and activating low-current power supply mode can be achieved. However, in colder outdoor environments, users often need to wear gloves to keep warm. In this case, the thickness of the gloves weakens the tactile feedback and trigger sensitivity of the buttons, making it difficult for users to press the physical buttons on the power bank, causing inconvenience. At the same time, when users are in a dark outdoor environment, they can only locate the button by touch, which is not only time-consuming, but also prone to accidental touches that cause the power bank to malfunction. Therefore, how to implement a power bank control method that does not require pressing physical buttons has become an urgent problem to be solved.

[0030] To address the above problems, this invention proposes a power bank control method.

[0031] Reference Figure 1 In one embodiment, the power bank control method includes the following steps: S100: Continuously acquires the acceleration signal of the power bank at various time points and converts it into acceleration value; S200: Determine the magnitude of the acceleration value and the preset acceleration value; S300: When the acceleration value is greater than the preset acceleration value, control the power bank to switch functions.

[0032] In this embodiment, an accelerometer can be installed in the power bank. The accelerometer can be a capacitive, piezoresistive, or piezoelectric accelerometer, selected based on actual conditions and user needs. By acquiring the electrical signal output from the accelerometer (accelerometer signal) and converting it into a corresponding digital signal, the real-time acceleration value of the power bank can be compared with a preset acceleration value. Specifically, a comparator can compare the real-time and preset acceleration values ​​and output a corresponding comparison signal. For example, if the real-time acceleration value is greater than the preset acceleration value, the comparator outputs a high-level electrical signal, indicating that the user is shaking the power bank, and the power bank can be controlled to switch functions. If the real-time acceleration value is less than or equal to the preset acceleration value, the comparator outputs a low-level electrical signal, indicating that the power bank is being shaken due to environmental factors or slight shaking by the user; in this case, no function switching is needed to avoid false triggering. The preset acceleration value can be adjusted according to actual conditions and user needs.

[0033] This invention's technical solution continuously acquires the acceleration signals of the power bank at various time points and converts them into acceleration values; then it compares these acceleration values ​​with a preset acceleration value; when the acceleration value exceeds the preset value, it controls the power bank to switch functions. Thus, this solution only requires a sensor inside the power bank to detect its acceleration, and controls the power bank's function switching based on the acceleration value; it eliminates the need for physical buttons on the power bank to perform function switching.

[0034] Reference Figure 2 In one embodiment, the step of determining the magnitude of the acceleration value and the preset acceleration value specifically includes: S210. Arrange the various time nodes in sequence and divide them into several monitoring periods; S220. Determine the magnitude of the acceleration value and the preset acceleration value in each monitoring period; S230. If the acceleration value is greater than the preset acceleration value in any monitoring period, then it is determined that the acceleration value of the power bank is greater than the preset acceleration value.

[0035] In this embodiment, determining the magnitude of the acceleration value compared to the preset acceleration value involves arranging multiple time points sequentially and dividing them into several monitoring periods. The specific time of each time point can be set according to actual conditions and user needs, as can the number of monitoring periods. Then, the acceleration value in each monitoring period is compared sequentially with the preset acceleration value, which can also be set according to actual conditions and user needs. If the acceleration value in any monitoring period is greater than the preset acceleration value, it can be determined that the power bank's acceleration value is greater than the preset acceleration value, indicating that the user is shaking the power bank. In this case, the power bank can be controlled to switch functions. If the acceleration value in each monitoring period is less than the preset acceleration value, it means that the user is not shaking the power bank, or the shaking force is insufficient. In this case, there is no need to control the power bank to switch functions. Dividing the data into several monitoring periods in this embodiment allows for more detailed capture of data changes, reduces averaging errors caused by excessively long time spans, and enables timely response and data comparison processing.

[0036] Reference Figure 3 In one embodiment, the step of determining the magnitude of the acceleration value and the preset acceleration value in each monitoring period specifically includes: S221. Obtain the maximum and minimum values ​​of the acceleration value during the monitoring period; S222. Calculate the difference between the maximum and minimum values ​​of the acceleration; S223. When the difference is greater than the preset acceleration value, it is determined that the acceleration value in the monitoring period is greater than the preset acceleration value.

[0037] In this embodiment, determining the magnitude of the acceleration value during the monitoring period compared to the preset acceleration value involves first obtaining the maximum and minimum acceleration values ​​during the monitoring period, and then calculating the difference between the maximum and minimum acceleration values. When the difference is greater than the preset acceleration value, it is determined that the acceleration value during the monitoring period is greater than the preset acceleration value, indicating that the user is shaking the power bank. In this case, the power bank can be controlled to switch functions. The preset acceleration value can be set according to the actual situation and user needs. If the difference is less than or equal to the preset acceleration value, it means that the user is not shaking the power bank or the shaking force is insufficient. In this case, it is not necessary to control the power bank to switch functions. Setting the difference and preset acceleration value is to prevent the power bank's function from being accidentally triggered by slight shaking.

[0038] Reference Figure 4 In one embodiment, the step of controlling the power bank to switch functions when the acceleration value is greater than the preset acceleration value specifically includes: S310. Obtain the rise time of the acceleration value from the minimum value to the preset peak value range during the monitoring period; S320. When the rise time is less than the preset rise time, determine the duration for which the acceleration value is within the peak range. S330. When the duration exceeds the preset duration, it is determined that the power bank is in a tapped state, and the corresponding power bank function is matched according to the tapped state.

[0039] In this embodiment, "acceleration value greater than preset acceleration value" can specifically refer to obtaining the rise time of the acceleration value from its minimum value to a preset peak range during the monitoring period; and comparing the rise time with the preset rise time. When the rise time is less than the preset rise time, it means that the power bank achieves an increase in acceleration in a short period of time, which matches the scenario of the user tapping the power bank. At this time, the duration of the acceleration value being in the peak range can be further determined. When the duration exceeds the preset duration, it is determined that the power bank is in a tapped state, and the corresponding power bank function is matched according to the tapped state. The duration exceeding the preset duration means that the user needs to switch the function of the power bank, which is why the user keeps tapping the power bank. This can avoid the user accidentally touching the power bank and causing the power bank to perform unnecessary function switching. When the rise time is greater than or equal to the preset rise time, the duration of the acceleration value being in the peak range will not be further determined; when the duration is within the preset duration, it is determined that the power bank is not in a tapped state. The preset rise time and preset duration in this embodiment can be set according to the actual situation and user needs.

[0040] Reference Figure 5 In one embodiment, the step of controlling the power bank to switch functions when the acceleration value is greater than the preset acceleration value further includes: S340. Obtain a preset identification coordinate system, the identification coordinate system including the X-axis, Y-axis and Z-axis respectively used to measure the acceleration in the three orthogonal directions X, Y and Z; S350. Obtain the acceleration reference point of the power bank on the identification coordinate system at each time node during the monitoring period; S360. Integrate the various acceleration reference points into an acceleration sequence for the power bank; S370. Match the corresponding power bank function according to the acceleration sequence, and control the power bank to switch to the power bank function.

[0041] In this embodiment, the acceleration value of the power bank can be determined using a coordinate system. Specifically, a preset identification coordinate system is obtained, which includes the X-axis, Y-axis, and Z-axis for measuring acceleration in three orthogonal directions (X, Y, and Z). The X, Y, and Z axes are perpendicular to each other, with the Z-axis representing the vertical direction and the X and Y axes representing the horizontal direction. Then, the acceleration reference points of the power bank on the identification coordinate system are obtained at various time points within the monitoring period, and these reference points are integrated into an acceleration sequence for the power bank. This allows matching the corresponding power bank function based on the acceleration sequence and controlling the power bank to switch to that function; for example, different acceleration states correspond to different power bank functions. The X, Y, and Z axes can be used to distinguish the acceleration direction of the power bank, thus different acceleration states can correspond to different power bank functions. The specific power bank function can be set according to user needs. In this embodiment, the acceleration reference points can be... express.

[0042] Reference Figure 6 In one embodiment, the step of matching the corresponding power bank function based on the acceleration sequence specifically includes: S371. Obtain the average value of the corresponding X-axis coordinate value in each of the acceleration reference points, and record it as the average X-axis coordinate value. Obtain the average value of the corresponding Y-axis coordinate value in each of the acceleration reference points, and record it as the average Y-axis coordinate value. Obtain the average value of the corresponding Z-axis coordinate value in each of the acceleration reference points, and record it as the average Z-axis coordinate value. S372. Determine whether the difference between the mean Z-axis coordinate and the mean X-axis coordinate, and the difference between the mean Z-axis coordinate and the mean Y-axis coordinate, are both greater than a first preset coordinate difference. S373. If so, then determine whether the acceleration reference point moves back and forth along the Z-axis with the first time frequency based on the Z-axis coordinate value. S374. If so, it is determined that the power bank is in a shaking state, and the corresponding power bank function is matched according to the shaking state.

[0043] In this embodiment, the function of matching the power bank according to the acceleration sequence specifically involves obtaining the average value of the corresponding X-axis coordinate at each acceleration reference point, denoted as the X-axis average; obtaining the average value of the corresponding Y-axis coordinate at each acceleration reference point, denoted as the Y-axis average; and obtaining the average value of the corresponding Z-axis coordinate at each acceleration reference point, denoted as the Z-axis average. Then, it is determined whether the difference between the Z-axis average and the X-axis average, and the difference between the Z-axis average and the Y-axis average, are both greater than a first preset coordinate difference. If the difference between the Z-axis average and the X-axis average, and the difference between the Z-axis average and the Y-axis average, are both greater than the first preset coordinate difference, it indicates that the power bank is in a vertical motion state, and further adjustments can be made based on the Z-axis... The coordinate value is used to determine whether the acceleration reference point moves back and forth along the Z-axis with a first time frequency. This means determining whether the movement of the acceleration reference point along the Z-axis has a certain periodicity. This periodicity can be understood as the acceleration reference point moving along the Z-axis at fixed time intervals (i.e., the first time frequency), exhibiting significant repeatability and predictability. Otherwise, no further judgment is made. If the Z-axis coordinate value of the acceleration reference point moves back and forth along the Z-axis with the first time frequency, it can be determined that the power bank is in a shaking state, and the corresponding power bank function is matched according to the shaking state. Conversely, it cannot be determined that the power bank is in a shaking state, and the power bank function switching will not be controlled. By making two judgments, it can first determine whether the power bank is in a shaking state, and then determine whether the power bank's movement is regular. This helps determine whether the user is shaking the power bank up and down, improving the accuracy of the judgment. In this embodiment, the first time frequency can be set according to actual conditions and user needs, and the specific power bank function corresponding to the shaking state can also be set according to actual conditions and user needs.

[0044] Reference Figure 7 In one embodiment, after performing the steps of obtaining the average value of the corresponding X-axis coordinates of each of the acceleration reference points, denoted as the X-axis coordinate mean, obtaining the average value of the corresponding Y-axis coordinates of each of the acceleration reference points, denoted as the Y-axis coordinate mean, and obtaining the average value of the corresponding Z-axis coordinates of each of the acceleration reference points, denoted as the Z-axis coordinate mean, the method further includes: S375. Determine whether the difference between the mean value of the X-axis coordinate and the mean value of the Y-axis coordinate, and the difference between the mean value of the X-axis coordinate and the mean value of the Z-axis coordinate, are both greater than the second preset coordinate difference. S376. If so, then determine whether the acceleration reference point moves back and forth along the X-axis with the second time frequency based on the X-axis coordinate value. S377. If so, it is determined that the power bank is in a left-right shaking state, and the corresponding power bank function is matched according to the left-right shaking state.

[0045] In this embodiment, after obtaining the average values ​​of the X-axis, Y-axis, and Z-axis coordinates, it can be determined whether the differences between the average values ​​of the X-axis and Y-axis coordinates, and between the average values ​​of the X-axis and Z-axis coordinates, are both greater than a second preset coordinate difference. If the differences between the average values ​​of the X-axis and Y-axis coordinates, and between the average values ​​of the X-axis and Z-axis coordinates, are both greater than the second preset coordinate difference, it indicates that the power bank is in a state of left-right movement. Then, based on the X-axis coordinate values, it is further determined whether the acceleration reference point moves back and forth along the X-axis with the second time frequency, that is, whether the acceleration reference point moves along the X-axis. Whether the movement has a certain periodicity can be understood as the periodicity meaning that the acceleration reference point moves along the X-axis at fixed time intervals (i.e., the second time frequency), exhibiting obvious repeatability and predictability. Otherwise, no further judgment will be made. If the X-axis coordinate value corresponding to the acceleration reference point moves back and forth along the X-axis with the second time frequency, it is determined that the power bank is in a left-right shaking state, and the corresponding power bank function is matched according to the left-right shaking state. Otherwise, it cannot be determined that the power bank is in a left-right shaking state, and the power bank switching function will not be controlled. By making two judgments, it can be determined whether the power bank is in a left-right movement state first, and then whether the movement of the power bank is regular. In this way, it can be determined whether the user is holding the power bank and shaking it left and right, which improves the accuracy of the judgment. In this embodiment, the second time frequency can be set according to the actual situation and user needs.

[0046] Reference Figure 8 In one embodiment, the step of matching the corresponding power bank function based on the acceleration sequence specifically includes: S378. Obtain the phase difference between the X-axis coordinate values ​​and the Y-axis coordinate values ​​of each acceleration reference point; S379. Determine whether each of the phase difference values ​​exceeds a preset phase difference value; S37a. If so, then determine whether the acceleration reference point moves back and forth along the X-axis and Y-axis with the third time frequency based on the X-axis coordinate value and the Y-axis coordinate value. S37b If so, it is determined that the power bank is in a circular shaking state, and the corresponding power bank function is matched according to the circular shaking state.

[0047] In this embodiment, after obtaining the phase difference between the X-axis coordinate value and the Y-axis coordinate value of each acceleration reference point, it is then determined whether each phase difference value exceeds a preset phase difference value. If each phase difference value exceeds the preset phase difference value, it indicates that the power bank is in a circular motion state. Then, based on the X-axis coordinate value and the Y-axis coordinate value, it is further determined whether the acceleration reference point moves along the X-axis and the Y-axis with a third time frequency. That is, it is determined whether the movement of the acceleration reference point on the X-axis and the Y-axis has a certain periodicity. It can be understood that the periodicity can be understood as the acceleration reference point moving along the X-axis and the Y-axis at a fixed time interval (i.e., the third time frequency), with obvious repeatability and predictability. Otherwise, no further judgment is made. If so, it is determined that the power bank is in a circular shaking state, and the corresponding power bank function is matched according to the circular shaking state. Otherwise, it cannot be determined that the power bank is in a circular shaking state, and the power bank switching function will not be controlled. By making two judgments, it can first determine whether the power bank is in a circular motion, and then determine whether the motion is regular. This allows us to determine whether the user is shaking the power bank in a circular motion, improving the accuracy of the judgment. In this embodiment, the preset phase difference value and the third time frequency can be set according to actual conditions and user needs.

[0048] This invention also proposes a power bank.

[0049] In one embodiment, the power bank includes: The power bank itself; A processor is located inside the power bank body. The processor stores a power bank function switching program. When the power bank function switching program is executed by the processor, the power bank control method described above is implemented.

[0050] In this embodiment, the power bank body can house modules such as the battery module, charging management module, and heat dissipation module, and can also include an interface module. The processor can be a digital signal processor (DSP), programmable logic device (PLD), microprocessor, MCU, or other electronic components. The memory can be EPROM or DDR3. This power bank eliminates the need for physical buttons for control, resulting in better waterproofing. Furthermore, users can better control the power bank's functions in cold outdoor environments and dark environments.

[0051] In one embodiment, the power bank further includes: The display device is electrically connected to the processor and is used to display corresponding information when it receives a display control signal output by the processor.

[0052] In this embodiment, the display device can be installed on the outer casing of the power bank itself, and the display device can be an LED display device. By setting up the display device, the remaining power of the power bank can be displayed, allowing users to intuitively see the power bank's power information. In addition, the display device can also display the power bank's functional modes.

[0053] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A power bank control method, characterized in that, Includes the following steps: Continuously acquire the acceleration signals of the power bank at various time points and convert them into acceleration values; Determine the magnitude of the acceleration value compared to the preset acceleration value; When the acceleration value is greater than the preset acceleration value, the power bank is controlled to switch functions.

2. The power bank control method as described in claim 1, characterized in that, The step of determining the magnitude of the acceleration value and the preset acceleration value specifically includes: Arrange the various time points in sequence and divide them into several monitoring periods; Determine the magnitude of the acceleration value and the preset acceleration value in each monitoring period; If the acceleration value is greater than the preset acceleration value during any monitoring period, then it is determined that the acceleration value of the power bank is greater than the preset acceleration value.

3. The power bank control method as described in claim 2, characterized in that, The step of determining the magnitude of the acceleration value and the preset acceleration value in each monitoring period specifically includes: Obtain the maximum and minimum values ​​of the acceleration during the monitoring period; Calculate the difference between the maximum and minimum values ​​of the acceleration. When the difference is greater than the preset acceleration value, it is determined that the acceleration value in the monitoring period is greater than the preset acceleration value.

4. The power bank control method as described in claim 3, characterized in that, The step of controlling the power bank to switch functions when the acceleration value is greater than the preset acceleration value specifically includes: The rise time of the acceleration value from its minimum value to a preset peak value range during the monitoring period is obtained; When the rise time is less than the preset rise time, determine the duration for which the acceleration value is within the peak range; When the duration exceeds the preset duration, it is determined that the power bank is in a tapped state, and the corresponding power bank function is matched according to the tapped state.

5. The power bank control method as described in claim 3, characterized in that, The step of controlling the power bank to switch functions when the acceleration value is greater than the preset acceleration value further includes: Obtain a preset recognition coordinate system, which includes an X-axis, a Y-axis, and a Z-axis for measuring acceleration in the three orthogonal directions X, Y, and Z. Obtain the acceleration reference point of the power bank on the identification coordinate system at each time point during the monitoring period; The acceleration reference points are integrated into an acceleration sequence for the power bank; Match the corresponding power bank function according to the acceleration sequence, and control the power bank to switch to the power bank function.

6. The power bank control method as described in claim 5, characterized in that, The step of matching the corresponding power bank function based on the acceleration sequence specifically includes: The average value of the corresponding X-axis coordinate value of each acceleration reference point is obtained and recorded as the X-axis coordinate average. The average value of the corresponding Y-axis coordinate value of each acceleration reference point is obtained and recorded as the Y-axis coordinate average. The average value of the corresponding Z-axis coordinate value of each acceleration reference point is obtained and recorded as the Z-axis coordinate average. Determine whether the difference between the mean Z-axis coordinate and the mean X-axis coordinate, and the difference between the mean Z-axis coordinate and the mean Y-axis coordinate, are both greater than a first preset coordinate difference. If so, then determine whether the acceleration reference point reciprocates along the Z-axis with the first time frequency based on the Z-axis coordinate value; If so, it is determined that the power bank is in a shaking state, and the corresponding power bank function is matched according to the shaking state.

7. The power bank control method as described in claim 6, characterized in that, After performing the steps of obtaining the average value of the corresponding X-axis coordinates of each of the acceleration reference points and recording it as the X-axis coordinate average, obtaining the average value of the corresponding Y-axis coordinates of each of the acceleration reference points and recording it as the Y-axis coordinate average, and obtaining the average value of the corresponding Z-axis coordinates of each of the acceleration reference points and recording it as the Z-axis coordinate average, the method further includes: Determine whether the difference between the mean of the X-axis coordinate and the mean of the Y-axis coordinate, and the difference between the mean of the X-axis coordinate and the mean of the Z-axis coordinate, are both greater than a second preset coordinate difference. If so, then determine whether the acceleration reference point moves back and forth along the X-axis with the second time frequency based on the X-axis coordinate value; If so, it is determined that the power bank is in a left-right shaking state, and the corresponding power bank function is matched according to the left-right shaking state.

8. The power bank control method as described in claim 5, characterized in that, The step of matching the corresponding power bank function based on the acceleration sequence specifically includes: Obtain the phase difference between the X-axis coordinate values ​​and the Y-axis coordinate values ​​at each of the acceleration reference points; Determine whether each of the stated phase difference values ​​exceeds a preset phase difference value; If so, then based on the X-axis coordinate value and the Y-axis coordinate value, it is determined whether the acceleration reference point moves back and forth along the X-axis and Y-axis with the third time frequency; If so, it is determined that the power bank is in a circular shaking state, and the corresponding power bank function is matched according to the circular shaking state.

9. A power bank, characterized in that, include: The power bank itself; A processor is disposed within the power bank body. The processor stores a power bank function switching program. When the power bank function switching program is executed by the processor, it implements the power bank control method as described in any one of claims 1-8.

10. The power bank as described in claim 9, characterized in that, Also includes: The display device is electrically connected to the processor and is used to display corresponding information when it receives a display control signal output by the processor.