Charging method, device, terminal equipment and storage medium
The charging strategy is determined through sensor detection data and the charging current of the terminal device is dynamically adjusted, which solves the problem of high power consumption caused by the fixed charging method of the terminal device and improves the user experience and the flexibility of the charging process.
Patent Information
- Application Number
- CN202210137746.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-02-15
AI Technical Summary
The charging method of terminal equipment is fixed and cannot be dynamically adjusted according to different usage scenarios, resulting in high power consumption and affecting user experience.
Determine the target charging strategy through sensor detection data, adjust the charging current, and adopt the first charging strategy (charging current is not greater than the preset current threshold) or the second charging strategy (charging current is greater than the preset current threshold) to dynamically adjust the power of the charging process. Consumption.
It achieves dynamic adjustment of charging power consumption according to different scenarios, improves user experience, makes the charging process more flexible and intelligent, and avoids the impact on other high-power-consuming operations of users.
Smart Images

Figure CN114336895B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminals, and in particular to a charging method, device, terminal equipment and storage medium. Background Art
[0002] With the development of technology, terminal devices such as laptops are becoming more and more widely used in work and life.
[0003] In the related art, when charging is involved, the charging method of the terminal device is carried out according to the set process, and the power consumption required during the charging process is relatively large. Users may use the terminal device in a variety of scenarios, and using this charging method in different scenarios may affect the user experience. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a charging method, an apparatus, a terminal device and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a charging method is proposed, which is applied to a terminal device. The method includes:
[0006] Determine a target charging strategy according to detection data of a sensor in a terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a preset current threshold, and the charging current of the second charging strategy is greater than a preset current threshold; the detection data is used to characterize whether a target object exists within the collection range of the sensor;
[0007] The target charging strategy is adopted for charging.
[0008] In some embodiments, determining the target charging strategy according to the detection data of the sensor in the terminal device includes:
[0009] In response to receiving an interrupt signal sent by the sensor, detection data of the sensor is acquired; when the detection data indicates that a target object exists within a collection range of the sensor, the target charging strategy is determined to be the first charging strategy.
[0010] In some embodiments, the charging using the target charging strategy includes:
[0011] Read the current usage frequency of the input module;
[0012] Determining a target charging current under the first charging strategy according to the current usage frequency;
[0013] The battery is charged with the target charging current.
[0014] In some embodiments, determining the target charging current under the first charging strategy according to the current usage frequency includes:
[0015] In response to the usage frequency being greater than a frequency threshold, the target charging current is determined to be: a minimum value among a plurality of charging currents included in the first charging strategy.
[0016] In some embodiments, determining the target charging current under the first charging strategy according to the current usage frequency includes:
[0017] According to the current usage frequency and pre-stored configuration information, a target charging current corresponding to the current usage frequency is determined; wherein the configuration information includes a corresponding relationship between the usage frequency and the charging current under the first charging strategy.
[0018] In some embodiments, charging with the target charging current includes:
[0019] The pulse width of a preset switch tube in the charging circuit is controlled to be not greater than the preset pulse width, and / or the conduction frequency of the preset switch tube is controlled to be not greater than the preset frequency, so as to output the target charging current.
[0020] In some embodiments, determining the target charging strategy according to the detection data of the sensor in the terminal device includes:
[0021] When the detection data indicates that there is no target object within the acquisition range of the sensor, the target charging strategy is determined to be the second charging strategy.
[0022] In some embodiments, the charging using the target charging strategy includes:
[0023] The target charging strategy is used to charge a battery of a terminal device, or the target charging strategy is used to charge an external device.
[0024] According to a second aspect of an embodiment of the present disclosure, a terminal device is provided, including:
[0025] A sensor is used to collect detection data, wherein the detection data is used to indicate whether a target object exists within the collection range of the sensor;
[0026] A control system connected to the sensor, and configured to determine a target charging strategy according to detection data of the sensor in the terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a preset current threshold, and the charging current of the second charging strategy is greater than the preset current threshold;
[0027] A charging management module and a battery, wherein the control system is connected to the charging management module and the battery respectively, and the charging management module is connected to the battery;
[0028] Wherein, the control system is further used to control the charging management module to adopt the target charging strategy to charge the battery, or to adopt the target charging strategy to charge an external device.
[0029] In some embodiments, the control system includes: a platform control center, an embedded controller, and a power transmission controller;
[0030] The platform control center is respectively connected to: the sensor, the embedded controller and the power transmission controller; the platform control center is used to: obtain the detection data of the sensor when receiving the interrupt signal sent by the sensor;
[0031] The embedded controller is respectively connected to: the platform control center, the power transmission controller, the charging management module and the battery; the embedded controller is used to: determine the target charging strategy according to the detection data, and to charge the battery by adopting the target charging strategy through the charging management module;
[0032] The power transmission controller is respectively connected to: the platform control center and the embedded controller; the power transmission controller is used to: adopt the target charging strategy to charge the external device.
[0033] According to a third aspect of an embodiment of the present disclosure, a charging device is provided, which is applied to a terminal device, and the device includes:
[0034] A determination module, configured to determine a target charging strategy according to detection data of a sensor in a terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a current threshold, and the charging current of the second charging strategy is greater than the current threshold; the detection data is used to characterize whether a target object exists within the acquisition range of the sensor;
[0035] A charging module is used to charge using the target charging strategy.
[0036] In some embodiments, the determining module is used to:
[0037] In response to receiving an interrupt signal sent by the sensor, detection data of the sensor is acquired; when the detection data indicates that a target object exists within a collection range of the sensor, the target charging strategy is determined to be the first charging strategy.
[0038] In some embodiments, the charging module is used to:
[0039] Read the current usage frequency of the input module;
[0040] Determining a target charging current under the first charging strategy according to the current usage frequency;
[0041] The battery is charged with the target charging current.
[0042] In some embodiments, the charging module is used to:
[0043] In response to the usage frequency being greater than a frequency threshold, the target charging current is determined to be: a minimum value among a plurality of charging currents included in the first charging strategy.
[0044] In some embodiments, the charging module is used to:
[0045] According to the current usage frequency and pre-stored configuration information, a target charging current corresponding to the current usage frequency is determined; wherein the configuration information includes a corresponding relationship between the usage frequency and the charging current under the first charging strategy.
[0046] In some embodiments, the charging module is further used to:
[0047] The pulse width of a preset switch tube in the charging circuit is controlled to be not greater than the preset pulse width, and / or the conduction frequency of the preset switch tube is controlled to be not greater than the preset frequency, so as to output the target charging current.
[0048] In some embodiments, the determining module is further configured to:
[0049] When the detection data of the sensor indicates that there is no target object within the collection range of the sensor, the target charging strategy is determined to be the second charging strategy.
[0050] According to a fourth aspect of an embodiment of the present disclosure, a terminal device is provided, including:
[0051] processor;
[0052] a memory for storing executable instructions for the processor;
[0053] Wherein, the processor is configured to execute the charging method as described in any one of the above items.
[0054] According to a fifth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is proposed. When instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute a charging method as described in any one of the above items.
[0055] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0056] In the method disclosed in the present invention, the target charging strategy is dynamically adjusted according to whether there is a target object near the terminal device, and the power consumption of the charging process is adjusted by adjusting the charging current. The charging method in this embodiment is more flexible and intelligent, and can dynamically adjust the power consumption of the charging process in combination with different charging scenarios, without affecting the performance or efficiency of the user when performing other high-power consumption operations, thereby improving the user experience.
[0057] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0059] Figure 1 is a flow chart of a method according to an exemplary embodiment.
[0060] Figure 2 is a flow chart of a method according to an exemplary embodiment.
[0061] Figure 3 is a flow chart of a method according to an exemplary embodiment.
[0062] Figure 4 The diagram is a schematic diagram of the architecture of a terminal device according to an exemplary embodiment.
[0063] Figure 5 The figure is a schematic diagram of a charging circuit of a terminal device according to an exemplary embodiment.
[0064] Figure 6 It is a block diagram of a device according to an exemplary embodiment.
[0065] Figure 7 It is a block diagram of a terminal device according to an exemplary embodiment. DETAILED DESCRIPTION
[0066] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0067] In the related art, the charging process of a terminal device such as a laptop computer generally includes the following steps: when the laptop computer's control system learns that the battery needs to be charged, it can control the battery to start charging with an initial current (such as 2A). The battery voltage continues to increase as the charging process progresses, and the charging current is reduced when the voltage increases to a set value.
[0068] In the related art, the entire charging process of a laptop consumes a lot of power, and the charging scheme is relatively fixed. When a user uses the laptop while charging (for work or entertainment), work or entertainment also requires a lot of power consumption. If the power consumption during the charging process cannot be reduced, it will greatly affect the performance or efficiency of the user's work or entertainment, thus seriously affecting the user experience.
[0069] To solve the problems in the related art, the embodiment of the present disclosure proposes a charging method, which is applied to a terminal device, and the method includes: determining a target charging strategy according to the detection data of a sensor in the terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a preset current threshold, and the charging current of the second charging strategy is greater than the preset current threshold; the detection data is used to characterize: whether there is a target object within the acquisition range of the sensor; and charging is performed using the target charging strategy. In the method disclosed in the present disclosure, the target charging strategy is dynamically adjusted according to whether there is a target object near the terminal device, and the power consumption of the charging process is adjusted by adjusting the charging current. The charging method in this embodiment is more flexible and intelligent, and can dynamically adjust the power consumption occupied by the charging process in combination with different charging scenarios, without affecting the performance or efficiency of the user when performing other high-power consumption operations, thereby improving the user experience.
[0070] In an exemplary embodiment, the charging method of this embodiment is applied to a terminal device, wherein the terminal device may be an electronic device such as a laptop computer, a tablet computer, or a vehicle-mounted device.
[0071] like Figure 1 As shown, the method in this embodiment may include the following steps:
[0072] S110: Determine a target charging strategy based on detection data from sensors in the terminal device.
[0073] S120: Charging is performed using a target charging strategy.
[0074] Among them, in step S110, the target charging strategy is the first charging strategy or the second charging strategy, the charging current of the first charging strategy is not greater than the preset current threshold, and the charging current of the second charging strategy is greater than the preset current threshold; the detection data is used to characterize: whether there is a target object within the collection range of the sensor.
[0075] In this step, the preset current threshold may be less than the initial current in the related art, for example, it may be set to 1A. The target object may refer to a person. The sensor may be an infrared sensor or an imaging sensor. When the terminal device is turned on, the sensor may collect data in real time or at preset time intervals.
[0076] In this embodiment, the sensor uses a time of flight (TOF) sensor. For example, the front camera of a terminal device such as a laptop is set as a TOF camera, or a TOF camera is set on the frame of the terminal device. The TOF sensor can collect depth data of different feature points of the target object, so as to obtain a feature image of the target object, such as obtaining a facial feature image of the user. It can be understood that the working principle of the TOF sensor is, for example, to irradiate the target object with a laser, then use a scanner to measure the reflected light corresponding to the laser irradiated target object, calculate the distance traveled by the light in combination with the speed of light, and use the difference in the time and wavelength of the laser return to determine the position of each facial feature point, and draw a facial feature image.
[0077] In this step, different detection data of the sensor can indicate whether there is a target object within the sensor's acquisition range, that is, whether there is a target object in front of the display screen of the terminal device. On this basis, the control system of the terminal device can determine a suitable target charging strategy.
[0078] In one example, when the detection data indicates that there is a target object within the collection range of the sensor, the charging scenario may be: the target object is using the terminal device. In this example, in order to ensure the experience of the target object during use, the control system can control the reduction of power consumption during charging and determine the target charging strategy as: the first charging strategy.
[0079] In another example, when the detection data indicates that there is no target object within the collection range of the sensor, the charging scenario may be: the target object does not use the terminal device. In this example, the control system can control the charging process to proceed normally and determine the target charging strategy to be: the second charging strategy.
[0080] In step S120 , in combination with the target charging strategy determined in step S110 , the control system adopts the determined target charging strategy for charging.
[0081] In this step, when the first charging strategy is used for charging, the charging current during the charging process is small, which can effectively reduce the power consumption during the charging process and will not affect other high-power consumption operations during the use of the terminal device by the target object, which is conducive to improving the user experience. When the second charging strategy is used for charging, the charging current during the charging process is large, and efficient and fast charging is achieved without affecting the user experience.
[0082] The charging process of this step includes two examples: using the target charging strategy to charge the battery of the terminal device, or the terminal device using the target charging strategy to charge the external device. For ease of description, the following embodiment is described by taking: charging the battery as an example.
[0083] In this embodiment, the charging strategy is dynamically adjusted in different scenarios and the charging current is adjusted in combination with the detection data of the sensor, so as to realize intelligent charging management, make the charging process more flexible, and effectively improve the user experience.
[0084] In an exemplary embodiment, Figure 2 As shown, the method in this embodiment may include the following steps:
[0085] S210, in response to receiving an interrupt signal sent by the sensor, acquiring detection data of the sensor; when the detection data indicates that a target object exists within a collection range of the sensor, determining that the target charging strategy is the first charging strategy.
[0086] S220: Charging is performed using a target charging strategy.
[0087] Among them, in step S210, the sensor is used to: when the target object is collected, send an interrupt signal (INT#) to the control system of the terminal device; at this time, the control system can obtain detection data representing the presence of the target object within the collection range of the sensor. In this case, the control system determines that the target charging strategy is the first charging strategy.
[0088] In this step, when the sensor detects the presence of a target object within the collection range during data collection, it will report to the control system, that is, send an interrupt signal to the control system. The control system will only obtain the sensor's detection data at this time after receiving the interrupt signal sent by the sensor. If no interrupt signal is received, the control system may not obtain the sensor's detection data.
[0089] Combination Figures 4 to 5 As shown, in this embodiment, the control system (SYS) 10 includes: a platform controller hub (PCH) 101, an embedded controller (EC) 102, and a power delivery controller (PD) 103. The embedded controller 102 can charge the battery 40 through the charging management module 30, and the power delivery controller 103 can control the charging of the external device 50. The dotted boxes shown in the figure represent specific connection interfaces between different structures.
[0090] In this step, the TOF sensor 20 is connected to the platform control center 101. The TOF sensor 20 sends an interrupt signal to the platform control center 101, and after receiving the interrupt signal, the platform control center 101 reads the target detection data of the TOF sensor 20 through the internal integrated circuit bus (I2C).
[0091] Based on the architecture of the control system 10, determining the target charging strategy according to the detection data in this step may include the following two examples:
[0092] In one example, according to the interrupt signal of the sensor, after obtaining the detection data, the control system 10 can determine that the target charging strategy is the first charging strategy.
[0093] In this example, combined Figure 4 As shown, after reading the detection data, the platform control center 101 in the control system 10 can report to the embedded controller 102 of the control system 10 through the enhanced serial peripheral interface (Enhance Serial Peripheral Interface, eSPI). The embedded controller 102 learns that there is a target object in front of the display screen of the current terminal device, and can determine the first charging strategy. And the determined first charging strategy is communicated with the charging management module (Charge) 30 through the system management bus (SMBUS).
[0094] In another example, after obtaining the detection data, the control system 10 may further verify the detection data.
[0095] In this example, the terminal device may pre-store reference feature data (such as a reference facial image) of a target object, such as the owner of the terminal device. The verification condition is set to further verify the identity of the target object, such as being set to be the same as the reference feature data (such as a reference facial image). Figure 4 As shown, after reading the detection data, the platform control center 101 in the control system 10 can analyze and process the detection data to further determine whether the feature data (such as facial feature image) in the detection data is the same as the reference feature data (such as reference facial image).
[0096] If they are the same, the platform control center 101 can inform the embedded controller 102 of the control system 10 of the result signal that the set target object exists through the enhanced serial peripheral interface (Enhance Serial Peripheral Interface, eSPI). The embedded controller 102 learns that the set target object exists in front of the display screen of the current terminal device, and can determine the first charging strategy. The determined first charging strategy is communicated to the charging management module (Charge) 30 through the system management bus (SMBUS).
[0097] If they are not the same, the embedded controller 102 may still determine the first charging strategy, but the charging current under the first charging strategy may be greater than the previous example. In other examples, when they are not the same, the embedded controller 102 may also determine the second charging strategy, thereby effectively avoiding the phenomenon that the terminal device mistakenly triggers the intelligent charging management due to other people passing by the terminal device, which is conducive to maintaining the charging rate.
[0098] It is understandable that before the embedded controller 102 communicates with the charging management module 30 about the charging strategy, it can also first determine whether the battery 40 needs to be charged by communicating with the charging management module 30. In this embodiment, it is performed in the scenario where the battery 40 needs to be charged. Among them, the charging management module 30 can be connected to the battery 40 and the AC end (charger end) through the induction signal line, and whether the battery 40 needs to be charged is known according to the detection signal of the induction signal line.
[0099] In step S220, after determining that the target charging strategy is the first charging strategy in combination with step S210, charging can be performed using the charging current under the first charging strategy. The charging current under the first charging strategy is no greater than a preset current threshold (such as 1A). For example, the first charging strategy includes the following charging currents: 1A, 0.5A, 0.2A or 0.1A.
[0100] In one example, in step S220 , charging can be performed with a charging current of 1A, 0.5A, 0.2A or 0.1A.
[0101] In another example, step S220 may include the following steps:
[0102] S2201. Read the current usage frequency of the input module.
[0103] In this step, the input module refers to, for example, a keyboard of a terminal device. Figure 4 As shown, the embedded controller 102 of the control system 10 can read the usage frequency of the keyboard, that is, the frequency of the user tapping the keyboard. Combined with the usage frequency, it can be known that the target object is not only in front of the display screen of the terminal device, but may also use the terminal device for different degrees of work or entertainment.
[0104] S2202: Determine a target charging current under a first charging strategy according to a current usage frequency.
[0105] In this step, the frequency threshold or configuration information for work or entertainment may be pre-set and stored in the terminal device.
[0106] For example, this step includes: S10, in response to the usage frequency being greater than the frequency threshold, determining the target charging current as: the minimum value of multiple charging currents included in the first charging strategy. In this step S10, when the usage frequency is greater than the frequency threshold, it indicates that the power consumption required for the target object to work or entertain is large. At this time, the control system can control the power consumption occupied by the charging process to be reduced to the minimum, and use the minimum value of multiple charging currents as the target charging current. For example, the minimum value 0.1A among multiple charging currents 1A, 0.5A, 0.2A and 0.1A is used as the target charging current.
[0107] For another example, this step includes: S20, determining the target charging current corresponding to the current usage frequency according to the current usage frequency and the pre-stored configuration information. The configuration information includes the corresponding relationship between the usage frequency and the charging current under the first charging strategy. In this step S20, each usage frequency can be configured with a corresponding charging current, and the target charging current corresponding to the current usage frequency is determined according to the configuration information query.
[0108] S2203: Charge with target charging current.
[0109] In this step, after determining the target charging current in step S2202 , the control system 10 may communicate with the charging management module 30 , and provide the required target charging current to the battery 40 through the charging management module 30 .
[0110] This step may include: S30, controlling the pulse width of the preset switch tube in the charging circuit to be not greater than the preset pulse width, and / or the conduction frequency of the preset switch tube to be not greater than the preset frequency, so as to output the target charging current. Figure 4 As shown Figure 5 In the charging circuit diagram shown, the preset switch tubes refer to two field effect transistors (such as MOS tubes) Q1 and Q2. When Q1 and Q2 are turned on, the charger can charge the battery 40 through the charging management module 30. Pulse width refers to the pulse width, which is related to the signal period and the duty cycle of the switch tube.
[0111] In this step, the control system 10 uses the target charging current to charge the battery 40 through the charging management module 30. Under the instruction of the control system 10, the charging management module 30 reduces the charging current to the target charging current, such as 0.1 A, by reducing the pulse width or conduction frequency of the preset switch tube. Therefore, in this charging scenario, the power consumption occupied by the charging process is very small, and the user's work or entertainment can occupy a larger power consumption, which is conducive to ensuring the user's work efficiency or entertainment performance.
[0112] Combination Figure 5As shown, when charging the battery 40, the switch tubes Q4 and Q5 are also turned on, and the AC power transmitted by the charger can also power the control system 10. When only the switch tube Q3 is turned on, the control system 10 can be powered by the battery 40.
[0113] In an exemplary embodiment, Figure 3 As shown, the method of this embodiment may also include the following steps:
[0114] S310: When the detection data of the sensor indicates that there is no target object within the collection range of the sensor, determine that the target charging strategy is a second charging strategy.
[0115] S320: Charging is performed using a target charging strategy.
[0116] In step S310, the sensor sends an interrupt signal only when it collects the target object. When the control system does not receive the interrupt signal from the sensor, it indicates that there is no target object within the sensor collection range. The control system can determine that the target charging strategy is the second charging strategy.
[0117] In step S320, Figures 4 to 5 As shown, the control system 10 can output a larger charging current (such as 2A) or use a linearly changing charging current to the battery 40 through the charging management module 30. Therefore, in this embodiment, the charging efficiency can be guaranteed and the charging time can be reduced.
[0118] It can be understood that, similar to the principle of charging the battery 40, the charging process can also be that the terminal device charges the external device 50 through the power transmission controller 103 in the control system 10. The charging current control when charging the external device 50 still meets the regulation strategy of the above embodiment.
[0119] In an exemplary embodiment, the present disclosure also provides a terminal device for executing the method involved in the above embodiment. Figures 4 to 5 As shown, it includes: a sensor 20, a control system 10, a charging management module 30 and a battery 40.
[0120] The sensor 20 is used to collect detection data, and the detection data is used to characterize whether there is a target object within the collection range of the sensor. The control system 10 is connected to the sensor 20, and is used to determine the target charging strategy according to the detection data of the sensor 20 in the terminal device, wherein the target charging strategy is the first charging strategy or the second charging strategy, the charging current of the first charging strategy is not greater than the preset current threshold, and the charging current of the second charging method is greater than the preset current threshold. The control system 10 is connected to the charging management module 30 and the battery 40 respectively, and the charging management module 30 is connected to the battery 40.
[0121] The control system 10 is further used to control the charging management module 30 to adopt a target charging strategy to charge the battery 40 , or to adopt a target charging strategy to charge the external device 50 .
[0122] In this embodiment, the sensor 20 can be a TOF sensor, and the various structures are connected through corresponding connection interfaces (dashed boxes) in the diagram. The role of each structure in the implementation of the method can also be found in the embodiments of the aforementioned method, which will not be repeated here.
[0123] In an exemplary embodiment, Figures 4 to 5 As shown, the control system 10 includes: a platform control center 101 , an embedded controller 102 and a power transmission controller 103 .
[0124] The platform control center 101 is respectively connected to: the sensor 20 , the embedded controller 102 and the power transmission controller 103 ; the platform control center 101 is used to: obtain the target detection data of the sensor 20 when receiving the interrupt signal sent by the sensor 20 .
[0125] The embedded controller 102 is respectively connected to: the platform control center 101, the power transmission controller 103, the charging management module 30 and the battery 40; the embedded controller 102 is used to: determine the target charging strategy according to the detection data, and also to charge the battery 40 by adopting the target charging strategy through the charging management module 30;
[0126] The power transmission controller 103 is connected to the platform control center 101 and the embedded controller 102 respectively; the power transmission controller 103 is used to charge the external device 50 using a target charging strategy.
[0127] In this embodiment, the role of each structure in the implementation of the method can also be found in the embodiment of the aforementioned method, which will not be repeated here.
[0128] In an exemplary embodiment, the present disclosure also provides a charging device, which is applied to a terminal device. The device of this embodiment is used to implement the above Figures 1 to 3 The methods involved. Figure 6 As shown, the device in this embodiment includes: a determination module 110 and a charging module 120. The determination module 110 is used to determine the target charging strategy according to the detection data of the sensor in the terminal device; wherein the target charging strategy is the first charging strategy or the second charging strategy, the charging current of the first charging strategy is not greater than the preset current threshold, and the charging current of the second charging strategy is greater than the preset current threshold; the detection data is used to characterize whether there is a target object within the acquisition range of the sensor. The charging module 120 is used to charge using the target charging strategy.
[0129] In an exemplary embodiment, still referring to Figure 6As shown, in this embodiment, the determination module 110 is used to: obtain the detection data of the sensor in response to receiving an interrupt signal sent by the sensor; when the detection data indicates that there is a target object within the collection range of the sensor, determine that the target charging strategy is the first charging strategy.
[0130] In this embodiment, the charging module 120 is used to: read the current usage frequency of the input module; determine the target charging current under the first charging strategy according to the current usage frequency; and charge with the target charging current.
[0131] In this embodiment, the charging module 120 is used to: in response to the usage frequency being greater than the frequency threshold, determine the target charging current as: the minimum value of multiple charging currents included in the first charging strategy.
[0132] In this embodiment, the charging module 120 is used to determine the target charging current corresponding to the current usage frequency according to the current usage frequency and pre-stored configuration information; wherein the configuration information includes the corresponding relationship between the usage frequency and the charging current under the first charging strategy.
[0133] In this embodiment, the charging module 120 is further used to: control the pulse width of the preset switch tube in the charging circuit to be not greater than the preset pulse width, and / or the conduction frequency of the preset switch tube to be not greater than the preset frequency, so as to output the target charging current.
[0134] In an exemplary embodiment, still referring to Figure 6 As shown, in this embodiment, the determination module 110 is further used to: determine that the target charging strategy is the second charging strategy when the detection data of the sensor indicates that there is no target object within the collection range of the sensor.
[0135] like Figure 7 The present disclosure also provides a terminal device, for example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0136] Device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0137] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0138] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0139] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.
[0140] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0141] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0142] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0143] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0144] The communication component 516 is configured to facilitate the communication of wired or wireless strategies between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0145] In an exemplary embodiment, the device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.
[0146] In another exemplary embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of a device 500 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to perform the above method.
[0147] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0148] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A charging method, characterized in that: Applied to terminal equipment, the method includes: Determine a target charging strategy according to detection data of a sensor in a terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a preset current threshold, and the charging current of the second charging strategy is greater than a preset current threshold; the detection data is used to characterize whether a target object exists within the collection range of the sensor; Charging using the target charging strategy; Determining the target charging strategy according to the detection data of the sensor in the terminal device includes: In response to receiving an interrupt signal sent by the sensor, acquiring detection data of the sensor; if the detection data indicates that a target object exists within a collection range of the sensor, determining that the target charging strategy is the first charging strategy; The control system of the terminal device acquires the detection data of the sensor after receiving the interrupt signal sent by the sensor; the control system of the terminal device does not acquire the detection data of the sensor if it does not receive the interrupt signal sent by the sensor.
2. The method according to claim 1, characterized in that The adopting the target charging strategy to perform charging includes: Read the current usage frequency of the input module; Determining a target charging current under the first charging strategy according to the current usage frequency; The battery is charged with the target charging current.
3. The method according to claim 2, characterized in that The determining, according to the current usage frequency, a target charging current under the first charging strategy includes: In response to the usage frequency being greater than a frequency threshold, the target charging current is determined to be: a minimum value among a plurality of charging currents included in the first charging strategy.
4. The method according to claim 2, characterized in that: The determining, according to the current usage frequency, a target charging current under the first charging strategy includes: According to the current usage frequency and pre-stored configuration information, a target charging current corresponding to the current usage frequency is determined; wherein the configuration information includes a corresponding relationship between the usage frequency and the charging current under the first charging strategy.
5. The method according to claim 2, characterized in that: The charging with the target charging current includes: The pulse width of a preset switch tube in the charging circuit is controlled to be not greater than the preset pulse width, and / or the conduction frequency of the preset switch tube is controlled to be not greater than the preset frequency, so as to output the target charging current.
6. The method according to claim 1, characterized in that Determining the target charging strategy according to the detection data of the sensor in the terminal device includes: When the detection data indicates that there is no target object within the acquisition range of the sensor, the target charging strategy is determined to be the second charging strategy.
7. The method according to any one of claims 1 to 6, characterized in that: The adopting the target charging strategy to perform charging includes: The target charging strategy is used to charge a battery of a terminal device, or the target charging strategy is used to charge an external device.
8. A terminal device, characterized in that: include: A sensor is used to collect detection data, wherein the detection data is used to indicate whether a target object exists within the collection range of the sensor; A control system connected to the sensor, and configured to determine a target charging strategy according to detection data of the sensor in the terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a preset current threshold, and the charging current of the second charging strategy is greater than the preset current threshold; A charging management module and a battery, wherein the control system is connected to the charging management module and the battery respectively, and the charging management module is connected to the battery; Wherein, the control system is further used to control the charging management module to adopt the target charging strategy to charge the battery, or adopt the target charging strategy to charge an external device; The control system includes: a platform control center, an embedded controller and a power transmission controller; The platform control center is respectively connected to: the sensor, the embedded controller and the power transmission controller; the platform control center is used to: obtain the detection data of the sensor when receiving the interrupt signal sent by the sensor; The embedded controller is respectively connected to: the platform control center, the power transmission controller, the charging management module and the battery; the embedded controller is used to: determine the target charging strategy according to the detection data, and to charge the battery by adopting the target charging strategy through the charging management module; The power transmission controller is respectively connected to: the platform control center and the embedded controller; the power transmission controller is used to: use the target charging strategy to charge the external device; The control system of the terminal device acquires the detection data of the sensor after receiving the interrupt signal sent by the sensor; the control system of the terminal device does not acquire the detection data of the sensor if it does not receive the interrupt signal sent by the sensor.
9. A charging device, characterized in that: Applied to terminal equipment, the device includes: A determination module, configured to determine a target charging strategy according to detection data of a sensor in a terminal device; wherein the target charging strategy is a first charging strategy or a second charging strategy, the charging current of the first charging strategy is not greater than a preset current threshold, and the charging current of the second charging strategy is greater than a preset current threshold; the detection data is used to characterize whether a target object exists within the collection range of the sensor; A charging module, used for charging using the target charging strategy; The determination module is used to: in response to receiving an interrupt signal sent by the sensor, obtain detection data of the sensor; if the detection data indicates that there is a target object within the collection range of the sensor, determine that the target charging strategy is the first charging strategy; The control system of the terminal device acquires the detection data of the sensor after receiving the interrupt signal sent by the sensor; the control system of the terminal device does not acquire the detection data of the sensor if it does not receive the interrupt signal sent by the sensor.
10. A terminal device, characterized in that: include: processor; a memory for storing executable instructions for the processor; Wherein, the processor is configured to execute the charging method as described in any one of claims 1 to 7.
11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device is enabled to execute the charging method as described in any one of claims 1 to 7.
