CN115878160A - 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
CN115878160A
CN115878160A CN202310214139.5A CN202310214139A CN115878160A CN 115878160 A CN115878160 A CN 115878160A CN 202310214139 A CN202310214139 A CN 202310214139A CN 115878160 A CN115878160 A CN 115878160A
Authority
CN
China
Prior art keywords
information
controller
ecu
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.)
Granted
Application number
CN202310214139.5A
Other languages
Chinese (zh)
Other versions
CN115878160B (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

Abstract

The invention discloses an ECU (electronic control unit) upgrading method and system based on CAN (controller area network) communication, which specifically comprise 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 which needs to modify the configuration information; 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; controlling a CAN controller to periodically send DID information to a vehicle bus so as to receive the DID information when a corresponding ECU is in an awakening state; when the corresponding ECU is in the awakening state, the ECU updates the configuration information according to the received DID information, so that 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 vehicle intelligent networking, 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 the intelligent internet automobiles, the specific gravity of automobile Electronic products in the whole automobile is larger and larger, and accordingly, more and more Electronic Control Units (ECUs) are provided in the automobile, and the functions are stronger and stronger. Due to the fact that the updating frequency of the current automobile software is high, in order to guarantee efficient operation of the electronic product in the automobile, the ECU in the electronic product in the automobile needs to be updated in time.
Software development of the existing automobile based on the CAN controller module is generally respectively developed according to different configurations or configuration programming is carried out on each ECU controller when the automobile is off-line, for example, an engine management system, a manual gear and an automatic gear need to be respectively developed, and clear distinction is also carried out on materials so as to avoid software mismatch caused by vehicle confusion when the automobile is installed, so that the management cost of materials in a host factory is increased, and the off-line configuration time is prolonged. If the vehicle is additionally provided with some electronic configurations after sale, the software of the related control unit needs to be upgraded, and in the prior art, the single ECU is independently updated one by one through the UDS terminal equipment, so that the efficiency of configuration upgrading is low, and the unified maintenance of the whole configuration is not facilitated.
Disclosure of Invention
The present invention is directed to improving and innovating the disadvantages and problems of the related art, and provides a configuration method and system based on CAN communication.
To achieve the above object, according to a first aspect of the present invention, the following technical solutions are provided: a configuration 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 (electronic control unit) of the target vehicle;
comparing the acquired first vehicle information with the second vehicle information of the latest version, thereby determining the ECU needing to modify the configuration information;
writing DID information into a CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
controlling a CAN controller to periodically send DID information to a vehicle bus in a broadcast mode so as to receive the DID information when a corresponding ECU is in an awakening state;
and when the corresponding ECU is in the awakening state, the ECU updates the configuration information according to the received DID information, thereby finishing software upgrading.
According to the technical scheme, the configuration information of the ECU and the ECU diagnosis ID are sent to the CAN controller, then the CAN controller is controlled to periodically send DID information to the vehicle bus in a broadcasting mode, so that when the corresponding ECU is in an awakening state, the DID information is received, and software upgrading is automatically completed according to the received DID information, so that the configuration information of a single ECU does not need to be independently updated aiming at the single ECU, the efficiency of configuration upgrading is greatly improved, the unified maintenance of the overall configuration is facilitated, and the configuration of the vehicle is only needed to be rewritten on the CAN controller after the configuration of the vehicle is subsequently changed.
Further, the controlling the CAN controller periodically sends the DID information to the vehicle bus in a broadcast form, so that when the corresponding ECU is in the wake-up state, the receiving the DID information specifically includes:
the CAN controller is controlled to periodically send ECU diagnosis ID information to a vehicle bus in a broadcasting mode, receive a real-time message returned by the vehicle bus, and judge whether the corresponding ECU is normally connected with the vehicle bus network or not according to the state code, wherein the real-time message comprises the state code with the ECU working state and the address information;
and if so, controlling the CAN controller 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, receiving the configuration information and returning upgrading success information to the CAN controller.
According to the technical scheme, the ECU diagnosis ID information is sent to the vehicle bus periodically, whether the network connection between the ECU and the vehicle bus is normal or not is determined, the corresponding ECU address information is obtained, and then the configuration information is sent to the ECU periodically so that the ECU can receive the configuration information; compared with the method of packaging and sending the DID information to the ECU, the method is beneficial to reducing the transmission quantity of data, thereby improving the processing performance of the CAN controller chip and saving the time spent by the corresponding ECU for updating the configuration information.
Further, after the step of determining whether the corresponding ECU is normally connected to the vehicle bus network through the state code, the method further includes:
and 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 further scheme is that the DID information is written into the CAN controller; the step of the DID information including at least configuration information of the corresponding ECU and the corresponding ECU diagnostic ID further includes, after the step of:
sending a fault code clearing instruction through the UDS diagnostic equipment, clearing a fault code of the CAN controller, 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 controlling the CAN controller to be powered on again to complete self-checking reset.
According to the technical scheme, the fault code clearing instruction is sent by the UDS diagnostic 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 favorably diagnosed subsequently.
Further, the step of receiving the DID information when the controlling CAN controller periodically transmits the DID information to the vehicle bus in a broadcast form so that the corresponding ECU is in the wake-up state further includes:
while the CAN controller periodically transmits DID information to the vehicle bus, the CAN controller records the time of transmission and the DID information transmitted.
According to a second aspect of the present invention, a configuration system based on CAN communication is provided, which specifically includes:
the information acquisition module is used for establishing communication connection with the 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 (electronic control unit) 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 needing 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 the corresponding ECU and a corresponding ECU diagnosis ID;
the information sending module is used for controlling the CAN controller to periodically send DID information to a vehicle bus in a broadcasting mode so as to receive the DID information when a corresponding ECU is in an awakening 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 ECU is in the awakening 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 network connection between the ECU and the vehicle bus is normal 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 of packaging and sending the DID information to the ECU, the method is beneficial to reducing the transmission quantity of data, thereby improving the processing performance of the CAN controller chip and saving the time spent by the corresponding ECU for updating the configuration information.
Further, the information sending module specifically includes:
the first sending unit is used for controlling the CAN controller to periodically send ECU diagnosis ID information to a 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 ECU working state and address information, and whether the corresponding ECU is normally connected with the vehicle bus network is judged 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 receives the configuration information and returns upgrading success information to the CAN controller when being in an awakening state.
Further, the information sending module 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.
The further scheme is that the method further comprises the following steps:
and the fault clearing module is used for sending a fault code clearing instruction through the UDS diagnostic 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, the first fault code comprises a fault state code of the CAN controller, and the CAN controller is controlled to be powered up again to complete self-checking reset.
Further, the information sending module further includes:
and the information recording unit is used for recording the transmission time and the transmitted DID information by the CAN controller while the CAN controller periodically transmits the DID information to the vehicle bus.
Compared with the prior art, the invention has the beneficial effects that: the method comprises the steps that ECU configuration information and ECU diagnosis ID are sent to the CAN controller, then the CAN controller is controlled to periodically send DID information to a vehicle bus in a broadcasting mode, so that when the corresponding ECU is in an awakening 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 aiming at the single ECU, the efficiency of configuration upgrading is greatly improved, the unified maintenance of overall configuration is facilitated, and the vehicle configuration is required to be rewritten on the CAN controller only after the subsequent change of the vehicle configuration; in addition, ECU diagnosis ID information is sent to a vehicle bus, whether the network connection between the ECU and the vehicle bus is normal or not and corresponding ECU address information are determined, and then configuration information is periodically sent to the ECU so that the ECU can receive the configuration information; compared with the method of sending DID information to the ECU in a packaging mode, the method is beneficial to reducing the transmission quantity of data, thereby improving the processing performance of the CAN controller chip and saving the time spent by the corresponding ECU for updating the configuration information.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used 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 it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for controlling a CAN controller to periodically send DID information to a vehicle bus in a broadcast manner according to one embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
It will be understood that when an element is referred to as being "secured 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. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Example 1
Referring to fig. 1, the present invention provides a method for upgrading ECU software based on CAN communication, which specifically includes the following steps:
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 connected to an OBD diagnosis interface of a target vehicle through a data line, then an access code is input into the UDS terminal device, and the UDS terminal device sends a connection request message 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 the connection success of the UDS terminal equipment and the CAN controller. And after the CAN controller receives the instruction, feeding back VIN codes of the target vehicle, configuration information of the target vehicle and software version information prestored in the database to the UDS terminal equipment so as to read the information of the first vehicle. Wherein the first vehicle information is used for comparison with the second vehicle information of the latest version, 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 a cloud, and the UDS terminal device scans the two-dimensional code or connects to the cloud to obtain the first vehicle information of the target vehicle, so that the operation convenience and the maintainability are improved.
S2, comparing the acquired first vehicle information with the second vehicle information of the latest version, and determining 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;
it is noted that the UDS terminal device writes DID information to the CAN controller, the DID information including at least configuration information of the corresponding ECU and the corresponding ECU diagnostic ID. 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, controlling the CAN controller to be powered on again, and completing self-checking reset;
the method comprises the steps that a fault code clearing instruction is sent through the UDS diagnostic equipment, a 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. By the arrangement, the condition that DID information cannot be sent to the corresponding ECU due to the problem of the CAN controller is avoided, and whether network connection between the corresponding ECU and the vehicle bus is normal or not is diagnosed in the follow-up process.
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 with a preset host factory cloud service platform based on a vehicle VIN code, wherein the vehicle VIN code belongs to a part of the acquired first vehicle information of the target vehicle, compares DID information of the CAN controller with relevant information of the host factory resource library, updates the configuration information of the target vehicle of the host factory resource library, and judges that the communication between the CAN controller and the host factory cloud service platform is normal after receiving feedback information of the updated state, so that the configuration information of the host factory resource library CAN be updated, and whether the connection and the working state of the CAN controller run normally CAN be tested.
S5, controlling the CAN controller to periodically send DID information to a vehicle bus in a broadcast mode so as to receive the DID information when a corresponding ECU is in an awakening state;
when the connection and working state of the CAN controller is judged to be normal operation, the CAN controller is controlled to periodically send DID information to a vehicle bus in a broadcast mode so as to enable a corresponding ECU to be in an awakening state, and the DID information is received.
Referring to fig. 2, the step S5 specifically includes the following steps:
s51, controlling the CAN controller to periodically send ECU diagnosis ID information to a vehicle bus in a broadcasting mode, 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 a vehicle bus network or not through the state code;
it CAN be understood that, when the vehicle bus does not return the real-time message of the corresponding ECU, indicating that the network connection between the corresponding ECU and the vehicle bus is not normal, the CAN controller will not receive the corresponding ECU address information, and the corresponding ECU returns the second fault code to the CAN controller, where the second fault code includes the 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 recovered to be normal and the ECU is in a normal state, the corresponding ECU address information CAN be received.
It should be noted that, when the ECU receives a signal sent by the CAN controller, the ECU returns a state code for feeding back the operating state and the address information.
And S52, if yes, controlling the CAN controller 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, receiving the configuration information and returning upgrading success information to the CAN controller.
It can be understood that, since the address information of the ECU is already obtained in step S51, the corresponding configuration information can be periodically sent to the corresponding ECU through the vehicle bus in a broadcast manner, so that the ECU obtains the corresponding ECU configuration information in the wake-up state, completes the upgrade of the ECU according to the corresponding ECU configuration information, and returns the information of completing the configuration upgrade and the upgrade success of 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 the state code that feeds back the operating state thereof, and the ECU is in the wake-up 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 diagnosis ID information to the vehicle bus, determining whether the network connection between the ECU and the vehicle bus is normal and acquiring the corresponding ECU address information, the corresponding ECU does not need to be in the wake-up state, and then sending the configuration information to the ECU, and the corresponding ECU needs to be in the wake-up state, so that the DID information is split into the ECU diagnosis ID and the configuration information and sent to the ECU.
In some embodiments, the CAN controller periodically transmits DID information to the vehicle bus and records the time of transmission and the DID information so as to find the reason when the transmission fails.
S6, when the corresponding ECU is in an awakening state, the ECU updates the configuration information according to the received DID information so as to finish software upgrading;
specifically, when the state code feedback ECU is in an awakening state, the CAN controller sends a signal to the vehicle intelligent special controller, and the intelligent special controller controls the ECU to modify the configuration information, so that the ECU is upgraded.
In summary, the present invention periodically sends the ECU diagnosis ID information to the vehicle bus, determines whether the network connection between the ECU and the vehicle bus is normal and the corresponding ECU address information, and then periodically sends the configuration information to the ECU, so that the ECU receives the configuration information; compared with the method of packaging and sending the DID information to the ECU, the method is beneficial to reducing the transmission quantity of data, thereby improving the processing performance of the CAN controller chip and saving the time spent by the corresponding ECU for updating the configuration information.
Referring to fig. 3, the present invention provides a configuration system based on CAN communication, which specifically includes:
the information acquisition module is used for establishing communication connection with the 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 (electronic control unit) 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 needing 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 is used for controlling the CAN controller to periodically send the DID information to a vehicle bus in a broadcasting mode so as to receive the DID information when the corresponding ECU is in an awakening 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 awakening 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 ECU diagnosis ID information to a 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 an ECU working state, and whether the corresponding ECU is normally connected with the vehicle bus network or not is judged 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 receives the configuration information and returns upgrading success information to the CAN controller when being in an awakening state.
Further, the information sending module further includes:
and the fault return unit returns 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, still include:
and the fault clearing module is used for sending a fault code clearing instruction through the UDS diagnostic 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, the first fault code comprises a fault state code of the CAN controller, and the CAN controller is controlled to be powered up again to complete self-checking reset.
Further, the information sending module further includes:
and the information recording unit is used for recording the transmission time and the transmitted DID information by the CAN controller while the CAN controller periodically transmits the DID information to the vehicle bus.
The functions or operation steps of the modules and units when executed are substantially the same as those of the method embodiments, and are not described herein again.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the device or element so referred to must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered as limiting the invention.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean 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, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example.
It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase 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 skilled in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. A configuration method based on CAN communication is characterized by specifically comprising 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 (electronic control unit) of the target vehicle;
comparing the acquired first vehicle information with the second vehicle information of the latest version, thereby determining the ECU configuration information needing to be modified;
writing DID information into a CAN controller; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
controlling a CAN controller to periodically send DID information to a vehicle bus in a broadcast mode so as to receive the DID information when a corresponding ECU is in an awakening state;
and when the corresponding ECU is in the awakening state, the ECU updates the ECU configuration information according to the received DID information, so that software upgrading is completed.
2. The method according to claim 1, wherein the controlling the CAN controller to periodically send DID information to the vehicle bus in a broadcast manner, so that when the corresponding ECU is in the wake-up state, the receiving the DID information specifically comprises:
the CAN controller is controlled to periodically send ECU diagnosis ID information to a vehicle bus in a broadcasting mode, receive a real-time message returned by the vehicle bus, and judge whether the corresponding ECU is normally connected with the vehicle bus network or not according to the state code, wherein the real-time message comprises the state code with the ECU working state and the address information;
if yes, the CAN controller is controlled to periodically send DID information to the vehicle bus in a broadcast mode, so that when the corresponding ECU is in the awakening state, the DID information is received and upgrading success information is returned to the CAN controller.
3. The CAN communication-based configuration method according to claim 2, wherein the step of determining whether the corresponding ECU is normally connected to the vehicle bus network through the status code further comprises:
and 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 CAN communication-based configuration method of claim 1, wherein the writing of DID information to the CAN controller; the step of DID information including at least configuration information of a corresponding ECU and a corresponding ECU diagnostic ID further includes:
sending a fault code clearing instruction through the UDS diagnostic equipment, clearing a fault code of the CAN controller, 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 controlling the CAN controller to be powered on again to complete self-checking reset.
5. The CAN communication-based configuration method of claim 1, wherein the step of controlling the CAN controller to periodically send the DID information to the vehicle bus in a broadcast manner so that the corresponding ECU is in the wake-up state, and receiving the DID information further comprises:
while the CAN controller periodically transmits DID information to the vehicle bus, the CAN controller records the time of transmission and the DID information transmitted.
6. A configuration system based on CAN communication specifically comprises:
the information acquisition module is used for establishing communication connection with the 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 (electronic control unit) 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; the DID information at least comprises configuration information of a corresponding ECU and a corresponding ECU diagnosis ID;
the information sending module is used for controlling the CAN controller to periodically send DID information to a vehicle bus in a broadcasting mode so as to receive the DID information when a corresponding ECU is in an awakening 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 awakening state, so that the software upgrading is completed.
7. The CAN communication-based configuration system according to claim 6, wherein the information sending module specifically comprises:
the CAN controller is used for periodically sending ECU diagnosis ID information to a vehicle bus in a broadcast mode, receiving a real-time message returned by the vehicle bus, and judging whether the corresponding ECU is normally connected with the vehicle bus network or not according to the state code, wherein the real-time message comprises the state code with the ECU address information;
and the second sending unit is used for controlling the CAN controller to periodically send configuration information to the vehicle bus in a broadcasting mode when the corresponding ECU is normally connected with the vehicle bus network, so that the DID information is received and upgrading success information is returned to the CAN controller when the corresponding ECU is in a wake-up state.
8. The CAN communication-based configuration system of claim 7, wherein the information sending 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 configuration system of claim 6, further comprising:
and the fault clearing module is used for sending a fault code clearing instruction through the UDS diagnostic 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, the first fault code comprises a fault state code of the CAN controller, and the CAN controller is controlled to be powered up again to complete self-checking reset.
10. The CAN communication-based configuration system of claim 6, wherein the information sending module further comprises:
and the information recording unit is used for recording the transmission time and the transmitted DID information by the CAN controller while the CAN controller periodically transmits 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 true CN115878160A (en) 2023-03-31
CN115878160B 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)

Cited By (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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140325500A1 (en) * 2013-04-24 2014-10-30 Obigo Inc. Method, system, and computer-readable recording media for updating electronic control unit
CN106250170A (en) * 2015-06-15 2016-12-21 李尔公司 The method updating Vehicle Electronic Control Unit for OTA
CN108153562A (en) * 2017-12-26 2018-06-12 浙江中科正方电子技术有限公司 A kind of new-energy automobile ECU teleprograms more new management system and method
CN110474961A (en) * 2019-07-14 2019-11-19 江苏开沃汽车有限公司 Pure electricity passenger car is based on CAN bus and realizes multi-channel long OTA upgrade method
CN111610993A (en) * 2020-05-20 2020-09-01 麦腾物联网技术有限公司 Firmware upgrading method, server and system
WO2021012078A1 (en) * 2019-07-19 2021-01-28 华为技术有限公司 Can communication method, device and system
US20210397433A1 (en) * 2018-10-15 2021-12-23 Autonetworks Technologies, Ltd. On-board update device, update processing program, program update method, and on-board update system
CN115442233A (en) * 2022-08-09 2022-12-06 北京罗克维尔斯科技有限公司 ECU upgrading method and device, electronic equipment, storage medium and vehicle

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140325500A1 (en) * 2013-04-24 2014-10-30 Obigo Inc. Method, system, and computer-readable recording media for updating electronic control unit
CN106250170A (en) * 2015-06-15 2016-12-21 李尔公司 The method updating Vehicle Electronic Control Unit for OTA
CN108153562A (en) * 2017-12-26 2018-06-12 浙江中科正方电子技术有限公司 A kind of new-energy automobile ECU teleprograms more new management system and method
US20210397433A1 (en) * 2018-10-15 2021-12-23 Autonetworks Technologies, Ltd. On-board update device, update processing program, program update method, and on-board update system
CN110474961A (en) * 2019-07-14 2019-11-19 江苏开沃汽车有限公司 Pure electricity passenger car is based on CAN bus and realizes multi-channel long OTA upgrade method
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭志刚;潘俊家;韩光省;郝晶晶;牛宏宇;: "基于车载CAN总线的安全通信机制研究" *

Cited By (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

Also Published As

Publication number Publication date
CN115878160B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN109164783B (en) Vehicle diagnosis method, apparatus, device, and medium
US7502353B2 (en) Device for accessing a vehicle control system via a wireless link
RU2669526C2 (en) Method for reflashing electronic modules and a vehicle
CN102298526B (en) Method for upgrading programs of peripheral equipment based on single chips without external extended memories
US7275236B1 (en) Method for programming a multiple device control system using object sharing
US8688319B2 (en) Procedure for adaptive configuration recognition
US20030078701A1 (en) System for installing control program in electronic control unit mounted on automotive vehicle
CN101927738A (en) Whole vehicle network configuration system and configuration method thereof
CN115878160B (en) ECU (electronic control Unit) upgrading method and system based on CAN (controller area network) communication
CN111488165B (en) Method and system for upgrading vehicle ECU through script
CN115857996B (en) System and method for vehicle remote program writing, calibration and diagnosis
CN110069433B (en) Medium system compatible with different automobile CAN communication interfaces
US20150277891A1 (en) Electronic controller software coding system and method for vehicle control
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
CN113050601A (en) Vehicle offline diagnosis method and device, diagnosis equipment and storage medium
CN213303011U (en) OTA-based vehicle ECU upgrading system
EP2458564B1 (en) Remote diagnosis of vehicles
US20230153097A1 (en) Devices and method for managing electronic control units of a motor vehicle
CN112153578B (en) Vehicle configuration code self-checking method and vehicle
CN114906160A (en) Vehicle control and task processing method and device, computing equipment and system
CN113485734A (en) Automatic vehicle configuration flashing method
CN113037554A (en) Communication protocol adaptation method, device, equipment and storage medium
WO2024060166A1 (en) Sensor software change method and apparatus, and intelligent driving device
CN116909609B (en) Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment
NL2028133B1 (en) In-vehicle control system and method of adding a client controller in a vehicle

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