Charging method and device, electronic equipment and computer readable storage medium
By detecting the user's contact information and the maintenance time of the screen-lit scene in the electronic device, and dynamically switching the charging strategy, the charging speed slows down and the safety of the device when the screen is turned off to the screen-lit is solved, and a more efficient and safe charging process is achieved.
Patent Information
- Application Number
- CN202311346759.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
When an electronic device switches from a screen-off scene to a screen-on scene, the charging speed slows down, and the repeated switching of the charging current leads to a reduction in charging safety.
A charging method is provided to determine whether to switch the charging strategy by detecting the user's contact information and the maintenance time of the bright screen scene. When the device is in a screen-off scenario, a first charging strategy with high charging current is adopted; when switching to a screen-on scene and meeting a specific condition, a second charging strategy with low charging current is adopted.
It effectively reduces the problems of slowing charging speed and repeated switching of charging current due to short-term bright screen scenes, and improves charging safety and user experience.
Smart Images

Figure CN119853199A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer communications, and in particular to a charging method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] In recent years, fast charging technology for electronic devices has developed rapidly and has been widely popularized, and the control of charging strategies has become more sophisticated and reasonable.
[0003] However, in actual use, switching from the screen-off charging strategy to the screen-on charging strategy will slow down the charging speed, and the repeated switching of the charging current will also reduce the charging safety. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a charging method and device, an electronic device, and a computer-readable storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a charging method, including:
[0006] When the electronic device is in a screen-off scenario, charging the electronic device using a first charging strategy;
[0007] When the electronic device switches from the screen-off scene to the screen-on scene, it is determined whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
[0008] In some embodiments, the determining whether to switch the first charging strategy to the second charging strategy based on the user contact information and the duration of the screen-on scene includes:
[0009] Acquiring user contact information of the electronic device;
[0010] When the user contact information indicates that the electronic device has not had the user touch the screen and press any key, determining to maintain the first charging strategy; and / or,
[0011] When the user contact information indicates that a user has touched the screen or pressed a key of the electronic device, whether to switch the first charging strategy to the second charging strategy is determined based on the duration of the screen-on scene.
[0012] In some embodiments, the determining whether to switch the first charging strategy to the second charging strategy based on the duration of the screen-on scene includes:
[0013] Performing a delay detection; the delay detection includes detecting whether the electronic device is in a screen-off scene after a first preset time from when the electronic device starts to be in a screen-on scene;
[0014] When the electronic device is in the screen-off scene after a first preset time from when the electronic device starts to be in the screen-on scene, determining to maintain the first charging strategy;
[0015] When the electronic device is in the screen-on scene after a first preset time from when the electronic device starts to be in the screen-on scene, it is determined to switch the first charging strategy to the second charging strategy.
[0016] In some embodiments, the first preset time ranges from 30 seconds to 2 minutes.
[0017] In some embodiments, the method further comprises:
[0018] When the electronic device switches from the screen-off scene to the screen-on scene, determining whether the cause of triggering the scene switching is a message notification;
[0019] When it is determined that the cause of triggering the scene switching is a message notification, acquiring the user contact information of the electronic device;
[0020] When it is determined that the cause of triggering the scene switching is not the message notification, the delay detection is performed.
[0021] In some embodiments, the screen-on scene includes a plurality of first sub-screen-on scenes, each of which is associated with a user usage frequency; and performing delay detection further includes:
[0022] Based on the user usage frequency corresponding to the first sub-screen light-up scene, the first preset time is obtained; when the user usage frequency corresponding to the first sub-screen light-up scene is in the first frequency interval, the first preset time is the first duration; when the user usage frequency corresponding to the first sub-screen light-up scene is in the second frequency interval, the first preset time is the second duration; the minimum frequency of the first frequency interval is greater than the maximum frequency of the second frequency interval; the first duration is greater than the second duration.
[0023] In some embodiments, the screen-on scene includes a second sub-screen-on scene and a third sub-screen-on scene, the power consumption of the third sub-screen-on scene is higher than the power consumption of the second sub-screen-on scene; the second charging strategy includes a first sub-charging strategy and a second sub-charging strategy, the charging current of the first sub-charging strategy is greater than the charging current of the second sub-charging strategy, and both are less than the charging current of the first charging strategy; the method further includes:
[0024] When the electronic device is in the second sub-screen-on scenario, charging the electronic device using the first sub-charging strategy;
[0025] When the electronic device switches from the second sub-screen-on scene to the third sub-screen-on scene, it is determined whether to switch the first sub-charging strategy to the second sub-charging strategy based on the duration of the third sub-screen-on scene.
[0026] According to a second aspect of an embodiment of the present disclosure, there is provided a charging device, including:
[0027] A charging module, which uses a first charging strategy to charge the electronic device when the electronic device is in a screen-off scenario;
[0028] A determination module, when the electronic device switches from the screen-off scene to the screen-on scene, determines whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
[0029] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0030] processor;
[0031] a memory for storing processor-executable instructions;
[0032] Wherein, the processor is configured to: implement the steps in any one of the charging methods in the first aspect when executed.
[0033] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a charging device, the electronic device is enabled to perform the steps of any one of the charging methods in the first aspect.
[0034] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0035] In an embodiment of the present disclosure, when the electronic device is in a screen-off scene, a first charging strategy is adopted to charge the electronic device; when the electronic device switches from a screen-off scene to a screen-on scene, it is determined whether to switch the first charging strategy to a second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
[0036] Through the embodiments of the present disclosure, when the electronic device switches from the screen-off scene to the screen-on scene, the user contact information can be detected, and when it is determined that the user touches the screen or presses a key of the electronic device, a delayed detection is performed to determine whether to switch the first charging strategy to the second charging strategy based on the user contact information and the duration of the screen-on scene. When the scene switching is only caused by the active notification of the message, or the duration of the screen-on scene is short, the first charging strategy can be maintained, thereby effectively reducing the problems of slow charging speed due to the appearance of short-term screen-on scenes and reduced charging safety due to repeated switching of charging current.
[0037] 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
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0039] Figure 1 The process of the charging method according to an exemplary embodiment is shown as follows Figure 1 ;
[0040] Figure 2 The process of the charging method according to an exemplary embodiment is shown as follows Figure 2 ;
[0041] Figure 3 The process of the charging method according to an exemplary embodiment is shown as follows Figure 3 ;
[0042] Figure 4 The process of the charging method according to an exemplary embodiment is shown as follows Figure 4 ;
[0043] Figure 5 is a block diagram of a charging device according to an exemplary embodiment;
[0044] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0045] 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 disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0046] Figure 1 The process of the charging method according to an exemplary embodiment is shown as follows Figure 1 ,like Figure 1 As shown, the method may include the following steps:
[0047] Step 101, when the electronic device is in a screen-off scenario, charging the electronic device using a first charging strategy;
[0048] Step 102, when the electronic device switches from the screen-off scene to the screen-on scene, determine whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
[0049] It should be noted that the charging method proposed in the present disclosure can be applied to electronic devices, where the electronic devices may include: terminal devices, such as mobile terminals or fixed terminals. Among them, mobile terminals may include: mobile phones, tablet computers, laptop computers, wearable electronic devices and other devices. Fixed terminals may include: desktop computers, smart TVs, vehicle-mounted devices, etc.
[0050] In the disclosed embodiment, the first charging strategy focuses on the charging speed, and the second charging strategy focuses on the user experience. Specifically, the charging current of the first charging strategy is greater than the charging current of the second charging strategy. When the electronic device is charged using the first charging strategy, it is considered that the user is not using the electronic device at this time. Even if the temperature rises due to the large charging current, the charging current only needs to be slightly reduced to ensure that the charging speed of the electronic device remains at a high level; when the electronic device is charged using the second charging strategy, it is considered that the user is using the electronic device at this time. If the temperature of the electronic device rises, the charging current needs to be significantly reduced to lower the temperature, thereby improving the user's charging temperature experience.
[0051] In the embodiments of the present disclosure, when the electronic device is in the screen-off scene, the electronic device can be charged by the first charging strategy to keep the charging speed at a high level, and when the electronic device switches from the screen-off scene to the screen-on scene, it is determined whether to switch the first charging strategy to the second charging strategy based on the user contact information and the duration of the screen-on scene. It can be understood that if the first charging strategy is switched to the second charging strategy as long as the screen-off scene is switched to the screen-on scene, some screen-on scenes that are not generated by user use or screen-on scenes that are generated by user use and have a shorter duration will also cause the switching of the charging strategy, thereby reducing the charging speed. In addition, repeated switching of the charging current may reduce the charging safety. Through the charging method provided in the embodiments of the present disclosure, the switching condition of the charging strategy is not only the switching of the scene, so that the charging strategy can be controlled more finely and reasonably to improve the user's charging experience.
[0052] Below, the charging method provided by the present disclosure will be described in detail with reference to specific embodiments.
[0053] Figure 2 The process of a charging method according to an exemplary embodiment is shown as follows Figure 2 ,like Figure 2 As shown, when the electronic device switches from a screen-off scene to a screen-on scene, the charging method may include the following steps:
[0054] Step 201, determine whether the cause of triggering scene switching is message notification; if it is determined that the cause of triggering scene switching is message notification, proceed to step 202; if it is determined that the cause of triggering scene switching is not message notification, proceed to step 203.
[0055] Step 202, obtain user contact information of the electronic device and determine whether the user has touched the screen or pressed a key of the electronic device; if the user contact information indicates that the user has not touched the screen or pressed a key of the electronic device, proceed to step 204; if the user contact information indicates that the user has touched the screen or pressed a key of the electronic device, proceed to step 203.
[0056] In some embodiments, when it is determined that the triggering cause of the electronic device switching from the screen-off scene to the screen-on scene is a message notification, the user contact information of the electronic device can be further obtained. Specifically, it can be determined whether the electronic device has been touched by the user based on a sensor in the electronic device that can indicate the user contact situation. For example, it can be determined whether the electronic device has been touched by the user through a capacitive touch sensor or a resistive touch sensor set at the screen of the electronic device, and it can also be determined whether the electronic device has been pressed by the user through a pressure sensor set at the button position of the electronic device.
[0057] In some embodiments, when the user contact information indicates that the electronic device has not had the user touch the screen or press any key, it can be determined that the electronic device switched from the screen-off scene to the screen-on scene due to the active notification of a message. At this time, the electronic device is not in a scene where the user is using it, and therefore the first charging strategy may not be switched to the second charging strategy, and the electronic device can continue to be charged using the first charging strategy that focuses on charging speed.
[0058] In some other embodiments, step 201 can be omitted. That is, when the electronic device switches from the screen-off scene to the screen-on scene, the step of determining whether the cause of triggering the scene switching is a message notification can be omitted, and the process goes directly to step 202 to determine whether the user touches the screen and presses a key on the electronic device.
[0059] In some embodiments, when the user contact information indicates that the user has touched the screen and pressed a key of the electronic device, and the electronic device is in a scenario where the user is using it, it is necessary to further determine whether to switch the first charging strategy to the second charging strategy based on the duration of the screen-on scene.
[0060] Step 203, performing delayed detection, including detecting whether the electronic device is in the screen-off scene after a first preset time from the time the electronic device starts to be in the screen-on scene; if the electronic device is in the screen-off scene after the first preset time from the time the electronic device starts to be in the screen-on scene, proceeding to step 204; if the electronic device is in the screen-on scene after the first preset time from the time the electronic device starts to be in the screen-on scene, proceeding to step 205.
[0061] In some embodiments, the first preset time for delay detection can be set according to specific needs.
[0062] In some specific examples, the first preset time ranges from 30 seconds to 2 minutes.
[0063] In some embodiments, when the electronic device has switched to the screen-off scene after the first preset time, it indicates that the duration of the screen-on scene is less than the first preset time, and the screen-on scene can be considered to be a short-term screen-on scene. In this case, since the screen-on scene ends after a relatively short time, there is no need to switch the first charging strategy to the second charging strategy, so as to reduce the problems of slow charging speed and reduced charging safety caused by repeated switching of the charging current due to the appearance of the short-term screen-on scene. When the electronic device is still in the screen-on scene after the first preset time, it indicates that the duration of the screen-on scene is greater than or equal to the first preset time, and the screen-on scene can be considered to be a user usage scene for a longer period of time. In this case, in order to improve the user's charging temperature experience, it is necessary to switch the first charging strategy to the second charging strategy.
[0064] In the disclosed embodiment, when the electronic device switches from the screen-off scene to the screen-on scene, the user contact information can be detected, and when it is determined that the user touches the screen or presses a key of the electronic device, a delayed detection is performed to determine whether to switch the first charging strategy to the second charging strategy based on the user contact information and the duration of the screen-on scene. When the scene switching is only caused by the active notification of the message, or the duration of the screen-on scene is short, the first charging strategy can be maintained, thereby effectively reducing the problems of slow charging speed due to the appearance of the short-term screen-on scene and reduced charging safety due to repeated switching of the charging current.
[0065] In some embodiments, the screen-on scene may include multiple first sub-screen-on scenes, and each first sub-screen-on scene is associated with a user usage frequency, and delay detection includes: obtaining a first preset time based on the user usage frequency corresponding to the first sub-screen-on scene; when the user usage frequency corresponding to the first sub-screen-on scene is in a first frequency interval, the first preset time is a first duration; when the user usage frequency corresponding to the first sub-screen-on scene is in a second frequency interval, the first preset time is a second duration; the minimum frequency of the first frequency interval is greater than the maximum frequency of the second frequency interval, and the first duration is greater than the second duration.
[0066] In an embodiment of the present disclosure, the first sub-screen-on scenes can be sorted and grouped based on the user's usage frequency. Here, the distinction between the first frequency interval and the second frequency interval is only for illustrating that for at least one first sub-screen-on scene whose user usage frequency is in a relatively higher frequency interval, the duration of its first preset time is longer than the duration of the first preset time of at least one first sub-screen-on scene whose user usage frequency is in a relatively lower frequency interval, and it does not serve as a limitation on the number of groups.
[0067] In some specific examples, the first sub-screen-on scenes are all short-term screen-on scenes, and the duration of the first sub-screen-on scenes is less than 5 minutes.
[0068] Figure 3 The process of the charging method according to an exemplary embodiment is shown as follows Figure 3 ,like Figure 3 As shown, the charging method may include the following steps:
[0069] Step 301, determine whether the cause of triggering scene switching is message notification; if it is determined that the cause of triggering scene switching is message notification, proceed to step 302; if it is determined that the cause of triggering scene switching is not message notification, proceed to step 304.
[0070] Step 302, obtain user contact information of the electronic device and determine whether the user has touched the screen or pressed a key of the electronic device; if the user contact information indicates that the user has not touched the screen or pressed a key of the electronic device, proceed to step 303; if the user contact information indicates that the user has touched the screen or pressed a key of the electronic device, proceed to step 304.
[0071] Step 304, determine whether the user usage frequency corresponding to the first sub-screen-on scene is in the first frequency interval; when the user usage frequency corresponding to the first sub-screen-on scene is in the first frequency interval, proceed to step 305, perform delayed detection, and the first preset time is the first duration, where the first duration can be 40 seconds, that is, 40 seconds after the electronic device starts to be in the screen-on scene, detect whether the electronic device is in the screen-off scene; when the user usage frequency corresponding to the first sub-screen-on scene is not in the first frequency interval, proceed to step 306.
[0072] Step 306, determine whether the user usage frequency corresponding to the first sub-screen-on scene is in the second frequency interval; when the user usage frequency corresponding to the first sub-screen-on scene is in the second frequency interval, enter step 307, perform delay detection, and the first preset time is the second duration, here, the second duration can be 35 seconds, that is, 35 seconds after the electronic device starts to be in the screen-on scene, detect whether the electronic device is in the screen-off scene; when the user usage frequency corresponding to the first sub-screen-on scene is not in the second frequency interval, enter step 308, perform delay detection, and the first preset time is 30 seconds, that is, 30 seconds after the electronic device starts to be in the screen-on scene, detect whether the electronic device is in the screen-off scene. Here, the minimum frequency of the first frequency interval is greater than the maximum frequency of the second frequency interval, and the first duration is greater than the second duration. When the user usage frequency corresponding to the first sub-screen-on scene is neither in the first frequency interval nor in the second frequency interval, the user usage frequency corresponding to the first sub-screen-on scene can be in the third frequency interval, and the maximum frequency of the third frequency interval is less than the minimum frequency of the second frequency interval.
[0073] In step 305, step 307, and step 308, when the electronic device is in the screen-off scene after the first preset time, step 303 is entered to maintain the first charging strategy; when the electronic device is in the screen-on scene after the first preset time, step 309 is entered (not shown in the figure) to switch the first charging strategy to the second charging strategy.
[0074] In the above embodiment, the plurality of first sub-screen-on scenes are divided into three groups: the first sub-screen-on scene in which the user usage frequency is in the first frequency interval, the first sub-screen-on scene in which the user usage frequency is in the second frequency interval, and the first sub-screen-on scene in which the user usage frequency is in the third frequency interval. When performing delay detection, for the first sub-screen-on scene in which the user usage frequency is in the first frequency interval, the first preset time is the longest, for example, 40 seconds; for the first sub-screen-on scene in which the user usage frequency is in the second frequency interval, the first preset time is the second longest, for example, 35 seconds; and for the first sub-screen-on scene in which the user usage frequency is in the third frequency interval, the first preset time is the shortest, for example, 30 seconds.
[0075] It should be noted that the manner of sorting and grouping the first sub-screen-on scenes and the manner of setting the first preset time in the above embodiments are only examples. In other embodiments, the first sub-screen-on scenes may be divided into two, four, five, etc. groups with different frequency intervals based on the user's usage frequency, and the difference in the first preset time between different groups may be 10 seconds or more, and the present disclosure does not impose any specific limitation on this.
[0076] In the disclosed embodiment, the delayed detection strategy can be upgraded based on the user's usage habits. For the first sub-screen-on scene with a higher frequency of use, it can be detected whether the electronic device is in the screen-off scene after a longer time, thereby further reducing the frequency of switching the first charging strategy to the second charging strategy, and reducing the problems of slower charging speed due to the occurrence of short-term screen-on scenes and reduced charging safety due to repeated switching of charging current.
[0077] In some embodiments, the screen-on scene includes a second sub-screen-on scene and a third sub-screen-on scene, the power consumption of the third sub-screen-on scene is higher than that of the second sub-screen-on scene; the second charging strategy includes a first sub-charging strategy and a second sub-charging strategy, the charging current of the first sub-charging strategy is greater than the charging current of the second sub-charging strategy, and both are less than the charging current of the first charging strategy; the charging method also includes: when the electronic device is in the second sub-screen-on scene, using the first sub-charging strategy to charge the electronic device; when the electronic device switches from the second sub-screen-on scene to the third sub-screen-on scene, determining whether to switch the first sub-charging strategy to the second sub-charging strategy based on the maintenance time of the third sub-screen-on scene.
[0078] Figure 4 The process of a charging method according to an exemplary embodiment is shown as follows Figure 4 ,like Figure 4 As shown, when the electronic device switches from the second sub-screen-on scene to the third sub-screen-on scene, the charging method may include the following steps:
[0079] Step 401, performing delayed detection, including detecting whether the electronic device is in the second sub-screen-on scene after the second preset time from the time the electronic device starts to be in the third sub-screen-on scene; when the electronic device is in the second sub-screen-on scene after the second preset time, entering step 402, maintaining the first sub-charging strategy; when the electronic device is in the third sub-screen-on scene after the second preset time, entering step 403, switching the first sub-charging strategy to the second sub-charging strategy.
[0080] In a specific example, the third sub-screen-on scene may be a game application usage scene, and the second sub-screen-on scene may be a non-game application usage scene.
[0081] In the disclosed embodiment, when the electronic device is in the screen-on scene, in order to improve the user's charging temperature experience while ensuring the charging speed, the screen-on scene can be divided into a second sub-screen-on scene and a third sub-screen-on scene based on the overall power consumption of the electronic device. When the electronic device switches from the second sub-screen-on scene to the third sub-screen-on scene, it can be determined whether to switch the first sub-charging strategy to the second sub-charging strategy based on the duration of the third sub-screen-on scene. In other words, when the electronic device switches from a low-power screen-on scene to a high-power screen-on scene, it can be determined whether to switch the high-speed charging strategy to the low-speed charging strategy based on the duration of the high-power screen-on scene. In this way, the frequency of charging strategy switching caused by the appearance of a short-term high-power screen-on scene can be reduced, thereby reducing the degree of reduction in charging speed and reducing charging safety issues caused by repeated switching of charging current.
[0082] Corresponding to the aforementioned charging method embodiment, the present disclosure also provides embodiments of a charging device and a corresponding electronic device.
[0083] Figure 5 FIG. 1 is a block diagram of a charging device according to an exemplary embodiment. Figure 5 As shown, the charging device 500 includes:
[0084] A first charging module 501, when the electronic device is in a screen-off scenario, adopts a first charging strategy to charge the electronic device;
[0085] The first determination module 502 determines whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene when the electronic device switches from the screen-off scene to the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
[0086] In some embodiments, the charging device 500 further includes:
[0087] An acquisition module, for acquiring the user contact information of the electronic device;
[0088] The first determination module 502 is configured to: when the user contact information indicates that the user has not touched the screen or pressed a key on the electronic device, determine to maintain the first charging strategy; when the user contact information indicates that the user has touched the screen or pressed a key on the electronic device, determine whether to switch the first charging strategy to the second charging strategy based on the duration of the screen-on scene.
[0089] In some embodiments, the charging device 500 further includes:
[0090] A detection module performs a delay detection; the delay detection includes detecting whether the electronic device is in a screen-off scene after a first preset time from when the electronic device starts to be in a screen-on scene;
[0091] The first determination module 502 is configured to: when the electronic device is in the screen-off scene after a first preset time from the time the electronic device starts to be in the screen-on scene, determine to maintain the first charging strategy; when the electronic device is in the screen-on scene after a first preset time from the time the electronic device starts to be in the screen-on scene, determine to switch the first charging strategy to the second charging strategy.
[0092] In some embodiments, the charging device 500 further includes:
[0093] A second determination module, when the electronic device switches from the screen-off scene to the screen-on scene, determines whether the cause of triggering the scene switching is a message notification;
[0094] The acquisition module is further configured to: acquire the user contact information of the electronic device when it is determined that the cause of triggering the scene switching is a message notification;
[0095] The detection module is further configured to: perform the delay detection when it is determined that the cause of triggering the scene switching is not the message notification.
[0096] In some embodiments, the charging device 500 further includes:
[0097] A setting module is used to set a first preset time for delay detection based on the user usage frequency of the first sub-screen-lighting scene; when the user usage frequency corresponding to the first sub-screen-lighting scene is in the first frequency range, the first preset time is the first duration; when the user usage frequency corresponding to the first sub-screen-lighting scene is in the second frequency range, the first preset time is the second duration.
[0098] In some embodiments, the charging device 500 further includes:
[0099] a second charging module, which uses the first sub-charging strategy to charge the electronic device when the electronic device is in the second sub-screen-on scenario;
[0100] The third determination module determines whether to switch the first sub-charging strategy to the second sub-charging strategy based on the duration of the third sub-screen-on scene when the electronic device switches from the second sub-screen-on scene to the third sub-screen-on scene.
[0101] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only illustrative, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution.
[0102] An embodiment of the present disclosure further provides an electronic device, which includes: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to: implement the steps in the charging method in any embodiment of the present disclosure when executed.
[0103] Figure 6 600 may include: a terminal device, for example, a mobile terminal or a fixed terminal. Among them, the mobile terminal may include: a mobile phone, a tablet computer, a laptop computer, a wearable electronic device and other devices. The fixed terminal may include: a desktop computer, a smart TV, a vehicle-mounted device, etc.
[0104] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0105] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0106] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 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.
[0107] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0108] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 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 608 includes a front camera and / or a rear camera. When the electronic device 600 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.
[0109] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0110] I / O interface 612 provides an interface between processing component 602 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.
[0111] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 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 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0112] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as Wi-Fi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 616 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 616 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.
[0113] In an exemplary embodiment, the electronic device 600 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 methods.
[0114] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of the electronic device 600 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, an optical data storage device, etc.
[0115] In some embodiments, when the instructions in the computer storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform a charging method, the method comprising:
[0116] When the electronic device is in a screen-off scenario, charging the electronic device using a first charging strategy;
[0117] When the electronic device switches from the screen-off scene to the screen-on scene, it is determined whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
[0118] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present disclosure, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.
[0119] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0120] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0121] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0122] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0123] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0124] It should be understood that the present disclosure is not limited to the exact structures that have 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 disclosure is limited only by the appended claims.
Claims
1. A charging method, characterized in that: The method comprises: When the electronic device is in a screen-off scenario, charging the electronic device using a first charging strategy; When the electronic device switches from the screen-off scene to the screen-on scene, it is determined whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
2. The charging method according to claim 1, characterized in that: The determining whether to switch the first charging strategy to the second charging strategy based on the user contact information and the duration of the screen-on scene includes: Acquiring user contact information of the electronic device; When the user contact information indicates that the electronic device has not had the user touch the screen and press any key, determining to maintain the first charging strategy; and / or, When the user contact information indicates that a user has touched the screen or pressed a key of the electronic device, whether to switch the first charging strategy to the second charging strategy is determined based on the duration of the screen-on scene.
3. The charging method according to claim 2, characterized in that: The determining whether to switch the first charging strategy to the second charging strategy based on the duration of the screen-on scenario includes: Performing a delay detection; the delay detection includes detecting whether the electronic device is in a screen-off scene after a first preset time from when the electronic device starts to be in a screen-on scene; When the electronic device is in the screen-off scene after a first preset time from when the electronic device starts to be in the screen-on scene, determining to maintain the first charging strategy; When the electronic device is in the screen-on scene after a first preset time from when the electronic device starts to be in the screen-on scene, it is determined to switch the first charging strategy to the second charging strategy.
4. The method according to claim 3, characterized in that The first preset time ranges from 30 seconds to 2 minutes.
5. The charging method according to claim 3, characterized in that: The method further comprises: When the electronic device switches from the screen-off scene to the screen-on scene, determining whether the cause of triggering the scene switching is a message notification; When it is determined that the cause of triggering the scene switching is a message notification, acquiring the user contact information of the electronic device; When it is determined that the cause of triggering the scene switching is not the message notification, the delay detection is performed.
6. The charging method according to claim 3, characterized in that: The screen-on scene includes a plurality of first sub-screen-on scenes, each of which is associated with a user usage frequency; and the delay detection further includes: Based on the user usage frequency corresponding to the first sub-screen light-up scene, the first preset time is obtained; when the user usage frequency corresponding to the first sub-screen light-up scene is in the first frequency interval, the first preset time is the first duration; when the user usage frequency corresponding to the first sub-screen light-up scene is in the second frequency interval, the first preset time is the second duration; the minimum frequency of the first frequency interval is greater than the maximum frequency of the second frequency interval; the first duration is greater than the second duration.
7. The charging method according to claim 1, characterized in that: The screen-on scene includes a second sub-screen-on scene and a third sub-screen-on scene, the power consumption of the third sub-screen-on scene is higher than the power consumption of the second sub-screen-on scene; the second charging strategy includes a first sub-charging strategy and a second sub-charging strategy, the charging current of the first sub-charging strategy is greater than the charging current of the second sub-charging strategy, and both are less than the charging current of the first charging strategy; the method also includes: When the electronic device is in the second sub-screen-on scenario, charging the electronic device using the first sub-charging strategy; When the electronic device switches from the second sub-screen-on scene to the third sub-screen-on scene, it is determined whether to switch the first sub-charging strategy to the second sub-charging strategy based on the duration of the third sub-screen-on scene.
8. A charging device, characterized in that: include: A charging module, which uses a first charging strategy to charge the electronic device when the electronic device is in a screen-off scenario; A determination module, when the electronic device switches from the screen-off scene to the screen-on scene, determines whether to switch the first charging strategy to the second charging strategy based on user contact information and the duration of the screen-on scene; the charging current of the first charging strategy is greater than the charging current of the second charging strategy.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: implement the steps of the charging method described in any one of claims 1 to 7 when executed.
10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the steps in the charging method according to any one of claims 1 to 7.