CN108965085A - A kind of error-detecting method and device of electronic control unit ECU - Google Patents
A kind of error-detecting method and device of electronic control unit ECU Download PDFInfo
- Publication number
- CN108965085A CN108965085A CN201810862663.2A CN201810862663A CN108965085A CN 108965085 A CN108965085 A CN 108965085A CN 201810862663 A CN201810862663 A CN 201810862663A CN 108965085 A CN108965085 A CN 108965085A
- Authority
- CN
- China
- Prior art keywords
- ecu
- characteristic information
- information
- target
- target ecu
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides the error-detecting method and device of a kind of electronic control unit ECU, applied to vehicle, the network architecture of the vehicle includes controller local area network CAN and the ECU for being connected to the CAN, the described method includes: in the case where receiving the CAN message information of the characteristic information including target ECU, the characteristic information of the target ECU is matched with pre-stored characteristic information collection, wherein, the characteristic information collection includes the characteristic information of the target ECU;If successful match, it is determined that the target ECU is installed successfully;If matching unsuccessful, it is determined that the target ECU install failure.The error detection of the error-detecting method of electronic control unit ECU provided in an embodiment of the present invention is high-efficient.
Description
Technical field
The present embodiments relate to Vehicle Electronic Control Unit technical field more particularly to a kind of electronic control unit ECU
Error-detecting method and device.
Background technique
Network architecture is installed, for realizing the control or the functions such as detection to vehicle modules on vehicle.It is described
Network architecture includes gateway controller, CAN (Controller Area Network, network controller local area network), the net
It closes controller and CAN is divided into more subnetting sections, such as: dynamical system network segment, comfort system network segment, information entertainment network segment
Deng, and ECU (Electronic Control Unit, electronic control unit) is installed on each network segment.In the production of vehicle
In the process, need by it is offline it is preceding assembled respectively without assigned in the ECU in network architecture, for the good operation for ensuring vehicle,
It is necessary to ensure that each ECU is respectively mounted correctly.But since ECU of the production line to vehicle carries out unified installation, it is likely that occur
ECU setup error, or situations such as omit installation, thus vehicle it is offline after need to carry out error detection to the assembly situation of each ECU.
In the related art, hardware information, the software of each ECU are checked using the method for artificial error detection after offline
Information, component part numbers, installation site etc. need to consume a large amount of manpower and time, reduce the production efficiency of vehicle production.
It follows that ECU error-detecting method in the related technology haves the defects that low efficiency.
Summary of the invention
The embodiment of the present invention provides the error-detecting method and device of a kind of electronic control unit ECU, to solve in the related technology
Electronic control unit ECU error-detecting method and device there are problems that low efficiency.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, it is applied to vehicle the embodiment of the invention provides the error-detecting method of electronic control unit ECU a kind of,
The network architecture of the vehicle includes controller local area network CAN and the ECU for being connected to the CAN, which comprises
In the case where receiving the CAN message information of the characteristic information including target ECU, by the spy of the target ECU
Reference breath is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the feature of the target ECU
Information;
If successful match, it is determined that the target ECU is installed successfully;
If matching unsuccessful, it is determined that the target ECU install failure.
Second aspect, the embodiment of the invention also provides the Error Detection Units of electronic control unit ECU a kind of, are applied to vehicle
, the network architecture of the vehicle includes controller local area network CAN and the ECU for being connected to the CAN, and described device includes:
Matching module, in the case where receiving the CAN message information of the characteristic information including target ECU, by institute
The characteristic information for stating target ECU is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes described
The characteristic information of target ECU;
First determining module, if being used for successful match, it is determined that the target ECU is installed successfully;
Second determining module, if unsuccessful for matching, it is determined that the target ECU install failure.
The third aspect, the embodiment of the invention also provides a kind of vehicle, the automobile includes electronic control as described above
The Error Detection Unit of unit ECU.
Fourth aspect, the embodiment of the invention also provides the Error Detection Units of electronic control unit ECU a kind of, including storage
Device, processor and it is stored in the computer program that can be run on the memory and on the processor, the computer journey
Sequence realizes the step of error-detecting method of electronic control unit ECU as described above when being executed by the processor.
5th aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
It is stored with computer program on storage media, realizes that electronic control as described above is single when the computer program is executed by processor
Step in the error-detecting method of first ECU.
In embodiments of the present invention, the network architecture of vehicle includes controller local area network CAN and is connected to the CAN
ECU believes the feature of the target ECU in the case where receiving the CAN message information of the characteristic information including target ECU
Breath is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the feature letter of the target ECU
Breath;If successful match, it is determined that the target ECU is installed successfully;If matching unsuccessful, it is determined that the target ECU installation is lost
It loses.The network architecture that can use on vehicle in this way detects the installation situation of ECU, loses convenient for discovery ECU installation in time
The case where losing reaches the error detection efficiency for promoting the error-detecting method of electronic control unit ECU.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without any creative labor, can also be attached according to these
Figure obtains other attached drawings.
Fig. 1 is a kind of flow chart of the error-detecting method of electronic control unit ECU provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the error-detecting method of another electronic control unit ECU provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of network architecture;
Fig. 4 is the schematic diagram of host computer claim frame and the byte in gateway response frame;
Fig. 5 is the flow chart of the error-detecting method of another electronic control unit ECU provided in an embodiment of the present invention;
Fig. 6 is a kind of structure chart of the Error Detection Unit of electronic control unit ECU provided in an embodiment of the present invention;
Fig. 7 is the structure chart of the Error Detection Unit of another electronic control unit ECU provided in an embodiment of the present invention;
Fig. 8 is the structure chart of the Error Detection Unit of another electronic control unit ECU provided in an embodiment of the present invention;
Fig. 9 is the structure chart of the Error Detection Unit of another electronic control unit ECU provided in an embodiment of the present invention;
Figure 10 is the structure chart of the Error Detection Unit of another electronic control unit ECU provided in an embodiment of the present invention;
Figure 11 is the structure chart of the Error Detection Unit of another electronic control unit ECU provided in an embodiment of the present invention;
Figure 12 is the structure chart of the Error Detection Unit of another electronic control unit ECU provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The error-detecting method of electronic control unit ECU provided by the invention, can be applied to during vehicle production, for examining
Survey whether each ECU assembled on vehicle production line correctly installs.
Referring to Figure 1, Fig. 1 is a kind of process of the error-detecting method of electronic control unit ECU provided in an embodiment of the present invention
Figure, the error-detecting method of electronic control unit ECU can be applied to vehicle, and the network architecture of the vehicle includes controller local
The network C AN and ECU for being connected to the CAN.As shown in Figure 1, the error-detecting method of the electronic control unit ECU includes following step
It is rapid:
Step 101, in the case where receiving the CAN message information of the characteristic information including target ECU, by the target
The characteristic information of ECU is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the target
The characteristic information of ECU.
Wherein, the characteristic information of the target ECU and pre-stored characteristic information collection are subjected to matched executive component
Can be the gateway controller connecting with CAN, be also possible to VCU (vehicle control unit, entire car controller) etc. its
His component.
In addition, the ECU on the vehicle periodically can send characteristic information by CAN, this feature information be can be
It is predetermined, such as: in component part numbers, hardware version numbers, software version number including the ECU etc. any one or
A variety of combinations.
Certainly, features described above information can also be fixed as software version number or hardware version numbers of ECU etc..
In addition, features described above information collection may include the characteristic information for needing whole ECU to be mounted on the vehicle.
It should be noted that above-mentioned target ECU, which can be an ECU, is also possible to multiple ECU, and such as: it is connected to same
Multiple ECU on a CAN network segment send characteristic information simultaneously, and by the characteristic information of multiple ECU respectively with characteristic information collection into
Row matching, to obtain the matching result of each ECU on the CAN network segment.
In addition, above-mentioned matched process can be repeated as many times, to obtain each when target ECU refers to an ECU
The matching result of ECU.
Wherein, above-mentioned matched process, can be and be compared, and be able to confirm that target ECU by comparison analysis
If characteristic information it is whether corresponding perhaps unanimously corresponding or consistent with feature that characteristic information is concentrated card information, then it represents that should
Target ECU is correctly installed.
In this step, the characteristic information of target ECU is transmitted by CAN, and with pre-stored characteristic information collection into
Row matching just can determine that the installation results of target ECU, this matched mode utilize vehicle itself according to the matching result
The CAN having reduces the error detection of the electronic control unit ECU without increasing the device connecting with ECU or wiring
The complexity of method, and improve the economic performance of the error-detecting method of the electronic control unit ECU.
If step 102, successful match, it is determined that the target ECU is installed successfully.
Wherein, above-mentioned successful match can be, and determine the component part numbers, software version number, hardware version of target ECU
Number equal component part numbers corresponding with characteristic information concentrations, software version number, hardware version numbers etc. correspond to or unanimously.
In addition, the network node that above-mentioned successful match can also be installed including target ECU is correct.
It, can be according to successful match as a result, the installation success of target ECU is determined, to make the electricity by this step
The identified result of the error-detecting method of sub-control unit ECU is more intuitively and succinctly.
If step 103, matching are unsuccessful, it is determined that the target ECU install failure.
Wherein, above-mentioned matching is unsuccessful can be, and determine the component part numbers, software version number, hardware version of target ECU
This number equal component part numbers corresponding with characteristic information concentration, software version number, hardware version numbers etc. are not corresponding or inconsistent.
In addition, the unsuccessful network node that can also be installed including target ECU of above-mentioned matching is incorrect.
It, can be according to matching unsuccessful as a result, determining the install failure of target ECU, to make described by this step
The identified result of the error-detecting method of electronic control unit ECU is more intuitively and succinctly.
In embodiments of the present invention, the network architecture of vehicle includes controller local area network CAN and is connected to the CAN
ECU believes the feature of the target ECU in the case where receiving the CAN message information of the characteristic information including target ECU
Breath is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the feature letter of the target ECU
Breath;If successful match, it is determined that the target ECU is installed successfully;If matching unsuccessful, it is determined that the target ECU installation is lost
It loses.The network architecture that can use on vehicle in this way detects the installation situation of ECU, loses convenient for discovery ECU installation in time
The case where losing reaches the error detection efficiency for promoting the error-detecting method of electronic control unit ECU.
Referring to Fig. 2, being the process of the error-detecting method of another electronic control unit ECU provided in an embodiment of the present invention
Figure, the error-detecting method of electronic control unit ECU can be applied to vehicle, and the network architecture of the vehicle includes controller local
The network C AN and ECU for being connected to the CAN.As shown in Fig. 2, the error-detecting method of the another kind electronic control unit ECU includes
Following steps:
Step 201, in the case where receiving the CAN message information of the characteristic information including target ECU, by the target
The characteristic information of ECU is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the target
The characteristic information of ECU.
As an alternative embodiment, as shown in figure 3, the network architecture further includes the net connecting with the CAN
Controller is closed, the method also includes:
Before the vehicle is offline, the characteristic information collection of the gateway controller storage host computer transmission.
Wherein it is possible to the characteristic information of each ECU to be mounted be needed on pre-defined vehicle, to form the characteristic information
Collection.
It should be noted that each of characteristic information collection feature information may include multiple sub-informations, and such as: one
A characteristic information includes: these three sub-informations of component part numbers, hardware version numbers and software version number, and any one feature is believed
Ceasing between three included sub-informations is indivisible relationship.
In addition, above-mentioned host computer can be the equipment that computer, single-chip microcontroller etc. can issue manipulation command, it can be by upper
The storage of the gateway controller is written using the diagnostic service method for writing data by identifier in characteristic information collection by position machine
In unit.
Wherein, the storage unit of the gateway controller can be EEROM (Electrically Erasable Read
Only Memory, band electrically erasable read-only memory).
Certainly, the storage unit can also be EEPROM (Electrically Erasable Programmable
Read Only Memory, band Electrically Erasable Programmable Read-Only Memory) etc. other storage components.
In addition, each CAN network segment has as shown in figure 3, the gateway controller can be connect with multiple CAN network segments
At least one network node, and ECU can be assemblied in the network node.
Wherein, the CAN in Fig. 3 includes two CAN network segments, each CAN network segment includes n network node, wherein n is
Integer more than or equal to 1.
In present embodiment, characteristic information collection is stored in gateway controller using host computer, is convenient for the gateway control
Device processed obtains this feature information collection at any time, meanwhile, gateway controller is connect with CAN, can easily obtain the feature of ECU transmission
Information.Therefore, it when comparing the characteristic information of ECU with the characteristic information corresponding characteristic information of concentration, does not need to carry out data again
Transmitting increases device, to reduce the complexity of the error-detecting method of the electronic control unit ECU, and improves this
The economic performance of method.
Optionally, each characteristic information includes identification information, wherein the identification information be used for in the CAN
Network node is corresponding, the method also includes:
Before the vehicle is offline, the characteristic information that the characteristic information is concentrated is stored respectively in by the gateway controller
In the ECU of corresponding network node.
Wherein, the identification information of any two ECU is not identical, and by identifying the identification information, just can determine has
Which network node the ECU of the identification information is installed on.
In addition, the gateway controller is stored in the characteristic information in ECU, it can be after vehicle be offline, with CAN message
Form is sent to the gateway controller.
It should be noted that above-mentioned identification information can be, before vehicle is offline, gateway control is passed through by the host computer
Device is written in the ECU, which is used to correspond ECU and network node.In this way, after vehicle is offline, it can
To match to the identification information stored in ECU with the ECU network node installed, and this can be determined according to matching result
Whether ECU is installed on correct network node.
In present embodiment, by the identification information in the characteristic information of differentiation ECU, it just can determine that the ECU should pacify
The network node of dress, and after the characteristic information that characteristic information is concentrated is stored in corresponding ECU by gateway controller, it can
By comparing the characteristic information stored in ECU characteristic information corresponding with characteristic information concentration, just can after vehicle is offline
It is enough whether unanimously to determine whether the ECU installs correctly according to the two, to promote the accurate of the result of the ECU error-detecting method
Degree.
Optionally, the characteristic information that the characteristic information is concentrated is stored respectively in corresponding network by the gateway controller
Step in the ECU of node, comprising:
In response to the configuration information that the host computer is sent, the feature that the gateway controller concentrates the characteristic information
Information is stored respectively in the ECU of corresponding network node;
Wherein, the configuration information can also be referred to as shown in Figure 4 " host computer claim frame ", including information mark
Know, network segment mark and network node mark, the network node are identified for distinguishing the network node in the CAN, the mesh
The characteristic information that stores includes and is equipped with the matched identification information of network node of the target ECU in mark ECU.
Wherein, the configuration information can be one section of code, for example, as shown in figure 4, the configuration information is 0x300:
XX, XX, XX, XX, XX, XX, XX, XX, wherein X is arbitrary hexadecimal integers, and 0x300 is that message identification is used as with confidence
The id information of breath, preceding four X are network segment mark, and for distinguishing each CAN network segment, rear 12 X are network node mark, are used
In each of differentiation CAN network segment network node.
Specifically, an X can be converted into tetrad integer, and such as: hexadecimal " F " is represented by binary system
" 1111 ", rear 12 XX are converted into after binary number, can distinguish 48 network nodes.
Certainly, the network node mark in configuration information can be increased according to the quantity of network node in CAN network segment
Subtract, is not specifically limited herein.
Wherein, the numerical value that host computer is identified by changing each network node, just can be realized to each network node
Whether ECU is installed to be configured, such as: it is configured to installation ECU with the corresponding network node of binary number equal to 1, and is equal to 0
The corresponding network node of binary number be configured to that ECU is not installed.Such as: 0x300:00,01,00,00,00,00,00,0F turn
After turning to binary code, indicate are as follows: 0x300:00000000,00000001,00000000,00000000,00000000,
00000000,00000000,00001111, that is, indicate that four nodes in CAN network segment 1 are configured to installation ECU.Then gateway control
Device processed can be to store corresponding characteristic information in ECU corresponding to above-mentioned four nodes for being configured to installation ECU of face respectively.
In present embodiment, gateway controller is controlled by the configuration information that host computer is sent, by characteristic information concentration pair
The characteristic information answered is stored in ECU, and the configuration information for facilitating user's control host computer to send reaches control gateway controller will
The effect of corresponding ECU is written in characteristic information, to improve the controllability of the ECU error-detecting method, reaches and promotes the ECU
The effect of the conformability of error-detecting method.
Optionally, after the host computer sends configuration information, the gateway controller can also be detected in target ECU
It whether is stored with characteristic information, and returns to testing result.
Wherein, the testing result can also be referred to as shown in Figure 4 " gateway response frame ", if the configuration information
The ECU of each corresponding network node is correctly stored with characteristic information, then the gateway controller is sent out to the host computer
The testing result with the accordant configuration information is sent, if having not stored characteristic information in one or more ECU, the gateway
Controller is sent and the inconsistent testing result of the configuration information to the host computer.
For example, as shown in figure 4, the configuration information be 0x300:00,01,00,00,00,00,00,0F, if whole ECU
Correctly storage characteristic information, then the gateway controller to the host computer send 0x301:00,01,00,00,00,00,
00,0F, if there is part ECU not store characteristic information correctly, the gateway controller sends 0x301:00 to the host computer,
00,00,00,00,00,00,00, by check return with detection as a result, can find in time ECU store characteristic information not at
The case where function.
Wherein, the message identification 0x301 of testing result is for corresponding with the message identification 0x300 of configuration information.
In present embodiment, the case where each ECU stores characteristic information is detected by gateway controller, is returned by checking
Testing result, can find that ECU stores the unsuccessful situation of characteristic information in time, at this time can be not stored correct to avoid ECU
Characteristic information, and generate vehicle it is offline after, ECU cannot send correct characteristic information to gateway controller by CAN, thus
ECU install failure described in erroneous judgement is not installed, to improve the accuracy of the ECU error-detecting method.
If step 202, successful match, it is determined that the target ECU is installed successfully.
Wherein, the process of successful match can be, and target ECU sends CAN message, and institute to gateway controller by CAN
The characteristic information in CAN message including target ECU is stated, then gateway controller first obtains the identification information of this feature information, zero
Any one sub-information in part number, software version number, hardware version numbers etc. is as target sub-information, and in characteristic information collection
In find with the consistent characteristic information of target sub-information, and by the characteristic information of the characteristic information found and target ECU
It is matched, if whole sub-informations that characteristic information is included are consistent, then it represents that target ECU is installed successfully.
If step 203, matching are unsuccessful, it is determined that the target ECU install failure.
Wherein, matching unsuccessful process can be, and target ECU sends CAN message to gateway controller by CAN, and
It include the characteristic information of target ECU in the CAN message, then gateway controller first obtains the identification information of this feature information, zero
Any one sub-information in unit number, software version number, hardware version numbers etc. is as target sub-information, and in characteristic information
Concentration find with the consistent characteristic information of target sub-information, and the feature of the characteristic information found and target ECU are believed
Breath is matched, if some or all of sub-information that characteristic information is included is inconsistent, then it represents that target ECU installation is lost
It loses.
Step 204, in the case where not receiving the CAN message information of the characteristic information including the target ECU,
Determine that the target ECU is not installed
In specific detection process, if the spy stored in the characteristic information and gateway controller of the whole ECU being connect with CAN
After the characteristic information that reference breath is concentrated has matched, characteristic information concentration there remains Partial Feature information and not matched, then
It can determine that the part does not carry out ECU corresponding to matched characteristic information and do not install.
Optionally, the vehicle further includes display instrument, and the display instrument and the gateway controller communicate to connect.True
In the case that the ECU that sets the goal is installed successfully, the instrument shows the information of " target ECU is installed successfully ", is determining target ECU peace
In the case where dress failure, the instrument shows the information of " target ECU install failure ", is determining the uninstalled situation of target ECU
Under, the instrument shows the information of " target ECU is not installed ".
In present embodiment, the detection knot that can conveniently, clearly read the ECU error-detecting method is shown by instrument
Fruit improves the identification degree of the ECU error-detecting method.
The embodiment of the present invention, in the feelings for the CAN message information for not receiving the characteristic information including the target ECU
Under condition, determine that the target ECU is not installed, so as to avoid non-installation targets ECU in the case where, can not realize target
The characteristic information of ECU characteristic information corresponding with characteristic information concentration is compared, and causes to obtain matching result, to mention
The reliability of the ECU error-detecting method is risen.
Fig. 5 is referred to, is the process of the error-detecting method of another electronic control unit ECU provided in an embodiment of the present invention
Figure, the error-detecting method of electronic control unit ECU can be applied to vehicle, and the network architecture of the vehicle includes controller local
The network C AN and ECU for being connected to the CAN.As shown in Fig. 2, the error-detecting method of the another kind electronic control unit ECU includes
Following steps:
The configuration information table that vehicle ECU is written in diagnostic service is written by identifier in step 501, host computer.
Wherein, the configuration information table includes the characteristic information that whole ECU to be mounted is needed on the vehicle, said write
Object can be gateway controller.
In addition, above-mentioned identifier write-in diagnostic service can also be referred to as 2E diagnostic service.
Step 502, host computer send claim frame, configure to CAN network node.
Wherein, as shown in figure 4, the claim frame includes message identification, network segment mark and network node mark.
In addition, characteristic information is written in corresponding ECU for controlling gateway controller for the claim frame.
Step 503, gateway controller send gateway response frame, and receive the report including characteristic information of target ECU transmission
Text.
Wherein, for feeding back testing result, the testing result is used to indicate the host computer and writes the gateway response frame
Whether the operation for entering corresponding ECU runs succeeded.
In addition, the above-mentioned message including characteristic information is the characteristic information that the target ECU is sent, this feature information passes through
CAN is transferred to the gateway controller.Above-mentioned target ECU can be it is multiple, such as: ECU1, ECU2, ECU3 etc..
Step 504, the processing of gateway controller logic strategy.
Wherein, above-mentioned logic strategy processing is for the characteristic information according to the target ECU received, from pre-stored institute
It states in the characteristic information for needing whole ECU to be mounted on vehicle and finds corresponding characteristic information, and the two is matched, with
Obtain matching result.
Step 505, instrument are shown.
Wherein, the result that instrument is shown may include a variety of, such as: target ECU install successfully, target ECU install failure,
Target ECU is not installed.
It is obtained in method of the embodiment of the present invention, acquired beneficial effect and embodiment of the method shown in Fig. 1 or Fig. 2 beneficial
Effect is identical, and to avoid repeating, details are not described herein.
Fig. 6 is referred to, is a kind of structural representation of the Error Detection Unit of electronic control unit ECU provided in an embodiment of the present invention
Figure, the device are applied to vehicle, and the network architecture of the vehicle includes controller local area network CAN and is connected to the CAN
ECU, as shown in fig. 6, the Error Detection Unit 600 of the electronic control unit ECU includes:
Matching module 601, for inciting somebody to action in the case where receiving the CAN message information of the characteristic information including target ECU
The characteristic information of the target ECU is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes institute
State the characteristic information of target ECU;
First determining module 602, if being used for successful match, it is determined that the target ECU is installed successfully;
Second determining module 603, if unsuccessful for matching, it is determined that the target ECU install failure.
Optionally, as shown in fig. 7, described device 600 includes:
Third determining module 604, in the CAN message for not receiving the characteristic information including the target ECU
In the case where information, determine that the target ECU is not installed.
Optionally, the network architecture further includes the gateway controller connecting with the CAN, as shown in figure 8, described device
600 include:
First memory module 605, for the institute that before the vehicle is offline, the gateway controller storage host computer is sent
State characteristic information collection.
Optionally, each characteristic information includes identification information, wherein the identification information be used for in the CAN
Network node is corresponding, as shown in figure 9, described device 600 further include:
Second memory module 606, for before the vehicle is offline, the gateway controller to concentrate the characteristic information
Characteristic information be stored respectively in the ECU of corresponding network node.
Optionally, as shown in Figure 10, second memory module 606 includes:
Storage unit 6061, the configuration information for sending in response to the host computer, the gateway controller will be described
The characteristic information that characteristic information is concentrated is stored respectively in the ECU of corresponding network node;
Wherein, the configuration information includes message identification, network segment mark and network node mark, the network node mark
For distinguishing the network node in the CAN, the characteristic information stored in the target ECU includes and is equipped with the target
The matched identification information of the network node of ECU.
Optionally, as shown in figure 11, the matching module 601 includes:
Acquiring unit 6011, for after the vehicle is offline, the gateway controller to receive what the target ECU was sent
CAN message information, and obtain from the CAN message information target identification information of the target ECU;
Matching unit 6012 is searched the characteristic information and is concentrated and believes comprising the target identification for the gateway controller
The characteristic information of breath, and the characteristic information found is matched with the characteristic information of the target ECU.
The embodiment of the present invention can be realized each step in embodiment of the method as described above, and obtain identical beneficial
Effect, to avoid repeating, details are not described herein.
The embodiment of the present invention also provides a kind of vehicle, which includes as any one of Fig. 6 to Figure 11 described device is real
The Error Detection Unit of the electronic control unit ECU in example is applied, and generates identical beneficial effect, it is no longer superfluous herein to avoid repeating
It states.
As shown in figure 12, the embodiment of the present invention also provides the Error Detection Unit of electronic control unit ECU a kind of, including processor
1201, memory 1202 is stored in the computer program that can be run on memory 1202 and on the processor 1202, the meter
When calculation machine program is executed by processor 1202, the characteristic information that target ECU 1203 is sent is received by CAN network, and will be described
The characteristic information of target ECU 1203 is matched with pre-stored characteristic information collection, determines the target according to matching result
The installation condition of ECU 1203, reaches whether the ECU assembled in vehicle production assembling process correctly installs, and can be realized
Each process of the error-detecting method embodiment of above-mentioned electronic control unit ECU, and identical technical effect can be reached, to avoid weight
Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize the error-detecting method embodiment of above-mentioned electronic control unit ECU when being executed by processor
Each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Wherein, the computer readable storage medium, as read-only memory (Read-Only Memory, abbreviation ROM),
Random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (15)
1. a kind of error-detecting method of electronic control unit ECU, is applied to vehicle, the network architecture of the vehicle includes control general ability
The domain network C AN and ECU for being connected to the CAN, which is characterized in that the described method includes:
In the case where receiving the CAN message information of the characteristic information including target ECU, the feature of the target ECU is believed
Breath is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the feature letter of the target ECU
Breath;
If successful match, it is determined that the target ECU is installed successfully;
If matching unsuccessful, it is determined that the target ECU install failure.
2. the method according to claim 1, wherein the method also includes:
In the case where not receiving the CAN message information of the characteristic information including the target ECU, the target is determined
ECU is not installed.
3. according to the method described in claim 2, it is characterized in that, the network architecture further includes the net connecting with the CAN
Controller is closed, the method also includes:
Before the vehicle is offline, the characteristic information collection of the gateway controller storage host computer transmission.
4. according to the method described in claim 3, it is characterized in that, each characteristic information includes identification information, wherein described
Identification information for corresponding with the network node in the CAN, the method also includes:
Before the vehicle is offline, the characteristic information that the characteristic information is concentrated is stored respectively in correspondence by the gateway controller
Network node ECU in.
5. according to the method described in claim 4, it is characterized in that, the spy that the gateway controller concentrates the characteristic information
Reference ceases the step being stored respectively in the ECU of corresponding network node, comprising:
In response to the configuration information that the host computer is sent, the characteristic information that the gateway controller concentrates the characteristic information
It is stored respectively in the ECU of corresponding network node;
Wherein, the configuration information includes message identification, network segment mark and network node mark, and the network node mark is used for
Distinguish the network node in the CAN, the characteristic information stored in the target ECU includes and is equipped with the target ECU
The matched identification information of network node.
6. according to the method described in claim 5, it is characterized in that, described receiving the characteristic information including target ECU
In the case where CAN message information, the characteristic information of the target ECU and pre-stored characteristic information collection are subjected to matched step
Suddenly, comprising:
After the vehicle is offline, the gateway controller receives the CAN message information that the target ECU is sent, and from described
The target identification information of the target ECU is obtained in CAN message information;
The gateway controller searches the characteristic information and concentrates the characteristic information comprising the target identification information, and will search
To characteristic information matched with the characteristic information of the target ECU.
7. a kind of Error Detection Unit of electronic control unit ECU, is applied to vehicle, the network architecture of the vehicle includes control general ability
Domain network C AN and the ECU for being connected to the CAN, which is characterized in that described device includes:
Matching module, in the case where receiving the CAN message information of the characteristic information including target ECU, by the mesh
The characteristic information of mark ECU is matched with pre-stored characteristic information collection, wherein the characteristic information collection includes the target
The characteristic information of ECU;
First determining module, if being used for successful match, it is determined that the target ECU is installed successfully;
Second determining module, if unsuccessful for matching, it is determined that the target ECU install failure.
8. device according to claim 7, which is characterized in that described device further include:
Third determining module, for the feelings in the CAN message information for not receiving the characteristic information including the target ECU
Under condition, determine that the target ECU is not installed.
9. device according to claim 8, which is characterized in that the network architecture further includes the net connecting with the CAN
Close controller, described device further include:
First memory module, for the feature that before the vehicle is offline, the gateway controller storage host computer is sent
Information collection.
10. device according to claim 9, which is characterized in that each characteristic information includes identification information, wherein institute
Identification information is stated for, described device corresponding with the network node in the CAN further include:
Second memory module, for the feature that before the vehicle is offline, the gateway controller concentrates the characteristic information
Information is stored respectively in the ECU of corresponding network node.
11. device according to claim 10, which is characterized in that second memory module includes:
Storage unit, the configuration information for sending in response to the host computer, the gateway controller is by the characteristic information
The characteristic information of concentration is stored respectively in the ECU of corresponding network node;
Wherein, the configuration information includes message identification, network segment mark and network node mark, and the network node mark is used for
Distinguish the network node in the CAN, the characteristic information stored in the target ECU includes and is equipped with the target ECU
The matched identification information of network node.
12. device according to claim 11, which is characterized in that the matching module includes:
Acquiring unit, for after the vehicle is offline, the gateway controller to receive the CAN message that the target ECU is sent
Information, and obtain from the CAN message information target identification information of the target ECU;
Matching unit searches the characteristic information for the gateway controller and concentrates the feature comprising the target identification information
Information, and the characteristic information found is matched with the characteristic information of the target ECU.
13. a kind of vehicle, which is characterized in that including the electronic control unit ECU as described in any one of claim 7 to 12
Error Detection Unit.
14. a kind of Error Detection Unit of electronic control unit ECU, which is characterized in that including memory, processor and be stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
Now the step of error-detecting method of the electronic control unit ECU as described in any one of claim 1 to 6.
15. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the electronic control list as described in any one of claim 1 to 6 when the computer program is executed by processor
The step of error-detecting method of first ECU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810862663.2A CN108965085A (en) | 2018-08-01 | 2018-08-01 | A kind of error-detecting method and device of electronic control unit ECU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810862663.2A CN108965085A (en) | 2018-08-01 | 2018-08-01 | A kind of error-detecting method and device of electronic control unit ECU |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108965085A true CN108965085A (en) | 2018-12-07 |
Family
ID=64466924
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810862663.2A Pending CN108965085A (en) | 2018-08-01 | 2018-08-01 | A kind of error-detecting method and device of electronic control unit ECU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965085A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947465A (en) * | 2019-03-29 | 2019-06-28 | 北京经纬恒润科技有限公司 | A kind of data processing method and system |
CN110686898A (en) * | 2019-09-12 | 2020-01-14 | 潍柴动力股份有限公司 | Detection method and detection system for engine ECU misloading |
CN112306040A (en) * | 2020-10-29 | 2021-02-02 | 深圳市元征科技股份有限公司 | Vehicle detection method, device, equipment and server |
CN112653565A (en) * | 2019-10-10 | 2021-04-13 | 北京娜迦信息科技发展有限公司 | Method, apparatus, device and computer readable medium for outputting information |
CN113238511A (en) * | 2021-06-01 | 2021-08-10 | 北京汽车集团越野车有限公司 | Configuration method, device and equipment of vehicle electronic control unit |
CN113359657A (en) * | 2020-03-05 | 2021-09-07 | 广州汽车集团股份有限公司 | ECU diagnosis configuration code checking method and system and electronic control unit |
CN113359657B (en) * | 2020-03-05 | 2024-05-17 | 广州汽车集团股份有限公司 | ECU diagnosis configuration code verification method and system and electronic control unit thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110197187A1 (en) * | 2010-02-08 | 2011-08-11 | Seung Hyun Roh | Vehicle software download system and method thereof |
US20140006555A1 (en) * | 2012-06-28 | 2014-01-02 | Arynga Inc. | Remote transfer of electronic images to a vehicle |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
CN106950940A (en) * | 2017-03-31 | 2017-07-14 | 北京新能源汽车股份有限公司 | A kind of vehicle electronic control unit ECU writes with a brush dipped in Chinese ink method and device |
-
2018
- 2018-08-01 CN CN201810862663.2A patent/CN108965085A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110197187A1 (en) * | 2010-02-08 | 2011-08-11 | Seung Hyun Roh | Vehicle software download system and method thereof |
US20140006555A1 (en) * | 2012-06-28 | 2014-01-02 | Arynga Inc. | Remote transfer of electronic images to a vehicle |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
CN106950940A (en) * | 2017-03-31 | 2017-07-14 | 北京新能源汽车股份有限公司 | A kind of vehicle electronic control unit ECU writes with a brush dipped in Chinese ink method and device |
Non-Patent Citations (1)
Title |
---|
赵磊,洪翊: "汽车下线检测在总装车间的应用", 《汽车零部件》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947465A (en) * | 2019-03-29 | 2019-06-28 | 北京经纬恒润科技有限公司 | A kind of data processing method and system |
CN109947465B (en) * | 2019-03-29 | 2022-06-14 | 北京经纬恒润科技股份有限公司 | Data processing method and system |
CN110686898A (en) * | 2019-09-12 | 2020-01-14 | 潍柴动力股份有限公司 | Detection method and detection system for engine ECU misloading |
CN110686898B (en) * | 2019-09-12 | 2021-06-22 | 潍柴动力股份有限公司 | Detection method and detection system for engine ECU misloading |
CN112653565A (en) * | 2019-10-10 | 2021-04-13 | 北京娜迦信息科技发展有限公司 | Method, apparatus, device and computer readable medium for outputting information |
CN112653565B (en) * | 2019-10-10 | 2022-12-02 | 北京娜迦信息科技发展有限公司 | Method, apparatus, device and computer readable medium for outputting information |
CN113359657A (en) * | 2020-03-05 | 2021-09-07 | 广州汽车集团股份有限公司 | ECU diagnosis configuration code checking method and system and electronic control unit |
CN113359657B (en) * | 2020-03-05 | 2024-05-17 | 广州汽车集团股份有限公司 | ECU diagnosis configuration code verification method and system and electronic control unit thereof |
CN112306040A (en) * | 2020-10-29 | 2021-02-02 | 深圳市元征科技股份有限公司 | Vehicle detection method, device, equipment and server |
CN113238511A (en) * | 2021-06-01 | 2021-08-10 | 北京汽车集团越野车有限公司 | Configuration method, device and equipment of vehicle electronic control unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965085A (en) | A kind of error-detecting method and device of electronic control unit ECU | |
US8577663B2 (en) | System and methods for fault-isolation and fault-mitigation based on network modeling | |
US11032300B2 (en) | Intrusion detection system based on electrical CAN signal for in-vehicle CAN network | |
CN105075186B (en) | Data processing equipment and communication system | |
CN104579877A (en) | Method and apparatus for isolating a fault in a controller area network | |
CN106155043A (en) | Vehicle data acquisition methods, device and equipment | |
CN109634533A (en) | A kind of ECU information dump method and relevant apparatus | |
CN104834591B (en) | Test the method for testing and system of AUTOSAR component softwares | |
CN109885037A (en) | A kind of method and relevant device of vehicle diagnostics | |
US11762761B2 (en) | Generating synthetic test cases for network fuzz testing | |
US8718894B2 (en) | Function securing unit for communication systems | |
CN108512675B (en) | Network diagnosis method and device, control node and network node | |
CN109658542A (en) | Diagnostic parameters data verification method, device, vehicle diagnostic equipment and storage medium | |
US6539338B1 (en) | Self-diagnostic testing of a network interface adapter | |
CN113556335A (en) | Vehicle-mounted bus safety testing method and system | |
CN103885441B (en) | A kind of adaptive failure diagnostic method of controller local area network | |
US20130325203A1 (en) | Methods and systems for monitoring a vehicle for faults | |
CN114115170B (en) | Method and device for determining vehicle configuration module and after-sale diagnostic instrument | |
US20180152315A1 (en) | Communication system | |
Marksteiner et al. | A model-driven methodology for automotive cybersecurity test case generation | |
CN110059470A (en) | A kind of verification method of part of appliance, device and equipment | |
US20220234626A1 (en) | Trusted context self learning method for an in-vehicle network intrusion detection system developed to limit calibration proliferation and development costs | |
US11023312B2 (en) | Serial management interface with improved reliability | |
CN101821718B (en) | Method for testing address bus in logic module | |
CN106211036A (en) | A kind of method and apparatus connecting equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |
|
RJ01 | Rejection of invention patent application after publication |