Charging method and electronic device
By sending a trigger signal to the charging device to reset the circuit and switch the charging mode, the problem of the charging device being unable to charge quickly is solved, and automatic switching and efficiency improvement of fast charging are achieved under abnormal conditions.
Patent Information
- Application Number
- CN202210188068.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-02-28
AI Technical Summary
When a terminal that supports the fast charging protocol is connected to a charging device, the charging device cannot operate in fast charging mode, causing the terminal to be unable to charge quickly.
By sending a trigger signal to the charging device, the circuit is reset, switching it from the first charging mode to the second charging mode. The charging power in the second charging mode is greater than that in the first charging mode. The current mode of the charging device is determined by detecting the voltage parameters to ensure that it switches to the appropriate fast charging mode.
It enables automatic detection and switching to fast charging mode in case of charging device malfunction, ensuring that the terminal can continue to charge quickly and improving charging efficiency.
Smart Images

Figure CN114744693B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to charging technology, in particular to a charging method and an electronic device. BACKGROUND
[0002] With the emergence of fast charging protocols, there are more and more terminal products equipped with the fast charging protocols. When a terminal supporting a fast charging protocol is connected to a charging device supporting the same fast charging protocol for charging, sometimes the charging device cannot work in the fast charging mode, resulting in that the terminal cannot be charged in the fast charging mode. SUMMARY
[0003] Therefore, the technical solution of the present application is implemented as follows:
[0004] According to an aspect of the present application, a charging method is provided, which comprises:
[0005] If the charging device is currently in a first charging mode, a trigger signal is sent to the charging device to make the charging device perform circuit reset based on the trigger signal;
[0006] Based on performing the circuit reset, the charging device switches from the first charging mode to a second charging mode, wherein the charging power in the second charging mode is greater than that in the first charging mode;
[0007] The electrical energy provided by the charging device in the second charging mode is received.
[0008] In the above solution, based on performing the circuit reset, the charging device switches from the first charging mode to the second charging mode, which comprises:
[0009] A first voltage time sequence signal is sent to the charging device;
[0010] A first voltage parameter returned by the charging device based on the first voltage time sequence signal is received;
[0011] If the first voltage parameter is within a first preset voltage parameter range, it is determined that the charging device is currently in the second charging mode.
[0012] In the above solution, before the first voltage time sequence signal is sent to the charging device, the method further comprises:
[0013] A second voltage time sequence signal is sent to the charging device;
[0014] A second voltage parameter returned by the charging device based on the second voltage time sequence signal is received;
[0015] if the second voltage parameter is within a second preset voltage parameter range, sending the first voltage time sequence signal to the charging device.
[0016] In the above solution, before sending the second voltage time sequence signal to the charging device, the method further comprises:
[0017] sending a third voltage time sequence signal to the charging device;
[0018] receiving a third voltage parameter returned by the charging device based on the third voltage time sequence signal;
[0019] if the third voltage parameter is within a third preset voltage parameter range, sending the second voltage time sequence signal to the charging device.
[0020] In the above solution, before sending the third voltage time sequence signal to the charging device, the method further comprises:
[0021] sending a fourth voltage time sequence signal to the charging device;
[0022] receiving a fourth voltage parameter returned by the charging device based on the fourth voltage time sequence signal;
[0023] if the fourth voltage parameter is within a fourth preset voltage parameter range, sending the third voltage time sequence signal to the charging device.
[0024] In the above solution, the method further comprises:
[0025] if the second voltage parameter is outside the second preset voltage parameter range, determining that the charging device is currently in a third charging mode;
[0026] receiving electric energy provided by the charging device in the third charging mode;
[0027] or, if the third voltage parameter is outside the third preset voltage parameter range, determining that the charging device is currently in a fourth charging mode;
[0028] receiving electric energy provided by the charging device in the fourth charging mode;
[0029] or, if the fourth voltage parameter is outside the fourth preset voltage parameter range, determining that the charging device is currently in a fifth charging mode;
[0030] executing the capability provided by the charging device in the fifth charging mode.
[0031] In the above solution, before sending the trigger signal to the charging device, the method further comprises:
[0032] mark a current charging mode of the charging device;
[0033] According to the mark, if the mark meets a parameter condition after the charging device performs circuit reset, receive electric energy provided by the charging device in the first charging mode.
[0034] In the above solution, further comprising:
[0035] In a case where it is determined that the charging device is currently in the second charging mode, clear the mark of the current charging mode of the charging device.
[0036] In the above solution, the determination that the charging device is currently in the first charging mode comprises:
[0037] If the first voltage parameter is outside the first preset voltage parameter range, it is determined that the charging device is currently in the first charging mode.
[0038] According to another aspect of the present application, a charging device is provided, comprising:
[0039] A sending unit is configured to send a trigger signal to the charging device if the charging device is currently in the first charging mode, so that the charging device performs circuit reset based on the trigger signal.
[0040] A switching unit is configured to switch the charging device from the first charging mode to a second charging mode based on the circuit reset, wherein the charging power in the second charging mode is greater than that in the first charging mode.
[0041] A receiving unit is configured to receive electric energy provided by the charging device in the second charging mode.
[0042] The charging method and device provided by the present application can automatically determine whether the charging device is abnormal, and can make the charging device perform circuit reset to switch to a fast charging mode to continue charging the target terminal in a case where the charging device is abnormal. BRIEF DESCRIPTION OF DRAWINGS
[0043] Figure 1 The flowchart of the charging method in the present application Figure One ;
[0044] Figure 2 A schematic diagram illustrating the identification process for the BC1.2 charging protocol;
[0045] Figure 3 A schematic diagram illustrating the QC2.0 charging protocol identification process;
[0046] Figure 4 Flowchart of the charging method in this application Figure Two ;
[0047] Figure 5 This is a schematic diagram of the electronic device structure in this application. Figure One ;
[0048] Figure 6 This is a schematic diagram of the structural composition of the electronic device in this application. Figure Two . Detailed Implementation
[0049] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] like Figure 1 As shown, this embodiment provides a charging method, including:
[0051] Step 101: If the charging device is currently in the first charging mode, send a trigger signal to the charging device so that the charging device performs a circuit reset based on the trigger signal;
[0052] Step 102: Based on the execution of the circuit reset, the charging device switches from the first charging mode to the second charging mode, wherein the charging power in the second charging mode is greater than that in the first charging mode;
[0053] Step 103: Receive electrical energy provided by the charging device in the second charging mode.
[0054] In this application, the charging method can be applied to various electronic devices that support fast charging protocols, such as mobile phones, tablets, headphones, personal media players, etc. When the electronic device is connected to a charging device that supports the same fast charging protocol for charging, the electronic device can determine whether the current charging mode of the charging device is fast charging mode by monitoring the voltage signal changes on the D+ and D- signal lines. If it is determined that the current charging mode of the charging device is not fast charging mode, the charging state of the current charging device is determined to be abnormal, triggering the charging device to execute a restart process.
[0055] In an implementation, if the electronic device supports a Quick Charge (QC) 3.0+ charging protocol provided by Qualcomm, when the electronic device is connected with a charging device also supporting the QC 3.0+ charging protocol, the electronic device can send a first voltage timing signal to the charging device, and receive a first voltage parameter returned by the charging device based on the first voltage timing signal, if the first voltage parameter is outside a first preset voltage parameter range, it is determined that the charging device is currently in a first charging mode (such as a charging mode of the QC 3.0 charging protocol), at this time, the electronic device can send a trigger signal to the charging device, so that the charging device performs a circuit reset based on the trigger signal, and based on the charging device performing the circuit reset, if the first voltage parameter is within the first preset voltage parameter range, it is determined that the charging device is currently in a second charging mode (a charging mode of the QC 3.0+ charging protocol). Thus, the purpose of switching the charging device from the first charging mode to the second charging mode is achieved.
[0056] Here, the first voltage timing signal can refer to a voltage timing signal when the electronic device identifies whether the charging device is a QC 3.0+ charging protocol. For example, if the output voltage of the charging device is 5V under the QC 3.0 charging protocol, if the first voltage parameter represents that the current output voltage of the electronic device is 6V, it is determined that the charging device is currently in the QC 3.0+ mode, and if the current output voltage of the electronic device is less than or equal to 5V, it is determined that the electronic device is currently in a charging mode other than QC 3.0+ (such as QC 3.0 mode, QC 2.0 mode or BC1.2 mode).
[0057] In this application, the charging power in the second charging mode is greater than that in the first charging mode. For example, the first charging mode is the QC 3.0 protocol mode, and the second charging mode is the QC 3.0+ protocol mode. Wherein, QC3.0 QC3.0 provides flexible selection of different voltages in the voltage range of 3.6V to 20V with an increment of 200mV. The QC 3.0+ protocol is upgraded based on QC 3.0, so there is no need to improve the cost of the device.
[0058] Here, the output power of the QC 3.0 charging protocol can be 15W, 18W and 20W, and the output power of the QC 3.0+ charging protocol is usually greater than or equal to 30W.
[0059] In addition, since the QC3.0+ charging protocol is forward compatible with all QC charging protocols, for example, the QC3.0+ charging protocol is forward compatible with the QC3.0 charging protocol, the QC2.0 charging protocol, and the BC1.2 charging protocol. In order for the charging device to be compatible with all electronic devices supporting these charging protocols, the charging device can sequentially detect whether the voltage parameters corresponding to these charging protocols meet the conditions during the circuit reset process. If the conditions are met, the detection of the next charging protocol is performed. If the conditions are not met, the current charging protocol is used to provide power to the electronic device.
[0060] Based on this, the electronic device can also send a second voltage timing signal (such as a QC3.0 charging protocol signal) to the charging device before sending the first voltage timing signal to the charging device, to detect whether the current charging device supports the QC3.0 charging protocol. If the second voltage parameter returned by the charging device based on the second voltage timing signal is received, it is determined whether the second voltage parameter is within a second preset voltage parameter range. If the determination result indicates that the second voltage parameter is within the second preset voltage parameter range, it means that the charging device supports the QC3.0 charging protocol, and then the first voltage timing signal (such as a QC3.0+ charging protocol signal) is sent to the charging device.
[0061] In this application, the electronic device can also send a third voltage timing signal (such as a QC2.0 charging protocol signal) to the charging device before sending the second voltage timing signal to the charging device, to detect whether the charging device supports the QC2.0 charging protocol, and receive the third voltage parameter returned by the charging device based on the third voltage timing signal. Then it is determined whether the third voltage parameter is within a third preset voltage parameter range. If the determination result indicates that the third voltage parameter is within the third preset voltage parameter range, it means that the charging device supports the QC2.0 charging protocol, and then the second voltage timing signal is sent to the charging device.
[0062] Here, the QC2.0 charging protocol usually supports three fixed voltages of 5V, 9V, and 12V. After determining that the mobile phone side and the charger side both support the QC2.0 charging protocol, the input voltage is directly jumped from 5V to 9V or 12V and continuously increased to the total power, resulting in very high power consumption of the mobile phone. QC3.0 supports a fluctuating voltage of 3.6V to 12V, allowing the input voltage to start from 3.6V, with a step of 0.2V, and adjusting in real time based on factors such as battery temperature, conversion efficiency, and power. Within the allowed input voltage range (9V or 12V), it is gradually increased or decreased. Thus, the power consumption of the mobile phone is reduced.
[0063] In the present application, the electronic device can further send a fourth voltage timing signal (such as a battery charging (BC, Battery Charging) 1.2 signal) to the charging device before sending the third voltage timing signal to the charging device, so as to detect whether the charging device supports the BC1.2 charging protocol; if the electronic device receives a fourth voltage parameter returned by the charging device based on the fourth voltage timing signal, it is judged whether the fourth voltage parameter is within a fourth preset voltage parameter range; if the judgment result represents that the fourth voltage parameter is within the fourth preset voltage parameter range, it is determined that the charging device supports the BC1.2 charging protocol; then the electronic device sends the third voltage timing signal to the charging device again.
[0064] Here, the BC1.2 charging protocol is used to standardize the requirements of battery charging, and the output power is usually 7.5W. The BC1.2 charging protocol mainly includes the following USB port types: standard downlink port (SDP, Standard Downlink Port), dedicated charging port (DCP, Dedicated Charging Port) and downlink charging port (CDP, Downlink Charging Port). Among them, SDP only supports data protocol and does not support charging protocol (such as ordinary USB data transmission interface); DCP only supports charging protocol and does not support data protocol (such as wall charger and car charger), and CDP supports both data protocol and charging protocol (such as computer interface). QC2.0, QC3.0 and QC3.0+ will continue to be detected only when the charging device is a DCP type charging port.
[0065] In the present application, if the second voltage parameter is outside the second preset voltage parameter range, the electronic device determines that the charging device is currently in a third charging mode (such as QC2.0 mode), and receives the power provided by the charging device in the third charging mode. If the second voltage parameter is within the second preset voltage parameter range, but if the third voltage parameter is outside the third preset voltage parameter range, the electronic device determines that the charging device is currently in a fourth charging mode (such as DCP mode); and receives the power provided by the charging device in the fourth charging mode. If the third voltage parameter is within the third preset voltage parameter range, but if the fourth voltage parameter is outside the fourth preset voltage parameter range, the electronic device determines that the charging device is currently in a fifth charging mode (such as CDP mode or SDP mode), and receives the power provided by the charging device in the fifth charging mode.
[0066] Next, the identification process of each charging mode is introduced:
[0067] Figure 2The identification process of the BC1.2 charging protocol is shown in FIG. 1. Figure 2
[0068] First, the mobile phone applies a 0.6V voltage to the D+ signal line. If the mobile phone detects a 0V voltage on the D- signal line, it is determined that the D- signal line and the D+ signal line are not connected, so the voltage on the D+ signal line cannot be transmitted to the D- signal line. In this case, it is determined that the USB 2.0 interface currently connected to the mobile phone is an SDP type port, for example, a USB interface that can only transmit data. If the mobile phone detects a 0.6V voltage on the D- signal line, it is determined that the mobile phone is connected to a CDP (a high-power charging + communication port, for example, a computer) or a DCP (a dedicated charging port, for example, a wall charger), because the D+ signal line and the D- signal line are connected. The mobile phone continues to apply a 0.6V voltage to the D- signal line. If the mobile phone detects a 0.6V voltage on the D+ signal line, it is determined that the USB interface currently connected to the mobile phone is a DCP type port, that is, the USB interface connected to the mobile phone is a dedicated charger. Then, the D+ signal line is pulled up to 3V or 0.6V. If the mobile phone detects a 0V voltage on the D+ signal line, it is determined that the USB interface currently connected to the mobile phone is a CDP type port with a large current and charging capability, for example, a computer. Then, the voltage on the D- and D+ signal lines of the mobile phone is released.
[0069] Figure 3 The identification process of the QC2.0 charging protocol is shown in FIG. 2. Figure 3
[0070] Here, since the QC2.0 charging protocol is based on the BC1.2 charging protocol and is compatible with the BC1.2 charging protocol, the mobile phone pulls up the D+ signal line to 3V or 6V when it is determined that the USB interface currently connected is a DCP type port. Then, the DCP port is controlled to disconnect the D- signal line and the D+ signal line after 1.25S. Then, it is determined whether the voltage on the D- signal line decreases. If it is detected that the voltage on the D- signal line decreases, it is determined that the USB interface currently connected is a QC type charger.
[0071] In this application, since the QC3.0 charging protocol is compatible with the QC2.0 charging protocol, the mobile phone controls the D+ signal line and the D- signal line to allow the charging head of the QC charger to first increase and then decrease the voltage to the default output voltage (for example, 5V) at a step of 200mv based on the QC2.0 charging protocol. In this process, if the charging head can complete the increase and decrease of the voltage at a step of 200mv, it is determined that the current charger is a QC3.0 type, otherwise it is a QC2.0 type.
[0072] For example, it can be: first boost 3.2V, last 0.1 seconds, and then reduce 3.2v, if the default voltage 5v can be output at this time, it is QC3.0 type charger.
[0073] In this application, since QC3.0+ charging protocol is based on the improvement of QC3.0 charging protocol, on the basis of QC3.0 charging protocol process, if the charger is QC3.0+ type, the charger will output higher voltage to the mobile phone end, otherwise it is not QC3.0+ type charger, but QC3.0 type charger.
[0074] For example, on the basis of QC3.0 charging protocol process, the mobile phone end continues to detect the output voltage of the charger, and if it is detected that the charger outputs 6V voltage (such as QC3.0 charging protocol output default voltage 5v), it is QC3.0+ type charger.
[0075] In this application, the electronic device can also mark the current charging mode of the charging device under the condition that the charging device is currently in the first charging mode, and after the charging device executes circuit reset, if the mark meets the parameter condition, the electronic device receives the power provided by the charging device in the first charging mode.
[0076] Here, the mark meets the parameter condition, at least including one of the following methods:
[0077] If the number of times of marking the first mode of the charging device is greater than or equal to the number of times threshold, it is determined that the mark meets the condition;
[0078] If the marking time of the charging device for the first mode is greater than or equal to the time threshold, it is determined that the mark meets the condition.
[0079] For example, after the charging device executes circuit reset, the electronic device obtains the marking number of times of the charging device "2", and compares the marking number of times with the number of times threshold "2", according to the comparison result, it is determined that the marking number of times "2" is equal to the number of times threshold "2", it is determined that the mark meets the condition, and the power provided by the charging device in the first charging mode is received.
[0080] For another example, after the charging device executes circuit reset, the electronic device obtains the marking time of the charging device "30 seconds", and compares the marking time with the time threshold "20 seconds", according to the comparison result, it is determined that the marking time "30 seconds" is greater than the time threshold "20 seconds", it is determined that the mark meets the condition, and the power provided by the charging device in the first charging mode is received.
[0081] In the present application, if the electronic device determines that the charging device is currently in the second charging mode (such as the QC3.0+ charging mode), the marking of the current charging mode of the charging device can also be cleared.
[0082] The charging method provided in the present application can automatically determine whether the charging device is in the fast charging mode through the output voltage of the current charging device. When it is determined that the charging device is in the non-fast charging mode, it indicates that the charging of the charging device is abnormal, and the charging device can be reset to switch to the fast charging mode to continue charging the target terminal in the case of charging device charging abnormality.
[0083] Figure 4 The flowchart of the charging method in the present application Figure Two As shown in Figure 4 comprises:
[0084] Step 401, detecting the charging device executing the BC1.2 charging protocol;
[0085] Here, the electronic device detects the BC1.2 after detecting that the charger plug is inserted into the electronic device.
[0086] Step 402, determining whether the current charging device is a DCP type charging port; if it is a DCP type charging port, executing step 403; if it is not a DCP type charging port, executing step 409;
[0087] Here, if it is detected that the current charger is of the DCP type, QC2.0 type detection is continued.
[0088] Step 403, determining whether the current charging device is working in the QC2.0 mode; if it is working in the QC2.0 mode, executing step 404; if it is not working in the QC2.0 mode, executing step 409;
[0089] Here, if it is detected that the current charger is of the QC2.0 type, QC3.0 type detection is continued;
[0090] Step 404, determining whether the current charging device is working in the QC3.0 mode; if it is working in the QC3.0 mode, executing step 405; if it is not working in the QC3.0 mode, executing step 409;
[0091] Here, if the current charger is of the QC3.0 type, QC3.0+ type detection is performed;
[0092] Step 405, detecting the charging device executing the QC3.0+ charging protocol;
[0093] Step 406, judging whether the current charging device is working in the QC3.0+ mode; if yes, executing step 407; if not, executing step 410;
[0094] Here, if it is detected that the current charger is of the QC3.0+ type, the QC3.0+ fast charging mode is entered, and the charging flag is cleared; if it is detected that the current charger is not of the QC3.0+ type, the circuit of the charger is reset.
[0095] Step 407, clearing the charging flag;
[0096] Step 408, entering the QC3.0+ fast charging mode to provide power to the electronic device in the QC3.0+ fast charging mode.
[0097] Step 409, entering the ordinary charging mode to provide power to the electronic device in the ordinary charging mode.
[0098] Here, the ordinary charging mode represents a non-fast charging mode. For example, the ordinary charging mode can be a QC2.0 mode, a DCP type BC1.2 mode, a CDP type BC1.2 mode, or an SDP type BC1.2 mode. The current ordinary charging mode is determined according to the currently detected charging protocol type. If the current detection of the charging device is the QC2.0 charging protocol, and the detection result indicates that the current charging device does not support the QC2.0 charging protocol, the power is output in the upper level charging mode of the QC2.0 charging protocol, for example, the upper level charging mode of the QC2.0 charging protocol is the detection of the DCP type, and the power is output in the DCP type. If the current detection of the charging device is the DCP type, and the detection result indicates that the current charging device does not support the DCP type, the power is output in the CDP type or the SDP type.
[0099] Here, in the non-fast charging mode, the charging process of a mobile phone, for example, is as follows: the 220V mains voltage is first reduced to 5V through the charging head, the internal circuit of the mobile phone reduces the 5V voltage to 4.2V, and then the power is delivered to the battery. In the entire voltage reduction process, heat energy is generated. In the fast charging mode, the power management chip is placed in the mobile phone, the power management chip manages and monitors the entire charging process of the lithium battery, including a complex processing algorithm, the lithium battery charging includes several stages, the pre-charging stage, the constant current charging stage, the constant voltage charging stage, and the trickle charging stage. The charging management chip sends instructions to the charger according to the electrical characteristics of each stage of the lithium battery charging process, to inform the charger to change the charging voltage and current, and the charger receives the demand from the charging management system to adjust the output parameters of the charger in real time, to realize fast charging in cooperation with the charging management system.
[0100] Step 410, determine whether there is a charging mark at present; if there is a charging mark, execute step 411, if there is no charging mark, execute step 412;
[0101] Step 411, enter QC3.0 charging mode to provide power to the electronic device in QC3.0 charging mode.
[0102] Step 412, set the charging mark, and execute step 401.
[0103] Here, the reporting of the charger type change information is shielded during the execution of the circuit reset of the charging device, until the process of executing the circuit reset is completed, and the charging mark is cleared.
[0104] The electronic device of the present application triggers the charging device to forcibly execute circuit reset when the charging device is in non-QC3.0+ fast charging mode, and detects the BC1.2, QC2.0, QC3.0, and QC3.0+ processes. If the detection result is QC3.0+ charging, the charging device enters QC3.0+ charging mode at this time. In this way, when a charging head supporting the QC3.0+ charging protocol charges an electronic device supporting the QC3.0+ charging protocol, the charging device can forcibly execute circuit reset when it is working in non-QC3.0+ charging mode, so as to restore the charging device from an abnormal working state to a normal working state.
[0105] Figure 5 The structure of the electronic device in the present application is shown in the following figure Figure One As shown in the following figure Figure 5 It includes
[0106] The sending unit 501 is configured to send a trigger signal to the charging device if the charging device is currently in a first charging mode, so that the charging device performs circuit reset on the charging device based on the trigger signal;
[0107] The switching unit 502 is configured to switch the charging device from the first charging mode to a second charging mode based on the execution of the circuit reset, wherein the charging power in the second charging mode is greater than that in the first charging mode;
[0108] The receiving unit 503 is configured to receive power provided by the charging device in the second charging mode.
[0109] In a preferred embodiment, the electronic device further includes a determination unit 504.
[0110] Specifically, the sending unit 501 is further configured to send a first voltage time sequence signal to the charging device;
[0111] The receiving unit 503 is further configured to receive a first voltage parameter returned by the charging device based on the first voltage timing signal.
[0112] The determining unit 504 is configured to determine that the charging device is currently in a second charging mode if the first voltage parameter is within a first preset voltage parameter range.
[0113] In a preferred implementation, the sending unit 501 is further configured to send a second voltage timing signal to the charging device before sending the first voltage timing signal to the charging device.
[0114] The receiving unit 503 is further configured to receive a second voltage parameter returned by the charging device based on the second voltage timing signal.
[0115] The sending unit 501 is specifically configured to send the first voltage timing signal to the charging device if the second voltage parameter is within a second preset voltage parameter range.
[0116] In a preferred implementation, the sending unit 501 is further configured to send a third voltage timing signal to the charging device before sending the second voltage timing signal to the charging device.
[0117] The receiving unit 503 is further configured to receive a third voltage parameter returned by the charging device based on the third voltage timing signal.
[0118] The sending unit 501 is specifically configured to send the second voltage timing signal to the charging device if the third voltage parameter is within a third preset voltage parameter range.
[0119] In a preferred implementation, the sending unit 501 is further configured to send a fourth voltage timing signal to the charging device before sending the third voltage timing signal to the charging device.
[0120] The receiving unit 503 is further configured to receive a fourth voltage parameter returned by the charging device based on the fourth voltage timing signal.
[0121] The sending unit 501 is specifically configured to send the third voltage timing signal to the charging device if the fourth voltage parameter is within a fourth preset voltage parameter range.
[0122] In a preferred implementation, the determining unit 504 is configured to determine that the charging device is currently in a third charging mode if the second voltage parameter is outside the second preset voltage parameter range.
[0123] The receiving unit 503 is further configured to receive electric energy provided by the charging device in the third charging mode.
[0124] Or, if the third voltage parameter is outside the third preset voltage parameter range, the determination unit 504 determines that the charging device is currently in a fourth charging mode;
[0125] The receiving unit 503 is further configured to receive power provided by the charging device in the fourth charging mode.
[0126] Or, if the fourth voltage parameter is outside the fourth preset voltage parameter range, the determination unit 504 determines that the charging device is currently in a fifth charging mode.
[0127] The receiving unit 503 is further configured to receive the capability provided by the charging device in the fifth charging mode.
[0128] In a preferred implementation, the electronic device further includes a marking unit 505.
[0129] Specifically, before the sending unit 501 sends the trigger signal to the charging device, the marking unit 505 is further configured to mark the current charging mode of the charging device.
[0130] The receiving unit 503 is further configured to receive, according to the mark, power provided by the charging device in the first charging mode after the charging device performs circuit reset, if the mark meets a parameter condition.
[0131] In a preferred implementation, the electronic device further includes a clearing unit 506.
[0132] Specifically, if the determination unit 504 determines that the charging device is currently in the second charging mode, the clearing unit 506 is triggered to clear the mark of the current charging mode of the charging device.
[0133] In a preferred implementation, the determination unit 504 is specifically configured to determine that the charging device is currently in the first charging mode if the first voltage parameter is outside the first preset voltage parameter range.
[0134] It should be noted that the electronic device provided in the above embodiments is only used as an example for the division of the above program modules in the charging process. In actual applications, the above processes can be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above processes. In addition, the electronic device and the charging method provided in the above embodiments belong to the same concept, and the specific implementation process is described in the method embodiments, which will not be repeated here.
[0135] The electronic device provided in the embodiment of the present application includes a processor and a memory for storing a computer program capable of running on the processor,
[0136] The processor is configured to execute the steps of the charging method when the processor runs the computer program.
[0137] Figure 6 is a schematic structural diagram of an electronic device Figure Two The electronic device 600 can be a mobile phone, a watch, a personal media player, an information transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. Figure 6 The electronic device 600 shown includes at least one processor 601, a memory 602, at least one network interface 604, and a user interface 603. The various components in the electronic device 600 are coupled together by a bus system 605. It can be understood that the bus system 605 is used to realize the connection communication between the components. In addition to including a data bus, the bus system 605 also includes a power supply bus, a control bus, and a status signal bus. However, for the sake of clarity, all the various buses are marked as the bus system 605 in the Figure 6 The electronic device 600 shown includes at least one processor 601, a memory 602, at least one network interface 604, and a user interface 603. The various components in the electronic device 600 are coupled together by a bus system 605. It can be understood that the bus system 605 is used to realize the connection communication between the components. In addition to including a data bus, the bus system 605 also includes a power supply bus, a control bus, and a status signal bus. However, for the sake of clarity, all the various buses are marked as the bus system 605 in the
[0138] The user interface 603 can include a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touchpad, or a touch screen, etc.
[0139] It can be appreciated that the memory 602 can be a volatile memory or a nonvolatile memory, and can also include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a ferromagnetic random access memory (FRAM), a Flash Memory, a magnetic surface memory, an optical disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example but not limitation, many forms of RAM can be used, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 602 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable type of memory.
[0140] The memory 602 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device 600. Examples of these data include: any computer programs used for operation on the electronic device 600, such as an operating system 6021 and an application program 6022; contact data; phonebook data; messages; pictures; videos; and the like. Among them, the operating system 6021 contains various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application program 6022 can contain various application programs, such as a media player (Media Player), a browser (Browser), and the like, for implementing various application services. The program for implementing the method of the embodiments of the present application can be contained in the application program 6022.
[0141] The method disclosed in the embodiments of the present application can be applied to the processor 601 or implemented by the processor 601. The processor 601 can be an integrated circuit chip with a processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit or the instruction in the form of software of the hardware in the processor 601. The processor 601 described above can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The processor 601 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, and the like. In combination with the steps of the method disclosed in the embodiments of the present application, the hardware decoding processor can be directly embodied to execute the completion, or the hardware and software module combination in the decoding processor can be executed to complete. The software module can be located in the storage medium, and the storage medium is located in the memory 602. The processor 601 reads the information in the memory 602 and combines the hardware to complete the steps of the above method.
[0142] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, micro controllers (MCUs), microprocessors (Microprocessors), or other electronic elements for executing the aforementioned methods.
[0143] In an exemplary embodiment, the embodiments of the present application further provide a computer readable storage medium, for example, the memory 602 including a computer program, which can be executed by the processor 601 of the electronic device 600 to complete the steps of the aforementioned method. The computer readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.; or can be various devices including one or any combination of the above memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0144] A computer readable storage medium, which stores a computer program, when the computer program is run by a processor, executes any step of the charging method.
[0145] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The above described device embodiments are only illustrative, for example, the division of the units is only a logical function division, and there can be another division manner for actual implementation, for example, a plurality of units 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 coupling, or direct coupling, or communication connection between the various components can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0146] The units described as separate components can or can not be physically separate, and the components displayed as units can or can not be physical units, that is, can be located in one place, or can be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0147] The methods disclosed in the several method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.
[0148] The features disclosed in the several product embodiments provided by the present application can be combined arbitrarily without conflict to obtain new product embodiments.
[0149] The features disclosed in the several method or device embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.
[0150] The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A charging method applied to an electronic device, the method comprising: in a case where the electronic device and a charging device both support a first charging mode and a second charging mode, if the charging device is currently in the first charging mode, sending a trigger signal to the charging device to make the charging device perform a circuit reset based on the trigger signal; the circuit reset comprising triggering the charging device to perform a restart process; based on performing the circuit reset, the charging device switches from the first charging mode to the second charging mode, wherein a charging power in the second charging mode is greater than that in the first charging mode; receiving power provided by the charging device in the second charging mode.
2. The method of claim 1, wherein, based on performing the circuit reset, the charging device switches from the first charging mode to the second charging mode, further comprising: sending a first voltage timing signal to the charging device; receiving a first voltage parameter returned by the charging device based on the first voltage timing signal; if the first voltage parameter is within a first preset voltage parameter range, determining that the charging device is currently in the second charging mode.
3. The method of claim 2, wherein, before the sending of the first voltage timing signal to the charging device, the method further comprising: sending a second voltage timing signal to the charging device; receiving a second voltage parameter returned by the charging device based on the second voltage timing signal; if the second voltage parameter is within a second preset voltage parameter range, sending the first voltage timing signal to the charging device.
4. The method of claim 3, wherein, before the sending of the second voltage timing signal to the charging device, the method further comprising: sending a third voltage timing signal to the charging device; receiving a third voltage parameter returned by the charging device based on the third voltage timing signal; if the third voltage parameter is within a third preset voltage parameter range, sending the second voltage timing signal to the charging device.
5. The method of claim 4, wherein, before the sending of the third voltage timing signal to the charging device, the method further comprising: sending a fourth voltage timing signal to the charging device; receiving a fourth voltage parameter returned by the charging device based on the fourth voltage timing signal; if the fourth voltage parameter is within a fourth preset voltage parameter range, sending the third voltage timing signal to the charging device.
6. The method according to any one of claims 3 to 5, wherein, the method further comprising: if the second voltage parameter is outside the second preset voltage parameter range, determining that the charging device is currently in a third charging mode; receiving power provided by the charging device in the third charging mode; or, if the third voltage parameter is outside the third preset voltage parameter range, determining that the charging device is currently in a fourth charging mode; receiving power provided by the charging device in the fourth charging mode; or, if the fourth voltage parameter is outside the fourth preset voltage parameter range, determining that the charging device is currently in a fifth charging mode; receiving power provided by the charging device in the fifth charging mode.
7. The method of claim 1, before the sending of the trigger signal to the charging device, the method further comprising: marking a current charging mode of the charging device; according to the marking, if the marking meets a parameter condition after the charging device performs a circuit reset, receiving electric energy provided by the charging device in the first charging mode.
8. The method of claim 7, further comprising: in a case where it is determined that the charging device is currently in a second charging mode, clearing the marking of the current charging mode of the charging device.
9. The method of claim 2, determining that the charging device is currently in the first charging mode comprises: if the first voltage parameter is out of the first preset voltage parameter range, determining that the charging device is currently in the first charging mode.
10. An electronic device, comprising: a sending unit, in a case where the electronic device and a charging device both support a first charging mode and a second charging mode, configured to send a trigger signal to the charging device if the charging device is currently in the first charging mode, so that the charging device performs a circuit reset on the charging device based on the trigger signal; the circuit reset comprises triggering the charging device to perform a restart process; a switching unit, configured to cause the charging device to switch from the first charging mode to the second charging mode based on performing the circuit reset, wherein a charging power in the second charging mode is greater than that in the first charging mode; a receiving unit, configured to receive electric energy provided by the charging device in the second charging mode.
Citation Information
Patent Citations
Charging mode automatic detection unit, charging circuit and related method
CN106385074A
Charging circuit, charging processing method, electronic equipment and storage medium
CN109286219A
Charging method and device, electronic equipment and storage medium
CN112448423A