Charging method and electronic equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-07
- Publication Date
- 2026-03-10
AI Technical Summary
The charging mode of existing electronic devices is single, and long-term rapid charging causes the temperature of lithium batteries to rise, affecting service life and reducing user experience.
Through scene recognition technology, electronic devices determine the target charging scenario based on location, time, trip and other information, and select appropriate charging mode (normal, fast or night charging) to optimize charging strategies, slow down battery aging and improve user experience.
Through flexible charging mode selection, it extends battery life, improves user experience, meets charging needs in different scenarios, and reduces thermal damage caused by fast charging.
Smart Images

Figure CN121646853A_ABST
Abstract
Description
Charging method and electronic device Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a charging method and electronic device. Background Art
[0002] Currently, electronic devices are often equipped with lithium batteries. Electronic devices have various charging modes. Standard charging mode charges slowly, while fast charging mode charges faster. Fast charging mode is popular with users because it shortens charging times. However, when fast charging an electronic device, the battery temperature rises. Excessive temperatures can damage lithium batteries, shortening their lifespan. Therefore, prolonged fast charging of electronic devices can significantly reduce the battery's lifespan, impacting the user experience.
[0003] Summary of the Invention
[0004] The embodiments of the present application provide a charging method and an electronic device, which improve charging flexibility, slow down the reduction of battery life, and improve user experience.
[0005] In a first aspect, an embodiment of the present application provides a charging method, which is applied to an electronic device, including: when connected to a power source, the electronic device determines a target charging scenario; when the target charging scenario is a first charging scenario, the electronic device is in a first charging mode; when the target charging scenario is a second charging scenario, the electronic device starts a second charging mode or the electronic device starts the second charging mode in response to a trigger request; wherein, the first charging duration of the first charging mode is greater than the second charging duration of the second charging mode; the first charging duration is the time taken for the electronic device to charge from the first battery power to the second battery power in the first charging mode; and the second charging duration is the time taken for the electronic device to charge from the first battery power to the second battery power in the second charging mode.
[0006] In one possible implementation, the first charging scenario is normal charging, the second charging scenario is fast charging, and optionally, the charging scenario may further include a third charging scenario, namely, nighttime charging. In another possible implementation, the first charging scenario is a non-fast charging scenario, which includes normal charging and nighttime charging, and the second charging scenario is a fast charging scenario.
[0007] In the above embodiment, the electronic device may have a certain scene recognition capability, and the basic logic of these scene recognitions needs to make decisions based on the user's urgent need to charge. When the target charging scene is identified as a fast charging scene, the fast charging mode is activated to give priority to solving the user's urgent charging needs. When the target charging scene is identified as a normal charging scene, the normal charging mode is activated. If the user's charging needs are not urgent, low-speed charging can be selected, which can slow down the aging of the battery and extend the service life of the electronic device; when the target charging scene is identified as a night charging scene, the night charging mode is activated to reduce the charging time, slow down the battery loss, and improve the user's charging experience.
[0008] In one possible implementation, the electronic device determines a target charging scenario by: obtaining scenario description information, where the scenario description information represents the user scenario in which the electronic device is currently located; the scenario description information includes one or more of location information, time information, travel information, charging information, and status information; and determining the target charging scenario based on the scenario description information. In this way, the electronic device can consider various factors to determine the charging scenario, ensuring the reliability and accuracy of the charging scenario determination.
[0009] Among them, the location information indicates the location of the electronic device; the time information indicates the current time; the itinerary information indicates the user's itinerary plan; the charging information indicates the battery information of the electronic device; and the status information indicates the movement status of the electronic device.
[0010] In one possible implementation, the charging scenario also includes a third charging scenario, and the method further includes: when the target charging scenario is the third charging scenario, the electronic device initiates a third charging mode; wherein the third charging duration is less than or equal to the second charging duration; the third charging duration is the duration it takes for the electronic device to charge from the first battery level to the second battery level in the third charging mode; and the electronic device is discontinuously charged in the third charging mode. In this way, while ensuring a better user experience and slowing down the degradation of battery life, the electronic device charging mode can be divided into three parallel situations, making the parallel processing of judgment logic faster and more efficient.
[0011] Among them, the third charging scenario is a nighttime charging scenario, and the third charging mode is a nighttime charging mode.
[0012] In one possible implementation, in the case of the third charging mode, the electronic device suspends charging for at least a period of time when the battery power is not yet fully charged; in the case of the third charging mode, when the battery power of the electronic device is greater than or equal to a preset power threshold, or when the charging time of the electronic device is greater than or equal to a first preset charging time, the electronic device suspends charging; when the time difference between the expected charging end time and the current time is less than or equal to a second preset charging time, the electronic device resumes charging. In this way, it can ensure that the device is in a fully charged state when it starts to be used in the morning, avoid premature power consumption, and improve user experience. In addition, in addition to considering the influencing factors of the nighttime period, the electronic device can also take the charging status of the electronic device as a consideration to ensure the accuracy of pausing and resuming charging during nighttime charging, so that the activation of the device charging mode is more reasonable and the charging experience is better.
[0013] In one possible implementation, when connected to a power source, the method further includes: the electronic device starting the first charging mode and displaying a first user interface, the first user interface including a first battery icon, the first battery icon indicating that the electronic device is being charged via the first charging mode; and when the target charging scenario is the second charging scenario, the first user interface including a second battery icon, the second battery icon indicating that the electronic device is being charged via the second charging mode. In this way, when the electronic device is connected to a power source and starts normal charging mode, the battery icon is used to distinguish between normal charging and fast charging modes. The intuitive distinction displayed can improve the user's charging experience.
[0014] In one possible implementation, the first charging scenario includes a normal charging scenario and a nighttime charging scenario, and the first charging mode includes a normal charging mode and a nighttime charging mode. When the target charging scenario is the first charging scenario, the charging mode of the electronic device is the first charging mode, including: when the first charging scenario is the normal charging scenario, the charging mode of the electronic device is the normal charging mode; when the first charging scenario is the nighttime charging scenario, the electronic device activates the nighttime charging mode. In this way, when the target charging scenario is identified as the normal charging scenario, the normal charging mode is activated, and the user's charging needs are not urgent, and low-speed charging can be selected, which can slow down the aging of the battery and extend the service life of the electronic device; when the target charging scenario is identified as the nighttime charging scenario, the nighttime charging mode is activated, which can reduce the charging time, slow down the battery loss, and improve the user's charging experience.
[0015] In one possible implementation, when the target charging scenario is the second charging scenario, the method further includes: the electronic device displaying a first prompt message, the first prompt message being used to remind the user to activate the second charging mode; the first prompt message being displayed in the form of a service card or a notification bar. In this way, the electronic device can display the prompt message, which can attract the user's attention, reserve a path for interaction with the user, ensure the priority of the user's charging timing needs, and improve the user experience.
[0016] In one possible implementation, the electronic device displays the first prompt information, including: the electronic device is in the first charging mode and displays the first prompt information. In this way, the electronic device can directly activate the fast charging mode without soliciting user operation and display a prompt indicating that fast charging has been initiated. This can reduce the user's operation process and ensure the speed of the electronic device processing.
[0017] In one possible implementation, the first prompt information includes an interactive control for activating the second charging mode, and the electronic device activates the second charging mode in response to a trigger request for the interactive control, including: the electronic device receiving a user operation to trigger the interactive control; the operation being used to request activation of the second charging mode; and the electronic device activating the second charging mode in response to the operation. In this way, the electronic device enters fast charging under user operation, and with the user as the final decision-maker, fast charging activation can be more cautious, improving the accuracy of activated fast charging scenarios and enhancing the user experience.
[0018] In one possible implementation, after the electronic device displays the first prompt and activates the second charging mode, the method further includes: the electronic device displaying a second prompt, wherein the second prompt includes interactive controls for the user to switch charging modes or disable the second charging mode. In this way, after switching, the electronic device can provide the user with an interactive path for switching charging modes, ensuring user operability and flexibility, improving user experience, and meeting the user's most fundamental needs.
[0019] The second prompt information may refer to the relevant content of the notification bar in FIG3E .
[0020] In one possible implementation, when the scenario description information includes location information, the electronic device determines a target charging scenario based on the scenario description information, including: when the location information indicates that the electronic device is within a user's permanent area, the electronic device determines the target charging scenario as a first charging scenario; when the location information indicates that the electronic device is outside the user's permanent area, the electronic device determines the target charging scenario as a second charging scenario; or, when the location information indicates that the distance between the electronic device and the user's permanent area is less than or equal to a first distance threshold, the electronic device determines the target charging scenario as the first charging scenario; when the location information indicates that the distance between the electronic device and the user's permanent area is greater than the first distance threshold, the electronic device determines the target charging scenario as the second charging scenario; or, when the location information indicates that the type of place where the electronic device is located is a residential type, the electronic device determines the target charging scenario as the first charging scenario; when the location information indicates that the type of place where the electronic device is located is a public place type, the electronic device determines the target charging scenario as the second charging scenario. In this way, the electronic device can infer whether the user is traveling based on the user's location. When traveling, the user's need to charge is more urgent, while at the permanent residence (or residence), the user's need to charge is not urgent. Therefore, the electronic device can determine the user's charging scenario more accurately based on the user's location.
[0021] In one possible implementation, when the scenario description information includes the time information, the electronic device determines the target charging scenario based on the scenario description information, including: when the time information is within the residential period in the user's historical information, the electronic device determines the target charging scenario as a first charging scenario; when the time information is not within the residential period, the electronic device determines the target charging scenario as a second charging scenario. In this way, the electronic device can determine whether the user is traveling based on the user's historical data and the current time, corresponding to the user group who lives and works regularly. The above processing process is simpler and more effective. Therefore, the electronic device can more accurately determine the user's charging scenario based on time and historical data.
[0022] In one possible implementation, when the scenario description information includes the time information and the travel information, the electronic device determines the target charging scenario based on the scenario description information, including: the electronic device obtains the travel status based on the time information and the travel information; when the travel status is already traveling or about to travel, the electronic device determines the target charging scenario as the second charging scenario; when the travel status is not traveling, the electronic device determines the target charging scenario as the first charging scenario. In this way, the electronic device can determine the charging scenario based on the user's travel, and for users who have travel activities, the charging scenario determined by the above process is more accurate.
[0023] In one possible implementation, the electronic device obtains the travel status based on the time information and the trip information, including: if the time information is before the start time of the trip information, and the time difference between the time information and the start time is less than or equal to a first threshold time length, the electronic device determines the travel status as about to travel; if the time difference between the time information and the start time is greater than the first threshold time length, the electronic device determines the travel status as not traveling; and if the time information is after the start time, the electronic device determines the travel status as having traveled. In this way, the electronic device can determine the target charging scenario based on the status of the electronic device itself and the actual usage of the user. If the device is frequently moved, it means that the user is using it or using it outside, which means that the user's basic activity range is not large, and it is more likely to be traveling, etc., and it is more likely that emergency charging is needed; if the device is basically stationary or moves slightly, it means that the user's basic activity range is not large, and it is more likely to be at a residence, etc., and it is less likely that emergency charging is needed. Therefore, the judgment process is simple, effective and accurate.
[0024] In one possible implementation, when the scenario description information includes the state information, the electronic device determines a target charging scenario based on the scenario description information, including: determining, by the electronic device, the motion state of the electronic device based on the state information; if the motion state of the electronic device is stationary, determining the target charging scenario as a first charging scenario; and if the motion state of the electronic device is mobile, determining the target charging scenario as a second charging scenario. In this way, the accuracy of the target charging scenario can be simply and effectively ensured.
[0025] In one possible implementation, the electronic device determines the motion state of the electronic device based on the state information, including: when the state information is acceleration data, if the acceleration data is less than or equal to a first acceleration threshold, the electronic device determines the motion state as a stationary state; if the acceleration data is greater than the first acceleration threshold, the electronic device determines the motion state as a moving state; or, when the state information is speed information, if the speed information is less than or equal to a first speed threshold, the electronic device determines the motion state as a stationary state; if the speed information is greater than the first speed threshold, the electronic device determines the motion state as a moving state; or, when the state information is angular velocity data, if the angular velocity data is less than or equal to a first angular velocity threshold, the electronic device determines the motion state as a stationary state; if the angular velocity data is greater than the first angular velocity threshold, the electronic device determines the motion state as a moving state.
[0026] In one possible implementation, when the scenario description information includes the time information, the location information, and the travel information, the electronic device determines the target charging scenario based on the scenario description information, including: the electronic device determines the planned status of the first travel plan based on the time information, the location information, and the travel information, the first travel plan being the closest yet-to-be-executed trip plan in the travel information; if the planned status of the first travel plan is preparing to be implemented, going to be implemented, or being implemented, the electronic device determines the target charging scenario as the second charging scenario; if the planned status of the first travel plan is ending implementation or not being implemented, the electronic device determines the target charging scenario as the first charging scenario. In this way, by comprehensively considering the location information, time information, and trip information, the electronic device can comprehensively and carefully decide on the target charging scenario to ensure the accuracy of the selected charging scenario.
[0027] In one possible implementation, the electronic device determines the planned status of the first travel plan based on the time information, the location information and the travel information, including: when the location information indicates that the electronic device is at a residence, if the time indicated by the time information is earlier than the start time of the travel information, and the time difference between the time indicated by the time information and the start time is greater than a second threshold duration, the electronic device determines that the planned status is not implemented; if the time indicated by the time information is before the start time, and the time difference between the time indicated by the time information and the start time is less than or equal to the second threshold duration, the electronic device determines that the planned status is ready to be implemented; if the If the time indicated by the time information is between the start time and the end time of the trip information, the electronic device determines that the planned status is ready for implementation; if the time indicated by the time information is later than the end time, the electronic device determines that the planned status is not implemented; if the location information indicates that the electronic device is not at the residence, if the time indicated by the time information is earlier than the start time, the electronic device determines that the planned status is going to be implemented; if the time indicated by the time information is between the start time and the end time, the electronic device determines that the planned status is being implemented; if the time indicated by the time information is later than the end time, the electronic device determines that the planned status is finished. In this way, the different states of the user's planned trip in the location information, time information, and trip information are comprehensively considered to ensure the accuracy of the target charging scenario determination, thereby ensuring the accuracy of the selected charging mode.
[0028] In a second aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors, a display screen, and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code comprising computer instructions, the one or more processors calling the computer instructions to enable the electronic device to execute the charging method as described in the first aspect or any possible implementation of the first aspect.
[0029] In a third aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, which are used to call computer instructions to enable the electronic device to execute the charging method described in the first aspect or any possible implementation method of the first aspect.
[0030] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the charging method as described in the first aspect or any possible implementation of the first aspect.
[0031] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the charging method as described in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1 is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0033] FIG2 is a software structure block diagram of an electronic device 100 provided in an embodiment of the present application;
[0034] 3A to 3F are a set of user interface diagrams shown in the form of a notification bar according to an embodiment of the present application;
[0035] FIG4 is a schematic diagram of an interface provided in an embodiment of the present application;
[0036] FIG5 is another schematic diagram of an interface provided in an embodiment of the present application;
[0037] FIG6 is a schematic flow chart of a charging method provided in an embodiment of the present application;
[0038] FIG7 is a schematic flow chart of a method for determining a target charging scenario provided by an embodiment of the present application;
[0039] FIG8 is a schematic flow chart of another charging method provided in an embodiment of the present application;
[0040] FIG9 is a schematic flow chart of another charging method provided in an embodiment of the present application;
[0041] FIG10 is a flow chart of another charging method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present embodiment application. The appearance of this phrase in various positions in the specification does not necessarily mean the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of this application.
[0043] In the specification, claims, and accompanying drawings of this application, the terms "first," "second," "third," and the like are used to distinguish different objects and are not used to describe a particular order. Furthermore, the terms "including," "comprising," "having," and any variations thereof are intended to cover non-exclusive inclusions. For example, a list of steps or elements may be included, or alternatively, steps or elements not listed may be included, or other steps or elements may be included that are inherent to the process, method, product, or apparatus.
[0044] Only part relevant to the present application, rather than all content, is shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processing or methods described as flow charts. Although flow charts describe each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but can also have additional steps not included in the accompanying drawings.
[0045] The structure of the electronic device 100 is introduced below. Please refer to Figure 1, which is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.
[0046] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0047] It should be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in FIG1 , or may combine or separate certain components, or may have different component arrangements. The components shown in FIG1 may be implemented in hardware, software, or a combination of software and hardware.
[0048] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0049] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0050] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0051] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0052] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), BLE broadcast, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0053] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0054] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1. The display screen 194 can display the user interfaces shown in Figures 3A to 5.
[0055] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor 180B can be used to determine the angular velocity data of the electronic device 100 around three axes (i.e., the x, y, and z axes). In embodiments of the present application, the angular velocity data collected by the gyroscope sensor 180B can be used to determine the charging scenario.
[0056] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. In the embodiment of the present application, the acceleration sensor 180E can obtain acceleration data.
[0057] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0058] In the embodiment of the present application, the user operation can be a touch operation, a voice operation, an air gesture operation, etc., and the present application does not limit this.
[0059] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0060] Figure 2 is a block diagram of the software structure of electronic device 100 according to an embodiment of the present application. A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: application layer, application framework layer, kernel layer, and hardware layer, from top to bottom.
[0061] As shown in Figure 2, the application layer may include applications such as SMS, calendar, XX ticketing, settings, business presentation module, system services, data acquisition module and business scenario recognition module.
[0062] The data collection module is used to collect various scenario description information used to determine charging scenarios. Scenario description information may include one or more of location information, time information, travel information, charging information, and status information. Location information includes GPS information, cell ID information, and Wi-Fi ID information. Travel information includes flight information, ticket purchase information, railway information, text messages, and schedule information. Charging information may include charging duration and remaining battery power.
[0063] When the electronic device is connected to a power source, the data acquisition module can monitor the capabilities registered by the business scenario recognition module and obtain relevant scenario description information. The data acquisition module can then send the scenario description information to the business scenario recognition module. Specifically, the data acquisition module can also detect relevant event scenario description information from other applications in the application layer, the application framework layer, the system layer, or the kernel layer through the application programming interface (API). This information can include GPS information, network connections, user text messages, customized timers and user schedules, text messages, acceleration data, flight information, meeting schedule information, etc.
[0064] Exemplarily, the data acquisition module can obtain the user's flight information, ticket purchase information, meeting information, etc. through a text message application, and based on semantic analysis, determine the time, location, type and other information of the plan to form a specific format of itinerary information. The data acquisition module sends the itinerary information to the business scenario recognition module in a specific format, and the business scenario recognition module can identify and determine the user's itinerary information based on the specific format. Of course, the data acquisition module can also obtain sensor data through sensor drive, such as acceleration data obtained by an acceleration sensor. The data acquisition module can also obtain network connection information or GPS information (location information), etc. After obtaining the above information, the data acquisition module can send the above information to the business scenario recognition module for processing.
[0065] The business scenario recognition module has business logic processing capabilities and can be used to recognize various charging scenarios based on scenario description information, as well as determine the display logic of prompt information based on the charging scenario. For example, the business scenario recognition module receives the travel information sent by the data acquisition module, and can determine that the current charging scenario is one of fast charging, normal charging, and night charging based on the business logic, and send the command of the charging scenario to the system service. The system service can start the corresponding charging mode based on the charging scenario. For example, the business scenario recognition module sends a fast charging command to the system service, and the electronic device can start the fast charging mode for fast charging. In addition, the business scenario recognition module can also send specific prompt tasks to the business presentation module based on the identified charging scenario. The type of prompt task can be the display or disappearance of a notification bar or card, etc. The prompt task can include prompt information, and the prompt information can include information such as the charging scenario mode currently started or requested to be started.
[0066] In an embodiment of the present application, the system service can execute the processing logic of charging mode management and control based on the command of the business scenario recognition module.
[0067] In an embodiment of the present application, a business presentation module (such as: YOYO suggestions, notification bar, etc.) is used to generate and display or disappear a determined card view on the screen (display) of an electronic device. For example, the business presentation module can receive a command to display a reminder card transmitted by the business scenario recognition module, and display the reminder card to the user. When the user clicks on the card, it can be linked to start, switch or close a certain charging mode. The business presentation module can further determine the charging mode based on user interaction. In an embodiment of the present application, the business presentation module can draw a card or notification bar based on the notification received from the business scenario recognition module, and display or disappear it. That is, correspondingly, if the business presentation module receives a display card or notification bar command transmitted by the business scenario recognition module, the business presentation module can display (display) the card or notification bar.
[0068] Optionally, the application layer may also include a view display module (not shown). The view display module can be used to display information of the electronic device (display plug-ins, notifications, applications, cards, etc.). In an embodiment of the present application, the view display module may also draw a card or notification bar based on the display notification received from the business presentation module, and coordinate the display of the displayed or disappeared card or notification bar with the existing display content. In an embodiment of the present application, the view display module may receive display data of a card or notification bar from the business presentation module, and display a corresponding card or notification bar based on the display data of the card or notification bar.
[0069] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes predefined functions. As shown in Figure 2, the application framework layer may include a window manager, content provider, resource manager, view system, activity manager, notification manager, and power manager.
[0070] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0071] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0072] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0073] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0074] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. For example, these can display text messages in the status bar, emit a sound, vibrate electronic devices, or flash indicator lights.
[0075] The power manager provides functions such as fast charging, normal charging, and overnight charging. The battery manager can receive charging instructions from system services. The charging instructions can instruct the electronic device to charge according to a certain mode or disable one or more of the above charging modes.
[0076] The kernel layer is the layer between hardware and software. It includes at least the display driver, sensor driver, positioning module, and power module. The display driver controls the display to display notification bars or cards. The sensor driver acquires data from the accelerometer and / or gyroscope. The positioning module obtains GPS information from the GPS module. The power module controls battery charging using the corresponding operating mode.
[0077] The hardware layer can include a display, camera, GPS module, memory, communication module, accelerometer, gyroscope, processor, and battery. The battery can be a lithium battery, an important energy storage device widely used in consumer electronics and automotive applications. The communication module can include the mobile communication module and wireless communication module shown in Figure 1.
[0078] In order to pursue extremely fast charging conversion efficiency and shorten charging time, fast charging is usually used during the charging process of electronic devices. However, fast charging requires the power supply to provide high power (high voltage and / or high current). High-power charging will cause the temperature of the electronic device to be too high during the charging process. For example, the mobile phone will become hot during charging, which will affect the thermal experience of the device. In addition, long-term high temperature is harmful to lithium batteries and will greatly reduce the battery life of electronic devices. If the electronic device is not in a fast charging state, the charging temperature of the electronic device is lower, but the charging speed is slow, the charging time required is longer, and the user's charging experience is poor.
[0079] During the above process, the electronic device uses a fixed charging mode. Either the electronic device uses the fast charging mode for a long time, which will cause the electronic device to heat up, resulting in a poor user experience and a serious impact on the battery life; or the electronic device uses the normal charging mode, which takes a long time to charge and the user has to wait a long time. For users who need to charge their electronic devices urgently, the user experience is poor.
[0080] In response to the above-mentioned embodiments, the present application proposes a charging method and an electronic device. In the charging method, when the electronic device is connected to a power source, the electronic device can determine whether the current charging conditions meet the fast charging conditions. If the fast charging conditions are met, the scene description information is obtained, and the target charging scene is determined based on the scene description information. In the case of a normal charging scene, the electronic device can start the normal charging mode; in the case of a fast charging scene, the electronic device can start the fast charging mode. Optionally, if it is in a night charging scene, the electronic device can start the night charging mode. The type of charging mode applicable to the electronic device is not limited in the embodiments of the present application. In this way, by identifying the charging scene, the electronic device determines the most suitable charging mode for charging. While meeting the user's fast charging needs, the fast charging mode can be used as little as possible, greatly reducing the heating of the battery caused by long-term fast charging of the mobile phone, extending the battery life, and improving the user's charging experience.
[0081] When an electronic device is connected to an external charger, it can display a charging reminder. This embodiment of the present application illustrates some user interface schematics that may be involved in displaying charging reminders. It should be understood that the user interface schematics of this embodiment of the present application are used to clearly illustrate this embodiment of the present application and do not limit the specific user interface for charging reminders.
[0082] The charging reminder display can be displayed in one or more of the following ways: notification bar, activity card, status bar. The following describes these three charging reminder display modes:
[0083] 3A to 3F are schematic diagrams of a user interface of a group of notification bars prompting charging information disclosed in an exemplary embodiment of the present application.
[0084] Display method 1: The electronic device provides a charging reminder through the notification bar.
[0085] 3A to 3F are a set of user interface diagrams shown in the form of a notification bar.
[0086] In the embodiment of the present application, the electronic device may include at least two charging modes: a fast charging mode and a normal charging mode. Different prompt information may be displayed in different charging modes and different scenarios.
[0087] Among them, for different charging modes or charging conditions, the battery icon displayed by the electronic device will also change accordingly.
[0088] First, the user interface of the electronic device when it is not connected to a power source and the display of the notification bar are described.
[0089] Figures 3A and 3B are schematic diagrams of the interface of the process of the user pulling down the notification bar. In Figures 3A and 3B, the electronic device is not connected to a power source.
[0090] As shown in FIG3A , a user turns on their electronic device so that the display of the electronic device displays the desktop of the electronic device. FIG3A is a schematic diagram of an interface of a user's electronic device provided in an embodiment of the present application. The user interface of FIG3A may include an icon for at least one application, and each application icon has a corresponding application name below it, such as: clock, calendar, gallery, memo, file management, email, music, calculator, video, sports health, weather, browser, camera, address book, phone, and information. The positions of the application icons and the corresponding application names can be adjusted according to the user's preferences, and this embodiment of the present application does not limit this.
[0091] It should be noted that the interface diagram of the electronic device shown in FIG3A is an exemplary display of an embodiment of the present application. The interface diagram of the electronic device may also be in other styles, which is not limited in the embodiment of the present application.
[0092] To view the notification bar, the user can pull down or swipe down on the screen. In response to the user's pull-down or swipe down action in Figure 3A, the electronic device's user interface can display a charging reminder message in the notification bar. The reminder message displayed in the notification bar varies in different user scenarios, as detailed below for various scenarios.
[0093] 3A , in response to the user's pull-down or slide-down operation in FIG3A , as shown in FIG3B , the electronic device displays a user interface 320. The user interface 320 may include a battery icon 321, which indicates that the battery is not currently charged.
[0094] Prompt situation 1: When the electronic device is initially connected to a power source, the electronic device directly starts normal charging mode.
[0095] When the electronic device is not connected to a power source, the electronic device displays a user interface 320. When the electronic device is connected to a power source and the electronic device has not yet completed the charging scene recognition process, the user interface diagram shown in FIG. 3C or FIG. 3D may be displayed.
[0096] In one possible scenario, the electronic device may not display a charging prompt after being connected to a power source before completing the charging scenario recognition process. As shown in Figure 3C, the electronic device displays a user interface 330, which may include a battery icon 331. Battery icon 331 indicates that the electronic device is charging in a normal charging mode. Optionally, user interface 330 may also include a settings field 332.
[0097] In another possible situation, the electronic device may start to display prompt information after being connected to a power source before completing the charging scene recognition process. As shown in Figure 3D, the electronic device displays a user interface 340, which may include a battery icon 343. The battery icon 343 also indicates that the electronic device is being charged in normal charging mode. At this time, the electronic device displays a notification bar 341, which includes charging reminder information that normal charging mode has been turned on. The notification bar 341 may also include a prompt: "Normal charging, charging time is long" and a "Turn on fast charging" 342 control. The user can enter fast charging mode by clicking the "Turn on fast charging" 342 control.
[0098] Prompt situation 2: When the electronic device is connected to a power source and the normal charging mode is already activated, the target charging scene is determined to be the normal charging mode after charging scene recognition, and the normal charging mode is maintained.
[0099] In one possible scenario, the electronic device begins to display a normal charging prompt message.
[0100] For example, as shown in FIG3C , the electronic device does not display charging prompt information in the notification bar before obtaining that the target charging scenario is the normal charging mode. If the target charging scenario is the normal charging mode after charging scenario recognition, the user interface 340 shown in FIG3D may be displayed.
[0101] In another possible situation, the electronic device continues to display the normal charging prompt information.
[0102] For example, as shown in FIG3D , the electronic device has already displayed the opening notification bar before obtaining that the target charging scenario is the normal charging mode; after the charging scenario is identified and the target charging scenario is the normal charging mode, the electronic device may continue to display the user interface 340 .
[0103] Among them, the relevant descriptions of Figures 3C and 3D can refer to the interface description in prompt situation 1 and are not repeated here.
[0104] Prompt Scenario 3: When the electronic device is connected to a power source and in normal charging mode, it performs charging scenario recognition. If the target charging scenario is identified as a fast charging scenario, the electronic device displays a fast charging prompt message, which is used to remind the user to activate the fast charging mode.
[0105] In one possible scenario, the electronic device may first activate the fast charging mode and then display the fast charging prompt information. The electronic device begins to display the prompt information that the fast charging has been automatically activated.
[0106] Optionally, the electronic device changes from not displaying the charging prompt information to starting to display a prompt information indicating that fast charging has been automatically started.
[0107] For example, as shown in FIG3C , the electronic device does not display charging reminders in its notification bar until it determines that the target charging scenario is fast charging mode. After identifying the charging scenario and determining that the target charging scenario is fast charging, the electronic device may begin to display user interface 350 as shown in FIG3E . User interface 350 may include a battery icon 354 and a notification bar 351. Battery icon 354 may indicate that the electronic device is charging in fast charging mode. Notification bar 351 may include prompts such as "Fast charging has been automatically enabled" and "Accelerated charging. Device temperature will rise." Notification bar 351 may also include a "Turn off fast charging" control 352 and a "Ignore this time" control 353. The "Ignore this time" control 353 may indicate that the current reminder is ignored, maintaining fast charging mode and not prompting further. That is, when a user clicks the "Ignore this time" control 353, the electronic device no longer displays charging reminders. The "Turn off fast charging" control 352 may indicate that the fast charging mode is turned off, switching the charging mode from fast charging mode to normal charging mode. In response to the user clicking the "Turn off fast charging" control 352, the electronic device displays the user interface shown in FIG3D for prompt scenario 2. In addition, the notification bar 351 may also include other functional controls, such as controls such as "Do not prompt again in the future", which are not shown in Figure 3D and are not limited in this application.
[0108] Optionally, the electronic device changes from displaying normal charging prompt information to displaying prompt information that fast charging has been automatically started.
[0109] For example, as shown in FIG3D , the electronic device displays a prompt indicating that normal charging has been initiated before determining that the target charging scenario is a normal charging scenario. Subsequently, if the target charging scenario is a fast charging scenario after charging scenario recognition, the device may enter fast charging mode and begin displaying user interface 350 as shown in FIG3E . The description of user interface 350 in FIG3E can be found in the above description and is not repeated here.
[0110] In the above-mentioned processing method, the electronic device can directly start the fast charging mode without the need for user operation and display a prompt message indicating that fast charging has been started. In this way, the user's operation process can be reduced and the processing speed of the electronic device can be ensured.
[0111] In another possible scenario, the electronic device may initiate a fast charging mode in response to initiating a fast charging operation. The electronic device may begin displaying a prompt message requesting the initiation of fast charging, and in response to the user initiating the fast charging operation, may display a prompt message indicating that fast charging has been automatically initiated.
[0112] Optionally, the electronic device changes from not displaying the charging prompt information to starting displaying the prompt information requesting to start fast charging, and in response to the operation of starting fast charging, displays the prompt information that fast charging has been automatically started.
[0113] Exemplarily, as shown in FIG3C , before the electronic device obtains that the target charging scenario is a fast charging scenario, the notification bar does not display charging prompt information. Afterwards, after the charging scenario is identified and the target charging scenario is a fast charging scenario, the user interface 360 shown in FIG3F may begin to be displayed. The user interface 360 may include a notification bar 361 and a battery icon 364. The battery icon 364 may also indicate that the electronic device is being charged in a normal charging mode. The notification bar 361 may include a prompt. The prompt is “After turning on, the charging speed will be increased and the device temperature will rise.” The notification bar 341 also includes a “Turn on this time” 362 control and an “Ignore this time” 363 control.
[0114] If the user needs to turn on the fast charging mode, he can click the "turn on this time" 362 control to start the fast charging mode and display the user interface 350. The description of the user interface 350 can refer to the above related description and will not be repeated here.
[0115] If the user does not need the fast charging mode, the user can click the "Ignore this time" 363 control. In response to the above operation, the electronic device can maintain the normal charging mode. Optionally, in response to the operation of clicking the "Ignore this time" 363 control, the electronic device can continue to display the user interface 360.
[0116] Optionally, the electronic device switches from displaying normal charging prompt information to displaying prompt information requesting to start fast charging, and in response to the operation of starting fast charging, displays prompt information that fast charging has been automatically started.
[0117] Exemplarily, as shown in FIG3D , before the electronic device obtains that the target charging scenario is a normal charging scenario, it has already displayed a prompt message that normal charging has been started. Afterwards, after the charging scenario is identified and the target charging scenario is obtained as a fast charging scenario, the user interface 360 shown in FIG3F may be displayed. For the relevant description of the user interface 360, reference may be made to the above description and will not be repeated. Similarly, if the user wants to turn on the fast charging mode, the user may click the “Turn on this time” 362 control to start the fast charging mode and display the user interface 350. For the description of the user interface 350, reference may be made to the above related description and will not be repeated. If the user does not want to turn on the fast charging mode, the user may click the “Ignore this time” 363 control. In response to the above operation, the electronic device may maintain the normal charging mode. Optionally, in response to the operation of clicking the “Ignore this time” 363 control, the electronic device may continue to display the user interface 360.
[0118] In the above process, when the electronic device responds to the operation of starting fast charging and starts the fast charging mode, the electronic device displays a prompt message, which reminds the user to switch to the normal charging mode. The specific display interface can refer to the prompt information in the user interface 350 and will not be repeated here.
[0119] In the above interfaces, the electronic devices all display charging reminders in the pull-down notification bar. Optionally, the electronic device can also provide charging reminders through the notification bar position in the lock screen interface, or pop up a notification box to provide charging reminders in any interface when the phone screen is unlocked. The content of the charging reminder can be the same as the content of the notification bar in the above-mentioned prompt situations and is not repeated here. Optionally, the charging reminder information can be permanently stored in the notification bar to facilitate the user to view the charging mode and switch the charging mode.
[0120] Display method 2: The electronic device provides charging reminders via the service card.
[0121] After the terminal device is connected to a power source, a charging reminder message can be displayed in the card on the negative one screen.
[0122] Figure 4 is a schematic diagram of a user interface provided illustratively in an embodiment of the present application. As shown in Figure 4, user interface 410 can display a charging card 411. The content of charging card 411 can refer to the relevant description in user interface 360 and is not repeated here.
[0123] The above charging card 411 is the content of prompt situation 1. Similarly, for the charging cards of other prompt situations, the charging cards can also refer to the relevant descriptions in the user interface 340 and the user interface 350, which will not be repeated here.
[0124] In the above display method, the electronic device displays a charging reminder through the service card position on the negative one screen. Optionally, the electronic device can also provide a charging reminder through the service card position on the main interface, or through the service card on the lock screen interface. This application does not limit the display location of the charging reminder. In the case where the charging reminder can be displayed in the card on the main interface, the content of the charging reminder in the main interface can be similar or identical to the charging reminder content in the YOYO suggestion on the negative one screen, and will not be repeated here.
[0125] Display method three: The electronic device provides charging prompts through the status bar.
[0126] FIG5 is a schematic diagram of another user interface provided illustratively in an embodiment of the present application. As shown in FIG5 , user interface 510 may display a charging reminder pop-up window 511. The content of charging status pop-up window 511 can refer to the relevant description in user interface 360 and is not repeated here.
[0127] The above charging status pop-up window 511 is the content of situation 1. Similarly, for the charging cards with the other three prompt situations, the charging status pop-up windows in other situations can also refer to the relevant descriptions in user interface 340 and user interface 350, which will not be repeated here.
[0128] In the above display mode, the electronic device can display a charging reminder in the service card position of the negative one screen. Optionally, the electronic device can also display a charging status pop-up window on the main interface, or a charging status pop-up window on the lock screen interface, which is not limited in this application.
[0129] It should be noted that the terminal device can adopt the common prompting method of Figures 3A-5, or can choose any one of Figures 3A-5 for prompting, and the embodiment of this application does not make specific limitations.
[0130] It should be noted that the contents of the charging reminder message in Figures 3A to 5 are only briefly illustrated. In specific implementations, the contents of the charging reminder message in Figures 3A to 5 can also be deleted or added, which will not be elaborated here.
[0131] When the terminal device provides a charging prompt in any of the ways shown in Figures 3A-5, if the user does not click on the charging prompt within the preset time, the terminal device can cancel the display of the charging prompt in Figures 3A-5; of course, the electronic device can also continue to display the charging prompt, which is not limited in this application.
[0132] It should be noted that the electronic device that can display the above-mentioned charging prompt can be a mobile phone, tablet, smart bracelet, computer and other devices. This application does not limit the device type of the specific execution entity.
[0133] FIG6 is a flow chart of a charging method exemplarily proposed in an embodiment of the present application. As shown in FIG6 , the charging method may include but is not limited to the following steps:
[0134] S601: When connected to a power source, the electronic device obtains scene description information.
[0135] The electronic device can detect that it is connected to a power source through the power manager. The power manager can report the charger connection notification to the system service, after which the system service can begin to obtain scenario description information. In the implementation of this application, connecting to a power source can include connecting to the mains through a charger, connecting the electronic device to a power bank, or the electronic device meeting the power supply conditions for wireless charging. This application does not limit the specific form of the power source.
[0136] The scenario description information can be used to determine the current user scenario of the electronic device to determine the charging mode of the electronic device. The scenario description information may include any one or more of location information, time information, travel information, charging information, and status information.
[0137] Specifically, location information can be used to indicate the current location of the electronic device. Location information can include GPS information, cell identification information, WiFi identification information, etc. Time information can be the current time in the time zone where the electronic device is located. Itinerary information can be used to indicate the user's itinerary plans. Itinerary information can include flight information, ticket purchase information, railway information, meeting information, hotel information, reservation information, and schedule information. Charging information can be information used to describe the charging status of the electronic device. For example, charging information can include information such as charging duration and current battery level. Status information can be used to indicate the motion status of the electronic device. Status information can include acceleration data and gyroscope data, etc.
[0138] Example 1: An electronic device obtains location information. After obtaining user location authorization, the electronic device can obtain GPS information (latitude and longitude) through the GPS module. When connected to a WiFi signal, the electronic device can obtain the current WiFi identifier. When connected to a cellular network, the electronic device can obtain the cell ID of the cell it can currently connect to through the communication module.
[0139] Example 2: Electronic devices accessing itinerary information. With user authorization, electronic devices can access calendar schedule information; flight information, ticket purchase information, attraction information, hotel information, restaurant reservation information, and XX venue reservation information from SMS apps; meeting reminders from XX conferences; XX railway ticket information; and XX theater ticket performance information. For each item of itinerary information, the electronic device can determine the corresponding name, time, and location.
[0140] Example 3: An electronic device obtains time information. The electronic device may determine time information based on the current time.
[0141] Example 4: An electronic device obtains charging information. The electronic device can obtain the current battery level and the current charging duration through system services. If charging has not yet started, the charging duration is 0.
[0142] Example 5: An electronic device obtains status information. Using a sensor driver, the electronic device can obtain acceleration data from an accelerometer and gyroscope data from a gyroscope. Acceleration data can indicate the speed of acceleration, while gyroscope data can indicate the angular velocity of the electronic device.
[0143] Optionally, before the electronic device obtains the scene description information, the electronic device may also determine whether the fast charging mode can be activated (whether the conditions for initiating fast charging are met), that is, whether the electronic device supports the fast charging function. If the type of charger connected to the electronic device does not support fast charging, the charging method process shown in Figure 6 can be terminated and subsequent steps are not executed; if the type of charger connected to the electronic device supports fast charging, it can be determined to continue executing the method process of S602.
[0144] In the embodiments of the present application, the charging scenarios involved include fast charging scenarios and non-fast charging scenarios, and the non-fast charging scenarios may include normal charging scenarios and nighttime charging scenarios. Among them, the fast charging scenario has a faster charging speed than the normal charging scenario and the nighttime charging scenario. That is, the electronic device is also charged from the first battery level to the second battery level, and the charging time used in the fast charging mode is less than the time used in the normal charging mode. During the charging process of the nighttime charging scenario, there is an intermittent period when the electronic device is not charged. The normal charging scenario corresponds to the normal charging mode; the fast charging scenario corresponds to the fast charging mode; and the nighttime charging scenario corresponds to the nighttime charging mode. The charging speed of the normal charging mode is slower, and the device is continuously charged until the battery is fully charged; the charging speed of the fast charging mode is faster, and the device is continuously charged until the battery is fully charged; the charging speed of the nighttime charging mode is slower, and the device may not be charged for at least a period of time in the middle, and then charged again before the user gets up, that is, it is charged multiple times until the battery is fully charged. Specifically, the normal charging time is the time it takes for the electronic device to charge from the first battery level to the second battery level in the normal charging mode; the fast charging time is the time it takes for the electronic device to charge from the first battery level to the second battery level in the fast charging mode; the night charging time is the time it takes for the electronic device to charge from the first battery level to the second battery level in the night charging mode; the fast charging time is less than the normal charging time; the normal charging time is less than or equal to the night charging time.
[0145] It should also be noted that, when the electronic device determines that it is connected to a power source, the electronic device may start a normal charging mode to charge.
[0146] S602: The electronic device determines a target charging scenario based on the scenario description information.
[0147] The electronic device can determine the user's travel status, whether the user is at a permanent residence, the motion status, and other results based on the scene description information, and determine the charging scene corresponding to the target charging scene. The travel status refers to the state of the distance between the user (electronic device) and the residence. The travel status may include: already traveled and not traveled. Optionally, the travel status may also include the state of about to travel. Among them, the residence may include two types: temporary residence and permanent residence. The permanent residence refers to the location area where the user resides or moves for a long time, such as home, company, etc. The temporary residence refers to the location area where the user temporarily resides, rests, and moves, such as a hotel, homestay, etc.
[0148] When the electronic device determines that the target charging scenario is a non-fast charging scenario (including normal charging and nighttime charging), the electronic device may execute S603; when the electronic device determines that the target charging scenario is a fast charging scenario, the electronic device may execute S606.
[0149] The following describes the process of determining the target charging scenario for different scenarios described by the electronic device:
[0150] Case 1: Determine the target charging scenario based on location information and the user's usual location.
[0151] The electronic device stores relevant information about the user's permanent area (which can be understood as the area where the permanent residence is located). The user's permanent area can represent the geographical space area where the user has been active for a long time. For example, the user's permanent area can represent the geographical space range of the user's home, cell area, company, or other permanent residence. The electronic device can use location information to determine whether it is within the user's permanent area, or whether it is within a certain distance from the user's permanent area. If it is within the user's permanent area, or within a certain distance from the user's permanent area, the electronic device can determine that it is in the permanent place, that is, the user is not currently going out, and the target charging scene can be determined to be a non-fast charging scene. If the electronic device determines that it is outside the user's permanent area, or outside a certain distance from the user's permanent area through location information, the electronic device can determine that it is not in the permanent place, that is, the user is currently out, and the target charging scene can be determined to be a fast charging scene.
[0152] When the scene description information includes location information, the electronic device can determine whether the user is traveling based on the location information. Based on different types of location information, the electronic device has different determination methods, which are described in detail below:
[0153] Mode a: When the location information includes positioning information, the user's permanent area is a preset geographical area or preset positioning information.
[0154] The electronic device stores a preset geographical area or preset positioning information. The positioning information is the latitude and longitude information obtained by the electronic device through a positioning system, such as GPS information. The preset geographical area can be the geographic spatial location range of the area where the user is located.
[0155] Alternatively, the electronic device may determine whether it is within a preset geographical area based on current GPS information. If it is within the preset geographical area, the electronic device may determine that the user is at the permanent residence. If it is outside the preset geographical area, the electronic device may determine that the user is not at the permanent residence.
[0156] Optionally, the electronic device may compare the distance between the current GPS information and the preset positioning information. If the distance between the GPS information and the preset positioning information is less than (less than or equal to) a first threshold distance, the electronic device may determine that the user is at the permanent residence. If the distance between the GPS information and the preset positioning information is greater than or equal to (greater than) the first threshold distance, the electronic device may determine that the user is not at the permanent residence.
[0157] Among them, in the embodiments of the present application, the positioning information is specifically illustrated using GPS information as an example. The positioning information can also be positioning information from other positioning systems, such as the Global Navigation Satellite System GLONASS, the Galileo Navigation System, and the Beidou Satellite Navigation System, etc. This application is not limited to this.
[0158] Mode b: When the location information includes cell identification information (cell ID), the user's permanent area is the resident cell fence information.
[0159] The electronic device stores the resident cell fence information, which is a collection of multiple cell identifiers that can represent a specific geographic space. The cell identifier information identifies the cell to which the electronic device can currently connect, indicating that the electronic device is currently within the coverage of the corresponding cell.
[0160] The electronic device can obtain identification information of the cell to which it can currently connect (the number of cell IDs is at least one) through the communication module, and then determine whether the resident cell fence information includes at least one of the cell identification information. If the resident cell fence information includes at least one cell identification information, the electronic device can determine that the user is in the permanent residence. If the resident cell fence information does not include any cell identification information, the electronic device can determine that the user is not in the permanent residence.
[0161] Method c: When the location information includes WiFi identification information, the user's permanent area is the residential WiFi fence information.
[0162] The electronic device stores local WiFi fence information. The local WiFi fence information may be a collection of multiple WiFi identifiers that can represent a specific geographic range. The WiFi identifier information indicates the identifier of the WiFi network that the electronic device can currently connect to, indicating that the electronic device is currently within the coverage range of the corresponding WiFi network.
[0163] The electronic device can obtain identification information of the currently connectable WiFi network through the communication module, and then determine whether the premises WiFi fence information includes at least one piece of WiFi identification information. If the premises WiFi fence information includes at least one piece of WiFi identification information, the electronic device can determine that the user is in the permanent residence. If the premises WiFi fence information does not include any piece of WiFi identification information, the electronic device can determine that the user is not in the permanent residence.
[0164] In this scenario, the electronic device can infer whether the user is traveling based on their location. When traveling, the user needs to quickly charge their electronic device. At home, however, the user has ample time to charge their electronic device. Therefore, the electronic device can more accurately determine the user's charging scenario based on their location.
[0165] Case 2: Determine whether the user is at the permanent location based on time information and user history information, and determine the target charging scenario based on the result of whether the user is at the permanent location.
[0166] The time information is the current time information collected by the electronic device, that is, the current time of the electronic device. The user history information is a regular user activity data summarized based on the user's historical movement trajectory. The electronic device may store user history information in advance.
[0167] For example, Table 1 is a table of user history information provided by way of example in an embodiment of the present application.
[0168] Table 1
[0169] Table 1 shows the user's geographic location at different times of the day on a weekday. From 10 PM to 6 AM, the user is at home, and from 10 AM to 6 PM, the user is at work. Assuming the time is 11 AM on a weekday, the electronic device can infer that the user is at work based on the user's historical information in Table 1. The electronic device can then determine that the user is at their usual location, meaning that the user has not left their home.
[0170] It should be noted that if the user leaves the permanent residence, the solution of case 2 is not applicable. Therefore, a usage condition can be set for case 2. For example, it can be determined whether the electronic device is currently in the province or city where the permanent residence is located.
[0171] The electronic device can determine whether the user is at the permanent location based on time information and user history information, and can determine a target charging scenario based on the determination result of whether the user is at the permanent location. The target charging scenario when the electronic device is at the permanent location can be limited to a non-fast charging scenario; and the target charging scenario when the electronic device is not at the permanent location can be limited to a fast charging scenario.
[0172] In this scenario, the electronic device can determine whether the user is traveling based on historical user data and the current time, thereby determining the target charging scenario for the electronic device and selecting the corresponding charging mode. This approach is suitable for users with regular work and rest schedules. This process is simple, direct, and more accurate and effective.
[0173] Case 3: The travel status is determined based on the trip information and the time information, and the target charging scenario is determined based on the travel status.
[0174] Specifically, itinerary information can be information about a user's planned travel. Itinerary information may include flight information, ferry ticket information, bus ticket information, performance information, scenic spot ticketing, meeting arrangements, scheduled alarms, schedule planning, appointment information, and other user-planned activities. With user authorization, electronic devices can obtain itinerary information from text messages or other applications and perform calculations based on the itinerary information to determine current and near-term time plans. The electronic device can determine whether the user is out (or at their residence) based on the itinerary information and time information.
[0175] The travel status may include three states: already traveled, about to travel, and not traveling. The electronic device may determine the current travel status of the electronic device based on the time relationship between the time information and the itinerary information. When the current time is between the start time and the end time in the itinerary information, the travel status may be determined; when the time difference between the current time and the start time of the itinerary information is less than or equal to (less than) the first threshold duration, the about to travel status may be determined; when the time difference between the current time and the start time of the itinerary information is greater than (greater than or equal to) the first threshold duration, the about to not travel status may be determined. It should be noted that for different types of travel plans, the first threshold duration may be set differently, and this application does not limit the first threshold duration. Among them, the itinerary information is a travel plan information that is closest to the current time and has not yet occurred. The start time and end time in the itinerary information have specific meanings for different types of activities and plans, such as the departure time and arrival time of a flight; the start time and end time of a meeting, the start time and end time of a performance, etc., which are not specifically defined in this application.
[0176] For example, the electronic device obtains flight information from place A to place B at 14:00 on February 6, and the current time is 13:30 (time information). The electronic device can determine that the current time 13:30 is 30 minutes away from the departure time 14:00 (start time) in the flight information, which is less than the first threshold duration of 2 hours. Therefore, the electronic device can determine that the current travel status is a state of about to travel.
[0177] After the electronic device determines the travel status based on the trip information and time information, it can determine the target charging scenario based on the travel status. If the travel status is that the user has traveled or is about to travel, the electronic device can determine the target charging scenario as a fast charging scenario; if the travel status is that the user is not traveling, the electronic device can determine the target charging scenario as a non-fast charging scenario.
[0178] In the above case, the electronic device can determine the charging scenario based on the user's itinerary. For users who have travel activities, the charging scenario determined by the above process is more accurate.
[0179] Case 4: Determine the target charging scenario based on the location type of the location information.
[0180] The electronic device may include a public place type and a residence type based on the current place type.
[0181] Public place types are the types of public places where users leave their residences for activities. Examples include stations, airports, shopping malls, scenic spots, outdoor areas, restaurants, and theaters. Location types include residential areas, companies, hotels, and permanent residences.
[0182] When the electronic device is located in a public place, the target charging scenario is a fast charging scenario; when the electronic device is located in a residential place, the target charging scenario is a non-fast charging scenario.
[0183] In the above case, the electronic device can determine the charging scenario based on the type of location where the user is located, and the judgment process is simple, effective and accurate.
[0184] Case 5: Determine the target charging scenario based on status information.
[0185] The electronic device can determine its motion state based on the state information and determine a target charging scenario based on the motion state. Motion states include stationary and mobile. When the electronic device is stationary, the electronic device can determine the target charging scenario as a non-fast charging scenario; when the electronic device is mobile, the electronic device can determine the target charging scenario as a fast charging scenario.
[0186] The electronic device can determine the motion state by acquiring acceleration data from the acceleration sensor. If the acceleration data is less than (less than or equal to) a first acceleration threshold, it can be determined that the electronic device is in a stationary state. If the acceleration data is greater than or equal to (greater than) the first acceleration threshold, it can be determined that the electronic device is in a moving state.
[0187] Optionally, the electronic device may obtain speed information of the electronic device's movement based on the positioning information. If the speed information is less than (less than or equal to) a first speed threshold, it may be determined that the electronic device is in a stationary state. If the speed information is greater than or equal to (greater than) the first speed threshold, it may be determined that the electronic device is in a moving state.
[0188] Alternatively, the electronic device may obtain angular velocity data via a gyroscope sensor and determine the motion state based on the angular velocity data. If the angular velocity data is less than (less than or equal to) a first angular velocity threshold, the electronic device may be determined to be in a stationary state. If the angular velocity data is greater than or equal to (greater than) the first angular velocity threshold, the electronic device may be determined to be in a moving state.
[0189] It should be noted that the process of determining the operating state may include any one or more of the three aforementioned methods. In the case of multiple methods, the stationary state judgment criteria of each method must be met before the electronic device can be determined to be in a stationary state; otherwise, the electronic device is considered to be in a moving state.
[0190] After determining the motion state of the electronic device, a target charging scenario can be determined based on the motion state. If the electronic device is stationary, the target charging scenario is a non-fast charging scenario; if the electronic device is moving, the target charging scenario is a fast charging scenario.
[0191] It should be noted that the above-mentioned acceleration data, positioning information and angular velocity data should be the average value obtained by the electronic device in the recent period of time, rather than the data of a single time, so as to ensure the accuracy of scene determination.
[0192] In the above situation, the electronic device can determine the target charging scenario based on the electronic device's own motion state and then select the corresponding charging mode. Combined with the user's actual usage, if the electronic device is often moved, it means that the user is using it or using it outside, which means that the user's basic activity range is large, and they are more likely to be traveling, etc., and they need faster charging. If the electronic device is basically stationary or moves slightly, it means that the user's basic activity range is small, that is, they are more likely to be at home, etc., and they do not need faster charging. Therefore, the judgment process is simple, effective and accurate.
[0193] Case 6: Determine the target charging scenario based on charging information.
[0194] The charging information may include the current remaining power of the electronic device and the target charging time.
[0195] The electronic device can determine the target charging scenario based on the remaining power. If the current remaining power is less than (less than or equal to) a first power threshold, the electronic device determines the target charging scenario as a fast charging scenario; if the current remaining power is greater than or equal to (greater than) the first power threshold, the electronic device determines the target charging scenario as a non-fast charging scenario. The first power threshold can be, for example, 45% power.
[0196] In the above situation, if the remaining power of the electronic device is low, the fast charging mode is given priority to ensure normal use of the user and improve the user experience.
[0197] Case 7: Determine the target charging scenario based on time information, location information, and travel information.
[0198] The electronic device can determine whether it is at its permanent residence based on location information, and obtain the planned status of the travel plan based on travel information. The planned status can indicate the status of the travel plan execution. The planned status includes five states: ready for implementation, on the way to implementation, in progress, completed implementation, and not implemented. Travel information may include information such as travel location, start time, and end time. When the planned status is ready for implementation, on the way to implementation, or in progress, the electronic device can determine that the target charging scenario of the electronic device is a fast charging scenario. When the planned status is completed implementation or not implemented, the electronic device can determine that the target charging scenario of the electronic device is a non-fast charging scenario.
[0199] The following details the process by which an electronic device determines a plan status based on time information, location information, and travel information. The electronic device can determine the plan status based on the location information, whether the device is at the permanent location, and the relationship between the current time and the plan.
[0200] FIG7 is a flow chart of a method for determining a target charging scenario disclosed in an embodiment of the present application. As shown in FIG7 , the method may include but is not limited to the following steps:
[0201] S701: The electronic device determines whether it is located at a station based on location information. If the electronic device is located at a station, S702 is executed; if the electronic device is not located at a station, S703 is executed.
[0202] S702: The electronic device determines whether the current time is before the start time in the trip information based on the time information. If the time information is before the start time, execute S705; if the time information is not before the start time, execute S704.
[0203] S703: The electronic device determines whether the current time is before the start time in the trip information based on the time information. If the time information is before the start time, execute S708; if the time information is not before the start time, execute S709.
[0204] S704: The electronic device determines whether the time information is between the start time and the end time in the trip information. If the time information is between the start time and the end time in the trip information, the electronic device executes S706; if the time information is not between the start time and the end time in the trip information, the electronic device executes S707.
[0205] S705: Is the time difference between the electronic device time information and the start time less than or equal to the second threshold duration? If yes, execute S706; otherwise, execute S707.
[0206] S706: The electronic device determines that the planning status of the first travel plan is ready to be implemented.
[0207] S707: The electronic device determines that the planning status of the first travel plan is not implemented.
[0208] S708: The electronic device determines that the planning status of the first travel plan is to proceed to implementation.
[0209] S709: The electronic device determines whether the current time is between the start time and the end time in the trip information. If the time information is between the start time and the end time in the trip information, the electronic device executes S711; if the time information is not between the start time and the end time in the trip information, the electronic device executes S710.
[0210] S710: The electronic device determines that the planning status of the first travel plan is completed.
[0211] S711: The electronic device determines that the planning status of the first travel plan is being implemented.
[0212] S712: The electronic device determines that the target charging scenario is a fast charging scenario.
[0213] When it is determined that the planning status of the first travel plan is being implemented, going to be implemented, or preparing to be implemented (executing S706 , S708 , and S711 ), the electronic device determines that the target charging scenario is a fast charging scenario.
[0214] S713: The electronic device determines that the target charging scenario is a non-fast charging scenario.
[0215] When it is determined that the planning status of the first travel plan is completed or not implemented (S707 and S710 are executed), the electronic device determines that the target charging scenario is a fast charging scenario.
[0216] In the above embodiment, when the location information is at the residence, if the time information is before the start time of the trip information and the time difference between the time information and the start time is greater than the second threshold time length, the electronic device may determine that the plan status is not implemented; if the time information is before the start time of the trip information and the time difference between the time information and the start time is less than or equal to the second threshold time length, the electronic device may determine that the plan status is ready to be implemented; if the time information is between the start time and the end time of the trip information, the electronic device may determine that the plan status is ready to be implemented; if the time information is after the end time, the electronic device may determine that the plan status is not implemented;
[0217] When the location information is not at the residence, if the time information is before the start time, the electronic device can determine that the plan status is on the way to implementation; if the time information is between the start time and the end time, the electronic device can determine that the plan status is being implemented; if the time information is after the end time, the electronic device determines that the plan status is finished implementation.
[0218] For example, assume that travel plan 1 is a high-speed rail trip from 2:00 PM to 3:00 PM. At 11:30 AM on the day of the trip, the user is at home. The electronic device can determine that 11:30 AM to 2:00 PM is two and a half hours, which is greater than the second threshold duration of 2 hours, and determine that the plan status is not implemented. At 2:30 PM on the day of the trip, 1:30 AM is one and a half hours away from 2:00 PM, but less than 2 hours, and the plan status can be determined to be in the preparation state. At 1:30 PM on the day of the trip, the user is not at their usual residence, and 1:30 PM is before 2:00 PM, so the plan status can be determined to be in the proceeding state. At 3:30 PM on the day of the trip, the user is not at their usual residence, and 3:30 PM is after 3:00 PM, so the plan status can be determined to be in the finished implementation state.
[0219] By comprehensively considering the location information, time information, and travel information, the electronic device can comprehensively and carefully decide on the target charging scenario to ensure the accuracy of the selected charging scenario.
[0220] The above-mentioned multiple situations are merely the judgment logic formed when the scene description information includes corresponding information. However, in the actual processing process, the scene description information may include more complex information, resulting in the specific judgment logic being a complex situation in which the above-mentioned multiple situations are superimposed.
[0221] Optionally, the electronic device may set a priority to determine the target charging scenario.
[0222] For example, the priority order from highest to lowest is: location information, time information, travel information, status information, and charging information. The electronic device can prioritize the selection based on time and location. If travel information is included, a comprehensive assessment can be made, such as in case 7 or case 3. If none of the above information is available, the target charging scenario can be determined based on time information or charging information.
[0223] Optionally, the electronic device gives priority to the fast charging scenario in multiple situations. For example, after judging multiple situations, if the target charging scenario is determined to be a fast charging scenario in at least one situation, the electronic device determines that the target charging scenario is a fast charging scenario; if the target charging scenario is determined to be a fast charging scenario in none of the situations, the electronic device determines that the target charging scenario is a non-fast charging scenario. It should be further explained that for the above 7 situations, the judgment logic of the electronic device is derived from the device policy, and the electronic device selects one or more of the policies for setting. This application does not limit this, so the above 7 implementation methods are not specifically limited in this application.
[0224] If the electronic device determines that a non-fast charging scenario is to be activated, the electronic device may execute the method flow of S603 to S606. If the electronic device determines that a fast charging scenario is to be activated, the electronic device may execute the method flow of S607.
[0225] S603: The electronic device determines whether to charge for a long time.
[0226] The electronic device can determine whether long-time charging is required in the current charging scenario according to the scenario description information. If long-time charging is required, the electronic device executes S605; if long-time charging is not required, the electronic device executes S604.
[0227] Optionally, the electronic device may determine whether to perform long-term charging based on whether the current time is during the nighttime period. The nighttime period may include the nighttime period in the time zone where the electronic device is located. If the current time is during the nighttime period, the electronic device may determine to perform long-term charging and may proceed to step S605. If the current time is not during the nighttime period, the electronic device may determine not to perform long-term charging and may proceed to step S604.
[0228] For example, when the electronic device is located in Beijing, the time period is 22:00 to 06:00 Beijing time. If the current time is 23:30, it falls within the nighttime period of 22:00 to 06:00, and it is determined that the electronic device can be charged for a long time, and the process proceeds to S605. If the current time is 14:00, it does not fall within the nighttime period of 22:00 to 06:00, and it is determined that the electronic device cannot be charged for a long time, and the process proceeds to S604. The nighttime period is merely an example, and different users may set different nighttime periods for electronic devices, and this application does not limit this.
[0229] In the above embodiment, if the user charges the electronic device at night and does not unplug the charger for a long time, the electronic device will continue to charge even when the battery is fully charged, which will damage the electronic device. Or after the battery is fully charged and charging stops, the electronic device will continue to consume power in standby mode. This power consumption will cause the user to use the electronic device in the morning when the battery is not fully charged. In the embodiment of the present application, in order to prevent the above-mentioned problem of long-term charging at night, the electronic device determines in advance whether it will be charged for a long time. In the case of long-term charging, the night mode is specifically turned on to solve the above-mentioned problem of insufficient power usage or premature consumption.
[0230] Optionally, the electronic device determines whether to perform long-term charging based on the current time and the travel plan. If the electronic device determines that the current time is less than (less than or equal to) a third threshold time from the planned start time, or the current time is between the start time and the end time in the most recent trip information, it determines not to perform long-term charging. If the time difference between the current time and the start time in the trip information is greater than or equal to (greater than), and the current time is during the night time, it is determined to perform long-term charging. If the time difference between the current time and the start time of the travel plan is greater than or equal to (greater than), and the current time is not during the night time, it is determined not to perform long-term charging.
[0231] In the above implementation, the electronic device can take into account the influencing factors of the night time period and the influencing factors of the travel plan, so as to ensure the accuracy of the time to start night charging, make the activation of the device charging mode more reasonable, and provide a better charging experience.
[0232] S604: The electronic device is charged in a normal charging mode.
[0233] If it is determined in S603 that long-term charging is not required, the electronic device can continue to charge in the normal charging mode through the power management module, maintaining the charging mode unchanged without switching. In this case, the electronic device charges more slowly and generates less heat, thereby avoiding damage to the lithium battery caused by rapid charging and extending the battery life.
[0234] Optionally, the electronic device may display FIG. 3D or the notification bar in FIG. 3D , or may display a card interface or other forms, which is not limited in this application.
[0235] The electronic device can first activate the corresponding charging mode and then begin displaying the prompt information. In Figure 3D, the electronic device has already started normal charging, and a window is reserved for the user to enter fast charging. For example, the user can click the "Start Fast Charging" 342 control. In response to this operation, the electronic device can activate the ultra-fast charging mode, that is, directly execute S607.
[0236] S605: The electronic device starts a nighttime charging mode.
[0237] If it is determined in S603 that long-term charging is required, the electronic device may activate nighttime charging mode via the power management module. In nighttime charging mode, the electronic device may charge at the speed of normal charging mode. During charging, the electronic device may determine whether interval charging conditions are currently met. If the interval charging conditions are met, charging is suspended for a period of time. If the interval charging conditions are not met, charging may continue.
[0238] In the embodiment of the present application, the methods for determining whether the interval charging condition is met may be different, as described below:
[0239] Optionally, the electronic device can determine whether the interval charging condition is met based on the battery power level. For example, if the battery power level is greater than or equal to (greater than) a second power threshold, the interval charging condition is met; if the battery power level is less than (less than or equal to) the second power threshold, the interval charging condition is not met. Assuming that the second power threshold is 80% of the battery's full power, it can be determined that the interval charging condition is met when the current charge reaches 80% of the full power.
[0240] Optionally, the electronic device may determine whether the interval charging condition is met based on the charging duration. If the charging duration is greater than or equal to (greater than) a fourth threshold duration, the interval charging condition is met. If the charging duration is less than (less than or equal to) the fourth threshold duration, the interval charging condition is not met.
[0241] Furthermore, during the previous charging process, the electronic device's battery was not fully charged. After pausing charging, the electronic device can determine a time to resume charging and start charging based on the estimated charging end time. If the time difference between the estimated charging end time and the current time is less than or equal to a preset charging duration, the electronic device resumes charging. If the time difference is greater than the preset charging duration, the electronic device remains suspended.
[0242] The electronic device can determine the time to resume charging based on travel plans and the nighttime rest period in the user's historical information. Specifically, if there are no travel plans during the current nighttime rest period, the electronic device can determine the estimated charging end time to be the nighttime period end time in the user's historical information. If the time difference between the current time and the nighttime period end time is less than or equal to the preset charging duration, charging will resume; otherwise, charging will remain suspended. If there are travel plans during the current nighttime rest period, the electronic device can determine the estimated charging end time based on the planned start time.
[0243] For example, the electronic device determines that the night rest period is 22:00 to 06:00 based on the user's historical information. The electronic device can determine that the time for continuing charging is 05:30 when the battery can be fully charged in 30 minutes. Charging starts at the time of continuing charging between the start time of the travel plan determined by the electronic device, and the time difference between the time of continuing charging and the start time of the plan is the first duration. The first duration may vary based on different travel plan types, which is not limited in this application. For example, if the travel plan type is a flight, the first duration may be 3 hours; if the travel plan type is a performance, the first duration may be 2 hours... This application does not limit this. For example, assuming that there is a flight plan at 05:00, considering that the user generally needs to arrive at the airport 2 hours in advance, the electronic device can determine to continue charging from 02:00, just when the user leaves for the airport when the battery is fully charged.
[0244] In addition, the electronic device may also display a night mode prompt message. The form of the prompt message may refer to the relevant contents of FIG. 3A to FIG. 5 , which will not be described in detail.
[0245] S606: The electronic device displays a quick charging prompt message.
[0246] When the electronic device determines that the target charging scenario is a fast charging scenario, S606 is executed, and the electronic device may display prompt information of fast charging in the form of a notification bar or a service card.
[0247] The electronic device may draw a service card or a notification bar, and the service card or notification bar may include a prompt to turn on or request to turn on the fast charging mode.
[0248] Optionally, the electronic device may first display a prompt message and then initiate the fast charging mode in response to a user's activation operation. The electronic device may display the user interface diagrams shown in Figures 3E and 3F, 4, or 5. The user may click the "Start This Time" control. In response to the user operation, the electronic device may initiate the fast charging mode, i.e., execute S607.
[0249] Optionally, the electronic device may automatically activate the fast charging mode upon detecting that the device is in a fast charging scenario and may display a prompt message at the same time. For example, the electronic device may display the user interface diagram of Figure 3C and execute S607. The above process is not limited to displaying the prompt message and activating the fast charging mode, that is, S606 and S607 can be executed in parallel.
[0250] S607: The electronic device starts a fast charging mode.
[0251] After the electronic device executes S606, it may execute S607. The electronic device may activate the fast charging mode. In the current scenario, the electronic device requires fast charging, so the fast charging mode is selected to ensure fast charging speed, high charging efficiency, short charging time, and better user experience.
[0252] Optionally, after enabling fast charging mode, the electronic device may display the user interface shown in FIG3E , wherein user interface 350 provides the user with an interactive path for fast charging. For example, if the user does not want to enable fast charging mode, they may click the "Stop Fast Charging" control 352 . In response to this operation, the electronic device may exit fast charging mode.
[0253] In the above-mentioned implementation, the electronic device may have a certain scene recognition capability, and the basic logic of these scene recognitions needs to make decisions based on the user's need for fast charging. When it is determined that the target charging scenario of the electronic device is a fast charging scenario, the fast charging mode is started to give priority to meeting the user's fast charging needs. When it is determined that the target charging scenario of the electronic device is a normal charging scenario, the normal charging mode is started. The user does not need the electronic device to be fast charged, and the electronic device can use the normal charging mode, which can slow down the aging of the battery and extend the service life of the electronic device. When it is determined that the target charging scenario of the electronic device is a night charging scenario, the electronic device can start the night charging mode, which can reduce the charging time, slow down the battery loss, and improve the user's charging experience.
[0254] In conjunction with the method for displaying the charging reminder in FIG6 , FIG8 is a flow chart of another charging method exemplarily proposed in an embodiment of the present application. As shown in FIG8 , the charging method may include but is not limited to the following steps:
[0255] S801: When connected to a power source, the electronic device obtains scene description information.
[0256] Among them, the charging scenarios may include normal charging scenarios and fast charging scenarios, and the corresponding charging modes may include normal charging mode and fast charging mode.
[0257] Among them, S801 can refer to the relevant description in S601 and will not be repeated here.
[0258] S802: The electronic device determines whether the target charging scenario is fast charging or normal charging based on the scenario description information. If the target charging scenario is normal charging, S803 is executed; if the target charging scenario is fast charging, S804 is executed.
[0259] S803: The electronic device is charged in a normal charging mode.
[0260] Among them, S803 can refer to the relevant description in S604 and is not repeated here.
[0261] S804: The electronic device displays a quick charging prompt message.
[0262] Among them, S804 can refer to the relevant description in S606 and is not repeated here.
[0263] S805: The electronic device starts a fast charging mode.
[0264] Among them, S805 can refer to the relevant description in S607 and is not repeated here.
[0265] In the above implementation, in scenarios where the electronic device needs to be charged urgently, the fast charging mode is selected to ensure fast charging, high efficiency, short charging time, and a better user experience. Alternatively, the normal charging mode is selected to slow down the battery lifespan degradation. Furthermore, by having only two charging modes for electronic devices, the judgment logic is simpler and clearer, resulting in faster processing and higher efficiency.
[0266] In conjunction with the method for displaying the charging reminder in FIG6 , FIG9 is a flow chart of another charging method exemplarily proposed in an embodiment of the present application. As shown in FIG9 , the charging method may include but is not limited to the following steps:
[0267] S901: When connected to a power source, the electronic device obtains scene description information.
[0268] Among them, the charging scenarios include three parallel scenarios: night charging, normal charging and fast charging.
[0269] S902: The electronic device determines a target charging scenario based on the scenario description information. If the target charging scenario is normal charging, S903 is executed; if the target charging scenario is nighttime charging, S905 is executed; if the target charging scenario is fast charging, S906 is executed.
[0270] Here, S902 can refer to the contents of S602 and S603 and will not be described in detail. At this time, the order of executing S602 and S603 is not limited.
[0271] S903: The electronic device is charged in a normal charging mode.
[0272] Among them, S903 can refer to the relevant description in S604 and will not be repeated here.
[0273] S904: The electronic device starts a nighttime charging mode.
[0274] Among them, S904 can refer to the relevant description in S605 and will not be repeated here.
[0275] S905: The electronic device displays a quick charging prompt message.
[0276] Among them, S905 can refer to the relevant description in S606 and will not be repeated here.
[0277] S906: The electronic device starts a fast charging mode.
[0278] Among them, S906 can refer to the relevant description in S607 and will not be repeated here.
[0279] In the above implementation, while ensuring a better user experience and slowing down the attenuation of battery life, the electronic device charging mode can be divided into three parallel situations, and the judgment logic parallel processing speed is faster and more efficient.
[0280] In combination with the software structure in FIG2 and the charging method in FIG6 to FIG9, FIG10 is a flow chart of another charging method disclosed in an embodiment of the present application. Among them, the power manager, system service, data acquisition module, business scenario recognition module and business presentation module included in the electronic device can refer to the relevant description in FIG2 and are not repeated here. As shown in FIG10, the charging method may include but is not limited to the following steps:
[0281] S1001: The power manager receives a charging notification.
[0282] When the charging management module detects a connection to a power source, the hardware-layer charging management module can send charging access information to the core-layer power module. After receiving the charging access information, the core-layer power module can send a charging notification to the power manager. The charging notification indicates that the electronic device is currently connected to a charger and can charge the electronic device's battery.
[0283] S1002: The power manager sends a power connection notification to the system service.
[0284] After receiving the charging notification, the power manager can send a power connection notification to the system service. In return, the system service receives the power connection notification from the power manager. The power connection notification indicates that a power source is connected and charging can begin.
[0285] S1003: The system service starts the normal charging mode.
[0286] After the system service receives the power connection notification from the power manager, it can start the normal charging mode, that is, the electronic device can start charging according to the normal charging mode. For details, please refer to the relevant description of S601 and will not be repeated here.
[0287] S1004: The system service sends a data collection request to the data collection module.
[0288] After receiving the charger connection notification, the system service can begin determining the target charging scenario, which requires obtaining the scenario description information. Therefore, the system service sends a data collection request to the data collection module, and the data collection module responds by receiving the data collection request from the system service. The data collection request is used to request the collection of scenario description information. For more information about the scenario description information, refer to S601, S801, and S901 and are not detailed here.
[0289] The processing of S1001 to S1004 may be the same as the processing of S601 , S801 and S901 , and thus will not be described in detail.
[0290] S1005: The data acquisition module obtains scene description information.
[0291] After receiving the data collection request, the data collection module can start to obtain scene description information. The process of obtaining scene description information can refer to S601 and the relevant description of the data collection module in Figure 2, which will not be repeated here.
[0292] S1006: The data collection module sends the scenario description information to the business scenario recognition module.
[0293] After the data acquisition module obtains the scene description information, it can send the scene description information to the business scene recognition module. Correspondingly, the business scene recognition module can receive the scene description information from the data acquisition module.
[0294] S1007: The business scenario recognition module determines the target charging scenario based on the scenario description information.
[0295] After receiving the scenario description information, the business scenario recognition module can determine the target charging scenario based on the scenario description information. The process of determining the target charging scenario based on the scenario description information (charging scenario recognition) by the business scenario recognition module can refer to the relevant descriptions of S602, S802 and S902 and will not be repeated here.
[0296] S1008: The business scenario identification module sends a target charging mode start instruction to the system service.
[0297] After the business scenario recognition module determines the target charging scenario, it can first determine a target charging mode activation instruction based on the target charging scenario, and then send the target charging mode activation instruction to the system service. The first charging mode activation instruction can be the charging mode corresponding to the target charging scenario, which can be one of the following: fast charging mode, normal charging mode, and nighttime charging mode. The determination process can refer to the relevant content of Figures 6, 8, and 9 above and is not repeated here.
[0298] S1009: When the target charging mode is not the normal charging mode, the system service starts the target charging mode; when the target charging mode is the normal charging mode, the system service keeps charging in the normal charging mode.
[0299] When the target charging mode (for example, the target charging mode is the fast charging mode) is not the normal charging mode, the system service receives the target charging mode start instruction and can start the target charging mode, switching from the normal charging mode to the target charging mode. Specifically, the system service can issue a task instruction for the target charging mode to the power module, and the power module controls the charging management module to start the target charging mode based on the task instruction.
[0300] In the case where the target charging mode is the normal charging mode, the system service receives the target charging mode start instruction and can maintain the normal charging mode without further processing.
[0301] S1010: The system service sends a prompt information display instruction to the business presentation module.
[0302] After executing S1009, the system service may send a prompt information display instruction to the service presentation module. Correspondingly, the service presentation module may receive the prompt information display instruction from the system service. The prompt information display instruction is used to instruct the display of charging prompt information. The prompt information display instruction may include the information to be displayed, such as the display information shown in Figures 3D, 3E, and 3F.
[0303] S1011: The service presentation module displays first target prompt information based on the prompt information display instruction.
[0304] After receiving the prompt information display instruction, the service presentation module can display the first target prompt information according to the prompt information display instruction. The first target prompt information can refer to Figures 3C to 5, as well as the related descriptions of S606, S604, S605, and S606, which will not be repeated here.
[0305] Another possible implementation is described in conjunction with S1009 to S1011. The system service may first issue a prompt information display instruction to the service presentation module, which instructs the service presentation module to display the second target prompt information. The user performs an operation based on the second target prompt information. In response to the operation to activate the target charging mode in the second target prompt information, the electronic device activates the target charging mode. Optionally, after activating the target charging mode, the electronic device may continue to execute S1010 and S1011.
[0306] In the above-mentioned implementation, the electronic device identifies the charging scenario and determines the most suitable charging mode at present, so as to ensure that the user can charge quickly while using fast charging as little as possible, thereby greatly reducing the heating of the battery due to long-term fast charging of the mobile phone, extending the battery life, and improving the user's charging experience.
[0307] It should be noted that, for the above method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention. The embodiments of the present application can be combined arbitrarily to achieve different technical effects.
[0308] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).
[0309] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0310] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.
Claims
1. A charging method, characterized in that: The method is applied to an electronic device, and the method includes: When connected to a power source, the electronic device determines a target charging scenario; When the target charging scenario is a first charging scenario, the electronic device is in a first charging mode; When the target charging scenario is the second charging scenario, the electronic device starts the second charging mode or the electronic device starts the second charging mode in response to a trigger request; Among them, the first charging time of the first charging mode is greater than the second charging time of the second charging mode; the first charging time is the time taken for the electronic device to charge from the first battery power to the second battery power in the first charging mode; the second charging time is the time taken for the electronic device to charge from the first battery power to the second battery power in the second charging mode.
2. The method according to claim 1, characterized in that The electronic device determines a target charging scenario, including: The electronic device acquires scene description information, where the scene description information indicates a user scene in which the electronic device is currently located; the scene description information includes one or more of location information, time information, travel information, charging information, and status information; The electronic device determines a target charging scenario based on the scenario description information.
3. The method according to claim 1 or 2, characterized in that The method further comprises: When the target charging scenario is the third charging scenario, the electronic device starts a third charging mode; Among them, the third charging time is less than or equal to the second charging time; the third charging time is the time taken by the electronic device to charge from the first battery power to the second battery power in the third charging mode; the electronic device is not continuously charged in the third charging mode.
4. The method according to any one of claims 1 to 3, characterized in that In case of connection to a power source, the method further comprises: The electronic device starts the first charging mode and displays a first user interface, where the first user interface includes a first battery icon, and the first battery icon indicates that the electronic device is being charged using the first charging mode; When the target charging scenario is the second charging scenario, the first user interface includes a second battery icon, and the second battery icon indicates that the electronic device is being charged through the second charging mode.
5. The method according to any one of claims 1 to 4, characterized in that The first charging scenario includes a normal charging scenario and a nighttime charging scenario, and the first charging mode includes a normal charging mode and a nighttime charging mode. When the target charging scenario is the first charging scenario, the charging mode of the electronic device is the first charging mode, including: When the first charging scenario is a normal charging scenario, the charging mode of the electronic device is the normal charging mode; When the first charging scenario is a nighttime charging scenario, the electronic device starts the nighttime charging mode.
6. The method according to any one of claims 1 to 5, characterized in that When the target charging scenario is the second charging scenario, the method further includes: The electronic device displays a first prompt message, where the first prompt message is used to remind the user to start the second charging mode; the first prompt message is displayed in a service card or a notification bar.
7. The method according to claim 6, characterized in that The electronic device displays the first prompt information, including: the electronic device is in the first charging mode and displays the first prompt information.
8. The method according to claim 6 or 7, characterized in that The first prompt information includes an interactive control for starting the second charging mode, and the electronic device starts the second charging mode in response to a trigger request for the interactive control, including: The electronic device receives an operation by a user triggering the interactive control; the operation is used to request to start the second charging mode; The electronic device activates the second charging mode in response to the operation.
9. The method according to any one of claims 6 to 8, characterized in that: After the electronic device displays the first prompt information and starts the second charging mode, the method further includes: The electronic device displays second prompt information, where the second prompt information includes an interactive control for the user to switch the charging mode or turn off the second charging mode.
10. The method according to claim 2, characterized in that In a case where the scenario description information includes location information, the electronic device determines a target charging scenario based on the scenario description information, including: When the location information indicates that the electronic device is within the user's permanent area, the electronic device determines the target charging scenario as a first charging scenario; and when the location information indicates that the electronic device is outside the user's permanent area, the electronic device determines the target charging scenario as a second charging scenario; or When the location information indicates that the distance between the electronic device and the user's permanent residence area is less than or equal to a first distance threshold, the electronic device determines the target charging scenario as a first charging scenario; when the location information indicates that the distance between the electronic device and the user's permanent residence area is greater than the first distance threshold, the electronic device determines the target charging scenario as a second charging scenario; or When the location information indicates that the location type of the electronic device is a residential type, the electronic device determines the target charging scenario as a first charging scenario; when the location information indicates that the location type of the electronic device is a public place type, the electronic device determines the target charging scenario as a second charging scenario.
11. The method according to claim 2, characterized in that In a case where the scenario description information includes the time information, the electronic device determining a target charging scenario based on the scenario description information includes: When the time information is within the residential period in the user history information, the electronic device determines the target charging scenario as the first charging scenario; when the time information is not within the residential period, the electronic device determines the target charging scenario as the second charging scenario.
12. The method according to claim 2, characterized in that In a case where the scenario description information includes the time information and the travel information, the electronic device determines a target charging scenario based on the scenario description information, including: The electronic device acquires the travel status based on the time information and the itinerary information; When the travel status is already traveled or about to travel, the electronic device determines the target charging scenario as the second charging scenario; when the travel status is not traveled, the electronic device determines the target charging scenario as the first charging scenario.
13. The method according to claim 12, characterized in that The electronic device obtains the travel status based on the time information and the itinerary information, including: If the time information is before the start time of the trip information, and the time difference between the time indicated by the time information and the start time is less than or equal to a first threshold duration, the electronic device determines that the travel status is about to travel; If the time difference between the time indicated by the time information and the start time is greater than the first threshold duration, the electronic device determines that the travel status is not traveling; If the time indicated by the time information is later than the start time, the electronic device determines that the travel status is already traveled.
14. The method according to claim 2, characterized in that In a case where the scenario description information includes the state information, the electronic device determining a target charging scenario based on the scenario description information includes: The electronic device determines a motion state of the electronic device based on the state information; If the motion state of the electronic device is a stationary state, the electronic device determines the target charging scenario as a first charging scenario; If the motion state of the electronic device is a moving state, the electronic device determines the target charging scenario as a second charging scenario.
15. The method according to claim 2, characterized in that In a case where the scenario description information includes the time information, the location information, and the travel information, the electronic device determines a target charging scenario based on the scenario description information, including: The electronic device determines, based on the time information, the location information, and the travel information, a plan status of a first travel plan, where the first travel plan is a closest yet-to-be-executed itinerary in the travel information; If the planning status of the first travel plan is preparing to implement, going to implement, or being implemented, the electronic device determines the target charging scenario as a second charging scenario; If the planning status of the first travel plan is completed or not implemented, the electronic device determines the target charging scenario as the first charging scenario.
16. The method according to claim 15, characterized in that The electronic device determines a plan status of a first travel plan based on the time information, the location information, and the travel information, including: When the location information indicates that the electronic device is at a residence, if the time indicated by the time information is earlier than the start time of the travel information, and the time difference between the time indicated by the time information and the start time is greater than a second threshold duration, the electronic device determines that the plan status is not implemented; If the time indicated by the time information is before the start time, and the time difference between the time indicated by the time information and the start time is less than or equal to the second threshold duration, the electronic device determines that the plan status is ready to be implemented; If the time indicated by the time information is between the start time and the end time of the trip information, the electronic device determines that the plan status is ready to be implemented; If the time indicated by the time information is later than the end time, the electronic device determines that the plan status is not implemented; In a case where the location information indicates that the electronic device is not at the residence, if the time indicated by the time information is earlier than the start time, the electronic device determines that the plan status is on its way to implementation; If the time indicated by the time information is between the start time and the end time, the electronic device determines that the plan status is being implemented; If the time indicated by the time information is later than the end time, the electronic device determines that the plan status is completed.
17. An electronic device, characterized in that: include: A display screen, one or more processors and one or more memories; the one or more memories are used to store computer program code, the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method according to any one of claims 1 to 16.
18. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 16.