CN115878160B - ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication - Google Patents

ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication Download PDF

Info

Publication number
CN115878160B
CN115878160B CN202310214139.5A CN202310214139A CN115878160B CN 115878160 B CN115878160 B CN 115878160B CN 202310214139 A CN202310214139 A CN 202310214139A CN 115878160 B CN115878160 B CN 115878160B
Authority
CN
China
Prior art keywords
information
ecu
controller
vehicle
fault
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
CN202310214139.5A
Other languages
Chinese (zh)
Other versions
CN115878160A (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.)
Jiangling Motors Corp Ltd
Original Assignee
Jiangling Motors Corp 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 Jiangling Motors Corp Ltd filed Critical Jiangling Motors Corp Ltd
Priority to CN202310214139.5A priority Critical patent/CN115878160B/en
Publication of CN115878160A publication Critical patent/CN115878160A/en
Application granted granted Critical
Publication of CN115878160B publication Critical patent/CN115878160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an ECU upgrading method and system based on CAN communication, which specifically comprises the following steps: establishing communication connection with a CAN controller to acquire first vehicle information; comparing the acquired first vehicle information with the second vehicle information, thereby determining an ECU that needs to modify the configuration information; writing DID information into the CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID; the CAN controller is controlled to periodically send the DID information to a vehicle bus, so that the DID information is received when the corresponding ECU is in a wake-up state; when the corresponding ECU is in an awakening state, the ECU updates the configuration information according to the received DID information, so that the software upgrading is completed.

Description

ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication
Technical Field
The invention relates to the technical field of intelligent networking of vehicles, in particular to an ECU (electronic control unit) upgrading method and system based on CAN (controller area network) communication.
Background
With the rapid development of the automobile industry, especially the rapid development of intelligent network automobiles, the specific gravity of automobile electronic products in the whole automobile is larger and larger, and correspondingly, the ECUs (Electronic Control Unit, electronic control units) in the automobile are more and have stronger functions. In order to ensure the efficient operation of the electronic products in the automobile, the ECU in the electronic products in the automobile needs to be updated in time because the update frequency of the existing automobile software is higher.
The existing software development of the automobile based on the CAN controller module generally carries out the separate development according to different configurations or writes the configuration for each ECU controller when the automobile is in a line, such as an engine management system, the manual gear and the automatic gear need to carry out the separate software development, and the materials are clearly distinguished so as to avoid mismatching of software caused by vehicle confusion when the automobile is installed, thereby not only increasing the management cost of materials in a host factory, but also prolonging the line configuration time. If some electronic configuration is added after the vehicle is sold, the software of the control unit related to the vehicle needs to be updated, and in the prior art, the single ECU is updated independently by the UDS terminal equipment, so that the configuration updating efficiency is low, and the unified maintenance of the whole configuration is not facilitated.
Disclosure of Invention
The invention aims to improve and innovate defects and problems existing in the background art, and provides an ECU upgrading method and system based on CAN communication.
The above object is achieved according to a first aspect of the present invention, which provides the following technical solutions: an ECU upgrading method based on CAN communication specifically comprises the following steps:
establishing communication connection with a CAN controller, and acquiring first vehicle information of a target vehicle, wherein the first vehicle information at least comprises configuration information and software version information of an ECU of the target vehicle;
comparing the acquired first vehicle information with the latest version of the second vehicle information, thereby determining an ECU which needs to modify the configuration information;
writing DID information into the CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
the CAN controller is controlled to periodically send the DID information to a bus of the vehicle in a broadcasting mode, so that the DID information is received when the corresponding ECU is in an awake state;
when the corresponding ECU is in an awake state, the ECU updates the configuration information according to the received DID information, thereby completing the software upgrade.
According to the technical scheme, the configuration information of the ECU and the diagnosis ID of the ECU are firstly sent to the CAN controller, then the CAN controller is controlled to periodically send the DID information to the vehicle bus in a broadcasting mode, so that when the corresponding ECU is in a wake-up state, the DID information is received, and software upgrading is automatically completed according to the received DID information, so that the configuration information of the single ECU does not need to be independently updated, the configuration upgrading efficiency is greatly improved, the unified maintenance of the whole configuration is facilitated, and the vehicle configuration is changed later, and only the vehicle is required to be configured on the CAN controller by brushing.
In a further aspect, the control CAN controller periodically sends the DID information to the vehicle bus in a broadcast manner, so that when the corresponding ECU is in an awake state, receiving the DID information specifically includes:
the CAN controller is controlled to periodically send ECU diagnosis ID information to the vehicle bus in a broadcast mode, and receives a real-time message returned by the vehicle bus, wherein the real-time message comprises a state code with the ECU working state and address information, and whether the corresponding ECU is connected with the vehicle bus network normally is judged through the state code;
if yes, the CAN controller is controlled to periodically send configuration information to the vehicle bus in a broadcast mode, so that when the corresponding ECU is in an awake state, the configuration information is received, and upgrading success information is returned to the CAN controller.
According to the technical scheme, the ECU diagnosis ID information is periodically sent to the vehicle bus, whether the ECU is normally connected with the vehicle bus in a network mode or not is determined, corresponding ECU address information is acquired, and then configuration information is periodically sent to the ECU, so that the ECU can receive the configuration information; compared with the method that DID information is packaged and sent to the ECU, the method is beneficial to reducing the transmission quantity of data, so that the processing performance of a CAN controller chip is improved, and the time spent by the corresponding ECU for updating configuration information is saved.
The step of judging whether the corresponding ECU is normally connected with the vehicle bus network through the state code further comprises the following steps:
when the network connection between the corresponding ECU and the vehicle bus is abnormal, the corresponding ECU returns a second fault code to the CAN controller, wherein the second fault code comprises a fault state code of the ECU.
The DID information is written into the CAN controller; the step of the DID information at least including configuration information of the corresponding ECU and the corresponding ECU diagnostic ID further includes:
the fault code clearing instruction is sent through the UDS diagnosis equipment, the fault code of the CAN controller is cleared, fault clearing success information returned by the CAN controller is received, the fault clearing success information comprises a first fault code, the first fault code comprises a fault state code of the CAN controller, the CAN controller is controlled to be powered on again, and self-checking reset is completed.
According to the technical scheme, the fault code clearing instruction is sent through the UDS diagnosis equipment to clear the fault code of the CAN controller, so that the problem that DID information cannot be sent to the corresponding ECU due to the problem of the CAN controller is avoided, and whether the network connection between the corresponding ECU and the vehicle bus is normal or not is facilitated for subsequent diagnosis.
In a further aspect, the step of receiving the DID information when the corresponding ECU is in the awake state further includes:
the CAN controller records the sending time and the sent DID information while periodically sending the DID information to the vehicle bus.
According to a second aspect of the present invention, there is provided an ECU upgrade system based on CAN communication, specifically comprising:
the information acquisition module is used for establishing communication connection with the CAN controller to acquire first vehicle information of the target vehicle, wherein the first vehicle information at least comprises configuration information and software version information of the ECU of the target vehicle;
an information comparison module for comparing the acquired first vehicle information with the latest version of the second vehicle information, thereby determining an ECU which needs to modify the configuration information;
the information writing module is used for writing the DID information into the CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
the information sending module controls the CAN controller to periodically send the DID information to the vehicle bus in a broadcasting mode, so that the DID information is received when the corresponding ECU is in a wake-up state;
and the information updating module is used for updating the configuration information of the corresponding ECU according to the received DID information when the corresponding ECU is in the wake-up state, so that the software upgrading is completed.
According to the technical scheme, the ECU diagnosis ID information is periodically sent to the vehicle bus, whether the ECU is normally connected with the vehicle bus through a network or not and the corresponding ECU address information are determined, and then the configuration information is periodically sent to the ECU, so that the ECU can receive the configuration information; compared with the method that DID information is packaged and sent to the ECU, the method is beneficial to reducing the transmission quantity of data, so that the processing performance of a CAN controller chip is improved, and the time spent by the corresponding ECU for updating configuration information is saved.
Further, the information sending module specifically includes:
the first sending unit is used for controlling the CAN controller to periodically send the ECU diagnosis ID information to the vehicle bus in a broadcast mode and receiving a real-time message returned by the vehicle bus, wherein the real-time message is a state code with the ECU working state and address information, and judging whether the corresponding ECU is normally connected with the vehicle bus network through the state code;
and the second sending unit is used for controlling the CAN controller to periodically send configuration information to the vehicle bus in a broadcast mode when the corresponding ECU is normally connected with the vehicle bus network, so that the corresponding ECU is in an awakening state, receives the configuration information and returns upgrading success information to the CAN controller.
Further, the information sending module further includes:
and the fault return unit is used for returning a second fault code to the CAN controller by the corresponding ECU when the network connection between the corresponding ECU and the vehicle bus is abnormal, wherein the second fault code comprises a fault state code of the ECU.
Further, the method further comprises the following steps:
the fault clearing module is used for sending a fault code clearing instruction through the UDS diagnosis equipment, clearing the fault code of the CAN controller and receiving fault clearing success information returned by the CAN controller, wherein the fault clearing success information comprises a first fault code which comprises a fault state code of the CAN controller, and then controlling the CAN controller to be electrified again to finish self-checking reset.
Further, the information sending module further includes:
the information recording unit is used for recording the sending time and the sent DID information by the CAN controller when the CAN controller periodically sends the DID information to the vehicle bus.
Compared with the prior art, the invention has the beneficial effects that: the invention firstly transmits the configuration information of the ECU and the diagnosis ID of the ECU to the CAN controller, then controls the CAN controller to periodically transmit the DID information to the vehicle bus in a broadcasting mode, so that when the corresponding ECU is in a wake-up state, the DID information is received, and the software upgrading is automatically completed according to the received DID information, thereby the configuration information of the single ECU is not required to be independently updated, the configuration upgrading efficiency is greatly improved, the unified maintenance of the integral configuration is facilitated, and the vehicle configuration is only required to be updated and written on the CAN controller after the vehicle configuration is changed; in addition, by firstly sending the ECU diagnosis ID information to the vehicle bus, determining whether the ECU and the vehicle bus are in normal network connection and corresponding ECU address information, and then periodically sending configuration information to the ECU so that the ECU can receive the configuration information; compared with the method that DID information is packaged and sent to the ECU, the method is beneficial to reducing the transmission quantity of data, so that the processing performance of a CAN controller chip is improved, and the time spent by the corresponding ECU for updating configuration information is saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method according to an embodiment of the invention;
FIG. 2 is a flow chart of a method for controlling a CAN controller to periodically send DID information in broadcast form to a bus of a vehicle according to one embodiment of the invention;
fig. 3 is a schematic diagram of a system structure according to an embodiment of the present invention.
Detailed Description
In order that the objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
It will be understood that when an element is referred to as being "fixed to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Example 1
Referring to fig. 1, the invention provides an ECU upgrading method based on CAN communication, which specifically includes the following steps:
step S1, establishing communication connection with a CAN controller, and acquiring first vehicle information of a target vehicle, wherein the first vehicle information at least comprises configuration information and software version information of the target vehicle;
specifically, the UDS terminal device is first connected to the OBD diagnostic interface of the target vehicle through a data line, then an access code is input on the UDS terminal device, and the UDS terminal device will send connection request information with the CAN controller; the CAN controller connection request information comprises address information of the CAN controller, and after the CAN controller receives the connection request information, the CAN controller feeds back connection success information to the UDS terminal equipment so as to feed back that the UDS terminal equipment is successfully connected with the CAN controller. After the UDS terminal equipment is successfully connected with the CAN controller, the UDS terminal equipment sends an information reading instruction to the CAN controller of the target vehicle, and after the CAN controller receives the instruction, VIN codes of the target vehicle, configuration information of the target vehicle and software version information pre-stored in a database are fed back to the UDS terminal equipment so as to read the first vehicle information. Wherein the first vehicle information is used for comparison with the latest version of the second vehicle information, thereby determining an ECU (electronic control unit) that needs to modify the configuration information.
It should be noted that, the first vehicle information may also be compiled into a two-dimensional code or uploaded to the cloud end, and the UDS terminal device scans the two-dimensional code or connects to the cloud end to obtain the first vehicle information of the target vehicle, so as to improve operation convenience and maintainability.
Step S2, comparing the acquired first vehicle information with the latest version of second vehicle information, so as to determine the ECU needing to modify the configuration information;
s3, writing the DID information into the CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
note that the UDS terminal device writes DID information including at least configuration information of the corresponding ECU and the corresponding ECU diagnostic ID into the CAN controller. After the DID information is written into the CAN controller, the internal software and related information of the CAN controller are configured, and then the connection and working state of the CAN controller should be tested to ensure the normal operation of the CAN controller.
S4, sending a fault code clearing instruction, clearing and reading the fault code of the CAN controller, and then controlling the CAN controller to be electrified again to finish self-checking reset;
the fault code clearing instruction is sent through the UDS diagnosis equipment, the fault code of the CAN controller is cleared, fault clearing success information returned by the CAN controller is received, the fault clearing success information comprises a first fault code, the first fault code comprises a fault state code of the CAN controller, the CAN controller is controlled to be electrified again, and self-checking reset is completed. It CAN be appreciated that by the arrangement, the problem that DID information cannot be sent to the corresponding ECU due to the problem of the CAN controller is avoided, and the follow-up diagnosis of whether the network connection between the corresponding ECU and the vehicle bus is normal is facilitated.
In some embodiments, after the configuration information of the CAN controller is written and the fault code is cleared, the CAN controller initiates a data connection request based on a vehicle VIN code and a preset cloud service platform of the host factory, wherein the vehicle VIN code belongs to a part of the acquired first vehicle information of the target vehicle, compares the DID information of the CAN controller with the relevant information of the resource library of the host factory, updates the configuration information of the target vehicle of the resource library of the host factory, and judges that the CAN controller and the cloud service platform of the host factory communicate normally after receiving the feedback information after the update is completed, so that the configuration information of the resource library of the host factory CAN be updated, and whether the connection and the working state of the CAN controller operate normally CAN be tested.
Step S5, the CAN controller is controlled to periodically send the DID information to a bus of the vehicle in a broadcasting mode, so that the DID information is received when the corresponding ECU is in a wake-up state;
when the connection and the working state of the CAN controller are judged to be normal operation, the CAN controller is controlled to periodically send the DID information to the vehicle bus in a broadcast mode so that the corresponding ECU is in an awake state, the DID information is received, and it is understood that when the ECU is in a non-awake state, the ECU cannot receive the DID information, and therefore the CAN controller is controlled to periodically send the DID information to the vehicle bus in a broadcast mode so that the ECU is enabled to be converted from the non-awake state to the awake state and CAN timely receive the DID information.
Referring to fig. 2, the step S5 specifically includes the following steps:
step S51, the CAN controller is controlled to periodically send ECU diagnosis ID information to the vehicle bus in a broadcast mode, and receives a real-time message returned by the vehicle bus, wherein the real-time message comprises a state code with ECU address information, and whether the corresponding ECU is connected with the vehicle bus network normally is judged through the state code;
it CAN be understood that when the vehicle bus does not return the real-time message of the corresponding ECU, which indicates that the network connection between the corresponding ECU and the vehicle bus is abnormal, the CAN controller will not receive the corresponding ECU address information, and the corresponding ECU returns a second fault code to the CAN controller, where the second fault code includes a fault status code of the ECU, so that the CAN controller needs to be controlled to periodically send the ECU diagnostic ID, and when the network connection between the ECU and the vehicle bus is restored to be normal and the ECU is in a normal state, the corresponding ECU address information CAN be received at this time.
When the ECU receives the signal sent by the CAN controller, the ECU returns a state code for feeding back the working state and address information of the ECU.
And step S52, if yes, the CAN controller is controlled to periodically send configuration information to the vehicle bus in a broadcast mode, so that when the corresponding ECU is in a wake-up state, the configuration information is received, and upgrading success information is returned to the CAN controller.
It can be understood that, because the address information of the ECU has been obtained in the step S51, the corresponding configuration information can be periodically sent to the corresponding ECU in a broadcast manner through the vehicle bus, so that the ECU obtains the corresponding ECU configuration information in the wake-up state, and completes the upgrade of the ECU according to the corresponding ECU configuration information, and returns the upgrade success information of completing the configuration upgrade and the current version information after the upgrade is successful. As described above, when the ECU receives the signal sent by the CAN controller, the ECU returns a status code that feeds back the working status thereof, and the ECU is in the awake state to acquire the corresponding ECU configuration information, so that the configuration information needs to be periodically sent.
It should be noted that, by periodically sending the ECU diagnostic ID information to the vehicle bus, determining whether the ECU and the vehicle bus are connected in a normal network and acquiring the corresponding ECU address information, the corresponding ECU does not need to be in an awake state, and then sending the configuration information to the ECU, and the corresponding ECU needs to be in an awake state.
In some embodiments, the CAN controller records the time of transmission and the DID information while periodically transmitting the DID information to the vehicle bus, so as to find the reason when the transmission fails.
Step S6, when the corresponding ECU is in an awake state, the ECU updates configuration information according to the received DID information, so that software upgrading is completed;
specifically, when the state code feedback ECU is in a wake-up state, the CAN controller sends a signal to the intelligent special controller of the vehicle, and the intelligent special controller controls the ECU to modify configuration information, so that the ECU is updated.
In summary, the invention determines whether the ECU and the vehicle bus are connected normally and corresponding ECU address information by periodically transmitting the ECU diagnostic ID information to the vehicle bus, and then periodically transmitting the configuration information to the ECU so that the ECU receives the configuration information; compared with the method that DID information is packaged and sent to the ECU, the method is beneficial to reducing the transmission quantity of data, so that the processing performance of a CAN controller chip is improved, and the time spent by the corresponding ECU for updating configuration information is saved.
Referring to fig. 3, the present invention provides an ECU upgrade system based on CAN communication, which specifically includes:
the information acquisition module is used for establishing communication connection with the CAN controller to acquire first vehicle information of the target vehicle, wherein the first vehicle information at least comprises configuration information and software version information of the ECU of the target vehicle;
an information comparison module for comparing the acquired first vehicle information with the latest version of the second vehicle information, thereby determining an ECU which needs to modify the configuration information;
the information writing module is used for writing the DID information into the CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
the information sending module controls the CAN controller to periodically send the DID information to the vehicle bus in a broadcasting mode, so that the DID information is received when the corresponding ECU is in a wake-up state;
and the information updating module is used for updating the configuration information of the corresponding ECU according to the received DID information when the corresponding ECU is in the wake-up state, so that the software upgrading is completed.
Further, the information sending module specifically includes:
the first sending unit is used for controlling the CAN controller to send the ECU diagnosis ID information to the vehicle bus and receiving a real-time message returned by the vehicle bus, wherein the real-time message is a state code with ECU address information and the working state of the ECU, and judging whether the corresponding ECU is normally connected with the vehicle bus network through the state code;
and the second sending unit is used for controlling the CAN controller to periodically send configuration information to the vehicle bus in a broadcast mode when the corresponding ECU is normally connected with the vehicle bus network, so that the corresponding ECU is in an awakening state, receives the configuration information and returns upgrading success information to the CAN controller.
Further, the second transmitting unit further includes:
and the fault return unit is used for returning a second fault code to the CAN controller when the network connection between the corresponding ECU and the vehicle bus is abnormal, wherein the second fault code comprises a fault state code of the ECU.
Further, the information writing module further includes:
the fault clearing module is used for sending a fault code clearing instruction through the UDS diagnosis equipment, clearing the fault code of the CAN controller and receiving fault clearing success information returned by the CAN controller, wherein the fault clearing success information comprises a first fault code which comprises a fault state code of the CAN controller, and then controlling the CAN controller to be electrified again to finish self-checking reset.
Further, the information sending module further includes:
the information recording unit is used for recording the sending time and the sent DID information by the CAN controller when the CAN controller periodically sends the DID information to the vehicle bus.
The functions or operation steps implemented when the above modules and units are executed are substantially the same as those in the above method embodiments, and are not described herein again.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the invention.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples.
It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application for the embodiment. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. The ECU upgrading method based on CAN communication is characterized by comprising the following steps of:
the UDS terminal equipment establishes communication connection with the CAN controller to acquire first vehicle information of the target vehicle, wherein the first vehicle information at least comprises configuration information and software version information of an ECU of the target vehicle;
comparing the acquired first vehicle information with the latest version of the second vehicle information, thereby determining ECU configuration information to be modified;
the UDS terminal equipment writes the DID information into the CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
the CAN controller is controlled to periodically send the DID information to a bus of the vehicle in a broadcasting mode, so that the DID information is received when the corresponding ECU is in an awake state;
when the corresponding ECU is in a wake-up state, the ECU updates the ECU configuration information according to the received DID information, so that the software upgrading is completed.
2. The ECU upgrading method based on CAN communication according to claim 1, wherein the controlling the CAN controller to periodically send the DID information to the vehicle bus in a broadcast form, so that when the corresponding ECU is in an awake state, receiving the DID information specifically includes:
the CAN controller is controlled to periodically send ECU diagnosis ID information to the vehicle bus in a broadcast mode, and receives a real-time message returned by the vehicle bus, wherein the real-time message comprises a state code with the ECU working state and address information, and whether the corresponding ECU is connected with the vehicle bus network normally is judged through the state code;
if yes, the CAN controller is controlled to periodically send configuration information to the vehicle bus in a broadcast mode, so that when the corresponding ECU is in an awake state, the configuration information is received, and upgrading success information is returned to the CAN controller.
3. The ECU upgrading method based on CAN communication according to claim 2, wherein after the step of judging whether the corresponding ECU is normally connected to the vehicle bus network through the state code, further comprising:
when the network connection between the corresponding ECU and the vehicle bus is abnormal, the corresponding ECU returns a second fault code to the CAN controller, wherein the second fault code comprises a fault state code of the ECU.
4. The ECU upgrading method based on CAN communication according to claim 1, wherein the UDS terminal device writes DID information into a CAN controller; the step of the DID information at least including configuration information of the corresponding ECU and the corresponding ECU diagnostic ID further includes:
the fault code clearing instruction is sent through the UDS diagnosis equipment, the fault code of the CAN controller is cleared, fault clearing success information returned by the CAN controller is received, the fault clearing success information comprises a first fault code, the first fault code comprises a fault state code of the CAN controller, the CAN controller is controlled to be powered on again, and self-checking reset is completed.
5. The ECU upgrading method based on CAN communication according to claim 1, wherein the step of controlling the CAN controller to periodically transmit the DID information to the vehicle bus in a broadcast form so that the corresponding ECU is in an awake state, the step of receiving the DID information further comprises:
the CAN controller records the sending time and the sent DID information while periodically sending the DID information to the vehicle bus.
6. An ECU upgrading system based on CAN communication specifically includes:
the information acquisition module is used for establishing communication connection with the CAN controller by the UDS terminal equipment to acquire first vehicle information of the target vehicle, wherein the first vehicle information at least comprises configuration information and software version information of an ECU of the target vehicle;
the information comparison module is used for comparing the acquired first vehicle information with the second vehicle information of the latest version so as to determine the ECU information needing to be modified;
the information writing module is used for writing the DID information into the CAN controller by the UDS terminal equipment; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
the information sending module controls the CAN controller to periodically send the DID information to the vehicle bus in a broadcasting mode, so that the DID information is received when the corresponding ECU is in a wake-up state;
and the information updating module is used for updating the configuration information of the corresponding ECU according to the received DID information when the corresponding ECU is in the wake-up state, so that the software upgrading is completed.
7. The ECU upgrade system based on CAN communication according to claim 6, wherein the information transmission module specifically includes:
the first sending unit is used for controlling the CAN controller to periodically send the ECU diagnosis ID information to the vehicle bus in a broadcast mode and receiving a real-time message returned by the vehicle bus, wherein the real-time message comprises a state code with ECU address information, and judging whether the corresponding ECU is normally connected with the vehicle bus network through the state code;
and the second sending unit is used for controlling the CAN controller to periodically send configuration information to the vehicle bus in a broadcast mode when the corresponding ECU is normally connected with the vehicle bus network, so that the corresponding ECU is in an awakening state, receives the configuration information and returns upgrading success information to the CAN controller.
8. The ECU upgrade system based on CAN communication according to claim 7, wherein the information transmission module further comprises:
and the fault return unit is used for returning a second fault code to the CAN controller when the network connection between the corresponding ECU and the vehicle bus is abnormal, wherein the second fault code comprises a fault state code of the ECU.
9. The CAN communication-based ECU upgrade system according to claim 6, further comprising:
the fault clearing module is used for sending a fault code clearing instruction through the UDS diagnosis equipment, clearing the fault code of the CAN controller and receiving fault clearing success information returned by the CAN controller, wherein the fault clearing success information comprises a first fault code which comprises a fault state code of the CAN controller, and then controlling the CAN controller to be electrified again to finish self-checking reset.
10. The ECU upgrade system based on CAN communication according to claim 6, wherein the information transmission module further comprises:
the information recording unit is used for recording the sending time and the sent DID information by the CAN controller when the CAN controller periodically sends the DID information to the vehicle bus.
CN202310214139.5A 2023-03-08 2023-03-08 ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication Active CN115878160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310214139.5A CN115878160B (en) 2023-03-08 2023-03-08 ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310214139.5A CN115878160B (en) 2023-03-08 2023-03-08 ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication

Publications (2)

Publication Number Publication Date
CN115878160A CN115878160A (en) 2023-03-31
CN115878160B true CN115878160B (en) 2023-05-26

Family

ID=85762010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310214139.5A Active CN115878160B (en) 2023-03-08 2023-03-08 ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication

Country Status (1)

Country Link
CN (1) CN115878160B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737220A (en) * 2023-05-23 2023-09-12 广州汽车集团股份有限公司 Method and device for acquiring domain controller software version information and vehicle diagnosis equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153562A (en) * 2017-12-26 2018-06-12 浙江中科正方电子技术有限公司 A kind of new-energy automobile ECU teleprograms more new management system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101463604B1 (en) * 2013-04-24 2014-11-20 주식회사 오비고 Method, system, and computer-readable recording media for updating electronic control unit
US10127036B2 (en) * 2015-06-15 2018-11-13 Lear Corporation Method for OTA updating vehicle electronic control unit
US11507365B2 (en) * 2018-10-15 2022-11-22 Autonetworks Technologies, Ltd. On-board update device, update processing program, program update method, and on-board update system
CN110474961B (en) * 2019-07-14 2022-05-06 江苏开沃汽车有限公司 Method for realizing multi-path remote OTA (over the air) upgrading of pure passenger vehicle based on CAN (controller area network) bus
WO2021012078A1 (en) * 2019-07-19 2021-01-28 华为技术有限公司 Can communication method, device and system
CN111610993A (en) * 2020-05-20 2020-09-01 麦腾物联网技术有限公司 Firmware upgrading method, server and system
CN115442233A (en) * 2022-08-09 2022-12-06 北京罗克维尔斯科技有限公司 ECU upgrading method and device, electronic equipment, storage medium and vehicle

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153562A (en) * 2017-12-26 2018-06-12 浙江中科正方电子技术有限公司 A kind of new-energy automobile ECU teleprograms more new management system and method

Also Published As

Publication number Publication date
CN115878160A (en) 2023-03-31

Similar Documents

Publication Publication Date Title
US7502353B2 (en) Device for accessing a vehicle control system via a wireless link
US20060095174A1 (en) Method and device for a vehicle-related telematics service
CN109164783A (en) Vehicular diagnostic method, device, equipment and medium
EP4099655A1 (en) Software version rollback method, apparatus and system
CN115878160B (en) ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication
CN111277477B (en) FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments
CN108415410B (en) Automobile fault diagnosis system and method
CN111158718A (en) Local communication server, OTA (over the air) upgrading method thereof and cloud server
JP2007099145A (en) Diagnosis system for on-vehicle network, and on-vehicle control device
CN115857996B (en) System and method for vehicle remote program writing, calibration and diagnosis
CN114546445B (en) Whole-vehicle OTA controller upgrading system and method based on micro-service architecture
CN213303011U (en) OTA-based vehicle ECU upgrading system
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
US20150277891A1 (en) Electronic controller software coding system and method for vehicle control
CN115291907A (en) Vehicle upgrading method, device and system
CN111459522A (en) Air conditioner and communication module upgrading method thereof
CN113791800A (en) Automatic parking control module remote upgrading method and system and automobile
CN115604113B (en) FAN network equipment rapid upgrading method, system, equipment and medium
CN114115178B (en) Vehicle radar diagnosis method and system based on domain controller
EP2458564A2 (en) Remote diagnosis of vehicles
CN113485734A (en) Automatic vehicle configuration flashing method
US20080221749A1 (en) Diagnostic Interface for Applications on a Service Gateway
CN108803582A (en) A kind of bus automatic switchover system and method suitable for remote fault diagnosis
CN115933599B (en) Automatic detection method, device, equipment and medium for automobile remote control function
CN115224685B (en) Power distribution management method, device, vehicle and storage medium

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