Invention content
In view of this, an embodiment of the present invention provides a kind of Vehicle Electronic Control Unit upgrade method, device, vehicle controls
Circuit and vehicle, to solve the problems, such as that Vehicle Electronic Control Unit upgrade cost is high, time-consuming and be difficult to upgrade in time.
According in a first aspect, an embodiment of the present invention provides a kind of Vehicle Electronic Control Unit upgrade method, suitable for master
Machine unit, including:The mark of the electronic control unit and corresponding first program file version are obtained from server;Obtain vehicle
The mark of at least one electronic control unit and corresponding second program file version on;Judge that identical electronic control is single
Member identifies whether the corresponding first program file version is higher than the second program file version;When first program text
When part version is higher than the second program file version, the first program file version is higher than the second program file version
This electronic control unit sends the electronic control list to be upgraded as electronic control unit to be upgraded, and to the server
The mark of member;Receive the program file corresponding to the mark for the electronic control unit to be upgraded that server is sent;Using institute
The program file received upgrades the corresponding electronic control unit to be upgraded.
Optionally, the program corresponding to the mark in the electronic control unit to be upgraded of the reception server transmission
Between file and the corresponding electronic control unit to be upgraded using received program file upgrading, the method
It further includes:Received program file is verified, when passed the verification, execution is described to utilize received program text
Part upgrades the corresponding electronic control unit to be upgraded.
Optionally, it further includes:When verify it is obstructed out-of-date, by verify not by program file corresponding to electronic control list
The mark of member is sent to the server, and returns to the electronic control unit to be upgraded that the reception server is sent
The corresponding program file of mark.
Optionally, it is described to upgrade the corresponding electronic control unit packet to be upgraded using received program file
It includes:Determine the type of the electronic control unit corresponding to received program file;It is right according to the type of electronic control unit
Different updating operations is used in different types of electronic control unit.
Optionally, it is described that different types of electronic control unit is included using different updating operations:When the electricity
When sub-control unit is non-types of entertainment electronic control unit, the vehicle is judged whether in transport condition, when the vehicle
When in the transport condition, updating operation is not performed.
Optionally, it is described to upgrade the corresponding electronic control unit packet to be upgraded using received program file
It includes:Judge whether to receive wake-up instruction;When receiving the wake-up instruction, updating operation is performed.
According to second aspect, an embodiment of the present invention provides a kind of Vehicle Electronic Control Unit update device, including:First
Acquisition module, for obtaining the mark of the electronic control unit and corresponding first program file version from server;Second
Acquisition module, for obtaining the mark of at least one electronic control unit and corresponding second program file version on vehicle
This;Judgment module, for judging that whether identical electronic control unit identifies the corresponding first program file version higher than institute
State the second program file version;Sending module judges that the first program file version is higher than institute for working as the judgment module
When stating the second program file version, the first program file version is higher than to the electronic control of the second program file version
Unit sends to the server mark of the electronic control unit to be upgraded as electronic control unit to be upgraded;It connects
Module is received, for receiving the program file corresponding to the mark of the electronic control unit to be upgraded of server transmission;Upgrading
Module, for upgrading the corresponding electronic control unit to be upgraded using received program file.
Optionally, the Vehicle Electronic Control Unit update device further includes:Correction verification module, in the receiving module
Receive the program file and upgraded module profit corresponding to the mark for the electronic control unit to be upgraded that server is sent
Between upgrading the corresponding electronic control unit to be upgraded with received program file, to received program file
It is verified, when passed the verification, starts the upgraded module.
Optionally, the correction verification module be additionally operable to when verify it is obstructed out-of-date, by verify not by program file corresponding to
The mark of electronic control unit be sent to the server, and start the receiving module.
Optionally, the upgraded module includes:Determination sub-module, for determining corresponding to received program file
The type of electronic control unit;First upgrading submodule, for the type according to electronic control unit, for different types of electricity
Sub-control unit uses different updating operations.
Optionally, the first upgrading submodule is used to determine that electronic control unit is non-amusement when the determination sub-module
During sorts of electronic control unit, the vehicle is judged whether in transport condition, when the vehicle is in transport condition,
Do not perform updating operation.
Optionally, the upgraded module includes:Submodule is waken up, instruction is waken up for judging whether to receive;Second liter
Grade submodule, for when receiving the wake-up instruction, performing updating operation.
According to the third aspect, an embodiment of the present invention provides a kind of vehicle control electronics, including:Main computer unit;And with
At least one electronic control unit and memory of the main computer unit communication connection;Wherein, be stored with can quilt for the memory
The instruction that the main computer unit performs, described instruction are performed by the main computer unit, so that the main computer unit performs first party
Vehicle Electronic Control Unit upgrade method described in the optional mode of any one of face or first aspect.
According to fourth aspect, an embodiment of the present invention provides a kind of vehicle, including the vehicle control electricity described in the third aspect
Road.
It is described non-temporary an embodiment of the present invention provides a kind of non-transient computer readable storage medium storing program for executing according to the 5th aspect
State computer-readable recording medium storage computer instruction, the computer instruction are used to that the computer to be made to perform first aspect
Or the Vehicle Electronic Control Unit upgrade method described in any one optional mode of first aspect.
According to the 6th aspect, an embodiment of the present invention provides a kind of computer program product, the computer program product
Including the calculation procedure being stored on non-transient computer readable storage medium storing program for executing, the computer program includes program instruction, when
When described program instruction is computer-executed, make any one of the computer execution first aspect or first aspect optional
Vehicle Electronic Control Unit upgrade method described in mode.
Vehicle Electronic Control Unit upgrade method, device, vehicle control electronics and the vehicle that the embodiment of the present invention is provided,
Corresponding journey is identified by comparing identical electronic control unit that is being obtained from server and being obtained from Vehicle Electronic Control Unit
Sequence FileVersion can obtain the program file of more new version, it is achieved thereby that the long-range liter of electronic control unit from server
Grade.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having
All other embodiments obtained under the premise of creative work are made, shall fall within the protection scope of the present invention.
Fig. 1 shows the schematic diagram of Vehicle Electronic Control Unit according to embodiments of the present invention (ECU) upgrade method, vehicle
Main computer unit (HU, Host Unit) connect by CAN bus at least one ECU, HU can wirelessly connect with Cloud Server
It connects, so as to upgrade to ECU.Fig. 2 shows the flow charts of the vehicle ECU according to embodiments of the present invention method upgraded, should
Method is suitable for HU, may include steps of:
S11. the mark of ECU and corresponding first program file version are obtained from server.Wherein ECU is identified with ECU only
One corresponds to, and it can also be firmware that the program file run in ECU, which can be software,.ECU is identified and corresponding first program file
Version can periodically be obtained by HU from server or user actively initiates inquiry or server is in program file
Version actively pushes when having update to HU, and the ECU marks and corresponding first program file version that HU is obtained can be lists
Form.
S12. the mark of at least one ECU and corresponding second program file version on vehicle are obtained.HU can by time
All ECU on vehicle are gone through, to obtain the mark of all ECU and corresponding second program file version on vehicle.
S13. judge that identical ECU identifies whether corresponding first program file version is higher than the second program file version, when
When first program file version is higher than the second program file version, step S14 is performed, when the first program file version is less than or waits
When the second program file version, then any operation is not performed.
S14. using ECU of the first program file version higher than the second program file version as ECU to be upgraded, and to service
Device sends the mark of the ECU to be upgraded.Such as when the first program file version of ECU1 is higher than the second program file version, then
ECU1 is ECU to be upgraded, and the mark of ECU1 is sent to server.
S15. the program file corresponding to the mark for the ECU to be upgraded that server is sent is received.For example, server is connecing
When receiving the mark of ECU1, the program file of ECU1 can be sent to HU.
S16. upgrade corresponding ECU using the program file.The step of upgrading to ECU can click to confirm liter in user
Progress carried out during grade or automatic, user can self-defined setting as needed.
By above method step, by comparing being obtained from server and obtain from Vehicle Electronic Control Unit identical
Electronic control unit identifies corresponding program file version, the program file of more new version can be obtained from server, so as to real
The remote upgrade of ECU is showed.
Fig. 3 shows the flow chart of the method for vehicle ECU upgradings according to another embodiment of the present invention, is equally applicable to
HU may include steps of:
S21. the mark of ECU and corresponding first program file version are obtained from server.Specifically it may refer to above
The associated description of step S11.
S22. the mark of at least one ECU and corresponding second program file version on vehicle are obtained.Specifically it may refer to
The above associated description of step S12.
S23. judge that identical ECU identifies whether corresponding first program file version is higher than the second program file version, when
When first program file version is higher than the second program file version, step S24 is performed, when the first program file version is less than or waits
When the second program file version, then any operation is not performed.
S24. mark of the first program file version higher than the ECU of the second program file version is sent to server.Specifically
It may refer to the associated description of above step S14.
S25. the program file corresponding to the mark for the ECU that server is sent is received.Specifically it may refer to above walk
The associated description of rapid S15.
S26. received program file is verified, performs step S27 when passed the verification, when verification does not pass through
When, by verify not by program file corresponding to ECU marks be sent to server, and back to step S25, to connect again
Receive the program file.
S27. upgrade corresponding ECU using the program file.The specific associated description that may refer to above step S16.
The method that the method for vehicle ECU upgradings in the present embodiment upgrades with vehicle ECU in embodiment shown in Fig. 2 is not
It is with part, the step of being verified to received program file is increased between step S25 and step S27, this
Sample can be imperfect to avoid the program file that receives or be damaged and upgrading is caused to fail.
Fig. 4 shows the flow chart of the method for vehicle ECU upgradings according to another embodiment of the present invention, is equally applicable to
HU may include steps of:
S31. the mark of ECU and corresponding first program file version are obtained from server.Specifically it may refer to above
The associated description of step S11.
S32. the mark of at least one ECU and corresponding second program file version on vehicle are obtained.Specifically it may refer to
The above associated description of step S12.
S33. judge that identical ECU identifies whether corresponding first program file version is higher than the second program file version, when
When first program file version is higher than the second program file version, step S34 is performed, when the first program file version is less than or waits
When the second program file version, then any operation is not performed.
S34. mark of the first program file version higher than the ECU of the second program file version is sent to server.Specifically
It may refer to the associated description of above step S14.
S35. the program file corresponding to the mark for the ECU that server is sent is received.Specifically it may refer to above walk
The associated description of rapid S15.
S36. the type of the corresponding ECU of the program file is determined.
S37. according to the type of ECU, different updating operations is used for different types of ECU.
Compared with the method that vehicle ECU in embodiment shown in Fig. 2 upgrades, in the present embodiment for the reality of ECU upgradings
The mode of applying has carried out described in further detail.The ECU of vehicle points are multiple classifications, are generally divided into types of entertainment, such as control
Make audio-visual broadcasting;Or non-types of entertainment, such as the drive system of control vehicle, speed change system, brake system.For joy
Happy type ECU due to can't be impacted to the driving safety of vehicle, can perform updating operation at any time;It is and right
In non-types of entertainment ECU, if updating operation being performed in vehicle travel process, it is most likely that vehicle driving safety can be formed
Significant damage.
In order to avoid this harm generates, when it is non-types of entertainment ECU that HU, which determines ECU to be upgraded, can judge
Whether vehicle is in transport condition, when vehicle is in transport condition, does not perform updating operation, and until vehicle is in non-
Updating operation is performed during transport condition again, so as to avoid performing updating operation in vehicle travel process to vehicle driving safety
The significant damage of composition.
For upgrading automatically, it is not necessary that be either immediately performed after program file verification passes through receiving program file
Updating operation.For example types of entertainment ECU is upgraded, although will not damage for vehicle driving safety, can use
The music or video breaks that family is being appreciated;Upgrade even with non-types of entertainment ECU, it is also possible to which user is of short duration stops
Vehicle if performing updating operation during this of short duration parking, upgrades and does not complete in the quasi- reserve wagon of user, can cause
User can only wait end to be upgraded this period.
In order to bring better driving experience to user, in a kind of optional embodiment of the embodiment of the present invention, first sentence
It is disconnected whether to receive wake-up instruction, when receiving the wake-up instruction, perform updating operation.Waking up instruction can usually be set
It is seldom sent out in user with the period of vehicle, such as 2:00 AM or so, by waking up wake instruction HU work, HU can wake up and treat
Upgrade ECU perform updating operation, will not have any impact in this way to user's normal use, and when not being waken up, HU and
ECU is in silent status, will not consume excessive electric energy.Herein, it can be user's sets itself time to wake up instruction,
It can be sent out by server.
Correspondingly, the embodiment of the present invention additionally provides a kind of Vehicle Electronic Control Unit (ECU) update device, which fits
For the HU of vehicle, as shown in figure 5, the device includes:
First acquisition module 41, for obtaining the mark of ECU and corresponding first program file version from server, specifically
It may refer to the associated description of above step S11;
Second acquisition module 42, for obtaining the mark of at least one ECU and corresponding second program file version on vehicle
This, specifically may refer to the associated description of above step S12;
Judgment module 43, for judging that whether identical ECU identifies corresponding first program file version higher than the second program
FileVersion specifically may refer to the associated description of above step S13;
Sending module 44 judges that the first program file version is higher than the second program file version for working as judgment module 43
When, using ECU of the first program file version higher than the second program file version as ECU to be upgraded, and treated to server transmission
Upgrade the mark of ECU, specifically may refer to the associated description of above step S14;
Receiving module 45 for receiving the program file corresponding to the mark of the ECU to be upgraded of server transmission, specifically may be used
To see above the associated description of middle step S15;
Upgraded module 46 for upgrading corresponding ECU to be upgraded using received program file, specifically may refer to
The above associated description of step S16.
By above-mentioned ECU update devices, by comparing being obtained from server and from Vehicle Electronic Control Unit acquisition
Identical electronic control unit identifies corresponding program file version, and the program file of more new version can be obtained from server, from
And realize the remote upgrade of ECU.
As a kind of optional embodiment, above-mentioned ECU update devices can also include:
Correction verification module, for receiving the program corresponding to the mark for the ECU to be upgraded that server is sent in receiving module 45
Between file ECU to be upgraded corresponding with the program file upgrading that the utilization of upgraded module 46 is received, to received journey
Preface part is verified, and when passed the verification, starts upgraded module 46;And when verify it is obstructed out-of-date, by verify not by
The mark of ECU corresponding to program file is sent to server, and starts receiving module 45, specifically may refer to shown in Fig. 3
Associated description in embodiment.
As another optional embodiment, the upgraded module of above-mentioned ECU update devices can include:
Determination sub-module, for determining the type of the ECU corresponding to received program file;
For the type according to ECU, different updating operations is used for different types of ECU for first upgrading submodule.
Optionally, the first upgrading submodule is used to determine that electronic control unit is non-types of entertainment electronics when determination sub-module
During control unit, judge that vehicle whether in transport condition, when vehicle is in transport condition, does not perform updating operation,
And updating operation is performed again until vehicle is in non-driving state.
As another optional embodiment, the upgraded module of above-mentioned ECU update devices can include:
Submodule is waken up, instruction is waken up for judging whether to receive;
Second upgrading submodule, for when receiving wake-up instruction, performing updating operation.
It specifically may refer to the associated description in embodiment shown in Fig. 4.
The embodiment of the present invention additionally provides a kind of vehicle control electronics, as shown in fig. 6, the vehicle control electronics include:HU
51st, at least one ECU 52 and memory 53.Wherein HU 51, at least one ECU 52 and memory 53 can by bus or
Person's other modes connect, in Fig. 6 for being connected by bus.
HU 51 can be central processing unit (Central Processing Unit, CPU).HU 51 can also be other
General processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.General processor can be microprocessor or the processing
Device can also be any conventional processor etc..
Memory 53 is used as a kind of non-transient computer readable storage medium storing program for executing, available for storing non-transient software program, non-
Transient computer executable program and module, as the corresponding program instruction of vehicle ECU upgrade methods in the embodiment of the present invention/
Module is (for example, the first acquisition module 41 shown in fig. 5, the second acquisition module 42, judgment module 43, sending module 44, reception mould
Block 45 and upgraded module 46).HU 51 is stored in non-transient software program, instruction and module in memory 53 by operation,
So as to perform the various function application of HU and data processing, that is, realize the vehicle ECU upgrade methods in above method embodiment.
Memory 53 can include storing program area and storage data field, wherein, storing program area can storage program area,
At least one required application program of function;Storage data field can store data that HU 51 is created etc..In addition, memory
53 can include high-speed random access memory, can also include non-transient memory, a for example, at least disk memory,
Flush memory device or other non-transient solid-state memories.In some embodiments, memory 53 is optional including relative to HU 51
Remotely located memory, these remote memories can pass through network connection to HU 51.The example of above-mentioned network is included but not
It is limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
One or more of modules are stored in the memory 53, when being performed by the HU 51, are performed as schemed
Vehicle ECU upgrade methods in 1-4 illustrated embodiments.
The said goods can perform the method that the embodiment of the present invention is provided, and has the corresponding function module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, for details, reference can be made to the correlation in embodiment as shown in Figs 1-4
Description.
Further, an embodiment of the present invention provides a kind of vehicle, including the vehicle control in embodiment shown in fig. 6
Circuit.
The embodiment of the present invention additionally provides a kind of non-transient computer storage medium, and the computer storage media is stored with
Computer executable instructions, the computer executable instructions can perform the place of the list items operation in above-mentioned any means embodiment
Reason method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM), with
Machine storage memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard
Disk Drive, abbreviation:) or solid state disk (Solid-State Drive, SSD) etc. HDD;The storage medium can also wrap
Include the combination of the memory of mentioned kind.
It is that can lead to it will be understood by those skilled in the art that realizing all or part of flow in above-described embodiment method
It crosses computer program and is completed to instruct relevant hardware, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention
Spirit and scope in the case of various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute
Within the scope of restriction.