A dual-battery automatic switching method and device, a storage medium and a computer
The automatic dual-battery switching method, which uses the battery control circuit board for autonomous judgment and communication, solves the problems of long switching time and communication conflicts in electric vehicles, and achieves fast and reliable battery state switching, reducing failure risks and costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NANTONG TOPBANG LITHIUM BATTERY CO LTD
- Filing Date
- 2022-06-30
- Publication Date
- 2026-07-14
AI Technical Summary
The existing dual-battery switching method for electric vehicles takes too long, leading to interruptions and communication conflicts, increasing the risk of failure and costs, and the external switching device is easily damaged.
By constructing a dual-battery automatic switching method, the battery state can be automatically switched by utilizing the autonomous judgment and communication between battery control circuit boards, thereby reducing reliance on external devices.
It greatly reduces switchover time, avoids interruptions and communication packet loss, reduces failure risk, and lowers costs.
Smart Images

Figure CN115313607B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of batteries, and more specifically, to a method, apparatus, storage medium, and computer for automatic switching between dual batteries. Background Technology
[0002] Currently, most electric vehicles on the market switch between dual batteries using external switching devices or controllers. This often results in prolonged switching times, interruptions during the process, temporary loss of power, and inconvenience or even safety hazards. Furthermore, during switching, the electronic control unit in most dual-battery systems needs to continuously read information from both the first and second battery banks, sending commands to both. However, the first and second batteries also need to communicate continuously to obtain each other's switching status, and this communication via a single wire can lead to communication conflicts and packet loss, impacting the switching process. Additionally, if the external switching device or controller malfunctions, both battery banks become unusable, increasing the risk of failure and adding to the cost of the necessary components. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method, apparatus, storage medium and computer for automatic switching between dual batteries.
[0004] The technical solution adopted by this invention to solve its technical problem is: to construct a dual-battery automatic switching method, the method comprising the following steps:
[0005] Step S1: Determine whether the first battery meets the first preset switching condition;
[0006] Step S2: If not, proceed to step S1;
[0007] Step S3: If yes, the control circuit board of the first battery initiates a switching request to the control circuit board of the second battery.
[0008] Step S4: Determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery;
[0009] Step S5: If not, proceed to step S4;
[0010] Step S6: If yes, determine whether the second battery meets the second preset switching condition;
[0011] Step S7: If not, the control circuit board of the first battery abandons the switching and continues to use the first battery;
[0012] Step S8: If yes, the control circuit board of the first battery closes the discharge circuit and controls the first battery to switch to the second state, and the control circuit board of the second battery opens the discharge circuit and controls the second battery to switch to the first state.
[0013] Furthermore, in the dual-battery automatic switching method described in this invention, the following step is included before step S1:
[0014] Step D1: When multiple batteries are detected in the compartment, the first battery and the second battery are determined according to the address port and preset rules.
[0015] Furthermore, in the dual-battery automatic switching method described in this invention, the following step is included before step D1:
[0016] Step Q1: After the battery is placed in the compartment, the electronic control unit polls the control circuit boards of the first battery and the second battery. When the battery is detected in the compartment for the first time, the timing starts. It is determined whether the control circuit board of the marked battery receives the first real-time data of the other set of batteries in the compartment within a first preset time. The marked battery is the battery that is detected in the compartment for the first time during the polling process.
[0017] If the condition is met (Q2), it is determined to be a multi-battery in-pack mode, and the control circuit boards of the first battery and the second battery are activated, and step D1 is executed.
[0018] Step Q3: If not, then it is determined to be a single-battery in-cabin mode, and the discharge circuit of the control circuit board of the marked battery is opened.
[0019] Furthermore, in the dual-battery automatic switching method described in this invention, the following step is included after step Q3:
[0020] Step Q4: Determine whether the control circuit board of the marked battery has received polling from the electronic control unit;
[0021] Step Q5: If yes, then the control circuit board of the marked battery opens the reverse charging circuit;
[0022] Step Q6: If not, the control circuit board of the marked battery disconnects the discharge circuit and enters error mode.
[0023] Furthermore, in the dual-battery automatic switching method described in this invention, the following step is included after step Q6:
[0024] Step Q7: Determine whether the control circuit board of the marked battery receives the polling and second real-time inventory data from the electronic control unit. The second real-time inventory data is data transmitted in real time by the control circuit board of another set of batteries triggered by the polling of the electronic control unit.
[0025] Step Q8: If not, continue in error mode and proceed to step Q7;
[0026] Step Q9: If yes, then the control circuit board of the marked battery controls the marked battery to switch to the second state.
[0027] Furthermore, the dual-battery automatic switching method described in this invention also includes the following steps:
[0028] Step S11: Determine whether the interruption time when the control circuit board of the second battery does not receive the third real-time data triggered by the polling of the control circuit board of the first battery continues to exceed the second preset time.
[0029] Step S12: If not, proceed to step S11;
[0030] Step S13: If yes, the control circuit board of the second battery opens the discharge circuit and switches the second battery to the first state.
[0031] Furthermore, the dual-battery automatic switching method described in this invention also includes the following steps:
[0032] Step S14: Determine whether the first battery has not received a polling message from the electronic control unit and whether the discharge circuit current value is less than the preset current value for more than a third preset time.
[0033] Step S15: If not, proceed to step S14;
[0034] Step S16: If yes, then shut down the charging and discharging circuit of the control circuit board of the first battery.
[0035] Furthermore, in the dual-battery automatic switching method described in this invention, after step S16, the method further includes the following step:
[0036] Step S17: If the charging and discharging circuit of the first battery is closed, an alarm will be triggered by the alarm device.
[0037] In addition, the present invention also provides a dual-battery automatic switching method apparatus, the apparatus comprising:
[0038] The first judgment unit is used to determine whether the first battery has reached the first preset switching condition.
[0039] The first feedback unit is used to continue to determine whether the first battery has reached the first preset switching condition when the first battery has not reached the first preset switching condition.
[0040] The second feedback unit is used to initiate a switching request from the control circuit board of the first battery to the control circuit board of the second battery when the first battery reaches the first preset switching condition.
[0041] The second judgment unit is used to determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery.
[0042] The third feedback unit is used to continue to determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery when the control circuit board of the second battery has not received a switching request initiated by the control circuit board of the first battery.
[0043] The fourth feedback unit is used to determine whether the second battery meets the second preset switching conditions when the control circuit board of the second battery receives a switching request initiated by the control circuit board of the first battery.
[0044] The fifth feedback unit is used to allow the control circuit board of the first battery to abandon the switching and continue to use the first battery when the second battery does not meet the second preset switching conditions.
[0045] The sixth feedback unit is used to, when the second battery meets the second preset switching condition, close the charging and discharging circuit of the first battery and control the first battery to switch to the second state, and open the discharging circuit of the second battery and control the second battery to switch to the first state.
[0046] In addition, the present invention provides a computer-readable storage medium storing a computer program adapted for loading by a processor to perform the steps of the dual-battery automatic switching method described above.
[0047] In addition, the present invention also provides a computer, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the dual-battery automatic switching method described above by calling the computer program stored in the memory.
[0048] The automatic battery switching method of the present invention has the following beneficial effects: During use, the present invention can achieve dual battery switching completely automatically by the battery, greatly reducing the switching time, avoiding the inconvenience and danger caused by the vehicle's temporary loss of power due to the interruption caused by the long switching time, and greatly reducing the probability of switching being affected by packet loss due to communication conflicts. At the same time, it reduces the probability of being unable to continue to use due to the failure of some machines, and further reduces costs by reducing the need for corresponding external devices. Attached Figure Description
[0049] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0050] Figure 1This is a flowchart of the dual-battery automatic switching method provided in the embodiments of the present invention;
[0051] Figure 2 This is a flowchart of a dual-battery automatic switching method provided in an embodiment of the present invention;
[0052] Figure 3 This is a flowchart of a dual-battery automatic switching method provided in an embodiment of the present invention;
[0053] Figure 4 This is a flowchart of a dual-battery automatic switching method provided in an embodiment of the present invention;
[0054] Figure 5 This is a flowchart of a dual-battery automatic switching method provided in an embodiment of the present invention;
[0055] Figure 6 This is a flowchart of a dual-battery automatic switching method provided in an embodiment of the present invention;
[0056] Figure 7 This is a flowchart of a dual-battery automatic switching method provided in an embodiment of the present invention. Detailed Implementation
[0057] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0058] In a preferred embodiment, reference Figure 1 The dual-battery automatic switching method in this embodiment includes the following steps:
[0059] Step S1: Determine whether the first battery meets the first preset switching condition.
[0060] Specifically, the dual-battery system in this embodiment has two battery compartments, each capable of holding a set of batteries. Each battery compartment corresponds to a control circuit board to control the discharge of the batteries within it. Each control circuit board can be polled by the electronic control unit (ECU) and triggered to send corresponding data. When one control circuit board is triggered by the ECU, it sends corresponding data, which is received by both the ECU and the other control circuit board. The two control circuit boards can transmit and receive data from each other. After the batteries are inserted into the compartments, the control circuit board of the first battery determines whether the inserted first battery meets a first preset switching condition. Preferably, the first preset switching condition in this embodiment includes, but is not limited to, one or more of the following: whether the battery is faulty, whether the battery capacity is lower than a preset capacity, whether the battery voltage is lower than a preset voltage, whether the battery voltage difference is greater than a preset voltage difference, whether the battery temperature is higher than a preset battery temperature during discharge, and whether the temperature of the metal-oxide-semiconductor field-effect transistor (MOSFET) is higher than a preset MOSFET temperature. The first battery is the primary battery.
[0061] Step S2: If not, proceed to step S1.
[0062] Step S3: If yes, the control circuit board of the first battery initiates a switching request to the control circuit board of the second battery.
[0063] Specifically, if the control circuit board of the first battery determines that the installed first battery has not met the first preset switching condition, it continues to determine whether the first battery and / or the control circuit board of the first battery have met the first preset switching condition, and repeats this determination. If the control circuit board of the first battery determines that the installed first battery and / or the control circuit board of the first battery have met the first preset switching condition, the control circuit board of the first battery prepares to initiate a switching request. The control circuit board of the first battery closes the main MOSFET and opens the recharge MOSFET. When the electronic control unit polls the control circuit board of the first battery, the control circuit board of the first battery is triggered and then sends the switching request data to the control circuit board of the second battery and the electronic control unit, wherein the second battery is the backup battery.
[0064] Step S4: Determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery.
[0065] Specifically, the control circuit board of the second battery determines whether it has received a switching request initiated by the control circuit board of the first battery.
[0066] Step S5: If not, proceed to step S4.
[0067] Step S6: If yes, determine whether the second battery meets the second preset switching condition.
[0068] Specifically, if the control circuit board of the second battery does not receive a switching request initiated by the control circuit board of the first battery, the control circuit board of the second battery will continue to detect and determine whether it has received a switching request initiated by the control circuit board of the first battery. If the control circuit board of the second battery receives a switching request initiated by the control circuit board of the first battery, the control circuit board of the second battery determines whether the second battery and / or the control circuit board of the second battery meet the second preset switching conditions. The second preset switching conditions may be one or more of the following: whether the battery is faulty, whether the battery capacity is lower than the preset capacity, whether the battery voltage is lower than the preset voltage, whether the battery voltage difference is greater than the preset voltage difference, whether the battery temperature is higher than the preset battery temperature during battery discharge, and whether the MOSFET temperature is higher than the preset field-effect transistor temperature.
[0069] Step S7: If not, the control circuit board of the first battery abandons the switching and continues to use the first battery.
[0070] Specifically, if the control circuit board of the second battery determines that the second battery and / or its control circuit board do not meet the second preset switching condition, the control circuit board of the second battery prepares to send its own status data. When the electronic control unit polls the control circuit board of the second battery, the control circuit board of the second battery is triggered and sends its own status data. When the control circuit board of the first battery receives the status data from the control circuit board of the second battery, it abandons the switching and continues to use the first battery. Alternatively, the first battery may close the back-charge circuit while continuing to use it.
[0071] Step S8: If yes, the control circuit board of the first battery closes the discharge circuit and controls the first battery to switch to the second state, and the control circuit board of the second battery opens the discharge circuit and controls the second battery to switch to the first state.
[0072] Specifically, if the control circuit board of the second battery determines that the second battery and / or its control circuit board meet the second preset switching condition, then the control circuit board of the second battery closes the main circuit. Alternatively, the control circuit board of the second battery may also disconnect the back-charging circuit when closing the main circuit. At the same time, the control circuit board of the second battery prepares to send its own status data. At this time, the control circuit board of the second battery controls the second battery to enter the second state, which is the standby state.
[0073] When the electronic control unit polls the control circuit board of the second battery, the control circuit board of the second battery is triggered and sends its own status data. When the control circuit board of the first battery receives the status data from the control circuit board of the second battery, it disconnects the main circuit. Alternatively, the control circuit board of the first battery may also disconnect the back-charging circuit when disconnecting the main circuit. At this time, the control circuit board of the first battery controls the first battery to enter the second state.
[0074] When the electronic control unit polls the control circuit board of the first battery, the control circuit board of the first battery sends out its current status data. Upon receiving the status data from the first battery, the control circuit board of the second battery closes its main circuit. Alternatively, the control circuit board of the second battery may close both the main circuit and the recharge circuit simultaneously. At this point, the control circuit board of the second battery controls the second battery to enter a first state, which is the primary operating state.
[0075] Alternatively, the control switches for all the main circuits and recharge circuits mentioned above are MOSFETs.
[0076] In this embodiment, a query command sent by the electronic control unit (ECU) can poll and trigger the control circuit boards of both the first and second batteries to return their status. The ECU receives the returned status, and the control circuit board of the other battery also receives the returned status. This achieves the purpose of mutual status transmission between the first and second batteries, reducing the probability of packet loss due to communication conflicts between the ECU and the two battery sets. Furthermore, no external switching device is needed for switching; the dual-battery automatic switching function is fully realized during use, greatly reducing switching time and avoiding inconvenience and danger caused by temporary loss of vehicle power due to prolonged switching. It also prevents both battery sets from becoming unusable due to external switching device failure, reducing the probability of unusable systems due to partial malfunctions, and further reducing costs by minimizing the need for external devices.
[0077] In a preferred embodiment, reference Figure 2 In this embodiment of the dual-battery automatic switching method, the step before step S1 is further included:
[0078] Step D1: When multiple batteries are detected in the compartment, determine the first battery and the second battery based on the address port and preset rules.
[0079] Specifically, when there is no fixed primary / backup designation for the two battery compartments, the dual batteries in this embodiment can freely determine the first and second batteries according to preset rules and address ports. The first battery is the primary battery, and the second battery is the backup battery. For example, if the batteries have a first address port and a second address port, the battery group connected to the first address port can be designated as the first battery, and the battery group connected to the second address port can be designated as the second battery, and so on.
[0080] By implementing this embodiment, the dual batteries can automatically determine the first and second batteries according to preset rules and address ports, eliminating the need for manual differentiation of the primary and backup battery compartments for subsequent operations, reducing a lot of trouble and improving convenience.
[0081] In a preferred embodiment, reference Figure 3 In this embodiment of the dual-battery automatic switching method, the step before step D1 is further included:
[0082] Step Q1: After the battery is placed in the compartment, the electronic control unit polls the control circuit boards of the first battery and the second battery. When the battery is detected in the compartment for the first time, the timing starts. It is determined whether the control circuit board of the marked battery has received the first real-time data of the other battery in the compartment within a first preset time. The marked battery is the battery that is detected in the compartment for the first time during the polling process.
[0083] Specifically, this embodiment features two battery compartments, each capable of holding a set of batteries. Each compartment corresponds to a control circuit board to control the discharge of the batteries within it. Each control circuit board can be triggered by polling from the electronic control unit (ECU). When one control circuit board is triggered, it sends corresponding data, which is received by both the ECU and the other control circuit board. Data can be transmitted and received between the two control circuit boards. After batteries are placed in the compartments, the ECU polls the control circuit boards for both the first and second batteries. Due to the order in which batteries are placed, there is a time difference. When a battery is detected in the compartment for the first time, the control circuit board for the marked battery begins timing. The marked battery is the first battery detected in the compartment during the polling process. The control circuit board for the marked battery then determines whether it has received the first real-time data of the other set of batteries within a preset time.
[0084] If the condition is met (Q2), then it is determined to be a multi-battery in-pack mode, and the control circuit boards of the first battery and the second battery are activated, and step D1 is executed.
[0085] Specifically, when another set of batteries enters the storage compartment within a first preset time, its control circuit board will be polled by the electronic control unit, triggering the first real-time storage data. When the control circuit board of the marked battery receives the first real-time storage data within the first preset time, it indicates that there are two sets of batteries in the storage compartment at this time. The control circuit board of the marked battery determines that multiple batteries are in the storage compartment, and then the control circuit board of the marked battery executes step D1. When the control circuit board of the marked battery is polled, it sends out the message that multiple batteries are in the storage compartment. At this time, the control circuit board of the other set of batteries will receive the message that multiple batteries are in the storage compartment, and then the control circuit board of the other set of batteries executes step D1.
[0086] Step Q3: If not, it is determined to be a single-battery in-pack mode, and the discharge circuit of the control circuit board of the marked battery is opened.
[0087] Specifically, if the control circuit board of the marked battery does not receive the first real-time data of another set of batteries in the compartment within the first preset time, it will determine that there is only one set of batteries in the compartment at this time. The control circuit board of the marked battery will then determine the single battery in the compartment mode and open the discharge circuit of the control circuit board of the marked battery.
[0088] Implementing this embodiment can automatically identify whether the user has inserted a single battery or two batteries to better handle subsequent operations. Furthermore, if one of the batteries malfunctions or has low power, maintenance personnel only need to remove the faulty battery for maintenance, and the vehicle can still be used, improving the convenience of maintenance and enabling use even with a single battery. This makes battery configuration more flexible and convenient for users.
[0089] In a preferred embodiment, reference Figure 4 In this embodiment of the dual-battery automatic switching method, after step Q3, the following step is also included:
[0090] Step Q4: Determine whether the control circuit board of the marked battery has been polled by the electronic control unit.
[0091] Specifically, once the system determines that a single battery is in the compartment, the control circuit board that marks the battery will determine whether it has received a poll from the electronic control unit.
[0092] Step Q5: If yes, then mark the battery's control circuit board to open the reverse charging circuit.
[0093] Step Q6: If not, mark the battery's control circuit board as disconnected from the discharge circuit and enter error mode.
[0094] Specifically, if the control circuit board of the tagged battery receives a poll from the electronic control unit, it opens the reverse charging circuit. If the control circuit board of the tagged battery does not receive a poll from the electronic control unit, it indicates a fault, and the control circuit board of the tagged battery disconnects the discharge circuit and enters error mode.
[0095] Implementing this embodiment can effectively prevent the control circuit board from being burned out due to the feedback current generated during braking not being absorbed by the battery, and can also detect whether the battery has malfunctioned during use.
[0096] In a preferred embodiment, reference Figure 5 In this embodiment of the dual-battery automatic switching method, after step Q6, the following step is also included:
[0097] Step Q7: Determine whether the control circuit board of the marked battery has received the polling of the electronic control unit and the second real-time inventory data. The second real-time inventory data is the data transmitted in real time by the control circuit board of another set of batteries triggered by the polling of the electronic control unit.
[0098] Specifically, in error mode, it is determined whether the control circuit board of this marked battery has been polled by the electronic control unit and has received the second real-time inventory data of another set of batteries. The second real-time inventory data is the data transmitted in real time by the control circuit board of the other set of batteries triggered by the polling of the electronic control unit.
[0099] Step Q8: If not, continue in error mode and proceed to step Q7.
[0100] If the step Q9 is correct, the control circuit board of the marked battery controls the marked battery to switch to the second state.
[0101] Specifically, if the control circuit board of this marked battery does not receive polling from the electronic control unit or does not receive the second real-time inventory data of another set of batteries, it continues to maintain the error mode and executes step Q7. If the control circuit board of this marked battery receives polling from the electronic control unit and receives the second real-time inventory data of another set of batteries, indicating that the fault has been eliminated and another set of batteries is in the inventory, the control circuit board of the marked battery controls the marked battery to switch to the second state and enter the standby state.
[0102] Implementing this embodiment allows for real-time monitoring of batteries that have entered error mode. When the fault is cleared, the battery immediately enters standby mode, making ample preparations for future battery replacements and improving battery utilization.
[0103] In a preferred embodiment, reference Figure 6 The dual-battery automatic switching method in this embodiment further includes the following steps:
[0104] Step S11: Determine whether the interruption time of the second battery's control circuit board not receiving the third real-time in-warehouse data triggered by the first battery's control circuit board due to polling continues for more than the second preset time.
[0105] Specifically, during operation, the electronic control unit continuously polls, and each polling triggers the real-time inventory data of the corresponding battery, which is then sent out by the corresponding control circuit board. Therefore, the second battery receives the third real-time inventory data from the first battery every short period of time to ensure that the first battery is operating normally. In order to detect that the first battery is operating normally at all times, the control circuit board of the second battery will determine whether the interruption time of not receiving the third real-time inventory data triggered by the first battery due to polling continues to exceed a second preset time. Preferably, the second preset time includes, but is not limited to, 5 seconds.
[0106] Step S12: If not, proceed to step S11.
[0107] Step S13: If yes, the control circuit board of the second battery opens the discharge circuit and switches the control of the second battery to the first state.
[0108] Specifically, if the interruption time for the second battery's control circuit board not receiving the third real-time inventory data triggered by the first battery's polling does not exceed the second preset time, it indicates that the first battery is operating normally. Then, the system continues to continuously check and determine whether the interruption time for the second battery's control circuit board not receiving the third real-time inventory data triggered by the first battery's polling exceeds the second preset time. If the interruption time for the second battery's control circuit board not receiving the third real-time inventory data triggered by the first battery's polling exceeds the second preset time, it indicates that the first battery and / or the first battery's control circuit board is faulty. In this case, the second battery's control circuit board opens the discharge circuit and switches the second battery to the first state.
[0109] Implementing this embodiment can promptly address the inconvenience and danger caused by a temporary loss of vehicle power due to a power outage when the first battery fails.
[0110] In a preferred embodiment, reference Figure 7 The dual-battery automatic switching method in this embodiment further includes the following steps:
[0111] Step S14: Determine whether the first battery has not received a polling message from the electronic control unit and whether the discharge circuit current value has been less than the preset current value for more than a third preset time.
[0112] Specifically, during operation, the electronic control unit continuously polls to promptly check whether the first battery is functioning properly. The control circuit board of the first battery continuously checks whether it has not received a polling message from the electronic control unit and whether the discharge circuit current value has been below a preset current value for more than a third preset time. Preferably, the third preset time includes, but is not limited to, 5 seconds. Preferably, the preset current value includes, but is not limited to, 1 amp.
[0113] Step S15: If not, proceed to step S14.
[0114] Step S16: If yes, then shut down the charging and discharging circuit of the control circuit board of the first battery.
[0115] Specifically, if the first battery receives a polling message from the electronic control unit or the current value is less than the preset current value for no longer than a third preset time, then it continues to determine whether the first battery has not received a polling message from the electronic control unit and whether the discharge circuit current value has been less than the preset current value for longer than the third preset time. If the first battery does not receive a polling message from the electronic control unit and the current value is less than the preset current value for longer than the third preset time, then it is determined that the first battery and / or the control circuit board of the first battery has malfunctioned and the vehicle is stationary, then the charging and discharging circuit of the control circuit board of the first battery is shut down.
[0116] This embodiment can detect in real time whether the first battery is faulty during operation and determine whether the vehicle is stationary. When the first battery and / or the control circuit board of the first battery malfunctions and the vehicle is stationary, effective measures are taken to prevent unpredictable accidents and dangers by shutting down the charging and discharging circuit of the control circuit board of the first battery.
[0117] Furthermore, in the dual-battery automatic switching method of the present invention, after step S16, the method further includes the following step:
[0118] Step S17: If the charging and discharging circuit of the first battery is shut down, an alarm will be triggered by the alarm device.
[0119] Specifically, when the first battery malfunctions and the vehicle is stationary, the control circuit board of the first battery will shut down the charging and discharging circuit of the first battery. The alarm device will immediately notify the user that there is a malfunction in the battery or control circuit board of the first battery compartment through one or more alarm methods such as sound alarm, light alarm, and text display, indicating that the battery or control circuit board of the first battery compartment needs to be repaired.
[0120] In this embodiment, an alarm function is added, which can promptly notify the user to take appropriate action when the first battery malfunctions, thus ensuring personal safety.
[0121] In a preferred embodiment, the dual-battery automatic switching method apparatus of this embodiment includes:
[0122] The first judgment unit is used to determine whether the first battery has reached the first preset switching condition.
[0123] Specifically, the dual-battery system in this embodiment has two battery compartments, each capable of holding a set of batteries. Each battery compartment corresponds to a control circuit board to control the discharge of the batteries within it. Each control circuit board can be polled by the electronic control unit (ECU) and triggered to send corresponding data. When one control circuit board is triggered by the ECU, it sends corresponding data, which is received by both the ECU and the other control circuit board. The two control circuit boards can transmit and receive data from each other. After the batteries are inserted into the compartments, the control circuit board of the first battery determines whether the inserted first battery meets a first preset switching condition. Preferably, the first preset switching condition in this embodiment includes, but is not limited to, one or more of the following: whether the battery is faulty, whether the battery capacity is lower than a preset capacity, whether the battery voltage is lower than a preset voltage, whether the battery voltage difference is greater than a preset voltage difference, whether the battery temperature is higher than a preset battery temperature during discharge, and whether the temperature of the metal-oxide-semiconductor field-effect transistor (MOSFET) is higher than a preset MOSFET temperature. The first battery is the primary battery.
[0124] The first feedback unit is used to continue to determine whether the first battery has met the first preset switching condition when the first battery has not met the first preset switching condition.
[0125] The second feedback unit is used to initiate a switching request from the first battery to the second battery when the first battery meets the first preset switching condition.
[0126] Specifically, if the control circuit board of the first battery determines that the installed first battery has not met the first preset switching condition, it continues to determine whether the first battery and / or the control circuit board of the first battery have met the first preset switching condition, and repeats this determination. If the control circuit board of the first battery determines that the installed first battery and / or the control circuit board of the first battery have met the first preset switching condition, the control circuit board of the first battery prepares to initiate a switching request. The control circuit board of the first battery closes the main MOSFET and opens the recharge MOSFET. When the electronic control unit polls the control circuit board of the first battery, the control circuit board of the first battery is triggered and then sends the switching request data to the control circuit board of the second battery and the electronic control unit, wherein the second battery is the backup battery.
[0127] The second judgment unit is used to determine whether the second battery has received a switching request initiated by the first battery.
[0128] Specifically, the control circuit board of the second battery determines whether it has received a switching request initiated by the control circuit board of the first battery.
[0129] The third feedback unit is used to continue determining whether the second battery has received a switching request from the first battery when the second battery has not received a switching request from the first battery.
[0130] The fourth feedback unit is used to determine whether the second battery meets the second preset switching conditions when the second battery receives a switching request initiated by the first battery.
[0131] Specifically, if the control circuit board of the second battery does not receive a switching request initiated by the control circuit board of the first battery, the control circuit board of the second battery will continue to detect and determine whether it has received a switching request initiated by the control circuit board of the first battery. If the control circuit board of the second battery receives a switching request initiated by the control circuit board of the first battery, the control circuit board of the second battery determines whether the second battery and / or the control circuit board of the second battery meet the second preset switching conditions. The second preset switching conditions may be one or more of the following: whether the battery is faulty, whether the battery capacity is lower than the preset capacity, whether the battery voltage is lower than the preset voltage, whether the battery voltage difference is greater than the preset voltage difference, whether the battery temperature is higher than the preset battery temperature during battery discharge, and whether the MOSFET temperature is higher than the preset field-effect transistor temperature.
[0132] The fifth feedback unit is used to allow the first battery to abandon switching and continue to be used when the second battery does not meet the second preset switching conditions.
[0133] Specifically, if the control circuit board of the second battery determines that the second battery and / or its control circuit board do not meet the second preset switching condition, the control circuit board of the second battery prepares to send its own status data. When the electronic control unit polls the control circuit board of the second battery, the control circuit board of the second battery is triggered and sends its own status data. When the control circuit board of the first battery receives the status data from the control circuit board of the second battery, it abandons the switching and continues to use the first battery. Alternatively, the first battery may close the back-charge circuit while continuing to use it.
[0134] The sixth feedback unit is used to, when the second battery meets the second preset switching condition, close the charging and discharging circuit of the first battery and switch to the second state, and open the discharging circuit of the second battery and switch to the first state.
[0135] Specifically, if the control circuit board of the second battery determines that the second battery and / or its control circuit board meet the second preset switching condition, then the control circuit board of the second battery closes the main circuit. Alternatively, the control circuit board of the second battery may also disconnect the back-charging circuit when closing the main circuit. At the same time, the control circuit board of the second battery prepares to send its own status data. At this time, the control circuit board of the second battery controls the second battery to enter the second state, which is the standby state.
[0136] When the electronic control unit polls the control circuit board of the second battery, the control circuit board of the second battery is triggered and sends its own status data. When the control circuit board of the first battery receives the status data from the control circuit board of the second battery, it disconnects the main circuit. Alternatively, the control circuit board of the first battery may also disconnect the back-charging circuit when disconnecting the main circuit. At this time, the control circuit board of the first battery controls the first battery to enter the second state.
[0137] When the electronic control unit polls the control circuit board of the first battery, the control circuit board of the first battery sends out its current status data. Upon receiving the status data from the first battery, the control circuit board of the second battery closes its main circuit. Alternatively, the control circuit board of the second battery may close both the main circuit and the recharge circuit simultaneously. At this point, the control circuit board of the second battery controls the second battery to enter a first state, which is the primary operating state.
[0138] Alternatively, the control switches for all the main circuits and recharge circuits mentioned above are MOSFETs.
[0139] In this embodiment, a query command sent by the electronic control unit (ECU) can poll and trigger the control circuit boards of both the first and second batteries to return their status. The ECU receives the returned status, and the control circuit board of the other battery also receives the returned status. This achieves the purpose of mutual status transmission between the first and second batteries, reducing the probability of packet loss due to communication conflicts between the ECU and the two battery sets. Furthermore, no external switching device is needed for switching; the dual-battery automatic switching function is fully realized during use, greatly reducing switching time and avoiding inconvenience and danger caused by temporary loss of vehicle power due to prolonged switching. It also prevents both battery sets from becoming unusable due to external switching device failure, reducing the probability of unusable systems due to partial malfunctions, and further reducing costs by minimizing the need for external devices.
[0140] In a preferred embodiment, the computer-readable storage medium of this embodiment stores a computer program adapted for loading by a processor to perform the steps of the dual-battery automatic switching method as described above.
[0141] The computer-readable storage medium in this embodiment stores, but is not limited to, a program that performs the steps of the above-described dual-battery automatic switching method to achieve fully automatic switching between the two batteries. This greatly reduces the switching time, avoids interruptions caused by excessive switching time during the process, and prevents the vehicle from temporarily losing power, which would cause inconvenience and danger. It also reduces the probability of the vehicle being unable to continue operating due to malfunctions of some parts of the machine, and further reduces costs by reducing the need for external devices.
[0142] In a preferred embodiment, the computer of this embodiment includes a memory and a processor. The memory stores a computer program, and the processor executes the steps of the dual-battery automatic switching method described above by calling the computer program stored in the memory.
[0143] In this embodiment, the computer enables the dual batteries to switch autonomously during execution, greatly reducing the switching time and avoiding inconvenience and danger caused by interruptions due to excessive switching time, which could result in a temporary loss of vehicle power. It also reduces the probability of the vehicle being unable to continue operating due to malfunctions in some parts of the machine, and further reduces costs by eliminating the need for external devices.
[0144] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0145] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0146] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0147] The above embodiments are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They do not limit the scope of protection of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should fall within the scope of the claims of the present invention.
Claims
1. A method for automatic switching between dual batteries, characterized in that, The method includes the following steps: Step S1: Determine whether the first battery meets the first preset switching condition; wherein, the first preset switching condition includes one or more of the following: whether the battery is faulty, whether the battery capacity is lower than the preset capacity, whether the battery voltage is lower than the preset voltage, and whether the battery voltage difference is greater than the preset voltage difference. Step S2: If not, proceed to step S1; Step S3: If yes, the control circuit board of the first battery initiates a switching request to the control circuit board of the second battery. Step S4: Determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery; Step S5: If not, proceed to step S4; Step S6: If yes, determine whether the second battery meets the second preset switching condition; Step S7: If not, the control circuit board of the first battery abandons the switching and continues to use the first battery; Step S8: If yes, the control circuit board of the first battery closes the discharge circuit and controls the first battery to switch to the second state, and the control circuit board of the second battery opens the discharge circuit and controls the second battery to switch to the first state. Step S11: Determine whether the interruption time when the control circuit board of the second battery does not receive the third real-time data triggered by the polling of the control circuit board of the first battery continues to exceed the second preset time. Step S12: If not, proceed to step S11; Step S13: If yes, the control circuit board of the second battery opens the discharge circuit and switches the second battery to the first state; when switching between the first battery and the second battery, the first battery disconnects the main circuit and the reverse charging circuit, and the second battery closes the main circuit and the reverse charging circuit.
2. The dual-battery automatic switching method according to claim 1, characterized in that, The steps preceding step S1 include: Step D1: When multiple batteries are detected in the compartment, the first battery and the second battery are determined according to the address port and preset rules.
3. The dual-battery automatic switching method according to claim 2, characterized in that, The steps preceding step D1 include: Step Q1: After the battery is placed in the compartment, the electronic control unit polls the control circuit boards of the first battery and the second battery. When the battery is detected in the compartment for the first time, the timing starts. It is determined whether the control circuit board of the marked battery receives the first real-time data of the other set of batteries in the compartment within a first preset time. The marked battery is the battery that is detected in the compartment for the first time during the polling process. If the condition is met (Q2), it is determined to be a multi-battery in-pack mode, and the control circuit boards of the first battery and the second battery execute step D1. Step Q3: If not, then it is determined to be a single-battery in-cabin mode, and the discharge circuit of the control circuit board of the marked battery is opened.
4. The dual-battery automatic switching method according to claim 3, characterized in that, The steps following step Q3 include: Step Q4: Determine whether the control circuit board of the marked battery has received polling from the electronic control unit; Step Q5: If yes, then the control circuit board of the marked battery opens the reverse charging circuit; Step Q6: If not, the control circuit board of the marked battery disconnects the discharge circuit and enters error mode.
5. The dual-battery automatic switching method according to claim 4, characterized in that, The steps following step Q6 include: Step Q7: Determine whether the control circuit board of the marked battery receives the polling and second real-time inventory data from the electronic control unit. The second real-time inventory data is data transmitted in real time by the control circuit board of another set of batteries triggered by the polling of the electronic control unit. Step Q8: If not, continue in error mode and proceed to step Q7; Step Q9: If yes, then the control circuit board of the marked battery controls the marked battery to switch to the second state.
6. The dual-battery automatic switching method according to claim 1, characterized in that, It also includes the following steps: Step S14: Determine whether the first battery has not received a polling message from the electronic control unit and whether the discharge circuit current value is less than the preset current value for more than a third preset time. Step S15: If not, proceed to step S14; Step S16: If yes, then shut down the charging and discharging circuit of the control circuit board of the first battery.
7. The dual-battery automatic switching method according to claim 6, characterized in that, Following step S16, the following steps are also included: Step S17: If the charging and discharging circuit of the first battery is closed, an alarm will be triggered by the alarm device.
8. A dual-battery automatic switching method device, characterized in that, The device includes: The first judgment unit is used to judge whether the first battery meets the first preset switching condition; wherein, the first preset switching condition includes one or more of the following: whether the battery is faulty, whether the battery capacity is lower than the preset capacity, whether the battery voltage is lower than the preset voltage, and whether the battery voltage difference is greater than the preset voltage difference. The first feedback unit is used to continue to determine whether the first battery has reached the first preset switching condition when the first battery has not reached the first preset switching condition. The second feedback unit is used to initiate a switching request from the control circuit board of the first battery to the control circuit board of the second battery when the first battery reaches the first preset switching condition. The second judgment unit is used to determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery. The third feedback unit is used to continue to determine whether the control circuit board of the second battery has received a switching request initiated by the control circuit board of the first battery when the control circuit board of the second battery has not received a switching request initiated by the control circuit board of the first battery. The fourth feedback unit is used to determine whether the second battery meets the second preset switching conditions when the control circuit board of the second battery receives a switching request initiated by the control circuit board of the first battery. The fifth feedback unit is used to allow the control circuit board of the first battery to abandon the switching and continue to use the first battery when the second battery does not meet the second preset switching conditions. The sixth feedback unit is used to, when the second battery meets the second preset switching condition, close the charging and discharging circuit of the first battery and control the first battery to switch to the second state, and open the discharging circuit of the second battery and control the second battery to switch to the first state.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the steps of the dual-battery automatic switching method as described in any one of claims 1 to 7.
10. A computer, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the dual-battery automatic switching method as described in any one of claims 1 to 7 by calling the computer program stored in the memory.