Accessory charging method and device, equipment and storage medium

By setting an interface on the smart watch to read the power and historical power records of the expansion accessories and charging reasonably, the problem of high power consumption when charging the expansion accessories is solved, and the battery life is improved.

CN119154432APending Publication Date: 2024-12-17GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310725506.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Smart watches consume a lot of power when charging expansion accessories, affecting their battery life. There is a lack of effective solutions in the existing technology.

Method used

Set an interface on the smart watch to connect to expansion accessories. By reading the remaining power and historical power records of the accessories, determine the target power consumption and the amount to be recharged, and charge reasonably to ensure that the accessories have sufficient power when used without Excessive consumption of the smartwatch's power.

Benefits of technology

It effectively reduces the power consumption of smart watches by charging expansion accessories, ensures the normal use of accessories and improves the battery life of smart watches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119154432A_ABST
    Figure CN119154432A_ABST
Patent Text Reader

Abstract

The invention discloses an accessory charging method and device, equipment and a storage medium, and relates to the technical field of smart watches. According to the technical scheme, the method comprises the steps that the smart watch is provided with an interface used for being connected with an accessory, and the smart watch reads the first remaining electric quantity and historical electricity utilization records of the accessory from the accessory when detecting that the interface is connected with the accessory; determining the target electricity consumption required by the use of the accessory according to the historical electricity consumption record, and determining the to-be-supplemented electricity quantity of the accessory according to the target electricity consumption and the first residual electricity quantity; and charging the accessory according to the to-be-supplemented electric quantity and the second residual electric quantity of the smart watch. Through the technical means, the expanded accessory is reasonably charged according to the historical electricity utilization record of the expanded accessory and the residual electricity quantity of the smart watch, the problem that in the prior art, when the expanded accessory is charged, a large amount of electricity quantity of the smart watch is consumed is solved, and the cruising ability of the smart watch is guaranteed while the expanded accessory is used.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart watches, and in particular to an accessory charging method, device, equipment and storage medium. Background Art

[0002] Smartphones are electronic products that people use daily. With the rapid development of the mobile phone industry, mobile phone accessories are becoming more and more abundant. Among the many mobile phone accessories, there is a type of expansion accessories that achieve specific functions by connecting to the charging port of the mobile phone. For example, external fans and cigarette lighters are all expansion accessories. Smart watches are electronic products that can be independent of mobile phones. They can be used without relying on mobile phones, and can even be carried alone instead of mobile phones in certain scenarios.

[0003] In the prior art, although smart watches are independent electronic products like smartphones, they are rarely equipped with corresponding expansion accessories. In addition, compared with smartphones, the battery capacity of smart watches is smaller, and charging expansion accessories will consume a large amount of power of the smart watch, affecting the battery life of the smart watch. Summary of the invention

[0004] The present application provides an accessory charging method, device, equipment and storage medium, which can connect expansion accessories by setting an interface on a smart watch, and reasonably charge the expansion accessories according to the historical power usage records of the expansion accessories and the remaining power of the smart watch, thereby solving the problem in the prior art that a large amount of power of the smart watch is consumed when charging the expansion accessories, and ensuring the battery life of the smart watch while using the expansion accessories.

[0005] In a first aspect, the present application provides an accessory charging method, which is applied to a smart watch, wherein the smart watch is provided with an interface for connecting the accessory, comprising:

[0006] When detecting that the interface is connected to an accessory, reading a first remaining power and a historical power usage record of the accessory from the accessory;

[0007] Determine the target power consumption required for the accessory for this use according to the historical power consumption record, and determine the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power;

[0008] The accessory is charged according to the amount of power to be replenished and the second remaining power of the smart watch.

[0009] In a second aspect, the present application provides an accessory charging device, which is applied to a smart watch, wherein the smart watch is provided with an interface for connecting the accessory, including:

[0010] A data reading module is configured to read a first remaining power and a historical power consumption record of the accessory from the accessory when detecting that the interface is connected to the accessory;

[0011] a power determination module, configured to determine a target power consumption required for the accessory for this use according to the historical power consumption record, and determine the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power;

[0012] The accessory charging module is configured to charge the accessory according to the amount of power to be replenished and the second remaining power of the smart watch.

[0013] In a third aspect, the present application provides an accessory charging device, including:

[0014] One or more processors; a memory storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the accessory charging method as described in the first aspect.

[0015] In a fourth aspect, the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the accessory charging method as described in the first aspect.

[0016] In the present application, the smart watch is provided with an interface for connecting an expansion accessory. When the smart watch detects that an accessory is connected to the interface, the smart watch reads the first remaining power and the historical power consumption record of the accessory from the corresponding connected accessory, determines the target power consumption required for the current use of the accessory according to the historical power consumption record, determines the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power, and charges the accessory according to the amount of power to be replenished and the second remaining power of the smart watch. Through the above technical means, the amount of power replenished by the smart watch to the accessory can be determined based on the target power consumption and the remaining power of the accessory, so that the power of the accessory after charging can just support the accessory to complete the current usage task, and the smart watch will not over-replenish the power to the accessory. When the smart watch is charging the accessory, some energy will be lost for no reason, and the more power is replenished, the more energy it loses. By reasonably controlling the amount of power replenished by the smart watch to the accessory, the energy loss caused by charging the accessory can be effectively reduced, solving the problem of large consumption of power of the smart watch when charging the expansion accessory in the prior art, ensuring that the accessory can be used normally without excessive consumption of power of the smart watch, and improving the battery life of the smart watch. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of an accessory charging method provided in an embodiment of the present application;

[0018] Figure 2is a schematic diagram of the structure of a smart watch provided in an embodiment of the present application;

[0019] Figure 3 is a schematic diagram of a smart watch connected to accessories provided in an embodiment of the present application;

[0020] Figure 4 is a flow chart for determining target power consumption provided by an embodiment of the present application;

[0021] Figure 5 is a structural schematic diagram of an accessory charging device provided in an embodiment of the present application;

[0022] Figure 6 It is a structural schematic diagram of an accessory charging device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] In the more common existing implementation methods, the battery capacity of smart watches is relatively small. If the smart watch is charging the expansion accessories, it will consume a lot of power of the smart watch, affecting the battery life of the smart watch. Therefore, smart watches are generally not provided with an interface for connecting expansion accessories. When using expansion accessories, users still plug them into the interface of the smartphone and charge the expansion accessories through the smartphone. Of course, it is not ruled out that the charging interface of some smart watches is the same type of interface as the plug of the expansion accessory. When the plug of the expansion accessory is inserted into the charging interface of the smart watch, the smart watch charges the expansion accessory through the charging interface. However, when this type of smart watch is connected to the expansion accessory, it will continue to charge the expansion accessory until the smart watch has no power or the expansion accessory is unplugged. The smart watch consumes electricity quickly and has poor battery life.

[0026] In order to solve the problem in the above-mentioned prior art that a large amount of power of the smart watch is consumed when charging the expansion accessories, this embodiment provides an accessory charging method to reasonably charge the expansion accessories according to the historical power consumption records of the expansion accessories and the remaining power of the smart watch.

[0027] The accessory charging method provided in this embodiment may be executed by an accessory charging device, which may be implemented by software and / or hardware, and may be composed of two or more physical entities or one physical entity. For example, the accessory charging device may be a smart watch or a processor of the smart watch.

[0028] The accessory charging device is installed with at least one type of operating system, and the accessory charging device can install at least one application based on the operating system. The application can be an application that comes with the operating system, or an application downloaded from a third-party device or server. In this embodiment, the accessory charging device has at least an application that can execute the accessory charging method.

[0029] For ease of understanding, this embodiment is described by taking a smart watch as an example of a subject that executes the accessory charging method.

[0030] Figure 1 A flowchart of an accessory charging method provided in an embodiment of the present application is given. Figure 1 , the accessory charging method specifically includes:

[0031] S110. When it is detected that the interface is connected to an accessory, read a first remaining power and a historical power usage record of the accessory from the accessory.

[0032] Exemplarily, the smart watch is provided with an interface for connecting accessories, and the interface cooperates with the plug of the accessory. For example, if the plug of the accessory is a type-c male, the interface is a type-c female. It should be noted that if the smart watch is charged through contacts or wirelessly, the smart watch is additionally provided with an interface for plugging in expansion accessories; if the smart watch is charged through an interface that is adapted to the plug of the expansion accessory, it is connected to the expansion accessory through the charging interface.

[0033] In one embodiment, a slide groove is provided on one side of the smart watch, and an interface is provided in the slide groove so that the accessory can be plugged into the interface through the slide groove. Figure 2 Schematic diagram of the structure of the smart watch provided in the embodiment of the present application. Figure 2 As shown, the smart watch includes a watch body 11 and a strap 12. The strap 12 is arranged on opposite sides of the watch body 11. A slide groove 13 is arranged on the side of the watch body 11 where the strap is not arranged. The slide groove is provided with an interface adapted to the plug of the expansion accessory. Figure 3 Schematic diagram of a smart watch connected to accessories provided in an embodiment of the present application. Figure 3 As shown, this embodiment is described by taking the expansion accessory as an external fan as an example. After the plug of the external fan is placed in the slide slot, it slides down from top to bottom to the interface through the guidance of the slide slot and is tightly connected with the interface. Compared with the traditional plug-in connection method, the connection between the plug and the interface connected by the slide slot is more stable, avoiding the subsequent charging failure caused by loose connection when the smart watch is charging the expansion accessory, and ensuring the stability of charging.

[0034] In this embodiment, the expansion accessory includes an accessory body, a control motherboard, a battery, a plug, and a control switch. For example, the accessory body of the external fan is a fan. The control switch is used to control the rotation of the fan, the control motherboard is used to record the power consumption of the fan after each startup and monitor the remaining power of the battery, and the battery is used to power the fan and the control motherboard. When the plug of the external fan is connected to the interface of the smart watch, the smart watch detects that the interface is connected to the external fan, and then the smart watch reads the first remaining power of the external fan through the control motherboard of the external fan, and reads the historical power consumption record of the external fan. Among them, the first remaining power refers to the remaining power of the battery of the external fan, and the historical power consumption record records the past power consumption of the external fan.

[0035] S120: Determine a target power consumption required for the accessory for this use according to the historical power consumption record, and determine the amount of power to be replenished for the accessory according to the target power consumption and the first remaining power.

[0036] Exemplarily, the past power consumption of the external fan is analyzed to predict the power consumed by the current use of the external fan. The target power consumption is also the predicted power consumed by the current use of the external fan. In one embodiment, the power consumed by the most recent use of the external fan can be determined from the historical power consumption records, and the power is determined as the target power consumption of the external fan. However, the power consumption of the most recent external fan cannot accurately represent the user's past usage habits of the external fan. Based on this, the target power consumption that meets the user's usage habits can be determined based on the power consumed by each previous use of the external fan to meet the user's usage needs. Figure 4 This is a flow chart for determining target power consumption provided by an embodiment of the present application. Figure 4 As shown, the step of determining the target power consumption specifically includes S1201-S1202:

[0037] S1201. Determine the historical power consumption of the accessory each time it is used based on the historical power consumption records.

[0038] For example, when the control switch of the external fan is turned on, the battery of the external fan supplies power to the fan, and the fan starts to rotate after being powered on. When the control switch of the external fan is turned off, the battery of the external fan stops supplying power to the fan, and the fan stops rotating after losing power. During the rotation of the fan, the control motherboard monitors the power consumption of the battery, and after the fan stops rotating, the power consumption of the battery during this rotation of the fan is recorded in the historical power consumption record. Accordingly, when the smart watch reads the historical power consumption record of the external fan, the power consumption of the external fan each time in the past can be obtained from the historical power consumption record. Among them, the historical power consumption can be understood as the power consumption of the battery when the user used the external fan once in the past.

[0039] It is possible that the user may mistakenly turn on the control switch of the external fan and then quickly turn off the control switch. In this case, the external fan will still record the battery power consumption during this period in the historical power consumption record. Since the battery power consumption is low in this case, if the smart watch uses it to calculate the target power consumption, it will affect the prediction accuracy of the target power consumption. In this regard, the power consumption in the historical power consumption record can be compared with the preset power consumption threshold. If the power consumption is less than or equal to the preset power consumption threshold, it indicates that the power consumption is not the power consumption when the user uses the external fan once, but the power consumption of the external fan when the control switch is mistakenly turned on. Therefore, the power consumption is not determined as the historical power consumption. If the power consumption is greater than the preset power consumption threshold, it indicates that the power consumption is the power consumption when the user uses the external fan once, so the power consumption is determined as the historical power consumption.

[0040] Alternatively, the historical power consumption record includes the start time and end time of the accessory, and the power consumption of the accessory between the start time and the corresponding end time. Exemplarily, when the control switch of the external fan is turned on, the control mainboard determines the time when the control switch is turned on as the start time of the external fan, and monitors the power consumed by the battery. When the control switch of the external fan is turned off, the control mainboard determines the time when the control switch is turned off as the end time of the external fan, and saves the power consumed by the battery from the start time to the end time and the corresponding time to the historical power consumption record. Correspondingly, when the smart watch reads the historical power consumption record of the external fan, the duration between the start time and the corresponding end time in the historical power consumption record can be compared with the preset duration threshold. When the duration between the start time and the corresponding end time is greater than the preset duration threshold, the power consumption of the accessory between the start time and the corresponding end time is determined as the historical power consumption when the accessory is used. Among them, the preset duration threshold can be understood as the shortest usage time when the user uses the external fan. If the duration between the start time and the corresponding end time is greater than the preset duration threshold, it indicates that the power consumption between the start time and the corresponding end time is the power consumption when the user uses the external fan once, and therefore the power consumption is determined as the historical power consumption; if the duration between the start time and the corresponding end time is less than or equal to the preset duration threshold, it indicates that the power consumption between the start time and the corresponding end time is not the power consumption when the user uses the external fan once, but the power consumption of the external fan when the control switch is mistakenly turned on, and therefore the power consumption is not determined as the historical power consumption.

[0041] S1202: Determine the average power consumption according to the historical power consumption during each use, and determine the average power consumption as the target power consumption required for the current use of the accessory.

[0042] For example, an average value of historical power consumption obtained from historical power consumption records is determined, and the average value can represent the user's past power consumption habits when using an external fan, so the average value is determined as the target power consumption. The average power consumption is the average value of the historical power consumption obtained.

[0043] Further, the target power consumption is compared with the first remaining power to determine whether the smart watch needs to replenish power to the external fan when the external fan is used this time. If the target power consumption is greater than the first remaining power, it indicates that the remaining power of the battery of the external fan is insufficient to support the external fan to complete the predicted usage task, so the smart watch needs to charge the external fan. In order to save the power of the smart watch, when the target power consumption is greater than the first remaining power, the difference between the target power consumption and the first remaining power is determined as the power to be replenished of the accessory, so that after the smart watch replenishes the power to the external fan, the external fan can just complete the predicted usage task, and the smart watch will not over-replenish the power to the external fan. Moreover, when the smart watch charges the external fan, part of the energy will be lost for no reason, and the more power is replenished, the more energy it loses. This embodiment reasonably controls the power replenished by the smart watch to the external fan, which can effectively reduce the energy loss caused by charging the external fan, further optimize the power consumption of the smart watch, ensure that the external fan can be used normally without over-consuming the power of the smart watch, and optimize the battery life of the smart watch. If the target power consumption is less than or equal to the first remaining power, it indicates that the remaining power of the battery of the external fan is sufficient to support the external fan to complete the predicted usage task, so the smart watch does not need to charge the external fan. In this regard, when the target power consumption is less than or equal to the first remaining power, it is determined that the power to be replenished of the accessory is zero, and the smart watch is prohibited from charging the external fan, thereby saving power of the smart watch.

[0044] If this is the first time the external fan is used, the external fan has not stored any historical power usage records, and accordingly, the smart watch cannot read the historical power usage records of the accessory. At this time, the smart watch can read the remaining power and total capacity of the battery of the external fan, and determine the difference between the remaining power and the total capacity as the power to be replenished, so that the smart watch can fully charge the battery of the external fan at one time.

[0045] S130: Charge the accessories according to the amount of power to be replenished and the second remaining power of the smart watch.

[0046] The second remaining power refers to the remaining power of the battery of the smart watch. When the second remaining power is greater than the power to be replenished, the smart watch charges the external fan and monitors the power obtained from the external fan during the charging process. When the power obtained from the external fan is equal to the power to be replenished, the smart watch stops charging the external fan so that the available power of the external fan during this use is equal to the predicted target power consumption. When the second remaining power is less than or equal to the power to be replenished, the smart watch is prohibited from charging the external fan to avoid the smart watch directly entering the shutdown state due to insufficient power after charging the external fan.

[0047] When the smart watch is charging the external fan, additional losses will be generated, resulting in the battery consumption of the smart watch being greater than the amount of power to be replenished when the smart watch is charging the external fan. If the remaining power of the smart watch's battery is only slightly greater than the amount of power to be replenished, the remaining power of the smart watch after charging is insufficient to support the smart watch to complete some basic processing tasks, affecting the battery life of the smart watch. In this regard, the external fan can be charged when the remaining power of the smart watch's battery is sufficient. Exemplarily, when the second remaining power of the smart watch is greater than or equal to the first preset power, the accessory is charged according to the amount of power to be replenished; when the second remaining power of the smart watch is less than the first preset power, charging the accessory is prohibited. Among them, the first preset power is the remaining power of the battery when the smart watch is sufficient in this embodiment, and the first preset power is greater than the amount of power to be replenished. If the second remaining power is greater than or equal to the first preset power, it indicates that after the smart watch provides the power to be replenished to the external fan, the remaining power of the smart watch can still support it to complete basic processing tasks, so the external fan is charged. If the second remaining power is less than the first preset power, it indicates that after the smart watch wants to be replenished by the external fan, the remaining power of the smart watch cannot support it to complete basic processing tasks. Therefore, charging the external fan is prohibited to ensure the normal use of the smart watch.

[0048] If the amount of power to be replenished is less, the additional power consumed by the smart watch when charging the external fan will also be less, that is, when the remaining power of the smart watch is less than the first preset power, charging the external fan will not cause the smart watch to be unable to complete some basic processing tasks. In this regard, whether to charge the external fan can be determined based on the difference between the second remaining power and the power to be replenished. Exemplarily, when the difference between the second remaining power and the power to be replenished is greater than or equal to the second preset power, the accessory is charged according to the power to be replenished; when the difference between the second remaining power and the power to be replenished is less than the second preset power, the accessory is charged according to the power to be replenished. Among them, the second preset power is the minimum power required for the smart watch set in this embodiment to complete basic processing tasks, but considering that additional energy consumption will be generated in the process of charging the smart watch to the accessories, the second preset power set in this embodiment will be larger than the actual minimum power. If the difference between the second remaining power and the power to be replenished is greater than or equal to the second preset power, it indicates that after the smart watch provides the power to be replenished to the external fan, the remaining power of the smart watch can still support it to complete basic processing tasks, so the external fan is charged; if the difference between the second remaining power and the power to be replenished is less than the second preset power, it indicates that after the smart watch provides the power to be replenished to the external fan, the remaining power of the smart watch cannot support it to complete basic processing tasks, so charging the external fan is prohibited to ensure the normal use of the smart watch.

[0049] If the amount of power to be replenished is larger, the extra power consumed by the smart watch when charging the external fan will also be more. After the smart watch charges the external fan, the remaining power may be less than the second preset power. For example, if the second preset power is 10, the amount of power to be replenished is 40, and the second remaining power is 52, the smart watch can charge the external fan at this time; similarly, if the second preset power is 10, the amount of power to be replenished is 10, and the second remaining power is 22, the smart watch can also charge the external fan at this time. The extra power consumed by the smart watch when replenishing 40 of power to the external fan is greater than the extra power consumed when replenishing 10. Therefore, it can be determined whether to charge the external fan based on the ratio of the power to be replenished to the second remaining power. Exemplarily, when the ratio of the power to be replenished to the second remaining power of the smart watch is less than the preset ratio, the accessory is charged according to the power to be replenished; when the ratio of the power to be replenished to the second remaining power of the smart watch is greater than or equal to the preset ratio, charging the accessory is prohibited. It is easy to understand that the larger the ratio of the power to be replenished to the second remaining power, the less power the smart watch has left after charging the external fan, and the smaller the ratio of the power to be replenished to the second remaining power, the more power the smart watch has left after charging the external fan. When the ratio of the second remaining power to the power to be replenished is less than the preset ratio, it indicates that after the smart watch provides the power to be replenished to the external fan, the remaining power of the smart watch can still support it to complete basic processing tasks, so the external fan is charged; when the ratio of the second remaining power to the power to be replenished is greater than or equal to the preset ratio, it indicates that after the smart watch provides the power to be replenished to the external fan, the remaining power of the smart watch cannot support it to complete basic processing tasks, so charging the external fan is prohibited to ensure the normal use of the smart watch. Since the smart watch will only charge the external fan when the second remaining power is greater than the power to be replenished, the ratio of the power to be replenished to the second remaining power ranges from 0 to 1.

[0050] It should be noted that when both the amount of power to be replenished and the second remaining power are low, the ratio of the two may also be less than the preset ratio. For example, the preset ratio is 0.5. When the amount of power to be replenished is 5 and the second remaining power is 11, it is the same as when the amount of power to be replenished is 20 and the second remaining power is 41. The ratio of the two satisfies the preset ratio. However, it is obvious that in the former case, the remaining power after the smart watch charges the external fan may not be able to support it to complete basic processing tasks. In this regard, the judgment method of determining whether to charge the external fan based on the difference between the second remaining power and the amount of power to be replenished and the judgment method of determining whether to charge the external fan based on the ratio of the amount of power to be replenished to the second remaining power can be combined. When the conditions for charging the external fan are met at the same time, the smart watch charges the external fan.

[0051] In summary, the accessory charging method provided in the embodiment of the present application is to set an interface for connecting an extended accessory on the smart watch. When the smart watch detects that the interface is connected to an accessory, it reads the first remaining power and historical power consumption record of the accessory from the corresponding connected accessory, determines the target power consumption required for the accessory this time according to the historical power consumption record, determines the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power, and charges the accessory according to the amount of power to be replenished and the second remaining power of the smart watch. Through the above technical means, the amount of power replenished by the smart watch to the accessory can be determined based on the target power consumption and the remaining power of the accessory, so that the power of the accessory after charging can just support the accessory to complete the current usage task, and the smart watch will not over-replenish the power to the accessory. When the smart watch is charging the accessory, some energy will be lost for no reason, and the more power is replenished, the more energy it loses. By reasonably controlling the amount of power replenished by the smart watch to the accessory, the energy loss caused by charging the accessory can be effectively reduced, and the problem of large consumption of power of the smart watch when charging the extended accessory in the prior art is solved, and the accessory can be ensured to be used normally without excessive consumption of power of the smart watch, thereby improving the battery life of the smart watch.

[0052] Based on the above embodiments, Figure 5 This is a schematic diagram of the structure of an accessory charging device provided in an embodiment of the present application. Figure 5 The accessory charging device provided in this embodiment specifically includes: a data reading module 21 , a power determination module 22 and an accessory charging module 23 .

[0053] The data reading module 21 is configured to read the first remaining power and the historical power consumption record of the accessory from the accessory when detecting that the interface is connected to the accessory;

[0054] The power determination module 22 is configured to determine the target power consumption required for the current use of the accessory according to the historical power consumption record, and determine the power to be replenished of the accessory according to the target power consumption and the first remaining power;

[0055] The accessory charging module 23 is configured to charge the accessory according to the amount of power to be replenished and the second remaining power of the smart watch.

[0056] On the basis of the above embodiment, a slide groove is provided on one side of the smart watch, and an interface is provided in the slide groove so that the accessory can be plugged into the interface through the slide groove.

[0057] Based on the above embodiment, the power determination module 22 includes: a historical power consumption determination unit, configured to determine the historical power consumption of the accessory each time it is used based on the historical power consumption records; a target power consumption determination unit, configured to determine the average power consumption based on the historical power consumption each time it is used, and determine the average power consumption as the target power consumption required for the accessory this time.

[0058] Based on the above embodiment, the historical power consumption record includes the start time and end time of the accessory, and the power consumption of the accessory between the start time and the corresponding end time; accordingly, the historical power consumption determination unit includes: a historical power consumption determination subunit, which is configured to determine the power consumption of the accessory between the start time and the corresponding end time as the historical power consumption when the accessory is in use when the duration between the start time and the corresponding end time is greater than a preset duration threshold.

[0059] Based on the above embodiment, the power determination module 22 includes: a first power determination unit for determining the power to be replenished, which is configured to determine the difference between the target power consumption and the first remaining power as the power to be replenished of the accessory when the target power consumption is greater than the first remaining power; and a second power determination unit for determining the power to be replenished of the accessory is configured to determine that the power to be replenished of the accessory is zero when the target power consumption is less than or equal to the first remaining power.

[0060] Based on the above embodiment, the accessory charging module 23 includes: a first charging unit, configured to charge the accessory according to the amount of power to be replenished when the second remaining power of the smart watch is greater than or equal to the first preset power; a first prohibition unit, configured to prohibit charging the accessory when the second remaining power of the smart watch is less than the first preset power.

[0061] Based on the above embodiment, the accessory charging module 23 includes: a second charging unit, configured to charge the accessory according to the amount of power to be replenished when the ratio of the amount of power to be replenished to the second remaining power of the smart watch is less than a preset ratio; a second prohibition unit, configured to prohibit charging the accessory when the ratio of the amount of power to be replenished to the second remaining power of the smart watch is greater than or equal to a preset ratio.

[0062] As mentioned above, the accessory charging device provided by the embodiment of the present application, by setting an interface for connecting the expansion-type accessory on the smart watch, the smart watch reads the first remaining power and the historical power consumption record of the accessory from the corresponding connected accessory when detecting that the interface is connected to the accessory, determines the target power consumption required for the current use of the accessory according to the historical power consumption record, determines the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power, and charges the accessory according to the amount of power to be replenished and the second remaining power of the smart watch. Through the above technical means, the amount of power replenished by the smart watch to the accessory can be determined based on the target power consumption and the remaining power of the accessory, so that the power of the accessory after charging can just support the accessory to complete the current use task, and the smart watch will not replenish the power to the accessory in excess. When the smart watch is charging the accessory, some energy will be lost for no reason, and the more power is replenished, the more energy it loses. By reasonably controlling the amount of power replenished by the smart watch to the accessory, the energy loss caused by charging the accessory can be effectively reduced, and the problem of large consumption of power of the smart watch when charging the expansion-type accessory in the prior art is solved, and the accessory can be ensured to be used normally without excessive consumption of power of the smart watch, thereby improving the battery life of the smart watch.

[0063] The accessory charging device provided in the embodiment of the present application can be used to execute the accessory charging method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0064] Figure 6 is a schematic diagram of a device provided in an embodiment of the present application, with reference to Figure 6 The device includes: a processor 31, a memory 32, a communication device 33, an input device 34, and an output device 35. The number of processors 31 in the accessory charging device can be one or more, and the number of memories 32 in the accessory charging device can be one or more. The processor 31, memory 32, communication device 33, input device 34, and output device 35 of the accessory charging device can be connected via a bus or other means.

[0065] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the accessory charging method of any embodiment of the present application (for example, the data reading module 21, the power determination module 22 and the accessory charging module 23 in the accessory charging device). The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0066] The communication device 33 is used for data transmission.

[0067] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 32, that is, implements the above-mentioned accessory charging method.

[0068] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.

[0069] The device provided above can be used to execute the accessory charging method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0070] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute an accessory charging method, the accessory charging method comprising: when detecting that an accessory is connected to an interface, reading a first remaining power and a historical power usage record of the accessory from the accessory; determining a target power usage required for this use of the accessory based on the historical power usage record, and determining the amount of power to be replenished of the accessory based on the target power usage and the first remaining power; and charging the accessory based on the amount of power to be replenished and a second remaining power of the smart watch.

[0071] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0072] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above accessory charging method, can also execute related operations in the accessory charging method provided in any embodiment of the present application.

[0073] The accessory charging apparatus, storage medium and device provided in the above embodiments can execute the accessory charging method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the accessory charging method provided in any embodiment of the present application.

[0074] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for charging an accessory, characterized in that: Applied to a smart watch, the smart watch is provided with an interface for connecting accessories, and the accessory charging method includes: When detecting that the interface is connected to an accessory, reading a first remaining power and a historical power usage record of the accessory from the accessory; Determine the target power consumption required for the accessory for this use according to the historical power consumption record, and determine the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power; The accessory is charged according to the amount of power to be replenished and the second remaining power of the smart watch.

2. The accessory charging method according to claim 1, characterized in that: A slide groove is provided on one side of the smart watch, and the interface is provided in the slide groove so that the accessory can be plugged into the interface through the slide groove.

3. The accessory charging method according to claim 1, characterized in that: The determining, according to the historical power consumption record, the target power consumption required for the current use of the accessory includes: Determine the historical power consumption of the accessory each time it is used according to the historical power consumption record; The average power consumption is determined according to the historical power consumption during each use, and the average power consumption is determined as the target power consumption required for the current use of the accessory.

4. The accessory charging method according to claim 3, characterized in that: The historical power consumption record includes the start time and end time of the accessory, and the power consumption of the accessory between the start time and the corresponding end time; Accordingly, determining the historical power consumption of the accessory each time it is used according to the historical power consumption record includes: When the duration between the start time and the corresponding end time is greater than a preset duration threshold, the power consumption of the accessory between the start time and the corresponding end time is determined as the historical power consumption of the accessory when it is in use.

5. The accessory charging method according to claim 1, characterized in that: The determining the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power includes: When the target power consumption is greater than the first remaining power, the difference between the target power consumption and the first remaining power is determined as the power to be replenished of the accessory; When the target power consumption is less than or equal to the first remaining power, it is determined that the amount of power to be replenished of the accessory is zero.

6. The accessory charging method according to claim 1, characterized in that: The charging of the accessory according to the amount of power to be replenished and the second remaining power of the smart watch includes: When the second remaining power of the smart watch is greater than or equal to the first preset power, charging the accessory according to the power to be replenished; When the second remaining power of the smart watch is less than the first preset power, charging of the accessory is prohibited.

7. The accessory charging method according to claim 1, characterized in that: The charging of the accessory according to the amount of power to be replenished and the second remaining power of the smart watch includes: When the ratio of the amount of power to be replenished to the second remaining power of the smart watch is less than a preset ratio, charging the accessory according to the amount of power to be replenished; When the ratio of the power to be replenished to the second remaining power of the smart watch is greater than or equal to a preset ratio, charging of the accessory is prohibited.

8. An accessory charging device, characterized in that: Applied to a smart watch, the smart watch is provided with an interface for connecting accessories, and the accessory charging device comprises: A data reading module is configured to read a first remaining power and a historical power consumption record of the accessory from the accessory when detecting that the interface is connected to the accessory; a power determination module, configured to determine a target power consumption required for the accessory for this use according to the historical power consumption record, and determine the amount of power to be replenished of the accessory according to the target power consumption and the first remaining power; The accessory charging module is configured to charge the accessory according to the amount of power to be replenished and the second remaining power of the smart watch.

9. An accessory charging device, characterized in that: include: one or more processors; A memory storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the accessory charging method as described in any one of claims 1-7.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the accessory charging method as described in any one of claims 1-7.