CN113535217A - ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus - Google Patents

ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus Download PDF

Info

Publication number
CN113535217A
CN113535217A CN202110848222.9A CN202110848222A CN113535217A CN 113535217 A CN113535217 A CN 113535217A CN 202110848222 A CN202110848222 A CN 202110848222A CN 113535217 A CN113535217 A CN 113535217A
Authority
CN
China
Prior art keywords
ecu
updating
update
storage space
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110848222.9A
Other languages
Chinese (zh)
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.)
Shanghai Keluo Dayun Software Technology Co ltd
Original Assignee
Shanghai Keluo Dayun Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Keluo Dayun Software Technology Co ltd filed Critical Shanghai Keluo Dayun Software Technology Co ltd
Priority to CN202110848222.9A priority Critical patent/CN113535217A/en
Publication of CN113535217A publication Critical patent/CN113535217A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an ECU (electronic control unit) updating optimization system and method on a CAN (controller area network) bus, wherein the optimization system comprises a communication transmission module, a detection module, a processing module and an updating module, the communication transmission module is in communication connection with the CAN bus, the detection module is used for carrying out system updating detection on each ECU functional unit on the CAN bus, the processing module is used for processing an updating detection result and judging whether to update or not, and the updating module stores a system updating packet with the latest version.

Description

ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus
Technical Field
The invention relates to the technical field of ECU updating, in particular to an ECU updating optimization system and method on a CAN bus.
Background
The ECU is the same as a common computer and consists of a Microcontroller (MCU), a memory (ROM and RAM), an input/output interface (I/O), an analog-to-digital converter (A/D), a shaping circuit, a driving circuit and other large-scale integrated circuits. The simple expression means that the ECU is the brain of the vehicle. CAN is a serial communication protocol that is ISO international standardized. In the automotive industry, various electronic control systems have been developed for the purpose of safety, comfort, convenience, low power consumption, and low cost. Since the types of data used for communication between these systems and the requirements for reliability are different, the number of harnesses is increased in many cases because the harnesses are formed of a plurality of buses. To meet the needs of "reducing the number of wire harnesses" and "performing high-speed communication of a large amount of data through a plurality of LANs", german electric company bosch developed a CAN communication protocol for automobiles in 1986.
When the ECU of the automobile is updated in the prior art, a conventional updating method is generally adopted, and when the system version of the ECU is detected to be low, the mode of downloading and updating a new version is directly adopted, but the mode hardly gives consideration to the actual use conditions of all functional units of the existing ECU.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an ECU updating and optimizing system and method on a CAN bus, which CAN carry out targeted updating according to the memory use condition of each functional unit of the ECU so as to solve the problem that the updating and optimizing effect of the ECU is not good enough due to the fact that the existing ECU updating process is not intelligent enough.
In order to achieve the purpose, the invention is realized by the following technical scheme: an ECU updating optimization system on a CAN bus comprises a communication transmission module, a detection module, a processing module and an updating module, wherein the communication transmission module is used for being in communication connection with the CAN bus, the detection module is used for carrying out system updating detection on each ECU functional unit on the CAN bus, the processing module is used for processing an updating detection result and judging whether updating is carried out or not, and the updating module stores a system updating packet with the latest version;
the detection module comprises a storage detection unit, a model detection unit and a system version detection unit, wherein the storage detection unit is used for detecting the storage space of each ECU, the model detection unit is used for detecting the model of each ECU, and the system version detection unit is used for acquiring the system version number of each ECU;
the processing module comprises an evaluation unit, a matching unit and a processing unit, wherein the matching unit is configured with a matching strategy, and the matching strategy comprises: firstly, acquiring the version number of a latest system updating package of the type according to the type of the ECU, then comparing the version number of the latest system updating package with the system version number acquired by a system version detection unit, and outputting the ECU without updating when the comparison result is consistent; when the comparison result is inconsistent, outputting the ECU to be updated;
the evaluation unit is configured with an evaluation policy, the evaluation policy comprising: acquiring the memory occupied by the latest system update package of the ECU to be updated, comparing the memory with the storage space of the ECU, and outputting the memory to be updated when the remaining storage space of the ECU is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU is less than or equal to the latest system update package, outputting the update-impossible information;
the processing unit comprises a processing strategy, and the processing strategy comprises: after an instruction capable of being updated is output, acquiring a corresponding latest system update package from an update module;
the update module is configured with an update policy, the update policy comprising: and transmitting the latest system update package to the corresponding ECU functional unit through the communication transmission module and the CAN bus, and then updating the system.
Further, the storage detection unit comprises an operation detection subunit and an initial configuration detection subunit, wherein the operation detection subunit is used for detecting the remaining storage space of each ECU in an operating state, and the initial configuration detection subunit is used for detecting the storage space of the initial configuration of each ECU;
the evaluating policy further comprises: comparing the memory occupied by the latest system update package of the ECU needing to be updated with the remaining storage space of the ECU in the operating state, and outputting the updated data when the remaining storage space of the ECU in the operating state is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU in the running state is less than or equal to the latest system update package, the output cannot be updated.
Further, the storage detection unit further comprises a storage garbage detection subunit, wherein the storage garbage detection subunit is used for detecting garbage data stored in the ECU, and the garbage data represents a data file which does not affect the normal operation of the ECU;
the evaluating policy further comprises: deleting the garbage data from the storage space of the ECU to obtain the deleted storage space of the ECU, and outputting the data to be updated when the deleted storage space in the ECU is larger than the memory occupied by the latest system update package; and when the storage space in the deleted ECU is less than or equal to the memory occupied by the latest system update package, the output cannot be updated.
Further, the communication transmission module sets a communication transmission policy, which includes: and a source address verification is respectively set for each ECU node on the CAN bus, a corresponding verification code is respectively set for each source address by the communication transmission module, verification is required when updating detection is carried out every time, and updating detection CAN be carried out after the verification is passed.
Further, the processing module further includes a reminding unit, the reminding unit is configured with a reminding strategy, and the reminding strategy includes: when receiving an update instruction, sending an update option to the user side, wherein the update option comprises update possibility and non-update possibility, and when the user feedback of the user side can be updated, transmitting the update instruction to the update module; and when the feedback of the user side cannot be updated, stopping updating, and setting a reminding instruction, wherein the reminding instruction sends an updating option to the user side when the user side is started next time.
A method of ECU update optimization system on a CAN bus, the method comprising the steps of:
step S1, establishing communication connection with the CAN bus;
step S2, detecting each ECU functional unit connected with the CAN bus, and respectively detecting the storage space, the model and the system version number of each ECU;
step S3, firstly, acquiring the version number of the latest system updating package of the type according to the type of the ECU, then comparing the version number of the latest system updating package with the system version number acquired by the system version detection unit, and outputting the ECU without updating when the comparison result is consistent; when the comparison result is inconsistent, outputting the ECU to be updated;
step S4, acquiring the memory occupied by the latest system update package of the ECU needing to be updated, comparing the memory with the storage space of the ECU, and outputting the memory capable of being updated when the remaining storage space of the ECU is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU is less than or equal to the latest system update package, outputting the update-impossible information;
step S5, when the command for updating is output, the corresponding latest system updating package is obtained from the updating module;
and step S6, transmitting the latest system update package to the corresponding ECU functional unit through the communication transmission module and the CAN bus, and then updating the system.
Further, the step S1 further includes a step a1, and the step a1 includes: and a source address verification is respectively set for each ECU node on the CAN bus, a corresponding verification code is respectively set for each source address by the communication transmission module, verification is required when updating detection is carried out every time, and updating detection CAN be carried out after the verification is passed.
Further, the step S2 further includes a step B1, and the step B1 includes: respectively detecting the residual storage space of each ECU in the running state and the initially configured storage space of the ECU;
the step S4 further includes a step C1, and the step C1 includes: comparing the memory occupied by the latest system update package of the ECU needing to be updated with the remaining storage space of the ECU in the operating state, and outputting the updated data when the remaining storage space of the ECU in the operating state is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU in the running state is less than or equal to the latest system update package, the output cannot be updated.
Further, the step S2 further includes a step B2, and the step B2 includes: detecting junk data stored in the ECU, wherein the junk data represents a data file which does not influence the normal operation of the ECU;
the step S4 further includes a step C2, and the step C2 includes: deleting the garbage data from the storage space of the ECU to obtain the deleted storage space of the ECU, and outputting the data to be updated when the deleted storage space in the ECU is larger than the memory occupied by the latest system update package; and when the storage space in the deleted ECU is less than or equal to the memory occupied by the latest system update package, the output cannot be updated.
Further, the step S5 further includes a step D1, the step D1 is started before the step S5, the step D1 includes: when receiving an update instruction, sending an update option to the user side, wherein the update option comprises update possibility and non-update possibility, and when the user feedback of the user side can be updated, transmitting the update instruction to the update module; and when the feedback of the user side cannot be updated, stopping updating, and setting a reminding instruction, wherein the reminding instruction sends an updating option to the user side when the user side is started next time.
The invention has the beneficial effects that: according to the invention, the storage space of the ECU, the type of the ECU and the system version number are detected firstly, and then the processing module is used for processing, so that whether the updating is needed or not can be judged according to the actual use condition of each ECU, and the updating is abandoned for some ECU functional units which do not have updating qualification, thereby keeping the original operation state.
According to the invention, by arranging the garbage storage detection subunit, the garbage data can be detected and deleted, so that a new storage space is further provided for updating the ECU, and the operation smoothness of the ECU after updating is improved.
The invention can remind the user of the user end when updating by arranging the reminding unit, judges whether the updating is needed by the user, and can delay the updating when the user is in use, thereby avoiding the influence on the use process of the user.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a schematic block diagram of the system of the present invention;
FIG. 2 is a flow chart of the method of the present invention.
In the figure: 1. optimizing the system; 11. a communication transmission module; 12. a detection module; 121. a storage detection unit; 1211. operating the detection subunit; 1212. initially configuring a detection subunit; 1213. a storage garbage detection subunit; 122. a model detection unit; 123. a system version detection unit; 13. a processing module; 131. an evaluation unit; 132. a matching unit; 133. a processing unit; 134. a reminding unit; 14. an update module; 2. a CAN bus; 3. an ECU; 4. and a user side.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further described with the specific embodiments.
Referring to fig. 1, an ECU update optimization system on a CAN bus, where the optimization system 1 includes a communication transmission module 11, a detection module 12, a processing module 13, and an update module 14, the communication transmission module 11 is configured to be in communication connection with the CAN bus 2, the detection module 12 is configured to perform system update detection on each ECU3 functional unit on the CAN bus 2, the processing module 13 is configured to process a result of the update detection and determine whether to perform update, and the update module 14 stores a system update package of a latest version.
The communication transmission module 11 sets a communication transmission policy, which includes: a source address is set for each ECU3 node on the CAN bus 2 for verification, the communication transmission module 11 is set with a corresponding verification code for each source address, verification is needed each time when updating detection is carried out, updating detection CAN be carried out after verification is passed, and virus updating information intrusion CAN be prevented by setting the source address and the verification code for matching, so that the safety of the updating process is improved.
The detection module 12 includes a storage detection unit 121, a model detection unit 122, and a system version detection unit 123, the storage detection unit 121 is configured to detect a storage space of each ECU3, the storage detection unit 121 includes an operation detection subunit 1211 and an initial configuration detection subunit 1212, the operation detection subunit 1211 is configured to detect a remaining storage space of each ECU3 in an operating state, and the initial configuration detection subunit 1212 is configured to detect a storage space of an initial configuration of each ECU 3; the storage detection unit 121 further includes a storage garbage detection subunit 1213, where the storage garbage detection subunit 1213 is configured to detect garbage data stored in the ECU3, where the garbage data represents data files that do not affect the normal operation of the ECU3, and by means of the status of the storage space of the ECU3, an update environment can be evaluated for a new system update package, and system update can be restarted when the update condition is satisfied.
The model detection unit 122 is configured to detect models of the ECUs 3, the system version detection unit 123 is configured to obtain a system version number of each ECU3, and by obtaining the model of the ECU3 and the system version number of the ECU3, the latest system update package of the ECU3 can be called from the update module 14, so that the update efficiency is improved.
The processing module 13 includes an evaluating unit 131, a matching unit 132, and a processing unit 133, where the matching unit 132 is configured with a matching policy, and the matching policy includes: firstly, acquiring the version number of the latest system update package of the type according to the type of the ECU3, then comparing the version number of the latest system update package with the system version number acquired by the system version detection unit 123, and outputting the ECU3 without updating when the comparison result is consistent; when the comparison result is not consistent, the ECU3 needs to be updated.
The evaluation unit 131 is configured with an evaluation policy comprising: acquiring the memory occupied by the latest system update package of the ECU3 needing to be updated, comparing the memory with the storage space of the ECU3, and outputting the memory for updating when the remaining storage space of the ECU3 is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU3 is less than or equal to the latest system update package, the output is not available for updating;
the evaluating policy further comprises: comparing the memory occupied by the latest system update package of the ECU3 needing updating with the residual storage space of the ECU3 in the operating state, and outputting the updated memory when the residual storage space of the ECU3 in the operating state is larger than the memory occupied by the latest system update package; when the remaining memory space of the ECU3 in the operating state is equal to or less than the latest system update package, the output cannot be updated.
The evaluating policy further comprises: deleting the garbage data from the storage space of the ECU3 to obtain the deleted storage space of the ECU3, and outputting the data to be updated when the deleted storage space of the ECU3 is larger than the memory occupied by the latest system update package; when the memory space in ECU3 after deletion is equal to or less than the memory occupied by the latest system update package, the output cannot be updated.
The processing module 13 further includes a reminding unit 134, and the reminding unit 134 is configured with reminding strategies, where the reminding strategies include: when receiving an update-possible instruction, sending an update option to the user terminal 4, where the update option includes update-possible and update-impossible, and when the user feedback of the user terminal 4 is updated, transmitting the update-possible instruction to the update module 14; when the feedback of the user terminal 4 is not available for updating, the updating is stopped, a reminding instruction is set, and the reminding instruction sends an updating option to the user terminal 4 when the user terminal is started next time. The function that sets up the user and remind can make the user make the selection on updating, and some users can be used to more to old version, can make some users use not to be used to after the new version of update, sets up this function and can laminate user's user demand more.
The processing unit 133 includes a processing policy, which includes: after outputting an update-available instruction, obtaining a corresponding latest system update package from the update module 14; the update module 14 is configured with an update policy that includes: the latest system update package is transmitted to the corresponding ECU3 functional unit through the communication transmission module 11 and the CAN bus 2, and then system update is performed.
Referring to fig. 2, a method for updating an optimization system by an ECU on a CAN bus includes the steps of:
step S1, firstly establishing communication connection with the CAN bus 2, setting a source address verification for each ECU3 node on the CAN bus 2, setting a corresponding verification code for each source address by the communication transmission module 11, wherein the verification is needed each time the update detection is performed, and the update detection CAN be performed after the verification is passed;
step S2, then detecting each ECU3 functional unit connected with the CAN bus 2, and respectively detecting the storage space, the model and the system version number of each ECU 3; separately detecting the remaining storage space of each ECU3 and the storage space of the initial configuration of ECU3 in the operating state; detecting spam data stored within the ECU3, the spam data representing data files that do not affect the normal operation of the ECU 3;
step S3, first obtaining the version number of the latest system update package of the type according to the type of the ECU3, then comparing the version number of the latest system update package with the system version number obtained by the system version detection unit 123, and when the comparison result is consistent, outputting the ECU3 without updating; when the comparison result is not consistent, the ECU3 is output to be updated;
step S4, acquiring the memory occupied by the latest system update package of the ECU3 that needs to be updated, comparing the memory with the storage space of the ECU3, and outputting an update request when the remaining storage space of the ECU3 is greater than the memory occupied by the latest system update package; when the remaining storage space of the ECU3 is less than or equal to the latest system update package, the output is not available for updating;
comparing the memory occupied by the latest system update package of the ECU3 needing updating with the residual storage space of the ECU3 in the operating state, and outputting the updated memory when the residual storage space of the ECU3 in the operating state is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU3 in the operating state is less than or equal to the latest system update package, the output cannot be updated;
deleting the garbage data from the storage space of the ECU3 to obtain the deleted storage space of the ECU3, and outputting the data to be updated when the deleted storage space of the ECU3 is larger than the memory occupied by the latest system update package; when the storage space in the deleted ECU3 is less than or equal to the memory occupied by the latest system update package, the output cannot be updated;
step S5, after receiving the command for updating, sending an update option to the user end 4, where the update option includes update possible and non-update possible, and when the user feedback of the user end 4 can be updated, transmitting the command for updating to the update module 14; when the user side 4 feeds back that the updating cannot be performed, the updating is stopped, a reminding instruction is set, and the reminding instruction sends an updating option to the user side 4 when the next startup is performed;
after outputting an update-available instruction, obtaining a corresponding latest system update package from the update module 14;
in step S6, the latest system update packet is transmitted to the corresponding ECU3 function unit through the communication transmission module 11 and the CAN bus 2, and then system update is performed.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. The ECU updating optimization system on the CAN bus is characterized in that the optimization system (1) comprises a communication transmission module (11), a detection module (12), a processing module (13) and an updating module (14), wherein the communication transmission module (11) is used for being in communication connection with the CAN bus (2), the detection module (12) is used for carrying out system updating detection on each ECU (3) functional unit on the CAN bus (2), the processing module (13) is used for processing the result of the updating detection and judging whether updating is carried out or not, and the updating module (14) stores the system updating packet with the latest version;
the detection module (12) comprises a storage detection unit (121), a model detection unit (122) and a system version detection unit (123), wherein the storage detection unit (121) is used for detecting the storage space of each ECU (3), the model detection unit (122) is used for detecting the model of each ECU (3), and the system version detection unit (123) is used for acquiring the system version number of each ECU (3);
the processing module (13) comprises an evaluation unit (131), a matching unit (132) and a processing unit (133), the matching unit (132) being configured with a matching policy comprising: firstly, acquiring the version number of a latest system updating package of the type according to the type of the ECU (3), then comparing the version number of the latest system updating package with the system version number acquired by a system version detection unit (123), and outputting the ECU (3) without updating when the comparison result is consistent; when the comparison result is inconsistent, outputting that the ECU (3) needs to be updated;
the evaluation unit (131) is configured with an evaluation policy comprising: acquiring a memory occupied by a latest system update package of the ECU (3) needing to be updated, comparing the memory with a storage space of the ECU (3), and outputting the memory to be updated when the remaining storage space of the ECU (3) is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU (3) is less than or equal to the latest system update package, outputting that the update can not be carried out;
the processing unit (133) comprises a processing policy comprising: after an instruction capable of updating is output, a corresponding latest system updating package is obtained from an updating module (14);
the update module (14) is configured with an update policy comprising: and transmitting the latest system updating packet to the corresponding ECU (3) functional unit through the communication transmission module (11) and the CAN bus (2), and then updating the system.
2. An ECU update optimization system on CAN bus according to claim 1 characterized in that, the storage detection unit (121) includes an operation detection subunit (1211) and an initial configuration detection subunit (1212), the operation detection subunit (1211) is used to detect the remaining storage space of each ECU (3) in operation state, the initial configuration detection subunit (1212) is used to detect the storage space of the initial configuration of each ECU (3);
the evaluating policy further comprises: comparing the memory occupied by the latest system update package of the ECU (3) needing to be updated with the residual storage space of the ECU (3) in the operating state, and outputting the updated memory when the residual storage space of the ECU (3) in the operating state is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU (3) in the running state is less than or equal to the latest system update package, the output cannot be updated.
3. An ECU update optimization system on CAN bus according to claim 2 characterized in that the storage detection unit (121) further comprises a storage garbage detection subunit (1213), the storage garbage detection subunit (1213) is used to detect garbage data stored in the ECU (3), the garbage data represents a data file that does not affect the normal operation of the ECU (3);
the evaluating policy further comprises: deleting the garbage data from the storage space of the ECU (3) to obtain the deleted storage space of the ECU (3), and outputting the data to be updated when the deleted storage space in the ECU (3) is larger than the memory occupied by the latest system update package; when the storage space in the ECU (3) after deletion is less than or equal to the memory occupied by the latest system update package, the output cannot be updated.
4. The ECU update optimization system on the CAN bus according to claim 3, wherein the communication transmission module (11) sets a communication transmission strategy comprising: a source address verification is respectively set for each ECU (3) node on the CAN bus (2), a corresponding verification code is respectively set for each source address by the communication transmission module (11), verification is needed when updating detection is carried out each time, and updating detection CAN be carried out after verification is passed.
5. The ECU update optimization system on the CAN bus of claim 4, wherein the processing module (13) further comprises a reminding unit (134), the reminding unit (134) is configured with a reminding strategy, and the reminding strategy comprises: when receiving an update-possible instruction, sending an update option to the user terminal (4), wherein the update option comprises update-possible and update-impossible, and when the user feedback of the user terminal (4) can be updated, transmitting the update-possible instruction to the update module (14); and when the feedback of the user side (4) cannot be updated, stopping updating, and setting a reminding instruction, wherein the reminding instruction sends an updating option to the user side (4) when the user side is started next time.
6. A method for ECU update optimization system on CAN bus according to any of claims 1-5, characterized in that the method comprises the following steps:
step S1, establishing communication connection with the CAN bus (2);
step S2, detecting each ECU (3) functional unit connected with the CAN bus (2), and respectively detecting the storage space, the model and the system version number of each ECU (3);
step S3, firstly, acquiring the version number of the latest system updating package of the type according to the type of the ECU (3), then comparing the version number of the latest system updating package with the system version number acquired by the system version detection unit (123), and outputting the ECU (3) without updating when the comparison result is consistent; when the comparison result is inconsistent, outputting that the ECU (3) needs to be updated;
step S4, acquiring the memory occupied by the latest system update package of the ECU (3) needing to be updated, comparing the memory with the storage space of the ECU (3), and outputting the memory capable of being updated when the remaining storage space of the ECU (3) is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU (3) is less than or equal to the latest system update package, outputting that the update can not be carried out;
step S5, when the command for updating is output, the corresponding latest system updating package is obtained from the updating module (14);
and step S6, transmitting the latest system update package to the corresponding ECU (3) functional unit through the communication transmission module (11) and the CAN bus (2), and then updating the system.
7. The method according to claim 6, wherein the step S1 further comprises a step A1, the step A1 comprising: a source address verification is respectively set for each ECU (3) node on the CAN bus (2), a corresponding verification code is respectively set for each source address by the communication transmission module (11), verification is needed when updating detection is carried out each time, and updating detection CAN be carried out after verification is passed.
8. The method according to claim 7, wherein the step S2 further comprises a step B1, the step B1 comprising: respectively detecting the residual storage space of each ECU (3) in the running state and the storage space of the initial configuration of the ECU (3);
the step S4 further includes a step C1, and the step C1 includes: comparing the memory occupied by the latest system update package of the ECU (3) needing to be updated with the residual storage space of the ECU (3) in the operating state, and outputting the updated memory when the residual storage space of the ECU (3) in the operating state is larger than the memory occupied by the latest system update package; when the remaining storage space of the ECU (3) in the running state is less than or equal to the latest system update package, the output cannot be updated.
9. The method according to claim 8, wherein the step S2 further includes a step B2, the step B2 includes: detecting junk data stored in the ECU (3), wherein the junk data represents a data file which does not affect the normal operation of the ECU (3);
the step S4 further includes a step C2, and the step C2 includes: deleting the garbage data from the storage space of the ECU (3) to obtain the deleted storage space of the ECU (3), and outputting the data to be updated when the deleted storage space in the ECU (3) is larger than the memory occupied by the latest system update package; when the storage space in the ECU (3) after deletion is less than or equal to the memory occupied by the latest system update package, the output cannot be updated.
10. The method according to claim 9, wherein the step S5 further includes a step D1, the step D1 being initiated before the step S5, the step D1 including: when receiving an update-possible instruction, sending an update option to the user terminal (4), wherein the update option comprises update-possible and update-impossible, and when the user feedback of the user terminal (4) can be updated, transmitting the update-possible instruction to the update module (14); and when the feedback of the user side (4) cannot be updated, stopping updating, and setting a reminding instruction, wherein the reminding instruction sends an updating option to the user side (4) when the user side is started next time.
CN202110848222.9A 2021-07-27 2021-07-27 ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus Pending CN113535217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110848222.9A CN113535217A (en) 2021-07-27 2021-07-27 ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110848222.9A CN113535217A (en) 2021-07-27 2021-07-27 ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus

Publications (1)

Publication Number Publication Date
CN113535217A true CN113535217A (en) 2021-10-22

Family

ID=78089086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110848222.9A Pending CN113535217A (en) 2021-07-27 2021-07-27 ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus

Country Status (1)

Country Link
CN (1) CN113535217A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572221A (en) * 2015-01-30 2015-04-29 重庆邮电大学 Vehicle-mounted ECU (electronic control unit) online updating system and method
CN104809009A (en) * 2015-03-23 2015-07-29 陕西法士特齿轮有限责任公司 Program loading leading method of electric control system of car
CN108153562A (en) * 2017-12-26 2018-06-12 浙江中科正方电子技术有限公司 A kind of new-energy automobile ECU teleprograms more new management system and method
CN108459865A (en) * 2018-01-25 2018-08-28 成都贝发信息技术有限公司 A kind of newer detection method of application APP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572221A (en) * 2015-01-30 2015-04-29 重庆邮电大学 Vehicle-mounted ECU (electronic control unit) online updating system and method
CN104809009A (en) * 2015-03-23 2015-07-29 陕西法士特齿轮有限责任公司 Program loading leading method of electric control system of car
CN108153562A (en) * 2017-12-26 2018-06-12 浙江中科正方电子技术有限公司 A kind of new-energy automobile ECU teleprograms more new management system and method
CN108459865A (en) * 2018-01-25 2018-08-28 成都贝发信息技术有限公司 A kind of newer detection method of application APP

Similar Documents

Publication Publication Date Title
CN105981336B (en) Abnormality detection electronic control unit, vehicle-mounted network system, and abnormality detection method
CN110928567A (en) Vehicle system upgrading method, terminal device and computer-readable storage medium
CN111385191A (en) Vehicle-mounted interconnected gateway, vehicle OTA upgrading system and method and computer storage medium
CN107454107B (en) Controller local area network automobile bus alarm gateway for detecting injection type attack
CN110460573A (en) One kind being applied to automobile ECU safety upgrade management system and method
US11288054B2 (en) Vehicular communication system
CN113093687B (en) Fault diagnosis system and method based on domain controller
CN108664256A (en) Firmware updating method and device of system and battery management system
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
EP0475406B1 (en) Multiplex transmission system for vehicles
CN112162758A (en) Parallel flashing method based on wireless network and parallel flashing system thereof
CN112835598B (en) Automobile ECU (electronic control Unit) refreshing method and system and computer readable storage medium thereof
CN113895379B (en) Automatic drive-by-wire system of vehicle
WO2024109535A1 (en) Communication interaction method and apparatus, device, and storage medium
CN113535217A (en) ECU (electronic control unit) updating optimization system and method on CAN (controller area network) bus
CN116633780A (en) Gateway upgrading method and device for vehicle, vehicle and storage medium
JP4013592B2 (en) Vehicle communication system
CN115225481B (en) Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium
CN115080092A (en) Software upgrading method and device and electronic equipment
JP2019009678A (en) On-vehicle communication network system
CN114967634A (en) Processor diagnostic device, processor diagnostic method, and electronic apparatus
JP2005145262A (en) Car-mounted lan system
CN111984284A (en) Data rewriting method and data rewriting system
CN111694581B (en) Software upgrading method of automobile noise reduction system and automobile noise reduction system
CN113741393B (en) Vehicle safety network architecture based on central gateway and diagnosis method thereof

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