Automatic charging aging control method and device of HNB appliance and storage medium

By monitoring the battery voltage in real time and automatically switching the charging and aging modes according to preset conditions, the complex operation problems in the aging test of HNB appliances are solved, and the testing efficiency and equipment stability are improved.

CN120294440APending Publication Date: 2025-07-11SHENZHEN GEEKVAPE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510267207.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

During aging testing, existing HNB appliances are complicated to operate due to charging priority design, which reduces testing efficiency and flexibility, and requires manual plugging and unplugging of the charging cable.

Method used

By monitoring the battery voltage in real time, dynamically adjusting the charging and aging modes according to preset aging conditions, automatic switching is achieved, and manual plug-in and unplug operations are avoided.

Benefits of technology

It improves testing efficiency and flexibility, ensures that the equipment works within a reasonable power range, reduces manual operation costs, and improves the intelligent management level and stability of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120294440A_ABST
    Figure CN120294440A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of HNB appliance testing, and discloses an automatic charging aging control method, device and equipment of an HNB appliance and a storage medium. Acquiring a battery voltage, and judging whether to execute switching from a charging process to an aging process according to the battery voltage and a first aging condition; under the condition that the heating module executes the aging process, the battery voltage is obtained, and whether switching from the aging process to the charging process is executed or not is judged according to the battery voltage and a second aging condition; according to the technical scheme, the aging test process is optimized, the manual operation cost is reduced, and the stability and reliability of the HNB appliance are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of HNB appliance testing, and particularly to an automatic charging and aging control method, device and storage medium for an HNB appliance. Background Art

[0002] In the design of existing HNB (Heat Not Burn) appliances, a heating limit condition is usually set, that is, whether the HNB appliance is connected to a USB data cable. According to the charging priority principle, when a USB data cable is externally connected to the HNB appliance during the heating process, the heating state will be automatically terminated and switched to the charging mode. This design mainly considers the priority of charging and heating to ensure that the HNB appliance can continuously charge during the heating process. However, in practical applications, especially when simulating the aging working state of a new heating tube, this design causes inconvenience in operation. During the aging test, the charging cable must be manually plugged and unplugged, which not only increases the complexity of the operation but also greatly reduces the test efficiency and flexibility. Summary of the Invention

[0003] Embodiments of the present invention provide an automatic charging and aging control method, device, equipment and storage medium to solve the above technical problems.

[0004] A first aspect of an embodiment of the present invention provides an automatic charging and aging control method for an HNB appliance, where the HNB appliance includes a battery and a heating module, and the automatic charging and aging control method includes:

[0005] When the battery executes the charging process, obtain the battery voltage and determine whether to execute a switch from the charging process to the aging process according to the battery voltage and a first aging condition;

[0006] When the heating module executes the aging process, obtain the battery voltage and determine whether to execute a switch from the aging process to the charging process according to the battery voltage and a second aging condition.

[0007] Optionally, the obtaining of the battery voltage includes:

[0008] Periodically call a voltage calculation function to obtain the battery voltage.

[0009] Optionally, the determining whether to execute a switch from the charging process to the aging process according to the battery voltage and the first aging condition includes:

[0010] Compare the battery voltage with a first preset voltage;

[0011] When the battery voltage is greater than the first preset voltage, execute a switch from the charging process to the aging process;

[0012] When the battery voltage is less than the first preset voltage, continue to execute the charging process.

[0013] Optionally, the execution of switching from the charging process to the aging process includes:

[0014] Obtain aging parameters, and control the heating module to heat according to the aging parameters to execute the aging process, where the aging parameters include the number of aging times and the aging time interval.

[0015] Optionally, when the heating module executes the aging process, obtaining the battery voltage includes:

[0016] After the heating module completes one aging process, determine whether the remaining number of aging times is 0;

[0017] When the remaining number of aging times is 0, switch to the charging process;

[0018] When the remaining number of aging times is not 0, call the voltage calculation function to obtain the battery voltage.

[0019] Optionally, the determination of whether to execute the switching from the aging process to the charging process according to the battery voltage and the second aging condition includes:

[0020] When the battery voltage is less than the second preset voltage, execute the switching from the aging process to the charging process;

[0021] When the battery voltage is greater than the second preset voltage, do not execute the switching from the aging process to the charging process.

[0022] Optionally, after the execution of switching from the aging process to the charging process, it further includes:

[0023] Receive aging parameters and output a response message;

[0024] When switching to the aging process, obtain new aging parameters and execute the aging process.

[0025] The second aspect of the embodiments of the present invention provides an automatic charging and aging control device for an HNB appliance. The HNB appliance includes a battery and a heating module. The automatic charging and aging control device includes:

[0026] A charging and aging switching module, configured to obtain the battery voltage when the battery executes the charging process, and determine whether to execute the switching from the charging process to the aging process according to the battery voltage and the first aging condition;

[0027] An aging charging switching module is configured to obtain a battery voltage and determine whether to switch from the aging process to the charging process according to the battery voltage and a second aging condition when the heating module executes the aging process.

[0028] In a third aspect of the embodiments of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method described in the first aspect is implemented.

[0029] In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0030] The technical effects of the embodiments of the present invention are as follows: Through the automatic charging and aging control method, the intelligent switching between the charging and aging processes of the HNB appliance is realized, avoiding the cumbersome operation of manually plugging and unplugging the charging cable, and improving the test efficiency and flexibility; By real-time monitoring of the battery voltage and dynamically adjusting the charging and aging modes according to the preset aging conditions, it is ensured that the device operates within a reasonable battery power range, avoiding the impact of over-discharge or charging interruption on the test. This technical solution optimizes the aging test process, improves the intelligent management level of the device, ensures the stability and reliability of the HNB appliance, and reduces the manual operation cost at the same time. Description of the Drawings

[0031] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0032] Figure 1 It is a flowchart of an automatic charging and aging control method for an HNB appliance provided in Embodiment 1 of the present invention;

[0033] Figure 2 It is a circuit diagram of a battery charging circuit in an HNB appliance provided in Embodiment 1 of the present invention;

[0034] Figure 3 It is a circuit diagram of a charging insertion detection circuit in an HNB appliance provided in Embodiment 1 of the present invention;

[0035] Figure 4 It is a specific flowchart of step S10 in the automatic charging and aging control method for an HNB appliance provided in Embodiment 1 of the present invention;

[0036] Figure 5 It is a specific flowchart of step S20 in an automatic charging and aging control method for an HNB appliance provided in the first embodiment of the present invention;

[0037] Figure 6 It is another flowchart of step S20 in an automatic charging and aging control method for an HNB appliance provided in the first embodiment of the present invention;

[0038] Figure 7 It is another flowchart of an automatic charging and aging control method for an HNB appliance provided in the first embodiment of the present invention;

[0039] Figure 8 It is a specific flowchart of an automatic charging and aging control method for an HNB appliance provided in the first embodiment of the present invention;

[0040] Figure 9 It is a schematic structural diagram of an automatic charging and aging control device for an HNB appliance provided in the second embodiment of the present invention;

[0041] Figure 10 It is a schematic structural diagram of an electronic device in an embodiment of the present invention. Detailed implementation manners

[0042] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0043] It should be understood that the present invention can be implemented in different forms and should not be construed as limited to the embodiments presented herein. On the contrary, providing these embodiments will make the disclosure thorough and complete, and will fully convey the scope of the present invention to those skilled in the art. In the drawings, for clarity, the dimensions and relative dimensions of layers and regions may be exaggerated. Identical reference numerals throughout the same drawings indicate identical elements.

[0044] It should be understood that when an element or layer is referred to as being "on", "adjacent to", "connected to", or "coupled to" another element or layer, it can be directly on, adjacent to, connected or coupled to the other element or layer, or there can be intervening elements or layers. In contrast, when an element is referred to as being "directly on", "directly adjacent to", "directly connected to", or "directly coupled to" another element or layer, there are no intervening elements or layers. It should be understood that although the terms first, second, third, etc. may be used to describe various elements, components, regions, layers, and / or parts, these elements, components, regions, layers, and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer, or part from another element, component, region, layer, or part. Thus, without departing from the teachings of the present invention, the first element, component, region, layer, or part discussed below can be denoted as the second element, component, region, layer, or part.

[0045] The purpose of the terms used herein is only to describe specific embodiments and is not a limitation of the present invention. As used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprising" and / or "including", when used in this specification, specify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups. As used herein, the term "and / or" includes any and all combinations of the associated listed items.

[0046] To thoroughly understand the present invention, detailed structures and steps will be presented in the following description to illustrate the technical solutions proposed by the present invention. The preferred embodiments of the present invention are described in detail below. However, in addition to these detailed descriptions, the present invention can also have other embodiments.

[0047] Embodiment 1

[0048] The first embodiment provides an automatic charging and aging control method for an HNB appliance. As Figure 1 shown, the HNB appliance includes a battery and a heating module. The automatic charging and aging control method includes:

[0049] Step S10. When the battery is performing a charging process, obtain the battery voltage and determine whether to switch from the charging process to the aging process based on the battery voltage and the first aging condition.

[0050] Step S30. When the heating module is performing the aging process, obtain the battery voltage and determine whether to switch from the aging process to the charging process based on the battery voltage and the second aging condition.

[0051] Among them, this embodiment involves two main processes: the charging process and the aging process. In the HNB appliance, the charging process and the aging process are respectively related to the working processes of battery charging and the heating module. The charging process refers to the working process of charging the battery in the HNB appliance by an external power supply. The battery is one of the core components of the HNB appliance and can provide power for the heating module. The HNB appliance is connected to an external power supply through a USB or other charging interface to start the charging process; the battery management system (BMS) inside the HNB appliance monitors the charging process to ensure that the battery is charged with a safe current and voltage, avoiding overcharging or over-rapid charging; the BMS will adjust according to the voltage and temperature of the battery to ensure the normal operation of the battery. The aging process refers to the HNB appliance simulating the operating state of the device during long-term use, heating through the heating module, and testing the performance and stability of the battery and the heating module under long-term operation. The aging process generally includes the following steps: when the aging process starts, the HNB appliance starts the heating module and heats the HNB appliance to the set working temperature; the heating module is used to simulate the actual use process of the device, that is, heating the heating element to release smoke or vapor; the HNB appliance will maintain a constant heating state, and this process usually takes a certain amount of time to simulate the thermal cycle and load during the long-term use of the device. During the aging process, the battery will consume power, and as the heating module continues to work, the battery power gradually decreases; when the device aging time reaches the preset threshold or the battery power drops to a low level, the aging process ends; at this time, the device will stop heating and the aging test ends.

[0052] Among them, in step S10, when the battery executes the charging process, it means that the battery of the HNB appliance is being charged by an external power supply to keep its power sufficient. Obtaining the battery voltage refers to real-time monitoring of the voltage value of the battery, which is usually completed by the Battery Management System (BMS). The battery voltage reflects the current state of the battery, including its power level. Judging whether to switch to the aging process based on the battery voltage and the first aging condition means comparing the current battery voltage with the preset first aging condition. For example, the first aging condition is whether the battery voltage reaches a certain range or a specific voltage level. If the battery voltage meets these conditions, for example, the battery voltage has reached a certain threshold or the charging state is no longer required, it will be decided to stop the charging process and instead start the aging process. In step S30, when the heating module executes the aging process, it means that the heating module of the HNB appliance is undergoing an aging test. The aging process usually refers to operating the device under specific conditions to simulate its state after long-term use, with the aim of evaluating the performance and stability of the device. At this time, the device is in the working state of heating and aging. Similarly, the battery voltage will be monitored in real time to judge the current battery state. At this time, the battery voltage reflects the discharge situation of the battery during the aging process. Judging whether to switch to the charging process based on the battery voltage and the second aging condition means that during the aging process, according to the battery voltage and the second aging condition, for example, the battery voltage is lower than a certain threshold, to judge whether to end the aging process and switch back to the charging process. If the battery voltage drops to a certain voltage value, it means that the battery needs to be charged, thus ending the aging process and starting to charge to ensure that the battery is not damaged due to too low a power level.

[0053] As Figure 2 and Figure 3 shown, it is the circuit diagram of the battery charging circuit and the charging insertion detection circuit. When the base of the triode Q8 in the charging insertion detection circuit receives the external power supply signal VBUS_OUT, the triode Q8 is grounded and conducts, being pulled low, and the signal P36IN VBUS becomes a low-level signal, triggering an external interrupt. When the pin 2 of the control chip U3 in the battery charging circuit is pulled high by the signal P17OUT EN CHARGE, the circuit conducts and starts charging. When the pin 1 of the chip U3 is pulled low by the signal P30 IN CHARGING, that is, when the battery voltage is full, it enters trickle charging.

[0054] The technical effect of this embodiment is as follows: Through the automatic charging and aging control method, the intelligent switching between the charging and aging processes of the HNB appliance is realized, avoiding the cumbersome operation of manually plugging and unplugging the charging cable, and improving the test efficiency and flexibility; By real-time monitoring of the battery voltage and dynamically adjusting the charging and aging modes according to the preset aging conditions, it is ensured that the device operates within a reasonable battery power range, avoiding the impact of over-discharge or charging interruption on the test. This technical solution optimizes the aging test process, improves the intelligent management level of the device, ensures the stability and reliability of the HNB appliance, and at the same time reduces the manual operation cost.

[0055] As an implementation manner, obtaining the battery voltage includes: periodically calling a voltage calculation function to obtain the battery voltage.

[0056] Among them, the process of obtaining the battery voltage can be achieved by periodically calling a voltage calculation function, which is responsible for calculating and returning the current voltage value of the battery. Periodically calling the voltage calculation function means that a specific function will be repeatedly executed at a certain time interval to periodically obtain the battery voltage value. Usually, this operation is automatic, and the frequency can be set according to requirements, such as calling once per second, per minute, or per hour. Preferably, it is best to call the voltage calculation function once every 30 seconds, because this interval will neither increase too much computing workload on the controller nor can it timely switch between the charging mode and the aging mode, thus ensuring work efficiency. The task of the function is to real-time monitor and return the battery voltage through the battery management system or hardware module, which is usually achieved by measuring the voltage port or internal circuit of the battery.

[0057] For example: Suppose there is an HNB appliance whose charging and aging processes need to be dynamically adjusted according to the battery voltage. A voltage calculation function getBatteryVoltage() can be defined to obtain the current battery voltage, and a periodic task is set to call this voltage calculation function every 30 seconds to obtain the battery voltage. In this example, the getBatteryVoltage() function is used to read the current voltage value of the battery from the hardware interface.

[0058] The technical effect of this embodiment is as follows: By periodically calling the voltage calculation function to obtain the battery voltage, the real-time monitoring of the battery state of the HNB appliance is realized, effectively ensuring that the battery voltage remains within a safe range, which is beneficial to automatically switching between the charging process and the aging process, avoiding the operation of manually plugging and unplugging the charging cable, and improving the test efficiency and device stability.

[0059] As an implementation manner, as Figure 4 shown, in step S10, determining whether to switch from the charging process to the aging process according to the battery voltage and the first aging condition includes:

[0060] Step S101. Compare the battery voltage with a first preset voltage.

[0061] Step S102. When the battery voltage is greater than the first preset voltage, perform the switch from the charging process to the aging process.

[0062] Step S103. When the battery voltage is less than the first preset voltage, continue to perform the charging process.

[0063] Among them, in step S101, the battery voltage is compared with the first preset voltage. In step S102, the fact that the battery voltage is greater than the first preset voltage means that the voltage of the HNB appliance battery has been charged to a sufficiently large value, exceeding a preset voltage threshold, which is usually the voltage within the normal operating range of the battery. For example, assuming that the maximum charging voltage of the device battery is 4.2V, the first preset voltage may be set to 4.0V. When the battery voltage reaches or exceeds 4.0V, it indicates that the battery is fully charged and can start power supply (such as the aging test). Therefore, the HNB appliance is ready to switch to the aging process. When the battery voltage exceeds the set threshold, the HNB appliance will automatically stop the charging process and start the aging process. The aging process includes starting the heating module and simulating the process of long-term use of the device to test the stability of the device under continuous high temperature. For example, when the battery voltage of the device is greater than 4.0V, it is determined that the charging is completed, and the charging process will be interrupted and switched to the aging test process.

[0064] Among them, in step S102, the fact that the battery voltage is less than the first preset voltage means that the battery power is insufficient and the battery voltage has not reached the voltage level required for the end of the charging process, indicating that the charging process is not completed. For example, if the battery voltage is still lower than 4.0V, it means that the battery charging has not reached the preset sufficient power state. Not performing the switch from the charging process to the aging process means that it will remain in the charging state and continue to charge the battery without switching to the aging process. Only after the battery voltage reaches the preset threshold will the process switch be performed. This is to avoid directly entering the aging process when the battery power is insufficient, preventing over-discharge of the battery or too low battery voltage during the aging process from affecting the device performance. For example, if the battery voltage is lower than 4.0V, the system will continue to charge and will not switch to the aging process until the battery is fully charged and the voltage reaches or exceeds 4.0V.

[0065] The technical effect of this embodiment is as follows: By dynamically switching the charging process and the aging process according to the battery voltage, the usage efficiency and test accuracy of the HNB appliance are improved. When the battery voltage reaches the preset threshold, the system automatically switches to the aging process, avoiding manual intervention and effectively simulating the long-term use process of the device. If the battery voltage is lower than the preset value, charging will continue to ensure sufficient battery power before performing the aging test. This technology effectively avoids the impact of insufficient battery power on the aging process, improves the stability of the device and the intelligent level of battery management, reduces the operation complexity, and optimizes the performance test process of the device.

[0066] As an embodiment, when performing the switch from the charging process to the aging process in step S101, it includes:

[0067] Obtain the aging parameters and control the heating module to heat according to the aging parameters to perform the aging process.

[0068] Among them, in this embodiment, the aging process of the HNB appliance is executed by obtaining and using the aging parameters to control the heating module. Obtaining the aging parameters means that the control module obtains the relevant parameters for the aging test from the pre-settings. The aging parameters refer to the specific parameters used to control the operation of the heating module. For example, the number of aging times and the aging time interval are two key parameters, and the aging test is performed according to these two parameters. These parameters can be set in the device's settings interface or configured through the control system. The number of aging times refers to how many heating and cooling cycles the HNB appliance needs to complete to simulate the long-term use of the HNB appliance. The aging time interval refers to the time interval between each heating, usually the gap between the heating process and the cooling process, which is used to simulate the performance of the HNB appliance in different working states. Controlling the heating module to heat according to the aging parameters means that after obtaining the aging parameters, the working mode of the heating module is controlled according to these parameters. For example, the number of heating cycles to be performed is determined according to the set number of aging times to ensure the simulation of multiple long-term working states; according to the set aging time interval, the start and stop frequency of the heating module is controlled. For example, the heating module is started every certain time to keep the heating element at the predetermined working temperature and continuously simulate the use state of the device. The heating module will start working according to the predetermined time and number of times. After each heating is completed, the device will stop heating and wait for the set time interval before starting the next heating cycle. Performing the aging process means the repeated cycle of the entire heating and waiting process, aiming to simulate the performance of the HNB appliance after long-term use. The heating module repeatedly heats and waits according to the set aging parameters, so that the device experiences a series of working cycles to detect its long-term stability and performance changes. For example, if 10 aging times are set, each heating time is 30 minutes, and each heating interval is 10 minutes, 10 heating operations and 10 waiting operations will be automatically started to complete the entire aging test.

[0069] The technical effect of this embodiment is as follows: By obtaining the aging parameters and controlling the heating module to perform heating according to these parameters, the aging test process of the HNB appliance is automatically completed, which can accurately simulate the long-term use state of the device, improving the accuracy and efficiency of the test. By intelligently regulating the heating cycle and interval, human intervention is effectively avoided, ensuring the stability and reliability of the device.

[0070] As an embodiment, as Figure 5 shown, when the heating module executes the aging process in step S20, obtaining the battery voltage includes:

[0071] Step S201. After the heating module completes one aging process, determine whether the remaining number of aging times is 0.

[0072] Step S202. When the remaining number of aging times is 0, switch to the charging process.

[0073] Step S203. When the remaining number of aging times is not 0, call the voltage calculation function to obtain the battery voltage.

[0074] Among them, in step S201, the heating module completing one aging process means that the heating module has completed a predetermined aging operation. For example, one heating and cooling cycle. One round of aging operation has ended, and then it will be checked whether more aging operations need to be continued. Determining whether the remaining number of aging times is 0 means that after each aging is completed, the remaining number of aging times will be checked, that is, how many more aging cycles need to be executed.

[0075] Among them, in step S202, if the remaining number of aging times is 0, it means that the aging test has been completed and no more aging steps need to be continued. For example, if the set number of aging times is 5 times, after one aging, the remaining number of aging times will be reduced by 1. If the remaining number is 0, it means that all the predetermined aging tests have been completed. Once the aging process ends, the current aging operation will be automatically stopped and switched to the charging process to start charging the battery. The charging process can be that the HNB appliance continues to receive the charging status of the charging port, or the battery is charged according to the requirements after the aging test is completed. For example, when the remaining number of aging times is 0, the device will start charging to ensure that the battery is in a charging state and ready for the next step of work or shutdown operation.

[0076] Among them, in step S203, when the remaining aging times are not zero, if step S401 determines that the remaining aging times are greater than zero, it indicates that the aging operation still needs to continue. At this time, the charging process will not be switched, but the aging process will continue. Invoking the voltage calculation function to obtain the battery voltage means that before continuing the aging operation, the voltage status of the battery needs to be checked. By invoking the voltage calculation function, the voltage value of the current battery will be obtained to ensure that the battery is within an appropriate voltage range during the aging process. For example, by calculating the battery voltage, it can be determined whether the battery is fully charged. If the battery voltage is too low, it needs to be charged first before continuing the aging operation. This step ensures that the battery is always in a suitable working state when the remaining aging times are not zero.

[0077] The technical effect of this embodiment is as follows: By intelligently controlling the process switching according to the remaining aging times, the aging test process of the HNB appliance is optimized; after each aging is completed, it is automatically determined whether to continue aging or switch to the charging process, avoiding manual intervention and improving the degree of automation and test efficiency of the operation. By monitoring the battery voltage in real time, it is ensured that the battery state during the aging process is always within an appropriate range, thereby improving the stability and safety of the device.

[0078] As an implementation, as Figure 6 shown, in step S20, determining whether to execute the switch from the aging process to the charging process according to the battery voltage and the second aging condition includes:

[0079] Step S301. When the battery voltage is less than the second preset voltage, execute the switch from the aging process to the charging process.

[0080] Step S302. When the battery voltage is greater than the second preset voltage, do not execute the switch from the aging process to the charging process.

[0081] Among them, in step S301, when the battery voltage is less than the second preset voltage, it means that the voltage status of the battery will be monitored. If the battery voltage is lower than the second preset voltage, that is, the battery power is insufficient, measures will be taken to avoid continuing the aging operation to prevent the battery from over-discharging or affecting the stability of the aging process. For example, assuming that the second preset voltage is 3.5V, when the battery voltage is lower than this value, it is regarded that the battery power is insufficient and the aging process cannot be continued. Executing the switch from the aging process to the charging process means that once the battery voltage is lower than the second preset voltage, the aging process will be automatically stopped and switched to the charging process to start charging the battery to restore its power and ensure that the device can continue to work. This switch is automatic, avoiding manual intervention and ensuring that the device can continue other tasks after the power is restored. For example, after the battery voltage is lower than the set threshold, it enters the charging mode to avoid consuming more power by continuing to heat.

[0082] Among them, in step S302, when the battery voltage is greater than the second preset voltage, it means to check whether the battery voltage is greater than the second preset voltage. If the battery is fully charged and the battery voltage is greater than the set value, it will not switch to the charging mode, but continue to execute the aging process to ensure the coherence and effect of the aging test. For example, if the battery voltage is still higher than 3.5V (the second preset voltage), it is considered that the battery has enough power to support the continuation of the aging operation. Not executing the switch from the aging process to the charging process means that when the battery voltage is sufficient, it will not be forced to switch to the charging process, but continue the aging test until other conditions are met, such as the number of aging cycles is completed or the battery voltage drops below the preset value.

[0083] The technical effect of this embodiment is as follows: By dynamically switching the aging process and the charging process according to the battery voltage, the aging test process of the HNB appliance is optimized; when the battery voltage is lower than the set threshold, it will automatically switch to the charging mode to ensure that the battery is charged in time and avoid over-discharging from affecting the device performance; when the battery voltage is sufficient, the system will continue to execute the aging operation to ensure the continuity and effectiveness of the test; this embodiment improves the intelligent management of the device, avoids manual intervention, ensures the stability of the battery and the accuracy of the aging process, and improves the reliability and service life of the device.

[0084] As an embodiment, as Figure 7 shown, the automatic charging and aging control method further includes:

[0085] Step 401. Receive aging parameters and output a response message.

[0086] Step 402. When switching to the aging process, obtain new aging parameters and execute the aging process.

[0087] Among them, in step S401, receiving the aging parameters means receiving the aging parameters from the user or other control modules. The aging parameters include but are not limited to voltage, time interval, etc., and these parameters define the specific details of the aging process. For example, the aging parameters may include the first aging voltage, the second aging voltage, and the aging time interval, which define the voltage range required for heating during the aging process and the time interval of the heating process. When the appliance receives the aging parameters, it will return a confirmation message to inform that the operation has been successfully executed, which can be achieved by returning a string message or other feedback methods to ensure that the system correctly processes after receiving the modification instruction. For example, the appliance will return the string CMDAGE to indicate that the modification is successful after receiving the command.

[0088] Among them, in step S402, it is triggered when the system is about to execute the aging process to ensure that the relevant aging parameters have been updated before starting the aging operation. Before switching to the aging process, the latest aging parameters need to be obtained, which are usually provided through external input. After obtaining the new parameters, appropriate voltages, time intervals, etc. will be set according to these parameters to ensure the accuracy of the aging process. For example, the heating conditions and duration of the heating module will be set according to the newly obtained first aging voltage, second aging voltage, and time interval. After obtaining the new parameters, the aging process will be executed according to these parameters. The heating module will heat within the set voltage range and perform the aging operation according to the set time interval and number of times.

[0089] The technical effect of this embodiment is that by introducing a dynamic aging parameter adjustment mechanism, the aging test process of the HNB appliance is optimized. It can receive and adjust parameters such as aging voltage and time interval in real time. After confirming the successful modification through interactive feedback, the corresponding aging operation will be automatically executed; manual intervention is avoided, the automation degree and flexibility of the aging process are improved, and the efficient execution of the aging task is ensured.

[0090] As Figure 8 shown, the following specifically describes this embodiment through a specific work process:

[0091] Step S11: Insert the USB cable to trigger an interrupt and charge the appliance.

[0092] Step S12: During the charging process, call the voltage calculation function every second to obtain the battery voltage V0.

[0093] Step S13: Determine whether the battery voltage V0 is greater than the first aging voltage V1. If not, execute step S14; if so, execute step S15.

[0094] Step S14: Each flag bit maintains its current state, continue charging, and return to execute step S12.

[0095] Step S15: Set the software charging flag bit to 0, set the hardware charging pin to 0, and set the full charge flag bit to 1.

[0096] Step S16: Start the aging function, passing in the aging times T and the time interval G between every two times.

[0097] Step S17: Start the heating module, add the aging task, and set the sleep flag bit to 1.

[0098] Step S18: After each aging ends, subtract 1 from the aging times T.

[0099] Step S19: Determine whether T - 1 is 0. If so, execute step S12; if not, execute step S20.

[0100] Step S20: Obtain the current battery voltage value V2.

[0101] Step S21: Determine whether the battery voltage V2 is greater than the second aging voltage V3. If yes, execute Step S22; if no, execute Step S23.

[0102] Step S22: Set the internal clock count to the time interval G, continue the heating task, and execute Step S18.

[0103] Step S23: Stop aging and perform charging.

[0104] Step S24: Set the software charging flag to 1, set the hardware charging pin to 1, and set the full charge flag to 0.

[0105] Step S25: Delete the aging task from the system, resume charging, and execute Step S1.

[0106] Furthermore, according to parameters such as the battery health state and the number of cycles, the battery aging process is divided into three stages: 1. Initial stage (new battery, battery health state SoH > 90%, number of cycles N < 100): Reduce the number of aging times to the first preset range of aging times to avoid over-aging affecting the lifespan. 2. Middle stage of use (stable period, SoH between 60% and 90%, number of cycles 100 < N < 500): Adopt a normal aging strategy and use the second preset range of aging times for aging to maintain the stable performance of the battery. 3. Decline stage (late stage of life, SoH < 60%, number of cycles N > 500): Reduce the aging intensity to extend the remaining lifespan and prevent safety risks. Based on the battery health state and the number of cycles, the battery aging process is divided into the initial stage, the middle stage of use, and the decline stage; the aging parameters are dynamically adjusted in different stages, including the number of aging times, the aging interval, the voltage threshold, and the temperature monitoring frequency, to optimize the battery lifespan. This solution adjusts the aging strategy based on the battery life cycle, and by adaptively adjusting the aging parameters (such as the number of aging times, the voltage threshold, and the temperature monitoring frequency), optimizes the aging process in different stages, improves the battery lifespan, enhances safety, and reduces the maintenance cost. This method is applicable to scenarios such as HNB devices, power tools, and intelligent electronic devices, can significantly improve the battery management level, and has strong innovation and practical value.

[0107] Embodiment 2

[0108] This Embodiment 2 provides an automatic charging and aging control device 100 for an HNB appliance. As Figure 9 shown, the HNB appliance includes a battery and a heating module. The automatic charging and aging control device includes:

[0109] The charging aging switching module 101 is configured to obtain the battery voltage when the battery is performing a charging process, and determine whether to switch from the charging process to an aging process according to the battery voltage and a first aging condition;

[0110] The aging charging switching module 102 is configured to obtain the battery voltage when the heating module is performing the aging process, and determine whether to switch from the aging process to the charging process according to the battery voltage and a second aging condition.

[0111] An embodiment of the present application further provides an electronic device, as Figure 10 shown. The electronic device 2 includes: at least one processor 20, a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20. When the processor 20 executes the computer program, the steps in any of the above method embodiments are implemented, or when the processor 20 executes the computer program, the functions of each module / unit in the above device embodiments are implemented.

[0112] Exemplarily, the computer program may be divided into one or more modules / units. One or more modules / units are stored in the memory and executed by the processor to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0113] Those skilled in the art can understand that Figure 10 merely examples of the electronic device do not constitute a limitation on the electronic device, and it may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the electronic device may further include input / output devices, network access devices, a bus, etc.

[0114] The above processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0115] The memory can be an internal storage unit of an electronic device, such as the hard disk or memory of the electronic device. The memory can also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory can also include both the internal storage unit of the electronic device and the external storage device.

[0116] An embodiment of this application also provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments can be implemented.

[0117] An embodiment of this application provides a computer program product, and when the computer program product runs on an electronic device, it enables the mobile terminal to implement the steps in the above method embodiments when executed.

[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above method embodiments of this application, a computer program can be used to instruct the relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps in the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0119] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0120] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of this application.

[0121] In the embodiments provided in this application, it should be understood that the disclosed devices / apparatuses and methods can be implemented in other ways. For example, the device / apparatus embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.

[0122] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] The above embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included in the protection scope of this application.

Claims

1. An automatic charging and aging control method for an HNB appliance, characterized in that, The HNB appliance includes a battery and a heating module, and the automatic charging and aging control method includes: When the battery executes a charging process, obtain the battery voltage and determine whether to switch from the charging process to an aging process according to the battery voltage and a first aging condition; When the heating module executes the aging process, obtain the battery voltage and determine whether to switch from the aging process to the charging process according to the battery voltage and a second aging condition.

2. The automatic charging and aging control method according to claim 1, wherein The obtaining of the battery voltage includes: Periodically call a voltage calculation function to obtain the battery voltage.

3. The automatic charging and aging control method according to claim 2, characterized in that, The determining whether to switch from the charging process to the aging process according to the battery voltage and the first aging condition includes: Compare the battery voltage with a first preset voltage; When the battery voltage is greater than the first preset voltage, execute the switch from the charging process to the aging process; When the battery voltage is less than the first preset voltage, continue to execute the charging process.

4. The automatic charging and aging control method according to claim 3, wherein The executing of the switch from the charging process to the aging process includes: Obtain aging parameters, and control the heating module to perform heating to execute the aging process according to the aging parameters, where the aging parameters include the number of aging times and the aging time interval.

5. The automatic charging and aging control method according to claim 4, characterized in that, The obtaining of the battery voltage when the heating module executes the aging process includes: After the heating module completes one aging process, determine whether the remaining number of aging times is 0; When the remaining number of aging times is 0, switch to the charging process; When the remaining number of aging times is not 0, call the voltage calculation function to obtain the battery voltage.

6. The automatic charging and aging control method according to claim 4, wherein, The determining whether to switch from the aging process to the charging process according to the battery voltage and the second aging condition includes: When the battery voltage is less than a second preset voltage, execute the switch from the aging process to the charging process; When the battery voltage is greater than the second preset voltage, do not execute the switch from the aging process to the charging process.

7. The automatic charging and aging control method according to claim 6, wherein, The automatic charging and aging control method further includes: Receive aging parameters and output a response message; When switching to the aging process, obtain new aging parameters and execute the aging process.

8. An automatic charging and aging control device for an HNB appliance, characterized in that, The HNB appliance includes a battery and a heating module, and the automatic charging and aging control device includes: A charging and aging switching module, configured to obtain the battery voltage and determine whether to switch from the charging process to the aging process according to the battery voltage and a first aging condition when the battery executes the charging process; An aging and charging switching module, configured to obtain the battery voltage and determine whether to switch from the aging process to the charging process according to the battery voltage and a second aging condition when the heating module executes the aging process.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 7.