Keyboard charging method and device, electronic equipment and storage medium
By recognizing the battery levels of the keyboard and electronic devices, setting flexible battery thresholds, and adjusting charging parameters, the problem of low keyboard power consumption and rapid power drain of electronic devices is solved, achieving efficient charging and long battery life.
Patent Information
- Application Number
- CN202410758882.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2025-12-12
AI Technical Summary
In the existing technology, keyboards have low power consumption efficiency and electronic devices consume power quickly, resulting in short battery life for electronic devices.
By recognizing the keyboard's battery level and the electronic device's battery level, a flexible battery threshold can be set. When the battery level threshold is reached, charging will stop, and the keyboard's own battery will be used for power. The charging parameters will be adjusted based on the current battery level and charging status to achieve efficient charging.
It improves the power efficiency of the keyboard, reduces the power consumption of electronic devices, and extends the battery life of electronic devices.
Smart Images

Figure CN121124262A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of charging technology, and more particularly to a method, apparatus, electronic device, and storage medium for charging a keyboard. Background Technology
[0002] Currently, electronic devices such as tablets are widely used in office work, entertainment, and learning due to their advantages of portability, mobility, and multifunctionality. Electronic devices can be equipped with keyboards to input data and commands. However, most related technologies utilize the electronic device (such as a tablet) to charge the keyboard, which suffers from problems such as low keyboard power consumption, rapid power consumption of the electronic device, and short battery life. Summary of the Invention
[0003] This disclosure provides a keyboard charging method, apparatus, electronic device, computer-readable storage medium, and computer program product to at least solve the problems of low power consumption of keyboards, rapid power consumption of electronic devices, and short battery life of electronic devices in the related art. The technical solution of this disclosure is as follows:
[0004] According to a first aspect of the present disclosure, a method for charging a keyboard is provided, comprising: charging the keyboard; and stopping charging the keyboard at a keyboard power threshold corresponding to the current power level and / or charging state.
[0005] In one embodiment of this disclosure, before charging the keyboard, the method further includes: identifying that the keyboard battery level is less than a charging power threshold.
[0006] In one embodiment of this disclosure, the charging capacity threshold is positively correlated with the current power level.
[0007] In one embodiment of this disclosure, before charging the keyboard, the method further includes: in response to being in charging mode, identifying that the keyboard battery level is less than a first keyboard battery level threshold; and in response to not being in charging mode, identifying that the keyboard battery level is less than a charging power threshold corresponding to the current battery level.
[0008] In one embodiment of this disclosure, identifying that the keyboard battery level is less than the charging power threshold corresponding to the current battery level includes: in response to the current battery level being greater than or equal to a first preset threshold, identifying that the keyboard battery level is less than a second keyboard battery level threshold; in response to the current battery level being less than the first preset threshold, identifying that the keyboard battery level is less than a third keyboard battery level threshold, wherein the third keyboard battery level threshold is less than or equal to the second keyboard battery level threshold.
[0009] In one embodiment of this disclosure, charging the keyboard includes: charging the keyboard according to charging parameters corresponding to the current battery level and / or charging status.
[0010] In one embodiment of this disclosure, the charging parameters are positively correlated with the current battery level.
[0011] In one embodiment of this disclosure, charging the keyboard according to the charging parameters corresponding to the current battery level and / or charging status includes: charging the keyboard according to a first charging parameter in response to being in a charging mode; and charging the keyboard according to the charging parameters corresponding to the current battery level in response to not being in a charging mode.
[0012] In one embodiment of this disclosure, charging the keyboard according to the charging parameters corresponding to the current battery level includes: charging the keyboard according to a second charging parameter in response to the current battery level being greater than or equal to a first preset threshold; and charging the keyboard according to a third charging parameter in response to the current battery level being less than the first preset threshold, wherein the third charging parameter is less than or equal to the second charging parameter.
[0013] In one embodiment of this disclosure, the keyboard battery threshold is positively correlated with the current battery level.
[0014] In one embodiment of this disclosure, stopping charging the keyboard at a keyboard power threshold corresponding to the current power level and / or charging state includes: stopping charging the keyboard at a fourth keyboard power threshold in response to being in charging mode; and stopping charging the keyboard at the keyboard power threshold corresponding to the current power level in response to not being in charging mode.
[0015] In one embodiment of this disclosure, stopping charging the keyboard at a keyboard power threshold corresponding to the current power level includes: stopping charging the keyboard at a fifth keyboard power threshold in response to the current power level being greater than or equal to a first preset threshold; and stopping charging the keyboard at a sixth keyboard power threshold in response to the current power level being less than the first preset threshold, wherein the sixth keyboard power threshold is less than or equal to the fifth keyboard power threshold.
[0016] According to a second aspect of the present disclosure, a keyboard charging device is provided, comprising: a first control module configured to charge the keyboard; and a second control module configured to stop charging the keyboard at a keyboard power threshold corresponding to the current power level and / or charging state.
[0017] In one embodiment of this disclosure, the device further includes an identification module, which is configured to perform the following before charging the keyboard: identifying that the keyboard battery level is less than a charging power threshold.
[0018] In one embodiment of this disclosure, the charging capacity threshold is positively correlated with the current power level.
[0019] In one embodiment of this disclosure, before charging the keyboard, the identification module is further configured to: identify that the keyboard battery level is less than a first threshold when it is in charging mode; and identify that the keyboard battery level is less than a charging threshold corresponding to the current battery level when it is not in charging mode.
[0020] In one embodiment of this disclosure, the identification module is further configured to perform: in response to the current battery level being greater than or equal to a first preset threshold, identifying that the keyboard battery level is less than a second keyboard battery level threshold; in response to the current battery level being less than the first preset threshold, identifying that the keyboard battery level is less than a third keyboard battery level threshold, wherein the third keyboard battery level threshold is less than or equal to the second keyboard battery level threshold.
[0021] In one embodiment of this disclosure, the first control module is further configured to perform: charging the keyboard according to charging parameters corresponding to the current power level and / or charging status.
[0022] In one embodiment of this disclosure, the charging parameters are positively correlated with the current battery level.
[0023] In one embodiment of this disclosure, the first control module is further configured to: charge the keyboard according to a first charging parameter in response to being in a charging mode; and charge the keyboard according to a charging parameter corresponding to the current battery level in response to not being in a charging mode.
[0024] In one embodiment of this disclosure, the first control module is further configured to: charge the keyboard according to a second charging parameter in response to the current battery level being greater than or equal to a first preset threshold; and charge the keyboard according to a third charging parameter in response to the current battery level being less than the first preset threshold, wherein the third charging parameter is less than or equal to the second charging parameter.
[0025] In one embodiment of this disclosure, the keyboard battery threshold is positively correlated with the current battery level.
[0026] In one embodiment of this disclosure, the second control module is further configured to: stop charging the keyboard at a fourth keyboard battery level threshold in response to being in charging mode; and stop charging the keyboard at the keyboard battery level threshold corresponding to the current battery level in response to not being in charging mode.
[0027] In one embodiment of this disclosure, the second control module is further configured to: stop charging the keyboard at a fifth keyboard battery level in response to the current battery level being greater than or equal to a first preset threshold; and stop charging the keyboard at a sixth keyboard battery level in response to the current battery level being less than the first preset threshold, wherein the sixth keyboard battery level is less than or equal to the fifth keyboard battery level.
[0028] According to a third aspect of the present disclosure, an electronic device is provided, including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method described in the first aspect of the present disclosure.
[0029] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores computer program instructions thereon, which, when executed by a processor, implement the steps of the method described in the first aspect of the present disclosure.
[0030] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, characterized in that, when executed by a processor of an electronic device, the computer program implements the steps of the method as described in the first aspect of the present disclosure.
[0031] The technical solutions provided by the embodiments of this disclosure bring at least the following beneficial effects: the keyboard power threshold can be determined by taking into account the current power and / or charging status of the electronic device charging the keyboard, which enables flexible setting of the keyboard power threshold. When the keyboard reaches the keyboard power threshold, charging of the keyboard stops, and the keyboard can then be powered by its own battery. The electronic device does not need to continue to power the keyboard, which helps to improve the power efficiency of the keyboard, reduce the power consumption rate of the electronic device, and extend the battery life of the electronic device. It is suitable for scenarios where tablet computers charge keyboards.
[0032] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0033] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0034] Figure 1 This is a flowchart illustrating a method for charging a keyboard according to an exemplary embodiment.
[0035] Figure 2 This is a flowchart illustrating a method for charging a keyboard according to another exemplary embodiment.
[0036] Figure 3 This is a flowchart illustrating a method for charging a keyboard according to another exemplary embodiment.
[0037] Figure 4 This is a flowchart illustrating a method for charging a keyboard according to another exemplary embodiment.
[0038] Figure 5 This is a block diagram illustrating a keyboard charging device according to an exemplary embodiment.
[0039] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0040] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0041] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0042] The acquisition, storage, use, and processing of data in this disclosed technical solution all comply with the relevant laws and regulations.
[0043] Figure 1 This is a flowchart illustrating a keyboard charging method according to an exemplary embodiment, such as... Figure 1 As shown, the keyboard charging method of this disclosure includes the following steps.
[0044] S101, charges the keyboard.
[0045] It should be noted that the keyboard charging method of this disclosure is executed by an electronic device that charges the keyboard. The electronic device is not limited in many ways, and may include tablet computers, mobile phones, laptops, desktop computers, in-vehicle terminals, smart home appliances, wearable devices, etc. Wearable devices may include wrist-worn devices (such as smartwatches and smart bracelets), head-worn devices, and foot-worn devices. The keyboard charging method of this disclosure can be executed by a keyboard charging device of this disclosure, which can be configured in any electronic device to execute the keyboard charging method of this disclosure.
[0046] It should be noted that there are no strict limitations on the type of keyboard; for example, keyboards can include wired keyboards, wireless keyboards, and detachable keyboards. There is a one-to-one correspondence between keyboards and electronic devices; for example, there is a one-to-one correspondence between keyboards and electronic devices. There are no strict limitations on the connection method between the keyboard and the electronic device; for example, it can include physical connections, Bluetooth connections, etc.
[0047] It should be noted that there are no strict restrictions on the keyboard's charging method. For example, it can include wired charging, wireless charging, 1C charging, 0.5C charging, etc. Among them, nC charging refers to charging the keyboard with a charging current that is n times the keyboard's battery capacity, where n is 1, 0.5, etc.
[0048] In one embodiment, charging the keyboard includes acquiring the keyboard's charging parameters and charging the keyboard according to these parameters. It should be noted that the charging parameters are not overly limited; for example, they may include charging voltage, charging current, and charging power. Different keyboards may have different charging parameters. The charging current may include n times the keyboard's battery capacity. For example, the charging current may include 1 time, 0.5 times, etc., the keyboard's battery capacity.
[0049] For example, keyboards include keyboards 1 to 3, and electronic devices include tablets A, B, and C. There is a correspondence between keyboard 1 and tablet A, keyboard 2 and tablet B, and keyboard 3 and tablet C.
[0050] Tablet A obtains the charging parameters of keyboard 1 and charges keyboard 1 according to the charging parameters of keyboard 1.
[0051] Tablet B obtains the charging parameters of keyboard 2 and charges keyboard 2 according to the charging parameters of keyboard 2.
[0052] The tablet computer C obtains the charging parameters of the keyboard 3 and charges the keyboard 3 according to the charging parameters.
[0053] In some cases, the charging parameters of the keyboard are obtained, including those mapped to the keyboard. It is understood that the charging parameters may differ between different keyboard mappings.
[0054] S102, stop charging the keyboard when the current battery level and / or the corresponding keyboard battery level threshold is reached.
[0055] It's important to note that "current battery level" refers to the electronic device's current battery level, while "charging status" refers to the device's charging status. There are no strict limitations on the charging status; for example, it can include whether it's in charging mode or fast charging mode. "Stop charging the keyboard at the keyboard battery threshold" means that charging will stop when the keyboard's current battery level reaches that threshold.
[0056] In related technologies, electronic devices continuously power the keyboard, resulting in low power efficiency of the keyboard, rapid power consumption of electronic devices, and short battery life. In this solution, after stopping the charging of the keyboard, the keyboard's own battery can be used to power the keyboard, and the electronic devices do not need to continue to power the keyboard. This helps to improve the power efficiency of the keyboard, reduce the power consumption rate of the electronic devices, and extend the battery life of the electronic devices.
[0057] For example, in related technologies, the keyboard's power efficiency is 85% and its current consumption is 4mA. In this solution, the keyboard's power efficiency is 93% and its current consumption is 0.4mA.
[0058] It should be noted that the keyboard battery threshold is not limited in many ways. For example, it can include the battery level of the keyboard when the SOC (State of Charge) is 100%, that is, the battery level of the keyboard when it is fully charged, or it can include the battery level of the keyboard when the SOC is 60%, that is, 60% of the battery level of the keyboard when it is fully charged.
[0059] In embodiments of this disclosure, charging the keyboard is stopped at a keyboard power threshold corresponding to the current power level and / or charging state. This includes stopping charging the keyboard at a keyboard power threshold corresponding to the current power level, or stopping charging the keyboard at a keyboard power threshold corresponding to the charging state, or stopping charging the keyboard at a keyboard power threshold corresponding to both the current power level and the charging state.
[0060] In one implementation, the keyboard battery threshold is positively correlated with the current battery level. Therefore, the higher the current battery level, the higher the keyboard battery threshold. This allows the system to stop charging the keyboard when the current battery level is high, ensuring the keyboard's charging needs are met. Conversely, when the current battery level is low, the system stops charging the keyboard when the current battery level is low, preventing the system's battery from dropping too low due to keyboard charging.
[0061] In one implementation, charging the keyboard is stopped at a keyboard power threshold corresponding to the current power level and / or charging state. This includes stopping charging the keyboard at a fourth keyboard power threshold when the keyboard is in charging mode, and stopping charging at a keyboard power threshold corresponding to the current power level when the keyboard is not in charging mode. Therefore, when the keyboard is in charging mode, charging can be stopped at the fourth keyboard power threshold; conversely, when the keyboard is not in charging mode, the current power level can be considered to determine the keyboard power threshold, and charging can be stopped at the corresponding keyboard power threshold, allowing for flexible setting of the keyboard power threshold.
[0062] In some examples, keyboard charging stops at a keyboard battery threshold corresponding to the current battery level. This includes stopping charging at a fifth keyboard battery threshold when the current battery level is greater than or equal to a first preset threshold, and stopping charging at a sixth keyboard battery threshold when the current battery level is less than the first preset threshold, where the sixth keyboard battery threshold is less than or equal to the fifth keyboard battery threshold. Therefore, the keyboard battery threshold can be determined by considering the relationship between the current battery level and the first preset threshold, and since the keyboard battery threshold is positively correlated with the current battery level, flexible setting of the keyboard battery threshold is possible.
[0063] It should be noted that the first set threshold is not subject to excessive restrictions. For example, the first set threshold may include the battery level of the electronic device at a SOC of 20%, that is, 20% of the battery level of the electronic device when it is fully charged.
[0064] It should be noted that there are no strict restrictions on the fourth to sixth thresholds of keyboard battery power. For example, the fourth threshold of keyboard battery power is equal to the fifth threshold of keyboard battery power, which is the battery power of the keyboard when the SOC is 100%, that is, the battery power of the keyboard when it is fully charged. The fifth threshold of keyboard battery power is the battery power of the keyboard when the SOC is 60%, that is, 60% of the battery power of the keyboard when it is fully charged.
[0065] In some examples, keyboard charging stops at a keyboard power threshold corresponding to the current battery level. This includes stopping charging at a seventh keyboard power threshold when the current battery level is greater than or equal to a second preset threshold, stopping charging at a fifth keyboard power threshold when the current battery level is greater than or equal to a first preset threshold but less than the second preset threshold, and stopping charging at a sixth keyboard power threshold when the current battery level is less than the first preset threshold. Here, the second preset threshold is greater than the first preset threshold, the sixth keyboard power threshold is less than or equal to the fifth keyboard power threshold, and the fifth keyboard power threshold is less than or equal to the seventh keyboard power threshold. Therefore, the keyboard power threshold can be determined by considering the relationship between the current battery level and the first and second preset thresholds, and since the keyboard power threshold is positively correlated with the current battery level, flexible setting of the keyboard power threshold is possible.
[0066] It should be noted that the second set threshold is not subject to excessive restrictions. For example, the second set threshold may include the battery level of the electronic device at 50% SOC, that is, 50% of the battery level of the electronic device when fully charged.
[0067] It should be noted that there are no strict restrictions on the fourth to seventh thresholds of keyboard battery power. For example, the fourth and seventh thresholds of keyboard battery power are equal, both representing the battery power of the keyboard at 100% SOC, i.e., the battery power of the keyboard when fully charged. The sixth threshold of keyboard battery power is the battery power of the keyboard at 80% SOC, i.e., 80% of the battery power of the keyboard when fully charged. The fifth threshold of keyboard battery power is the battery power of the keyboard at 60% SOC, i.e., 60% of the battery power of the keyboard when fully charged.
[0068] The keyboard charging method provided in this disclosure charges the keyboard and stops charging when the keyboard reaches a power threshold corresponding to the current power level and / or charging state. Therefore, the keyboard power threshold can be determined by taking into account the current power level and / or charging state of the electronic device charging the keyboard. This allows for flexible setting of the keyboard power threshold. When the keyboard reaches the power threshold, charging stops, and the keyboard's own battery can then power the keyboard. The electronic device does not need to continue supplying power to the keyboard, which helps improve the keyboard's power efficiency, reduces the power consumption rate of the electronic device, and extends the battery life of the electronic device. This method is suitable for scenarios where tablet computers charge keyboards.
[0069] Figure 2 This is a flowchart illustrating a keyboard charging method according to another exemplary embodiment, such as... Figure 2 As shown, the keyboard charging method of this disclosure includes the following steps.
[0070] S201 identifies that the keyboard battery level is less than the charging power threshold.
[0071] It should be noted that there are no strict limitations on the charging power threshold. For example, it can include the power of the keyboard at 90% SOC, which is 90% of the power of the keyboard when fully charged, or the power of the keyboard at 45% SOC, which is 45% of the power of the keyboard when fully charged.
[0072] In one implementation, the charging threshold is positively correlated with the current battery level. Therefore, the higher the current battery level, the higher the charging threshold. This allows the keyboard to be charged when the user's current battery level is high, provided the keyboard's battery level is below the higher charging threshold. Conversely, when the user's current battery level is low, the keyboard can be charged when the keyboard's battery level is below the lower charging threshold, ensuring that the user's battery level doesn't drop too low due to charging the keyboard.
[0073] In one embodiment, before charging the keyboard, the method further includes identifying that the keyboard battery level is less than a first threshold when the system is in charging mode, and identifying that the keyboard battery level is less than a charging threshold corresponding to the current battery level when the system is not in charging mode. Therefore, when the system is in charging mode, the keyboard can be charged if the keyboard battery level is less than the first threshold. Conversely, when the system is not in charging mode, the current battery level can be considered to determine the charging threshold, and the keyboard can be charged if the keyboard battery level is less than the charging threshold corresponding to the current battery level. This allows for flexible setting of the charging threshold.
[0074] In some examples, identifying a keyboard battery level below a corresponding charging threshold involves several steps. First, if the current battery level is greater than or equal to a first preset threshold, identifying a second keyboard battery level below a second threshold. Second, if the current battery level is less than the first preset threshold, identifying a third keyboard battery level below a third threshold, where the third threshold is less than or equal to the second threshold. Therefore, the charging threshold can be determined by considering the relationship between the current battery level and the first preset threshold, and since the charging threshold is positively correlated with the current battery level, flexible setting of the charging threshold is possible.
[0075] It should be noted that there are no strict restrictions on the first to third thresholds of keyboard battery power. For example, the first threshold of keyboard battery power is equal to the second threshold, which is the battery power of the keyboard when the SOC is 90%, that is, 90% of the battery power of the keyboard when it is fully charged. The third threshold of keyboard battery power is the battery power of the keyboard when the SOC is 45%, that is, 45% of the battery power of the keyboard when it is fully charged.
[0076] In some examples, identifying a keyboard battery level below a corresponding charging threshold involves several steps. These include identifying a keyboard battery level below an eighth threshold when the current battery level is greater than or equal to a second preset threshold; identifying a keyboard battery level below a second threshold when the current battery level is greater than or equal to a first preset threshold and less than the second preset threshold; and identifying a keyboard battery level below a third threshold when the current battery level is less than the first preset threshold. The second preset threshold is greater than the first preset threshold, the third threshold is less than or equal to the second threshold, and the second threshold is less than or equal to the eighth threshold. Therefore, the charging threshold can be determined by considering the relationship between the current battery level and the first and second preset thresholds. Furthermore, the charging threshold is positively correlated with the current battery level, allowing for flexible setting of the charging threshold.
[0077] It should be noted that there are no strict restrictions on the first to third and eighth thresholds of keyboard battery power. For example, the first threshold and the eighth threshold are equal, which is the battery power of the keyboard at 90% SOC, that is, 90% of the battery power of the keyboard when fully charged. The second threshold is the battery power of the keyboard at 60% SOC, that is, 70% of the battery power of the keyboard when fully charged. The third threshold is the battery power of the keyboard at 45% SOC, that is, 45% of the battery power of the keyboard when fully charged.
[0078] S202, charges the keyboard.
[0079] S203, stop charging the keyboard when the current battery level and / or the corresponding keyboard battery level threshold is reached.
[0080] For details regarding steps S202-S203, please refer to the above embodiments, which will not be repeated here.
[0081] It should be noted that after step S203, the process can return to step S201 and its subsequent steps. Therefore, after stopping keyboard charging, the keyboard can be recharged when its battery level falls below a charging threshold, enabling multiple cycles of charging.
[0082] For example, continuing with keyboard 1, the keyboard power threshold corresponding to keyboard 1 is the power level of keyboard 1 when it is fully charged, and the charging power threshold corresponding to keyboard 1 is 90% of the power level of keyboard 1 when it is fully charged.
[0083] If the battery level of keyboard 1 is less than 90% of its full charge level, tablet A will begin the first round of charging. Once the battery level of keyboard 1 reaches its full charge level, tablet A will stop charging keyboard 1, thus ending the first round of charging.
[0084] If the battery level of keyboard 1 is less than 90% of its full charge level, tablet A will begin charging keyboard 1 for the second time. Once the battery level of keyboard 1 reaches the full charge level, tablet A will stop charging keyboard 1, thus ending the second charging cycle.
[0085] If the battery level of keyboard 1 is less than 90% of its full charge level, tablet A will begin charging keyboard 1 for the third time. Once the battery level of keyboard 1 reaches the full charge level, tablet A will stop charging keyboard 1, thus ending the third charging cycle.
[0086] Understandably, after the third charging cycle, tablet A can charge keyboard 1 for the fourth, fifth, and subsequent cycles, which will not be elaborated here.
[0087] For example, continuing with keyboard 2, the keyboard power threshold for keyboard 2 is 60% of the power of keyboard 2 when fully charged, and the charging power threshold for keyboard 2 is 45% of the power of keyboard 2 when fully charged.
[0088] If the battery level of keyboard 2 is less than 45% of its full charge level, tablet B will begin the first round of charging. Once the battery level of keyboard 2 reaches 60% of its full charge level, tablet B will stop charging keyboard 2, thus ending the first round of charging.
[0089] If the battery level of keyboard 2 is less than 45% of its full charge level, tablet B will start charging keyboard 2 for the second time. Once the battery level of keyboard 2 reaches 60% of its full charge level, tablet B will stop charging keyboard 2, thus ending the second charging cycle.
[0090] If the battery level of keyboard 2 is less than 45% of its full charge level, tablet B will start charging keyboard 2 for the third time. Once the battery level of keyboard 2 reaches 60% of its full charge level, tablet B will stop charging keyboard 2, thus ending the third charging cycle.
[0091] Understandably, after the third charging cycle, tablet B can charge keyboard 2 in the fourth, fifth, and subsequent cycles, which will not be elaborated here.
[0092] The keyboard charging method provided in the embodiments of this disclosure further includes identifying that the keyboard's battery level is less than a charging threshold before charging the keyboard. Therefore, the keyboard can be charged when its battery level is less than the charging threshold.
[0093] Figure 3 This is a flowchart illustrating a keyboard charging method according to another exemplary embodiment, such as... Figure 3As shown, the keyboard charging method of this disclosure includes the following steps.
[0094] S301 charges the keyboard according to the charging parameters corresponding to the current battery level and / or charging status.
[0095] In the embodiments of this disclosure, the keyboard is charged according to the charging parameters corresponding to the current power level and / or charging state. This includes charging the keyboard according to the charging parameters corresponding to the current power level, or charging the keyboard according to the charging parameters corresponding to the charging state, or charging the keyboard according to the charging parameters corresponding to both the current power level and the charging state.
[0096] In one implementation, the charging parameters are positively correlated with the current battery level. Therefore, the higher the current battery level, the higher the charging parameters. This allows for faster charging of the keyboard when the battery is high, meeting its charging needs. Conversely, when the battery is low, lower charging parameters result in slower charging, minimizing power consumption per unit time.
[0097] In one implementation, the keyboard is charged according to charging parameters corresponding to the current battery level and / or charging status. This includes charging the keyboard according to a first charging parameter when the keyboard is in charging mode, and charging the keyboard according to charging parameters corresponding to the current battery level when the keyboard is not in charging mode. Therefore, when the keyboard is in charging mode, it can be charged according to the first charging parameter; conversely, when the keyboard is not in charging mode, the charging parameters can be determined considering the current battery level, and the keyboard can be charged according to the charging parameters corresponding to the current battery level, enabling flexible setting of charging parameters.
[0098] In some examples, the keyboard is charged according to charging parameters corresponding to the current battery level. This includes charging the keyboard according to a second charging parameter when the current battery level is greater than or equal to a first preset threshold, and charging the keyboard according to a third charging parameter when the current battery level is less than the first preset threshold, wherein the third charging parameter is less than or equal to the second charging parameter. Therefore, the charging parameters can be determined considering the relationship between the current battery level and the first preset threshold, and since the charging parameters are positively correlated with the current battery level, flexible setting of the charging parameters is possible.
[0099] It should be noted that there are no strict limitations on the first to third charging parameters. For example, the first charging parameter can be equal to the second charging parameter. Taking the charging current as an example, the first charging parameter and the second charging parameter can both be 1 times the battery capacity of the keyboard, and the third charging parameter can be 0.5 times the battery capacity of the keyboard.
[0100] In some examples, the keyboard is charged according to charging parameters corresponding to the current battery level. This includes charging the keyboard according to a fourth charging parameter when the current battery level is greater than or equal to a second preset threshold, charging the keyboard according to a second charging parameter when the current battery level is greater than or equal to a first preset threshold but less than the second preset threshold, and charging the keyboard according to a third charging parameter when the current battery level is less than the first preset threshold. The second preset threshold is greater than the first preset threshold, the third charging parameter is less than or equal to the second charging parameter, and the second charging parameter is less than the fourth charging parameter. Therefore, the charging parameters can be determined by considering the relationship between the current battery level and the first and second preset thresholds, and the charging parameters are positively correlated with the current battery level, allowing for flexible setting of the charging parameters.
[0101] It should be noted that there are no strict limitations on the first to fourth charging parameters. For example, the first and fourth charging parameters can be equal. Taking the charging current as an example, the first and fourth charging parameters are both 1 times the keyboard's battery capacity, the second charging parameter is 0.8 times the keyboard's battery capacity, and the third charging parameter is 0.5 times the keyboard's battery capacity.
[0102] S302, stops charging the keyboard when the current battery level and / or the corresponding keyboard battery level threshold is reached.
[0103] For details regarding step S302, please refer to the above embodiments, which will not be repeated here.
[0104] The keyboard charging method provided in the embodiments of this disclosure charges the keyboard according to charging parameters corresponding to the current battery level and / or charging state. Therefore, the charging parameters can be determined taking into account the current battery level and / or charging state of the electronic device charging the keyboard, enabling flexible setting of the charging parameters.
[0105] Figure 4 This is a flowchart illustrating a keyboard charging method according to another exemplary embodiment, such as... Figure 4 As shown, the keyboard charging method of this disclosure includes the following steps.
[0106] S401 identifies whether it is in charging mode.
[0107] If yes, proceed to step S402; if no, proceed to step S405.
[0108] S402 identifies keyboard battery level as being below a first threshold.
[0109] S403 charges the keyboard according to the first charging parameter.
[0110] S404 stops charging the keyboard when the keyboard battery reaches the fourth threshold.
[0111] S405 identifies when the keyboard battery level is less than the corresponding charging threshold.
[0112] S406 charges the keyboard according to the charging parameters corresponding to the current battery level.
[0113] S407 stops charging the keyboard when the current keyboard battery level reaches the corresponding battery threshold.
[0114] After steps S404 and S407, you can return to execute step S401 and its subsequent steps.
[0115] For details regarding steps S401-S407, please refer to the above embodiments; they will not be repeated here.
[0116] Figure 5 This is a block diagram illustrating a keyboard charging device according to an exemplary embodiment. (Refer to...) Figure 5 The keyboard charging device 100 of this embodiment includes: a first control module 110 and a second control module 120.
[0117] The first control module 110 is configured to charge the keyboard;
[0118] The second control module 120 is configured to stop charging the keyboard at a keyboard power threshold corresponding to the current power level and / or charging state.
[0119] In one embodiment of this disclosure, the device 100 further includes an identification module, which is configured to perform the following before charging the keyboard: identifying that the keyboard battery level is less than a charging power threshold.
[0120] In one embodiment of this disclosure, the charging capacity threshold is positively correlated with the current power level.
[0121] In one embodiment of this disclosure, before charging the keyboard, the identification module is further configured to: identify that the keyboard battery level is less than a first threshold when it is in charging mode; and identify that the keyboard battery level is less than a charging threshold corresponding to the current battery level when it is not in charging mode.
[0122] In one embodiment of this disclosure, the identification module is further configured to perform: in response to the current battery level being greater than or equal to a first preset threshold, identifying that the keyboard battery level is less than a second keyboard battery level threshold; in response to the current battery level being less than the first preset threshold, identifying that the keyboard battery level is less than a third keyboard battery level threshold, wherein the third keyboard battery level threshold is less than or equal to the second keyboard battery level threshold.
[0123] In one embodiment of this disclosure, the first control module 110 is further configured to perform: charging the keyboard according to charging parameters corresponding to the current power level and / or charging status.
[0124] In one embodiment of this disclosure, the charging parameters are positively correlated with the current battery level.
[0125] In one embodiment of this disclosure, the first control module 110 is further configured to: charge the keyboard according to a first charging parameter in response to being in a charging mode; and charge the keyboard according to a charging parameter corresponding to the current battery level in response to not being in a charging mode.
[0126] In one embodiment of this disclosure, the first control module 110 is further configured to: charge the keyboard according to a second charging parameter in response to the current battery level being greater than or equal to a first preset threshold; and charge the keyboard according to a third charging parameter in response to the current battery level being less than the first preset threshold, wherein the third charging parameter is less than or equal to the second charging parameter.
[0127] In one embodiment of this disclosure, the keyboard battery threshold is positively correlated with the current battery level.
[0128] In one embodiment of this disclosure, the second control module 120 is further configured to: stop charging the keyboard at a fourth keyboard power threshold in response to itself being in charging mode; and stop charging the keyboard at the keyboard power threshold corresponding to the current power level in response to itself not being in charging mode.
[0129] In one embodiment of this disclosure, the second control module 120 is further configured to: stop charging the keyboard at a fifth keyboard battery level in response to the current battery level being greater than or equal to a first preset threshold; and stop charging the keyboard at a sixth keyboard battery level in response to the current battery level being less than the first preset threshold, wherein the sixth keyboard battery level is less than or equal to the fifth keyboard battery level.
[0130] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0131] The keyboard charging device provided in the embodiments of this disclosure charges the keyboard and stops charging when the keyboard reaches a power threshold corresponding to the current power level and / or charging state. Therefore, the keyboard power threshold can be determined by taking into account the current power level and / or charging state of the electronic device charging the keyboard, enabling flexible setting of the keyboard power threshold. When the keyboard reaches the power threshold, charging stops, and the keyboard's own battery can then power the keyboard, eliminating the need for the electronic device to continue supplying power. This helps improve the keyboard's power efficiency, reduces the power consumption rate of the electronic device, and extends the battery life of the electronic device, making it suitable for scenarios where tablet computers charge keyboards.
[0132] Figure 6 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0133] like Figure 6 As shown, the above-mentioned electronic device 200 includes:
[0134] The memory 210 and processor 220 are connected by a bus 230, which connects different components (including the memory 210 and the processor 220). The memory 210 stores a computer program, and when the processor 220 executes the program, it implements the keyboard charging method described in this embodiment of the present disclosure.
[0135] Bus 230 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0136] Electronic device 200 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by electronic device 200, including volatile and non-volatile media, removable and non-removable media.
[0137] Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and / or cache memory 250. Electronic device 200 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 260 may be used to read and write non-removable, non-volatile magnetic media (… Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 via one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this disclosure.
[0138] A program / utility 280 having a set (at least one) of program modules 270 may be stored, for example, in memory 210. Such program modules 270 include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 270 typically perform the functions and / or methods described in the embodiments of this disclosure.
[0139] Electronic device 200 can also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), and with one or more devices that enable a user to interact with the electronic device 200, and / or with any device that enables the electronic device 200 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 292. Furthermore, electronic device 200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 293. Figure 6 As shown, network adapter 293 communicates with other modules of electronic device 200 via bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0140] The processor 220 performs various functional applications and data processing by running programs stored in the memory 210.
[0141] It should be noted that the implementation process and technical principles of the electronic device in this embodiment are explained in the foregoing description of the keyboard charging method of this disclosure embodiment, and will not be repeated here.
[0142] The electronic device provided in this disclosure can execute the keyboard charging method described above to charge the keyboard, and stop charging the keyboard when the current battery level and / or charging state corresponds to a keyboard battery level threshold. Therefore, the keyboard battery level threshold can be determined by taking into account the current battery level and / or charging state of the electronic device charging the keyboard, allowing for flexible setting of the keyboard battery level threshold. When the keyboard reaches the threshold, charging stops, and the keyboard can then be powered by its own battery. The electronic device does not need to continue supplying power to the keyboard, which helps improve the keyboard's power efficiency, reduces the power consumption rate of the electronic device, and extends the battery life of the electronic device. This method is suitable for scenarios where tablet computers charge keyboards.
[0143] To implement the above embodiments, this disclosure also proposes a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the steps of the keyboard charging method provided in this disclosure.
[0144] Alternatively, the computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0145] To implement the above embodiments, this disclosure also provides a computer program product, including a computer program, characterized in that, when the computer program is executed by the processor of an electronic device, it implements the keyboard charging method as described above.
[0146] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0147] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for charging a keyboard, characterized in that, include: Charge the keyboard; Charging of the keyboard will stop at the keyboard power threshold corresponding to the current power level and / or charging status.
2. The method according to claim 1, characterized in that, Before charging the keyboard, the process also includes: It can detect when the keyboard battery level is lower than the charging threshold.
3. The method according to claim 2, characterized in that, The charging capacity threshold is positively correlated with the current power level.
4. The method according to claim 2, characterized in that, Before charging the keyboard, the process also includes: In response to being in charging mode, the keyboard battery level is identified as being less than a first threshold. In response to the fact that it is not in charging mode, it identifies that the keyboard battery level is less than the charging threshold corresponding to the current battery level.
5. The method according to claim 4, characterized in that, The step of identifying that the keyboard battery level is less than the charging threshold corresponding to the current battery level includes: In response to the current battery level being greater than or equal to a first preset threshold, the keyboard battery level is identified as being less than a second keyboard battery level threshold; In response to the current battery level being less than the first preset threshold, the keyboard battery level is identified as being less than the third keyboard battery level threshold, wherein the third keyboard battery level threshold is less than or equal to the second keyboard battery level threshold.
6. The method according to claim 1, characterized in that, Charging the keyboard includes: The keyboard is charged according to the charging parameters corresponding to the current battery level and / or charging status.
7. The method according to claim 6, characterized in that, The charging parameters are positively correlated with the current battery level.
8. The method according to claim 6, characterized in that, Charging the keyboard according to the charging parameters corresponding to the current battery level and / or charging status includes: In response to being in charging mode, the keyboard is charged according to the first charging parameter; In response to the fact that it is not in charging mode, the keyboard is charged according to the charging parameters corresponding to the current battery level.
9. The method according to claim 8, characterized in that, The step of charging the keyboard according to the charging parameters corresponding to the current battery level includes: In response to the current battery level being greater than or equal to a first preset threshold, the keyboard is charged according to a second charging parameter; In response to the current battery level being less than the first preset threshold, the keyboard is charged according to a third charging parameter, wherein the third charging parameter is less than or equal to the second charging parameter.
10. The method according to claim 1, characterized in that, The keyboard battery threshold is positively correlated with the current battery level.
11. The method according to claim 1, characterized in that, The step of stopping charging the keyboard at the keyboard power threshold corresponding to the current power level and / or charging state includes: In response to being in charging mode, the system stops charging the keyboard when the keyboard battery level reaches the fourth threshold. In response to the fact that it is not in charging mode, it stops charging the keyboard at the keyboard power threshold corresponding to the current power level.
12. The method according to claim 11, characterized in that, The step of stopping charging the keyboard at the keyboard power threshold corresponding to the current power level includes: In response to the current battery level being greater than or equal to a first preset threshold, charging of the keyboard is stopped at a fifth keyboard battery level threshold; In response to the current battery level being less than the first preset threshold, charging of the keyboard is stopped at a sixth keyboard battery level threshold, wherein the sixth keyboard battery level threshold is less than or equal to the fifth keyboard battery level threshold.
13. A keyboard charging device, characterized in that, include: The first control module is configured to charge the keyboard; The second control module is configured to stop charging the keyboard at a keyboard power threshold corresponding to the current power level and / or charging state.
14. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured as follows: The steps for implementing the method according to any one of claims 1-12.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When executed by a processor, the program instructions implement the steps of the method described in any one of claims 1-12.