Discharge control method, system and equipment of electronic equipment and storage medium
By implementing a discharge control method in an electronic device, detecting the battery output voltage and performing self-discharge processing, the problem of the residual battery of an electronic device being not consumed is solved, the risk of short circuit during recycling is reduced, and a safer recycling treatment is achieved.
Patent Information
- Application Number
- CN202311554576.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2025-05-20
AI Technical Summary
After the electronic equipment is used, the battery power is not completely exhausted, and direct disassembly and recycling poses a short circuit safety risk, affecting the safety of recycling and processing.
Provide a discharge control method for electronic equipment. By detecting the battery output voltage, comparing with the preset voltage threshold, if the output voltage is lower than the threshold, shutting down the working circuit and turning on the self-discharge circuit for discharge operations, ensuring that the residual battery power is consumed as much as possible.
It realizes automatic discharge operation of electronic equipment batteries after use, reduces the risk of short circuit during disassembly and recycling, and facilitates subsequent recycling and processing.
Smart Images

Figure CN120021132A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electronic devices, and in particular to a discharge control method, system, device and storage medium for electronic devices. Background Art
[0002] Currently, some miniaturized electronic devices on the market, such as electronic atomization devices, generally use disposable batteries for power supply. Disposable batteries are relatively small, light and portable, with low manufacturing costs and are relatively convenient to use, and are loved by the majority of users.
[0003] In related technologies, in order to improve resource utilization and as much as possible prevent environmental pollution problems, used electronic devices are generally recycled. However, it is found in actual applications that after the use of the electronic device, usually the battery power is not completely exhausted. If the electronic device is directly disassembled and recycled, there may be a certain short-circuit safety risk, and there are still potential safety hazards.
[0004] In summary, the problems existing in the related technologies need to be solved urgently. Summary of the Invention
[0005] The purpose of this application is to solve at least to a certain extent one of the technical problems existing in the related technologies.
[0006] To this end, an object of an embodiment of this application is to provide a discharge control method, system, device and storage medium for electronic devices.
[0007] In order to achieve the above technical purpose, the technical solutions adopted in the embodiments of this application include:
[0008] On the one hand, an embodiment of this application provides a discharge control method for an electronic device. The electronic device includes a battery, a working circuit and a self-discharge circuit. The method includes:
[0009] Detect the output voltage of the battery;
[0010] Compare the magnitude of the output voltage with a preset voltage threshold;
[0011] If the output voltage is greater than the voltage threshold, turn on the working circuit and turn off the self-discharge circuit;
[0012] If the output voltage is less than or equal to the voltage threshold, turn off the working circuit and turn on the self-discharge circuit to discharge the battery.
[0013] In addition, according to the discharge control method for an electronic device in the above embodiment of this application, it may also have the following additional technical features:
[0014] Further, in an embodiment of the present application, after the step of turning on the working circuit, the method further includes:
[0015] Detect the output current of the battery;
[0016] Compare the magnitude of the output current with a preset short - circuit protection current;
[0017] If the output current is greater than the short - circuit protection current, turn off the working circuit and maintain the off state of the self - discharge circuit.
[0018] Further, in an embodiment of the present application, the method further includes:
[0019] If the output current is less than or equal to the short - circuit protection current, compare the magnitude of the output current with a preset over - current protection current; wherein, the over - current protection current is less than the magnitude of the short - circuit protection current;
[0020] If the output current is greater than the over - current protection current, turn off the working circuit and maintain the off state of the self - discharge circuit, or, if the output current is less than or equal to the over - current protection current, return to execute the step of detecting the output voltage of the battery.
[0021] Further, in an embodiment of the present application, after the step of turning off the working circuit and maintaining the off state of the self - discharge circuit, the method further includes:
[0022] Record the cumulative duration starting from the time node when the working circuit is turned off;
[0023] Compare the magnitude of the cumulative duration with a preset time threshold;
[0024] If the cumulative duration is greater than the time threshold, restart the working circuit and return to execute the step of detecting the output voltage of the battery.
[0025] Further, in an embodiment of the present application, the electronic device includes a first switching transistor and a second switching transistor; the first switching transistor is used to control the operating state of the working circuit, and the second switching transistor is used to control the operating state of the self - discharge circuit;
[0026] Turning on the working circuit and turning off the self - discharge circuit includes:
[0027] Send a first signal to the first switching transistor to make the first switching transistor in a conducting state;
[0028] Send a second signal to the second switching transistor to make the second switching transistor in an off state.
[0029] Further, in an embodiment of the present application, when the output voltage is less than or equal to the voltage threshold, turning off the working circuit and turning on the self-discharge circuit to discharge the battery includes:
[0030] When the output voltage is less than or equal to the voltage threshold, determining the cumulative duration during which the output voltage is less than or equal to the voltage threshold in the current detection process;
[0031] When the cumulative duration reaches a preset time threshold, turning off the working circuit and turning on the self-discharge circuit to discharge the battery.
[0032] Further, in an embodiment of the present application, turning on the self-discharge circuit to discharge the battery includes:
[0033] Sending a third signal to the second switching tube to make the second switching tube in a conducting state;
[0034] Comparing the magnitudes of the output voltage and the turn-on voltage of the second switching tube;
[0035] When the output voltage is less than or equal to the turn-on voltage, ending the discharging operation of the battery.
[0036] On the other hand, an embodiment of the present application provides a discharge control system for an electronic device. The electronic device includes a battery, a working circuit, and a self-discharge circuit. The system includes:
[0037] A detection unit for detecting the output voltage of the battery;
[0038] A comparison unit for comparing the magnitudes of the output voltage and a preset voltage threshold;
[0039] A first processing unit for turning on the working circuit and turning off the self-discharge circuit when the output voltage is greater than the voltage threshold;
[0040] A second processing unit for turning off the working circuit and turning on the self-discharge circuit to discharge the battery when the output voltage is less than or equal to the voltage threshold.
[0041] On the other hand, an embodiment of the present application provides an electronic device, including:
[0042] At least one processor;
[0043] At least one memory for storing at least one program;
[0044] When the at least one program is executed by the at least one processor, the at least one processor is caused to implement the discharge control method of the electronic device described above.
[0045] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which a program executable by a processor is stored, and the program executable by the processor is used to implement the discharge control method of the electronic device described above when executed by the processor.
[0046] Advantages and beneficial effects of the present application will be partially given in the following description, partially become apparent from the following description, or be understood through the practice of the present application:
[0047] The discharge control method, system, device and storage medium of the electronic device disclosed in the embodiments of the present application, the electronic device includes a battery, a working circuit and a self-discharge circuit, and the method includes: detecting an output voltage of the battery; comparing a magnitude of the output voltage and a preset voltage threshold; if the output voltage is greater than the voltage threshold, turning on the working circuit and turning off the self-discharge circuit; if the output voltage is less than or equal to the voltage threshold, turning off the working circuit and turning on the self-discharge circuit to perform a discharge operation on the battery. This method can automatically perform a discharge operation on the battery of the electronic device after use, can consume as much as possible the residual power of the battery in the electronic device, reduce the risk of short circuit during disassembly and recycling, and facilitate subsequent recycling and processing of the electronic device. Description of the Drawings
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following introduces the drawings of the related technical solutions in the embodiments of the present application or the prior art. It should be understood that the drawings introduced below are only for clearly expressing some embodiments of the technical solutions in the present invention for the convenience of those skilled in the art. Without creative efforts, other drawings can also be obtained based on these drawings.
[0049] Figure 1 It is a schematic flowchart of a discharge control method of an electronic device provided in an embodiment of the present application;
[0050] Figure 2 It is a schematic diagram of a circuit structure inside an electronic device provided in an embodiment of the present application;
[0051] Figure 3 It is a schematic flowchart of a specific implementation process of the discharge control method of the electronic device provided in an embodiment of the present application;
[0052] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Detailed Embodiments
[0053] The present application is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0054] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0056] Currently, some miniaturized electronic devices on the market, such as electronic atomizers, are generally powered by disposable batteries. Disposable batteries are relatively small and light, with low manufacturing costs and are more convenient to use, and are loved by the majority of users.
[0057] In the related technology, in order to improve resource utilization and prevent environmental pollution as much as possible, used electronic devices are generally recycled. However, in actual applications, it is found that after the use of electronic devices, the battery power is usually not completely exhausted. If the electronic devices are directly disassembled and recycled, there may be a certain short-circuit safety risk and there are still safety hazards.
[0058] In view of this, an embodiment of the present application provides a discharge control method for an electronic device, which can automatically discharge the battery of the electronic device after use, consume the residual power of the battery in the electronic device as much as possible, reduce the risk of short circuit during disassembly and recycling, and facilitate the subsequent recycling of the electronic device.
[0059] The discharge control method of the electronic device provided in the embodiment of the present application can be applied in the electronic device, and the corresponding program is executed by the relevant processor in the electronic device to realize the automatic discharge operation. Specifically, the electronic device in the embodiment of the present application includes a battery, a working circuit and a self-discharge circuit. The battery can be connected to the working circuit and the self-discharge circuit through a relevant switch. When working normally, the working circuit is turned on and the self-discharge circuit is turned off by controlling the switch, and the battery supplies power to the working circuit normally to realize the relevant functions of the electronic device; when the battery of the electronic device reaches the expected service life, the discharge operation is performed, at this time, the working circuit will be turned off by controlling the switch, and the self-discharge circuit will be turned on.
[0060] Specifically, referring to Figure 1 , Figure 1 which is a schematic flowchart of the discharge control method for the electronic device provided in the embodiments of the present application. The discharge control method for the electronic device includes, but is not limited to:
[0061] Step 110, detecting the output voltage of the battery;
[0062] In this step, for the electronic device, it can determine whether the battery has reached the expected service life by detecting its output voltage. After the battery has been used for a period of time, its electrochemical reaction gradually weakens, resulting in a decrease in the output voltage of the battery. Generally, after the output voltage drops to a certain level, the electronic device will not be able to maintain its normal working state, and at this time, the electronic device will be in a state to be recycled. Therefore, in the embodiments of the present application, the output voltage of the battery of the electronic device can be detected to judge the remaining energy and the battery health status of the battery, and further estimate whether it can work normally.
[0063] Specifically, in the embodiments of the present application, the output voltage of the battery can be measured in the electronic device through a dedicated voltage detection circuit or a voltage measurement module. For the specific circuit structure, it can be implemented with reference to the related art according to the type of the electronic device and the actual requirements, and the present application does not limit this.
[0064] Step 120, comparing the magnitude of the output voltage and a preset voltage threshold;
[0065] In this step, the detected output voltage of the battery can be compared with the preset voltage threshold. As mentioned above, when the output voltage of the battery of the electronic device drops to a certain level, it will not be able to maintain its normal working state. Therefore, in the embodiments of the present application, a voltage threshold can be set, and this voltage threshold can be set according to the voltage required for the electronic device to maintain its normal working state, and generally, it can be slightly less than the voltage required for the electronic device to maintain its normal working state. In the embodiments of the present application, the specific magnitude of the voltage threshold is not limited, and it can be set according to the specific type and actual requirements of the electronic device.
[0066] It can be understood that in the embodiments of the present application, when comparing the magnitude of the output voltage and the voltage threshold, if the current output voltage of the battery is less than or equal to the voltage threshold, it can be considered that the electronic device has reached the expected service life. On the contrary, if the output voltage is greater than the voltage threshold, it can be considered that the electronic device can still continue to work normally.
[0067] Specifically, at the circuit level, in the embodiments of the present application, relevant components such as a voltage comparator can be set inside the electronic device to convert the output voltage of the battery into an electrical signal and compare it with a preset reference signal (the reference signal is set according to the voltage threshold). According to the comparison result, it can be determined whether the battery of the electronic device can work normally or has failed.
[0068] Step 130: If the output voltage is greater than the voltage threshold, turn on the working circuit and turn off the self-discharge circuit;
[0069] In this step, if the detected output voltage is greater than the voltage threshold, it can be considered that the electronic device can still continue to work normally. At this time, the working circuit can be normally turned on, and the self-discharge circuit can be turned off, and the electronic device can be used normally. Here, it should be noted that after turning on the working circuit, it is equivalent to connecting the loop between the battery and the working circuit. Whether the electronic device actually enters the working state can be set according to actual needs. For example, in some embodiments, other switches started by the user can also be set. When the user starts the switch, the electronic device enters the working state, and the present application does not limit this.
[0070] In this step, turning off the self-discharge circuit is equivalent to disconnecting the loop between the battery and the self-discharge circuit. In this way, the battery will not enter the discharge operation state and can work normally.
[0071] It can be understood that in the embodiments of the present application, the so-called turning on the working circuit and turning off the self-discharge circuit can be implemented according to the current state of the device in the actual electronic device. For example, when the working circuit of the electronic device has been turned on and the self-discharge circuit has been turned off, the actual meaning of this step is to maintain this state, and there is no need to actually perform the actions of "turning on" and "turning off".
[0072] Step 140: If the output voltage is less than or equal to the voltage threshold, turn off the working circuit and turn on the self-discharge circuit to discharge the battery.
[0073] In this step, if the current output voltage of the battery is less than or equal to the voltage threshold, it can be considered that the electronic device has reached its expected service life. At this time, the working circuit can be turned off, and the self-discharge circuit can be turned on to discharge the battery. Relatively speaking, after turning off the working circuit, it is equivalent to disconnecting the loop between the battery and the working circuit, and the electronic device will not be able to be used normally. Turning on the self-discharge circuit is equivalent to connecting the loop between the battery and the self-discharge circuit. In this way, the battery will enter the discharge operation state and release the remaining power inside it through the self-discharge circuit.
[0074] Specifically, in the embodiments of the present application, relevant resistors can be provided in the self-discharge circuit, or other electronic components and their combinations can be used to build it. The present application does not limit this.
[0075] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the circuit structure inside an electronic device provided in the embodiments of the present application. In this electronic device, a lithium battery protection chip SOT23-6 can be used to implement the above-mentioned discharge control method. Specifically, this chip can include 3 output pins, namely the fourth pin, the fifth pin, and the sixth pin. Among them, the fifth pin and the sixth pin can be connected into one output port, denoted as the first port VM1, and the fourth pin can be used as an independent output port, denoted as the second port VM2. The chip can select to connect or disconnect the first port VM1 and the second port VM2 through relevant switching tubes, so as to connect or disconnect the battery, the working circuit, and the self-discharge circuit of the electronic device. Of course, it can be understood that Figure 2 is only used to exemplarily illustrate the partial circuit principle of the electronic device in the embodiments of the present application, and does not mean to limit its specific circuit structure and chip model.
[0076] It can be understood that the embodiments of the present application provide a discharge control method for an electronic device. The electronic device includes a battery, a working circuit, and a self-discharge circuit. The method includes: detecting the output voltage of the battery; comparing the magnitude of the output voltage with a preset voltage threshold; if the output voltage is greater than the voltage threshold, turning on the working circuit and turning off the self-discharge circuit; if the output voltage is less than or equal to the voltage threshold, turning off the working circuit and turning on the self-discharge circuit to perform a discharge operation on the battery. This method can automatically perform a discharge operation on the battery of the electronic device after use, can consume as much as possible the residual power of the battery in the electronic device, reduce the risk of short circuit during disassembly and recycling, and facilitate the subsequent recycling process of the electronic device.
[0077] It should be noted that in the embodiments of the present application, the normal operation of the electronic device is judged by the magnitude of the output voltage, so as to perform a self-discharge operation on the electronic device after it is used up. In some embodiments, other logics can also be combined to comprehensively judge whether the electronic device can operate normally. When multiple logics (or any one of multiple logics) determine that the electronic device cannot operate normally, a self-discharge operation is performed on it. Exemplarily, taking an electronic atomization device as an example, the storage amount of e-liquid in the electronic atomization device can be detected, and whether the electronic atomization device can operate normally can be judged according to the storage amount of e-liquid. When the storage amount of e-liquid is exhausted, a self-discharge operation can also be performed on it. The specific judgment logic here can be set according to the actual type and requirements of the electronic product. The present application does not limit this.
[0078] In some embodiments, after the step of turning on the working circuit, the method further includes:
[0079] Detecting the output current of the battery;
[0080] Comparing the magnitude of the output current with a preset short - circuit protection current;
[0081] If the output current is greater than the short - circuit protection current, turn off the working circuit and maintain the off state of the self - discharge circuit.
[0082] In the embodiments of the present application, within the electronic device, a short - circuit protection function may also be included. Specifically, in the embodiments of the present application, after the electronic device enters the working state, the output current of the battery can be detected, and then the output current is compared with a preset short - circuit protection current. If the output current is less than or equal to the short - circuit protection current, it can be considered that no short - circuit situation has occurred. Conversely, if the output current is greater than the short - circuit protection current, it can be considered that a short - circuit has occurred. At this time, to improve the safety of the electronic device, the working circuit can be turned off and the off state of the self - discharge circuit can be maintained, thereby reducing the damage caused by the short - circuit fault. In the embodiments of the present application, there is no limitation on the specific magnitude of the short - circuit protection current, and it can be flexibly set according to needs. Exemplarily, for example, it can be set to 40A.
[0083] In some embodiments, the method further includes:
[0084] If the output current is less than or equal to the short - circuit protection current, comparing the magnitude of the output current with a preset over - current protection current; wherein, the over - current protection current is less than the magnitude of the short - circuit protection current;
[0085] If the output current is greater than the over - current protection current, turn off the working circuit and maintain the off state of the self - discharge circuit, or, if the output current is less than or equal to the over - current protection current, return to execute the step of detecting the output voltage of the battery.
[0086] In an embodiment of the present application, similarly, within an electronic device, a function of overcurrent protection may also be included. Specifically, in an embodiment of the present application, after the electronic device enters the working state, the output current of the battery can be detected, and then the output current is compared with a preset overcurrent protection current. If the output current is less than or equal to the overcurrent protection current, it can be considered that no overcurrent situation has occurred, and the electronic device can operate normally. At this time, the foregoing step 110 can be returned to, and the output voltage of the battery can be detected again. On the contrary, if the output current is greater than the overcurrent protection current, it can be considered that an overcurrent situation has occurred. At this time, in order to improve the safety of the electronic device, the working circuit can also be turned off and the off state of the self-discharge circuit can be maintained, thereby reducing the damage caused by the overcurrent fault. In an embodiment of the present application, there is no limitation on the specific magnitude of the overcurrent protection current. Generally speaking, its magnitude is less than the magnitude of the short-circuit protection current, and it can be flexibly set according to needs. Exemplarily, for example, it can be set to 9A.
[0087] In some embodiments, after the step of turning off the working circuit and maintaining the off state of the self-discharge circuit, the method further includes:
[0088] Recording the cumulative duration starting from the time node when the working circuit is turned off;
[0089] Comparing the magnitude of the cumulative duration with a preset time threshold;
[0090] If the cumulative duration is greater than the time threshold, restart the working circuit and return to execute the step of detecting the output voltage of the battery.
[0091] In an embodiment of the present application, after a short-circuit or overcurrent fault occurs, the working circuit can be turned off first, and then the electronic device can be restarted after a certain time interval. Specifically, the cumulative duration can be recorded starting from the time node when the working circuit is turned off, and a time threshold for restarting is set. If the cumulative duration is greater than the time threshold, the working circuit can be restarted and returned to the foregoing step 110 to detect the output voltage of the battery again. After each restart, the cumulative duration can be cleared. In an embodiment of the present application, there is no limitation on the magnitude of the time threshold. Exemplarily, it can be set to 10 seconds.
[0092] In some embodiments, the electronic device includes a first switching transistor and a second switching transistor; the first switching transistor is used to control the operating state of the working circuit, and the second switching transistor is used to control the operating state of the self-discharge circuit;
[0093] The step of turning on the working circuit and turning off the self-discharge circuit includes:
[0094] Send a first signal to the first switching tube to turn on the first switching tube;
[0095] Send a second signal to the second switching tube to turn off the second switching tube.
[0096] In the embodiments of the present application, the control of the operating states of the working circuit and the self-discharging circuit can be achieved through switching tubes. Specifically, for example, an electronic device may include a first switching tube Q1 and a second switching tube Q2. Figure 2 Taking the illustrated embodiment as an example, the first switching tube Q1 can be used to control whether the first port VM1 is connected, and the second switching tube Q2 can be used to control whether the second port VM2 is connected. Here, the first switching tube and the second switching tube can be any one of a gate turn-off thyristor, a power transistor, a metal oxide semiconductor field effect transistor, and an insulated gate bipolar transistor. They can be the same or different, and the present application does not limit this.
[0097] For the working circuit, when it is necessary to turn on the working circuit, a signal, denoted as the first signal, can be sent to the first switching tube. The first signal can turn on the first switching tube. In this way, the first port VM1 will be connected; for the self-discharging circuit, when it is necessary to turn off the self-discharging circuit, a signal, denoted as the second signal, can be sent to the second switching tube. The second signal can turn off the second switching tube. In this way, the second port VM2 will be turned off. Exemplarily, the first signal here can be a high-level signal, and the second signal can be a low-level signal.
[0098] In some embodiments, the step of turning off the working circuit and turning on the self-discharging circuit to discharge the battery when the output voltage is less than or equal to the voltage threshold includes:
[0099] If the output voltage is less than or equal to the voltage threshold, determine the cumulative duration during which the output voltage is less than or equal to the voltage threshold in this detection process;
[0100] When the cumulative duration reaches a preset time threshold, turn off the working circuit and turn on the self-discharging circuit to discharge the battery.
[0101] In the embodiments of the present application, during the operation of the electronic device, its output voltage may fluctuate, and it is possible that the output voltage may briefly drop below the voltage threshold. For example, the output voltage may be below the voltage threshold for a period of several milliseconds, but this has no substantial impact on the operation of the electronic device and does not mean that the battery of the electronic device needs to perform self-discharge operation. Therefore, in the embodiments of the present application, in order to improve the reliability of the discharge operation of the electronic device, a preset time threshold can be set. The length of this time threshold can be flexibly set according to needs. For example, it can be 1 second or 3 seconds, etc. When it is found that the output voltage of the battery is less than or equal to the voltage threshold, the self-discharge circuit is not directly turned on to discharge the battery, but first the cumulative duration during which the output voltage is less than or equal to the voltage threshold during this detection process is determined.
[0102] Specifically, if it is found that the cumulative duration during which the output voltage is less than or equal to the voltage threshold during this detection process is less than the preset time threshold, for example, the cumulative duration is only a few milliseconds, that is, the output voltage of the battery is less than or equal to the voltage threshold within a period of several milliseconds and then greater than the voltage threshold, it indicates that it is very likely just a simple voltage fluctuation. At this time, the state of the electronic device can be unchanged, that is, if the electronic device has not been started, the output voltage of the battery is re-detected to determine whether it can be started normally or whether self-discharge operation is to be performed; if the electronic device is in the working state, it also continues to maintain the working state and re-detects the output voltage of the battery. On the contrary, if it is found that the cumulative duration during which the output voltage is less than or equal to the voltage threshold during this detection process reaches the preset time threshold, it can be determined that the output voltage of the electronic device is difficult to reach the voltage level required to maintain normal operation. At this time, the working circuit can be turned off and the self-discharge circuit can be turned on to discharge the battery.
[0103] In some embodiments, the turning on of the self-discharge circuit to perform a discharge operation on the battery includes:
[0104] Sending a third signal to the second switching tube to make the second switching tube in a conducting state;
[0105] Comparing the magnitudes of the output voltage and the turn-on voltage of the second switching tube;
[0106] If the output voltage is less than or equal to the turn-on voltage, end the discharge operation of the battery.
[0107] In the embodiment of the present application, when discharging the battery, if the switch tube is selected to control the self-discharge circuit. As the aforementioned second switch tube, a signal, denoted as the third signal, can be sent to the second switch tube, and the third signal can make the second switch tube in the conducting state. In this way, the second port VM2 will be connected. In the embodiment of the present application, since the second switch tube itself has the turn-on voltage required for conduction, therefore, the output voltage and the turn-on voltage of the second switch tube can be compared. If the output voltage is greater than the turn-on voltage, the discharging operation can continue. If the output voltage is less than or equal to the turn-on voltage, the discharging operation of the battery can be ended.
[0108] The following uses specific examples to illustrate the solution in the embodiment of the present application:
[0109] Refer to Figure 3 , Figure 3 is a schematic diagram of the specific implementation process of a discharge control method for an electronic device provided in the embodiment of the present application. In the embodiment of the present application, for the electronic device, the voltage threshold can be preset to 2.4V, the short-circuit protection current to 40A, the overcurrent protection current to 9A, and the turn-on voltage of the second switch tube to 1V. After the electronic device is powered on, it can automatically detect the output voltage Vbat of the battery. If the output voltage Vbat is greater than 2.4V, the first port VM1 can be connected through the first switch tube Q1 to turn on the working circuit, and the second port VM2 can be turned off through the second switch tube Q2, that is, the self-discharge circuit is turned off. If the output voltage Vbat is less than or equal to 2.4V, the first port VM1 can be turned off through the first switch tube Q1, that is, the working circuit is turned off, and the second port VM2 can be connected through the second switch tube Q2 to turn on the self-discharge circuit for discharging. During the discharging operation, if it is found that the output voltage Vbat is less than or equal to 1V, it can be considered that the discharging is completed, and the system of the electronic device can crash.
[0110] When the electronic device enters the working state, its output current can be detected. If it is greater than 40A, it indicates that a short-circuit fault has occurred. At this time, the first port VM1 can be turned off through the first switch tube Q1, that is, the working circuit is turned off, and the self-discharge circuit is kept turned off. If it is found that the output current is not greater than 40A, it can be further determined whether it is greater than 9A. If it is greater than 9A, it indicates that an overcurrent fault has occurred. At this time, the first port VM1 can also be turned off through the first switch tube Q1, that is, the working circuit is turned off, and the self-discharge circuit is kept turned off. When the first port VM1 is turned off, the cumulative timing information T0 can be started. If the timing T0 reaches 10 seconds, the first port VM1 can be reconnected through the first switch tube Q1 to turn on the working circuit, and the output voltage Vbat can be judged again.
[0111] In an embodiment of the present application, a discharge control system for an electronic device is further provided. The electronic device includes a battery, a working circuit, and a self-discharge circuit. The system includes:
[0112] A detection unit for detecting the output voltage of the battery;
[0113] A comparison unit for comparing the magnitude of the output voltage and a preset voltage threshold;
[0114] A first processing unit for, if the output voltage is greater than the voltage threshold, turning on the working circuit and turning off the self-discharge circuit;
[0115] A second processing unit for, if the output voltage is less than or equal to the voltage threshold, turning off the working circuit and turning on the self-discharge circuit to perform a discharging operation on the battery.
[0116] It can be understood that Figure 1 The content in the embodiment of the discharge control method of the electronic device shown is applicable to the embodiment of the discharge control system of this electronic device. The functions specifically implemented by the embodiment of the discharge control system of this electronic device are the same as Figure 1 Those shown in the embodiment of the discharge control method of the electronic device, and the beneficial effects achieved are the same as Figure 1 Those achieved in the embodiment of the discharge control method of the electronic device shown.
[0117] Referring to Figure 4 , an embodiment of the present application also discloses an electronic device, including:
[0118] At least one processor 310;
[0119] At least one memory 320 for storing at least one program;
[0120] When at least one program is executed by at least one processor 310, at least one processor 310 implements the embodiment of the discharge control method of the electronic device as Figure 1 Shown.
[0121] It can be understood that, as Figure 1 Shown in the embodiment of the discharge control method of the electronic device, the content is applicable to the embodiment of this electronic device. The functions specifically implemented by the embodiment of this electronic device are the same as those shown in the embodiment of the discharge control method of the electronic device as Figure 1 Shown, and the beneficial effects achieved are the same as those achieved in the embodiment of the discharge control method of the electronic device as Figure 1 Shown.
[0122] The embodiments of the present application also disclose a computer-readable storage medium, in which there is a program executable by a processor, and the program executable by the processor is used to implement as Figure 1 shown in the embodiment of the discharge control method of the electronic device.
[0123] It can be understood that the content in the embodiment of the discharge control method of the electronic device as Figure 1 shown is applicable to the embodiment of this computer-readable storage medium. The functions specifically implemented by the embodiment of this computer-readable storage medium are the same as those in the embodiment of the discharge control method of the electronic device as Figure 1 shown, and the beneficial effects achieved are also the same as those achieved by the embodiment of the discharge control method of the electronic device as Figure 1 shown.
[0124] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order mentioned in the operation diagrams. For example, depending on the functions / operations involved, two consecutive blocks shown may actually be executed substantially simultaneously, or the blocks can sometimes be executed in the reverse order. In addition, the embodiments presented and described in the flowcharts of the present application are provided by way of example for the purpose of providing a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated, where the order of various operations is changed and the sub-operations described as part of a larger operation are executed independently.
[0125] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and / or features may be integrated in a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It can also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present application. Rather, considering the attributes, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the ordinary skills of an engineer. Therefore, those skilled in the art can implement the present application as set forth in the claims without undue experimentation. It can also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the appended claims and their equivalents.
[0126] If a function 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, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0127] The logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch instructions from the instruction execution system, apparatus, or device and execute the instructions), or in combination with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in combination with an instruction execution system, apparatus, or device.
[0128] More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection part with one or more wirings (electronic device), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber device, and portable compact disc read-only memory (CDROM). Additionally, a computer-readable medium can even be paper or other suitable media on which a program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, then editing, interpreting, or processing it in other suitable ways as necessary, and then storing it in a computer memory.
[0129] It should be understood that various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
[0130] In the foregoing description of this specification, descriptions with reference to the terms "one embodiment / example", "another embodiment / example", or "certain embodiments / examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0131] Although the embodiments of the present application have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present application, and the scope of the present application is defined by the claims and their equivalents.
[0132] The above has specifically described the preferred embodiments of the present application, but the present application is not limited to the embodiments. Those skilled in the art can make various equivalent deformations or substitutions without departing from the spirit of the present application, and these equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.
[0133] In the description of this specification, descriptions with reference to the terms "one embodiment", "another embodiment", or "certain embodiments", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0134] Although the embodiments of the present application have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present application, and the scope of the present application is defined by the claims and their equivalents.
Claims
1. A discharge control method for an electronic device, characterized in that: The electronic device comprises a battery, a working circuit and a self-discharging circuit, and the method comprises: detecting an output voltage of the battery; Comparing the output voltage with a preset voltage threshold; If the output voltage is greater than the voltage threshold, turning on the working circuit and turning off the self-discharging circuit; If the output voltage is less than or equal to the voltage threshold, the working circuit is turned off and the self-discharge circuit is turned on to discharge the battery.
2. The discharge control method of an electronic device according to claim 1, characterized in that: After the step of starting the working circuit, the method further includes: Detecting the output current of the battery; Comparing the output current with a preset short-circuit protection current; If the output current is greater than the short-circuit protection current, the working circuit is turned off and the self-discharging circuit is kept in an off state.
3. The discharge control method of an electronic device according to claim 2, characterized in that: The method further comprises: If the output current is less than or equal to the short-circuit protection current, compare the output current with a preset overcurrent protection current; wherein the overcurrent protection current is less than the short-circuit protection current; If the output current is greater than the overcurrent protection current, the working circuit is turned off and the self-discharge circuit is kept in the off state; or, if the output current is less than or equal to the overcurrent protection current, the step of detecting the output voltage of the battery is returned to be executed.
4. A discharge control method for electronic equipment according to claim 2 or 3, characterized in that: After the step of shutting down the working circuit and maintaining the shut-down state of the self-discharging circuit, the method further includes: Recording the accumulated duration from the time point when the working circuit is turned off; Comparing the accumulated duration with a preset time threshold; If the accumulated time is greater than the time threshold, the working circuit is restarted and the process returns to the step of detecting the output voltage of the battery.
5. The discharge control method of an electronic device according to claim 1, characterized in that: The electronic device comprises a first switch tube and a second switch tube; the first switch tube is used to control the working state of the working circuit, and the second switch tube is used to control the working state of the self-discharging circuit; The step of turning on the working circuit and turning off the self-discharging circuit comprises: Sending a first signal to the first switch tube to put the first switch tube in a conducting state; A second signal is sent to the second switch tube to put the second switch tube in an off state.
6. The discharge control method of an electronic device according to claim 1, characterized in that: If the output voltage is less than or equal to the voltage threshold, shutting down the working circuit and starting the self-discharge circuit to discharge the battery comprises: If the output voltage is less than or equal to the voltage threshold, determining the accumulated time duration during this detection process during which the output voltage is less than or equal to the voltage threshold; When the accumulated time reaches a preset time threshold, the working circuit is turned off and the self-discharge circuit is turned on to discharge the battery.
7. The discharge control method of an electronic device according to claim 5, characterized in that: The step of starting the self-discharging circuit to discharge the battery includes: Sending a third signal to the second switch tube to put the second switch tube in a conducting state; Comparing the output voltage with the turn-on voltage of the second switch tube; If the output voltage is less than or equal to the start-up voltage, the discharge operation of the battery is terminated.
8. A discharge control system for an electronic device, characterized in that: The electronic device comprises a battery, a working circuit and a self-discharging circuit, and the system comprises: A detection unit, used for detecting the output voltage of the battery; A comparison unit, used for comparing the output voltage with a preset voltage threshold; A first processing unit, configured to turn on the working circuit and turn off the self-discharging circuit if the output voltage is greater than the voltage threshold; The second processing unit is configured to shut down the working circuit and start the self-discharge circuit to discharge the battery if the output voltage is less than or equal to the voltage threshold.
9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements a discharge control method for an electronic device as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to implement a discharge control method for an electronic device as claimed in any one of claims 1 to 7 when executed by the processor.