Method and apparatus for determining charging current
By acquiring cable attribute information and power transmission capacity data from E-MARKer, the maximum charging current is determined, solving the problems of charging cable impedance and quality, and achieving an efficient and safe charging process.
Patent Information
- Application Number
- CN202210992988.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2039-12-31
AI Technical Summary
When charging electronic devices, how can we determine whether the charging cable meets the current and voltage requirements, and especially how can we ensure that the cable's impedance and quality can adapt to larger charging demands?
By acquiring cable attribute information from E-MARKer, the power transmission capacity data of the charging cable is extracted, and the maximum charging current is determined based on the data. This includes repeatedly acquiring cable attribute information until successful, detecting Vbus line voltage, obtaining fast charging requests, and charging using the maximum charging current.
This achieves improved charging efficiency while ensuring charging reliability and safety, preventing the charging current from exceeding the cable's power delivery capacity, and meeting charging needs.
Smart Images

Figure CN115407116B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of charging, in particular to a charging current determination method and device, an adapter and a computer readable storage medium. BACKGROUND
[0002] When charging an electronic device, if the current / voltage is relatively large, the impedance or quality of the cable is required to be relatively high. Therefore, how to determine whether the cable used for charging meets the charging requirement becomes a problem to be solved. SUMMARY
[0003] To solve at least one of the above technical problems, the present application provides a charging current determination method and device, an adapter and a computer readable storage medium.
[0004] The first aspect of the present application provides a charging current determination method, which is applied to a charging cable provided with an E-MARKer. The charging current determination method comprises the following steps:
[0005] When charging an electronic device by using the charging cable, cable attribute information in the E-MARKer is acquired;
[0006] Power transmission capability data of the charging cable is extracted from the cable attribute information; and
[0007] The maximum charging current for charging the electronic device by using the charging cable is determined according to the power transmission capability data of the charging cable.
[0008] The power transmission capability data of the charging cable includes the maximum charging current value of the charging cable. The step of determining the maximum charging current according to the power transmission capability data of the charging cable specifically comprises the following steps:
[0009] The maximum charging current value of the electronic device is acquired;
[0010] If the maximum charging current value of the electronic device is less than the maximum charging current value of the charging cable, the maximum charging current value of the electronic device is determined as the maximum charging current for charging the electronic device by using the charging cable.
[0011] The method further comprises the following steps:
[0012] It is verified whether the cable attribute information in the E-MARKer is acquired successfully;
[0013] When the cable attribute information in the E-MARKer fails to be acquired, the step of acquiring the cable attribute information of the E-MARKer is repeated; and
[0014] Continuously verify whether the cable attribute information in the E-MARKer is successfully acquired until the cable attribute information in the E-MARKer is successfully acquired.
[0015] The step of repeatedly acquiring the cable attribute information of the E-MARKer further comprises:
[0016] Counting the number of times of repeated acquisition of the cable attribute information of the E-MARKer.
[0017] When the number of times of repeated acquisition of the cable attribute information exceeds a set threshold, determining the preset charging current of the charging cable as the maximum charging current.
[0018] The step of determining the maximum charging current of the electronic device charged by the charging cable according to the power transmission capability data of the charging cable further comprises:
[0019] Detecting the voltage value on the Vbus line in the Type-C interface.
[0020] After detecting that the voltage value on the Vbus line in the Type-C interface exceeds a voltage threshold, acquiring a fast charging request sent by the electronic device.
[0021] Charging the electronic device at the maximum charging current according to the fast charging request.
[0022] The step of acquiring the cable attribute information in the E-MARKer further comprises:
[0023] Detecting the voltage value on the Vbus line of the charging cable.
[0024] After detecting that the real-time voltage value on the Vbus line of the charging cable exceeds a voltage threshold, acquiring a fast charging request sent by the electronic device.
[0025] The step of acquiring the cable attribute information in the E-MARKer specifically comprises:
[0026] According to the communication format and data frame defined in the PD protocol, accessing the E-MARKer through a CC signal line of the charging cable; and
[0027] Acquiring the cable attribute information in the E-MARKer, the cable attribute information comprising cable manufacturer information, power transmission capability of the cable, and data transmission capability of the cable.
[0028] Wherein, switching the other CC signal line to the Vconn line to supply power to the E-MARKer through the Vconn line; or
[0029] The VCONN SWAP command defined by the PD protocol is used to enable the electronic device to supply power to the E-MARKer.
[0030] The second aspect of the embodiment of the present application provides a charging current determination device, the charging current determination method is applied to a charging cable provided with an E-MARKer, and the charging current determination device comprises:
[0031] An acquisition module is configured to acquire cable attribute information in the E-MARKer when the electronic device is charged by using the charging cable.
[0032] An extraction module is configured to extract power transmission capability data of the charging cable from the cable attribute information.
[0033] A determination module is 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.
[0034] The third aspect of the embodiment of the present application provides an adapter, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements each step of the charging current determination method provided in the first aspect of the embodiment of the present application when executing the computer program.
[0035] The fourth aspect of the embodiment of the present application provides a computer readable storage medium, which stores a computer program, and each step of the charging current determination method provided in the first aspect of the embodiment of the present application is implemented when the computer program is executed by a processor.
[0036] As can be seen from the above, the present scheme first acquires cable attribute information in the E-MARKer, then extracts power transmission capability data of the charging cable from the cable attribute information of the E-MARKer, and finally determines 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, and the electronic device can be charged by the charging terminal at the maximum charging current, fast charging can be realized to improve charging efficiency, and the charging current can be prevented from exceeding the power transmission capability of the cable, thereby ensuring the reliability and safety of charging. BRIEF DESCRIPTION OF DRAWINGS
[0037] Figure 1 FIG. 1 is a basic flowchart of the charging current determination method of the present application;
[0038] Figure 2 FIG. 2 is a specific flowchart of the charging current determination method in an embodiment of the present application;
[0039] Figure 3 FIG. 3 is a connection diagram of a Source end and a Sink end of a charging cable with a Type-C interface of the present application;
[0040] Figure 4 A specific flow chart of the method for determining the charging current in another embodiment of the present application;
[0041] Figure 5 A program module schematic diagram of the device for determining the charging current in the present application;
[0042] Figure 6 A program module schematic diagram of the device for determining the charging current in an embodiment of the present application;
[0043] Figure 7 A program module schematic diagram of the device for determining the charging current in another embodiment of the present application;
[0044] Figure 8 A structure schematic diagram of the adapter in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purposes, characteristics and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0046] In order to better understand the present solution, the following terms are defined:
[0047] VOOC, power fast charging technology;
[0048] PD, English full name: Power Delivery, USB-IF (USB standardization organization) issued USB fast charging standard, the latest version is PD3.0;
[0049] Type-C, USB-IF (USB standardization organization) issued USB interface standard;
[0050] E-MARKer, a chip integrated in the USB cable. For VOOC fast charging, it is confirmed that the USB cable is a required cable by communicating with the E-MARKer. The USB Type-C cable packaged with the E-Marker can be read by the Source and Sink using the PD protocol. The properties of the cable.
[0051] In order to solve the defect that the impedance or quality of the cable is required to be relatively high if the current / voltage is relatively large when charging the electronic device in the related art, the first embodiment of the present application provides a method for determining the charging current, as shown inFigure 1 The basic flowchart of the charging current determination method provided by the embodiment, the charging cable to which the charging current determination method is applied is provided with an E-MARKer, and the charging current determination method comprises the following steps:
[0052] In step S110, when charging the electronic device by using the charging cable, the cable attribute information in the E-MARKer is acquired.
[0053] Specifically, in actual application, the method of the present application is specifically applied to a charging cable with 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, so that the cable attribute information of the charging cable can be acquired through the E-MARKer.
[0054] Further, the step of acquiring the cable attribute information in the E-MARKer specifically comprises:
[0055] According to the communication format and data frame defined in the PD protocol, the E-MARKer is accessed through one CC signal line in the charging cable; and
[0056] The cable attribute information in the E-MARKer is acquired, and the cable attribute information comprises cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable and the like.
[0057] Specifically, the embodiment can use the communication format and data frame defined in the PD protocol to access the E-MARKer through one CC signal line in the charging cable, and then acquire the cable attribute information recorded in the E-MARKer; the other CC signal line is switched to the Vconn line to supply power to the E-MARKer through the Vconn line. As another embodiment, the present application can also use the VCONN SWAP command defined in the PD protocol to supply power to the E-MARKer through the Vconn, so as to acquire the cable attribute information from the other E-MARKer of the charging cable. The above-mentioned cable attribute information comprises cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable and the like.
[0058] Further, the method further comprises:
[0059] whether the cable attribute information in the E-MARKer is acquired successfully;
[0060] When the acquisition of the cable attribute information in the E-MARKer fails, the step of acquiring the cable attribute information of the E-MARKer is repeated; and
[0061] Continuously verify whether the cable attribute information in the E-MARKer is successfully acquired until the cable attribute information recorded in the E-MARKer is successfully acquired.
[0062] In order to ensure that the cable attribute information can be successfully acquired from the E-MARKer, the embodiment verifies whether the cable attribute information in the E-MARKer is successfully acquired. When it is detected that the cable attribute information is successfully acquired, the next step is directly executed. When it is detected that the cable attribute information is unsuccessfully acquired, the cable attribute information is re-acquired every certain period of time, and it is continuously verified whether the cable attribute information in the E-MARKer is successfully acquired until the cable attribute information recorded in the E-MARKer is successfully acquired. In this way, the accuracy of the cable attribute information is ensured.
[0063] Further, after the step of repeatedly acquiring the cable attribute information of the E-MARKer, the method further comprises:
[0064] counting the number of times of repeated acquisition of the cable attribute information of the E-MARKer;
[0065] When the number of times of repeated acquisition of the cable attribute information exceeds a set threshold value, or the cable attribute information in the E-MARKer cannot be acquired, the preset charging current of the charging cable is determined as the maximum charging current.
[0066] Specifically, in the embodiment, the fast charging operation needs to acquire the cable attribute information to perform the subsequent steps. 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. In this way, the charging demand of most electronic devices can be met. Of course, the specific size of the preset charging current can be designed according to actual application.
[0067] The case of failure in acquiring the cable attribute information includes two aspects. One is that the number of times of repeated acquisition of the cable attribute information exceeds the set threshold value, at this time, it is determined that the acquisition of the cable attribute information fails, otherwise, it is determined that the acquisition of the cable attribute information succeeds. The other is that the cable attribute information in the E-MARKer cannot be acquired. In order to avoid that the charging terminal enters a dead loop due to too many times of repeated acquisition, in the embodiment, the number of times of repeated acquisition of the cable attribute information is limited. In addition, when the cable attribute information in the E-MARKer cannot be acquired, it is directly determined that the acquisition of the cable attribute information fails. At this time, the preset charging current is determined as the maximum charging current. In the above steps, the set threshold value is 20 times, 25 times, or 30 times. The specific number of times of repeated acquisition can be set according to actual requirements. The preset charging current is 3A or less than 3A. Of course, the preset charging current can also be set to other values.
[0068] Step S120, extracting the power transmission capability data of the charging cable from the cable attribute information of the E-MARKer.
[0069] Specifically, the cable attribute information of the E-MARKer includes various information, such as cable manufacturer information, power transmission capability of the cable, data transmission capability of the cable, etc. In the embodiment, the information of the power transmission capability of the charging cable is selected from the cable attribute information. According to the information of the power transmission capability of the charging cable, the charging current of the charging cable can be determined, so as to avoid damage to the charging cable caused by too high charging current, or to avoid affecting the charging efficiency caused by too low charging current.
[0070] Step S130, determining the maximum charging current for charging the electronic device by using the charging cable according to the power transmission capability data of the charging cable.
[0071] Specifically, the charging range of the charging cable for charging the electronic device can be determined according to the power transmission capability data of the charging cable. In order to preferentially ensure the charging efficiency of the electronic device, the maximum charging current of the charging cable can be determined according to the power transmission capability data of the charging cable.
[0072] Please refer to Figure 3 , Figure 3 for the specific flowchart of the method for determining the charging current in the embodiment. Further, after the step of determining the maximum charging current, the method further includes:
[0073] Step S140, detecting the voltage value on the Vbus line in the Type-C interface;
[0074] Step S150, obtaining the fast charging request sent by the electronic device after detecting that the voltage value on the Vbus line in the Type-C interface exceeds the voltage threshold value.
[0075] Step S160, charging the electronic device with the maximum charging current according to the fast charging request.
[0076] Specifically, the adapter detects that there is voltage on the Vbus line in the Type-C interface of the charging cable, and then considers that the adapter is connected with the electronic device. At this time, the fast charging operation can be performed. The adapter sends a communication to the Source through D+ and D- in the Type-C interface, and requests the electronic device to start the fast charging operation. After receiving the fast charging request of the electronic device, the adapter starts the fast charging process with the electronic device. The voltage of the Vbus line can be set to 4.6V, or other values greater than 4.6V.
[0077] Further, the power transmission capability data of the charging cable includes the maximum charging current value of the charging cable. The step of determining the maximum charging current according to the power transmission capability data of the charging cable specifically includes:
[0078] obtaining a maximum charging current value of the electronic device;
[0079] If the maximum charging current value of the electronic device is less than the maximum charging current value of the charging cable, the maximum charging current value of the electronic device is determined as the maximum charging current for charging the electronic device by using the charging cable.
[0080] Specifically, considering the maximum charging current value allowed by the electronic device, the embodiment further includes obtaining the maximum charging current value of the electronic device and comparing the maximum charging current value, if the maximum charging current value of the electronic device is less than the maximum charging current value of the charging cable, the maximum charging current value of the electronic device is determined as the maximum charging current, if the maximum charging current value of the electronic device is greater than or equal to the maximum charging current value of the charging cable, the maximum charging current is determined according to the cable attribute information of the charging cable, so as to realize fast charging.
[0081] Please refer to Figure 3 , Figure 3 is a schematic diagram of the connection between the Source end and the Sink end of the charging cable with Type-C interface. The Source end is an adapter and the Sink end is an electronic device. The Type-C interface has a Vbus power transmission pin, a CC signal line pin, a D+ and D- communication pin, a Vconn power pin and a GND ground pin. The Source end detects whether the Sink end is connected 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 signal line. When the Sink end is detected to be connected, the Source end defaults to switch to Vconn on the other CC signal line to supply power to the E-MARKer. The Source end can first obtain the cable attribute information in the E-MARKer through the CC signal line. Then the power transmission capability data of the cable is extracted 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 fast charging current of VOOC, so that the charging efficiency can be improved, and the reliability and safety of charging can be guaranteed.
[0082] Please refer to Figure 4 , Figure 4 is a specific flowchart of the determination method of the charging current in another embodiment of the application. The determination method of the charging current of the application includes the following steps:
[0083] Step S210, detecting the voltage value on the Vbus line in the Type-C interface;
[0084] Specifically, in the embodiment, the voltage value on the Vbus line in the Type-C interface of the charging cable is detected first;
[0085] In step S220, after detecting that the voltage value on the Vbus line in the Type-C interface exceeds the voltage threshold, the fast charging request sent by the electronic device is obtained.
[0086] In step S230, the cable attribute information in the E-MARKer is obtained.
[0087] In step S240, the power transmission capability data of the charging cable is extracted from the cable attribute information in the E-MARKer.
[0088] In step S250, the maximum charging current for charging the electronic device with the charging cable is determined according to the power transmission capability data of the charging cable.
[0089] In the embodiment, the charging terminal detects that there is voltage on the Vbus line in the Type-C interface of the charging cable, and then considers that the adapter and the electronic device have been connected. At this time, the fast charging request sent by the electronic device can be obtained to perform the fast charging operation. The adapter sends a communication to the Source through D+ and D- in the Type-C interface to request the electronic device to start the fast charging operation. After receiving the fast charging request of the electronic device, the adapter starts the fast charging process with the electronic device. Then, the cable attribute information in the E-MARKer is obtained, and the power transmission capability data of the charging cable is extracted from the cable attribute information in the E-MARKer. 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 at the maximum charging current, which can improve the charging efficiency, avoid the charging current exceeding the power transmission capability of the cable, and ensure the reliability and safety of the charging. The voltage of the Vbus line can be set to 4.6V, or other values greater than 4.6V.
[0090] 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 the set value, the fast charging request sent by the electronic device is obtained.
[0091] In combination with the above embodiments, when the fast charging request of the electronic device is received, the maximum charging current value of the electronic device can also be obtained from the fast charging request. Whether the required maximum charging current value of the electronic device is greater than the maximum charging current value of the charging cable is compared. If the maximum charging current value of the electronic device is less than the maximum charging current value of the charging cable, the maximum charging current value of the electronic device is determined as the maximum charging current. In this way, the charging current suitable for the charging cable and the electronic device is determined in advance.
[0092] Please refer toFigure 5 , Figure 5 The program module schematic diagram of the charging current determination device is provided. Embodiments of the present application provide a charging current determination device, the charging cable applied by the charging current determination device is provided with an E-MARKer, and the charging current determination device comprises:
[0093] The acquisition module 110 is configured to acquire cable attribute information in the E-MARKer when charging the electronic device by using the charging cable.
[0094] The extraction module 120 is configured to extract power transmission capability data of the charging cable from the cable attribute information.
[0095] The determination module 130 is 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.
[0096] In the embodiment, the acquisition module 110 can acquire the cable attribute information in the E-MARKer. Then the extraction module 120 can extract the power transmission capability data of the cable from the cable attribute information of the E-MARKer. Finally, the determination module 130 determines the maximum charging current according to the power transmission capability data of the cable, and takes the maximum charging current as the fast charging current of VOOC, so that the charging efficiency can be improved, and the reliability and safety of charging can be ensured.
[0097] Please refer to Figure 6 , Figure 6 The program module schematic diagram of the charging current determination device in an embodiment of the present application is provided. Specifically, the charging current determination device comprises:
[0098] The acquisition module 110 is configured to acquire cable attribute information in the E-MARKer when charging the electronic device by using the charging cable.
[0099] The extraction module 120 is configured to extract power transmission capability data of the charging cable from the cable attribute information.
[0100] The determination module 130 is configured to determine a maximum charging current according to the power transmission capability data of the charging cable.
[0101] The detection module 140 is configured to detect a voltage value on a Vbus line in a Type-C interface.
[0102] The receiving module 150 is configured to acquire a fast charging request sent by the electronic device after detecting that the voltage value on the Vbus line in the Type-C interface exceeds a voltage threshold.
[0103] The charging module 160 is configured to charge at a maximum charging current according to the fast charging request.
[0104] Referring to Figure 7 , Figure 7 is a schematic diagram of a program module of a charging current determination apparatus in another embodiment of the present application. The charging current determination apparatus comprises:
[0105] The detection module 210 is configured to detect a voltage value on a Vbus line in a Type-C interface.
[0106] The receiving module 220 is configured to acquire a fast charging request sent by an electronic device after detecting that the voltage value on the Vbus line in the Type-C interface exceeds a voltage threshold.
[0107] The acquisition module 230 is configured to acquire cable attribute information in an E-MARKer when charging the electronic device by using the charging cable.
[0108] The extraction module 240 is configured to extract power transmission capability data of the cable from the cable attribute information.
[0109] The determination module 250 is 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.
[0110] Referring to Figure 8 , Figure 8 is an adapter provided by a fourth embodiment of the present application. The adapter can be used to implement the charging current determination method in the foregoing embodiments. As shown in Figure 8 , the adapter mainly comprises:
[0111] The memory 301, the processor 302, the bus 303, and a computer program stored in the memory 301 and executable on the processor 302 are connected by the bus 303. When the processor 302 executes the computer program, the charging current determination method in the foregoing embodiments is implemented. The number of processors can be one or more.
[0112] The memory 301 can be a high-speed random access memory (RAM) or a non-volatile memory such as a disk memory. The memory 301 is configured to store executable program codes, and the processor 302 is coupled to the memory 301.
[0113] Further, the embodiments of the present application also provide a computer readable storage medium, which can be arranged in the adapter in the foregoing embodiments. The computer readable storage medium can be the foregoingFigure 8 The memory in the illustrated embodiment.
[0114] The computer readable storage medium stores a computer program, which is executed by the processor to implement the method for determining the charging current in the foregoing embodiments. Further, the computer readable storage medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and various media that can store program codes.
[0115] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic. For example, the division of the modules is merely a logical function division. There can be another division manner for the actual implementation. For example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or modules, and can be electrical, mechanical or in other forms.
[0116] The modules illustrated as separate components can or can not be physically separate, and the components illustrated as modules can or can not be physical modules, i.e., can be located in one place or distributed to a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.
[0117] In addition, the functional modules in each of the embodiments of the present application can be integrated in one processing module, or each module can be physically present alone, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0118] If the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, includes several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the embodiments of the present application. The aforementioned readable storage medium includes a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media that can store program codes.
[0119] It should be noted that, for the foregoing method embodiments, for the convenience of description, they are all described as a combination of a series of actions, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0120] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0121] The above is the description of the charging current determination method, device, adapter and computer readable storage medium provided by the present application. For those skilled in the art, according to the idea of the embodiments of the present application, there will be changes in specific implementation and application range. In summary, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A method for determining charging current, the method being applied to a Universal Serial Bus (USB) charging cable, wherein the charging cable includes an E-Marker, characterized in that... The method for determining the charging current includes: When charging an electronic device using the charging cable, obtain the cable attribute information in E-MARKer; The power transmission capability data of the charging cable is extracted from the cable attribute information; the power transmission capability data of the charging cable includes the maximum charging current value of the charging cable; and Obtain the maximum charging current value of the electronic device from the fast charging request of the electronic device; If the maximum charging current of the electronic device is less than the maximum charging current of the charging cable, then the maximum charging current of the electronic device is determined as the maximum charging current for charging the electronic device using the charging cable. If the maximum charging current value of the electronic device is greater than or equal to the maximum charging current value of the charging cable, then the maximum charging current value of the charging cable is determined as the maximum charging current. If obtaining the cable attribute information fails, the preset charging current of the charging cable is determined as the maximum charging current; wherein, the preset charging current is a configurable value; the preset charging current is related to the actual application.
2. The method for determining the charging current as described in claim 1, characterized in that, The method further includes: Verify whether the cable attribute information in the E-MARKer has been successfully obtained; If the acquisition of cable attribute information in the E-MARKer fails, the step of acquiring the cable attribute information of the E-MARKer is repeated; and Continue to verify whether the cable attribute information in E-MARKer has been successfully obtained, until the cable attribute information in E-MARKer is successfully obtained.
3. The method for determining the charging current as described in claim 2, characterized in that, Following the step of repeatedly obtaining the cable attribute information of E-MARKer, the method further includes: Count the number of times cable attribute information is repeatedly retrieved from E-MARKer; When the number of times cable attribute information is repeatedly acquired exceeds a set threshold, the preset charging current of the charging cable is determined as the maximum charging current.
4. The method for determining the charging current as described in claim 1, characterized in that, The method further includes: The electronic device is charged with the maximum charging current according to the fast charging request.
5. The method for determining the charging current as described in claim 1, characterized in that, Before the step of obtaining cable attribute information from E-MARKer, the following steps are also included: Detect the voltage value on the Vbus line of the charging cable; After detecting that the real-time voltage value on the Vbus line of the charging cable exceeds the voltage threshold, the fast charging request sent by the electronic device is obtained.
6. The method for determining the charging current as described in any one of claims 1-5, characterized in that, The charging cable is a charging cable with a Type-C interface. The step of obtaining the cable attribute information in E-MARKer specifically includes: According to the communication format and data frames defined in the PD protocol, the E-MARKer is accessed through one CC signal line of the charging cable; and Obtain cable attribute information from E-MARKer, including cable manufacturer information, cable power transmission capability, and cable data transmission capability.
7. The method for determining the charging current as described in claim 6, characterized in that, The step of obtaining cable attribute information in E-MARKer further includes: Switch the other CC signal line to the Vconn line to power the E-MARKer via the Vconn line; or The electronic device powers the E-MARKer using the VCONNSWAP command defined in the PD protocol.
8. A charging current determining device, the charging current determining device being applied to a Universal Serial Bus (USB) charging cable, the charging cable being provided with an E-MARKer, characterized in that, The device for determining the charging current includes: The acquisition module is used to acquire cable attribute information in E-MARKer when charging an electronic device using the charging cable; An extraction module is used to extract the power transmission capability data of the charging cable from the cable attribute information; the power transmission capability data of the charging cable includes the maximum charging current value of the charging cable; A determination module is used to obtain the maximum charging current value of the electronic device from the fast charging request of the electronic device; if the maximum charging current value of the electronic device is less than the maximum charging current value of the charging cable, then the maximum charging current value of the electronic device is determined as the maximum charging current for charging the electronic device using the charging cable; if the maximum charging current value of the electronic device is greater than or equal to the maximum charging current value of the charging cable, then the maximum charging current value of the charging cable is determined as the maximum charging current; in the case of failure to obtain the cable attribute information, the preset charging current of the charging cable is determined as the maximum charging current; wherein, the preset charging current is a configurable value; the preset charging current is related to the actual application.
9. An adapter, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Charging current determination method and device
CN111157813A