Battery charging method and device, charger, storage medium and program product

By detecting the initial voltage of the battery, the current after charging and the load voltage, determining the battery type and setting charging parameters, the problem that the charger cannot identify the battery type is solved, and charging efficiency and safety are improved.

CN119154465AInactive Publication Date: 2024-12-17SHENZHEN PEICHENG ELECTRONIC TECH CO LTD

Patent Information

Application Number
CN202411659327.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2024-12-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing chargers cannot accurately identify the connected battery type, resulting in safety risks when charging the battery.

Method used

By detecting the initial voltage of the battery and the current current after charging and the load voltage, the target type of the battery is determined, and the appropriate charging parameters are determined according to the type to charge.

Benefits of technology

Effectively improve charging efficiency, extend the battery life, avoid overcharging, overdischarge or inappropriate charging current, reduce the risk of thermal runaway and damage, and ensure charging safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119154465A_ABST
    Figure CN119154465A_ABST
Patent Text Reader

Abstract

The invention discloses a battery charging method and device, a charger, a storage medium and a program product, and relates to the technical field of battery charging, and the method comprises the steps: collecting the initial voltage of a battery when the connection with the battery is detected, and carrying out the initial charging of the battery; collecting a first current and a current on-load voltage of the battery; determining a target battery type of the battery based on the first current, the initial voltage and the current on-load voltage; and based on the target battery type, determining a charging parameter corresponding to the target battery type, and charging the battery by using the charging parameter. According to the invention, potential safety hazards in the charging process of the battery can be avoided, and the charging safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery charging technology, and in particular to a battery charging method, device, charger, storage medium and program product. Background Art

[0002] Currently, batteries are a common component used to generate electrical energy and are widely used in various mobile devices. There are many types of batteries, including lithium batteries, lead-acid batteries, and nickel-cadmium batteries. Different batteries have different electrical characteristics, so they require different electrical parameters such as charging voltage and charging current for charging. However, existing chargers are unable to accurately identify the type of connected battery, resulting in safety hazards when charging the battery. Summary of the invention

[0003] The main purpose of the present application is to provide a battery charging method, device, charger, storage medium and program product, aiming to solve the technical problem that the charger cannot accurately identify the type of connected battery.

[0004] To achieve the above objectives, the present application proposes a battery charging method, comprising: When the connection with the battery is detected, the initial voltage of the battery is collected and the battery is initially charged; Collecting a first current current and a first current load voltage of the battery; determining a target battery type of the battery based on the first current, the initial voltage, and the first current loaded voltage; Based on the target battery type, charging parameters corresponding to the target battery type are determined, and the battery is charged using the charging parameters.

[0005] In one embodiment, the step of determining the target battery type of the battery based on the first current current, the initial voltage, and the first current loaded voltage includes: determining a voltage difference between an initial voltage and a first current loaded voltage; determining a first internal resistance of the battery based on the voltage difference and the first current; A mapping relationship is searched to determine a target battery type corresponding to the first internal resistance; wherein the mapping relationship includes a mapping relationship between the first internal resistance and the battery type.

[0006] In one embodiment, the step of initially charging the battery includes: Charge the battery with constant current.

[0007] In one embodiment, after determining charging parameters corresponding to the target battery type based on the target battery type and charging the battery using the charging parameters, the method further includes: When it is detected that the battery enters the next charging stage, collecting a second current loaded voltage and a second current current of the battery; Stop charging the battery; collecting a third voltage of the battery; Determine a second internal resistance of the battery using the third voltage, the second current loaded voltage, and the second current current; Find the mapping relationship and determine the new battery type corresponding to the second internal resistance; Determine whether the new battery type is consistent with the target battery type; If the new battery type is inconsistent with the target battery type, stop charging the battery; If the new battery type is consistent with the target battery type, the battery is charged in the next charging stage.

[0008] In one embodiment, the step of collecting the third voltage of the battery includes: After charging is stopped for a preset time, a third voltage of the battery is collected.

[0009] In one embodiment, based on the target battery type, determining charging parameters corresponding to the target battery type, and charging the battery using the charging parameters includes: determining whether charging parameters corresponding to the target battery type exist; If there are charging parameters corresponding to the target battery type, charging the battery using the charging parameters; If there is no charging parameter corresponding to the target battery type, charging the battery is stopped.

[0010] In addition, to achieve the above-mentioned purpose, the present application also proposes a battery charging device, the battery charging device comprising: A first acquisition module is used to acquire the initial voltage of the battery and perform initial charging on the battery when detecting connection with the battery; A second acquisition module, used for acquiring a first current current and a first current load voltage of the battery; A first determination module, configured to determine a target battery type of the battery based on a first current current, an initial voltage, and a first current loaded voltage; The second determination module is used to determine the charging parameters corresponding to the target battery type based on the target battery type, and charge the battery using the charging parameters.

[0011] In addition, to achieve the above objectives, the present application also proposes a charger, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the battery charging method described above.

[0012] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the battery charging method described above are implemented.

[0013] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the battery charging method described above are implemented.

[0014] One or more technical solutions proposed in this application have at least the following technical effects: In this application, since different types of batteries have unique electrical characteristics, the reaction characteristics of the battery, such as internal impedance and voltage changes, can be analyzed based on the initial voltage of the battery when it is connected to the charger, and the first current current and the first current load voltage after the initial charging, so as to infer the target battery type of the battery based on the internal impedance and voltage changes of the battery. At the same time, after determining the target battery type of the battery, the charging parameters such as charging voltage, charging current, and charging time suitable for the battery can be determined based on the target battery type, which can not only effectively improve the charging efficiency and extend the battery life, but also avoid overcharging, over-discharging or using inappropriate charging current, reduce the risk of thermal runaway and damage, and avoid safety hazards when charging the battery. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 This is a schematic diagram of the internal structure of the charger for this application; Figure 2 A flowchart diagram of the first embodiment of the battery charging method of the present application is provided; Figure 3 This is a schematic diagram of the module structure of a battery charging device according to an embodiment of the present application; Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the battery charging method in the embodiment of the present application.

[0018] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0019] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0020] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0021] The main solution of the embodiment of the present application is: when detecting connection with the battery, collecting the initial voltage of the battery and initially charging the battery; collecting the first current current and the first current loaded voltage of the battery; determining the target battery type of the battery based on the first current current, the initial voltage and the first current loaded voltage; based on the target battery type, determining the charging parameters corresponding to the target battery type, and charging the battery using the charging parameters.

[0022] In this embodiment, for the convenience of description, the following description is made with the charger as the execution subject.

[0023] Currently, batteries are a common component used to generate electrical energy and are widely used in various mobile devices. There are many types of batteries, including lithium batteries, lead-acid batteries, and nickel-cadmium batteries. Different batteries have different electrical characteristics, so they require different electrical parameters such as charging voltage and charging current for charging. However, existing chargers are unable to accurately identify the type of connected battery, resulting in safety hazards when charging the battery.

[0024] The present application provides a solution. Since different types of batteries have unique electrical characteristics, the reaction characteristics of the battery, such as internal impedance and voltage changes, can be analyzed based on the initial voltage of the battery when it is connected to the charger, and the first current current and the first current load voltage after the initial charging. Parameters, so as to infer the target battery type of the battery based on the internal impedance and voltage changes of the battery. At the same time, after determining the target battery type of the battery, the charging parameters such as charging voltage, charging current, and charging time suitable for the battery can be determined according to the target battery type, which can not only effectively improve the charging efficiency and extend the battery life, but also avoid overcharging, over-discharging or using inappropriate charging current, reduce the risk of thermal runaway and damage, and avoid safety hazards when charging the battery.

[0025] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a charger, etc. The charger is taken as an example to illustrate this embodiment and the following embodiments.

[0026] Embodiments of the present application In the following, the charger used in the technical implementation of the present application will be described: Reference Figure 1 , Figure 1 The internal structure diagram of the charger is shown in Figure 1. The charger includes battery connection terminals, voltage detection circuit, current detection circuit, relay, power circuit and microprocessor controller.

[0027] The battery connection terminals are respectively connected to the microprocessor controller, the voltage detection circuit, the current detection circuit and the relay, and the battery connection terminals are used to connect to the battery.

[0028] The voltage detection circuit is connected to the microprocessor controller and the battery connection terminal respectively. The voltage detection circuit includes a high-precision voltage divider circuit and an analog-to-digital converter (ADC). After the voltage detection circuit collects the initial voltage and the loaded voltage of the battery through the voltage divider circuit, the analog-to-digital converter is used to convert the initial voltage and the loaded voltage into voltage digital signals, and the digital signals are transmitted to the microprocessor controller.

[0029] The current detection circuit is connected to the microprocessor controller and the battery connection terminal respectively. The current detection circuit includes a high-precision current sampling circuit and an analog-to-digital converter (ADC). After the current detection circuit collects the current when the battery is charging through the current sampling circuit, the analog-to-digital converter converts the current value into a current digital signal, and transmits the current digital signal to the microprocessor controller.

[0030] The relay is connected to the microprocessor controller, the battery connection terminal and the power circuit respectively. The relay is used to stop charging the battery or continue charging the battery according to the control signal when receiving the control signal sent by the microprocessor controller.

[0031] The power circuit is connected to the microprocessor controller, and the power circuit is used to output current and voltage under the control of the microprocessor controller.

[0032] When the microprocessor controller detects that the battery is connected through the battery connection terminal, it receives the voltage digital signal of the initial voltage sent by the voltage detection circuit, and controls the power circuit to output the current and voltage to initially charge the battery. After the battery is initially charged, it receives the voltage digital signal of the first current loaded voltage sent by the voltage detection circuit, receives the current digital signal of the first current current sent by the current detection circuit, and determines the target battery type of the battery based on the first current current, the first current loaded voltage, and the initial voltage. After determining the target battery type of the battery, the charging parameters corresponding to the target battery type can be determined, and the current and voltage output by the power circuit can be controlled based on the charging parameters.

[0033] In this embodiment, the reaction characteristics of the battery, such as the internal impedance and voltage change, can be analyzed based on the initial voltage of the battery when it is connected to the charger, and the first current current and the first current load voltage after the initial charging, so as to infer the target battery type of the battery based on the internal impedance and voltage change of the battery. At the same time, after determining the target battery type of the battery, the charging parameters such as the charging voltage, charging current, and charging time suitable for the battery can be determined based on the target battery type, which can not only effectively improve the charging efficiency and extend the battery life, but also avoid overcharging, over-discharging or using inappropriate charging current, reduce the risk of thermal runaway and damage, and avoid safety hazards when charging the battery.

[0034] In addition, when charging the battery, the voltage and current output by the power circuit can be adaptively adjusted using the charging parameters, so that the charger can adapt to batteries of different types and states, thereby improving the applicability of the charger.

[0035] Based on this, the present application embodiment provides a battery charging method, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the battery charging method of the present application.

[0036] In this embodiment, the battery charging method includes steps S10 to S40: Step S10, when the connection with the battery is detected, the initial voltage of the battery is collected, and the battery is initially charged.

[0037] Step S20, collecting a first current current and a first current load voltage of the battery.

[0038] In this embodiment, the initial voltage may be the voltage of the battery before charging. The first current loaded voltage may be the voltage of the battery at the current moment after the battery is connected to the charger and starts charging. The first current current may be the current passing through the battery at the current moment after the battery is connected to the charger and starts charging.

[0039] Specifically, when the charger detects that it is connected to the battery through the battery connection terminal, it can collect the initial voltage of the battery through the voltage detection circuit and control the power circuit to output current and voltage to perform initial charging on the battery.

[0040] It should be noted that when the battery is initially charged, in order to reduce battery short circuit or other safety risks and ensure a safer charging process, further, as an optional implementation, the initial charging of the battery can be adaptively changed to constant current charging of the battery, that is, the battery is charged using a set initial constant current value.

[0041] After the battery is initially charged, a first current load voltage of the battery may be collected through a voltage detection circuit, and a first current current passing through the battery may be collected through a current detection circuit.

[0042] Step S30, determining a target battery type of the battery based on the first current current, the initial voltage and the first current loaded voltage.

[0043] It is understandable that different types of batteries (such as lithium-ion, lead-acid, nickel-metal hydride, etc.) have different internal resistance characteristics. Therefore, when determining the target battery type of the battery based on the first current current, the initial voltage, and the first current loaded voltage, the first internal resistance of the battery can be determined based on the first current current, the initial voltage, and the first current loaded voltage. After determining the first internal resistance of the battery, a mapping relationship can be searched to determine the target battery type corresponding to the first internal resistance, that is, the voltage difference between the initial voltage and the first current loaded voltage is determined, and the first internal resistance of the battery is determined based on the voltage difference and the first current current; the mapping relationship is searched to determine the target battery type corresponding to the first internal resistance; wherein the mapping relationship includes a mapping relationship between the first internal resistance and the battery type.

[0044] Step S40: Based on the target battery type, a charging parameter corresponding to the target battery type is determined, and the battery is charged using the charging parameter.

[0045] When charging the battery using the charging parameters, in order to prevent the situation where the target battery type of the battery is incorrectly determined due to battery aging, further, as an optional implementation, after step S40, the method further includes: Step S41, when it is detected that the battery enters the next charging stage, a second current loaded voltage and a second current current of the battery are collected.

[0046] Step S42, stop charging the battery.

[0047] Step S43, collecting the third voltage of the battery.

[0048] Step S44, determining a second internal resistance of the battery using the third voltage, the second current load voltage, and the second current current.

[0049] Step S45, searching for a mapping relationship to determine a new battery type corresponding to the second internal resistance.

[0050] Step S46, determining whether the new battery type is consistent with the target battery type.

[0051] Step S47: If the new battery type is inconsistent with the target battery type, stop charging the battery.

[0052] Step S48: If the new battery type is consistent with the target battery type, the battery is charged in the next charging stage.

[0053] Specifically, the battery charging process is mainly divided into three charging stages: trickle current stage, constant current stage and constant voltage stage. During the battery charging process, the battery voltage can be used to determine whether the battery enters the next charging stage.

[0054] For example, the battery voltage of the battery can be collected through a voltage detection circuit. After the battery voltage is collected, the charging stage of the battery can be determined according to the battery voltage range corresponding to each charging stage. For example, when the battery voltage is 3.9V, and the battery voltage in the trickle stage is lower than 3V, the battery voltage in the constant current stage is 3.0V to 4.2V, and the battery voltage in the constant voltage stage is not lower than 4.2V, it can be determined that the charging stage of the battery is the constant current stage.

[0055] When it is detected that the battery enters the next charging stage, the second current load voltage of the battery can be collected through the voltage detection circuit, and the second current current of the battery can be collected through the current detection circuit. After collecting the second current load voltage and the second current current of the battery, the relay can be controlled to disconnect, stop charging the battery, and collect the third voltage of the battery. When the battery is stopped from charging, the voltage of the battery may fluctuate instantaneously. In order to obtain a more accurate battery voltage, step S43 can be adaptively changed to: after stopping charging for a preset time, collect the third voltage of the battery, such as collecting the third voltage of the battery through the voltage detection circuit after stopping charging for 2-3 seconds.

[0056] After obtaining the third voltage, the second current loaded voltage, and the second current current of the battery, the voltage difference between the second current loaded voltage and the third voltage can be determined, and based on the voltage difference between the second current loaded voltage and the third voltage and the second current current, the second internal resistance of the battery can be determined. After obtaining the second internal resistance, a mapping relationship can be searched to determine a new battery type corresponding to the second internal resistance, and to determine whether the new battery type is consistent with the target battery type.

[0057] When the new battery type is inconsistent with the target battery type, the battery may be aged and cause a detection error. In order to avoid equipment failure due to charging mismatch, the battery is stopped from being charged. When the new battery type is consistent with the target battery type, there is no battery detection error, and the battery is charged to the next stage.

[0058] In this embodiment, when the battery enters the next stage, the second internal resistance of the battery is determined based on the third voltage, the second current loaded voltage and the second current current, and the new battery type of the battery is determined using the second internal resistance to determine whether the new battery type is consistent with the target battery type. Based on the comparison result, it is determined whether to continue charging the battery. That is, when the battery enters the next charging stage, the battery type of the battery will be identified to avoid detection errors due to battery aging, thereby ensuring the accuracy of battery type identification.

[0059] It is understandable that different battery types have specific charging requirements, such as voltage, current and charging time. If mismatched charging parameters are used, it may cause overcharging, short circuit or other safety hazards, or even cause fire or explosion. After determining the target battery type of the battery, it can be determined whether there are charging parameters corresponding to the target battery type in the charging data stored in the charger. When there are charging parameters corresponding to the target battery type, the battery is charged using the charging parameters. When there are no charging parameters corresponding to the target battery type, the battery is stopped from being charged, that is, it is determined whether there are charging parameters corresponding to the target battery type. If there are charging parameters corresponding to the target battery type, the battery is charged using the charging parameters. If there are no charging parameters corresponding to the target battery type, the battery is stopped from being charged.

[0060] In this embodiment, since different types of batteries have unique electrical characteristics, the reaction characteristics of the battery, such as internal impedance and voltage changes, can be analyzed based on the initial voltage of the battery when it is connected to the charger, and the first current current and the first current load voltage after the initial charging, so as to infer the target battery type of the battery based on the internal impedance and voltage changes of the battery. At the same time, after determining the target battery type of the battery, the charging parameters such as the charging voltage, charging current, and charging time suitable for the battery can be determined based on the target battery type, which can not only effectively improve the charging efficiency and extend the battery life, but also avoid overcharging, over-discharging or using inappropriate charging current, reduce the risk of thermal runaway and damage, and avoid safety hazards when charging the battery.

[0061] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the battery charging method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0062] This application also provides a battery charging device, please refer to Figure 3 , the battery charging device comprises: A first acquisition module is used to acquire the initial voltage of the battery and perform initial charging on the battery when detecting connection with the battery; A second acquisition module, used for acquiring a first current current and a first current load voltage of the battery; A first determination module, configured to determine a target battery type of the battery based on a first current current, an initial voltage, and a first current loaded voltage; The second determination module is used to determine the charging parameters corresponding to the target battery type based on the target battery type, and charge the battery using the charging parameters.

[0063] The battery charging device provided by the present application adopts the battery charging method in the above embodiment, which can solve the technical problem that the charger cannot accurately identify the type of the connected battery. Compared with the prior art, the beneficial effects of the battery charging device provided by the present application are the same as the beneficial effects of the battery charging method provided by the above embodiment, and the other technical features of the battery charging device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0064] The present application provides a charger, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the battery charging method in the above-mentioned embodiment 1.

[0065] Reference below Figure 4 , which shows a schematic structural diagram of a charger suitable for implementing an embodiment of the present application. Figure 4 The charger shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0066] like Figure 4As shown, the charger may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the charger are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the charger to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a charger with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0067] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0068] The charger provided by the present application adopts the battery charging method in the above embodiment, which can solve the technical problem that the charger cannot accurately identify the type of the connected battery. Compared with the prior art, the beneficial effects of the charger provided by the present application are the same as the beneficial effects of the battery charging method provided by the above embodiment, and the other technical features of the charger are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0069] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0070] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0071] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the battery charging method in the above-mentioned embodiment.

[0072] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0073] The computer-readable storage medium may be included in the charger, or may exist independently without being assembled into the charger.

[0074] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the charger, the charger: when detecting connection with the battery, collects the initial voltage of the battery and performs initial charging on the battery; collects the first current current and the first current loaded voltage of the battery; determines the target battery type of the battery based on the first current current, the initial voltage and the first current loaded voltage; determines the charging parameters corresponding to the target battery type based on the target battery type, and charges the battery using the charging parameters.

[0075] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0076] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0077] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0078] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned battery charging method, and can solve the technical problem that the charger cannot accurately identify the type of connected battery. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the battery charging method provided in the above-mentioned embodiment, and will not be described in detail here.

[0079] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the battery charging method as described above are implemented.

[0080] The computer program product provided by the present application can solve the technical problem that the charger cannot accurately identify the type of the connected battery. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the battery charging method provided by the above embodiment, which will not be repeated here.

[0081] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A battery charging method, characterized in that: For a charger, the battery charging method comprises: When a connection with a battery is detected, collecting the initial voltage of the battery and performing initial charging on the battery; Collecting a first current current and a first current load voltage of the battery; determining a target battery type of the battery based on the first current current, the initial voltage, and the first current loaded voltage; Based on the target battery type, a charging parameter corresponding to the target battery type is determined, and the battery is charged using the charging parameter.

2. The battery charging method according to claim 1, characterized in that: The step of determining the target battery type of the battery based on the first current current, the initial voltage, and the first current loaded voltage comprises: determining a voltage difference between the initial voltage and the first current loaded voltage; determining a first internal resistance of the battery based on the voltage difference and the first current; A mapping relationship is searched to determine a target battery type corresponding to the first internal resistance; wherein the mapping relationship includes a mapping relationship between the first internal resistance and the battery type.

3. The battery charging method according to claim 1, wherein: The step of initially charging the battery comprises: The battery is charged with a constant current.

4. The battery charging method according to claim 1, wherein: After determining the charging parameters corresponding to the target battery type based on the target battery type and charging the battery using the charging parameters, the method further includes: When it is detected that the battery enters the next charging stage, collecting a second current loaded voltage and a second current current of the battery; Stop charging the battery; collecting a third voltage of the battery; Determine a second internal resistance of the battery using the third voltage, the second current loaded voltage, and the second current; Searching for a mapping relationship to determine a new battery type corresponding to the second internal resistance; Determining whether the new battery type is consistent with the target battery type; If the new battery type is inconsistent with the target battery type, stopping charging the battery; If the new battery type is consistent with the target battery type, the battery is charged in the next charging stage.

5. The battery charging method according to claim 4, characterized in that: The step of collecting the third voltage of the battery comprises: After charging is stopped for a preset period of time, a third voltage of the battery is collected.

6. The battery charging method according to claim 1, wherein: The step of determining a charging parameter corresponding to the target battery type based on the target battery type, and charging the battery using the charging parameter comprises: determining whether there are charging parameters corresponding to the target battery type; If there are charging parameters corresponding to the target battery type, charging the battery using the charging parameters; If there is no charging parameter corresponding to the target battery type, charging of the battery is stopped.

7. A battery charging device, characterized in that: The battery charging device comprises: A first acquisition module, used to acquire the initial voltage of the battery and perform initial charging on the battery when detecting connection with the battery; A second acquisition module, used for acquiring a first current current and a first current load voltage of the battery; A first determination module, configured to determine a target battery type of the battery based on the first current current, the initial voltage, and the first current loaded voltage; The second determination module is used to determine the charging parameters corresponding to the target battery type based on the target battery type, and charge the battery using the charging parameters.

8. A charger, characterized in that: The charger comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the battery charging method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the battery charging method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the battery charging method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Battery charging control method and system of mass fitting charging curve

    CN107979119A

  • Method for charger identifying battery variety

    CN1933277A

  • Secondary battery charging method and apparatus

    US20050057217A1

Cited By

  • Rechargeable battery type detection method and device, terminal equipment and computer program product

    CN120722219A