CN109901861B - Method and device for updating software of electronic control unit - Google Patents
Method and device for updating software of electronic control unit Download PDFInfo
- Publication number
- CN109901861B CN109901861B CN201910143408.7A CN201910143408A CN109901861B CN 109901861 B CN109901861 B CN 109901861B CN 201910143408 A CN201910143408 A CN 201910143408A CN 109901861 B CN109901861 B CN 109901861B
- Authority
- CN
- China
- Prior art keywords
- control unit
- type
- electric control
- updating
- software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method and a device for updating software of an electric control unit, which are used for carrying out type division on the electric control unit; confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function; establishing a data transmission channel; downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel; and updating software of the first type of electric control unit based on the updating data of the first type of electric control unit. Compared with the prior art, the unit with the data storage function in the electric control unit is divided, and the independent data transmission channel is established for the unit, so that the unit can independently download data and update software, the data storage pressure and the resource occupation risk of the central control unit can be reduced, the software updating efficiency and speed of the unit are improved, and the use stability of the vehicle-mounted terminal is ensured.
Description
Technical Field
The invention relates to the field of software updating, in particular to a method and a device for updating software of an electronic control unit.
Background
Along with the improvement of the complexity of automobile electronic and electric devices and the popularization of the internet of vehicles and intelligent driving technology, software updating of an electronic control unit in a vehicle is more frequent, and the existing software updating method of the vehicle electronic control unit comprises external device updating and remote updating, wherein the remote updating can be completed without carrying extra equipment, and the updating is more convenient than the updating of the external device.
In the prior art, a remote software updating method generally downloads a data file required by vehicle software updating to a central control unit mounted on a vehicle, and then refreshes the software to other electronic control units by a diagnostic method. However, as functions in the vehicle are more and more comprehensive, the data volume of the electronic control unit arranged in the vehicle is greatly increased, so that in the existing remote updating mode, due to the limited storage resources of the central control unit, downloading, storing, decompressing and the like of a large amount of data cannot be performed, the electronic control unit cannot be updated smoothly, and even due to the occupied storage resources, the performance and the use of the vehicle-mounted terminal are affected.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for updating software of an electronic control unit, wherein a first type of electronic control unit having a data storage function in the electronic control unit is divided, and an individual data transmission channel is established for the first type of electronic control unit, so that the first type of electronic control unit can independently download data and update software, thereby reducing data storage pressure of a central control unit and risk of resource occupation, improving software updating efficiency and speed of the first type of electronic control unit, and ensuring use stability of a vehicle-mounted terminal.
The embodiment of the invention provides a software updating method for an electric control element, which comprises the following steps:
the type of the electric control unit is divided;
confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function;
establishing a data transmission channel;
downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel;
and updating software of the first type of electric control unit based on the updating data of the first type of electric control unit.
Further, before downloading the update data of the first type of electronic control unit to the first type of electronic control unit based on the data transmission channel, the method includes:
respectively detecting the current software version of the first type of electric control unit and the latest software version of the first type of electric control unit;
detecting whether the latest software version is higher than the current software version;
and if the latest software version is higher than the current software version, determining the updating data of the first type of electronic control unit.
Further, the downloading the update data to the first type of electronic control unit based on the data transmission channel includes:
determining verification information of the updated data;
verifying the updated data based on the verification information;
and if the verification information is verified successfully, downloading the updating data to the first type of electric control unit through the data transmission channel.
Further, the updating the software of the first type of electronic control unit based on the update data includes:
receiving a software updating instruction sent by a central control unit;
and replacing, deleting or adding the software data of the first type of electronic control unit based on the updating data.
Further, after the type division of the electronic control unit, the method further includes:
determining a second type of electric control unit in the electric control units based on the type division, wherein the second type of electric control unit is an electric control unit without a data storage function;
downloading the updated data of the second type of electric control unit to a central control unit;
and updating software of the second type of electric control unit based on the updating data of the second type of electric control unit.
Further, the method further comprises:
checking whether the software of the first type of electric control unit is complete after being updated;
checking whether the software of the first type of electric control unit is compatible after being updated;
and if the software of the first type of electric control unit is not complete after updating or is incompatible after updating, updating the software of the electric control unit again.
The embodiment of the invention also provides an electronic control unit software updating device, which comprises:
the dividing module is used for dividing the electric control unit;
the first confirming module is used for confirming a first type of electric control unit in the electric control units based on the type division, and the first type of electric control unit is an electric control unit with a data storage function;
the channel module is used for establishing a data transmission channel;
the first downloading module is used for downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel;
and the first updating module is used for updating the software of the first type of electric control unit based on the updating data of the first type of electric control unit.
Further, the apparatus further comprises a detection module and a determination module, wherein:
the detection module is used for respectively detecting the current software version of the first type of electric control unit and the latest software version of the first type of electric control unit and detecting whether the latest software version is higher than the current software version;
the determining module is used for determining the updating data of the first type of electronic control unit when the latest software version is higher than the current software version.
Further, the apparatus further comprises:
the second confirming module is used for confirming a second type of electric control unit in the electric control units based on the type division, and the second type of electric control unit is an electric control unit without a data storage function;
the second downloading module is used for downloading the updating data of the second type of electric control unit to the central control unit;
and the second updating module is used for updating the software of the second type of electric control unit based on the updating data of the second type of electric control unit. Furthermore, the device also comprises a verification module used for verifying the integrity and compatibility of the software updated by the electronic control unit.
Furthermore, the device also comprises a checking module used for checking whether the software of the first type of electric control unit is complete after being updated; checking whether the software of the first type of electric control unit is compatible after being updated; and if the software of the first type of electric control unit is not complete after updating or is incompatible after updating, updating the software of the electric control unit again.
An embodiment of the present invention further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the electrical control unit software update method as described above.
Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method for updating software of an ecu as described above.
The method and the device for updating the software of the electric control unit provided by the embodiment of the invention are used for carrying out type division on the electric control unit; confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function; establishing a data transmission channel; downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel; and updating software of the first type of electric control unit based on the updating data of the first type of electric control unit. Compared with the software updating method of the electric control unit in the prior art, the method has the advantages that the first type of electric control unit with the data storage function in the electric control unit is divided, and the independent data transmission channel is established for the first type of electric control unit, so that the first type of electric control unit can independently download data and update software, the data storage pressure and the resource occupation risk of the central control unit can be reduced, the software updating efficiency and speed of the first type of electric control unit are improved, and the use stability of the vehicle-mounted terminal is ensured.
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, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a diagram of a possible device architecture in one possible application scenario;
fig. 2 is a flowchart of a software updating method of an electronic control unit according to an embodiment of the present invention;
FIG. 3 is a flowchart of a software updating method for an electrical control unit according to another embodiment of the present invention;
FIG. 4 is a block diagram of an electrical control unit software updating apparatus according to an embodiment of the present invention;
fig. 5 is a second structural diagram of a software updating apparatus of an electronic control unit according to an embodiment of the present invention;
fig. 6 is a third structural diagram of a software updating apparatus of an electronic control unit according to an embodiment of the present invention;
FIG. 7 is a fourth block diagram of the software updating apparatus of the electronic control unit according to an embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
First, an application scenario to which the present invention is applicable will be described. The invention can be applied to the technical field of software updating, so that the functions of the electric control unit can be updated and maintained in time. Referring to fig. 1, fig. 1 is a device diagram in the application scenario. As shown in fig. 1, the device comprises a central control unit and a plurality of electronic control units whose software is to be updated.
Research shows that in the conventional software updating device, due to the fact that the storage resource of the central control unit is limited, downloading, storing, decompressing and the like of a large amount of data cannot be carried out, the electronic control unit cannot be updated smoothly, and even due to the fact that the storage resource is occupied, the performance and the use of the vehicle-mounted terminal are affected.
Based on this, embodiments of the present invention provide a method and an apparatus for updating software of an electronic control unit, in which a first type of electronic control unit having a data storage function in the electronic control unit is partitioned, and an individual data transmission channel is established for the first type of electronic control unit, so that the first type of electronic control unit can independently download data and perform software updating, thereby reducing data storage pressure of a central control unit and risk of resource occupation, improving software updating efficiency and speed of the first type of electronic control unit, and ensuring use stability of a vehicle-mounted terminal.
Referring to fig. 2, fig. 2 is a flowchart of a method for updating software of an electronic control unit according to an embodiment of the present invention. As shown in fig. 2, the method for updating software of an electronic control unit according to an embodiment of the present invention includes:
and step 201, performing type division on the electric control unit.
In this step, when software of an electronic control unit in a vehicle needs to be updated, the electronic control unit software updating device may perform type division on the electronic control unit that needs to be updated, and specifically, the electronic control unit software updating device may extract hardware information of the electronic control unit and perform type division on the electronic control unit according to the extracted hardware information.
And 202, confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function.
The electronic control unit with the data storage function can be an electronic control unit with a file system and with redundant data storage capacity not less than twice of the updating data capacity, and can also be an electronic control unit with a data storage space which can store data except self data and does not influence the self function.
In this step, after the software updating device of the electric control unit confirms the first type of electric control unit, a data transmission channel between the first type of electric control unit and the database is established.
The data transmission channel can comprise a communication unit, wherein the communication unit is electrically connected with the first type of electronic control unit, is in wireless connection with the database and is used for transmitting the updating data; the data transmission channel can also connect the first type of electronic control unit with the database in an electric connection mode.
The database may be a cloud server, or an external database or a local database.
And 204, downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel.
In this step, the first type of electronic control unit accesses the database through the data transmission channel, and downloads the updated data of the first type of electronic control unit from the database to the first type of electronic control unit.
The update data may be a software update data package or a complete software data installation package.
And step 205, updating software of the first type of electric control unit based on the updating data of the first type of electric control unit.
In this step, after the update data of the first-type electronic control unit is downloaded, software update is performed on the first-type electronic control unit according to the content of the update data of the first-type electronic control unit.
Therefore, when the software of the electric control unit is updated, the electric control unit with the data storage function independently updates the software, the storage pressure of the central control unit is reduced, and the software updating efficiency of the electric control unit is improved.
The method for updating the software of the electric control unit provided by the embodiment of the invention is used for carrying out type division on the electric control unit; confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function; establishing a data transmission channel; downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel; and updating software of the first type of electric control unit based on the updating data of the first type of electric control unit.
Compared with the authentication process in the prior art, the first type of electric control unit with the data storage function in the electric control unit is divided, and the independent data transmission channel is established for the first type of electric control unit, so that the first type of electric control unit can independently download data and update software, the data storage pressure and the resource occupation risk of the central control unit can be reduced, the software updating efficiency and speed of the first type of electric control unit are improved, and the use stability of the vehicle-mounted terminal is ensured.
Referring to fig. 3, fig. 3 is a flowchart of a software updating method of an electronic control unit according to another embodiment of the present invention. As shown in fig. 3, the method for updating software of an electronic control unit according to an embodiment of the present invention includes:
and 301, carrying out type division on the electric control units.
And 302, confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function.
And 304, respectively detecting the current software version of the first type of electric control unit and the latest software version of the first type of electric control unit.
In this step, the electronic control unit software updating device may check the software version of the first type of electronic control unit, determine the software version of the first type of electronic control unit, search the latest software of the first type of electronic control unit in the database, and determine the latest software version.
The latest software version may be the software version with the release date closest to the current date in the database, or the software version with the highest version number.
In this step, the electronic control unit software updating device compares the latest software version of the first type of electronic control unit with the information of the current software version, and judges whether the latest software version is higher than the current software version.
If the version number of the current software version of the first type of electric control unit is lower than the version number of the latest software version of the first type of electric control unit, whether the latest software version of the first type of electric control unit is higher than the current software version of the first type of electric control unit or not is judged.
And step 306, if the latest software version is higher than the current software version, determining the updating data of the first type of electronic control unit.
In this step, after monitoring whether the latest software version is higher than the current software version, if the latest software version is higher than the current software version, the update data of the first type of electronic control unit is determined.
The update data is a data packet required by the current software to update to the latest software, and can also be a complete latest software data packet.
And 307, downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel.
And 308, updating software of the first type of electronic control unit based on the updating data.
The descriptions of step 301 to step 303, step 307, and step 308 may refer to the descriptions of step 201 to step 205, and the same technical effect can be achieved, which is not described in detail herein.
Optionally, the update data may be downloaded to the first type of electronic control unit based on the data transmission channel according to the following steps:
determining verification information of the updated data; verifying the updated data based on the verification information; and if the verification information is verified successfully, downloading the updating data to the first type of electric control unit through the data transmission channel.
In this step, the first type of electronic control unit obtains verification information of the update data in the database, compares the verification information with verification information issued by an official, verifies the validity of the verification information, if the verification information is consistent with the verification information issued by the official, the update data is available, the verification of the update data is successful, and the update data is downloaded to the first electronic control unit through the data transmission channel.
Therefore, whether the updated data is safe and available can be judged by verifying the verification information of the updated data, and the method is simple and effective.
Optionally, the updating the software of the first type of electronic control unit based on the update data includes:
receiving a software updating instruction sent by a central control unit; and replacing, deleting or adding the data of the first type of electronic control unit software based on the updating data.
In this step, the central control unit sends a software updating instruction to the first type of electronic control unit, and the first type of electronic control unit receives the software updating instruction and executes updating, writes the updating data into the software of the first type of electronic control unit, and completes updating.
And replacing, deleting or adding the data of the first type of electronic control unit software based on the updated data, wherein the data comprises data with the same file name, useless data in the original software and data lacking in the original software.
Optionally, the method for updating software of an electronic control element further includes:
determining a second type of electric control unit in the electric control units based on the type division, wherein the second type of electric control unit is an electric control unit without a data storage function; downloading the updated data of the second type of electric control unit to a central control unit; and updating software of the second type of electric control unit based on the updating data of the second type of electric control unit.
In the step, after confirming a second type of electric control unit in the electric control units, the central control unit accesses the database, confirms the updating data required by the second type of electric control unit, verifies the updating data, downloads the updating data required by the second type of electric control unit to the central control unit after the verification is successful, and refreshes the updating data to the second type of electric control unit in a diagnosis mode.
The second type of electronic control unit may be an electronic control unit without a file device, or an electronic control unit with a small data storage space and incapable of storing files with a data size larger than that of the electronic control unit.
Optionally, the method for updating software of the electronic control unit further includes:
checking whether the software of the first type of electric control unit is complete after being updated; checking whether the software of the first type of electric control unit is compatible after being updated; and if the software of the first type of electric control unit is not complete after updating or is incompatible after updating, updating the software of the electric control unit again.
In this step, the software updating device of the electronic control unit checks whether the data of the updated software is missing or damaged, and checks whether the updated software of the first type of electronic control unit does not conflict with other software, systems or hardware, so as to prevent the normal use of the electronic control unit from being influenced.
The method for updating the software of the electric control unit provided by the embodiment of the invention is used for carrying out type division on the electric control unit; confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function; establishing a data transmission channel; downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel; and updating software of the first type of electric control unit based on the updating data of the first type of electric control unit.
Compared with the software updating method of the electric control unit in the prior art, the method has the advantages that the electric control unit is divided, so that the electric control unit with the data storage function independently downloads the updated data to the central electric control unit, the data downloading amount of the central electric control unit is reduced, the storage pressure of the central electric control unit during software updating is reduced, and the software updating efficiency of the electric control unit is improved.
Referring to fig. 4, fig. 4 is a first structural diagram of an updating device of an electronic control unit according to an embodiment of the present invention, fig. 5 is a second structural diagram of an updating device of an electronic control unit according to an embodiment of the present invention, fig. 6 is a third structural diagram of an updating device of an electronic control unit according to an embodiment of the present invention, and fig. 7 is a fourth structural diagram of an updating device of an electronic control unit according to an embodiment of the present invention. As shown in fig. 4, the control device 400 includes: a partitioning module 410, a first validation module 420, a channeling module 430, a first downloading module 440, and a first updating module 450, wherein:
the dividing module 410 is used for dividing the types of the electric control units.
The first determining module 420 determines a first type of electronic control unit in the electronic control units based on the type division, where the first type of electronic control unit is an electronic control unit with a data storage function.
The channel module 430 is configured to establish a data transmission channel.
The first downloading module 440 is configured to download the update data of the first type of electronic control unit to the first type of electronic control unit based on the data transmission channel.
The first updating module 450 is configured to update software of the first type of electronic control unit based on the update data of the first type of electronic control unit.
Further, as shown in fig. 5, the control device 400 further includes a detection module 460 and a determination module 470:
the detecting module 460 is configured to detect a current software version of the first type of electronic control unit and a latest software version of the first type of electronic control unit, respectively, and detect whether the latest software version is higher than the current software version.
The determining module 470 is configured to determine the update data of the first type of electronic control unit when the latest software version is higher than the current software version.
Further, as shown in fig. 6, the software updating apparatus of the electronic control unit includes: a second confirmation module 610, a second download module 620, and a second update module 630, wherein:
the second determining module 610 is configured to determine a second type of electronic control unit in the electronic control units based on the type division, where the second type of electronic control unit is an electronic control unit without a data storage function.
The second downloading module 620 is configured to download the update data of the second type of electronic control unit to the central control unit.
The second updating module 630 is configured to update software of the second type of electronic control unit based on the update data of the second type of electronic control unit.
Further, as shown in fig. 7, the control device 400 further includes a verification module 480:
the checking module 480 is configured to check whether the software of the first type of electronic control unit is complete after being updated; checking whether the software of the first type of electric control unit is compatible after being updated; and if the software of the first type of electric control unit is not complete after updating or is incompatible after updating, updating the software of the electric control unit again.
The auxiliary device 400 in this embodiment may implement all the method steps of the software updating method of the electronic control unit in the embodiments shown in fig. 2 and fig. 3, and may achieve the same effect, which is not described herein again.
The electronic control unit software updating device provided by the embodiment of the invention divides the electronic control units; confirming a first type of electric control unit in the electric control units, wherein the first type of electric control unit is an electric control unit with a data storage function; establishing a data transmission channel; downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel; and updating software of the first type of electronic control unit based on the updating data.
Compared with the authentication process in the prior art, the invention enables the electric control unit with the data storage function to independently update the software when the electric control unit needs to update the software, thereby reducing the storage pressure of the central control unit and improving the software updating efficiency of the electric control unit.
Referring to fig. 8, fig. 8 is a structural diagram of an electronic device according to an embodiment of the invention. As shown in fig. 8, the electronic device 800 includes a processor 810, a memory 820, and a bus 830.
The memory 820 stores machine-readable instructions executable by the processor 810, when the electronic device 800 runs, the processor 810 communicates with the memory 820 through the bus 830, and when the machine-readable instructions are executed by the processor 810, the steps of the method for updating software of an electronic control unit in the method embodiment shown in fig. 2 and fig. 3 may be executed.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program may perform the steps of the method for updating software of an electronic control unit in the method embodiments shown in fig. 2 and fig. 3.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
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 claims.
Claims (8)
1. An electronic control unit software updating method, characterized in that the method comprises:
the type of the electric control unit is divided;
determining a second type of electric control unit in the electric control units based on the type division, wherein the second type of electric control unit is an electric control unit without a data storage function;
downloading the updated data of the second type of electric control unit to a central control unit;
updating software of the second type of electric control unit based on the updating data of the second type of electric control unit;
confirming a first type of electric control unit in the electric control units based on the type division, wherein the first type of electric control unit is an electric control unit with a data storage function;
establishing a data transmission channel;
downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel;
and updating software of the first type of electric control unit based on the updating data of the first type of electric control unit.
2. The method according to claim 1, wherein before downloading the update data of the first type of ecu to the first type of ecu based on the data transmission channel, the method comprises:
respectively detecting the current software version of the first type of electric control unit and the latest software version of the first type of electric control unit;
detecting whether the latest software version is higher than the current software version;
and if the latest software version is higher than the current software version, determining the updating data of the first type of electronic control unit.
3. The method according to claim 1, wherein said downloading said updated data to said first type of ecu based on said data transmission channel comprises:
determining verification information of the updated data;
verifying the update data based on the verification information;
and if the verification information is verified successfully, downloading the updating data to the first type of electric control unit through the data transmission channel.
4. The method of claim 1, wherein said updating the software of the first type of ecu based on the update data comprises:
receiving a software updating instruction sent by a central control unit;
and replacing, deleting or adding the software data of the first type of electronic control unit based on the updating data.
5. The method of claim 1, wherein the method further comprises:
checking whether the software of the first type of electric control unit is complete after being updated;
checking whether the software of the first type of electric control unit is compatible after being updated;
and if the software of the first type of electric control unit is not complete after updating or is incompatible after updating, updating the software of the electric control unit again.
6. An ecu update apparatus, comprising:
the dividing module is used for dividing the types of the electric control units;
the first confirming module is used for confirming a first type of electric control unit in the electric control units based on the type division, and the first type of electric control unit is an electric control unit with a data storage function;
the channel module is used for establishing a data transmission channel;
the first downloading module is used for downloading the updating data of the first type of electric control unit to the first type of electric control unit based on the data transmission channel;
the first updating module is used for updating software of the first type of electric control unit based on the updating data of the first type of electric control unit;
the device further comprises:
the second confirming module is used for confirming a second type of electric control unit in the electric control units based on the type division, and the second type of electric control unit is an electric control unit without a data storage function;
the second downloading module is used for downloading the updating data of the second type of electric control unit to the central control unit;
and the second updating module is used for updating the software of the second type of electric control unit based on the updating data of the second type of electric control unit.
7. The apparatus of claim 6, further comprising a detection module and a determination module, wherein,
the detection module is used for respectively detecting the current software version of the first type of electric control unit and the latest software version of the first type of electric control unit and detecting whether the latest software version is higher than the current software version;
the determining module is used for determining the updating data of the first type of electronic control unit when the latest software version is higher than the current software version.
8. The apparatus according to claim 6, further comprising a checking module for checking whether the software of the first type of electronic control unit is complete after updating; checking whether the software of the first type of electric control unit is compatible after being updated; and if the software of the first type of electric control unit is not complete after updating or is incompatible after updating, updating the software of the electric control unit again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910143408.7A CN109901861B (en) | 2019-02-26 | 2019-02-26 | Method and device for updating software of electronic control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910143408.7A CN109901861B (en) | 2019-02-26 | 2019-02-26 | Method and device for updating software of electronic control unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109901861A CN109901861A (en) | 2019-06-18 |
CN109901861B true CN109901861B (en) | 2022-05-06 |
Family
ID=66945633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910143408.7A Active CN109901861B (en) | 2019-02-26 | 2019-02-26 | Method and device for updating software of electronic control unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109901861B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955382A (en) * | 2014-04-04 | 2014-07-30 | 浙江吉利控股集团有限公司 | Remote writing equipment of OBD (On-Board Device) |
CN108241514A (en) * | 2017-12-28 | 2018-07-03 | 宁德时代新能源科技股份有限公司 | Vehicle-mounted program updating method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824653A (en) * | 2015-01-08 | 2016-08-03 | 北京长城华冠汽车科技有限公司 | Automobile CAN bus data brush-writing method and device |
JP6568947B2 (en) * | 2015-09-29 | 2019-08-28 | 日立オートモティブシステムズ株式会社 | In-vehicle control device, program update system, and program update software |
CN108282389B (en) * | 2017-01-05 | 2021-10-15 | 厦门雅迅网络股份有限公司 | Vehicle-mounted OTA (over the air) upgrading method based on CAN (controller area network) bus load monitoring |
CN108196864B (en) * | 2018-01-18 | 2021-04-16 | 威马智慧出行科技(上海)有限公司 | Vehicle-mounted electronic equipment upgrading system and method |
CN109189432A (en) * | 2018-09-18 | 2019-01-11 | 深圳市元征科技股份有限公司 | A kind of automobile ECU data write with a brush dipped in Chinese ink method and relevant device |
CN109120718A (en) * | 2018-09-28 | 2019-01-01 | 慧翰微电子股份有限公司 | A kind of car networking terminal and implementation method for supporting other ECU FOTA to upgrade |
-
2019
- 2019-02-26 CN CN201910143408.7A patent/CN109901861B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955382A (en) * | 2014-04-04 | 2014-07-30 | 浙江吉利控股集团有限公司 | Remote writing equipment of OBD (On-Board Device) |
CN108241514A (en) * | 2017-12-28 | 2018-07-03 | 宁德时代新能源科技股份有限公司 | Vehicle-mounted program updating method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109901861A (en) | 2019-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109408153B (en) | Software starting method and software upgrading method | |
CN110178114B (en) | Vehicle control device and program update system | |
US10162625B2 (en) | Vehicle control storage methods and systems | |
CN109831338B (en) | Vehicle machine system upgrading method, cloud server and mobile terminal | |
CN109491681B (en) | Method and device for upgrading MCU in automobile | |
CN106484453B (en) | Method and device for realizing system upgrading | |
CN108241498B (en) | Vehicle-mounted equipment upgrading method and device and vehicle | |
CN112286565B (en) | Embedded system differential upgrading method based on storage container | |
CN112913190A (en) | Upgrading method and device based on over-the-air technology OTA | |
CN114915554B (en) | Remote upgrading method, device, computer equipment and storage medium | |
CN114895947A (en) | Software upgrading method, device, equipment and storage medium of vehicle-mounted controller | |
CN110191112B (en) | Identity verification method and device, vehicle-mounted equipment and server | |
CN115421745A (en) | Equipment remote upgrading method, device, terminal and storage medium | |
CN110147246A (en) | Version checking method and device, storage medium and the terminal of space download technology | |
US20240211242A1 (en) | Apparatus and method for optimally updating vehicle controller | |
CN113986296A (en) | Firmware upgrading method and device, electronic equipment and storage medium | |
CN109901861B (en) | Method and device for updating software of electronic control unit | |
CN113037850A (en) | Application program upgrading method and device, electronic equipment and storage medium | |
CN113377812A (en) | Order duplication eliminating method and device for big data | |
CN115309422A (en) | Vehicle-mounted program upgrading method, device, equipment and medium | |
CN110825406A (en) | Software upgrading method and related equipment | |
CN112732293A (en) | Vehicle-mounted system upgrading method and vehicle-mounted terminal | |
CN112732301A (en) | Vehicle upgrading method and device | |
CN114979116B (en) | Vehicle-mounted software upgrading method, system, terminal equipment and storage medium | |
CN113228594B (en) | Method, device and equipment for determining protection scheme and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |