CN115995856A - Charging method of electronic equipment and electronic equipment - Google Patents

Charging method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN115995856A
CN115995856A CN202111222294.9A CN202111222294A CN115995856A CN 115995856 A CN115995856 A CN 115995856A CN 202111222294 A CN202111222294 A CN 202111222294A CN 115995856 A CN115995856 A CN 115995856A
Authority
CN
China
Prior art keywords
charging
protocols
records
protocol
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111222294.9A
Other languages
Chinese (zh)
Inventor
彭彤
何泽瑞
于东洋
马理猴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111222294.9A priority Critical patent/CN115995856A/en
Priority to PCT/CN2022/119964 priority patent/WO2023065931A1/en
Publication of CN115995856A publication Critical patent/CN115995856A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging method of electronic equipment and the electronic equipment. The method comprises the following steps: acquiring at least two first records, wherein the at least two first records are records of P charging protocols which are supported by the electronic equipment and the charging equipment together, and the P charging protocols are used for performing charging identification on the electronic equipment and the charging equipment; according to the at least two first records, Q charging protocols are determined from the P charging protocols, wherein the Q charging protocols meet preset charging identification conditions, P is a positive integer, and P is greater than or equal to Q; and selecting a charging protocol from the Q charging protocols, identifying the electronic equipment according to the selected charging protocol until a target charging protocol which is successfully identified with the electronic equipment is selected, and charging the electronic equipment according to the target charging protocol.

Description

Charging method of electronic equipment and electronic equipment
Technical Field
The application relates to the technical field of terminals, in particular to a charging method of electronic equipment and the electronic equipment.
Background
And the charging identification process is that the electronic equipment supports and detects the charging protocol power of the charging equipment from high to low, and if the supporting of a certain charging protocol is detected, the charging identification process of the charging protocol is started. However, the charging identification is a hardware communication process, and in the case that the charging equipment is old or damaged or the process does not reach the standard, there may be charging protocol support, but in the case that the charging identification is not passed, the charging identification may be performed for several minutes but cannot enter a charging state, and power is continuously lost during the charging identification.
Therefore, it is important to quickly match the electronic device to an appropriate charging protocol, and how to improve the actual charging efficiency of the electronic device is a problem to be solved.
Disclosure of Invention
The application provides a charging method of electronic equipment and the electronic equipment, which are used for improving the actual charging efficiency of the electronic equipment.
In a first aspect, the present application provides a method for charging an electronic device. The method may be performed by an electronic device provided herein. The electronic device may be a portable terminal including a built-in battery, such as a mobile phone, a tablet computer, etc., and the electronic device has a charging device adapted to the electronic device, for example, when the electronic device is a mobile phone, the corresponding charging device may be a charger, the electronic device may also be a vehicle, and then the corresponding charging device may be a charging pile. The method comprises the following steps:
acquiring at least two first records, wherein the at least two first records are records of P charging protocols which are supported by the electronic equipment and the charging equipment together, and the P charging protocols are used for performing charging identification on the electronic equipment and the charging equipment;
according to the at least two first records, Q charging protocols are determined from the P charging protocols, wherein the Q charging protocols meet preset charging identification conditions, P is a positive integer, and P is greater than or equal to Q;
And selecting a charging protocol from the Q charging protocols, identifying the electronic equipment according to the selected charging protocol until a target charging protocol which is successfully identified with the electronic equipment is selected, and charging the electronic equipment according to the target charging protocol.
In the above manner, at least two first records are obtained first, and because the at least two first records are records that the electronic equipment and the charging equipment have performed charging identification on the P charging protocols, the actual result that the P charging protocols have performed charging identification can be characterized, so that Q charging protocols meeting preset charging identification conditions can be determined according to the at least two first records, and on the basis of the Q charging protocols meeting the preset charging identification conditions, the charging protocol is selected from the Q charging protocols until a target charging protocol successfully identified by the electronic equipment is selected, and the electronic equipment is charged according to the target charging protocol, thereby being capable of being more rapidly matched with the proper charging protocol and improving the actual charging efficiency of the electronic equipment.
In the charging method of the electronic device, Q charging protocols may be determined according to the at least two first records from the P charging protocols in a plurality of manners, and specifically may be as follows:
In one possible design, the first approach is:
sampling and selecting a first record set in at least two first records, and taking charging protocols successfully identified by charging in the first record set as Q charging protocols.
In the above manner, by sampling and selecting the first record sets in at least two first records, a small number of randomly dispersed first record sets can be reflected to the overall situation of at least two first records, so that the efficiency of determining Q charging protocols from the P charging protocols is increased.
In one possible design, the second approach is:
and determining the Q charging protocols according to the statistical analysis indexes of the charging identification of the P charging protocols in the at least two first records.
In the above manner, according to the statistical analysis indexes of the charging identification of the P charging protocols in the at least two first records, the at least two first records can be comprehensively considered, and the overall situation of the executed charging identification is comprehensively considered through specific indexes, so that the Q charging protocols are more reasonable.
The second mode may be specifically performed in the following ways:
in one possible design, determining a first protocol set according to the number of successful charge identification times of the P charging protocols in the at least two first records; and/or determining a second protocol set according to the identification failure times of the charging identification in the at least two first records of the P charging protocols; and determining the Q charging protocols according to the first protocol set and/or the second protocol set.
In one possible design, the Q charging protocols are determined according to the recognition success rates of charging recognition in the at least two first records of the P charging protocols.
In one possible design, the number of successful recognition times and/or the recognition success rate of the charging recognition in the at least two time periods in the P charging protocols are/is not reduced, and the charging protocols are used as a third protocol set; and/or charging protocols with non-increasing recognition failure times and/or recognition failure rates of charging recognition in the at least two time periods in the P charging protocols are used as a fourth protocol set; and determining the Q charging protocols according to the third protocol set and/or the fourth protocol set.
In the three possible designs, the number of successful recognition times and/or the number of failed recognition times of the P charging protocols in at least two first records of the executed charging recognition are comprehensively considered, or the success rate of recognition of the charging recognition is the success rate of recognition of the charging recognition, or the variation trend of success or failure of the charging recognition in the at least two time periods is adopted, and a part of charging protocols with preset charging recognition conditions are screened out in advance, so that the success rate of charging recognition in the process of selecting the charging protocols can be increased.
It should be noted that the above manner of determining Q charging protocols from the P charging protocols is merely an example, and many other manners are possible, and the above manner is not limited to this application.
The present application provides a method for charging an electronic device, which includes a plurality of implementation manners for determining a selection order of a charging protocol among Q charging protocols, and specifically:
first kind:
and acquiring at least two second records, wherein the at least two second records are records of the electronic equipment and the charging equipment for executing charging identification on the P charging protocols, the at least two second records can be at least two first records, and according to the generation sequence of the at least two second records of the second records which are successfully identified by the corresponding charging identification of the Q charging protocols, the selection sequence of selecting the charging protocols from the Q charging protocols is determined.
The second record is substantially the same as the first record, and the first record may be referred to for a generation method of the second record, etc. The at least two second records may or may not be at least two first records, such as records of different generation times or different charging protocols than the at least two first records.
In the above manner, at least two second records are selected by sampling, and the generation sequence of the second records which are successfully identified by charging and correspond to the Q charging protocols can be displayed on the at least two second records, so that the sequence of the successful identification of charging is reflected, and the efficiency of selecting the charging protocols from the Q charging protocols is improved.
Second kind:
acquiring at least two second records, wherein the at least two second records are records of the P charging protocols executed with charging identification by the electronic equipment and the charging equipment; and determining a selection sequence for selecting the charging protocols from the Q charging protocols according to the statistical analysis indexes of the charging identification of the Q charging protocols in the at least two second records and/or the charging efficiency indexes of the Q charging protocols.
In the above manner, by comprehensively considering the statistical analysis indexes of the charging identification in the at least two second records and/or the charging efficiency indexes of the Q charging protocols, the charging protocol which accords with the statistical analysis indexes and/or the charging efficiency indexes can be preferentially selected.
Specifically, in the second manner, the implementation manner of determining the selection order may be as follows:
In one possible design, for any one of the Q charging protocols, determining a comprehensive grading value of the charging protocol according to a first grading value and a first weight value corresponding to a statistical analysis index of the charging protocol, and a second grading value and a second weight value corresponding to a charging efficiency index of the charging protocol; and determining the selection sequence according to the comprehensive grading values of the Q charging protocols.
In one possible design, the sequence from the large number of recognition successes or the recognition success rate of the charging recognition in the at least two second records by the Q charging protocols or the sequence from the small number of recognition failures or the recognition failure rate of the charging recognition in the at least two second records by the Q charging protocols is used as the selection sequence.
In one possible design, the order of the charging efficiency indexes of the Q charging protocols from large to small is used as the selection order.
The charging efficiency index of any charging protocol is the rated charging power of the charging protocol, or is determined according to the rated charging power of the charging protocol and the hardware efficiency of the charging protocol, or is determined according to the average charging current recorded in the at least two second records by the charging protocol.
In the three possible designs, the statistical analysis index and the weight value thereof, and the charging efficiency index and the weight value thereof are comprehensively considered, or the statistical analysis result of success or failure of charging identification is considered, or the sequence from big to small of the charging efficiency indexes of the Q charging protocols is directly considered, so that the charging protocols which accord with the statistical analysis index and/or the charging efficiency index can be preferentially selected, the charging equipment can preferentially perform the charging identification process which accords with the statistical analysis index and/or the charging efficiency index, and the actual charging efficiency of the electronic equipment is increased.
In a second aspect, embodiments of the present application further provide an electronic device. The electronic device includes a charging interface, at least one processor, and a memory; the charging interface is used for connecting power supply equipment; the memory is used for storing one or more computer programs; the one or more computer programs, when executed by the at least one processor, enable the electronic device to implement the method of any one of the first aspect and its possible designs.
In a third aspect, embodiments of the present application further provide a computer readable storage medium comprising a computer program, which when run on an electronic device causes the electronic device to perform the method of the first aspect of embodiments of the present application and any one of the possible designs of the first aspect thereof.
In a fourth aspect, a computer program product according to an embodiment of the present application comprises instructions that, when executed on an electronic device, cause the electronic device to perform the method according to the first aspect of the embodiment of the present application and any one of the possible designs of the first aspect.
Drawings
Fig. 1 is an example of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present application;
fig. 3 is a flowchart of a charging method of a mobile phone 100 according to an embodiment of the present application;
fig. 4 is a flow chart of a charging method of an electronic device according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another charging method of the mobile phone 100 according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Application scenario
The embodiment of the application relates to two electronic devices, namely a charged device and a power supply device, wherein the charged device can be an electronic device such as a mobile phone, an ipad, a notebook computer and the like, the power supply device (or called a charging device, an external power supply and the like, the name of the embodiment of the application is not limited), the power supply device is connected with the charged device to supply power to the charged device, and in some scenes, the charged device can also be a vehicle, and the power supply device can be a charging pile. For convenience of description, the charged device will be referred to as an electronic device, and the power supply device will be referred to as a charging device.
The charging device related to the embodiment of the application is connected with the electronic device, and can provide electric energy in the charging device for the electronic device. The charging device may be a power adapter or other devices, and any device having a function of charging an electronic device may be suitable for the solution provided in the embodiments of the present application.
It should be noted that, the technical scheme provided by the application can be applied to a wired charging scene, and also can be applied to a wireless charging scene. Under the wireless scene of charging, set up the transmitting terminal coil in the charging equipment, set up the receiving terminal coil in the electronic equipment, through the magnetic field coupling effect transmission electric energy between transmitting terminal coil and the receiving terminal coil, can realize that charging equipment transmits the electric energy to electronic equipment. In a wired charging scenario, the electronic device and the charging device are connected by wire (e.g., via a power cord).
It is noted that the terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in embodiments of the present application, "one or more" means one, two, or more than two; "and/or", describes an association relationship of the association object, indicating that three relationships may exist; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "may be a relationship that generally indicates that the front and rear associated objects are an" or ".
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In the following, the application to the wired charging scenario is described as an example, and of course, in the wireless charging scenario, the implementation principle is similar to that in the wired charging scenario.
Referring to fig. 1, examples of two application scenarios are provided in the embodiments of the present application. As shown in fig. 1 (a), this scenario includes an electronic device 100 (for example, a mobile phone) and a charging device 200 (for example, a charger of the mobile phone). In this scenario, after the electronic device 100 is connected to the charging device 200, the charging device 200 is connected to an external power source (such as household electricity), and the charging device 200 obtains electric power from the household electricity and then supplies the electric power to the electronic device 100.
It should be understood that in fig. 1 (a), taking an example in which the electronic device 100 and the charging device 200 are connected by wire, the electronic device 100 may be connected to the charging device 200 by wireless. The charging device 200 obtains power from the home electric and then supplies the power to the electronic device 100.
As shown in fig. 1 (b), this scenario includes an electronic device 100 (for example, a mobile phone) and a charging device 200 (for example, a charger). In this scenario, after the mobile phone is connected to the charger, the charger provides the stored electrical energy to the mobile phone.
The technical solution of the embodiment of the present application may be applicable to the above two application scenarios, or other application scenarios, which are not limited in this application embodiment.
In the embodiment of the application, the electronic device may be a device for providing voice and/or data connectivity to a user, and may include, for example, a handheld device with a wireless connection function or a terminal device connected to a wireless modem. The terminal device may communicate with the core network via a radio access network (radio access network, RAN), exchanging voice and/or data with the RAN. The terminal device may include a User Equipment (UE), a wireless terminal device, a mobile terminal device, a subscriber unit (subscriber unit), a subscriber station (subscriber station), a mobile station (mobile station), a mobile station (mobile), a remote station (remote station), an Access Point (AP), a remote terminal device (remote terminal), an access terminal device (access terminal), a user terminal device (user terminal), a user agent (user agent), or a user equipment (user device), etc. For example, mobile phones (or "cellular" phones), mobile computers, tablet computers, personal digital assistants (personal digital assistant, PDAs), media players, smart televisions, wearable devices (e.g., smart watches, smart helmets, smart bracelets, etc.), routers, set top boxes, speakers, cell phones, tablets, etc., as well as combinations of two or more of the foregoing, and the like. The electronic device may also be an in-vehicle system, such as an electric vehicle or the like.
Embodiments of an electronic device 100, a graphical user interface (graphical user interface, GUI) for such an electronic device, and for using such an electronic device in the scenario illustrated in fig. 1 are described below. In some embodiments of the present application, the electronic device 100 may be a portable terminal including a built-in battery, such as a mobile phone, a tablet computer, or the like, or may be a terminal not including a built-in battery, which is not limited in the embodiments of the present application. Exemplary embodiments of the electronic device 100 described above include, but are not limited to, portable electronic devices that carry iOS, android, microsoft or other operating systems. The portable electronic device may also be other portable electronic devices, such as a digital camera. It should also be appreciated that in other embodiments of the present application, the electronic device 100 described above may be a desktop computer or the like instead of a portable electronic device.
In general, the electronic device 100 may support a variety of applications. Such as one or more of the following applications: camera applications, instant messaging applications, photograph management applications, and the like. Among these, instant messaging applications can be varied. Such as WeChat, tencel chat software (QQ), whatsApp Messenger, company me (Line), photo sharing (instagram), kakao Talk, spike, etc. The user can send information such as characters, voice, pictures, video files and other various files to other contacts through the instant messaging application; alternatively, the user may implement a video or audio conversation with other contacts through an instant messaging application.
In the following, the electronic device 100 is taken as an example of the mobile phone 100, and the mobile phone has a built-in battery as an example, and fig. 2 shows a schematic structural diagram of the mobile phone 100.
The handset 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. Wherein the sensor module 180 may include a fingerprint sensor 180H, a touch sensor 180K.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural center or a command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a mini (mini) USB interface, a micro (micro) USB interface, a USB Type C (USB Type C) interface, or the like. The USB interface 130 may be used to connect to a power adapter to charge the handset 100, or may be used to transfer data between the handset 100 and peripheral devices. When the mobile phone 100 is connected to a charging device (such as a power adapter) through the USB interface 130, the mobile phone 100 may transmit power to the power adapter through the USB interface 130. Specifically, the configuration signal lines (configuration channel, cc) in the USB interface 130 (such as the USB type-c interface) of the mobile phone 100 may detect the current sent by the power adapter, so as to implement current transmission between the mobile phone 100 and the power adapter.
It should be noted that, in fig. 1, the mobile phone 100 is connected to the power adapter through the USB interface 130 as an example, in practical application, the mobile phone 100 may also be connected to the power adapter through other manners, for example, in a wireless charging scenario, the mobile phone 100 transmits electric energy through a magnetic field coupling effect between a transmitting end coil and a receiving end coil in the power adapter, or in a wired charging scenario, the mobile phone 100 transmits electric energy through other types of charging interfaces connected to the power adapter. Therefore, the connection manner between the mobile phone 100 and the power adapter is not limited in the embodiments of the present application.
It should be appreciated that when the mobile phone 100 is connected to the power adapter through the USB interface 130, the power transmission between the mobile phone 100 and the power adapter may be realized through the USB interface 130; when the mobile phone 100 is charged by using a wireless charging manner, for example, the mobile phone 100 is wirelessly connected to the power adapter by a bluetooth connection manner, so that the power transmission between the mobile phone 100 and the power adapter can be transmitted through bluetooth. The power transmission process between the mobile phone 100 and the power adapter includes the process of identifying the power supply capability of the power adapter by the mobile phone 100, and the specific details are described later. The power adapter and the handset 100 may support the same protocols, such as charging protocol (power delivery protocol, PDP), super fast charging protocol (super charging protocol, SCP), fast charging protocol (fast charging protocol, FCP), etc. The electrical protocols can also be divided into private charging protocols and public charging protocols. Proprietary charging protocols such as SCP, public charging protocols such as (universal fast charging specification, UFCS) incorporate the fast charging specification and battery charging specification version 1.2 (battery charging specification revision 1.2, bc1.2).
The charging process of the mobile phone 100 will be described below taking the application scenario shown in fig. 1 (a) as an example.
The power adapter is connected to an external power source (e.g., household electricity, etc.), obtains electric power from the external power source (e.g., household electricity, etc.), and then inputs the obtained electric power to the mobile phone 100 (e.g., to the charge management module 140 in the mobile phone 100) through the USB interface 130. The charge management module 140 is used to manage the charging process. For example, the charging management module 140 is configured to determine whether to provide the power received from the USB interface 130 to the power management module 141 or to the battery 142. The power management module 141 receives power input from the battery 142 and/or the charge management module 140, and provides power to the processor 110, the internal memory 121, the external memory via the external memory interface 120, the display 194, the camera 193, and the wireless communication module 160. For example, when the mobile phone 100 is not connected to the power adapter, the power management module 141 receives the power input from the battery 142 to supply power to the respective components. When the mobile phone 100 is connected to the power adapter and is charged, the power management module 141 receives the electric energy input by the charging management module 140 to supply power to each component, and of course, when the mobile phone 100 is connected to the power adapter and is charged, the power management module 141 can also receive the electric energy input by the battery 142 to supply power to each component. It should be noted that, the power management module 141 may supply power to each component in sequence, for example, the power management module 141 may supply power to the processor 110 first, then supply power to other components, and after the power management module 141 supplies power to the processor 110, the power management module 141 may be notified of which parts of the other components are supplied with power, or which components are not supplied with power, etc.
Thus, after the mobile phone 100 is connected to an external power source (such as household electricity) through the power adapter, the charging process may be as follows:
after receiving the power from the external power source, the power adapter inputs the power to the charge management module 140 through the USB interface 130. The charge management module 140 stores power for the battery 142 on the one hand and provides input power for the power management module 141 on the other hand; alternatively, the charge management module 140 simply stores power for the battery 142, and the power management module 141 in turn obtains power from the battery 142 to power the various components (e.g., the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, etc.).
It should be noted that, the power management module 141 may be connected to the processor 110, and the processor 110 may determine which components to supply power to the power management module 141, for example, when the mobile phone 100 is powered on in a lower power operating mode, the processor 110 determines that the display 194 needs to be powered, and the wireless communication module 160 does not need to supply power, so that the power management module 141 supplies power to the display 194 and does not supply power to the wireless communication module 160, which will be described later.
The power management module 141 may provide a json configuration interface, where the json configuration interface may configure policy switches of different products, for example, the policy switches may be history data clearing switches, which is to avoid a situation that a version of software error causes the charging protocol to be unrecognizable.
It should be appreciated that when the handset 100 is not connected to a power adapter, the handset 100 may power the various devices through the power stored in the battery 142.
The wireless communication function of the mobile phone 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the handset 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the handset 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 1 and the mobile communication module 150 of the handset 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the handset 100 can communicate with a network and other devices through wireless communication technology. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The mobile phone 100 implements display functions through a GPU, a display 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 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 change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the handset 100 may include N display screens 194, N being a positive integer greater than 1.
The camera 193 is used to capture still images or video. The camera 193 may include at least one front camera and/or at least one rear camera.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the cellular phone 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store, among other things, an operating system, and software code for at least one application program (e.g., a camera application, a WeChat application, etc.). The data storage area may store data (e.g., images, video, etc.) generated during use of the handset 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. Specifically, the internal memory 121 may store software modules/codes of the startup control method provided in the embodiment of the present application, and when the processor 110 runs the software modules/codes, corresponding flow steps are executed. The internal memory 121 may also store values of a preset voltage, a preset current, a preset power, etc.
The external memory interface 120 may be used to connect an external memory card, such as a micro (secure digital) card, to enable expanding the memory capabilities of the handset 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
Of course, the software modules/codes of the startup control method provided in the embodiments of the present application may also be stored in the external memory, and the processor 110 may execute the software modules/codes through the external memory interface 120 to execute the corresponding flow steps. The values of the preset voltage, the preset current, the preset power, etc. in the mobile phone 100 may also be stored in the external memory.
The handset 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, voice call, etc.
The fingerprint sensor 180H is used to collect a fingerprint. The mobile phone 100 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100 at a different location than the display 194.
Of course, the sensor module 180 may also include other sensors, such as pressure sensors, gyroscopic sensors, barometric sensors, magnetic sensors, acceleration sensors, distance sensors, proximity sensors, temperature sensors, ambient light sensors, bone conduction sensors, etc., as embodiments of the present application are not limited in this regard.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys or touch keys. The handset 100 may receive key inputs, generating key signal inputs related to user settings and function control of the handset 100. The startup instruction, the confirmation instruction, etc. in the embodiment of the present application may be input through the security check 190. Of course, may also be entered via the display 194.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195 to enable contact and separation with the handset 100.
It should be understood that the structure shown in fig. 2 is not limited to the specific configuration of the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown in fig. 2, or certain components may be combined, certain components may be split, or different arrangements of components. The components shown in fig. 2 may be implemented in hardware, software, or a combination of software and hardware.
Charging method of electronic equipment
The following describes a charging procedure of the mobile phone 100, as shown in fig. 3, and the specific charging procedure is as follows:
step 301: the handset 100 is connected to a power adapter.
Step 302: the cell phone 100 performs charge identification of the charge protocol.
The charging identification process (may also be referred to as a protocol handshaking process) refers to a process of mutually confirming a charging protocol between the mobile phone 100 and the power adapter, wherein the mobile phone 100 and the power adapter can jointly support multiple charging protocols, and the mobile phone 100 and the power adapter can enter a charging state after one of the charging protocols is successfully charged and identified. The charging identification process may specifically be that when the mobile phone 100 obtains a charging protocol handshake packet from the power adapter, it determines a charging protocol matched with the charging protocol handshake packet in the charging protocols stored in the mobile phone, where the mobile phone 100 responds according to the charging protocol matched with the charging protocol handshake packet, the mobile phone 100 sends a specific message to the power adapter or reads an identifier of the power adapter, if the reply message of the power adapter or the read identifier of the power adapter is received and meets an expected value of the mobile phone 100 side, it indicates that the charging identification is successful, and the mobile phone 100 may also directly select the charging protocol to send the specific message corresponding to the charging protocol to the power adapter or read the identifier of the power adapter.
After the mobile phone 100 performs the charging identification of the charging protocol, step 303 is executed.
Step 303: the handset 100 enters a charged state.
Step 304: the charging of the handset 100 is completed or normally disconnected from the power adapter.
The flow shown in fig. 3 is also applicable to other electronic devices.
For multiple charging protocols, the mobile phone 100 can perform charging identification by continuously switching the charging protocols, and can also perform charging identification on a certain charging protocol finally. However, for reasons such as the power adapter being old, there may be cases where the charging protocol supports but the charging identification is not passed. The mobile phone 100 cannot enter a charging state until the charging identification is successful, and power is continuously lost during the charging identification. It is therefore important how to quickly match the electronic device to the appropriate charging protocol and how to reduce the lost power of the terminal device during the charging identification.
In order to enable the electronic equipment to be quickly matched with a proper charging protocol, the charging protocol needs to be selected more reasonably and accurately. Referring to fig. 4, a flowchart of a charging method of an electronic device according to an embodiment of the present application is shown. The method can be applied to the electronic device shown in fig. 1 or similar to the functional structure of fig. 1, that is, the method can be executed by each hardware part in the electronic device in combination with a corresponding software program, and can be executed according to the following steps:
Step 401: at least two first records are acquired.
Step 402: and determining Q charging protocols from the P charging protocols according to the at least two first records.
Step 403: and selecting a charging protocol from the Q charging protocols, identifying the electronic equipment according to the selected charging protocol until a target charging protocol which is successfully identified with the electronic equipment is selected, and charging the electronic equipment according to the target charging protocol.
The at least two first records are records of charging identification executed by the electronic equipment and the charging equipment on P charging protocols, and the at least two first records can be records of all charging identification continuously recorded in one time period or records of partial charging identification in one time period.
The P charging protocols are charging protocols commonly supported by the electronic equipment and the charging equipment. The electronic device stores S charging protocols (i.e. charging protocols supported by the electronic device), S is greater than or equal to P, and then the P charging protocols can be obtained as follows: taking the mobile phone 100 and the power adapter as an example, after the power adapter is connected with the mobile phone 100, if the mobile phone 100 and the power adapter successfully charge any one of the S charging protocols, the identification of the power adapter is recorded, the charging protocol successfully identified by the charging is marked as the charging protocol jointly supported by the electronic equipment and the charging equipment, the charging protocols in the S charging protocols all perform the above processes, so that the charging protocols jointly supported by the electronic equipment and the charging equipment in the S charging protocols can be obtained, and P charging protocols can be obtained, or part of the charging protocols can be selected as P charging protocols.
For the first record in any one of the at least two first records, the first record may record a success or failure result of the first charging protocol for one charging identification (a result of the first charging protocol for which the charging identification is successful may be referred to as a legal record, a result of the first charging protocol for which the charging identification is failed may be referred to as an illegal record), or may record a charging identification duration of the first charging protocol identification and an average charging current after the charging identification, where the first charging protocol is any one of the P charging protocols. Wherein the success or failure of charge identification may be defined as follows: the successful charge identification is a state that a connected notification is received in the charge identification process and continuous current exists in a preset time period; in the charging identification process, an abnormal state that the connection notification is received but the disconnection notification is not received or an abnormal state that no current exists after repeated connection is generated, and the charging identification is recorded as failure. It should be noted that the definition of success or failure of the charging identification is merely taken as an example, in some embodiments, other determination manners of success or failure of the charging identification may be set, for example, the determination may be performed according to the charging current and the charging voltage, for example, if, after a preset period of time, the charging current of any charging protocol is still smaller than the charging current threshold, the charging identification of the charging protocol is determined to be failed, otherwise, the charging identification of the charging protocol is determined to be successful, and the determination according to the charging voltage is the same.
The first record generation mode may be: after the electronic device performs charging identification, the charging driving software of the electronic device sends notification information to a charging application (such as a native service), and the charging device generates a first record according to the notification information. The electronic device may have a record of charging identification of only one charging device, or may have a record of charging identification of a plurality of charging devices, and the record of charging identification of different charging devices, the identification of the charging device, and the result of charging identification may be distinguished by the identification of different charging devices. Wherein the identification of the charging device may be generated in the following manner: a hash value is generated, for example, by a product Serial Number (SN) of the charging device and a Vendor Id (VID), as an identification of the charging device.
In addition, the maximum number of at least two first records, or the number of first records of each charging protocol may be defined as a fixed capacity, or a minimum number threshold may be defined, and at most, only the first records of the fixed capacity may be maintained, for example, the fixed capacity may be set to 100, then only the 100 first records that are latest in time sequence may be saved in the charging device, if there are newly generated first records, the earliest first record may be deleted, the newly generated first records may be added, so that the first records maintain the number of 100 records, and if the minimum number threshold is 10, then the number of first records stored in the electronic device may not be acquired when the number of first records is less than 10, and may be acquired as at least two first records when the number of first records is greater than or equal to 10.
The P charging protocols are charging protocols commonly supported by the electronic equipment and the charging equipment. The charging protocols supported by the electronic device and the charging protocols supported by the charging device are the same or may be different, and the P charging protocols are charging protocols supported by both the electronic device and the charging device.
The Q charging protocols satisfy the preset charging identification condition, P, Q are positive integers, and P is greater than or equal to Q, or P is greater than Q, so when the method is applied in step 402, it can be ensured that the charging protocols are screened out from the Q charging protocols, and when the method is applied in step 403, the method can be executed in a smaller range of the charging protocols, thereby improving the efficiency of selecting the target charging protocol.
When the charging protocol is selected from the Q charging protocols, only one charging protocol can be selected each time, the electronic equipment is charged and identified according to the selected charging protocol, and when the selected charging protocol is successful in charging and identifying the electronic equipment, the selected charging protocol is the target charging protocol, so that the electronic equipment can be charged according to the target charging protocol.
In the method for charging an electronic device provided in the embodiment of the present application, there may be multiple implementation manners for determining Q charging protocols from the P charging protocols, and these implementation manners may be applied to step 402, and may specifically be as follows:
First kind:
sampling and selecting a first record set in at least two first records, and taking charging protocols successfully identified by charging in the first record set as Q charging protocols.
For example, the P charging protocols are 10 charging protocols, at least two first records are 500 first records, 200 first records are randomly selected, and the 200 first records include 7 charging protocols with successful charging identification, and Q is 7, and the charging protocols with successful charging identification of 7 charging protocols are Q charging protocols. For example, in order to select the first record set more uniformly, the first record may be selected according to a set step length, for example, the step length may be selected to be 10 according to a sequence from the near to the far in time, the 1 st, 11 th, 21 st, … th and 491 first record is selected, and the 49 records include 5 charging protocols with successful charging identification, and then Q is 5, and the charging protocols with successful charging identification of 5 charging identification are Q charging protocols.
Second kind:
and determining the Q charging protocols according to the statistical analysis indexes of the charging identification of the P charging protocols in the at least two first records.
As to which statistical analysis indexes are based and how to determine the Q charging protocols, it may be flexibly set based on requirements, specifically, it may be as follows:
Mode (1):
step (1-1): and determining a first protocol set according to the identification success times of the charging identification in the at least two first records by the P charging protocols. And/or
Step (1-2): and determining a second protocol set according to the identification failure times of the charging identification in the at least two first records by the P charging protocols.
Step (1-3): and determining the Q charging protocols according to the first protocol set and/or the second protocol set.
Step (1-1) and step (1-2) can determine corresponding protocol sets by setting a threshold, for example, in step (1-1), charging protocols with the number of times of successful recognition being greater than the threshold of the number of times of successful recognition can be used as a first protocol set, or the previous Q charging protocols can be selected as the first protocol set according to the sequence from the number of times of successful recognition to the small; correspondingly, in the step (1-2), the charging protocols with the recognition failure times smaller than the failure times threshold value can be used as the second protocol set, or the first Q charging protocols are selected as the second protocol set according to the sequence from the small recognition failure times to the large recognition failure times, and optionally, the failure times threshold value is 1.
Step (1-1) and step (1-2) may be performed alternatively or both, if step (1-1) and step (1-2) are performed alternatively, the Q charging protocols are determined according to only the protocol set obtained by performing the alternative, for example, step (1-1) is performed only, the Q charging protocols are determined according to the first protocol set, and the first protocol set may be used as Q charging protocols; accordingly, if both steps (1-1) and (1-2) are performed, the Q charging protocols may be determined according to the first protocol set and the second protocol set, for example, an intersection of the first protocol set and the second protocol set is used as the Q charging protocols.
It should be noted that the essence of step (1-1) and step (1-2) is not the same, and the number of successful recognition times of the charging protocol is not necessarily high for the charging protocol with a small number of failed recognition times. For example, the P charging protocols are charging protocol a, charging protocol B and charging protocol C, and the at least two first records are 500 first records, wherein the number of times of identification success of the charging protocol a is 181, the number of times of identification failure is 19, the number of times of identification success of the charging protocol B is 160, the number of times of identification failure is 8, the number of times of identification success of the charging protocol C is 120, and the number of times of identification failure is 12.
If 2 charging protocols are selected according to the successful recognition times, the charging protocols are a charging protocol A and a charging protocol B; if 2 charging protocols are selected according to the number of recognition failures, the charging protocols are a charging protocol B and a charging protocol C.
Mode (2):
and determining the Q charging protocols according to the recognition success rates of the charging recognition in the at least two first records of the P charging protocols.
The step can determine Q charging protocols by setting a threshold, for example, in the step, the charging protocols with the recognition success rate greater than the success rate threshold can be used as Q charging protocols.
Since the sum of the success rate and failure rate of the charging protocols is 1, the steps of determining the Q charging protocols according to the recognition success rate and recognition failure rate are substantially identical.
Mode (3):
the statistical analysis index may consider a time period division, and the at least two first records may include first records within at least two time periods, as described by:
step (3-1): and taking the charging protocols with the identification success times and/or the identification success rate of the charging identification in the at least two time periods not decreasing in the P charging protocols as a third protocol set. And/or
Step (3-2): and taking the charging protocols with non-increasing recognition failure times and/or recognition failure rates of the charging recognition in the at least two time periods in the P charging protocols as a fourth protocol set.
Step (3-3): and determining the Q charging protocols according to the third protocol set and/or the fourth protocol set.
It should be noted that, the at least two time periods may be at least two first records, or may be at least two first records selected from the at least two first records, where the at least two time periods may be greater than a threshold of the number of time periods, for example, the number of recognition success times of charge recognition in 3 time periods is examined.
The step (3-1) and the step (3-2) may be performed alternatively or both, and since the step (3-1) or the step (3-2) also includes multiple schemes, or may be performed according to any scheme of the step (3-1) or the step (3-2), if the step (3-1) or the step (3-2) is performed alternatively, the Q charging protocols are determined according to only the protocol set obtained by performing the alternative, for example, only one scheme of the step (3-1) is performed, and then the charging protocol with the number of successful recognition times of charging recognition in the at least two periods not decreasing in the P charging protocols is used as the Q charging protocols; accordingly, if both the step (3-1) and the step (3-2) are performed, the Q charging protocols may be determined according to the third protocol set and the fourth protocol set, for example, an intersection of the third protocol set and the fourth protocol set is used as the Q charging protocols.
Because only one charging protocol can be selected at a time for charging identification, if the selected charging protocol successfully charges the electronic equipment, the charging protocol is the target charging protocol, otherwise, the next charging protocol is continuously selected for charging identification, and therefore the sequence of selecting the charging protocols is critical to whether the target charging protocol can be rapidly selected. In the charging method of the electronic device provided in the embodiment of the present application, how to determine the selection order of the charging protocols in the Q charging protocols is various, and these implementations may be applied to step 403, and may specifically be as follows:
first kind:
and acquiring at least two second records, wherein the at least two second records are records of the electronic equipment and the charging equipment for executing charging identification on the P charging protocols, the at least two second records can be at least two first records, and according to the generation sequence of the at least two second records of the second records which are successfully identified by the corresponding charging identification of the Q charging protocols, the selection sequence of selecting the charging protocols from the Q charging protocols is determined.
For example, the Q charging protocols are: charging protocol a, charging protocol B, and charging protocol C, at least two second records are arranged in the order of generation (prior to generation) as: b, success; a, failure; c, success; a, success; the generation sequence of the second records of the Q charging protocols, corresponding to the successful charging identification, in the at least two second records is charging protocol B, charging protocol C and charging protocol A.
When the above manner is applied to step 403, the second record of the Q charging protocols corresponding to the successful charging identification may be in the reverse order of the generating order of the at least two second records, which is used as the selecting order of the charging protocols from the Q charging protocols, and in the above example, the selecting order of the charging protocols from the Q charging protocols is the charging protocol a, the charging protocol B, and the charging protocol C, that is, the charging protocols with the preferential selecting time close to that of the successful charging identification.
Second kind:
acquiring at least two second records, wherein the at least two second records are records of the P charging protocols executed with charging identification by the electronic equipment and the charging equipment; and determining a selection sequence for selecting the charging protocols from the Q charging protocols according to the statistical analysis indexes of the charging identification of the Q charging protocols in the at least two second records and/or the charging efficiency indexes of the Q charging protocols.
The second record is substantially the same as the first record, and the first record may be referred to for a generation manner of the second record, etc. The at least two second records may or may not be at least two first records, such as records of different generation times or different charging protocols than the at least two first records.
It should be noted that the charging efficiency index of any charging protocol is the rated charging power of the charging protocol, or is determined according to the rated charging power of the charging protocol and the hardware efficiency of the charging protocol, or is determined according to the average charging current recorded in the at least two second records by the charging protocol.
Because the hardware charging channels used by different charging protocols are not necessarily the same, after the charging device charges the electronic device, the actual charging power may not be the rated charging power, and the ratio of the actual charging power to the rated charging power is the hardware efficiency.
Specifically, the implementation of determining the selection order may be as follows:
mode (1):
for any one of the Q charging protocols, determining a comprehensive grading value of the charging protocol according to a first grading value and a first weight value corresponding to a statistical analysis index of the charging protocol and a second grading value and a second weight value corresponding to a charging efficiency index of the charging protocol; and determining the selection sequence according to the comprehensive grading values of the Q charging protocols.
The (1) th mode may be applied to step 403, for example, the statistical analysis index is an identification success rate of the charging protocol in at least two second records, the charging efficiency index is a rated charging power, the first weight value is 0.6, and the second weight value is 0.4; the first grading value is the identification success rate of the charging protocol in at least two second records multiplied by 100, if the second charging protocol is any one of Q charging protocols, the identification success rate of the second charging protocol in at least two second records is 0.90, then the first grading value is 90, the second grading value is the ratio of the rated charging power of the second charging protocol to the highest rated charging power in the Q charging protocols multiplied by 100, if the rated charging power of the Q charging protocols comprises 25W, 20W and 15W, and the rated charging power of the second charging protocol is 15W, then the second grading value is 60, so the comprehensive grading value of the second charging protocol is 78. After the comprehensive scoring values of the Q charging protocols are calculated, the Q charging protocols can be selected according to the selection sequence from large to small of the comprehensive scoring values.
The above example describes the (1) mode by way of example only, and after selecting different statistical analysis indexes, charging efficiency indexes and scoring mechanisms, the comprehensive scoring values may be calculated in a corresponding manner, and the selection order may be determined.
Mode (2):
and taking the sequence from the large to the small of the identification success times or the identification success rates of the charging identification of the Q charging protocols in the at least two second records, or the sequence from the small to the large of the identification failure times or the identification failure rates of the charging identification of the Q charging protocols in the at least two second records as the selection sequence.
It should be noted that the sequence of the Q charging protocols from the large to the small recognition success rates in the at least two second records is substantially the same as the sequence of the corresponding recognition failure rates from the small to the large; and the Q charging protocols are substantially different from the order of the number of times of the successful recognition from the large to the small in the at least two second records and the order of the corresponding number of times of the failed recognition from the small to the large.
Mode (3):
and taking the sequence from the big to the small of the charging efficiency indexes of the Q charging protocols as the selection sequence.
For example, the order of the average charging currents of the Q charging protocols from large to small may be taken as the selection order.
In the embodiment of the application, the historical charging identification conditions of each charging protocol are analyzed through the charging identification record of the charging equipment, and the charging protocols with abnormal charging identification are eliminated, so that abnormal situations that a part of the charging protocols cannot be charged or are frequently disconnected are reduced. Therefore, in the process of selecting the charging protocol, the rapid selection of the charging protocol between the charging equipment and the electronic equipment is realized, the charging protocol can be more rapidly matched with the proper charging protocol, and the user experience is improved.
The implementation manner of determining the Q charging protocols from the P charging protocols and the implementation manner of determining the sequence of selecting the charging protocols from the Q charging protocols can be applied to the charging flow of the charging device, taking the mobile phone 100 and steps (1-1) to (1-3) as examples, and when the steps (1-1) to (1-3) are applied to the mobile phone 100, taking the charging flow of the charging method of the mobile phone 100 as examples according to the number of successful recognition times can be shown in fig. 5, specifically as follows:
step 501: the handset 100 is connected to a power adapter.
Step 502: the handset 100 obtains the identity of the power adapter.
Step 503: it is determined whether the first number of records of successful charge identification of the first charging protocol stored in the mobile phone 100 is greater than a threshold of success times.
The first charging protocol is any one of the P charging protocols, if yes, step 504 is executed, otherwise, the first charging protocol is updated, and step 503 is executed again.
Step 504: the handset 100 enters the charge identification of the first charge protocol.
Step 505: the handset 100 generates a first record of the charge identification of the first charging protocol.
Step 506: determining whether the mobile phone 100 successfully identifies the charging of the first charging protocol, if so, executing step 507, otherwise, updating the first charging protocol, and returning to step 503.
Step 507: the handset 100 enters a charged state.
Step 508: the charging of the handset 100 is completed or normally disconnected from the power adapter.
It should be noted that, various embodiments of the present application may be arbitrarily combined to achieve different technical effects. In the embodiments provided in the present application, the method provided in the embodiments of the present application is described from the point of view that the electronic device (mobile phone 100) is the execution subject. In order to implement the functions in the methods provided in the embodiments of the present application, the electronic device may include a hardware structure and/or a software module, where the functions are implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Some of the functions described above are performed in a hardware configuration, a software module, or a combination of hardware and software modules, depending on the specific application of the solution and design constraints.
The apparatus provided in the embodiments of the present application are described below with reference to the accompanying drawings to implement the method embodiments described above.
As shown in fig. 6, further embodiments of the present application disclose an electronic device, which may include: a charging interface 601, one or more processors 602, one or more memories 603; the devices described above may be connected by one or more communication buses 604. Wherein one or more computer programs may be stored in the memory 603 and configured to be executed by the one or more processors 602, the one or more computer programs comprising instructions which, when executed by the one or more processors 602, may implement all or part of the steps recited in the method embodiments shown in fig. 3-5, described above.
The processor 602 may be a central processing unit (central processing unit, CPU), or an application-specific integrated circuit (ASIC), may be one or more integrated circuits for controlling program execution, may be a baseband chip, or the like. The number of memories 603 may be one or more, and the memories 603 may be read-only memory (ROM), random access memory (random access memory, RAM) or disk memory, or the like.
The electronic device shown in fig. 6 may be a mobile phone, ipad, a notebook computer, a smart television, a wearable device (e.g., a smart watch, a smart helmet, or a smart bracelet), a vehicle, etc., and when the electronic device is a vehicle, the charging device may be a charging post. When the electronic device shown in fig. 6 is a cellular phone, the structure thereof can be seen in fig. 2.
Embodiments of the present application also provide a computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform all or part of the steps described in the method embodiments shown in fig. 3-5, and described above.
Embodiments of the present application also provide a computer program product comprising instructions that, when run on an electronic device, cause the electronic device to perform all or part of the steps described in the method embodiments including the preceding fig. 3-5.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
The foregoing description, for purposes of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the application to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the present application and its practical application to thereby enable others skilled in the art to best utilize the present application and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (14)

1. A charging method of an electronic device, comprising:
acquiring at least two first records, wherein the at least two first records are records of P charging protocols which are supported by the electronic equipment and the charging equipment together, and the P charging protocols are used for performing charging identification on the electronic equipment and the charging equipment;
according to the at least two first records, Q charging protocols are determined from the P charging protocols, wherein the Q charging protocols meet preset charging identification conditions, P is a positive integer, and P is greater than or equal to Q;
And selecting a charging protocol from the Q charging protocols, identifying the electronic equipment according to the selected charging protocol until a target charging protocol which is successfully identified with the electronic equipment is selected, and charging the electronic equipment according to the target charging protocol.
2. The method of claim 1, wherein said determining Q charging protocols from said P charging protocols based on said at least two first records comprises:
and determining the Q charging protocols according to the statistical analysis indexes of the charging identification of the P charging protocols in the at least two first records.
3. The method of claim 2, wherein the determining the Q charging protocols according to the statistical analysis indicators of the charging identifications in the at least two first records of the P charging protocols comprises:
determining a first protocol set according to the identification success times of the charging identification in the at least two first records of the P charging protocols; and/or determining a second protocol set according to the identification failure times of the charging identification in the at least two first records of the P charging protocols;
and determining the Q charging protocols according to the first protocol set and/or the second protocol set.
4. The method of claim 2, wherein the at least two first records comprise first records for at least two time periods, the determining the Q charging protocols based on statistical analysis metrics of charge identification in the at least two first records for the P charging protocols comprising:
the identification success times and/or the identification success rate of the charging identification in the at least two time periods in the P charging protocols are not decreased, and the charging protocols are used as a third protocol set; and/or charging protocols with non-increasing recognition failure times and/or recognition failure rates of charging recognition in the at least two time periods in the P charging protocols are used as a fourth protocol set;
and determining the Q charging protocols according to the third protocol set and/or the fourth protocol set.
5. The method of claim 2, wherein the determining the Q charging protocols according to the statistical analysis indicators of the charging identifications in the at least two first records of the P charging protocols comprises:
and determining the Q charging protocols according to the recognition success rates of the charging recognition in the at least two first records of the P charging protocols.
6. The method of any one of claims 1 to 5, further comprising:
acquiring at least two second records, wherein the at least two second records are records of the P charging protocols executed with charging identification by the electronic equipment and the charging equipment;
and determining a selection sequence for selecting the charging protocols from the Q charging protocols according to the statistical analysis indexes of the charging identification of the Q charging protocols in the at least two second records and/or the charging efficiency indexes of the Q charging protocols.
7. The method of claim 6, wherein determining the selection order of the charging protocols from the Q charging protocols according to the statistical analysis index of the charging identification of the Q charging protocols in the at least two second records and/or the charging efficiency index of the Q charging protocols comprises:
for any one of the Q charging protocols, determining a comprehensive grading value of the charging protocol according to a first grading value and a first weight value corresponding to a statistical analysis index of the charging protocol and a second grading value and a second weight value corresponding to a charging efficiency index of the charging protocol;
And determining the selection sequence according to the comprehensive grading values of the Q charging protocols.
8. The method of claim 6, wherein determining the selection order of the charging protocols from the Q charging protocols according to the statistical analysis index of the charging identification of the Q charging protocols in the at least two second records and/or the charging efficiency index of the Q charging protocols comprises:
and taking the sequence from large to small in recognition success times or recognition success rates of the charging recognition of the Q charging protocols in the at least two second records, or the sequence from small to large in recognition failure times of the charging recognition of the Q charging protocols in the at least two second records as the selection sequence.
9. The method of claim 6, wherein determining the selection order of the charging protocols from the Q charging protocols according to the statistical analysis index of the charging identification of the Q charging protocols in the at least two second records and/or the charging efficiency index of the Q charging protocols comprises:
and taking the sequence from the big to the small of the charging efficiency indexes of the Q charging protocols as the selection sequence.
10. The method according to any of claims 6 to 9, wherein the charging efficiency indicator of any charging protocol is a rated charging power of the charging protocol, or is determined from the rated charging power of the charging protocol and a hardware efficiency of the charging protocol, or is determined from an average charging current recorded in the at least two second records of the charging protocol.
11. The method of any one of claims 1 to 10, wherein the electronic device is a vehicle and the charging device is a charging peg.
12. An electronic device, comprising a charging interface, at least one processor, and a memory;
the charging interface is used for connecting power supply equipment;
the memory is used for storing one or more computer programs;
the one or more computer programs, when executed by the at least one processor, enable the electronic device to implement the method of any one of claims 1-11.
13. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 11.
14. A computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1 to 11.
CN202111222294.9A 2021-10-20 2021-10-20 Charging method of electronic equipment and electronic equipment Pending CN115995856A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111222294.9A CN115995856A (en) 2021-10-20 2021-10-20 Charging method of electronic equipment and electronic equipment
PCT/CN2022/119964 WO2023065931A1 (en) 2021-10-20 2022-09-20 Method for charging electronic device, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111222294.9A CN115995856A (en) 2021-10-20 2021-10-20 Charging method of electronic equipment and electronic equipment

Publications (1)

Publication Number Publication Date
CN115995856A true CN115995856A (en) 2023-04-21

Family

ID=85989236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111222294.9A Pending CN115995856A (en) 2021-10-20 2021-10-20 Charging method of electronic equipment and electronic equipment

Country Status (2)

Country Link
CN (1) CN115995856A (en)
WO (1) WO2023065931A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116505628A (en) * 2023-06-28 2023-07-28 深圳市澳博森科技有限公司 Intelligent multi-port adapter charging control method and system
CN116526704A (en) * 2023-05-16 2023-08-01 湖南旭联科技有限公司 Multi-device self-adaptive wireless charging method, device, equipment and storage medium
CN117498508A (en) * 2023-12-29 2024-02-02 深圳市卓芯微科技有限公司 Quick charging method and device for mobile device, electronic device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117220376B (en) * 2023-09-15 2024-06-04 小米汽车科技有限公司 Charging method, device, adapter and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050242768A1 (en) * 2004-04-28 2005-11-03 Pandit Amol S Method and apparatus for sharing battery charging resources
KR101197552B1 (en) * 2011-03-28 2012-11-09 엘에스전선 주식회사 A system of charging an electric vehicle
CN109217419B (en) * 2018-09-21 2021-08-03 深圳市奥必赢科技有限公司 Quick charging system and method
CN110120695B (en) * 2019-04-29 2021-01-29 华为技术有限公司 Charging method and terminal equipment
CN112448423B (en) * 2019-08-28 2023-05-09 北京小米移动软件有限公司 Charging method and device, electronic equipment and storage medium
CN112448435A (en) * 2019-09-03 2021-03-05 中兴通讯股份有限公司 Terminal equipment charging method and device and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116526704A (en) * 2023-05-16 2023-08-01 湖南旭联科技有限公司 Multi-device self-adaptive wireless charging method, device, equipment and storage medium
CN116526704B (en) * 2023-05-16 2024-05-24 湖南旭联科技有限公司 Multi-device self-adaptive wireless charging method, device, equipment and storage medium
CN116505628A (en) * 2023-06-28 2023-07-28 深圳市澳博森科技有限公司 Intelligent multi-port adapter charging control method and system
CN116505628B (en) * 2023-06-28 2024-01-19 深圳市澳博森科技有限公司 Intelligent multi-port adapter charging control method and system
CN117498508A (en) * 2023-12-29 2024-02-02 深圳市卓芯微科技有限公司 Quick charging method and device for mobile device, electronic device and storage medium

Also Published As

Publication number Publication date
WO2023065931A1 (en) 2023-04-27

Similar Documents

Publication Publication Date Title
CN112449328B (en) Bluetooth searching method, system and related device
CN115995856A (en) Charging method of electronic equipment and electronic equipment
CN106030556B (en) Method for operating functions and resources of electronic device
CN113498124B (en) SIM card and eSIM card switching method and electronic equipment
CN112771900B (en) Data transmission method and electronic equipment
CN111010693B (en) Method for providing wireless fidelity network access service and electronic equipment
US20150163734A1 (en) Access point connection method and electronic device thereof
CN113660650B (en) Method and related device for device reconnection
WO2023011376A1 (en) Key updating method in beidou communication system, and system and related apparatus
CN113973398B (en) Wireless network connection method, electronic equipment and chip system
CN113504887A (en) Volume setting method and electronic equipment
CN115134404B (en) Method for managing push connection and electronic equipment
CN116133165A (en) Headset connection system, method, headset, electronic device, and readable storage medium
CN110798830B (en) Method and device for searching for disconnection device
CN111221544A (en) Management method and terminal for pre-installed application software
CN113691979B (en) Wireless data transmission method, electronic device, system and storage medium
CN114070927B (en) Setting reservation method and terminal
CN116707050B (en) Method and device for recording charge and discharge times, electronic equipment and readable storage medium
CN114895991B (en) Content sharing method and electronic equipment
CN113541954B (en) Method and device for controlling baseband
CN117062039B (en) Bluetooth connection method, electronic equipment and computer readable storage medium
CN116346982B (en) Method for processing audio, electronic device and readable storage medium
CN114845297B (en) Application program access method, electronic device and storage medium
CN115878191A (en) Equipment hot plug method and terminal equipment
CN117014884A (en) Number using method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination