CN110456773B - Method for setting fault threshold of load current - Google Patents

Method for setting fault threshold of load current Download PDF

Info

Publication number
CN110456773B
CN110456773B CN201910749193.3A CN201910749193A CN110456773B CN 110456773 B CN110456773 B CN 110456773B CN 201910749193 A CN201910749193 A CN 201910749193A CN 110456773 B CN110456773 B CN 110456773B
Authority
CN
China
Prior art keywords
load
bcm
current
rated
calibration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910749193.3A
Other languages
Chinese (zh)
Other versions
CN110456773A (en
Inventor
代鹏
王高举
颜江
廖宗贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Commercial Vehicle Co Ltd
Original Assignee
Dongfeng Commercial Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Commercial Vehicle Co Ltd filed Critical Dongfeng Commercial Vehicle Co Ltd
Priority to CN201910749193.3A priority Critical patent/CN110456773B/en
Publication of CN110456773A publication Critical patent/CN110456773A/en
Application granted granted Critical
Publication of CN110456773B publication Critical patent/CN110456773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A method for setting a fault threshold of a load current comprises the following steps: the first step is as follows: installing, namely connecting a BCM with a set value with a Valuelan through a CAN (controller area network) line, connecting a USB (universal serial bus) line of the Valuelan with an industrial personal computer, and connecting a load signal output end of the BCM with a corresponding analog load in a load box through a hard line; the second step is that: a brushing-in calibration procedure; the third step: calibrating, acquiring and storing rated power; the fourth step: swiping an application program; the fifth step: and calculating a fault threshold value after loading. The design not only enables the BCM to detect the load current of the load, effectively improves the control precision of the BCM, avoids the fault false alarm condition, but also is convenient for parameter change, and software does not need to be released again for adaptation.

Description

Method for setting fault threshold of load current
Technical Field
The invention relates to a method for setting a fault threshold of load current, which is particularly suitable for brushing rated current of a load through equipment and simplifying programming steps of a BCM (binary coded modulation).
Background
An important function of a BCM (vehicle body control unit) is to complete vehicle body electrical appliance control and fault diagnosis, including vehicle interior/exterior lights, wiper motors, washing motors, electromagnetic valves and the like, and real-time monitoring of the electrical loads can be realized through the BCM, whether the loads work normally or not can be diagnosed, and when a fault occurs, the loads are protected and relevant fault codes are broadcasted to an instrument.
When diagnosing a load, the BCM mainly determines the current working current, i.e., power, of the load. In the prior art, the load rated power and the power in a fault state are usually set in a controller as a group of parameters in advance, and used as a threshold value for diagnosis and judgment, and all the controllers adopt the same group of parameters for diagnosis and judgment.
The invention patent with Chinese patent publication number CN106325265A and publication date of 2017, 1, 11 discloses a fault diagnosis circuit and a method of an automobile body control module, wherein the circuit comprises a sampling resistor connected with a relay contact end in series; VBAT provides power supply for the load through the relay; the relay contact end and the midpoint of the sampling resistor are connected with an operational amplifier circuit; the output of the operational amplifier circuit is connected with an ADC port of the CPU and is used for collecting the working current of a load to judge the open-circuit fault or overload fault of the circuit; the output of the operational amplifier circuit is connected with the comparator circuit at the same time; the output of the comparator circuit is connected with the IO port of the CPU and used for capturing rising edge interruption to judge the short circuit fault of the circuit. Although the invention can realize the fault diagnosis of the load, the following defects still exist:
because certain errors exist in electronic components and hardware circuits, different BCM modules drive the same power load, feedback current passes through a hardware acquisition circuit and is converted by an AD module of an MCU (micro control unit) to obtain different sampling results, which are individual differences of different controllers, and under the same diagnosis parameters, the differences possibly cause interference to diagnosis result judgment and serious fault false alarm. On the other hand, when the load characteristics change, for example, the load power changes, the diagnostic parameters need to be redefined, and the software needs to be redistributed for adaptation.
Disclosure of Invention
The invention aims to overcome the problem of larger error of the set threshold value in the prior art, and provides a method for setting the fault threshold value of the load current with high accuracy.
In order to achieve the above purpose, the technical solution of the invention is as follows:
a method for setting a fault threshold of a load current comprises the following steps:
the first step is as follows: installing, namely connecting the BCM with the setting with a Valuelan through a CAN (controller area network) line, connecting a USB (universal serial bus) line of the Valuelan with an industrial personal computer, and connecting a load signal output end of the BCM with a corresponding analog load in a load box through a hard line, wherein the flash pre-installation of the BCM is finished at the moment;
the second step is that: a calibration program is input, and a Valuelan is used by the industrial personal computer to input a power calibration program to the BCM through a CAN line;
the third step: rated power calibration, collection and storage, wherein ValueCAN for an industrial personal computer sends a calibration instruction to a BCM through a CAN line until a CAN bus signal collection processing module of the BCM receives the calibration instruction, the BCM receives the calibration instruction and then drives each channel of a load driving output module of the BCM to sequentially drive a load box to output by a rated load, at the moment, a power collection module of the BCM collects current of the rated load during working, a data storage module of the BCM stores the collected rated current data of each load into a fixed address of a nonvolatile memory, and until all the loads finish testing and data storage, the CAN bus signal collection processing module of the BCM sends a calibration completion instruction to the industrial personal computer and carries out the next step;
the fourth step: the method comprises the steps that an application program is brushed, after an industrial personal computer receives a calibration completion instruction, the application program is brushed into a BCM through a CAN line by using Valuelan, and the application program contains a fault threshold value calculation module and is responsible for calculating and monitoring the fault threshold value;
the fifth step: when the BCM1 works normally, the BCM reads the rated current of each load from the data storage module every time the BCM is initialized and electrified, the failure threshold value calculation module of the BCM calculates the threshold current of each load in the failure mode according to the read rated current of each load and stores the threshold current into the fixed address of the nonvolatile memory, and at this moment, the setting of the failure threshold value is completed.
And the rated power of the simulated load in the load box is the same as the rated power of the corresponding equipment on the vehicle.
In the third step, after receiving the calibration instruction, the BCM1 drives the load box 4 to output a rated load by using a load driving output module of the BCM1, that is, the BCM1 sequentially drives each load interface to output, each output is maintained for 3 seconds, after the output is stable, a feedback voltage value corresponding to the analog load is read, a rated current is calculated, and the rated current is stored in a corresponding address space and used as a reference parameter for fault diagnosis.
Compared with the prior art, the invention has the beneficial effects that:
1. according to the method for setting the fault threshold of the load current, the BCM is enabled to detect the load current of the load by using the calibration program and the load box, and the corresponding fault threshold is set according to the detection, so that the detection error of the BCM controller caused by individual difference is avoided, the control fault diagnosis precision of the BCM is improved, and the fault false alarm condition is avoided. Therefore, the BCM can detect the load current of the load by itself, the control precision of the BCM is effectively improved, and the condition of fault false alarm is avoided.
2. According to the method for setting the load current fault threshold, when the load characteristics of the real vehicle change, for example, the load power changes, the fault threshold of the BCM can be updated only by adjusting the corresponding simulated load parameters in the load box, the diagnostic parameters do not need to be redefined, software is redistributed for adaptation, the software development, test and distribution period is shortened, and the labor cost is saved. Therefore, the design parameters are convenient to change, and the software does not need to be released again for adaptation.
Drawings
Fig. 1 is a schematic view of the installation in the first step of the invention.
Fig. 2 is a control flow chart of the second step to the fourth step of the present invention.
Fig. 3 is a control flow chart of the fifth step of the present invention.
In the figure: BCM1, industrial personal computer 2, ValueCAN3 and load box 4.
Detailed Description
The present invention will be described in further detail with reference to the following description and embodiments in conjunction with the accompanying drawings.
Referring to fig. 1 to 3, a method for setting a fault threshold of a load current includes the following steps:
the first step is as follows: installing, namely connecting the BCM1 with setting with a Valuelan 3 through a CAN (controller area network) line, connecting a USB (universal serial bus) line of the Valuelan 3 with the industrial personal computer 2, and connecting a load signal output end of the BCM1 with a corresponding analog load in the load box 4 through a hard line, wherein at the moment, the flash pre-installation of the BCM1 is finished;
the second step is that: a calibration program is brushed in, and the industrial personal computer 2 brushes a power calibration program into the BCM1 through a CAN line by using ValueCAN 3;
the third step: rated power calibration, collection and storage, wherein an industrial personal computer 2 sends a calibration instruction to a BCM1 through a CAN (controller area network) line by using Valuelan 3 until a CAN bus signal collection processing module of the BCM1 receives the calibration instruction, after the BCM1 receives the calibration instruction, each channel of a load drive output module of the BCM1 sequentially drives a load box 4 to output at a rated load, at the moment, a power collection module of a BCM1 collects the current of the rated load during working, a data storage module of a BCM1 stores the collected rated current data of each load into a fixed address of a nonvolatile memory, and until all loads finish testing and data storage, the CAN bus signal collection processing module of the BCM1 sends a calibration completion instruction to the industrial personal computer 2 and carries out the next step;
the fourth step: an application program is brushed, after the industrial personal computer receives a calibration completion instruction, the application program is brushed into the BCM1 through a ValueCAN3 through a CAN line, and the application program contains a fault threshold value calculation module and is responsible for calculating and monitoring the fault threshold value;
the fifth step: when the BCM1 works normally, each time the BCM1 starts to power on, the rated current of each load is read from the data storage module, and the failure threshold value calculation module of the BCM1 calculates the threshold current of each load in the failure mode according to the read rated current of each load and stores the threshold current into the fixed address of the nonvolatile memory, and at this moment, the setting of the failure threshold value is completed.
The power rating of the simulated load in the load box 4 is the same as the power rating of the corresponding device on the vehicle.
In the third step, after receiving the calibration instruction, the BCM1 drives the load box 4 to output a rated load by using a load driving output module of the BCM1, that is, the BCM1 sequentially drives each load interface to output, each output is maintained for 3 seconds, after the output is stable, a feedback voltage value corresponding to the analog load is read, a rated current is calculated, and the rated current is stored in a corresponding address space and used as a reference parameter for fault diagnosis.
The principle of the invention is illustrated as follows:
BCM 1: a vehicle body controller; ValueCAN 3: CAN changes USB interface.
Example 1:
a method for setting a fault threshold of a load current comprises the following steps:
the first step is as follows: installing, namely connecting the BCM1 with setting with a Valuelan 3 through a CAN (controller area network) line, connecting a USB (universal serial bus) line of the Valuelan 3 with the industrial personal computer 2, and connecting a load signal output end of the BCM1 with a corresponding analog load in the load box 4 through a hard line, wherein at the moment, the flash pre-installation of the BCM1 is finished;
the second step is that: a calibration program is brushed in, and the industrial personal computer 2 brushes a power calibration program into the BCM1 through a CAN line by using ValueCAN 3;
the third step: rated power calibration, collection and storage, wherein an industrial personal computer 2 sends a calibration instruction to a BCM1 through a CAN (controller area network) line by using Valuelan 3 until a CAN bus signal collection processing module of the BCM1 receives the calibration instruction, after the BCM1 receives the calibration instruction, each channel of a load drive output module of the BCM1 sequentially drives a load box 4 to output at a rated load, at the moment, a power collection module of a BCM1 collects the current of the rated load during working, a data storage module of a BCM1 stores the collected rated current data of each load into a fixed address of a nonvolatile memory, and until all loads finish testing and data storage, the CAN bus signal collection processing module of the BCM1 sends a calibration completion instruction to the industrial personal computer 2 and carries out the next step;
the fourth step: an application program is brushed, after the industrial personal computer receives a calibration completion instruction, the application program is brushed into the BCM1 through a ValueCAN3 through a CAN line, and the application program contains a fault threshold value calculation module and is responsible for calculating and monitoring the fault threshold value;
the fifth step: when the BCM1 works normally, each time the BCM1 starts to power on, the rated current of each load is read from the data storage module, and the failure threshold value calculation module of the BCM1 calculates the threshold current of each load in the failure mode according to the read rated current of each load and stores the threshold current into the fixed address of the nonvolatile memory, and at this moment, the setting of the failure threshold value is completed.
Example 2:
example 2 is substantially the same as example 1 except that:
the rated power of the simulated load in the load box 4 is the same as the rated power of the corresponding equipment on the vehicle; in the third step, after receiving the calibration instruction, the BCM1 drives the load box 4 to output a rated load by using a load driving output module of the BCM1, that is, the BCM1 sequentially drives each load interface to output, each output is maintained for 3 seconds, after the output is stable, a feedback voltage value corresponding to the analog load is read, a rated current is calculated, and the rated current is stored in a corresponding address space and used as a reference parameter for fault diagnosis.

Claims (3)

1. A method for setting a load current fault threshold is characterized in that:
the method for setting the fault threshold value comprises the following steps:
the first step is as follows: installing, namely connecting the BCM (1) with the setting with a Valuelan (3) through a CAN (controller area network) line, connecting a USB (universal serial bus) line of the Valuelan (3) with an industrial personal computer (2), and connecting a load signal output end of the BCM (1) with a corresponding analog load in a load box (4) through a hard line, wherein at the moment, the flash pre-installation of the BCM (1) is completed;
the second step is that: a calibration program is brushed in, and an industrial personal computer (2) brushes a power calibration program into the BCM (1) through a CAN (controller area network) line by using a ValueCAN (3);
the third step: rated power calibration, collection and storage, wherein an industrial personal computer (2) sends a calibration instruction to a BCM (1) through a CAN (controller area network) line by using a ValueCAN (3) until a CAN bus signal collection processing module of the BCM (1) receives the calibration instruction, after the BCM (1) receives the calibration instruction, each channel of a load drive output module of the BCM (1) sequentially drives a load box (4) to output by a rated load, at the moment, a power collection module of the BCM (1) collects current when the rated load works, a data storage module of the BCM (1) stores collected rated current data of each load into a fixed address of a nonvolatile memory, and until all loads finish testing and data storage, the CAN bus signal collection processing module of the BCM (1) sends a calibration completion instruction to the industrial personal computer (2) and carries out the next step;
the fourth step: an application program is brushed, after the industrial personal computer receives a calibration completion instruction, the application program is brushed into the BCM (1) through a ValueCAN (3) through a CAN line, and the application program comprises a fault threshold calculation module and is responsible for calculating and monitoring a fault threshold;
the fifth step: when the BCM (1) works normally, the BCM (1) reads the rated current of each load from the data storage module every time power is initialized, the fault threshold value calculation module of the BCM (1) calculates the threshold current of each load in the fault mode according to the read rated current of each load and stores the threshold current into the fixed address of the nonvolatile memory, and at the moment, the fault threshold value setting is finished.
2. The method for setting the load current fault threshold according to claim 1, wherein:
the rated power of the simulated load in the load box (4) is the same as the rated power of the corresponding device on the vehicle.
3. The method for setting the load current fault threshold according to claim 1 or 2, wherein:
and in the third step, after the BCM (1) receives the calibration instruction, a load driving output module of the BCM (1) drives a load box (4) to output by a rated load, namely the BCM (1) drives each path of load interface to output in sequence, each path of output is kept for 3 seconds, after the output is stable, a feedback voltage value corresponding to the analog load is read, the rated current is calculated, and the rated current is stored into a corresponding address space to be used as a reference parameter for fault diagnosis.
CN201910749193.3A 2019-08-14 2019-08-14 Method for setting fault threshold of load current Active CN110456773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910749193.3A CN110456773B (en) 2019-08-14 2019-08-14 Method for setting fault threshold of load current

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910749193.3A CN110456773B (en) 2019-08-14 2019-08-14 Method for setting fault threshold of load current

Publications (2)

Publication Number Publication Date
CN110456773A CN110456773A (en) 2019-11-15
CN110456773B true CN110456773B (en) 2020-08-04

Family

ID=68486428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910749193.3A Active CN110456773B (en) 2019-08-14 2019-08-14 Method for setting fault threshold of load current

Country Status (1)

Country Link
CN (1) CN110456773B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515643A (en) * 2019-09-05 2019-11-29 南京协和电子科技有限公司 A kind of host computer tool for writing with a brush dipped in Chinese ink BIN file
CN112989965B (en) * 2021-02-25 2023-01-31 中国人民解放军海军航空大学 SVD-LCD-BCM-based fault feature extraction method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201307061Y (en) * 2008-11-21 2009-09-09 上海汇众汽车制造有限公司 Diagnosis and processing device of load failure of automotive electric equipment based on CAN bus
CN102474247A (en) * 2009-08-10 2012-05-23 矢崎总业株式会社 Load drive control device and load drive control method
CN103425124A (en) * 2013-08-20 2013-12-04 重庆长安汽车股份有限公司 Device and method for detecting connectivity of electric appliances of automobile on basis of current detection
CN107576903A (en) * 2017-10-25 2018-01-12 浙江中控技术股份有限公司 A kind of current signal output and diagnostic circuit, fault diagnosis method and system
CN108429442A (en) * 2017-02-13 2018-08-21 三菱电机株式会社 Load the IC apparatus of driving

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201307061Y (en) * 2008-11-21 2009-09-09 上海汇众汽车制造有限公司 Diagnosis and processing device of load failure of automotive electric equipment based on CAN bus
CN102474247A (en) * 2009-08-10 2012-05-23 矢崎总业株式会社 Load drive control device and load drive control method
CN103425124A (en) * 2013-08-20 2013-12-04 重庆长安汽车股份有限公司 Device and method for detecting connectivity of electric appliances of automobile on basis of current detection
CN108429442A (en) * 2017-02-13 2018-08-21 三菱电机株式会社 Load the IC apparatus of driving
CN107576903A (en) * 2017-10-25 2018-01-12 浙江中控技术股份有限公司 A kind of current signal output and diagnostic circuit, fault diagnosis method and system

Also Published As

Publication number Publication date
CN110456773A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN109116085B (en) Automobile quiescent current monitoring system and method
CN111312325B (en) BBU fault diagnosis method and device, electronic equipment and storage medium
CN110456773B (en) Method for setting fault threshold of load current
CN103728968A (en) Automatic test system for CAN network and ECU functions
CN112034413A (en) Multi-core modular electric energy meter detection system
CN108919783B (en) Driving mechanism fault diagnosis device and method
CN112327126A (en) IGBT module performance test system and method
CN108983110B (en) Power supply reliability detection system of converter valve monitoring equipment
CN103425124A (en) Device and method for detecting connectivity of electric appliances of automobile on basis of current detection
CN112711242A (en) Automatic network diagnosis test system and test method for automobile electric control unit
CN107171893A (en) Automatic test platform and its method of testing based on CAN network
CN113049866A (en) Static current test system and static current test method of electric automobile
CN104898547A (en) Detection method and detection device of wind power variable pitch PLC
CN114660475A (en) Sampling diagnosis method and device for single battery, vehicle and storage medium
CN107797540B (en) Transmission fault testing method and device and terminal
CN116520093A (en) High-voltage bus operation fault positioning method and device
CN114967651A (en) Vehicle body control unit fault code testing system and method
CN114756008A (en) Fault injection system, automatic test system and method for automobile hybrid bus integrated rack
CN114690741A (en) Controller test system and method for vehicle, electronic device and readable storage medium
CN111123786A (en) Integrated single-chip microcomputer chip abnormity analysis system
CN110895976A (en) Dynamic card detection device and method
CN111208423A (en) Automatic motor aging test method
CN113739926B (en) Method and device for detecting temperature rise fault of train electric appliance cabinet and terminal equipment
CN115384312A (en) High-voltage interlocking diagnosis circuit, high-voltage interlocking diagnosis method and electric automobile
CN112611983B (en) Rail transit digital input/output channel detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant