Control method and device of double-battery-pack relay and computer equipment
By gradually closing the relay in the dual-battery package power supply system and using the current sensor to detect the current, the problem of being unable to directly judge the working status of the relay is solved, and effective control and diagnosis of the relay is achieved without increasing the system burden.
Patent Information
- Application Number
- CN202411800664.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-07
AI Technical Summary
In a dual-battery package power supply system, the last closed relay cannot directly judge the operating status of the relay by sampling the voltages at the front and rear ends of the relay.
After the voltage converter is inversely precharged, the main negative and main positive relays of the dual battery pack are gradually closed, and the current value detected by the current sensor is used to determine whether the relay is powered up successfully.
Effective control and diagnosis of dual-battery package relays is achieved, avoiding increasing costs, cables and weight, and does not affect the service life of the relay.
Smart Images

Figure CN119582400A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery management, and in particular to a control method, device and computer equipment for a dual battery pack relay. Background Art
[0002] When two battery packs are used to supply power, after one of the battery packs is powered on, since the high-voltage circuit has been established, the last closed relay of the other battery pack cannot directly determine the working status of the relay by sampling the voltages at both ends of the relay. Summary of the invention
[0003] In view of this, the present invention provides a control method, device and computer equipment for a dual battery pack relay to solve the problem that the last closed relay in a dual battery pack power supply system cannot directly judge the working state of the relay by sampling the voltages at the front and rear ends of the relay.
[0004] In the first aspect, the present invention also provides a control method for a dual battery pack relay, comprising the following steps: closing the main negative relay of the first battery pack after the voltage converter is reverse pre-charged; closing the main positive relay of the first battery pack after the main negative relay of the first battery pack is successfully powered on; closing the main negative relay of the second battery pack; closing the main positive relay of the second battery pack after the main negative relay of the second battery pack is successfully powered on; controlling the voltage converter to forward step down, obtaining a first current value detected by a first current sensor and a second current value detected by a second current sensor; determining whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are successfully powered on based on the first current value and the second current value.
[0005] This embodiment utilizes the existing voltage sampling points and sensors in the dual battery pack power supply system to achieve control and diagnosis of the relay, without adding any cost, cables and weight, and without adding additional failure points; and does not increase the number of times the relay is closed, which will not affect the service life of the relay.
[0006] In an optional embodiment, determining whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are successfully powered on based on the first current value and the second current value includes: judging whether the first current value is greater than a preset first threshold value; when the first current value is greater than the first threshold value, judging that the main positive relay of the first battery pack is successfully powered on; judging whether the second current value is greater than a preset second threshold value; when the second current value is greater than the second threshold value, judging that the main positive relay of the second battery pack is successfully powered on.
[0007] This is because, after the first battery pack and the second battery pack of the dual battery pack are powered on, they start working, that is, the voltage converter performs forward voltage reduction, and the high-voltage circuit will generate current. Therefore, the first current value and the second current value can be used to determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are successfully powered on.
[0008] In an optional implementation, before obtaining the first current value detected by the first current sensor and the second current value detected by the second current sensor, the method further includes: controlling the motor to operate.
[0009] This is because the current generated by the working high-voltage circuit alone is relatively small, and controlling the operation of the motor can increase the current generated by the high-voltage circuit, thereby improving the detection accuracy of the first current value and the second current value.
[0010] In an optional embodiment, before closing the main negative relay of the first battery pack, it also includes: obtaining a first voltage between the first end of the main negative relay of the first battery pack and the second end of the main positive relay of the first battery pack; obtaining a second voltage between the second end of the main negative relay of the first battery pack and the second end of the main positive relay of the first battery pack; determining whether the main negative relay of the first battery pack is stuck based on the first voltage and the second voltage; and / or, obtaining a third voltage between the first end of the main positive relay of the first battery pack and the first end of the main negative relay of the first battery pack; obtaining a fourth voltage between the second end of the main positive relay of the first battery pack and the first end of the main negative relay of the first battery pack; determining whether the main positive relay of the first battery pack is stuck based on the third voltage and the fourth voltage.
[0011] This can eliminate the abnormal situation that the main negative relay and the main positive relay of the first battery pack are stuck.
[0012] In an optional embodiment, determining whether the main negative relay of the first battery pack is stuck based on the first voltage and the second voltage includes: calculating the absolute value of the difference between the first voltage and the second voltage; judging whether the absolute value of the difference between the first voltage and the second voltage is greater than a preset third threshold; when the absolute value of the difference between the first voltage and the second voltage is greater than the third threshold, determining that the main negative relay of the first battery pack is not stuck, otherwise, determining that the main negative relay of the first battery pack is stuck; and / or, determining whether the main positive relay of the first battery pack is stuck based on the third voltage and the fourth voltage includes: when the third voltage is different from the fourth voltage, determining that the main positive relay of the first battery pack is not stuck; otherwise, determining that the main positive relay of the second battery pack is stuck.
[0013] In this way, it can be accurately determined whether the main negative relay and the main positive relay of the first battery pack are adhered.
[0014] In an optional embodiment, after closing the main negative relay of the first battery pack, it also includes: obtaining a voltage between a first end of the main negative relay of the first battery pack and a second end of the main positive relay of the first battery pack to obtain a fifth voltage; obtaining a voltage between a second end of the main negative relay of the first battery pack and a second end of the main positive relay of the first battery pack to obtain a sixth voltage; determining whether the absolute value of the difference between the fifth voltage and the sixth voltage is less than a third threshold value; when the absolute value of the difference between the fifth voltage and the sixth voltage is less than the third threshold value, determining that the main negative relay of the first battery pack is powered on successfully.
[0015] This can determine whether the main negative relay of the first battery pack is powered on successfully.
[0016] In an optional embodiment, before closing the main negative relay of the second battery pack, it also includes: obtaining the voltage between the first end of the main negative relay of the second battery pack and the first end of the main positive relay of the second battery pack to obtain a seventh voltage; obtaining the voltage between the second end of the main negative relay of the second battery pack and the first end of the main positive relay of the second battery pack to obtain an eighth voltage; determining whether the main negative relay of the second battery pack is stuck according to the seventh voltage and the eighth voltage; and / or obtaining the voltage between the first end of the main positive relay of the second battery pack and the second end of the main negative relay of the second battery pack to obtain a ninth voltage; obtaining the voltage between the second end of the main positive relay of the second battery pack and the second end of the main negative relay of the second battery pack to obtain a tenth voltage; determining whether the main positive relay of the second battery pack is stuck according to the ninth voltage and the tenth voltage.
[0017] This can eliminate the abnormal situation that the main negative relay and the main positive relay of the second battery pack are stuck.
[0018] In an optional embodiment, determining whether the main negative relay of the second battery pack is stuck based on the seventh voltage and the eighth voltage includes: calculating the absolute value of the difference between the seventh voltage and the eighth voltage; judging whether the absolute value of the difference between the seventh voltage and the eighth voltage is greater than a preset fourth threshold; when the absolute value of the difference between the seventh voltage and the eighth voltage is greater than the fourth threshold, determining that the main negative relay of the second battery pack is not stuck, otherwise, determining that the main negative relay of the second battery pack is stuck; and / or, determining whether the main positive relay of the second battery pack is stuck based on the ninth voltage and the tenth voltage includes: when the ninth voltage is different from the tenth voltage, determining that the main positive relay of the second battery pack is not stuck; otherwise, determining that the main positive relay of the second battery pack is stuck.
[0019] In this way, it can be accurately determined whether there is adhesion between the main negative relay and the main positive relay of the second battery pack.
[0020] In an optional embodiment, after closing the main negative relay of the second battery pack, it also includes: obtaining a voltage between a first end of the main negative relay of the second battery pack and a first end of the main positive relay of the second battery pack to obtain an eleventh voltage; obtaining a voltage between a second end of the main negative relay of the second battery pack and a first end of the main positive relay of the second battery pack to obtain a twelfth voltage; determining whether the absolute value of the difference between the eleventh voltage and the twelfth voltage is less than a fourth threshold; when the absolute value of the difference between the eleventh voltage and the twelfth voltage is less than the fourth threshold, determining that the main negative relay of the second battery pack is powered on successfully.
[0021] This can determine whether the main negative relay of the second battery pack is powered on successfully.
[0022] In an optional embodiment, after the voltage converter is reverse pre-charged, it also includes: when the reverse pre-charge time of the voltage converter reaches a preset fifth threshold, obtaining a voltage between the second end of the main negative relay of the first battery pack and the second end of the main positive relay of the first battery pack to obtain a thirteenth voltage; obtaining a voltage between the first end of the main negative relay of the second battery pack and the first end of the main positive relay of the second battery pack to obtain a fourteenth voltage; when the thirteenth voltage is less than the preset fifth threshold and / or the fourteenth voltage is less than the fifth threshold, issuing a prompt message that the voltage converter reverse pre-charge has timed out.
[0023] This can eliminate the abnormal situation of reverse pre-charging timeout of the voltage converter.
[0024] In the second aspect, the present invention also provides a control device for a dual battery pack relay, including a first battery pack control module, a second battery pack control module, a current acquisition module and a judgment module; the first battery pack control module is used to close the main negative relay of the first battery pack after the voltage converter is reverse pre-charged; the first battery pack control module is also used to close the main positive relay of the first battery pack after the main negative relay of the first battery pack is successfully powered on; the second battery pack control module is used to close the main negative relay of the second battery pack; the second battery pack control module is also used to close the main positive relay of the second battery pack after the main negative relay of the second battery pack is successfully powered on; the current acquisition module is used to control the forward step-down of the voltage converter to obtain a first current value detected by a first current sensor and a second current value detected by a second current sensor; the judgment module is used to determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are successfully powered on based on the first current value and the second current value.
[0025] In a third aspect, the present invention further provides a computer device, comprising a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the control method of the dual battery pack relay of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0026] In a fourth aspect, the present invention further provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the control method for a dual battery pack relay of the first aspect or any corresponding embodiment thereof.
[0027] In a fifth aspect, the present invention further provides a computer program product, comprising computer instructions, the computer instructions being used to enable a computer to execute the control method for a dual battery pack relay of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 It is the first circuit topology diagram of the dual battery pack power supply system;
[0030] Figure 2 It is the second circuit topology diagram of the dual battery pack power supply system;
[0031] Figure 3 is a flow chart of a dual battery pack relay control method according to an embodiment of the present invention;
[0032] Figure 4 is a flow chart of another dual battery pack relay control method according to an embodiment of the present invention;
[0033] Figure 5 is a flow chart of an example of a dual battery pack relay control method according to an embodiment of the present invention;
[0034] Figure 6 is a structural block diagram of a dual battery pack relay control device according to an embodiment of the present invention;
[0035] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0037] Figure 1 This is the first circuit topology diagram of the dual battery pack power supply system. Figure 2 This is the second circuit topology diagram of the dual battery pack power supply system. Figure 1 and Figure 2 In the figure, BAT1 is battery pack 1, BAT2 is battery pack 2, K1 is the main positive relay of battery pack 1, K2 is the main negative relay of battery pack 1, K3 is the main positive relay of battery pack 2, and K4 is the main negative relay of battery pack 2. a, b, c, d, e, f, g, and h are the voltage sampling points before and after K1, K2, K3, and K4, respectively. Uca is the voltage between point c and point a, Ucb is the voltage between point c and point b, Ubd is the voltage between point b and point d, Uge is the voltage between point g and point e, Ugf is the voltage between point g and point f, and Uhf is the voltage between point h and point f. M is the load, usually a motor and its driver. DCDC is a bidirectional DC-to-DC power converter, which can convert the high voltage of the battery pack into a low voltage of 14V, and can also boost the low voltage of 14V to the high voltage of the battery pack; current sensor 1 and current sensor 2 are provided at the negative poles of BAT1 and BAT2, respectively.
[0038] like Figure 1 As shown, assuming that the voltages of BAT1 and BAT2 are both 800V, when K3, K4 and K2 are closed and K1 is disconnected, that is, the battery pack BAT2 has been powered on and the battery pack BTA1 is ready to be powered on, since the high-voltage circuit has established a voltage, at this time Uca=800V, Ucb=800V, Ubd=800V, it is impossible to determine whether K1 is closed by comparing the voltage difference between Uca and Ucb.
[0039] In addition, when dual battery packs are used for power supply, the voltage between the two battery packs and the Y capacitor of the vehicle will affect each other, which may lead to misdiagnosis. Figure 2 As shown in the figure, when K3 and K4 are closed, K1 and K2 are not closed, that is, when the battery pack BAT2 is powered on and the battery pack BAT1 is not powered on, the current flows back to the battery pack BAT2 through the Y capacitor at the moment when K3 and K4 are closed, and Ucb will have a certain voltage value. When the Y capacitor is fully charged, the voltage and current disappear, and the Ucb voltage disappears. In view of this situation, software filtering is required to filter out the abnormal voltage caused by the power-on moment.
[0040] Based on this, an embodiment of the present invention provides an embodiment of a control method for a dual battery pack relay. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0041] In this embodiment, a control method for a dual battery pack relay is provided, which can be used in computer equipment. Figure 3 is a flow chart of a dual battery pack relay control method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0042] Step S301: After the voltage converter is reversely pre-charged, the main negative relay of the first battery pack is closed.
[0043] The main negative relay of the first battery pack is Figure 1 K2 in.
[0044] Step S302: After the main negative relay of the first battery pack is powered on successfully, the main positive relay of the first battery pack is closed.
[0045] The main positive relay of the first battery pack is Figure 1 K1 in.
[0046] Step S303: Close the main negative relay of the second battery pack.
[0047] The main negative relay of the second battery pack is Figure 1 K4 in.
[0048] Step S304: After the main negative relay of the second battery pack is powered on successfully, the main positive relay of the second battery pack is closed.
[0049] The main positive relay of the second battery pack is Figure 1 K3 in.
[0050] Step S305: Control the voltage converter to step down in the forward direction, and obtain the first current value detected by the first current sensor and the second current value detected by the second current sensor.
[0051] Step S306: Determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully according to the first current value and the second current value.
[0052] This is because, after the first battery pack and the second battery pack of the dual battery pack are powered on, the DCDC starts to work, that is, the voltage converter performs forward voltage reduction, and the high-voltage circuit will generate current. Therefore, the first current value and the second current value can be used to determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully.
[0053] Specifically, determining whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully based on the first current value and the second current value includes: judging whether the first current value is greater than a preset first threshold value; when the first current value is greater than the first threshold value, judging that the main positive relay of the first battery pack is powered on successfully; judging whether the second current value is greater than a preset second threshold value; when the second current value is greater than the second threshold value, judging that the main positive relay of the second battery pack is powered on successfully.
[0054] This embodiment uses the existing voltage sampling points and current sensors in the dual battery pack power supply system to control and diagnose the relay, without adding any cost, cables and weight, and without adding additional failure points; and does not increase the number of relay closures, which will not affect the service life of the relay. In addition, it can also avoid the misdiagnosis of the relay state due to the influence of the voltage between the two battery packs and the Y capacitor and insulation resistance of the vehicle when additional components such as capacitors, resistors and diodes are added to realize the detection function.
[0055] In this embodiment, a control method for a dual battery pack relay is provided, which can be used in computer equipment. Figure 4 FIG. 1 is a flow chart of another dual battery pack relay control method according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0056] Step S401: After DCDC reverse pre-charging, obtain a first voltage Ucb between a first terminal c of the main negative relay of the first battery pack and a second terminal b of the main positive relay of the first battery pack; obtain a second voltage Ubd between a second terminal d of the main negative relay of the first battery pack and a second terminal b of the main positive relay of the first battery pack; determine whether the main negative relay of the first battery pack is stuck according to the first voltage Ucb and the second voltage Ubd. In an optional embodiment, determining whether the main negative relay of the first battery pack is stuck according to the first voltage Ucb and the second voltage Ubd includes: calculating the absolute value of the difference between the first voltage Ucb and the second voltage Ubd; judging whether the absolute value of the difference between the first voltage Ucb and the second voltage Ubd is greater than a preset third threshold; when the absolute value of the difference between the first voltage Ucb and the second voltage Ubd is greater than the third threshold, determine that the main negative relay of the first battery pack is not stuck, otherwise, determine that the main negative relay of the first battery pack is stuck.
[0057] Step S402: Close the main negative relay of the first battery pack.
[0058] Step S403: After the main negative relay of the first battery pack is powered on successfully, obtain a third voltage Uca between the first end a of the main positive relay of the first battery pack and the first end c of the main negative relay of the first battery pack; obtain a fourth voltage Ucb between the second end b of the main positive relay of the first battery pack and the first end c of the main negative relay of the first battery pack; determine whether the main positive relay of the first battery pack is stuck based on the third voltage Uca and the fourth voltage Ucb.
[0059] In an optional embodiment, the following method can be used to determine whether the main negative relay of the first battery pack is successfully powered on: obtain the voltage between the first end c of the main negative relay of the first battery pack and the second end b of the main positive relay of the first battery pack to obtain the fifth voltage Ucb; obtain the voltage between the second end d of the main negative relay of the first battery pack and the second end b of the main positive relay of the first battery pack to obtain the sixth voltage Ubd; determine whether the absolute value of the difference between the fifth voltage Ucb and the sixth voltage Ubd is less than the third threshold; when the absolute value of the difference between the fifth voltage Ucb and the sixth voltage Ubd is less than the third threshold, it is determined that the main negative relay of the first battery pack is successfully powered on.
[0060] In an optional embodiment, determining whether the main positive relay of the first battery pack is stuck based on the third voltage Uca and the fourth voltage Ucb includes: when the third voltage Uca is different from the fourth voltage Ucb, determining that the main positive relay of the first battery pack is not stuck; otherwise, determining that the main positive relay of the second battery pack is stuck.
[0061] Step S404: Close the main positive relay of the first battery pack.
[0062] Step S405: Obtain the voltage between the first terminal h of the main negative relay of the second battery pack and the first terminal f of the main positive relay of the second battery pack to obtain the seventh voltage Uhf; obtain the voltage between the second terminal g of the main negative relay of the second battery pack and the first terminal f of the main positive relay of the second battery pack to obtain the eighth voltage Ugf; determine whether the main negative relay of the second battery pack is stuck according to the seventh voltage Uhf and the eighth voltage Ugf.
[0063] In an optional embodiment, determining whether the main negative relay of the second battery pack is stuck based on the seventh voltage Uhf and the eighth voltage Ugf includes: calculating the absolute value of the difference between the seventh voltage Uhf and the eighth voltage Ugf; judging whether the absolute value of the difference between the seventh voltage Uhf and the eighth voltage Ugf is greater than a preset fourth threshold; when the absolute value of the difference between the seventh voltage Uhf and the eighth voltage Ugf is greater than the fourth threshold, determining that the main negative relay of the second battery pack is not stuck, otherwise, determining that the main negative relay of the second battery pack is stuck.
[0064] Step S406: Close the main negative relay of the second battery pack.
[0065] Step S407: After the main negative relay of the second battery pack is successfully powered on, obtain the voltage between the first end f of the main positive relay of the second battery pack and the second end g of the main negative relay of the second battery pack to obtain the ninth voltage Ugf; obtain the voltage between the second end e of the main positive relay of the second battery pack and the second end g of the main negative relay of the second battery pack to obtain the tenth voltage Uge; determine whether the main positive relay of the second battery pack is stuck based on the ninth voltage Ugf and the tenth voltage Uge.
[0066] In an optional embodiment, the following method can be used to determine whether the main negative relay of the second battery pack is successfully powered on: obtain the voltage between the first end h of the main negative relay of the second battery pack and the first end f of the main positive relay of the second battery pack to obtain the eleventh voltage Uhf; obtain the voltage between the second end g of the main negative relay of the second battery pack and the first end f of the main positive relay of the second battery pack to obtain the twelfth voltage Ugf; determine whether the absolute value of the difference between the eleventh voltage Uhf and the twelfth voltage Ugf is less than the fourth threshold; when the absolute value of the difference between the eleventh voltage Uhf and the twelfth voltage Ugf is less than the fourth threshold, it is determined that the main negative relay of the second battery pack is successfully powered on.
[0067] In an optional embodiment, determining whether the main positive relay of the second battery pack is stuck based on the ninth voltage Ugf and the tenth voltage Uge includes: when the ninth voltage Ugf is different from the tenth voltage Uge, determining that the main positive relay of the second battery pack is not stuck; otherwise, determining that the main positive relay of the second battery pack is stuck.
[0068] Step S408: Close the main positive relay of the second battery pack.
[0069] Step S409: Control the DCDC to forward step down and control the motor to operate.
[0070] This is because the current generated by the high-voltage circuit relying solely on DCDC operation is relatively small, and controlling the motor operation can increase the current generated by the high-voltage circuit, thereby improving the detection accuracy of the first current value and the second current value.
[0071] Step S410: Acquire a first current value detected by a first current sensor and a second current value detected by a second current sensor.
[0072] Step S411: Determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully according to the first current value and the second current value.
[0073] In this embodiment, there are many ways to implement the voltage sampling of the front and rear ends of the relay, as long as the voltage between the two points can be sampled. The current sensor can be, but is not limited to, a Hall current sensor, a shunt, etc. to implement current sampling.
[0074] This embodiment uses the existing voltage sampling points and sensors of the whole machine to control and diagnose the relay, without adding any cost, cables and weight, and without adding additional failure points; and does not increase the number of times the relay is closed, which will not affect the service life of the relay.
[0075] Figure 5 : is a flowchart of an example of a dual battery pack relay control method according to an embodiment of the present invention. Figure 5 As shown, the dual battery pack relay control method includes the following steps:
[0076] 1. The ECU (Electronic Control Unit) wakes up the dual battery pack and powers up the dual battery pack at a low voltage.
[0077] 2. Determine whether the main positive relay K1 of BAT1 is stuck based on whether Uca is the same as Ucb; determine whether the main positive relay K3 of BAT2 is stuck based on whether Uge is the same as Ugf. When K1 and / or K3 are stuck, stop the power-on process.
[0078] 3. After receiving the power-on command, the DCDC voltage converter reversely pre-charges, that is, the 14V low-voltage battery is reversely boosted to the battery pack voltage. When Ubd rises to a certain value, Ubd and Ucb are obtained. If |Ubd-Ucb|>20V, the main negative relay K2 of BAT1 is reported to be stuck; otherwise, K2 is closed; when |Ubd-Ucb|<20V, K2 is judged to be normally open.
[0079] 4. Close the main positive relay K1 of BAT1.
[0080] 5. When Uhf rises to a certain value, obtain Uhf and Ugf. If |Uhf-Ugf|>20V, report that the main negative relay K4 of BAT2 is sticky; otherwise, close K4; when |Uhf-Ugf|<20V, determine that K4 is normally open.
[0081] 6. Close the main positive relay K3 of BAT2 to complete the power-on of BAT2. At this time, DCDC is converted to the forward step-down condition of the voltage converter. At this time, BAT1 and BAT2 will output current. The current values detected by the current sensor and current sensor 2 can be used to confirm whether K1 and K3 are closed correctly.
[0082] In summary, the dual battery pack relay control method has the following beneficial effects: (1) the control and diagnosis of the relay is achieved by utilizing the existing voltage sampling points and sensors of the whole machine, without adding any cost, cables and weight, and without adding additional failure points; (2) the number of times the relay is closed is not increased, which will not affect the service life of the relay.
[0083] In this embodiment, a control device for a dual battery pack relay is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0084] This embodiment provides a control device for a dual battery pack relay, such as Figure 6 As shown, including:
[0085] The first battery pack control module 601 is used to close the main negative relay of the first battery pack after the voltage converter is reversely pre-charged.
[0086] The first battery pack control module 602 is further configured to close the main positive relay of the first battery pack after the main negative relay of the first battery pack is powered on successfully.
[0087] The second battery pack control module 603 is used to close the main negative relay of the second battery pack.
[0088] The second battery pack control module 604 is further configured to close the main positive relay of the second battery pack after the main negative relay of the second battery pack is powered on successfully.
[0089] The current acquisition module 605 is used to control the voltage converter to perform forward voltage reduction, and to acquire a first current value detected by the first current sensor and a second current value detected by the second current sensor.
[0090] The judgment module 606 is used to determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully according to the first current value and the second current value.
[0091] In some optional embodiments, the judgment module 606 is specifically used to: judge whether the first current value is greater than a preset first threshold value; when the first current value is greater than the first threshold value, determine that the main positive relay of the first battery pack is powered on successfully; judge whether the second current value is greater than a preset second threshold value; when the second current value is greater than the second threshold value, determine that the main positive relay of the second battery pack is powered on successfully.
[0092] In some optional embodiments, the control device of the dual battery pack relay includes a voltage loading module. Before obtaining the first current value detected by the first current sensor and the second current value detected by the second current sensor, the voltage loading module is used to: voltage load a certain current.
[0093] In some optional embodiments, the control device of the dual battery pack relay further includes a fault elimination module. Before closing the main negative relay of the first battery pack, the fault elimination module is used to: obtain a first voltage Ucb between the first terminal c of the main negative relay of the first battery pack and the second terminal b of the main positive relay of the first battery pack; obtain a second voltage Ubd between the second terminal d of the main negative relay of the first battery pack and the second terminal b of the main positive relay of the first battery pack; and determine whether the main negative relay of the first battery pack is stuck according to the first voltage Ucb and the second voltage Ubd.
[0094] In some optional embodiments, the troubleshooting module is specifically used to: calculate the absolute value of the difference between the first voltage Ucb and the second voltage Ubd; determine whether the absolute value of the difference between the first voltage Ucb and the second voltage Ubd is greater than a preset third threshold; when the absolute value of the difference between the first voltage Ucb and the second voltage Ubd is greater than the third threshold, determine that the main negative relay of the first battery pack is not stuck, otherwise, determine that the main negative relay of the first battery pack is stuck.
[0095] In some optional embodiments, before closing the main negative relay of the first battery pack, the troubleshooting module is used to: obtain a third voltage Uca between the first end a of the main positive relay of the first battery pack and the first end c of the main negative relay of the first battery pack; obtain a fourth voltage Ucb between the second end b of the main positive relay of the first battery pack and the first end c of the main negative relay of the first battery pack; and determine whether the main positive relay of the first battery pack is stuck based on the third voltage Uca and the fourth voltage Ucb.
[0096] In some optional embodiments, the troubleshooting module is specifically used to: when the third voltage Uca is different from the fourth voltage Ucb, determine that the main positive relay of the first battery pack is not stuck; otherwise, determine that the main positive relay of the second battery pack is stuck.
[0097] In some optional embodiments, after closing the main negative relay of the first battery pack, the judgment module 606 is further used to: obtain the voltage between the first terminal c of the main negative relay of the first battery pack and the second terminal b of the main positive relay of the first battery pack to obtain a fifth voltage Ucb; obtain the voltage between the second terminal d of the main negative relay of the first battery pack and the second terminal b of the main positive relay of the first battery pack to obtain a sixth voltage Ubd; determine whether the absolute value of the difference between the fifth voltage Ucb and the sixth voltage Ubd is less than a third threshold value; when the absolute value of the difference between the fifth voltage Ucb and the sixth voltage Ubd is greater than the third threshold value, determine that the main negative relay of the first battery pack is powered on successfully.
[0098] In some optional embodiments, before closing the main negative relay of the second battery pack, the troubleshooting module is used to: obtain the voltage between the first terminal h of the main negative relay of the second battery pack and the first terminal f of the main positive relay of the second battery pack to obtain a seventh voltage Uhf; obtain the voltage between the second terminal g of the main negative relay of the second battery pack and the first terminal f of the main positive relay of the second battery pack to obtain an eighth voltage Ugf; determine whether the main negative relay of the second battery pack is stuck based on the seventh voltage Uhf and the eighth voltage Ugf.
[0099] In some optional embodiments, the troubleshooting module is specifically used to: calculate the absolute value of the difference between the seventh voltage Uhf and the eighth voltage Ugf; determine whether the absolute value of the difference between the seventh voltage Uhf and the eighth voltage Ugf is greater than a preset fourth threshold; when the absolute value of the difference between the seventh voltage Uhf and the eighth voltage Ugf is greater than the fourth threshold, determine that the main negative relay of the second battery pack is not stuck, otherwise, determine that the main negative relay of the second battery pack is stuck.
[0100] In some optional embodiments, before closing the main negative relay of the second battery pack, the troubleshooting module is used to: obtain the voltage between the first terminal f of the main positive relay of the second battery pack and the second terminal g of the main negative relay of the second battery pack to obtain a ninth voltage Ugf; obtain the voltage between the second terminal e of the main positive relay of the second battery pack and the second terminal g of the main negative relay of the second battery pack to obtain a tenth voltage Uge; determine whether the main positive relay of the second battery pack is stuck based on the ninth voltage Ugf and the tenth voltage Uge.
[0101] In some optional embodiments, the troubleshooting module is specifically used to: when the ninth voltage Ugf is different from the tenth voltage Uge, determine that the main positive relay of the second battery pack is not stuck; otherwise, determine that the main positive relay of the second battery pack is stuck.
[0102] In some optional embodiments, after closing the main negative relay of the second battery pack, the judgment module is also used to: obtain the voltage between the first terminal h of the main negative relay of the second battery pack and the first terminal f of the main positive relay of the second battery pack to obtain an eleventh voltage Uhf; obtain the voltage between the second terminal g of the main negative relay of the second battery pack and the first terminal f of the main positive relay of the second battery pack to obtain a twelfth voltage Ugf; judge whether the absolute value of the difference between the eleventh voltage Uhf and the twelfth voltage Ugf is less than a fourth threshold; when the absolute value of the difference between the eleventh voltage Uhf and the twelfth voltage Ugf is less than the fourth threshold, it is determined that the main negative relay of the second battery pack is powered on successfully.
[0103] In some optional embodiments, the control device of the dual battery pack relay also includes a voltage converter reverse pre-charge control module. After the voltage converter reverse pre-charges, the voltage converter reverse pre-charge control module is used to: when the voltage converter reverse pre-charge duration reaches the preset fifth threshold, obtain the voltage between the second end d of the main negative relay of the first battery pack and the second end b of the main positive relay of the first battery pack to obtain the thirteenth voltage Ubd; obtain the voltage between the first end h of the main negative relay of the second battery pack and the first end f of the main positive relay of the second battery pack to obtain the fourteenth voltage Uhf; when the thirteenth voltage Ubd is less than the preset fifth threshold and / or the fourteenth voltage Ubd is less than the fifth threshold, issue a prompt message that the voltage converter reverse pre-charge has timed out.
[0104] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0105] The control device of the dual battery pack relay in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0106] The embodiment of the present invention also provides a computer device having the above Figure 6 The control device of the dual battery pack relay is shown.
[0107] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0108] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0109] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0110] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0111] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0112] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0113] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0114] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0115] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0116] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A control method for a dual battery pack relay, characterized in that: include: After the voltage converter is reversely precharged, closing the main negative relay of the first battery pack; After the main negative relay of the first battery pack is powered on successfully, closing the main positive relay of the first battery pack; Close the main negative relay of the second battery pack; After the main negative relay of the second battery pack is powered on successfully, closing the main positive relay of the second battery pack; Controlling the voltage converter to step down the voltage in the forward direction, and obtaining a first current value detected by a first current sensor and a second current value detected by a second current sensor; Whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully is determined according to the first current value and the second current value.
2. The method according to claim 1, characterized in that Determining whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully according to the first current value and the second current value includes: Determining whether the first current value is greater than a preset first threshold; When the first current value is greater than the first threshold, it is determined that the main positive relay of the first battery pack is powered on successfully; Determining whether the second current value is greater than a preset second threshold; When the second current value is greater than the second threshold, it is determined that the main positive relay of the second battery pack is powered on successfully.
3. The method according to claim 1, characterized in that Before acquiring the first current value detected by the first current sensor and the second current value detected by the second current sensor, the method further includes: Control the motor operation.
4. The method according to claim 1, characterized in that: Before closing the main negative relay of the first battery pack, the method further includes: Obtain a voltage between a first end of a main negative relay of the first battery pack and a second end of a main positive relay of the first battery pack to obtain a first voltage; obtain a voltage between a second end of a main negative relay of the first battery pack and a second end of a main positive relay of the first battery pack to obtain a second voltage; determine whether the main negative relay of the first battery pack is stuck according to the first voltage and the second voltage; And / or, obtain the voltage between the first end of the main positive relay of the first battery pack and the first end of the main negative relay of the first battery pack to obtain a third voltage; obtain the voltage between the second end of the main positive relay of the first battery pack and the first end of the main negative relay of the first battery pack to obtain a fourth voltage; determine whether the main positive relay of the first battery pack is stuck based on the third voltage and the fourth voltage.
5. The method according to claim 4, characterized in that: The determining whether the main negative relay of the first battery pack is stuck according to the first voltage and the second voltage includes: calculating the absolute value of the difference between the first voltage and the second voltage; judging whether the absolute value of the difference between the first voltage and the second voltage is greater than a preset third threshold; when the absolute value of the difference between the first voltage and the second voltage is greater than the third threshold, judging that the main negative relay of the first battery pack is not stuck, otherwise, judging that the main negative relay of the first battery pack is stuck; And / or, determining whether the main positive relay of the first battery pack is stuck based on the third voltage and the fourth voltage includes: when the third voltage is different from the fourth voltage, determining that the main positive relay of the first battery pack is not stuck; otherwise, determining that the main positive relay of the second battery pack is stuck.
6. The method according to claim 4, characterized in that After closing the main negative relay of the first battery pack, the method further includes: Continue to obtain a voltage between a first end of the main negative relay of the first battery pack and a second end of the main positive relay of the first battery pack to obtain a fifth voltage; Continue to obtain a voltage between the second end of the main negative relay of the first battery pack and the second end of the main positive relay of the first battery pack to obtain a sixth voltage; determining whether an absolute value of a difference between the fifth voltage and the sixth voltage is less than a third threshold; When the absolute value of the difference between the fifth voltage and the sixth voltage is smaller than the third threshold, it is determined that the main negative relay of the first battery pack is powered on successfully.
7. The method according to claim 1, characterized in that Before closing the main negative relay of the second battery pack, the method further includes: Obtaining a voltage between a first end of a main negative relay of the second battery pack and a first end of a main positive relay of the second battery pack to obtain a seventh voltage; obtaining a voltage between a second end of the main negative relay of the second battery pack and a first end of a main positive relay of the second battery pack to obtain an eighth voltage; determining whether the main negative relay of the second battery pack is stuck according to the seventh voltage and the eighth voltage; And / or, obtain the voltage between the first end of the main positive relay of the second battery pack and the second end of the main negative relay of the second battery pack to obtain a ninth voltage; obtain the voltage between the second end of the main positive relay of the second battery pack and the second end of the main negative relay of the second battery pack to obtain a tenth voltage; determine whether the main positive relay of the second battery pack is stuck based on the ninth voltage and the tenth voltage.
8. The method according to claim 7, characterized in that: The determining whether the main negative relay of the second battery pack is stuck according to the seventh voltage and the eighth voltage includes: calculating the absolute value of the difference between the seventh voltage and the eighth voltage; judging whether the absolute value of the difference between the seventh voltage and the eighth voltage is greater than a preset fourth threshold; when the absolute value of the difference between the seventh voltage and the eighth voltage is greater than the fourth threshold, judging that the main negative relay of the second battery pack is not stuck, otherwise, judging that the main negative relay of the second battery pack is stuck; And / or, determining whether the main positive relay of the second battery pack is stuck based on the ninth voltage and the tenth voltage includes: when the ninth voltage is different from the tenth voltage, determining that the main positive relay of the second battery pack is not stuck; otherwise, determining that the main positive relay of the second battery pack is stuck.
9. The method according to claim 7, characterized in that: After closing the main negative relay of the second battery pack, the method further includes: Continue to obtain a voltage between the first end of the main negative relay of the second battery pack and the first end of the main positive relay of the second battery pack to obtain an eleventh voltage; Continue to obtain a voltage between the second end of the main negative relay of the second battery pack and the first end of the main positive relay of the second battery pack to obtain a twelfth voltage; determining whether an absolute value of a difference between the eleventh voltage and the twelfth voltage is less than a fourth threshold; When the absolute value of the difference between the eleventh voltage and the twelfth voltage is smaller than the fourth threshold, it is determined that the main negative relay of the second battery pack is powered on successfully.
10. The method according to claim 1, characterized in that After the voltage converter is reversely precharged, it also includes: When the reverse pre-charge time of the voltage converter reaches a preset fifth threshold, a voltage between the second end of the main negative relay of the first battery pack and the second end of the main positive relay of the first battery pack is obtained to obtain a thirteenth voltage; a voltage between the first end of the main negative relay of the second battery pack and the first end of the main positive relay of the second battery pack is obtained to obtain a fourteenth voltage; When the thirteenth voltage is less than a preset fifth threshold value and / or the fourteenth voltage is less than the fifth threshold value, a prompt message indicating that the reverse pre-charging of the voltage converter has timed out is issued.
11. A control device for a dual battery pack relay, characterized in that: include: A first battery pack control module, configured to close a main negative relay of the first battery pack after reverse precharging of the voltage converter; The first battery pack control module is further configured to close the main positive relay of the first battery pack after the main negative relay of the first battery pack is powered on successfully; A second battery pack control module, used for closing the main negative relay of the second battery pack; The second battery pack control module is further used to close the main positive relay of the second battery pack after the main negative relay of the second battery pack is powered on successfully; A current acquisition module, used for controlling the voltage converter to step down in a forward direction, and acquiring a first current value detected by a first current sensor and a second current value detected by a second current sensor; A judgment module is used to determine whether the main positive relay of the first battery pack and the main positive relay of the second battery pack are powered on successfully according to the first current value and the second current value.
12. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the control method of the dual battery pack relay according to any one of claims 1 to 10 by executing the computer instructions.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the control method of the dual battery pack relay according to any one of claims 1 to 10.
14. A computer program product, characterized in that The invention comprises computer instructions for causing a computer to execute the control method of the dual battery pack relay according to any one of claims 1 to 10.