A charging wire charging control method and charging wire
By having the charging cable handshake with the power adapter to confirm the charging protocol parameters before charging, the safety hazards caused by protocol incompatibility during charging are resolved, thus improving charging safety and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2022-09-30
- Publication Date
- 2026-05-29
AI Technical Summary
During the charging process of electronic devices, mismatched charging protocol parameters between the power adapter and the charging cable can lead to safety hazards. Users may not be able to detect and stop charging in time, resulting in anything from minor charging malfunctions to serious safety issues.
Before connecting the charging cable to the power adapter, it communicates with the power adapter via the built-in charging protocol controller to confirm the compatibility of the protocol parameters. If they do not match, the cable stops working and displays an error message, or disconnects the charging circuit.
It enables timely detection of power adapter malfunctions before charging, improving charging safety and reliability and preventing equipment damage or safety issues caused by parameter mismatch.
Smart Images

Figure CN115441561B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of charging cable technology, and to, but is not limited to, a charging control method for a charging cable and a charging cable. Background Technology
[0002] As the charging power of electronic devices increases, the safety hazards during the charging process also increase.
[0003] During use, the rate of problems with various components is increasing, such as damage to the power adapter, foreign objects, short circuits, dirt, and abnormal impedance of the charging cable at both ends of the Type-C port. Users are unable to detect abnormal charging parameters in time and stop charging in a timely manner.
[0004] At best, it will cause charging malfunctions; at worst, it will lead to safety issues. Summary of the Invention
[0005] In view of this, embodiments of this application provide a charging cable control method and a charging cable.
[0006] In a first aspect, embodiments of this application provide a charging control method for a charging cable, the method comprising: responding to a connection between a first interface of the charging cable and a third interface of a power adapter, wherein the charging cable communicates with the power adapter via a charging protocol to obtain charging protocol parameters supported by the power adapter; determining that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, controlling the charging cable to be in a first state, wherein in the first state the charging cable stops working and / or the charging cable indicates an abnormality in the power adapter.
[0007] Secondly, embodiments of this application provide a charging cable, including: a cable; a first interface and a second interface disposed at both ends of the cable; a controller configured to respond to the connection of the first interface with a third interface of a power adapter, for communicating with the power adapter via a charging protocol to obtain charging protocol parameters supported by the power adapter; if it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, the controller controls the charging cable to be in a first state, in which the charging cable stops working and / or the charging cable indicates that the power adapter is abnormal.
[0008] In this embodiment, before charging the electronic device to be charged, the charging cable first communicates the charging protocol with the power adapter. If it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, it is determined that the power adapter has malfunctioned. This allows for timely and accurate detection of power adapter malfunctions, prompt termination of charging, and improved charging safety and reliability. Attached Figure Description
[0009] Figure 1 This is a schematic flowchart of a charging cable charging detection method according to an embodiment of this application;
[0010] Figure 2 This is a schematic diagram of a charging cable according to an embodiment of this application;
[0011] Figure 3 This is a schematic diagram illustrating a charging function malfunction according to an embodiment of this application;
[0012] Figure 4 This is a flowchart illustrating another charging cable charging detection method according to an embodiment of this application;
[0013] Figure 5a This is a schematic diagram of another charging cable according to an embodiment of this application;
[0014] Figure 5b This is a schematic diagram of another charging cable according to an embodiment of this application. Detailed Implementation
[0015] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and embodiments.
[0016] Figure 1 This is a flowchart illustrating a charging detection method for a charging cable according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:
[0017] Step S102: In response to the connection between the first interface of the charging cable and the third interface of the power adapter,
[0018] The first and third interfaces can be of various types, including Micro USB, USB Type-C, and Lightning interfaces. When both the first and third interfaces are USB Type-C, the USB Type-C interface includes CC pins (CC1 and CC2). The CC pins on the charging cable operate in polling mode. The pull-up and pull-down of the CC pins on the charging cable (the voltage changes of CC1 and CC2) can determine which end of the connection is a DFP (Downstream Facing Part) and which is a UFP (Upstream Facing Part). The power adapter is a DFP, and the electronic device to be charged can be either a DFP or a UFP, i.e., the electronic device to be charged is a DRP (Dual Role Part). The power adapter has a pull-up resistor R. p The UFP has a pull-down resistor R. dThe charging cable can determine whether a pull-down resistor or a pull-up resistor is connected based on the voltage changes of the CC1 and CC2 pins, thereby determining whether an electronic device or power adapter to be charged is connected.
[0019] In a charging scenario, the electronic device to be charged is a UFP. If the CC1 or CC2 pin of the charging cable indicates the presence of a pull-up resistor based on voltage changes, but no pull-down resistor is connected, then the charging cable is connected to the power adapter and not to the electronic device to be charged. Conversely, if the CC1 or CC2 pin of the charging cable indicates the presence of a pull-down resistor based on voltage changes, but no pull-up resistor is connected, then the charging cable is connected to the electronic device to be charged and not to the power adapter. In both cases, because there is no effective connection between the pull-up and pull-down resistors, an effective voltage cannot be formed on the charging cable, and the charging cable will not function.
[0020] If the CC1 or CC2 pin of the charging cable indicates the presence of pull-up and pull-down resistors based on voltage changes, then the charging cable is connected to both the power adapter and the electronic device being charged. This effective connection of the pull-up and pull-down resistors allows for a valid voltage to be generated on the charging cable, enabling it to function.
[0021] Step S104: The charging cable communicates with the power adapter via a charging protocol to obtain the charging protocol parameters supported by the power adapter;
[0022] Typically, the electronic device to be charged has a charging protocol controller, which can communicate the charging protocol. A charging protocol controller can be placed on the charging cable. Before the charging cable charges the electronic device, that is, before the charging cable is connected to the electronic device, the charging cable can perform a protocol handshake with the charging protocol controller of the power adapter through its built-in charging protocol controller. After the handshake, the charging cable can make the power adapter output the supported charging protocol parameters, thereby allowing the charging cable to verify whether the power adapter is functioning properly.
[0023] Step S106: Determine that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, and control the charging cable to be in a first state. In the first state, the charging cable stops working and / or the charging cable indicates that the power adapter is abnormal.
[0024] The charging protocol parameters supported by the power adapter and the charging cable may not match. This could be because the power adapter or the charging cable is not original, or the power adapter is worn out, damaged, or malfunctioning, or the third interface of the power adapter is dirty, or the first interface of the charging cable is dirty or contains foreign objects. In this case, charging the electronic device to be charged may damage the power adapter or charger, or even cause safety issues. Therefore, it is necessary to stop the charging cable from working and have the display component of the charging cable issue a prompt message, or the audio component of the charging cable issue an audio alarm message to indicate that the power adapter is malfunctioning.
[0025] In this embodiment, before charging the electronic device to be charged, the charging cable first communicates the charging protocol with the power adapter. If it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, it is determined that the power adapter has malfunctioned. This allows for timely and accurate detection of power adapter malfunctions, prompt termination of charging, and improved charging safety and reliability.
[0026] In some embodiments, the power adapter's supported charging protocol parameters include at least one first charging protocol identifier and a first charging voltage value supported by each first charging protocol.
[0027] Step S106, "determining that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable," includes:
[0028] Matching and confirmation are performed based on at least one first charging protocol identifier and the first charging voltage value supported by each first charging protocol.
[0029] The first charging protocol identifier can identify different first charging protocols, which may include BC (Battery Charging), QC (Quick Charge), and PD (Power Delivery) protocols. The BC protocol includes BC1.2; the QC protocol includes QC2.0, QC3.0, and QC4.0; and the PD protocol includes PD2.0, PD3.0, etc. Each charging protocol has a corresponding voltage level. For example, BC1.2 supports a voltage level of 5 volts (V), QC2.0 supports voltage levels of 5V, 9V, and 12V, and the PD charging protocol supports voltage levels from 5V to 20V.
[0030] The second charging protocol supported by the charging cable and the second charging voltage value supported by each of the second charging protocols can be programmed into the microcontroller unit (MCU) of the charging cable. The first charging protocol of the power adapter and the second charging protocol built into the MCU of the charging cable can be compared to see if there is a second charging protocol that is the same as the first charging protocol. If the charging protocols in the second charging protocol are all different from the first charging protocol, it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable. If there is a charging protocol in the second charging protocol that is the same as the first charging protocol, it is determined whether the charging voltage values supported by the same charging protocol are the same. If they are the same, it is determined that the charging protocol parameters supported by the power adapter match the charging protocol parameters supported by the charging cable. If they are different, it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable.
[0031] In one embodiment, assuming the first charging voltage built into the charging cable is 5V to 10V, while the second charging voltage supported by the power adapter is less than 5V, it can be determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable.
[0032] The MCU can output the first charging protocol, the first charging voltage value corresponding to the first charging protocol, the second charging protocol, and the second charging voltage value corresponding to the second charging protocol to the display component of the charging cable, so that the display component can display the charging protocol parameters supported by the power adapter and the charging cable respectively.
[0033] In this embodiment, before charging the electronic device to be charged, the charging cable first communicates the charging protocol with the power adapter. The charging protocol and charging voltage value supported by the power adapter are matched and confirmed to confirm whether the power adapter is abnormal. This allows for timely and accurate detection of power adapter abnormalities, timely termination of charging, and improved charging safety and reliability.
[0034] In some embodiments, the method further includes:
[0035] Step S107: In response to the charging cable being connected to the electronic device to be charged, disconnect the charging protocol communication between the charging cable and the power adapter, and establish the charging protocol communication between the electronic device to be charged and the power adapter.
[0036] If the power adapter is confirmed to be functioning normally, normal charging can be performed. The charging cable and the electronic device to be charged are connected, and the connection between the charging protocol controller of the charging cable and the charging protocol controller of the power adapter is disconnected. Then, the connection between the charging protocol controller of the electronic device to be charged and the charging protocol controller of the power adapter is established.
[0037] In this embodiment, when the charging cable detects no abnormality in the power adapter, the communication of the charging protocol between the charging cable and the power adapter is disconnected, and the communication of the charging protocol between the electronic device to be charged and the power adapter is established. This allows charging to be stopped when the power adapter fails to detect an abnormality, and connection to the device to be charged is only established when there is no abnormality, thereby improving charging safety.
[0038] In some embodiments, the method further includes the following steps S108 to S110:
[0039] Step S108: In response to the connection between the second interface of the charging cable and the fourth interface of the electronic device to be charged, obtain the voltage difference between the second interface and the first interface and the current value in the charging cable;
[0040] The electronic device to be charged can be a desktop computer, laptop computer, tablet computer, mobile phone, etc.; the charging cable can include a detection resistor, with the second interface and the first interface located at both ends of the detection resistor, which can perform a self-test of the charging cable during low-current charging, that is, detect the voltage difference between the second interface and the first interface; when the first interface and the second interface are Type-C interfaces, the Type-C interface includes a VBUS pin, and the voltage difference between the first interface and the second interface can be determined by detecting the voltage values of the VBUS pins of the first interface and the second interface respectively.
[0041] Step S109: Determine the impedance of the charging cable based on the voltage difference and the current value;
[0042] The impedance of the charging cable at this time can be obtained by dividing the voltage difference and the current value.
[0043] Step S110: If the impedance of the charging cable is outside the preset resistance range, it is determined that the impedance of the charging cable is abnormal, and the charging cable is controlled to be in a second state. The second state includes the charging cable stopping working and / or the charging cable indicating that the charging cable is abnormal.
[0044] If the impedance of the charging cable is outside the preset resistance range, the charging cable may be malfunctioning. If the electronic device to be charged continues to be charged, it may damage the power adapter, charger, or charging cable, or even cause safety problems. Therefore, it is necessary to control the charging cable to stop working and issue a prompt message through the display component of the charging cable or issue an audio alarm message through the audio component of the charging cable to indicate that the charging cable is malfunctioning.
[0045] In this embodiment, before charging the electronic device, the charging cable first establishes a handshake with the power adapter to communicate the charging protocol. The charging protocol and voltage value supported by the power adapter are matched and confirmed to check for any abnormalities in the power adapter. This allows for timely and accurate detection of power adapter malfunctions, enabling timely termination of charging and improving charging safety and reliability. After the charging cable is connected to the electronic device, a self-test mode is activated. Based on the detected charging internal resistance, any abnormalities in the charging cable impedance can be detected promptly, further enhancing charging safety.
[0046] In some embodiments, the method further includes the steps S111 and S112:
[0047] Step S111: In response to the connection between the charging cable and the electronic device to be charged, at least one charging parameter information is acquired at preset intervals;
[0048] The charging parameter information includes at least one of the following: charging power, charging voltage, charging current, first interface temperature of the first interface, and second interface temperature of the second interface; the first interface temperature is determined based on a first thermistor built into the first interface; and the second interface temperature is determined based on a second thermistor built into the second interface.
[0049] Step S112: If any of the charging parameter information is outside the corresponding preset parameter information range, determine that the corresponding charging parameter information is abnormal, and control the charging cable to be in a third state. The third state includes the charging cable stopping working and / or the charging cable indicating that the charging parameter information is abnormal.
[0050] The charging cable may contain a built-in detection resistor with a known resistance value. The charging voltage can be determined by detecting the voltage difference across the detection resistor. The charging current can be determined by the charging voltage and the resistance value of the detection resistor. The charging power can be determined by the charging voltage and the charging current.
[0051] The first and second thermistors can be positive temperature coefficient (PTC) thermistors or negative temperature coefficient (NTC) thermistors. When both the first and second thermistors are NTC thermistors, the higher the temperature at the first or second interface, the lower the resistance of the first and second thermistors. Therefore, the temperature at the first or second interface can be determined by detecting the resistance of the first and second thermistors. If the temperature is greater than a first preset temperature threshold, it can be determined that the temperature at the interface is too high, which may lead to abnormalities such as short circuits and pose a safety hazard. If the temperature is less than a second preset temperature threshold, it can be determined that the temperature at the interface is too low. If the electronic device to be charged is equipped with low temperature protection, it will be unable to charge when the temperature is too low.
[0052] If the charging parameter information is abnormal, continuing to charge the electronic device may damage the power adapter, charger, or charging cable, or even cause safety issues. Therefore, it is necessary to control the charging cable to stop working and issue a prompt message through the display component of the charging cable, or issue an audio alarm message through the audio component of the charging cable, to indicate that the charging parameter information is abnormal.
[0053] It should be noted that normal charging is possible if there are no abnormalities in the power adapter, the impedance of the charging cable, and the charging parameter information. During normal charging, the MCU can periodically poll the charging parameter information.
[0054] In this embodiment, before charging the electronic device, the charging cable first establishes a handshake with the power adapter to communicate the charging protocol. The charging protocol and voltage value supported by the power adapter are matched and confirmed to check for any abnormalities in the power adapter. This allows for timely and accurate detection of power adapter malfunctions, enabling timely termination of charging and improving charging safety and reliability. After the charging cable is connected to the electronic device, a self-test mode is activated. Based on the detected charging internal resistance, abnormal charging cable impedance can be detected promptly, further enhancing charging safety. NTC resistors are built into both ends of the charging cable near the Type-C interface. The temperature reflected by the resistance can be used to detect short circuits and other abnormalities at the interface. Real-time display of the current charging parameters of the electronic device, such as charging function, voltage, current, and interface temperature, improves the user experience. Real-time monitoring of charging voltage, current, power, and port temperature, along with proactive warnings and automatic disconnection of the charging circuit upon detecting abnormalities, enhances charging safety.
[0055] Figure 2 This is a schematic diagram of a charging cable according to an embodiment of this application, as shown below. Figure 2 As shown, the charging cable includes:
[0056] Cable 201;
[0057] The first interface 202 and the second interface 203 are provided at both ends of the cable 201;
[0058] The controller 204 is configured to respond to the connection of the first interface 202 with the third interface of the power adapter, and to communicate with the power adapter via the charging protocol to obtain the charging protocol parameters supported by the power adapter; if it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, the controller controls the charging cable to be in a first state, in which the charging cable stops working and / or the charging cable indicates that the power adapter is abnormal.
[0059] It should be noted that the charging cable may also include a switch, which may be a switching transistor. The switching transistor is connected to the second terminal of the MCU. The MCU can control the switching transistor to disconnect in order to stop the charging cable from working. The switching transistor may be a transistor, a field-effect transistor, etc. The field-effect transistor may be a metal-oxide-semiconductor field-effect transistor, abbreviated as MOSFET.
[0060] In some embodiments, the controller may include an independent protocol controller and an MCU; a first end of the protocol controller is connected to the first interface, and a second end of the protocol controller is connected to the first end of the MCU; the protocol controller can be used to communicate with the power adapter via a charging protocol, and may include a PD protocol controller, a BC protocol controller, and a QC protocol controller, etc.; the protocol controller of the charging cable can send the acquired charging protocol parameters of the power adapter to the MCU of the charging cable, and the MCU compares whether the charging protocol parameters of the power adapter and the charging protocol parameters of the charging cable built into the MCU match. If the MCU determines that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, it controls the charging cable to be in a first state.
[0061] In some embodiments, the second interface is connected to a fourth interface of the electronic device to be charged;
[0062] The controller is further configured to acquire the voltage difference between the second interface and the first interface, and the current value in the charging cable; and determine the impedance of the charging cable based on the voltage difference and the current value; and if the impedance of the charging cable is outside a preset resistance range, determine that the impedance of the charging cable is abnormal, and control the charging cable to be in a second state, the second state including the charging cable stopping working and / or the charging cable indicating that the charging cable is abnormal.
[0063] The charging cable may further include an ADC (analog-to-digital converter) chip and a sensing resistor. A first terminal of the ADC chip is connected to the first interface, and a second terminal is connected to the second interface to acquire a first analog voltage signal and a second analog voltage signal from the VBUS pins of the first and second interfaces, respectively. A third terminal of the ADC chip is connected to the third terminal of the MCU. A fourth and fifth terminal of the ADC chip are connected to both ends of the sensing resistor to acquire a third analog voltage signal across the sensing resistor. A switching transistor may be positioned between the first interface and the sensing resistor.
[0064] The ADC conversion chip can convert the first analog voltage signal, the second analog voltage signal, and the third analog voltage signal into a first digital voltage signal, a second digital voltage signal, and a third digital voltage signal, respectively, and then send them to the MCU. The MCU can determine the current value (i.e., charging current) in the charging line based on the third digital voltage signal and the resistance value of the detection resistor. It can also obtain the impedance of the charging line by dividing the voltage difference between the first digital voltage signal and the second digital voltage signal by the charging current.
[0065] When the impedance of the charging cable is found to be abnormal, the MCU can control the charging cable to be in a second state.
[0066] In some embodiments, the controller is further configured to acquire at least one charging parameter information at preset time intervals;
[0067] If any of the charging parameter information is outside the corresponding preset parameter information range, the corresponding charging parameter information is determined to be abnormal, and the charging cable is controlled to be in a third state. The third state includes the charging cable stopping working and / or the charging cable indicating that the charging parameter information is abnormal.
[0068] In the event of abnormal charging parameter information obtained by the MCU, the charging cable can be controlled to enter a third state. The charging cable may include a storage device, which is connected to a fourth terminal of the MCU and is used to store voltage signals, current signals, and charging parameter information obtained by the MCU.
[0069] In some embodiments, the charging cable further includes:
[0070] A display component is used to display prompt information and / or charging parameter information in the first state / second state / third state;
[0071] The display component can be a liquid crystal display (LCD) or a light-emitting diode (LED), etc. The LED can be a white light-emitting diode or a three-color light-emitting diode (Red Green Blue LED, RGB LED). The LCD can be connected to the fifth terminal of the MCU via a serial port or a parallel port, and the LED can be connected to the sixth terminal of the MCU via a control interface.
[0072] An audio component is used to output audio alarm information in the first state / second state / third state.
[0073] The audio component can be a buzzer, which can be connected to the seventh terminal of the MCU via a control interface. The display component of the charging cable can issue a prompt, or the audio component of the charging cable can generate an audio alarm to indicate an abnormality in at least one of the power adapter, the charging cable, or the charging parameter information.
[0074] As the charging power of electronic devices increases, so do the safety hazards during the charging process. During use, the rate of problems with various components is also increasing, such as damaged power adapters, foreign objects, short circuits, dirt, and abnormal impedance of the charging cable at both ends of the Type-C port. Users are unable to detect abnormal charging parameters in time and stop charging in time.
[0075] At best, it causes charging malfunctions; at worst, it leads to safety issues. Figure 3 As shown, the area circled in 301 indicates that due to a malfunction in the charging function, the charging interface of the charging cable was burned, and the metal piece in the charging interface was displaced.
[0076] In related technologies, it is impossible to detect abnormalities at the charging ports at both ends of the charger in advance; users cannot monitor charging parameters in real time, and cannot actively disconnect charging in a timely manner after an abnormality occurs.
[0077] Figure 4 This is a flowchart illustrating another charging cable charging detection method according to an embodiment of this application, as shown below. Figure 4 As shown, the method includes the following steps:
[0078] Step S401: Insert the power adapter;
[0079] The charging cable can first detect whether it is connected to a power adapter;
[0080] Step S402: Detect the charging protocol of the power adapter;
[0081] Once the power adapter and charging cable are connected, the protocol controller built into the charging cable can shake hands with the power adapter, poll for the currently supported charging protocols, and obtain information such as E-Mark. The purpose is to detect the functionality of the power adapter and whether the Type-C port is in normal contact.
[0082] In the event of an abnormality in the charging protocol, step S406 can be executed.
[0083] Step S403: Charging cable self-test;
[0084] Once the power adapter, charging cable, and the electronic device to be charged are all connected, the charging cable self-test mode is activated to detect the VBUS voltage difference at the Type-C ports at both ends of the charging cable. Based on the detected current, the impedance of the charging cable is calculated. If the impedance is abnormal, step S406 can be executed to issue a warning or disable the device.
[0085] Step S404: Handshake with the electronic device to be charged to start normal charging;
[0086] During normal charging, the ADC detection can be enabled, which can report and display information such as charging voltage, charging current, and temperature at both ends of the interface in real time. When abnormal temperature / current is detected, step S406 can be executed to control the MOSFET to disconnect the charging circuit and issue an alarm through LCD / LED / buzzer.
[0087] Step S405: Real-time detection and display of charging parameters;
[0088] During normal charging, the MCU can periodically poll and report charging parameters and other data.
[0089] Step S406: Disconnect the charging line and issue an active alarm.
[0090] Before high-power charging, this application first performs a handshake test on the power adapter, which can promptly detect any abnormal contact between the power adapter and the charging port. Then, it activates a self-test mode on the charging cable, which can promptly detect any abnormal charging impedance based on the detected internal resistance. Near the Type-C port at both ends of the charging cable, there are built-in NTC resistors, which can detect short circuits and other abnormalities at the port by reflecting the temperature through the resistance. The application displays the current charging parameters of the electronic device being charged in real time, such as charging function, voltage, current, and port temperature, improving the user experience. During charging, it monitors the charging voltage, current, power, and port temperature in real time, actively issuing warnings and automatically disconnecting the charging circuit upon detecting abnormalities. It is highly versatile and can be used with various power adapters and mobile phones.
[0091] Figure 5a This is a schematic diagram of another charging cable according to an embodiment of this application, as shown below. Figure 5a As shown, the charging cable includes:
[0092] Cable 501;
[0093] The first interface 502 and the second interface 503 are provided at both ends of the cable 501;
[0094] A controller 504 is installed on the cable; it is configured to respond to the connection of the first interface 202 with the third interface of the power adapter, and to communicate with the power adapter via the charging protocol to obtain the charging protocol parameters supported by the power adapter; if it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, the controller puts the charging cable into a first state, in which the charging cable stops working and / or the charging cable indicates that the power adapter is abnormal.
[0095] In some embodiments, such as Figure 5b As shown, the controller 504 includes a protocol controller 5041 and a microcontroller unit (MCU) 5042. The first terminal of the protocol controller 5041 is connected to the first interface 502, and the second terminal of the protocol controller 5041 is connected to the first terminal of the microcontroller unit 5042. The protocol controller 5041 can communicate with the power adapter via a charging protocol. The protocol controller 5041 can send the acquired charging protocol parameters of the power adapter to the MCU 5042 of the charging cable. The MCU 5042 then compares the charging protocol parameters of the power adapter with the charging protocol parameters of the charging cable built into the MCU 5042 to see if they match. If the MCU 5042 determines that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, it controls the charging cable to be in a first state.
[0096] In some embodiments, such as Figure 5b As shown, the charging cable may also include a switch 506, which is connected to the second terminal of the MCU 5042. The MCU 5042 can control the switch to open to stop the charging cable from working.
[0097] In some embodiments, such as Figure 5b As shown, the charging cable may further include an ADC conversion chip 507 and a sensing resistor 508. A first terminal of the ADC conversion chip 507 can be connected to the first interface 502, and a second terminal of the ADC conversion chip 507 can be connected to the second interface 503 to obtain a first analog voltage signal and a second analog voltage signal from the VBUS pins of the first interface 502 and the second interface 503, respectively. A third terminal of the ADC conversion chip 507 is connected to the third terminal of the MCU 5042, and a fourth and fifth terminal of the ADC conversion chip 507 are respectively connected to the two ends of the sensing resistor 508 to obtain a third analog voltage signal from the two ends of the sensing resistor 508. The switching transistor 506 can be disposed between the first interface 502 and the sensing resistor 508.
[0098] In some embodiments, such as Figure 5b As shown, the charging cable may also include a storage device 509, which is connected to the fourth terminal of the MCU 5042 and is used to store the charging parameter information acquired by the MCU 5042.
[0099] In some embodiments, such as Figure 5b As shown, the charging parameter information includes at least one of the following: charging power, charging voltage, charging current, the first interface temperature of the first interface, and the second interface temperature of the second interface;
[0100] The temperature of the first interface is determined by the first thermistor 510 built into the first interface 502; the temperature of the second interface is determined by the second thermistor 511 built into the second interface 503.
[0101] In some embodiments, such as Figure 5bAs shown, the charging cable also includes a display component 512, a display component 513, and an audio component 514. The display component 512 can be an LCD, which can be used to display the charging parameter information. The display component 513 can be an LED, which can display prompt information in the first / second / third state. The audio component 514 can be a buzzer. The LCD can be connected to the fifth terminal of the MCU via a serial port or a parallel port. The LED can be connected to the sixth terminal of the MCU 5042 via a control interface. The buzzer can be connected to the seventh terminal of the MCU 5042 via a control interface.
[0102] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects as the device embodiments. For technical details not disclosed in the storage medium and method embodiments of this application, please refer to the descriptions of the device embodiments of this application for understanding.
[0103] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0104] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0105] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0106] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units; some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, the functional units in the embodiments of this application may all be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in hardware or in a combination of hardware and software functional units.
[0107] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks. Alternatively, if the integrated units of this application are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the related technology, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause computer devices (which may be mobile phones, tablets, desktops, personal digital assistants, navigators, digital phones, video phones, televisions, sensing devices, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0108] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined to obtain new method embodiments without conflict. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined to obtain new product embodiments without conflict. The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined to obtain new method embodiments or device embodiments without conflict.
[0109] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A charging cable charging control method, the method comprising: In response to the connection between the first interface of the charging cable and the third interface of the power adapter, the charging cable communicates with the power adapter via a charging protocol to obtain the charging protocol parameters supported by the power adapter. If it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, the charging cable is controlled to be in a first state. In the first state, the charging cable stops working and / or the charging cable indicates that the power adapter is abnormal. The power adapter supports charging protocol parameters including at least one first charging protocol identifier and a first charging voltage value supported by each first charging protocol. Determining that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable includes: Matching and confirmation are performed based on the at least one first charging protocol identifier and the first charging voltage value supported by each first charging protocol; The method further includes: When the charging cable is connected to the electronic device to be charged, in response to the second interface of the charging cable being connected to the fourth interface of the electronic device to be charged, the voltage difference between the second interface and the first interface and the current value in the charging cable are obtained. The impedance of the charging cable is determined based on the voltage difference and the current value, and any abnormality in the charging cable is detected by impedance detection.
2. The method according to claim 1, wherein, The method further includes: In response to the charging cable being connected to the electronic device to be charged, the communication of the charging protocol between the charging cable and the power adapter is disconnected, and the communication of the charging protocol between the electronic device to be charged and the power adapter is established.
3. The method according to claim 1, wherein, The method further includes: If the impedance of the charging cable is outside the preset resistance range, it is determined that the impedance of the charging cable is abnormal, and the charging cable is controlled to be in a second state. The second state includes the charging cable stopping working and / or the charging cable indicating that the charging cable is abnormal.
4. The method according to claim 3, wherein, The method further includes: In response to the connection of the charging cable with the electronic device to be charged, at least one charging parameter information is acquired at preset time intervals; If any of the charging parameter information is outside the corresponding preset parameter information range, the corresponding charging parameter information is determined to be abnormal, and the charging cable is controlled to be in a third state. The third state includes the charging cable stopping working and / or the charging cable indicating that the charging parameter information is abnormal.
5. The method according to claim 4, wherein the charging parameter information includes at least one of charging power, charging voltage, charging current, the first interface temperature of the first interface, and the second interface temperature of the second interface; The temperature of the first interface is determined based on the first thermistor built into the first interface; the temperature of the second interface is determined based on the second thermistor built into the second interface.
6. A charging cable, comprising: Cables; The first and second interfaces are provided at both ends of the cable; The controller is configured to respond to the connection of the first interface with the third interface of the power adapter, and to communicate with the power adapter via the charging protocol to obtain the charging protocol parameters supported by the power adapter. If it is determined that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable, the charging cable is controlled to be in a first state. In the first state, the charging cable stops working and / or the charging cable indicates that the power adapter is abnormal. The power adapter supports charging protocol parameters including at least one first charging protocol identifier and a first charging voltage value supported by each first charging protocol. Determining that the charging protocol parameters supported by the power adapter do not match the charging protocol parameters supported by the charging cable includes: performing a matching confirmation based on the at least one first charging protocol identifier and the first charging voltage value supported by each first charging protocol. The controller is further configured to, when the charging cable is connected to the electronic device to be charged, in response to the second interface of the charging cable being connected to the fourth interface of the electronic device to be charged, acquire the voltage difference between the second interface and the first interface and the current value in the charging cable; determine the impedance of the charging cable based on the voltage difference and the current value, and determine the charging cable malfunction by impedance detection of the charging cable.
7. The charging cable according to claim 6, wherein, The second interface is connected to the fourth interface of the electronic device to be charged; The controller is also configured to acquire the voltage difference between the second interface and the first interface, as well as the current value in the charging cable; The impedance of the charging cable is determined based on the voltage difference and the current value. If the impedance of the charging cable is outside the preset resistance range, it is determined that the impedance of the charging cable is abnormal, and the charging cable is controlled to be in a second state. The second state includes the charging cable stopping working and / or the charging cable indicating that the charging cable is abnormal.
8. The charging cable according to claim 7, wherein, The controller is also configured to acquire at least one charging parameter information at preset time intervals; If any of the charging parameter information is outside the corresponding preset parameter information range, the corresponding charging parameter information is determined to be abnormal, and the charging cable is controlled to be in a third state. The third state includes the charging cable stopping working and / or the charging cable indicating that the charging parameter information is abnormal.
9. The charging cable according to any one of claims 6 to 8, wherein, The charging cable also includes: A display component is used to display prompt information and / or charging parameter information in the first state / second state / third state; An audio component is used to output audio alarm information in the first state / second state / third state.