CN110134412A - Oftware updating method, device, vehicle and computer readable storage medium - Google Patents

Oftware updating method, device, vehicle and computer readable storage medium Download PDF

Info

Publication number
CN110134412A
CN110134412A CN201910226959.XA CN201910226959A CN110134412A CN 110134412 A CN110134412 A CN 110134412A CN 201910226959 A CN201910226959 A CN 201910226959A CN 110134412 A CN110134412 A CN 110134412A
Authority
CN
China
Prior art keywords
upgrade file
vehicle
updating operation
abstract
validation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910226959.XA
Other languages
Chinese (zh)
Other versions
CN110134412B (en
Inventor
马东辉
边峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CHJ Information Technology Co Ltd
Original Assignee
Beijing CHJ Information 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 Beijing CHJ Information Technology Co Ltd filed Critical Beijing CHJ Information Technology Co Ltd
Priority to CN201910226959.XA priority Critical patent/CN110134412B/en
Publication of CN110134412A publication Critical patent/CN110134412A/en
Application granted granted Critical
Publication of CN110134412B publication Critical patent/CN110134412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Embodiment of the disclosure is related to a kind of Oftware updating method, device, vehicle and computer readable storage medium.Wherein, the Oftware updating method includes: whether the detection vehicle meets default promotion condition;In the case where the vehicle meets default promotion condition, upgrade file is obtained, and integrity verification is carried out to the upgrade file;In the case where the upgrade file passes through integrity verification, validation verification is carried out to the upgrade file;In the case where the upgrade file passes through validation verification, then updating operation is executed according to the upgrade file.Technical solution provided by the invention solves the problems, such as that existing vehicle readily receives the updating operation in illegal download source or the upgrading software of downloading mistake.

Description

Oftware updating method, device, vehicle and computer readable storage medium
Technical field
Embodiment of the disclosure is related to technical field of vehicle more particularly to a kind of Oftware updating method, device, vehicle and meter Calculation machine readable storage medium storing program for executing.
Background technique
Currently, vehicle when implementing CAN node software online upgrading, is directly by OBD (On-Board mostly Diagnostic, onboard diagnostic system) it is write with a brush dipped in Chinese ink online.In this way, vehicle is be easy to cause to receive the upgrading in illegal download source Operation, or the upgrading software application for downloading mistake cause to ECU (Electronic Control Unit, electronic control unit) Software is incompatible, is unfavorable for the normal use of vehicle, also brings hidden danger to traffic safety.
Summary of the invention
Embodiment of the disclosure provides a kind of Oftware updating method, device, vehicle and computer readable storage medium, with Solve the problems, such as that existing vehicle readily receives the updating operation in illegal download source or the upgrading software of downloading mistake.
In a first aspect, embodiment of the disclosure provides a kind of Oftware updating method, it is applied to vehicle, comprising:
Detect whether the vehicle meets default promotion condition;
In the case where the vehicle meets default promotion condition, upgrade file is obtained, and carry out to the upgrade file Integrity verification;
In the case where the upgrade file passes through integrity verification, validation verification is carried out to the upgrade file;
In the case where the upgrade file passes through validation verification, then updating operation is executed according to the upgrade file.
Optionally, whether the detection vehicle meets default promotion condition, comprising:
Detect whether the vehicle is in inactive state;
If the vehicle is in inactive state, determine that the vehicle meets default promotion condition.
Optionally, the default promotion condition includes:
Power supply is in close pattern, closing of the door and central controlled lock closing, battery voltage and is in predetermined voltage range, parking brake Signal is effectively and parking brake is in pull-up state, speed is less than preset vehicle speed and traveling gears are parking position switch.
It is optionally, described that integrity verification is carried out to the upgrade file, comprising:
Calculate the first validation value of the data byte of the upgrade file;
The the first default validation value whether first validation value sends with exterior terminal is compared to match;
If the first default validation value that first validation value is sent with exterior terminal matches, the upgrading text is determined Part passes through integrity verification.
It is optionally, described that validation verification is carried out to the upgrade file, comprising:
Obtain the first abstract that processing is encrypted in the upgrade file;
The second abstract of the upgrade file is extracted by preset algorithm, and first abstract of encryption is carried out Decryption;
Whether the first abstract after comparing decryption matches with second abstract;
If the first abstract after decryption matches with second abstract, determine that the upgrade file is tested by validity Card.
Optionally, in the case where the upgrade file passes through validation verification, then liter is executed according to the upgrade file After grade operation, further includes:
In the implementation procedure of the updating operation, powered off and the updating operation if detecting that the vehicle is abnormal Stop, determining the electronic control unit for stopping the updating operation;
In the case where detecting that the vehicle power supply is in start-up mode, controls the electronic control unit and continue to execute The updating operation re-executes the updating operation.
Optionally, in the case where the upgrade file passes through validation verification, then liter is executed according to the upgrade file After grade operation, further includes:
In the implementation procedure of the updating operation, if detecting preset instructions, prompt information is exported;
Wherein, the preset instructions are included at least with the next item down: car door opening instruction, central controlled lock open command, parking brake are put It gives an order, shifting commands.
Second aspect, embodiment of the disclosure additionally provide a kind of software renewing apparatus, are applied to vehicle, comprising:
Detection module, for detecting whether the vehicle meets default promotion condition;
First authentication module, for obtaining upgrade file, and right in the case where the vehicle meets default promotion condition The upgrade file carries out integrity verification;
Second authentication module is used in the case where the upgrade file passes through integrity verification, to the upgrade file Carry out validation verification;
Execution module is used in the case where the upgrade file passes through validation verification, then according to the upgrade file Execute updating operation.
Optionally, the detection module is also used to:
Detect whether the vehicle is in inactive state;
If the vehicle is in inactive state, determine that the vehicle meets default promotion condition.
Optionally, the default promotion condition includes:
Power supply is in close pattern, closing of the door and central controlled lock closing, battery voltage and is in predetermined voltage range, parking brake Signal is effectively and parking brake is in pull-up state, speed is less than preset vehicle speed and traveling gears are parking position switch.
Optionally, first authentication module is also used to:
Calculate the first validation value of the data byte of the upgrade file;
The the first default validation value whether first validation value sends with exterior terminal is compared to match;
If the first default validation value that first validation value is sent with exterior terminal matches, the upgrading text is determined Part passes through integrity verification.
Optionally, second authentication module is also used to:
Obtain the first abstract that processing is encrypted in the upgrade file;
The second abstract of the upgrade file is extracted by preset algorithm, and first abstract of encryption is carried out Decryption;
Whether the first abstract after comparing decryption matches with second abstract;
If the first abstract after decryption matches with second abstract, determine that the upgrade file is tested by validity Card.
Optionally, described device further includes control module, and the control module is used for:
In the implementation procedure of the updating operation, powered off and the updating operation if detecting that the vehicle is abnormal Stop, determining the electronic control unit for stopping the updating operation;
In the case where detecting that the vehicle power supply is in start-up mode, controls the electronic control unit and continue to execute The updating operation re-executes the updating operation.
Optionally, described device further includes output module, and the output module is used for:
In the implementation procedure of the updating operation, if detecting preset instructions, prompt information is exported;
Wherein, the preset instructions are included at least with the next item down: car door opening instruction, central controlled lock open command, parking brake are put It gives an order, shifting commands.
The third aspect, embodiment of the disclosure additionally provide a kind of vehicle, including processor, memory and are stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Now the step of Oftware updating method as described in first aspect.
Fourth aspect, embodiment of the disclosure additionally provide a kind of computer readable storage medium, are stored thereon with calculating Machine program, when the computer program is executed by processor the step of realization Oftware updating method as described in first aspect.
In embodiment of the disclosure, in the case where detecting that vehicle meets default promotion condition, vehicle obtains upgrading text Part, and integrity verification is carried out to the upgrade file, it is literary to the upgrading if the upgrade file is by integrity verification Part carries out validation verification, and in the case where the upgrade file passes through validation verification, is executed according to the upgrade file Updating operation.Due to carrying out integrity verification to upgrade file, it can be avoided vehicle and receive incomplete upgrading text Part avoids occurring situations such as interruption or staging error in escalation process, has ensured the smoothness of upgrading;In addition, by upgrading File carries out validation verification, also just can be avoided vehicle and gets mistake or incompatible file, further ensures and rise The smoothness of grade, is also avoided that vehicle is maliciously upgraded, improves the safety of vehicle.
Detailed description of the invention
It, below will be in embodiment of the disclosure description in order to illustrate more clearly of the technical solution of embodiment of the disclosure Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the disclosure Example is applied, it for those of ordinary skill in the art, without any creative labor, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is a kind of flow chart for Oftware updating method that embodiment of the disclosure provides;
Fig. 1 a is the flow chart for carrying out integrity verification in the Oftware updating method of Fig. 1 offer to upgrade file;
Fig. 1 b is the flow chart for carrying out validation verification in the Oftware updating method of Fig. 1 offer to upgrade file;
Fig. 2 is a kind of structure chart for software renewing apparatus that embodiment of the disclosure provides.
Specific embodiment
Below in conjunction with the attached drawing in embodiment of the disclosure, the technical solution in embodiment of the disclosure is carried out clear Chu is fully described by, it is clear that described embodiment is a part of this disclosure embodiment, instead of all the embodiments.Base It is obtained by those of ordinary skill in the art without making creative efforts every other in embodiment of the disclosure Embodiment belongs to the range of disclosure protection.
Referring to Figure 1, Fig. 1 is a kind of process for Oftware updating method applied to vehicle that embodiment of the disclosure provides Figure, as shown in Figure 1, comprising the following steps:
Whether step 101, detection vehicle meet default promotion condition.
It should be noted that the triggering whether the detection vehicle meets default promotion condition can be, there are many situations. For example, in oneainstance, can be in the case where vehicle receives software upgrade instruction, for example, can be vehicle with cloud In the case that end server establishes connection, such as cloud server sends software upgrade instruction to vehicle, and then vehicle is receiving It to after the software upgrade instruction, can be whether vehicle detection itself meets default promotion condition, or be also possible to cloud clothes Device be engaged in detect whether vehicle meets default promotion condition;It can certainly be that mobile terminal refers to vehicle transmission software upgrading It enables, or can also be other exterior terminals, as host computer sends software upgrade instruction to vehicle.
Alternatively, in another scenario, can be when detecting that vehicle enters specific software upgrade procedure, then detect Whether the vehicle meets default promotion condition.
In the embodiment of the present invention, the default promotion condition includes: that power supply is in close pattern, closing of the door and central controlled lock It closes, battery voltage is in predetermined voltage range, parking brake signal effectively and parking brake is in pull-up state, speed is less than default vehicle Speed and traveling gears are parking position switch.
Wherein, predetermined voltage range is 10~14V, preset vehicle speed 2Km/h.
Detect the vehicle and whether meet default promotion condition, that is, will electric source modes to vehicle, vehicle door status, in Control lock status, battery voltage, parking brake state, speed and traveling gears are detected, only whole in above-mentioned preset condition In the case where satisfaction, that is, when detecting that power supply is in close pattern, closing of the door and central controlled lock are closed, at battery voltage In the range of 10~14V, parking brake signal is effective and parking brake is in pull-up state, speed is less than 2Km/h and traveling gears are to stop Car stop then determines that vehicle meets default promotion condition.
Alternatively, the step 101 may include:
Detect whether the vehicle is in inactive state.
Wherein, it is detecting that vehicle is in inactive state, is then determining that the vehicle meets default promotion condition;If detection It is in starting state to vehicle, then determines that the vehicle is unsatisfactory for default promotion condition.It is to be appreciated that vehicle is in inactive State, the engine including vehicle is inactive, speed is in the power supply of 0, vehicle and be at least one in close pattern.
In addition, vehicle can be output hint instructions in the case where detecting that vehicle meets default promotion condition, such as The middle control that can be in vehicle shows the specific text information of screen display, to prompt user's vehicle currently to meet default upgrading item Part can carry out the operation of next step.
Step 102, in the case where the vehicle meets default promotion condition, obtain upgrade file, and to the upgrading File carries out integrity verification.
In the case where vehicle meets default promotion condition, then upgrade file is obtained.For example, in vehicle and cloud server In the case where establishing connection, then vehicle, which can be, obtains the upgrade file that cloud server is sent;Alternatively, vehicle with outside other In the case that portion's terminal (such as host computer) establishes wired connection, then vehicle, which can be, obtains the upgrade file that exterior terminal is sent.
After vehicle gets the upgrade file, it can be and the upgrade file is stored in the memory of vehicle, And integrity verification is carried out to the upgrade file.
Fig. 1 a is please referred to, it is described that integrity verification is carried out to the upgrade file, it can be and include the following steps:
Step 1021, calculate the upgrade file data byte the first validation value;
The the first default validation value whether step 1022, comparison first validation value send with exterior terminal matches;
If the first default validation value that step 1023, first validation value are sent with exterior terminal matches, determine The upgrade file passes through integrity verification.
Specifically, after vehicle obtains the upgrade file, vehicle be can be through " checking a programming integrality " example Process control activates ECU integrity verification, and when ECU receives this service request, Bootloader will calculate upgrade file First validation value of data byte, and compare the first default validation value phase whether first validation value sends with exterior terminal Matching, if matching, determines that the integrity verification of the upgrade file passes through.
Optionally, vehicle can be through CRC32 algorithm verify the upgrade file all data bytes whether by Correct transmission and write-in, that is to say, that Bootloader will calculate the CRC32 value of the data byte of upgrade file, and will calculate The request message that is sent with host computer of the CRC32 value in default CRC32 value be compared, if the CRC32 calculated Value is consistent with the default CRC32 value that host computer is sent, then determines that the integrity verification of the upgrade file passes through.
Step 103, the upgrade file pass through integrity verification in the case where, to the upgrade file carry out validity Verifying.
It is to be appreciated that in the case where the integrity verification of the upgrade file passes through namely the upgrade file packet Complete data byte is included, then validation verification is carried out to the upgrade file, to judge whether the upgrade file is effective.
Please refer to Fig. 1 b, it is described that validation verification is carried out to the upgrade file in embodiment of the disclosure, it can be packet Include following steps:
Step 1031 obtains the first abstract that processing is encrypted in the upgrade file;
Step 1032, the second abstract that the upgrade file is extracted by preset algorithm, and to described the of encryption One abstract is decrypted;
Step 1033 compares whether the first abstract after decrypting matches with second abstract;
If the first abstract after step 1034, decryption matches with second abstract, determine that the upgrade file is logical Cross validation verification.
Wherein, the preset algorithm is MD5 algorithm.Specifically, vehicle is getting the upgrade file, and in the liter Grade file obtains institute by extracting the second abstract of the upgrade file by MD5 algorithm in the case where integrity verification The first abstract being encrypted in upgrade file is stated, and first abstract is decrypted by corresponding algorithm, by described the Whether two abstracts are compared with the first abstract after decryption, if comparison result is consistent, determine that the upgrade file is effective, institute The validation verification for stating upgrade file passes through;If comparison result is inconsistent, determine the upgrade file be it is invalid, vehicle can be with Stop carrying out subsequent updating operation.
It should be noted that the upgrade file before being sent to vehicle, can be and first pass through exterior terminal to source Upgrade file is pre-processed, such as first to source upgrade file using MD5 algorithm extract first abstract, and to described first make a summary into Encrypted first abstract write-in source upgrade file end is generated the upgrade file, in this way, the liter by row encryption It also just include the first abstract being encrypted in grade file.Exterior terminal can be in the case where establishing connection with vehicle, by institute It states upgrade file and is sent to vehicle.
Step 104, the upgrade file pass through validation verification in the case where, then liter is executed according to the upgrade file Grade operation.
It is to be appreciated that then vehicle is according to the upgrade file when determining that the upgrade file is effective upgrade file Execute updating operation.
In embodiment of the disclosure, in the case where detecting that vehicle meets default promotion condition, vehicle obtains upgrading text Part, and integrity verification is carried out to the upgrade file, it is literary to the upgrading if the upgrade file is by integrity verification Part carries out validation verification, and in the case where the upgrade file passes through validation verification, is executed according to the upgrade file Updating operation.In turn, by carrying out integrity verification to upgrade file, it also just can be avoided vehicle and receive incomplete upgrading File avoids occurring situations such as interruption or staging error in escalation process, has ensured the smoothness of upgrading;In addition, by liter Grade file carries out validation verification, also just can be avoided vehicle and gets mistake or incompatible file, further ensures The smoothness of upgrading is also avoided that vehicle is maliciously upgraded, improves the safety of vehicle.
Optionally, after described 104, can also include:
In the implementation procedure of the updating operation, powered off and the updating operation if detecting that the vehicle is abnormal Stop, determining the electronic control unit for stopping the updating operation;Detecting that the vehicle power supply is in the feelings of start-up mode Under condition, controls the electronic control unit and continue to execute the updating operation or re-execute the updating operation.
It is to be appreciated that vehicle may be abnormal the case where power-off in escalation process, if vehicle be abnormal it is disconnected Electricity, then the updating operation stops, and determines the ECU for stopping the updating operation, and controls institute before the ECU pseudomemory powers off State the upgrade node of updating operation;When detecting that vehicle restores electricity, that is, detecting that vehicle power supply is in start-up mode In the case where, then the upgrade node remembered according to the ECU controls the ECU and executes the liter since the upgrade node The subsequent upgrade node not completed in grade operation.In this way, also just saving upgrading process, the efficiency of updating operation is also improved.
Alternatively, in the case where detecting that vehicle restores electricity, that is, detect that vehicle power supply is in start-up mode, then The ECU for carrying out updating operation before the ECU re-executes the updating operation, that is, control power-off is controlled, is re-started Updating operation.It is to be appreciated that the updating operation that vehicle is executed before power-off, based on upgrade file passed through integrality Verifying and validation verification, therefore, when vehicle restores electricity and re-executes updating operation, vehicle is also just no longer needed to upgrading text Part carries out integrity verification and validation verification, simplifies the upgrading process of vehicle.
In addition, can also include: after the step 104
In the implementation procedure of the updating operation, if detecting preset instructions, prompt information is exported.
Wherein, the preset instructions are included at least with the next item down: car door opening instruction, central controlled lock open command, parking brake are put It gives an order, shifting commands.For example, vehicle in the implementation procedure of the updating operation, if the car door lock of vehicle is triggered, is such as used Family pulls car door lock, and vehicle can detect that car door opening instructs at this time, then vehicle exports prompt information, and the prompt information can be with It is shown in the text information controlled on display screen in vehicle or be on the mobile terminal for establish wireless connection with vehicle, with aobvious Show currently for upgrade status, prompt user to stop car door opening movement, interfered to avoid the updating operation to vehicle, it is ensured that The smooth execution of updating operation.
Certainly, the hint instructions can also be other forms, such as can be the voice that vehicle Central Control Room issues and refer to Preset light flash is avoided with informing that user's vehicle is currently at upgrade status to vehicle in order or alarm song or vehicle Updating operation interfere.
It should be noted that the preset instructions are triggering command of the user before executing a certain predetermined registration operation, for example, institute Stating car door opening instruction is that user executes the triggering command before car door opening movement, and when user pulls car door lock, vehicle can be examined Car door opening instruction being measured, but car door is not opened also at this time, vehicle can be control vehicle door locking, to forbid car door opening, into And it can be avoided user and be started vehicle into the car, it is ensured that the smoothness of updating operation.Same principle, when vehicle detection arrives Central controlled lock open command, parking brake put down instruction, shifting commands, then vehicle output is corresponding forbids instructing, to forbid central controlled lock quilt Open, forbid parking brake to be laid down and forbid executing shift, so avoid user start vehicle, support vehicles updating operation it is suitable Smooth property.
In the embodiment of the present invention, vehicle complete updating operation after, vehicle can also carry out to upgrading complete software into Row functional authorization, the functional authorization can be the software completed to upgrading and test, such as operation upgrading completion Software, and monitor whether the software exception occurs in the process of running;If not occurring exception, that is to say, bright software upgrade success, And it can operate normally.
Further, vehicle can be after completing functional authorization, to exterior terminal, such as cloud server or host computer Deng sending the instruction information to indicate functional verification result, also allow for exterior terminal and user being capable of timely learning vehicle The result of software upgrading on.For example, vehicle can be transmission the first instruction information in the successful situation of functional authorization, The first instruction information can be operated normally to indicate software upgrade success on vehicle;The case where functional authorization fails Under, vehicle can be transmission second indication information, and the second indication information is to indicate cannot be normal after software upgrading on vehicle Operation, and then can also indicative function be played to user, facilitate user to take specific aim measure in time, such as again to vehicle Carry out the operation of software upgrading update.
Referring to figure 2., Fig. 2 is a kind of structure chart for software renewing apparatus that embodiment of the disclosure provides, such as Fig. 2 institute Show, the software renewing apparatus 200 includes:
Detection module 201, for detecting whether the vehicle meets default promotion condition;
First authentication module 202, for obtaining upgrade file in the case where the vehicle meets default promotion condition, And integrity verification is carried out to the upgrade file;
Second authentication module 203 is used in the case where the upgrade file passes through integrity verification, to the upgrading text Part carries out validation verification;
Execution module 204 is used in the case where the upgrade file passes through validation verification, then according to the upgrading text Part executes updating operation.
Optionally, the detection module 201 is also used to:
Detect whether the vehicle is in inactive state;
If the vehicle is in inactive state, determine that the vehicle meets default promotion condition.
Optionally, the default promotion condition includes:
Power supply is in close pattern, closing of the door and central controlled lock closing, battery voltage and is in predetermined voltage range, parking brake Signal is effectively and parking brake is in pull-up state, speed is less than preset vehicle speed and traveling gears are parking position switch.
Optionally, first authentication module 202 is also used to:
Calculate the first validation value of the data byte of the upgrade file;
The the first default validation value whether first validation value sends with exterior terminal is compared to match;
If the first default validation value that first validation value is sent with exterior terminal matches, the upgrading text is determined Part passes through integrity verification.
Optionally, second authentication module 203 is also used to:
Obtain the first abstract that processing is encrypted in the upgrade file;
The second abstract of the upgrade file is extracted by preset algorithm, and first abstract of encryption is carried out Decryption;
Whether the first abstract after comparing decryption matches with second abstract;
If the first abstract after decryption matches with second abstract, determine that the upgrade file is tested by validity Card.
Optionally, the software renewing apparatus 200 further includes control module, and the control module is used for:
In the implementation procedure of the updating operation, powered off and the updating operation if detecting that the vehicle is abnormal Stop, determining the electronic control unit for stopping the updating operation;
In the case where detecting that the vehicle power supply is in start-up mode, controls the electronic control unit and continue to execute The updating operation re-executes the updating operation.
Optionally, the software renewing apparatus 200 further includes output module, and the output module is used for:
In the implementation procedure of the updating operation, if detecting preset instructions, prompt information is exported;
Wherein, the preset instructions are included at least with the next item down: car door opening instruction, central controlled lock open command, parking brake are put It gives an order, shifting commands.
The software renewing apparatus 200 applied to vehicle that embodiment of the disclosure provides can be to execute above-mentioned software more Each process of new method embodiment, and identical technical effect can be reached, related notion therein and specific implementation The description being referred in above-mentioned Oftware updating method embodiment, details are not described herein.
In embodiment of the disclosure, software renewing apparatus 200 in the case where detecting that vehicle meets default promotion condition, Upgrade file is obtained, and integrity verification is carried out to the upgrade file, it is right if the upgrade file is by integrity verification The upgrade file carries out validation verification, and in the case where the upgrade file passes through validation verification, according to the liter Grade file executes updating operation.In turn, integrity verification is carried out to upgrade file by software renewing apparatus 200, also can It avoids vehicle from receiving incomplete upgrade file, avoids occurring situations such as interruption or staging error in escalation process, ensure The smoothness of upgrading;In addition, by upgrade file carry out validation verification, also just can be avoided vehicle get mistake or The incompatible file of person further ensures the smoothness of upgrading, is also avoided that vehicle is maliciously upgraded, improves the safety of vehicle Property.
Embodiment of the disclosure also provides a kind of vehicle, including processor, memory, and storage is on a memory and can be in institute The computer program run on processor is stated, which realizes that above-mentioned Oftware updating method is implemented when being executed by processor Each process of example, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
Embodiment of the disclosure also provides a kind of computer readable storage medium, is stored on computer readable storage medium Computer program, the computer program realize each process of above-mentioned Oftware updating method embodiment when being executed by processor, and Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (16)

1. a kind of Oftware updating method is applied to vehicle characterized by comprising
Detect whether the vehicle meets default promotion condition;
In the case where the vehicle meets default promotion condition, upgrade file is obtained, and the upgrade file is carried out complete Property verifying;
In the case where the upgrade file passes through integrity verification, validation verification is carried out to the upgrade file;
In the case where the upgrade file passes through validation verification, then updating operation is executed according to the upgrade file.
2. the method according to claim 1, wherein whether the detection vehicle meets default upgrading item Part, comprising:
Detect whether the vehicle is in inactive state;
If the vehicle is in inactive state, determine that the vehicle meets default promotion condition.
3. the method according to claim 1, wherein the default promotion condition includes:
Power supply is in close pattern, closing of the door and central controlled lock closing, battery voltage and is in predetermined voltage range, parking brake signal Effectively and parking brake is in pull-up state, speed is less than preset vehicle speed and traveling gears are parking position switch.
4. the method according to claim 1, wherein described carry out integrity verification, packet to the upgrade file It includes:
Calculate the first validation value of the data byte of the upgrade file;
The the first default validation value whether first validation value sends with exterior terminal is compared to match;
If the first default validation value that first validation value is sent with exterior terminal matches, determine that the upgrade file is logical Cross integrity verification.
5. the method according to claim 1, wherein described carry out validation verification, packet to the upgrade file It includes:
Obtain the first abstract that processing is encrypted in the upgrade file;
The second abstract of the upgrade file is extracted by preset algorithm, and first abstract of encryption is solved It is close;
Whether the first abstract after comparing decryption matches with second abstract;
If the first abstract after decryption matches with second abstract, determine that the upgrade file passes through validation verification.
6. the method according to claim 1, wherein the case where the upgrade file passes through validation verification Under, then according to the upgrade file execute updating operation after, further includes:
In the implementation procedure of the updating operation, if detecting, the vehicle is abnormal power-off and the updating operation is stopped Only, the electronic control unit for stopping the updating operation being determined;
In the case where detecting that the vehicle power supply is in start-up mode, control the electronic control unit continue to execute it is described Updating operation re-executes the updating operation.
7. the method according to claim 1, wherein the case where the upgrade file passes through validation verification Under, then according to the upgrade file execute updating operation after, further includes:
In the implementation procedure of the updating operation, if detecting preset instructions, prompt information is exported;
Wherein, the preset instructions are included at least with the next item down: car door opening instruction, central controlled lock open command, parking brake put down finger It enables, shifting commands.
8. a kind of software renewing apparatus is applied to vehicle characterized by comprising
Detection module, for detecting whether the vehicle meets default promotion condition;
First authentication module, for obtaining upgrade file, and to described in the case where the vehicle meets default promotion condition Upgrade file carries out integrity verification;
Second authentication module, for being carried out to the upgrade file in the case where the upgrade file passes through integrity verification Validation verification;
Execution module, in the case where the upgrade file passes through validation verification, then being executed according to the upgrade file Updating operation.
9. device according to claim 8, which is characterized in that the detection module is also used to:
Detect whether the vehicle is in inactive state;
If the vehicle is in inactive state, determine that the vehicle meets default promotion condition.
10. device according to claim 8, which is characterized in that the default promotion condition includes:
Power supply is in close pattern, closing of the door and central controlled lock closing, battery voltage and is in predetermined voltage range, parking brake signal Effectively and parking brake is in pull-up state, speed is less than preset vehicle speed and traveling gears are parking position switch.
11. device according to claim 8, which is characterized in that first authentication module is also used to:
Calculate the first validation value of the data byte of the upgrade file;
The the first default validation value whether first validation value sends with exterior terminal is compared to match;
If the first default validation value that first validation value is sent with exterior terminal matches, determine that the upgrade file is logical Cross integrity verification.
12. device according to claim 8, which is characterized in that second authentication module is also used to:
Obtain the first abstract that processing is encrypted in the upgrade file;
The second abstract of the upgrade file is extracted by preset algorithm, and first abstract of encryption is solved It is close;
Whether the first abstract after comparing decryption matches with second abstract;
If the first abstract after decryption matches with second abstract, determine that the upgrade file passes through validation verification.
13. device according to claim 8, which is characterized in that described device further includes control module, the control module For:
In the implementation procedure of the updating operation, if detecting, the vehicle is abnormal power-off and the updating operation is stopped Only, the electronic control unit for stopping the updating operation being determined;
In the case where detecting that the vehicle power supply is in start-up mode, control the electronic control unit continue to execute it is described Updating operation re-executes the updating operation.
14. device according to claim 8, which is characterized in that described device further includes output module, the output module For:
In the implementation procedure of the updating operation, if detecting preset instructions, prompt information is exported;
Wherein, the preset instructions are included at least with the next item down: car door opening instruction, central controlled lock open command, parking brake put down finger It enables, shifting commands.
15. a kind of vehicle, which is characterized in that including processor, memory and be stored on the memory and can be at the place The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 7 The step of Oftware updating method described in one.
16. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of Oftware updating method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910226959.XA 2019-03-25 2019-03-25 Software updating method, device, vehicle and computer readable storage medium Active CN110134412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910226959.XA CN110134412B (en) 2019-03-25 2019-03-25 Software updating method, device, vehicle and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910226959.XA CN110134412B (en) 2019-03-25 2019-03-25 Software updating method, device, vehicle and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110134412A true CN110134412A (en) 2019-08-16
CN110134412B CN110134412B (en) 2024-04-12

Family

ID=67568924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910226959.XA Active CN110134412B (en) 2019-03-25 2019-03-25 Software updating method, device, vehicle and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110134412B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647341A (en) * 2019-09-21 2020-01-03 深圳市英博超算科技有限公司 OTA upgrading method, OTA upgrading device, OTA vehicle and computer readable storage medium
CN110687888A (en) * 2019-09-26 2020-01-14 上海赫千电子科技有限公司 Automatic upgrading test device and system applied to locomotive
CN110703726A (en) * 2019-09-26 2020-01-17 上海赫千电子科技有限公司 Automatic upgrading test method applied to locomotive
CN111107138A (en) * 2019-12-10 2020-05-05 交控科技股份有限公司 VOBC data download method, VOBC, download server, device and medium
CN111954040A (en) * 2020-07-17 2020-11-17 深圳市华曦达科技股份有限公司 Remote controller upgrading method and device, electronic equipment and storage medium
CN111949299A (en) * 2020-08-24 2020-11-17 上海博泰悦臻网络技术服务有限公司 Control method and device for OTA (over the air) upgrade of vehicle-mounted software
CN112114841A (en) * 2020-06-10 2020-12-22 上汽通用五菱汽车股份有限公司 Vehicle machine system upgrading method, vehicle and readable storage medium
CN112948243A (en) * 2021-02-25 2021-06-11 维沃移动通信有限公司 File auditing method, file auditing device, electronic equipment and readable storage medium
CN112965421A (en) * 2021-02-23 2021-06-15 潍柴重机股份有限公司 Engine ECU (electronic control Unit) flash control method and control system
CN112989431A (en) * 2019-12-16 2021-06-18 北京车和家信息技术有限公司 System file detection method and device of vehicle-mounted equipment and vehicle-mounted equipment
CN113497819A (en) * 2020-04-02 2021-10-12 广州汽车集团股份有限公司 Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment
CN114265382A (en) * 2021-11-12 2022-04-01 潍柴动力股份有限公司 ECU (electronic control Unit) flash fault processing method and device, electronic equipment and storage medium
CN115145610A (en) * 2021-03-31 2022-10-04 上海擎感智能科技有限公司 Vehicle-mounted system and software upgrading method thereof
CN115562698A (en) * 2022-04-29 2023-01-03 荣耀终端有限公司 Basic input output system BIOS (basic input output system) upgrading method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159605A (en) * 2007-10-25 2008-04-09 中兴通讯股份有限公司 Flow control method capable of implementing state memory and recovery
CN101330399A (en) * 2007-06-19 2008-12-24 上海风格信息技术有限公司 Method for upgrading built-in equipment
CN101593118A (en) * 2009-02-24 2009-12-02 浪潮集团山东通用软件有限公司 A kind of software upgrade method flexibly
CN105138349A (en) * 2015-07-24 2015-12-09 深圳市元征科技股份有限公司 Software upgrading method and device
CN105278994A (en) * 2015-10-29 2016-01-27 北京新能源汽车股份有限公司 Updating method and updating system of vehicle-mounted ECU (Electronic Control Unit) software
US20160092190A1 (en) * 2013-12-16 2016-03-31 Beijing Nq Technology Co., Ltd. Method, apparatus and system for inspecting safety of an application installation package
CN107291511A (en) * 2017-06-30 2017-10-24 百度在线网络技术(北京)有限公司 Method and apparatus for the application program updating of vehicle-mounted Android system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330399A (en) * 2007-06-19 2008-12-24 上海风格信息技术有限公司 Method for upgrading built-in equipment
CN101159605A (en) * 2007-10-25 2008-04-09 中兴通讯股份有限公司 Flow control method capable of implementing state memory and recovery
CN101593118A (en) * 2009-02-24 2009-12-02 浪潮集团山东通用软件有限公司 A kind of software upgrade method flexibly
US20160092190A1 (en) * 2013-12-16 2016-03-31 Beijing Nq Technology Co., Ltd. Method, apparatus and system for inspecting safety of an application installation package
CN105138349A (en) * 2015-07-24 2015-12-09 深圳市元征科技股份有限公司 Software upgrading method and device
CN105278994A (en) * 2015-10-29 2016-01-27 北京新能源汽车股份有限公司 Updating method and updating system of vehicle-mounted ECU (Electronic Control Unit) software
CN107291511A (en) * 2017-06-30 2017-10-24 百度在线网络技术(北京)有限公司 Method and apparatus for the application program updating of vehicle-mounted Android system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647341A (en) * 2019-09-21 2020-01-03 深圳市英博超算科技有限公司 OTA upgrading method, OTA upgrading device, OTA vehicle and computer readable storage medium
CN110687888A (en) * 2019-09-26 2020-01-14 上海赫千电子科技有限公司 Automatic upgrading test device and system applied to locomotive
CN110703726A (en) * 2019-09-26 2020-01-17 上海赫千电子科技有限公司 Automatic upgrading test method applied to locomotive
CN111107138A (en) * 2019-12-10 2020-05-05 交控科技股份有限公司 VOBC data download method, VOBC, download server, device and medium
CN112989431A (en) * 2019-12-16 2021-06-18 北京车和家信息技术有限公司 System file detection method and device of vehicle-mounted equipment and vehicle-mounted equipment
CN113497819A (en) * 2020-04-02 2021-10-12 广州汽车集团股份有限公司 Remote upgrade security guarantee method and system and vehicle-mounted Tbox equipment
CN112114841A (en) * 2020-06-10 2020-12-22 上汽通用五菱汽车股份有限公司 Vehicle machine system upgrading method, vehicle and readable storage medium
CN111954040A (en) * 2020-07-17 2020-11-17 深圳市华曦达科技股份有限公司 Remote controller upgrading method and device, electronic equipment and storage medium
CN111949299A (en) * 2020-08-24 2020-11-17 上海博泰悦臻网络技术服务有限公司 Control method and device for OTA (over the air) upgrade of vehicle-mounted software
CN112965421A (en) * 2021-02-23 2021-06-15 潍柴重机股份有限公司 Engine ECU (electronic control Unit) flash control method and control system
CN112965421B (en) * 2021-02-23 2023-06-16 潍柴重机股份有限公司 Engine ECU (electronic control Unit) brush writing control method and control system
CN112948243A (en) * 2021-02-25 2021-06-11 维沃移动通信有限公司 File auditing method, file auditing device, electronic equipment and readable storage medium
CN115145610A (en) * 2021-03-31 2022-10-04 上海擎感智能科技有限公司 Vehicle-mounted system and software upgrading method thereof
CN114265382A (en) * 2021-11-12 2022-04-01 潍柴动力股份有限公司 ECU (electronic control Unit) flash fault processing method and device, electronic equipment and storage medium
CN115562698A (en) * 2022-04-29 2023-01-03 荣耀终端有限公司 Basic input output system BIOS (basic input output system) upgrading method and electronic equipment
CN115562698B (en) * 2022-04-29 2023-10-20 荣耀终端有限公司 Upgrading method of Basic Input Output System (BIOS) and electronic equipment

Also Published As

Publication number Publication date
CN110134412B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN110134412A (en) Oftware updating method, device, vehicle and computer readable storage medium
US10592231B2 (en) Vehicle information communication system
US20200183676A1 (en) Vehicle information communication system
US20210182048A1 (en) Vehicle electronic control system, program update notification control method and computer program product
WO2020124985A9 (en) Secure firmware upgrade method, device, on-board system, and vehicle
US11947953B2 (en) Vehicle electronic control system, progress screen display control method and computer program product
US9792440B1 (en) Secure boot for vehicular systems
CN107729757A (en) Software authentication before software upgrading
KR101600460B1 (en) System for electric control unit upgrade with security functions and method thereof
CN108762783A (en) Oftware updating method, device and the Vehicular system of Vehicular system
US11604637B2 (en) Electronic control unit, vehicle electronic control system, difference data consistency determination method and computer program product
CN113645590B (en) Method, device, equipment and medium for remotely controlling vehicle based on encryption algorithm
US11928459B2 (en) Electronic control unit, retry point specifying method and computer program product for specifying retry point
US20220012043A1 (en) Vehicle information communication system
CN113849212B (en) Software upgrading control method and device and electronic equipment
US11926270B2 (en) Display control device, rewrite progress display control method and computer program product
CN106529301A (en) Method and device for controlling vehicle-mounted machine system, and vehicle-mounted machine system
CN112991584A (en) Control method and system for unlocking and locking of vehicle
US11876898B2 (en) Vehicle master device, security access key management method, security access key management program and data structure of specification data
US11656771B2 (en) Electronic control unit, vehicle electronic control system, activation execution control method and computer program product
CN113805916A (en) Upgrading method, system, readable storage medium and vehicle
US20230254374A1 (en) Vehicle master device, update data verification method and computer program product
EP4075309A1 (en) Secure boot device
CN114077729A (en) Accelerated verification of automotive software in a vehicle
CN105827413A (en) Electronic terminal, and system safety verification device and 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
GR01 Patent grant
GR01 Patent grant