Charging method, charging device and computer readable storage medium
By adjusting the charging voltage and current, and adjusting the charging voltage in real time according to changes in the charging stage, the problem of high energy loss of the charging device is solved, and the charging efficiency and battery life are improved.
Patent Information
- Application Number
- CN202010846634.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-20
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-08-20
AI Technical Summary
Existing charging devices have high energy loss and low charging efficiency during the charging process. Especially when the device power is low, the voltage difference between the charging voltage and the device battery voltage is large, resulting in reduced energy conversion efficiency.
By determining the target charging stage of the device to be charged, the charging voltage and charging current are adjusted to maintain the charging current at the maximum value, reduce the charging voltage, and reduce energy loss. Specific steps include detecting the charging stage, adjusting the charging voltage and current, determining the target charging voltage according to the first charging current and the second charging current, and outputting an appropriate charging voltage for charging.
It improves charging efficiency, reduces energy loss, extends the battery life of the charging device, and avoids unnecessary losses caused by excessive charging voltage.
Smart Images

Figure CN112039147B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of charging, and in particular to a charging method, a charging device and a computer-readable storage medium. Background Art
[0002] At present, when charging a device, a charging device usually provides a fixed charging voltage for the device. When the power of the device is low, the battery voltage of the device is also low. At this time, the voltage difference between the charging voltage and the battery voltage of the device is large, and a certain amount of energy loss will occur during the charging process, thereby reducing the energy conversion efficiency of the charging device and the charging efficiency of the device. Summary of the invention
[0003] The main purpose of the present invention is to provide a charging method, a charging device and a computer-readable storage medium, aiming to solve the problems of high energy loss and low charging efficiency in existing charging methods.
[0004] To achieve the above object, the present invention provides a charging method, which is applied to a charging device and comprises the following steps:
[0005] When charging the device to be charged, determining a target charging stage;
[0006] According to the target charging stage, adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage, and determining a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage;
[0007] determining a target charging voltage according to the first charging current and the second charging current;
[0008] The target charging voltage is output to charge the device to be charged.
[0009] Optionally, when charging the device to be charged, the step of determining the target charging stage includes:
[0010] When charging the device to be charged, obtain the current corresponding charging stage and charging parameters;
[0011] The target charging stage is determined according to the current corresponding charging stage and charging parameters.
[0012] Optionally, the step of determining the target charging stage according to the current corresponding charging stage and charging parameters includes:
[0013] When it is detected that the device to be charged is connected and the current charging voltage is less than or equal to the adaptive voltage threshold, it is determined that the target charging stage is the pre-charging stage.
[0014] Optionally, the step of determining the target charging stage according to the current corresponding charging stage and charging parameters includes:
[0015] When the current corresponding charging stage is the pre-charging stage and the current charging voltage is greater than the adaptive voltage threshold, it is determined that the target charging stage is the constant current charging stage.
[0016] Optionally, the step of determining the target charging stage according to the current corresponding charging stage and charging parameters includes:
[0017] When the current corresponding charging stage is the constant current charging stage and the current charging current is less than the constant current stage threshold current, the target charging stage is determined to be the constant voltage charging stage.
[0018] Optionally, the first charging voltage is a first charging voltage in a pre-charging stage, the second charging voltage is a second charging voltage in a pre-charging stage, the first charging voltage is less than the second charging voltage, and the step of determining the target charging voltage according to the first charging current and the second charging current includes:
[0019] The target charging voltage is determined to be the second charging voltage.
[0020] Optionally, the first charging voltage is a first charging voltage in a constant current charging stage, the second charging voltage is a second charging voltage in a constant current charging stage, the first charging voltage is less than the second charging voltage, and the step of determining the target charging voltage according to the first charging current and the second charging current includes:
[0021] When the first charging current is less than the second charging current, determining the target charging voltage to be the second charging voltage;
[0022] When the first charging current is equal to the second charging current, the target charging voltage is determined to be the first charging voltage.
[0023] Optionally, the first charging voltage is a first charging voltage in a constant voltage charging stage, the second charging voltage is a second charging voltage in a constant voltage charging stage, the first charging voltage is greater than the second charging voltage, and the step of determining the target charging voltage according to the first charging current and the second charging current includes:
[0024] When the first charging current is greater than the second charging current, determining the target charging voltage to be the first charging voltage;
[0025] When the first charging current is equal to the second charging current, the target charging voltage is determined to be the second charging voltage.
[0026] Optionally, when the current charging current is less than the constant current stage threshold current, before the step of determining the target charging stage to be the constant voltage charging stage, the step further includes:
[0027] When stably charging the device to be charged, detecting a corresponding stable charging current;
[0028] A maximum stable charging current is determined from the stable charging current detected in the constant current charging stage, and a constant current stage threshold current is determined according to the maximum stable charging current.
[0029] Optionally, after the step of determining the target charging voltage to be the first charging voltage when the first charging current is greater than the second charging current, the method further includes:
[0030] When the second charging current is lower than a preset constant voltage stage threshold current, charging is stopped.
[0031] Optionally, after the step of adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage, and determining a first charging current corresponding to the first charging voltage, and a second charging current corresponding to the second charging voltage, the method further includes:
[0032] Obtaining a normal current range corresponding to the target charging stage, and determining whether the second charging current is within the normal current range;
[0033] When the second charging current is not within the normal current range, it is determined that an abnormality occurs in the device to be charged or the device to be charged is an abnormal device, and charging is stopped.
[0034] Optionally, the target charging stage is a pre-charging stage, and before the step of obtaining a normal current range corresponding to the target charging stage and determining whether the second charging current is within the normal current range, the step further includes:
[0035] Determining whether the first charging current is less than a starting threshold current and whether the second charging current is greater than a starting threshold current;
[0036] When the first charging current is less than a starting threshold current and the second charging current is greater than a starting threshold current, determining whether the second charging voltage is within a preset charging voltage range;
[0037] When the second charging voltage is not within the preset charging voltage range, the device to be charged is determined to be an abnormal device, and charging is stopped.
[0038] Optionally, the device to be charged is a wireless headset.
[0039] Optionally, the step of adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage includes:
[0040] The first PWM signal is adjusted to a second PWM signal so that the charging voltage of the device to be charged is adjusted from the first charging voltage to the second charging voltage; wherein, when the PWM signal decreases, the first charging voltage is less than the second charging voltage; and when the PWM signal increases, the first charging voltage is greater than the second charging voltage.
[0041] In addition, to achieve the above-mentioned purpose, the present invention also provides a charging device, which includes a memory, a processor, and a charging program stored in the memory and executable on the processor, wherein: when the charging program is executed by the processor, the steps of the charging method described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a charging program is stored, and when the charging program is executed by a processor, the steps of the charging method described above are implemented.
[0043] A charging method, a charging device and a computer-readable storage medium proposed in an embodiment of the present invention can adjust the output charging voltage according to the target charging stage by determining the target charging stage when charging a device to be charged. According to the change of the charging current before and after the adjustment, a voltage value can be determined from the two charging voltages corresponding to each other before and after the adjustment as the target charging voltage. Charging the device to be charged using the target charging voltage can keep the charging current at the maximum value in the current charging state at all times, thereby improving the charging efficiency. While ensuring the charging current, it can also avoid excessive charging voltage, thereby reducing energy loss and improving the endurance of the charging device without affecting the charging speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;
[0045] Figure 2 This is a schematic diagram of the flow chart of the first embodiment of the charging method of the present invention;
[0046] Figure 3 This is a schematic diagram of a flow chart of a second embodiment of a charging method of the present invention;
[0047] Figure 4 This is a schematic flow chart of a third embodiment of a charging method of the present invention;
[0048] Figure 5 This is a schematic diagram of a flow chart of a fourth embodiment of a charging method of the present invention;
[0049] Figure 6 This is a schematic diagram of a fifth embodiment of a charging method according to the present invention;
[0050] Figure 7 This is a flow chart of a sixth embodiment of a charging method according to the present invention;
[0051] Figure 8 This is a flow chart of a seventh embodiment of a charging method according to the present invention;
[0052] Fig. 9 This is a schematic flow chart of an eighth embodiment of a charging method of the present invention;
[0053] Fig.10 This is a variation curve of the PWM signal and the charging voltage in an embodiment of the charging method of the present invention.
[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0056] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0057] The terminal of the embodiment of the present invention may be a charging device, the charging device may be a charging box, the device to be charged may be a wireless headset, and the charging box can charge the wireless headset.
[0058] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0059] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. Among them, the sensor may be a light sensor, a motion sensor, and other sensors. Of course, the hardware device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail here.
[0060] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0061] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a charging program.
[0062] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the charging program stored in the memory 1005 and perform the following operations:
[0063] When charging the device to be charged, determining a target charging stage;
[0064] According to the target charging stage, adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage, and determining a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage;
[0065] determining a target charging voltage according to the first charging current and the second charging current;
[0066] The target charging voltage is output to charge the device to be charged.
[0067] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0068] When charging the device to be charged, obtain the current corresponding charging stage and charging parameters;
[0069] The target charging stage is determined according to the current corresponding charging stage and charging parameters.
[0070] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0071] When it is detected that the device to be charged is connected and the current charging voltage is less than or equal to the adaptive voltage threshold, it is determined that the target charging stage is the pre-charging stage.
[0072] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0073] When the current corresponding charging stage is the pre-charging stage and the current charging voltage is greater than the adaptive voltage threshold, it is determined that the target charging stage is the constant current charging stage.
[0074] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0075] When the current corresponding charging stage is the constant current charging stage and the current charging current is less than the constant current stage threshold current, the target charging stage is determined to be the constant voltage charging stage.
[0076] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0077] The target charging voltage is determined to be the second charging voltage.
[0078] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0079] When the first charging current is less than the second charging current, determining the target charging voltage to be the second charging voltage;
[0080] When the first charging current is equal to the second charging current, the target charging voltage is determined to be the first charging voltage.
[0081] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0082] When the first charging current is greater than the second charging current, determining the target charging voltage to be the first charging voltage;
[0083] When the first charging current is equal to the second charging current, the target charging voltage is determined to be the second charging voltage.
[0084] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0085] When stably charging the device to be charged, detecting a corresponding stable charging current;
[0086] A maximum stable charging current is determined from the stable charging current detected in the constant current charging stage, and a constant current stage threshold current is determined according to the maximum stable charging current.
[0087] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0088] When the second charging current is lower than a preset constant voltage stage threshold current, charging is stopped.
[0089] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0090] Obtaining a normal current range corresponding to the target charging stage, and determining whether the second charging current is within the normal current range;
[0091] When the second charging current is not within the normal current range, it is determined that an abnormality occurs in the device to be charged or the device to be charged is an abnormal device, and charging is stopped.
[0092] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0093] Determining whether the first charging current is less than a starting threshold current and whether the second charging current is greater than a starting threshold current;
[0094] When the first charging current is less than a starting threshold current and the second charging current is greater than a starting threshold current, determining whether the second charging voltage is within a preset charging voltage range;
[0095] When the second charging voltage is not within the preset charging voltage range, the device to be charged is determined to be an abnormal device, and charging is stopped.
[0096] Further, the processor 1001 may call the charging program stored in the memory 1005, and further perform the following operations:
[0097] The first PWM signal is adjusted to a second PWM signal, so that the charging voltage of the device to be charged is adjusted from the first charging voltage to the second charging voltage.
[0098] The specific embodiments of the application charging device of the present invention are basically the same as the embodiments of the application charging method described below, and will not be described in detail here.
[0099] Please refer to Figure 2 , Figure 2This is a flow chart of a first embodiment of a charging method of the present invention, wherein the charging method is applied to a charging device and comprises the following steps:
[0100] Step S10, when charging the device to be charged, determining a target charging stage;
[0101] In this embodiment, the charging device can be connected to the device to be charged and output a corresponding charging voltage to charge the device to be charged. The charging device can be a charging box, and the device to be charged can be a wireless headset, and the wireless headset can be a TWS (True Wireless Stereo) headset.
[0102] When the charging device is connected to the device to be charged and charges the device to be charged, it will first be in a pre-charging stage with a relatively low charging voltage. In the pre-charging stage, the charging voltage gradually increases, and then the pre-charging stage enters the constant current charging stage. After the constant current charging stage, it enters the constant voltage charging stage. The charging device can determine whether the charging stage jumps, that is, determine the target charging stage, based on the current corresponding charging stage and current charging parameters and other data. After the charging device determines the target charging stage, the charging voltage adjustment strategy corresponding to the target charging stage can be used to adjust the charging voltage output to the device to be charged, so that the charging voltage can be slightly higher than the battery voltage of the device to be charged, and the charging current can be maintained at the maximum value of the current charging state.
[0103] Step S20, adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage according to the target charging stage, and determining a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage;
[0104] After the charging device determines the target charging stage for charging the device to be charged, the first charging voltage currently output to the device to be charged can be adjusted to a second charging voltage according to the charging voltage adjustment strategy corresponding to the target charging stage. The charging device can also detect a first charging current corresponding to the first charging voltage before adjustment, and detect a second charging current corresponding to the second charging voltage after adjusting to the second charging voltage.
[0105] It should be noted that the charging device can pre-set an adjustment cycle, and adjust the charging voltage according to the target charging stage at each adjustment cycle, so as to adjust the charging voltage in real time according to the charging status of the device to be charged. While allowing the charging current to be maintained at the maximum value of the target charging stage, it can also reduce the charging voltage as much as possible, reduce energy consumption, and improve charging efficiency.
[0106] Step S30, determining a target charging voltage according to the first charging current and the second charging current;
[0107] After adjusting the charging voltage, the first charging current and the second charging current detected can be compared. When the first charging current is greater than the second charging current, the first charging voltage is used as the target charging voltage; and when the first charging current is less than the second charging current, the adjusted charging voltage is used as the target charging voltage. That is, if adjusting the first charging voltage to the second charging voltage can increase the charging current, the second charging voltage is used as the target charging voltage; if adjusting the first charging voltage to the second charging voltage reduces the charging current, the first charging voltage is used as the target charging voltage. By determining the target charging voltage based on the first charging current and the second charging current, the charging current can be increased in time when the device to be charged can support a larger charging current to ensure charging efficiency, and the charging voltage can be reduced while ensuring charging efficiency to reduce energy loss.
[0108] It is understandable that when the charging current does not change before and after the adjustment, the smaller charging voltage between the first charging voltage and the second charging voltage can be used as the target charging voltage, thereby reducing the charging voltage and improving the charging efficiency while ensuring that the charging current does not decrease.
[0109] Step S40: outputting the target charging voltage to charge the device to be charged.
[0110] After determining the target charging voltage from the first charging voltage and the second charging voltage according to the magnitude of the first charging current and the second charging current, the charging device outputs the target charging voltage to charge the device to be charged. The target charging voltage is obtained by using an adjustment strategy at each preset period, and the charging voltage output to the device to be charged can be continuously adjusted so that the charging current of the device to be charged can be maintained at the maximum current of the target charging stage.
[0111] It should be noted that when the energy storage capacity of the charging device is limited, improving the charging efficiency and reducing the charging energy loss can also increase the time or number of times the charging device charges the device to be charged, that is, improve the battery life of the device to be charged.
[0112] In this embodiment, by determining the target charging stage when charging the device to be charged, the output charging voltage can be adjusted according to the corresponding target charging stage, and according to the change of the charging current before and after the adjustment, a voltage value can be determined from the two charging voltages corresponding to each other before and after the adjustment as the target charging voltage. Charging the device to be charged with the target charging voltage can adjust the output charging voltage according to the charging current, so that the charging current always remains at the maximum value in the current charging state, thereby improving the charging efficiency, and can reduce the charging voltage without affecting the charging speed to avoid excessive charging voltage, reduce energy loss, and improve the battery life of the device to be charged.
[0113] For further information, please refer to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the charging method of the present invention, based on the above Figure 2 In the embodiment shown, the step S10, when charging the device to be charged, the step of determining the target charging stage includes:
[0114] Step S11, when charging the device to be charged, obtaining the current corresponding charging stage and charging parameters;
[0115] Step S12, determining a target charging stage according to the current corresponding charging stage and charging parameters.
[0116] In this embodiment, when charging the device to be charged, the charging device can obtain the current corresponding charging stage and detect the current charging parameters. When the charging parameters detected in the current charging stage do not meet the preset conditions, the target charging stage is the current charging stage; and when the charging parameters detected in the current charging stage meet the preset conditions for the charging stage jump, the target charging stage is the next jump stage of the current charging stage. Among them, the charging parameters can be the current charging voltage, charging current, etc. For example, when the current charging stage is the pre-charging stage, if the detected charging parameters meet the preset conditions for jumping to the constant current charging stage, the target charging stage is the constant current charging stage. By judging whether the charging stage jumps through the charging parameters in the current charging stage, the charging stage of the device to be charged at this time can be accurately determined, and the voltage adjustment strategy corresponding to the target charging stage is adopted accordingly to adjust the charging voltage, thereby accurately and effectively ensuring the charging efficiency while reducing energy loss.
[0117] For further information, please refer to Figure 4 , Figure 4 This is a flow chart of the third embodiment of the charging method of the present invention. Figure 3 In the embodiment shown, the step S12, the step of determining the target charging stage according to the current corresponding charging stage and charging parameters, includes:
[0118] Step S121, when it is detected that the device to be charged is connected and the current charging voltage is less than or equal to the adaptive voltage threshold, determining that the target charging stage is the pre-charging stage.
[0119] In this embodiment, when the charging device detects that the device to be charged is connected from a disconnected state, it can be determined that the current charging stage is the pre-charging stage. In the pre-charging stage, the charging device can output a preset minimum output voltage to the device to be charged and continuously increase the output charging voltage. When the charging device increases the output charging voltage to exceed the adaptive voltage threshold, it means that the charging stage of the device to be charged has entered the constant current charging stage from the pre-charging stage. That is, when the charging device detects that the device to be charged is connected and the current output charging voltage is less than or equal to the adaptive voltage threshold, it can be determined that the target charging stage is the pre-charging stage.
[0120] For further information, please refer to Figure 5 , Figure 5 This is a flow chart of the fourth embodiment of the charging method of the present invention, based on the above Figure 3 In the embodiment shown, the step S12, the step of determining the target charging stage according to the current corresponding charging stage and charging parameters, includes:
[0121] Step S122, when the current corresponding charging stage is the pre-charging stage and the current charging voltage is greater than the adaptive voltage threshold, determining that the target charging stage is the constant current charging stage.
[0122] In this embodiment, when the charging device determines that the current corresponding charging stage is the pre-charging stage, the current charging voltage output to the device to be charged can be compared with the preset adaptive voltage threshold. When the current charging voltage is less than or equal to the adaptive voltage threshold, it means that the target charging stage is still the pre-charging stage, and when the current charging voltage is greater than the adaptive voltage threshold, it means that the target charging stage changes from the pre-charging stage to the constant current charging stage. At this time, the charging device can determine and adjust the target charging voltage according to the charging voltage adjustment strategy corresponding to the constant current charging stage.
[0123] It is understandable that when the charging device is connected to the device to be charged, it enters the pre-charging stage and outputs a preset minimum charging voltage to the device to be charged. In the pre-charging stage, the charging device can continuously increase the output charging voltage from the minimum charging voltage. In the pre-charging stage, if the charging current does not reach the maximum current that the device to be charged can currently support, then as the charging voltage continues to increase, the detected charging current also continues to increase. Until the target charging voltage output by the charging device to the device to be charged reaches the adaptive voltage threshold, it indicates that the charging stage enters the constant current charging stage from the pre-charging stage.
[0124] For further information, please refer to Figure 6 , Figure 6 This is a flow chart of the fifth embodiment of the charging method of the present invention, based on the above Figure 3 In the embodiment shown, the step S12, the step of determining the target charging stage according to the current corresponding charging stage and charging parameters, includes:
[0125] Step S123, when the current corresponding charging stage is the constant current charging stage and the current charging current is less than the constant current stage threshold current, determining that the target charging stage is the constant voltage charging stage.
[0126] In this embodiment, when the charging device determines that the current corresponding charging stage is the constant current charging stage, it can determine whether the target charging stage is switched to the constant voltage charging stage according to the pre-generated constant current stage threshold current. When the charging device detects that the current charging current is greater than or equal to the constant current stage threshold current, it indicates that the target charging stage is still the constant current charging stage; and when the charging device detects that the current charging current is less than the constant current stage threshold current, it indicates that the target charging stage is switched from the constant current charging stage to the constant voltage charging stage.
[0127] For further information, please refer to Figure 4 , the first charging voltage is a first charging voltage in a pre-charging stage, the second charging voltage is a second charging voltage in a pre-charging stage, the first charging voltage is less than the second charging voltage, and the step S30, determining a target charging voltage according to the first charging current and the second charging current, comprises:
[0128] Step S31, determining that the target charging voltage is the second charging voltage.
[0129] In this embodiment, when the charging device determines that the target charging stage is the pre-charging stage, the target charging voltage can be determined according to the charging voltage adjustment strategy of the pre-charging stage. It can be understood that in the pre-charging stage, the charging device can continuously increase the charging voltage according to a preset cycle, that is, in the pre-charging stage, after adjusting the smaller first charging voltage to the larger second charging voltage, the second charging voltage can be used as the target charging voltage, thereby achieving an increase in the charging voltage in the pre-charging stage.
[0130] It should be noted that after adjusting the first charging voltage to the second charging voltage, the charged device can respectively obtain a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage, and compare the first charging current with the second charging current.
[0131] When the first charging current is greater than the second charging current, it means that adjusting the first charging voltage to the second charging voltage will reduce the charging current, thereby reducing the charging efficiency. At this time, the charging device can re-determine the first charging voltage as the target charging voltage and re-adjust the output second charging voltage to the first charging voltage to ensure the charging efficiency.
[0132] When the first charging current is less than the second charging current, it means that adjusting the first charging voltage to the second charging voltage will increase the charging current and improve the charging efficiency. At this time, the charging device can determine the second charging voltage as the target charging voltage and output the second charging voltage to charge the device to be charged to improve the charging efficiency.
[0133] When the first charging current is equal to the second charging current, it means that adjusting the first charging voltage to the second charging voltage will not cause the charging current to change, that is, the charging efficiency remains unchanged before and after the adjustment. At this time, in order to reduce the charging voltage, the charging device can select a smaller voltage from the first charging voltage and the second charging voltage as the target charging voltage, so as to reduce the charging voltage without affecting the charging efficiency and reduce energy loss.
[0134] It can be understood that, by combining the above three charging voltage adjustment methods, different charging voltage adjustment strategies can be set corresponding to different charging stages.
[0135] Please continue to refer to Figure 5 , the first charging voltage is the first charging voltage in the constant current charging stage, the second charging voltage is the second charging voltage in the constant current charging stage, the first charging voltage is less than the second charging voltage, and the step S30, according to the first charging current and the second charging current, the step of determining the target charging voltage includes:
[0136] Step S32, when the first charging current is less than the second charging current, determining the target charging voltage to be the second charging voltage;
[0137] Step S33: when the first charging current is equal to the second charging current, determining the target charging voltage to be the first charging voltage.
[0138] When the charging device determines that the target charging stage is the constant current charging stage, the charging voltage output to the device to be charged can be increased at intervals of a preset period, that is, the smaller first charging voltage is adjusted to the larger second charging voltage, and the corresponding first charging current and second charging current are detected respectively. When the second charging current is greater than the first charging current, it means that the charging current can be increased by increasing the charging voltage, which is equivalent to improving the charging efficiency. At this time, the charging device can use the second charging voltage as the target charging voltage, that is, after increasing the charging voltage, the voltage is maintained to charge the device to be charged. When the second charging current is equal to the first charging current, it means that the charging current cannot be increased by increasing the charging voltage in the current period of the constant current charging stage. The charging device can use the first charging voltage as the target charging voltage and readjust the output charging voltage to the first charging voltage, so that the charging device can keep the charging voltage at the minimum when the charging efficiency is maximized when charging the device to be charged normally, avoiding unnecessary energy loss caused by overvoltage of the charging voltage.
[0139] It should be noted that, in the constant current charging stage, when the charging voltage is increased, the charging current usually increases or does not change. That is, the second charging current is usually greater than or equal to the first charging current.
[0140] Please continue to refer to Figure 6 , the first charging voltage is the first charging voltage in the constant voltage charging stage, the second charging voltage is the second charging voltage in the constant voltage charging stage, the first charging voltage is greater than the second charging voltage, and the step S30, determining the target charging voltage according to the first charging current and the second charging current, comprises:
[0141] Step S34, when the first charging current is greater than the second charging current, determining the target charging voltage to be the first charging voltage;
[0142] Step S35: when the first charging current is equal to the second charging current, determining the target charging voltage to be the second charging voltage.
[0143] In this embodiment, when the charging device determines that the target charging stage is the constant voltage charging stage, the charging voltage output to the device to be charged can be reduced at each preset period, that is, the larger first charging voltage is adjusted to the smaller second charging voltage, and the corresponding first charging current and second charging current are detected respectively. When the second charging current is less than the first charging current, it means that the charging current can be reduced by reducing the charging voltage. At this time, in order to ensure the charging efficiency, the charging device can use the first charging voltage as the target charging voltage and restore the output charging voltage to the first charging voltage to avoid the charging efficiency from decreasing due to the reduction of the charging voltage. When the second charging current is equal to the first charging current, it means that reducing the charging voltage will not cause the charging current to decrease. At this time, the charging device can use the second charging voltage as the target charging voltage and output the second charging voltage to charge the device to be charged, so as to reduce the charging voltage without reducing the charging efficiency and improve the charging efficiency.
[0144] It should be noted that in the constant voltage charging stage, even if the charging voltage remains unchanged, the charging current will gradually decrease due to the continuous increase in the battery power of the device to be charged. That is, there is a current reduction range of a normal rate for the charging current in the constant voltage charging stage. After the charging device reduces the charging voltage, if it is detected that the current difference between the second charging current and the first charging current is within the normal current reduction range, it is considered that the charging current has not undergone a step-by-step reduction, and the second charging current can be regarded as equal to the first charging current. At this time, the charging voltage can be maintained at the second charging voltage. When it is detected that the current difference between the second charging current and the first charging current exceeds the normal current reduction range, it is considered that the charging current has undergone a step-by-step reduction, and the charging voltage needs to be readjusted to the first charging voltage.
[0145] For further information, please refer to Figure 7 , Figure 7 This is a flow chart of the sixth embodiment of the charging method of the present invention, based on Figure 6 In the illustrated embodiment, the step S123, when the current corresponding charging stage is the constant current charging stage and the current charging current is less than the constant current stage threshold current, the step of determining that the target charging stage is the constant voltage charging stage includes:
[0146] Step S50, when the current corresponding charging stage is a constant current charging stage and the device to be charged is stably charged, detecting the corresponding stable charging current;
[0147] Step S51, determining a maximum stable charging current from the stable charging current detected in the constant current charging stage, and determining a constant current stage threshold current according to the maximum stable charging current;
[0148] Step S52, when the current charging current is less than the constant current stage threshold current, determining the target charging stage to be the constant voltage charging stage.
[0149] In this embodiment, when the charging device determines that the target charging stage is the constant current charging stage and can stably charge the device to be charged, the current stable charging current can be detected. When there are multiple stable charging stages in the constant current charging stage, multiple stable charging currents can be detected respectively. The charging device can determine the maximum stable charging current from the multiple stable charging currents, and the maximum stable charging current is the maximum charging current that can be reached when the device to be charged is stably charged in the constant current charging stage. It can be understood that when the charging device increases the charging current by increasing the charging voltage, and the currently detected charging current is greater than all stable charging currents detected in the constant current charging stage, the current charging current will be updated to the new maximum stable charging current.
[0150] It should be noted that the maximum stable charging current is the maximum charging current corresponding to the stable charging of the device for a period of time. Even if the charging device detects an instantaneous current greater than the maximum stable charging current during the constant current charging stage, it cannot be used as the new maximum stable charging current.
[0151] The charging device can calculate the corresponding constant current stage threshold current according to the maximum stable charging current continuously updated in the constant current charging stage. Among them, the constant current stage threshold current can be 80% of the maximum stable charging current. That is, when it is detected that the charging current drops and drops below the constant current stage threshold current, it can be determined that the charging voltage is high and the charging current is low at this time, and the charging stage enters the constant voltage charging stage from the constant current charging stage.
[0152] For further information, please refer to Figure 8 , Figure 8 This is a flow chart of the seventh embodiment of the charging method of the present invention, based on Figure 6 In the illustrated embodiment, the step S34, after the step of determining the target charging voltage to be the first charging voltage when the first charging current is greater than the second charging current, further includes:
[0153] Step S60, stopping charging when the second charging current is lower than a preset constant voltage stage threshold current.
[0154] In this embodiment, when the charging stage is the constant voltage charging stage, the charging device can also detect whether the adjusted charging current is lower than the preset constant voltage stage threshold current each time the charging voltage is adjusted. When the charging device adjusts the first charging voltage to the second charging voltage in the constant voltage charging stage and determines that the second charging current is lower than the first charging current, the second charging current can be compared with the preset constant voltage stage threshold current. When it is determined that the second charging current is lower than the preset constant voltage stage threshold current, the charging of the device to be charged can be stopped, thereby ending the charging process.
[0155] For further information, please refer to Fig. 9 , Fig. 9 This is a flow chart of the eighth embodiment of the charging method of the present invention, based on the above Figures 2 to 8 In the embodiment shown, the step S20, after adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage according to the target charging stage, and determining the first charging current corresponding to the first charging voltage and the second charging current corresponding to the second charging voltage, further includes:
[0156] Step S70, obtaining a normal current range corresponding to the target charging stage, and determining whether the second charging current is within the normal current range;
[0157] Step S71: When the second charging current is not within the normal current range, it is determined that an abnormality occurs in the device to be charged or the device to be charged is an abnormal device, and charging is stopped.
[0158] In this embodiment, when the charging device determines the target charging stage, it can obtain the normal current range corresponding to the pre-stored target charging stage, and detect whether the second charging current is within the normal current range each time the charging voltage is adjusted. If the second charging current is within the normal current range, it indicates that the current device to be charged is in a normal charging state. If the second charging current is not within the normal current range, it can be determined that the charging circuit formed by the charging device and the device to be charged is abnormal or the device to be charged is not compatible with the charging device, and the charging device can stop the charging process.
[0159] It is understandable that the abnormality of the charging circuit formed by the charging device and the device to be charged may include abnormality of the charging device, abnormality of the device to be charged, or abnormality of the charging circuit, etc. The abnormality of the device to be charged may include open circuit or short circuit of the device to be charged.
[0160] Further, in the ninth embodiment of the charging method of the present invention, based on the above Fig.10In the embodiment shown, the target charging stage is a pre-charging stage, and before the step S70 of obtaining a normal current range corresponding to the target charging stage and determining whether the second charging current is within the normal current range, the step further includes:
[0161] Step S80, determining whether the first charging current is less than a starting threshold current and whether the second charging current is greater than a starting threshold current;
[0162] Step S81, when the first charging current is less than a starting threshold current and the second charging current is greater than a starting threshold current, determining whether the second charging voltage is within a preset charging voltage range;
[0163] Step S82: When the second charging voltage is not within the preset charging voltage range, determining that the device to be charged is an abnormal device, and stopping charging.
[0164] In this embodiment, the charging device can increase the minimum charging voltage output to the device to be charged during the pre-charging stage. During the increase process, the charging device can also detect whether a charging current exceeding the starting threshold current is generated in the charging circuit. During a voltage adjustment process in the pre-charging stage, the charging device can compare the first charging current and the second charging current with the starting threshold current respectively. When the first charging current is less than the starting threshold current and the second charging current is greater than the starting threshold current, it can be determined that the device to be charged enters the charging state when the charging device outputs the second charging voltage. At this time, the charging device can compare the second charging voltage with the preset charging voltage range. When the second charging voltage is within the preset charging voltage range, it indicates that the device connected to the charging device is a normal device to be charged; and when the second charging voltage is not within the preset charging voltage range, it indicates that the device connected to the charging device is other abnormal devices, and the charging device can stop charging, thereby avoiding charging the abnormal device and causing damage to the device.
[0165] Further, in the tenth embodiment of the charging method of the present invention, based on the above Figures 2 to 9 In the embodiment shown, the step S20, according to the charging stage, adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage, and determining a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage, comprises:
[0166] According to the charging stage, the first PWM signal is adjusted to the second PWM signal, so that the charging voltage of the device to be charged is adjusted from the first charging voltage to the second charging voltage, and a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage are determined; wherein, when the PWM signal decreases, the first charging voltage is less than the second charging voltage; and when the PWM signal increases, the first charging voltage is greater than the second charging voltage.
[0167] In this embodiment, the charging device can control the output charging voltage by outputting a PWM signal. When the charging device adjusts the output first PWM signal to the second PWM signal, the charging voltage of the device to be charged is also adjusted from the first charging voltage to the second charging voltage, that is, the charging device can adjust the output PWM signal to adjust the charging voltage. When the charging stage is the pre-charging stage, the charging device can adjust the output PWM signal so that the charging voltage output by the charging voltage adjustment module increases according to a preset period. When the charging stage is the constant current charging stage or the constant voltage charging stage, the charging device can adjust the output PWM signal so that the charging voltage adjustment module adjusts the charging voltage. It can be understood that after adjusting the charging voltage, if it is detected that the second charging current has not increased or the charging current has decreased, the charging device can adjust the output PWM signal to the PWM signal before the adjustment, so that the output charging voltage returns to the first charging voltage.
[0168] like Fig.10 As shown, the charging device is in the pre-charging stage, constant current charging stage and constant voltage charging stage in sequence during a charging process. In the pre-charging stage, the PWM signal period decreases and the charging voltage period increases; in the constant current charging stage, the charging device undergoes 4 adjustments. After the first adjustment, it is detected that the charging current remains unchanged, and the charging voltage changes from the second charging voltage back to the first charging voltage. After the second to fourth adjustments, it is detected that the charging current increases, and the charging voltage remains at the adjusted second charging voltage; in the constant voltage charging stage, after the first adjustment, it is detected that the charging current decreases, and the charging voltage changes from the second charging voltage back to the first charging voltage. After the subsequent multiple adjustment processes do not cause the charging current to decrease in a step-like manner, the charging voltage is reduced to the minimum charging voltage after multiple adjustments, and when it is detected that the charging current is lower than the preset constant voltage stage threshold current, charging is stopped.
[0169] The charging device can increase the output charging voltage when the output PWM signal decreases, and can reduce the output charging voltage when the output PWM signal increases. The PWM signal output by the charging device has a one-to-one correspondence with the charging voltage of the device to be charged.
[0170] It should be noted that, in another embodiment, the judgment method of converting the charging stage from the pre-charging stage to the constant current charging stage can also be based on the PWM signal output by the charging device. The charging device is pre-set with a stage threshold of the PWM signal. When the PWM signal output by the charging device is higher than the stage threshold, it indicates that the charging stage is the pre-charging stage, and the output charging voltage is relatively low at this time; and when the PWM signal output by the charging device is lower than the stage threshold, it indicates that the charging stage is converted into the constant current charging stage, and the output charging voltage is relatively high at this time.
[0171] In addition, the present invention also proposes a computer-readable storage medium on which a smart device network configuration authentication program is stored. The computer-readable storage medium may be Figure 1 The memory 20 in the terminal may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The computer-readable storage medium includes a plurality of instructions for enabling a charging device having a processor to execute the charging method described in each embodiment of the present invention.
[0172] It is understood that, in the description of this specification, the description with reference to the terms "one embodiment", "another embodiment", "other embodiments", or "first to Nth embodiments" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0173] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0174] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0176] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A charging method, characterized in that: Applied to a charging device, comprising the following steps: When charging the device to be charged, determining a target charging stage; According to the target charging stage, adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage at every preset period, and determining a first charging current corresponding to the first charging voltage and a second charging current corresponding to the second charging voltage; determining a target charging voltage according to the first charging current and the second charging current; Outputting the target charging voltage to charge the device to be charged; The first charging voltage is a first charging voltage in a pre-charging stage, the second charging voltage is a second charging voltage in a pre-charging stage, the first charging voltage is less than the second charging voltage, and the step of determining a target charging voltage according to the first charging current and the second charging current includes: Determining the target charging voltage to be the second charging voltage; Or the first charging voltage is a first charging voltage in a constant current charging stage, the second charging voltage is a second charging voltage in a constant current charging stage, the first charging voltage is less than the second charging voltage, and the step of determining the target charging voltage according to the first charging current and the second charging current includes: When the first charging current is less than the second charging current, determining the target charging voltage to be the second charging voltage; When the first charging current is equal to the second charging current, determining the target charging voltage to be the first charging voltage; Or the first charging voltage is a first charging voltage in a constant voltage charging stage, the second charging voltage is a second charging voltage in a constant voltage charging stage, the first charging voltage is greater than the second charging voltage, and the step of determining the target charging voltage according to the first charging current and the second charging current includes: When the first charging current is greater than the second charging current, determining the target charging voltage to be the first charging voltage; When the first charging current is equal to the second charging current, the target charging voltage is determined to be the second charging voltage.
2. The charging method according to claim 1, characterized in that: When charging the device to be charged, the step of determining the target charging stage includes: When charging the device to be charged, obtain the current corresponding charging stage and charging parameters; The target charging stage is determined according to the current corresponding charging stage and charging parameters.
3. The charging method according to claim 2, characterized in that: The step of determining the target charging stage according to the current corresponding charging stage and charging parameters comprises: When it is detected that the device to be charged is connected and the current charging voltage is less than or equal to the adaptive voltage threshold, it is determined that the target charging stage is the pre-charging stage.
4. The charging method according to claim 2, characterized in that: The step of determining the target charging stage according to the current corresponding charging stage and charging parameters comprises: When the current corresponding charging stage is the pre-charging stage and the current charging voltage is greater than the adaptive voltage threshold, it is determined that the target charging stage is the constant current charging stage.
5. The charging method according to claim 2, characterized in that: The step of determining the target charging stage according to the current corresponding charging stage and charging parameters comprises: When the current corresponding charging stage is the constant current charging stage and the current charging current is less than the constant current stage threshold current, the target charging stage is determined to be the constant voltage charging stage.
6. The charging method according to claim 5, characterized in that: Before the step of determining the target charging stage to be the constant voltage charging stage when the current charging current is less than the constant current stage threshold current, the method further includes: When stably charging the device to be charged, detecting a corresponding stable charging current; A maximum stable charging current is determined from the stable charging current detected in the constant current charging stage, and a constant current stage threshold current is determined according to the maximum stable charging current.
7. The charging method according to claim 1, characterized in that: After the step of determining the target charging voltage to be the first charging voltage when the first charging current is greater than the second charging current, the method further includes: When the second charging current is lower than a preset constant voltage stage threshold current, charging is stopped.
8. The charging method according to any one of claims 1 to 7, characterized in that: After the step of adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage, and determining a first charging current corresponding to the first charging voltage, and a second charging current corresponding to the second charging voltage, the method further includes: Obtaining a normal current range corresponding to the target charging stage, and determining whether the second charging current is within the normal current range; When the second charging current is not within the normal current range, it is determined that an abnormality occurs in the device to be charged or the device to be charged is an abnormal device, and charging is stopped.
9. The charging method according to claim 8, characterized in that: The target charging stage is a pre-charging stage. Before the step of obtaining a normal current range corresponding to the target charging stage and determining whether the second charging current is within the normal current range, the step further includes: Determining whether the first charging current is less than a starting threshold current and whether the second charging current is greater than a starting threshold current; When the first charging current is less than a starting threshold current and the second charging current is greater than a starting threshold current, determining whether the second charging voltage is within a preset charging voltage range; When the second charging voltage is not within the preset charging voltage range, the device to be charged is determined to be an abnormal device, and charging is stopped.
10. The charging method according to any one of claims 1 to 7, characterized in that: The device to be charged is a wireless headset.
11. The charging method according to any one of claims 1 to 7, characterized in that: The step of adjusting the charging voltage of the device to be charged from the first charging voltage to the second charging voltage comprises: The first PWM signal is adjusted to a second PWM signal so that the charging voltage of the device to be charged is adjusted from the first charging voltage to the second charging voltage; wherein, when the PWM signal decreases, the first charging voltage is less than the second charging voltage; and when the PWM signal increases, the first charging voltage is greater than the second charging voltage.
12. A charging device, characterized in that: The charging device includes a memory, a processor, and a charging program stored in the memory and executable on the processor, wherein: when the charging program is executed by the processor, the steps of the charging method according to any one of claims 1 to 11 are implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a charging program, and when the charging program is executed by a processor, the steps of the charging method according to any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Method, device, and adaptor for dynamically adjusting charging current of adaptor to achieve thermal protection and fast charging
CN104885328A
Charging method and device and electronic equipment
CN108233453A
Charging method and mobile terminal
CN108347068A
Charging optimization
CN109643149A
Earphone charging system and earphone charging method
CN110311434A
