Search

CN-116466642-B - High-voltage relay control method and device, electronic equipment and medium

CN116466642BCN 116466642 BCN116466642 BCN 116466642BCN-116466642-B

Abstract

The invention discloses a control method, a device, electronic equipment and a medium for a high-voltage relay, which relate to the field of control of the high-voltage relay, acquire target parameters of a plurality of branch high-voltage relays detected by a battery high-voltage distribution box, judge whether adhesion conditions occur in each branch high-voltage relay by utilizing the target parameters, and control a main positive relay and a main negative relay not to be closed when the branch high-voltage relays are electrified secondarily by utilizing the target parameters if the adhesion conditions occur in the branch high-voltage relays. When the adhesion condition of the branch high-voltage relays is realized, if the branch high-voltage relays are electrified for the second time, the main positive relay and the main negative relay can be accurately controlled not to be closed, so that the adhesion phenomenon of the main positive relay and the main negative relay can not occur, and the safety of a new energy vehicle is further ensured.

Inventors

  • XUE RONG
  • ZHANG HUAN
  • GONG MINGJIA
  • LU CHENGCHUN

Assignees

  • 安徽华菱汽车有限公司

Dates

Publication Date
20260508
Application Date
20230508

Claims (9)

  1. 1. A method of controlling a high voltage relay, comprising: acquiring target parameters of a plurality of branch high-voltage relays detected by a battery high-voltage distribution box; judging whether the high-voltage relay of each branch circuit has adhesion or not by utilizing each target parameter; if adhesion occurs in each branch high-voltage relay, the main positive relay and the main negative relay are controlled to be not closed by utilizing the target parameters when each branch high-voltage relay is electrified for the second time; the target parameters are state parameters of a plurality of branch high-voltage relays detected by the battery high-voltage distribution box; wherein, the judging whether the adhesion condition occurs in each branch high-voltage relay by using each target parameter comprises the following steps: Coding each state parameter to obtain a corresponding state code; judging whether the state code is the same as the standard state code or not; if the state code is the same as the standard state code, judging that the high-voltage relay of each branch circuit has adhesion; The method for controlling the main positive relay and the main negative relay to be not closed when the high-voltage relay of each branch is electrified for the second time by utilizing the target parameters comprises the following steps: when the high-voltage relay of each branch is electrified for the second time, the data of the state bit of the high-voltage relay of the branch is read and stored through the whole vehicle controller; if the situation that the branch high-voltage relay is adhered is judged, a severe fault processing mechanism is executed, a high-voltage instruction is refused to be sent to the BMS, and the main positive relay and the main negative relay are controlled to be not closed.
  2. 2. The method for controlling a high-voltage relay according to claim 1, wherein obtaining target parameters of the plurality of branch high-voltage relays detected by the battery high-voltage distribution box comprises: generating a parameter detection instruction, and sending the parameter detection instruction to a battery high-voltage distribution box through a local preset output port based on a CAN protocol; Judging whether target parameters of a plurality of branch high-voltage relays returned by the battery high-voltage distribution box are received or not; And if the target parameters are received, triggering the step of judging whether the adhesion condition of each branch high-voltage relay occurs by utilizing each target parameter.
  3. 3. The high voltage relay control method according to claim 2, further comprising, after said determining whether the target parameter returned by the battery high voltage distribution box is received: And if the target parameter is not received, re-jumping to the step of sending the parameter detection instruction to the battery high-voltage distribution box through a local preset output port based on the CAN protocol until a preset instruction sending stopping condition is met, and stopping sending the parameter detection instruction.
  4. 4. The control method of a high-voltage relay according to claim 3, wherein the preset command stop transmission conditions include a first command stop transmission condition that the target parameter has been currently received and the number of times the parameter detection command has been transmitted is smaller than a preset number, and a second command stop transmission condition that the target parameter has not been received for none of the preset number of times in succession.
  5. 5. The method for controlling a high voltage relay according to claim 1, wherein the step of obtaining the target parameters of the plurality of branch high voltage relays detected by the battery high voltage distribution box comprises the steps of: and acquiring state parameters of the plurality of branch high-voltage relays detected by the battery high-voltage distribution box.
  6. 6. The high-voltage relay control method according to any one of claims 1 to 5, characterized by further comprising, after said controlling the main positive relay and the main negative relay with the target parameter not to close at the time of secondary power-up of each of the branch high-voltage relays: storing each target parameter in a preset storage area, and monitoring whether each branch high-voltage relay is replaced or not; if the fact that each branch high-voltage relay is replaced is monitored, receiving new target parameters of the replaced branch high-voltage relays, and judging whether the replaced branch high-voltage relays still have adhesion or not by utilizing the new target parameters; And if the replaced high-voltage relays of the branches are not adhered, deleting the target parameters stored in the preset storage area, and controlling the main positive relay and the main negative relay to be closed by utilizing the new target parameters.
  7. 7. A high voltage relay control apparatus, comprising: The parameter acquisition module is used for acquiring target parameters of the plurality of branch high-voltage relays detected by the battery high-voltage distribution box; the judging module is used for judging whether the high-voltage relay of each branch circuit has adhesion or not by utilizing each target parameter; The relay control module is used for controlling the main positive relay and the main negative relay to be not closed when the high-voltage relays of the branches are electrified for the second time by utilizing the target parameters when the adhesion condition occurs in the high-voltage relays of the branches; the target parameters are state parameters of a plurality of branch high-voltage relays detected by the battery high-voltage distribution box; The high-voltage relay control device is specifically used for coding each state parameter to obtain a corresponding state code, judging whether the state code is the same as a standard state code or not, and judging that each branch high-voltage relay has adhesion if the state code is the same as the standard state code; The high-voltage relay control device is particularly used for reading data of the state bit of the high-voltage relay of the storage branch through the whole vehicle controller when the high-voltage relay of each branch is electrified for the second time, executing a serious fault processing mechanism if the adhesion condition of the high-voltage relay of the branch is judged, refusing to send an upper high-voltage instruction to the BMS, and controlling the main positive relay and the main negative relay not to be closed.
  8. 8. An electronic device, comprising: A memory for storing a computer program; A processor for implementing the steps of the high voltage relay control method according to any one of claims 1 to 6 when executing the computer program.
  9. 9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the high-voltage relay control method according to any one of claims 1 to 6.

Description

High-voltage relay control method and device, electronic equipment and medium Technical Field The invention relates to the field of high-voltage relay control, in particular to a high-voltage relay control method, a high-voltage relay control device, electronic equipment and a medium. Background After the high-voltage relay of each branch is adhered, the secondary high voltage leads to the problem that the high-voltage relay (the main positive relay and the main negative relay) in the battery high-voltage distribution box is also adhered. At present, when a new energy vehicle encounters the adhesion condition of a branch high-voltage relay, during secondary power-on, a VCU (Vehicle control unit, a vehicle control unit) can judge whether to send a high-voltage instruction to a BMS (Battery MANAGEMENT SYSTEM) according to the state of each branch high-voltage relay, so that the adhesion condition of the high-voltage relay (a main positive relay and a main negative relay) in a Battery high-voltage distribution box is avoided, the PDU (Power Distribution Unit, the high-voltage distribution box) cannot be detected at the moment of power-on, and the adhesion detection delay condition is required to be generated only at the high voltage, and the adhesion of the high-voltage relay (the main positive relay and the main negative relay) in the high-voltage distribution box is caused. Disclosure of Invention The invention aims to provide a control method, a device, electronic equipment and a medium of a high-voltage relay, which realize that when a plurality of branch high-voltage relays are subjected to adhesion, if the plurality of branch high-voltage relays are electrified for the second time, the main positive relay and the main negative relay can be accurately controlled not to be closed, so that the adhesion phenomenon of the main positive relay and the main negative relay can not occur, and the safety of a new energy vehicle is further ensured. In order to solve the technical problems, the invention provides a control method of a high-voltage relay, which comprises the following steps: obtaining target parameters of a plurality of branch high-voltage relays detected by a high-voltage distribution box; judging whether the high-voltage relay of each branch circuit has adhesion or not by utilizing each target parameter; and if the adhesion condition occurs in each branch high-voltage relay, controlling the main positive relay and the main negative relay to be not closed when each branch high-voltage relay is electrified for the second time by utilizing the target parameters. Preferably, acquiring target parameters of a plurality of branch high-voltage relays detected by a high-voltage distribution box includes: Generating a parameter detection instruction, and sending the parameter detection instruction to a high-voltage distribution box through a local preset output port based on a CAN protocol; judging whether target parameters of a plurality of branch high-voltage relays returned by the high-voltage distribution box are received or not; And if the target parameters are received, triggering the step of judging whether the adhesion condition of each branch high-voltage relay occurs by utilizing each target parameter. Preferably, after the determining whether the target parameter returned by the high-voltage distribution box is received, the method further includes: And if the target parameter is not received, re-jumping to the step of sending the parameter detection instruction to the high-voltage distribution box through a local preset output port based on the CAN protocol until a preset instruction sending stopping condition is met, and stopping sending the parameter detection instruction. Preferably, the preset instruction stop sending conditions include a first instruction stop sending condition and a second instruction stop sending condition, wherein the first instruction stop sending condition is that the target parameter is received currently and the number of times the parameter detection instruction is sent currently is smaller than a preset number, and the second instruction stop sending condition is that the target parameter is not received continuously for the preset number of times. Preferably, the acquiring the target parameters of the plurality of branch high-voltage relays detected by the high-voltage distribution box includes: and acquiring state parameters of the branch high-voltage relays detected by the high-voltage distribution box. Preferably, the determining whether the adhesion condition occurs in each of the branch high-voltage relays by using each of the target parameters includes: Coding each state parameter to obtain a corresponding state code; judging whether the state code is the same as the standard state code or not; and if the state code is the same as the standard state code, judging that the high-voltage relay of each branch circuit has adhesion. Preferably, after the controlling