CN115407116A - Method and device for determining charging current - Google Patents

Method and device for determining charging current Download PDF

Info

Publication number
CN115407116A
CN115407116A CN202210992988.9A CN202210992988A CN115407116A CN 115407116 A CN115407116 A CN 115407116A CN 202210992988 A CN202210992988 A CN 202210992988A CN 115407116 A CN115407116 A CN 115407116A
Authority
CN
China
Prior art keywords
cable
charging
charging current
attribute information
determining
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
CN202210992988.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210992988.9A priority Critical patent/CN115407116A/en
Publication of CN115407116A publication Critical patent/CN115407116A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16566Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533
    • G01R19/16571Circuits and arrangements for comparing voltage or current with one or several thresholds and for indicating the result not covered by subgroups G01R19/16504, G01R19/16528, G01R19/16533 comparing AC or DC current with one threshold, e.g. load current, over-current, surge current or fault current
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/58Testing of lines, cables or conductors
    • 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
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/00304Overcurrent protection
    • 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
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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
    • H02J7/007Regulation of charging or discharging current or voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (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 application provides a method and a device for determining a charging current, wherein an E-MARKer is arranged on a charging cable to which the method for determining the charging current is applied, and the method for determining the charging current comprises the following steps: when the charging cable is used for charging the electronic equipment, cable attribute information in the E-MARKer is acquired; extracting power transmission capability data of the charging cable from the cable attribute information; and determining a maximum charging current for charging the electronic device with the charging cable based on the power transmission capability data of the charging cable. Through the implementation of this application scheme, can realize filling fast, can also avoid charging current to surpass cable power supply transport capacity, guarantee the reliability and the security of charging.

Description

Method and device for determining charging current
Technical Field
The present application relates to the field of charging technologies, and in particular, to a method and an apparatus for determining a charging current, an adapter, and a computer-readable storage medium.
Background
When an electronic device is charged, if the current/voltage ratio is large, the impedance or quality requirement of the cable is high. Therefore, how to determine whether the cable for charging meets the charging requirement becomes a problem to be solved urgently.
Disclosure of Invention
In order to solve at least one of the above technical problems, embodiments of the present application provide a method and an apparatus for determining a charging current, an adapter, and a computer-readable storage medium.
A first aspect of the embodiments of the present application provides a method for determining a charging current, where a charging cable to which the method for determining a charging current is applied is provided with an E-marcer, and the method for determining a charging current includes:
when the charging cable is used for charging the electronic equipment, cable attribute information in the E-MARKer is acquired;
extracting power transmission capability data of the charging cable from the cable attribute information; and
determining a maximum charging current for charging the electronic device with the charging cable based on the power transmission capability data of the charging cable.
Wherein, the power transmission ability data of charging cable includes the maximum charging current value of charging cable, the step of confirming the maximum charging current according to the power transmission ability data of charging cable specifically includes:
acquiring a maximum charging current value of the electronic equipment;
and if the maximum charging current value of the electronic equipment is smaller than the maximum charging current value of the charging cable, determining the maximum charging current value of the electronic equipment as the maximum charging current for charging the electronic equipment by using the charging cable.
Wherein the method further comprises:
verifying whether the cable attribute information in the E-MARKer is successfully acquired or not;
when the cable attribute information in the E-MARKer fails to be acquired, repeating the step of acquiring the cable attribute information of the E-MARKer; and
and continuously verifying whether the cable attribute information in the E-MARKer is successfully acquired or not until the cable attribute information in the E-MARKer is successfully acquired.
After the step of repeatedly acquiring the cable attribute information of the E-marcer, the method further includes:
counting the repeated acquisition times of the cable attribute information of the E-MARKer;
and when the repeated acquisition times of the cable attribute information exceed a set threshold value, determining the preset charging current of the charging cable as the maximum charging current.
Wherein, after the step of determining the maximum charging current for charging the electronic device with the charging cable according to the power transmission capability data of the charging cable, the method comprises:
detecting a voltage value on a Vbus line in a Type-C interface;
after detecting that the voltage value on a Vbus line in a Type-C interface exceeds a voltage threshold value, acquiring a quick charging request sent by the electronic equipment;
and charging the electronic equipment with the maximum charging current according to the quick charging request.
Before the step of obtaining the cable attribute information in the E-marcker, the method further includes:
detecting a voltage value on a Vbus line of the charging cable;
and after detecting that the real-time voltage value on the Vbus line of the charging cable exceeds a voltage threshold value, acquiring a quick charging request sent by the electronic equipment.
The step of acquiring the cable attribute information in the E-marcker specifically includes:
according to a communication format and a data frame defined in a PD protocol, accessing the E-MARKer through one CC signal line of the charging cable; and
cable attribute information in the E-MARKer is obtained, the cable attribute information including cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable.
Switching to a Vconn line at the other path of CC signal line to supply power for the E-MARKer through the Vconn line; or
And enabling the electronic equipment to supply power for the E-MARKer by using a VCONN SWAP command defined by a PD protocol.
A second aspect of the embodiments of the present application provides a device for determining a charging current, where a charging cable to which the method for determining a charging current is applied is provided with an E-marcker, and the device for determining a charging current includes:
the acquisition module is used for acquiring cable attribute information in the E-MARKer when the charging cable is used for charging the electronic equipment;
the extraction module is used for extracting power transmission capability data of the charging cable from the cable attribute information; and
the determining module is used for determining the maximum charging current for charging the electronic equipment by utilizing the charging cable according to the power transmission capability data of the charging cable.
A third aspect of an embodiment of the present application provides an adapter, including: the charging current determination method includes the steps of the charging current determination method provided by the first aspect of the embodiments of the present application described above, when the processor executes the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for determining a charging current provided by the first aspect of the embodiments of the present application.
Therefore, according to the scheme, cable attribute information in the E-MARKer is obtained; then extracting power transmission capacity data of the charging cable from cable attribute information of the E-MARKer; and finally, determining the maximum charging current charged by the electronic equipment by using the charging cable according to the power transmission capability data of the charging cable, and charging the charging terminal by using the maximum charging current, so that the charging efficiency can be improved by fast charging, the charging current can be prevented from exceeding the power transmission capability of the cable, and the charging reliability and safety are ensured.
Drawings
Fig. 1 is a schematic basic flow chart of a charging current determination method according to the present application;
fig. 2 is a flowchart illustrating a method for determining a charging current according to an embodiment of the present disclosure;
FIG. 3 is a schematic connection diagram of a Source terminal and a Sink terminal in the charging cable with a Type-C interface according to the present application;
FIG. 4 is a flowchart illustrating a method for determining a charging current according to another embodiment of the present disclosure;
FIG. 5 is a schematic diagram of program modules of a charging current determination apparatus according to the present application;
FIG. 6 is a block diagram of a program of a device for determining a charging current according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of another embodiment of a charging current determination apparatus;
fig. 8 is a schematic structural diagram of an adapter according to an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For a better understanding of the present solution, the following terms are defined below:
VOOC, power rapid charging technology;
PD, english generic term: power Delivery, a USB fast charging standard promulgated by USB-IF (USB standardization organization), currently the latest version is PD3.0;
the USB interface standard promulgated by Type-C, USB-IF (USB standardization organization);
E-MARKer, a chip integrated in a USB cable. For VOOC fast charging, the USB cable is confirmed to be a satisfactory cable by communicating with E-MARKer. The USB Type-C cable encapsulated with the E-Marker can read the attributes of the cable by using the PD protocol through Source and Sink.
In order to solve the defect in the related art that the impedance or quality requirement of the cable is high if the current/voltage ratio is large when the electronic device is charged, a first embodiment of the present application provides a method for determining a charging current, as shown in fig. 1, which is a basic flowchart of the method for determining a charging current provided in this embodiment, where the charging cable to which the method for determining a charging current is applied is provided with an E-marcker, and the method for determining a charging current includes the following steps:
in step S110, cable attribute information in the E-MARKer is acquired when the electronic equipment is charged by the charging cable.
In particular, in practical application, the method of the present application is specifically applied to a charging cable having a Type-C interface. When the adapter charges the electronic device by using the charging cable with the Type-C interface, the charging cable information is acquired at the adapter end. Specifically, the cable attribute information of the charging cable is pre-stored in the E-MARKer of the charging cable, and thus the cable attribute information of the charging cable can be acquired by the E-MARKer.
Further, the step of obtaining cable attribute information in the E-marcer specifically includes:
according to a communication format and a data frame defined in a PD protocol, accessing E-MARKer through one CC signal line in a charging cable; and
cable attribute information in the E-MARKer is acquired, where the cable attribute information includes cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable, and so on.
Specifically, the embodiment may use a communication format and a data frame defined by a PD protocol to access the E-MARKer through one CC signal line in the charging cable, and then obtain cable attribute information recorded in the E-MARKer; and switching to the Vconn line at the other CC signal line to power the E-MARKer through the Vconn line. As another embodiment, the VCONN SWAP command defined by the PD protocol may also be used to enable the electronic device to supply VCONN to the E-MARKer, so as to obtain cable attribute information from another E-MARKer of the charging cable. The cable attribute information includes cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable, and the like.
Further, the method further comprises:
verifying whether the cable attribute information in the E-MARKer is successfully acquired or not;
when the cable attribute information in the E-MARKer fails to be acquired, repeating the step of acquiring the cable attribute information of the E-MARKer; and
and continuously verifying whether the cable attribute information in the E-MARKer is successfully acquired or not until the cable attribute information recorded in the E-MARKer is successfully acquired.
In order to ensure that the cable attribute information can be successfully acquired from the E-MARKer, in this embodiment, whether the cable attribute information in the E-MARKer is successfully acquired is verified. And when the cable attribute information is detected to be successfully acquired, directly executing the next step. When the failure of cable attribute information acquisition is detected, cable attribute information is acquired again at intervals, and whether the cable attribute information in the E-MARKer is successfully acquired or not is continuously verified until the cable attribute information recorded in the E-MARKer is successfully acquired, so that the accuracy of the cable attribute information is ensured.
Further, after the step of repeatedly acquiring the cable attribute information of the E-marcer, the method further includes:
counting the repeated acquisition times of the cable attribute information of the E-MARKer;
and when the repeated acquisition times of the cable attribute information exceed a set threshold value or the cable attribute information in the E-MARKer cannot be acquired, determining the preset charging current of the charging cable as the maximum charging current.
Specifically, in the embodiment, the fast charging operation needs to acquire the cable attribute information to perform the subsequent steps, and when the acquisition of the cable attribute information fails, the embodiment determines the preset charging current of the charging cable as the maximum charging current. To meet the charging requirements of most electronic devices. Of course, the specific magnitude of the preset charging current can be designed according to the actual application.
The method comprises the following steps that firstly, when the repeated acquisition times of the cable attribute information exceed a set threshold value, the cable attribute information is determined to be failed to acquire, and otherwise, the cable attribute information is determined to be successful to acquire; and the second is that the cable attribute information in the E-MARKer cannot be acquired. In order to avoid that the charging terminal enters a dead cycle due to excessive repeated acquisition times, in the embodiment, the repeated acquisition times of the cable attribute information are limited; in addition, when the cable attribute information in the E-MARKer cannot be acquired, the cable attribute information is directly determined to be failed to be acquired, and at the moment, the preset charging current is determined as the maximum charging current. In the above steps, the threshold is set to 20 times, 25 times or 30 times, and the specific repeated acquisition times can be set according to actual requirements. The preset charging current is 3A or less than 3A, and of course, the preset charging current may be set to other values.
And S120, extracting power transmission capability data of the charging cable from cable attribute information of the E-MARKer.
Specifically, the cable attribute information of the E-marcker includes various information, such as cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable, and the like, in this embodiment, the information of the power transmission capability of the charging cable is selected from the cable attribute information, and the charging current of the charging cable can be determined according to the information of the power transmission capability of the charging cable, so as to avoid damage to the charging cable due to too high charging current, or influence on the charging efficiency due to too low charging current.
Step S130, determining a maximum charging current for charging the electronic device by using the charging cable according to the power transmission capability data of the charging cable.
Specifically, the charging range of the charging cable for charging the electronic device may be determined according to the power transmission capability data of the charging cable. The maximum charging current of the charging cable can be determined according to the power transmission capability data of the charging cable when the charging efficiency of the electronic equipment is preferentially ensured.
Referring to fig. 3, fig. 3 is a specific flowchart of a method for determining a charging current according to an embodiment of the present application. Further, after the step of determining the maximum charging current, the method further includes:
step S140, detecting a voltage value on a Vbus line in a Type-C interface;
s150, after detecting that the voltage value on the Vbus line in the Type-C interface exceeds a voltage threshold value, acquiring a quick charging request sent by the electronic equipment;
and step S160, charging the electronic equipment with the maximum charging current according to the quick charging request.
Specifically, when the adapter detects that a voltage is present on the Vbus line in the Type-C interface of the charging cable, the adapter is considered to be connected with the electronic device, and then a quick charging operation can be performed. The adapter sends communication to the Source through D + and D-in the Type-C interface, and requests the electronic equipment to start the quick charging operation. And after receiving the quick charging request of the electronic equipment, the adapter starts a quick charging flow with the electronic equipment. As described above, the voltage of the Vbus line may be set to 4.6V, or may be set to other values greater than 4.6V.
Further, the power transmission capability data of the charging cable includes a maximum charging current value of the charging cable, and the step of determining the maximum charging current according to the power transmission capability data of the charging cable specifically includes:
acquiring a maximum charging current value of the electronic equipment;
and if the maximum charging current value of the electronic equipment is smaller than the maximum charging current value of the charging cable, determining the maximum charging current value of the electronic equipment as the maximum charging current for charging the electronic equipment by using the charging cable.
Specifically, in consideration of the maximum charging current value allowed by the electronic device, the present embodiment further includes taking the maximum charging current value of the electronic device and comparing the maximum charging current value, and if the maximum charging current value of the electronic device is smaller than the maximum charging current value of the charging cable, determining the maximum charging current value of the electronic device as the maximum charging current; and if the maximum charging current value of the electronic equipment is greater than or equal to the maximum charging current value of the charging cable, determining the maximum charging current according to the cable attribute information of the charging cable, so as to realize quick charging.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating connection between a Source terminal and a Sink terminal in a charging cable having a Type-C interface. Wherein, the Source terminal is an adapter, and the Sink terminal is an electronic device. The Type-C interface is provided with a Vbus power transmission pin, a CC signal line pin, a D + and D-communication pin, a Vconn power pin and a GND grounding pin. The Source end detects whether the Sink end is connected or not through a CC signal line. Specifically, according to the PD protocol specification, the Source end detects the pull-down resistor Rd of the Sink on the CC through one CC signal line. And when the Sink end is detected to be connected, the Source end is switched to Vconn on the other path of CC signal line by default to supply power to the E-MARKer. The Source end can acquire the cable attribute information in the E-MARKer through the CC signal line. And then extracting power transmission capacity data of the cable from the cable attribute information of the E-MARKer. Finally, the maximum charging current is determined according to the power transmission capability data of the cable, and the maximum charging current is used as the quick charging current of the VOOC, so that the charging efficiency can be improved, and the charging reliability and safety can be ensured.
Referring to fig. 4, fig. 4 is a specific flowchart of a method for determining a charging current in another embodiment of the present application. The method for determining the charging current comprises the following steps:
step S210, detecting a voltage value on a Vbus line in a Type-C interface;
specifically, in the embodiment, a voltage value on a Vbus line in a Type-C interface of a charging cable is detected;
step S220, after detecting that the voltage value on the Vbus line in the Type-C interface exceeds a voltage threshold value, acquiring a quick charging request sent by the electronic equipment;
step S230, cable attribute information in the E-MARKer is obtained;
step S240, extracting power transmission capability data of the charging cable from cable attribute information of the E-MARKer;
step S250, determining the maximum charging current for charging the electronic equipment by using the charging cable according to the power transmission capability data of the charging cable.
In this embodiment, when the charging terminal detects that a voltage is present on the Vbus line in the Type-C interface of the charging cable, it is determined that the adapter is connected to the electronic device, and at this time, a fast charging operation may be performed when a fast charging request sent by the electronic device is acquired. The adapter sends communication to the Source through D + and D-in the Type-C interface, and requests the electronic equipment to start the quick charging operation. After receiving the quick charging request of the electronic equipment, the adapter starts a quick charging process with the electronic equipment. Then, acquiring cable attribute information in the E-MARKer; extracting power transmission capacity data of the charging cable from cable attribute information of the E-MARKer; and finally, the maximum charging current is determined according to the power transmission capability data of the charging cable, and the charging terminal can be charged by the maximum charging current, so that the charging efficiency can be improved by fast charging, the charging current can be prevented from exceeding the power transmission capability of the cable, and the charging reliability and safety are ensured. The voltage of the Vbus line may be set to 4.6V, or may be set to other values greater than 4.6V.
Compared with the first embodiment, in the embodiment, the voltage value on the Vbus line in the Type-C interface of the charging cable is detected first, and when the detected voltage on the Vbus line exceeds a set value, the fast charging request sent by the electronic device is acquired.
With the embodiment, when a fast charging request of the electronic equipment is received, the maximum charging current value of the electronic equipment can be obtained from the fast charging request; comparing whether the required maximum charging current value of the electronic equipment is larger than the maximum charging current value of the charging cable or not; if the maximum charging current value of the electronic equipment is smaller than the maximum charging current value of the charging cable, the maximum charging current value of the electronic equipment is determined as the maximum charging current, and therefore the charging current suitable for the charging cable and the electronic equipment is determined in advance.
Referring to fig. 5, fig. 5 is a schematic diagram of a program module of the charging current determining apparatus of the present application. The embodiment of the application provides a charging current determination device, a charging cable to which the charging current determination device is applied is provided with an E-MARKer, and the charging current determination device comprises:
an obtaining module 110, configured to obtain cable attribute information in the E-MARKer when the charging cable is used to charge the electronic device;
an extracting module 120, configured to extract power transmission capability data of the charging cable from the cable attribute information; and
a determining module 130, configured to determine a maximum charging current for charging the electronic device by using the charging cable according to the power transmission capability data of the charging cable.
In this embodiment, the cable attribute information in the E-marcker may be acquired by the acquiring module 110. The power transmission capability data of the cable can then be extracted from the cable attribute information of the E-MARKer by the extraction module 120. Finally, through the determination module 130, the maximum charging current is determined according to the power transmission capability data of the cable, and the maximum charging current is used as the fast charging current of the VOOC, so that the charging efficiency can be improved, and the charging reliability and safety can be ensured.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating program modules of a device for determining a charging current according to an embodiment of the present disclosure. Specifically, the device for determining the charging current includes:
the acquisition module 110 is configured to acquire cable attribute information in E-marcer when the electronic device is charged by using the charging cable;
an extracting module 120, configured to extract power transmission capability data of the charging cable from the cable attribute information;
a determining module 130, configured to determine a maximum charging current according to power transmission capability data of the charging cable;
the detection module 140 is configured to detect a voltage value on a Vbus line in the Type-C interface;
the receiving module 150 is configured to acquire a fast charging request sent by the electronic device after detecting that a voltage value on a Vbus line in the Type-C interface exceeds a voltage threshold;
the charging module 160 is configured to perform charging with a maximum charging current according to the fast charging request.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating program modules of a device for determining a charging current according to another embodiment of the present disclosure. The device for determining the charging current comprises:
the detection module 210 is configured to detect a voltage value on a Vbus line in the Type-C interface;
the receiving module 220 is configured to obtain a fast charging request sent by the electronic device after detecting that a voltage value on a Vbus line in the Type-C interface exceeds a voltage threshold;
an obtaining module 230, configured to obtain cable attribute information in the E-marcker when the charging cable is used to charge the electronic device;
an extracting module 240, configured to extract power transmission capability data of the cable from the cable attribute information;
a determining module 250, configured to determine a maximum charging current for charging the electronic device by using the charging cable according to the power transmission capability data of the charging cable.
Referring to fig. 8, fig. 8 is a diagram illustrating an adapter according to a fourth embodiment of the present application. The adapter can be used to implement the determination method of the charging current in the foregoing embodiment. As shown in fig. 8, the adaptor mainly includes:
memory 301, processor 302, bus 303, and computer programs stored on memory 301 and executable on processor 302, memory 301 and processor 302 being connected via bus 303. The processor 302, when executing the computer program, implements the determination method of the charging current in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 301 may be a Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 301 is for storing executable program code, and the processor 302 is coupled to the memory 301.
Further, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium may be an adapter provided in the foregoing embodiments, and the computer-readable storage medium may be a memory in the foregoing embodiment shown in fig. 8.
The computer-readable storage medium has stored thereon a computer program that, when executed by a processor, implements the determination method of the charging current in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium comprises: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The above description is provided for the determination method, apparatus, adapter and computer readable storage medium of charging current provided by the present application, and for those skilled in the art, there may be variations in the specific implementation and application scope according to the ideas of the embodiments of the present application.

Claims (10)

1. A method of determining a charging current, to which a charging cable is provided with E-marcer, the method comprising:
when the charging cable is used for charging the electronic equipment, cable attribute information in the E-MARKer is obtained;
extracting power transmission capability data of the charging cable from the cable attribute information; the power transmission capability data of the charging cable comprises a maximum charging current value of the charging cable; and
acquiring the maximum charging current value of the electronic equipment from a quick charging request of the electronic equipment;
if the maximum charging current value of the electronic equipment is smaller than the maximum charging current value of the charging cable, determining the maximum charging current value of the electronic equipment as the maximum charging current for charging the electronic equipment by using the charging cable;
if the maximum charging current value of the electronic equipment is larger than or equal to the maximum charging current value of the charging cable, determining the maximum charging current value of the charging cable as the maximum charging current;
determining a preset charging current of the charging cable as the maximum charging current under the condition that the cable attribute information is failed to be acquired; the preset charging current is a configurable value; the preset charging current is relevant to practical application.
2. The method of determining a charging current of claim 1, further comprising:
verifying whether the cable attribute information in the E-MARKer is successfully acquired;
when the cable attribute information in the E-MARKer fails to be acquired, repeating the step of acquiring the cable attribute information of the E-MARKer; and
and continuously verifying whether the cable attribute information in the E-MARKer is successfully acquired or not until the cable attribute information in the E-MARKer is successfully acquired.
3. The method of determining a charging current as claimed in claim 2, wherein after repeating the step of obtaining cable attribute information of E-MARKer, further comprising:
counting the repeated acquisition times of the cable attribute information of the E-MARKer;
and when the repeated acquisition times of the cable attribute information exceed a set threshold value, determining the preset charging current of the charging cable as the maximum charging current.
4. The method of determining a charging current of claim 1, further comprising:
and charging the electronic equipment with the maximum charging current according to the quick charging request.
5. The method for determining a charging current according to claim 1, wherein the step of obtaining cable attribute information in E-marcer further comprises:
detecting a voltage value on a Vbus line of the charging cable;
and after detecting that the real-time voltage value on the Vbus line of the charging cable exceeds a voltage threshold value, acquiring a quick charging request sent by the electronic equipment.
6. The method for determining a charging current according to any one of claims 1 to 5, wherein the charging cable is a charging cable having a Type-C interface, and the step of obtaining cable attribute information in E-MARKer specifically comprises:
according to a communication format and a data frame defined in a PD protocol, accessing E-MARKer through one CC signal line of the charging cable; and
cable attribute information in the E-MARKer is obtained, the cable attribute information including cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable.
7. The method of determining a charging current according to claim 6, wherein the step of obtaining cable attribute information in E-MARKer further comprises:
switching to a Vconn line at the other path of CC signal line to supply power for the E-MARKer through the Vconn line;
or
And enabling the electronic equipment to supply power for the E-MARKer by utilizing a VCONSWAP command defined by the PD protocol.
8. A charging current determination apparatus, a charging cable to which the charging current determination apparatus is applied being provided with E-marcker, the charging current determination apparatus comprising:
the acquisition module is used for acquiring cable attribute information in the E-MARKer when the charging cable is used for charging the electronic equipment;
the extraction module is used for extracting power transmission capability data of the charging cable from the cable attribute information; the power transmission capability data of the charging cable comprises a maximum charging current value of the charging cable;
the device comprises a determining module, a charging module and a charging module, wherein the determining module is used for acquiring the maximum charging current value of the electronic equipment from a quick charging request of the electronic equipment; if the maximum charging current value of the electronic equipment is smaller than the maximum charging current value of the charging cable, determining the maximum charging current value of the electronic equipment as the maximum charging current for charging the electronic equipment by using the charging cable; if the maximum charging current value of the electronic equipment is larger than or equal to the maximum charging current value of the charging cable, determining the maximum charging current value of the charging cable as the maximum charging current; determining a preset charging current of the charging cable as the maximum charging current under the condition that the cable attribute information is failed to be acquired; the preset charging current is a configurable value; the preset charging current is relevant to practical application.
9. An adapter, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202210992988.9A 2019-12-31 2019-12-31 Method and device for determining charging current Pending CN115407116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210992988.9A CN115407116A (en) 2019-12-31 2019-12-31 Method and device for determining charging current

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911406179.XA CN111157813B (en) 2019-12-31 2019-12-31 Method and device for determining charging current
CN202210992988.9A CN115407116A (en) 2019-12-31 2019-12-31 Method and device for determining charging current

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201911406179.XA Division CN111157813B (en) 2019-12-31 2019-12-31 Method and device for determining charging current

Publications (1)

Publication Number Publication Date
CN115407116A true CN115407116A (en) 2022-11-29

Family

ID=70559886

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210992988.9A Pending CN115407116A (en) 2019-12-31 2019-12-31 Method and device for determining charging current
CN201911406179.XA Active CN111157813B (en) 2019-12-31 2019-12-31 Method and device for determining charging current

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201911406179.XA Active CN111157813B (en) 2019-12-31 2019-12-31 Method and device for determining charging current

Country Status (1)

Country Link
CN (2) CN115407116A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115912567A (en) * 2020-07-15 2023-04-04 华为技术有限公司 Data transmission method based on charging cable and electronic equipment
CN111864854B (en) * 2020-08-03 2021-04-06 珠海智融科技有限公司 Pin multiplexing circuit and working method thereof, and quick charging chip and working method thereof
CN112269086A (en) * 2020-10-23 2021-01-26 维沃移动通信有限公司 Charging cable identification method and device, charging cable and readable storage medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004032967A (en) * 2002-06-28 2004-01-29 Sanyo Electric Co Ltd Charging device
CN103793344B (en) * 2012-10-31 2017-06-27 华为技术有限公司 The method and system of processing data collision
CN103730933A (en) * 2013-12-23 2014-04-16 联想(北京)有限公司 Charging method and electronic devices
CN103762690B (en) * 2014-01-28 2016-08-24 广东欧珀移动通信有限公司 Charging system
PL3142221T3 (en) * 2015-05-13 2019-07-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd Quick charging method, power adapter and mobile terminal
JP6746705B2 (en) * 2016-02-17 2020-08-26 トヨタ・モーター・ヨーロッパToyota Motor Europe System and method for battery charge control
CN106293954A (en) * 2016-08-08 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of High Availabitity service management based on distributed lock
US10263454B2 (en) * 2016-08-31 2019-04-16 Via Technologies, Inc. Charger and power delivery control chip and charging method thereof
CN107872075A (en) * 2016-09-27 2018-04-03 北京小米移动软件有限公司 mobile terminal, charging method and charging system
US11018498B2 (en) * 2017-03-31 2021-05-25 Via Labs, Inc. Emarker-equipped cable and power management method thereof
CN207053215U (en) * 2017-06-29 2018-02-27 深圳市泰衡诺科技有限公司上海分公司 A kind of fast charging system
CN107946820A (en) * 2017-11-14 2018-04-20 珠海市魅族科技有限公司 USB female seat interfaces, charger, USB male joint interface and data cable
CN209198558U (en) * 2018-04-09 2019-08-02 南京德朔实业有限公司 Diagnostic device suitable for tool system component
CN110417069B (en) * 2018-04-28 2021-08-20 华为技术有限公司 Charging device, USB cable and charging system
EP3719956B1 (en) * 2018-05-15 2022-11-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Device to be charged and wireless charging method and system
CN108920928A (en) * 2018-09-14 2018-11-30 算丰科技(北京)有限公司 Personal identification method, device, electronic equipment and computer readable storage medium
CN110176792B (en) * 2019-03-22 2020-07-07 珠海智融科技有限公司 Multi-port quick-charging mobile power supply circuit and control method thereof

Also Published As

Publication number Publication date
CN111157813A (en) 2020-05-15
CN111157813B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN111157813B (en) Method and device for determining charging current
CN100495377C (en) Method for inspecting type of connected peripheral apparatus and terminal interface
US9444278B2 (en) USB charging with data communication
US20130103966A1 (en) Method and terminal for selecting internal circuit according to usb interface status
US10439412B2 (en) Method for eliminating interference of charger to touch screen, and mobile terminal
EP3179596A1 (en) Charging method, mobile terminal, and charging device
CN109918221B (en) Hard disk error reporting analysis method, system, terminal and storage medium
CN105824732A (en) USB detection method and detection system
CN107526955B (en) Screen-off unlocking method and device
CN111355505B (en) SIM card seat type identification method, device and computer readable medium
CN109992437B (en) Processing method, device and equipment for hard disk flash break and storage medium
CN117033058A (en) Analysis method, device, equipment and medium for software crash data
CN111830394A (en) Charging circuit fault detection method, electronic device and computer readable storage medium
CN116539992A (en) Storage device in-place stable state detection device, method, logic module and medium
CN113950044B (en) User identification card identification method, device, terminal equipment and storage medium
CN105100344A (en) Hot plug processing method for user recognition module card, and mobile terminal
CN104731723A (en) Power-off protection method and device for storage device
CN116048889A (en) Detection method and related device for cable connection of cabinet server
CN115098342A (en) System log collection method, system, terminal and storage medium
CN106160073B (en) A kind of electronic equipment and its control method
CN106201930B (en) A kind of device port determining device, terminal and method
CN110837450B (en) Test method and device of USB TYPE-C docking station, electronic equipment and storage medium
CN113720591A (en) Plug-pull detection method, device and system for SD card
CN111459406A (en) Method and system for identifying NVME hard disk under storage unloading card
CN211701457U (en) Short-circuit protection circuit

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