EP4004712A1 - Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution, une mémoire de sauvegarde et une mémoire de contrôle - Google Patents
Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution, une mémoire de sauvegarde et une mémoire de contrôleInfo
- Publication number
- EP4004712A1 EP4004712A1 EP20746261.5A EP20746261A EP4004712A1 EP 4004712 A1 EP4004712 A1 EP 4004712A1 EP 20746261 A EP20746261 A EP 20746261A EP 4004712 A1 EP4004712 A1 EP 4004712A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- memory
- software
- computer
- request
- blocks
- 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.)
- Withdrawn
Links
- 230000015654 memory Effects 0.000 title claims abstract description 217
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000012795 verification Methods 0.000 claims abstract description 10
- 230000005540 biological transmission Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 claims description 5
- 238000004891 communication Methods 0.000 description 29
- 238000009434 installation Methods 0.000 description 19
- 230000007246 mechanism Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 230000008672 reprogramming Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 125000004122 cyclic group Chemical group 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000035755 proliferation Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F21/572—Secure firmware programming, e.g. of basic input output system [BIOS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
Definitions
- the invention relates to the software update of one or more computers of a motor vehicle carried out remotely from a diagnostic tool also called an OTA update (for Over The Air).
- OTA update for Over The Air
- Communication between the tool and the computer generally makes use of either the CAN 500kbps technology known from the current state of the art or the 100 Mbits / s Ethernet technology being deployed in the automotive world in order to transfer the data to be programmed.
- Methods and systems for downloading files in computers on board motor vehicles such as those described for example in document FR-A-2719924, are already known in the state of the art. This document details the various successive stages of the procedure used during vehicle assembly or in a manufacturer's after-sales network, when correcting a service by exchanging a file.
- This type of problem can arise for example in the case where the destination computer tries to write a value on a corrupted memory cell for example, or in the case of a transmission error due for example to a field
- Such a type of problem is generally detected by the recipient computer (for example by checking a CRC Cyclic Redoundancy Check in the event of an incorrect reception). In this case, information will be sent to the master computer to request the execution of the rollback process.
- document US20190057214 discloses an update control device comprising a first communication unit, a second communication unit, and a control unit.
- the first communication unit is configured to receive patch data for each block of software and first authentication data for each authentication block of software in an updated terminal using the patch data on a basis. by block.
- the control unit is configured to request the terminal to rollback for restoration from a first block to a (M-1) th block using the patch data upon receipt of an update result indicating a failure in an authentication of an Mth block (M> 1).
- An object of the present invention is to provide a solution for quickly resetting a computer of a vehicle in particular to a state prior to a software update when an update file is corrupted.
- the invention relates in particular to a method for updating software of an on-board computer of a vehicle, comprising an execution memory (ME) in which a plurality of blocks (A, B, C) are stored. of current software, a backup memory (MS) and a control memory (MC), characterized in that it comprises the steps of:
- Sending (400) of a request commanding a return to a state preceding the update comprising a copy (403) from the backup memory (MS) to the execution memory (ME) of the plurality of blocks of the current software (A, B, C).
- the invention has the advantage, when an integrity test of the data received leads to a failure, to allow the installation procedure to be interrupted without delay and to immediately restart the initial software because the execution memory (Executing Memory) has not yet been changed.
- the invention therefore saves time but also improves security insofar as it eliminates additional risks of data corruption. inevitably linked to the successive operations of generating blocks of current software in the solutions of the state of the art.
- the method for updating the software of a computer further comprises a step of sending a request commanding said computer to erase the control memory, prior to sending the request commanding the writing in control memory of at least one block of updated software.
- the method for updating software of a computer further comprises a step of sending a request commanding said computer to erase the backup memory, prior to the transmission of the request controlling the copy from the execution memory to the backup memory of the plurality of blocks of the current software.
- the method for updating software of a computer further comprises a step of sending a request commanding said computer to check the integrity of the plurality of blocks of the current software in the backup memory.
- the method for updating software of a computer further comprises a step of sending a request commanding said computer to erase from the execution memory the software blocks to be put. up to date.
- the step of returning to a state preceding the update further comprises a preliminary step of erasing the execution memory of the computer and a step of verifying the integrity of the plurality of blocks of the current software in runtime memory.
- the step of returning to a state preceding the update further comprises a step of stopping the update comprising a command to return to a state preceding the update to other computers concerned by said update. up to date.
- the invention also relates to a device for updating computer software, said device comprising a memory associated with at least one processor configured to implement the steps of the method according to the invention.
- the invention also relates to a vehicle characterized in that it comprises a device for updating the software of a computer according to the invention.
- FIG. 1 schematically illustrates a system, according to a particular embodiment of the present invention
- FIG. 2 schematically illustrates a computer, according to a particular embodiment of the present invention
- FIG. 3 schematically illustrates an updating method, according to a particular embodiment of the present invention.
- FIG 4 schematically illustrates the sub-steps of a step for resetting to a state preceding an update, according to a particular embodiment of the present invention.
- FIG 5 illustrates an example of the successive states of memories of a computer during an update.
- the subject of the invention is in particular a method making it possible to update, via a wired communication or a wireless communication, an on-board computer provided with an external memory of double the capacity of the execution memory.
- the procedure provides for a Rollback operation which makes it possible to return to version n-1 so that the vehicle can regain its functionality.
- the system according to the invention comprises a vehicle 101 connected to a remote update server 102.
- the vehicle 101 comprises a plurality of computers ECU1, ECU2, ECU3 including an on-board communication unit which communicates with the server 102, via a wireless connection.
- the connection or wireless link is a connection by radio waves (3G, 4G, ).
- the computers ECU1, ECU2, ECU3 communicate with each other via a data bus 104 (for example of the CAN type).
- the unloaded server 102 is for example a generic computer comprising at least one memory and one processor.
- the vehicle 101 and the unloaded server 102 communicate via a wide area network 105 such as a fixed communication network 103 (or WAN for “Wide Area Network”), for example the Internet network to which the vehicle is connected by a wireless link (3G, 4G, ).
- the ECU1 computer also called the update management computer (or
- FOTA Master - for Full Over-The-Air which allows the updating of computers ECU2 to ECU3, has for this purpose mechanisms capable of transferring the data files received in frames expected by the recipient ECU2, ECU3 computers to install their software.
- the computer playing the role of FOTA master in a vehicle may or may not be the same computer as the one which has wireless communication functions.
- An operator via a terminal 107 can perform the checks and transmits remote instructions to the vehicle 101. These instructions are transmitted to the vehicle 101 by wave which can be 4G, WIFI or any other wireless communication technology. come.
- ECU1, ECU2, ECU3 calculators can be updated in a garage.
- Updating software in a garage responds to a specific procedure (case 1 in FIG. 1) during which the operator becomes responsible for the vehicle entrusted to him. In this regard, it places the vehicle in a "safe and secure" environment. before launching this operation from a tool 106 connected to a dedicated socket 108 of the vehicle 101 Then once the operation is complete, it performs certain checks to ensure that it is operating correctly. If a problem is detected, either during the course of the procedure or after the update, the technician will take the necessary measures to correct the anomaly (new test, change of part, etc.) before returning the vehicle. to the client. The mechanic is therefore an important link in the safety chain as such, but is also in charge of ensuring the quality of the operation carried out.
- the FOTA master communicates with the target computer via the communication network available in the vehicle (for example CAN, Ethernet or other).
- the communication network available in the vehicle (for example CAN, Ethernet or other).
- the FOTA master uses a dedicated communication protocol, such as, for example, the UDS protocol (standard IS014229) commonly used for diagnosing or downloading software for on-board computers in motor vehicles.
- UDS protocol standard IS014229
- the computer 200 according to the invention comprises:
- microcontroller 201 comprising equipped with a Flash memory ME, of a given size N, used to run the downloaded software and called the execution memory ME (or Executing Memory in English),
- a backup memory MS (or Backup Memory in English), of a size at least equal to the given size N, used as backup memory allowing to return to the previous version of the software in the event of a problem during the installation
- - A control memory MC (or Checking Memory in English), of a size at least equal to the given size N, used to check the integrity of the new software received by wire or OTA method before even launching any modification of the contents of the execution memory.
- the backup memory MS and the control memory MC belong to an external Flash memory 205, of a size at least equal to twice the given size N.
- the external flash memory is linked to the microcontroller, for example via a 206 SPI (Serial Peripheral Interface) bus, but it could be another data link.
- SPI Serial Peripheral Interface
- This bus can be replaced by any other communication bus technology whose data exchange rate is sufficient for the installation of the new software to be completed within a reasonable timeframe as seen by the customer.
- the data exchanged between the internal memory and the external memory are encrypted, so as to improve the security of the update.
- the backup memory MS and the control memory MC can be integrated into the memory of the microcontroller 201.
- This variant has the advantage of not needing to encrypt the data during a copy of the data. 'one memory to another.
- this variant eliminates the need for additional components used to manage communication with an external memory.
- this variant involves using a microcontroller with an internal memory of at least double the size of the software.
- the computer to be updated 200 or the target computer, has software in its execution memory ME.
- This software is composed of 3 data blocks A, B and C.
- the method according to the invention comprises: A first phase 310 during which: the update data (blocks B ’and C’ in the example) contained in the file to be downloaded are transmitted to the
- a second phase 320 during which: the entire content of the execution memory ME is duplicated in the backup memory MS in order to keep a copy of the original software.
- a third phase 330 during which: the data blocks contained in the control memory MC, blocks B 'and C' in the example, are copied into the execution memory ME in order to replace the blocks of the old software (blocks B and C in the example).
- the data blocks not affected by the update are not modified (block A in the example).
- a fourth phase executed in the event of an installation failure during which the entire contents of the MS backup memory are copied back to the ME execution memory in order to revert to the initial software.
- the FOTA master places the computer 200 in a state dedicated to programming (where the functional is deactivated) by using a request to enter a reprogramming session.
- the target computer 200 accepts to execute this request only if the safety conditions are met (eg: vehicle stationary, traction chain deactivated, etc.)
- the FOTA master communicates directly with the boot software of the target computer 200.
- the computer boot software can perform different operations (write, copy, integrity check) on one of the three memories available (ME execution memory, MS backup memory or MC control memory).
- Figure 3 describes a succession of actions to be performed by the FOTA master to install new software in the target computer 200.
- the target computer 200 is in a first state 501, called the initial state, in which: the execution memory ME comprises three blocks of current software.
- the first phase 310 comprises the following steps:
- a first step 31 1 the FOTA master sends a request to ask the target computer to erase the control memory MC.
- the FOTA master writes the data received from the remote server (by wired or wireless communication) in the control memory MC of the target computer 200 using dedicated requests. This operation is reiterated for each block of data to be updated.
- control memory MC is in an external memory 205
- it is the boot software of the target computer which transparently manages for the FOTA master the exchanges carried out on the communication bus 206 (for example type SPI) between the microcontroller 201 and its external memory 205.
- the FOTA master sends a request to ask the target computer 200 to check the integrity of the data copied into the control memory MS.
- This check can be carried out using a CRC Cyclic Redoundancy Check or any other method known to the state of the art (example: calculation, using a hash function, of a "hash »Of the content of the data downloaded in the target computer, and comparison of the result with a reference value transmitted beforehand by the FOTA master). If the memory is made up of several blocks of data, each block has its own integrity control mechanism (based on the same method or different methods).
- the FOTA master receives a negative response from the target computer 200. In this case, the FOTA master abandons the normal course of the procedure. installation to perform an installation shutdown procedure 314.
- the target computer 200 is in a second state 502 in which: the execution memory ME comprises three blocks of current software A, B, C and the control memory MC comprises the updated software blocks B ', C' from the update file 510.
- the second phase 320 comprises the following steps.
- the FOTA master sends a request to ask the computer 200 to erase all of the backup memory MS.
- the FOTA master sends a request to ask the target computer 200 to copy the entire content of the execution memory ME into the backup memory MS.
- a sixth step 323 the FOTA master sends a request to ask the target computer 200 to check the integrity of the data copied into the backup memory MS. This verification is advantageously carried out by the same methods as in the third step 313.
- the target computer 200 If one of the fourth 321, fifth 322, or sixth 323 steps fails, the target computer 200 returns a negative response to the FOTA master. The FOTA master then executes the installation shutdown procedure 314.
- the target computer 200 is in a third state 503 in which: the execution memory ME comprises the three blocks of the current software A, B, C, the control memory MC comprises the updated software blocks B ', C' from the update file 510, and the backup memory MS comprises the three blocks of the current software A, B, C
- the third phase 330 is only executed if the first phase 310 and the second phase 320 have been successfully completed beforehand. From this phase, the boot software of the target computer 200 invalidates the application software present in the execution memory ME because it is liable to be modified by subsequent operations. For this, it can for example store a variable (or flag) in non-volatile memory, which will be tested each time the computer 200 is initialized to check whether the application software loaded in the execution memory ME can be executed or not.
- the third phase 330 comprises the following steps.
- the FOTA master sends as many requests as necessary to ask the target computer 200 to erase all the data blocks to be updated in the execution memory ME.
- the list of data blocks to be updated is provided to the FOTA master via the download file.
- the FOTA master sends as many requests as necessary to ask the target computer 200 to copy each block of data to be updated from the control memory MC to the execution memory ME.
- a ninth step 333 the FOTA master sends as many requests as necessary to request the target computer to check the data integrity of each updated data block in the execution memory ME. This verification is advantageously carried out by the same methods as in the third step 313.
- the target computer is in a fourth state 504 in which: the execution memory ME comprises a block of the current software A, and two blocks of the updated software B ', C' ; the control memory MC contains the updated software blocks B ’, C’ from the update file 510; and the backup memory MS comprises the three blocks of the current software A, B, C
- the target computer 200 If one of the seventh 331, eighth 332, or ninth 333 steps fails, the target computer 200 returns a negative response to the FOTA master. The FOTA master then performs the operation of returning to a state prior to the update (Rollback).
- the newly downloaded software will therefore be automatically executed by the computer 200 during its next reinitialization caused either by a request from the FOTA master, or by a power cut and then on again.
- the installation shutdown procedure 314 is executed only if the installation fails before the third phase 330.
- the FOTA master determines whether one or more computers are affected by the update. If only one computer is concerned by the update, the FOTA master sends a message to suggest to the operator either to restart or to abandon the installation.
- the computer 200 is operational from the next reset, without a Rollback operation.
- the FOTA master proceeds as for the first case (sending a message to the operator and no rollback if abort),
- the FOTA master triggers the Rollback process in all the ECUs of the vehicle that require it until a state preceding the update is returned. day in the other computers of the vehicle.
- the FOTA master then executes the rollback operation.
- the rollback step 400 comprises the following substeps.
- the FOTA master transmits 401 a message to GIHM to inform the operator that a Rollback operation is in progress on one or more computers of the vehicle.
- the FOTA master sends 402 a request to ask the target computer 200 to erase all of the execution memory ME.
- the FOTA master sends 403 a request to ask the target computer 200 to copy the entire contents of the backup memory MS into the execution memory ME.
- the FOTA master sends 404 a request to ask the target computer to check the integrity of the data copied into the execution memory ME. This verification is advantageously carried out by the same methods as in the third step 313.
- the computer can again operate with its initial software after its reinitialization caused either by a request from the FOTA master, either by cutting and then resuming the power supply.
- the target computer is in a fifth state 505 in which: the execution memory ME comprises the three blocks of the current software A, B, C, the control memory MC comprises the updated software blocks B ', C' from the update file 510, and the backup memory MS comprises the three blocks of the current software A, B, C.
- the invention also relates to a method allowing the updating, via a wired communication or a wireless communication, of an on-board computer provided with an external memory of equal capacity of the memory d. 'execution.
- the procedure provides for a Rollback operation which allows a return to version n-1 so that the vehicle can regain its functionality.
- the vehicle comprises a plurality of computers including an on-board communication unit which communicates with the server 102, via a wireless connection.
- the connection or wireless link is a connection by radio waves (3G, 4G, ).
- the computers communicate with each other via a data bus (eg CAN type).
- a data bus eg CAN type.
- the unloaded server is for example a generic computer comprising at least one memory and one processor.
- the vehicle and the disembarked server communicate via a wide area network such as a fixed communication network (or WAN for “Wide Area Network”), for example the Internet network to which the vehicle is connected by a wireless link (3G, 4G, etc. .).
- a wide area network such as a fixed communication network (or WAN for “Wide Area Network”), for example the Internet network to which the vehicle is connected by a wireless link (3G, 4G, etc. .).
- the computer also called the update management computer (or FOTA Master - for Full Over-The-Air) which allows the computers to be updated, has for this purpose mechanisms capable of transferring the data files received in frames. expected by the recipient computers to install their software.
- the computer playing the role of FOTA master in a vehicle may or may not be the same computer as the one which has wireless communication functions.
- An operator via a terminal can perform the checks and transmits remote instructions to the vehicle. These instructions are transmitted to the vehicle by wave which can be 4G, WIFI or any other wireless communication technology to come.
- the calculators can be updated in a garage. Updating software in a garage responds to a specific procedure during which the operator becomes responsible for the vehicle entrusted to him. In this regard, he places the vehicle in a "safe and secure" environment before launching this operation from a tool connected to a dedicated socket on the vehicle. Then once the operation is complete, it performs certain checks to ensure that it is working properly. If a problem is detected, either during the course of the procedure or after the update, the technician will take the necessary measures to correct the anomaly (new test, change of part, etc.) before returning the vehicle. to the client.
- the garage owner is therefore an important link in the safety chain, but is also in charge of ensuring the quality of the operation carried out. During an OTA update at a customer's site, none of this is possible and it is therefore necessary to add in each computer a mechanism to revert to the previous version in the event of a problem.
- the FOTA master communicates with the target computer via the communication network available in the vehicle (for example CAN, Ethernet or other).
- the communication network available in the vehicle (for example CAN, Ethernet or other).
- the FOTA master uses a dedicated communication protocol, such as, for example, the UDS protocol (standard IS014229) commonly used for diagnosing or downloading software for on-board computers in motor vehicles.
- UDS protocol standard IS014229
- the calculator according to the invention comprises:
- microcontroller comprising equipped with a Flash memory, of a given size N, used to run the downloaded software and called the execution memory (or Executing Memory in English),
- a backup memory of a size at least equal to the given size N, used as a backup memory allowing to revert to the previous version of the software in the event of a problem during installation,
- the backup memory belongs to an external Flash memory, of a size at least equal to the given size N.
- the external flash memory is linked to the microcontroller, for example via a 206 SPI (Serial Peripheral Interface) bus, but it could be another data link.
- SPI Serial Peripheral Interface
- This bus can be replaced by any other communication bus technology whose data exchange rate is sufficient for the installation of the new software to be completed within a reasonable timeframe as seen by the customer.
- the data exchanged between the internal memory and the external memory are encrypted, so as to improve the security of the update.
- the backup memory MS can be integrated into the memory of the microcontroller.
- This variant has the advantage of not needing to encrypt the data when copying from one memory to another.
- this variant eliminates the need for additional components used to manage communication with an external memory.
- this variant involves using a microcontroller having an internal memory of size at least double the maximum size of the software.
- the computer to be updated, or target computer has software in its execution memory. This software is composed of 3 data blocks A, B and C.
- the method according to the invention comprises:
- a first phase during which: the entire content of the execution memory is duplicated in the backup memory in order to keep a copy of the original software.
- the data blocks not affected by the update are not modified (block A in the example).
- a third phase is executed in the event of an installation failure during which the entire contents of the backup memory are copied into the execution memory in order to return to the initial software.
- the FOTA master before updating the target computer, places the computer in a state dedicated to programming (where the functional is deactivated) by using a request to enter a reprogramming session.
- the target computer accepts to execute this request only if the safety conditions are met (eg: vehicle stationary, traction chain deactivated, etc.)
- the FOTA master communicates directly with the boot software of the target ECU.
- the computer boot software can perform various operations (write, copy, integrity check) on one of the two memories available to it (ME execution memory or backup memory MS).
- the target computer before the execution of the updating method according to the invention, is in a first state, called the initial state, in which: the execution memory ME comprises three blocks of one current software A, B, C.
- the first phase comprises the following steps: In a first step, the FOTA master sends a request to ask the target computer 200 to erase the backup memory MS.
- the FOTA master sends a request to ask the target computer to copy the entire contents of the execution memory ME into the backup memory MS.
- the FOTA master sends a request) to ask the target computer to check the integrity of the data copied to the backup memory.
- This check can be carried out using a CRC Cyclic Redoundancy Check or any other method known to the state of the art (example: calculation, using a hash function, of a "hash »Of the data content and comparison of the result with a reference value transmitted beforehand by the FOTA master). If the memory is made up of several blocks of data, each block has its own integrity control mechanism (based on the same method or different methods). If one of the first, second or third stages fails, the FOTA master receives a negative response from the computer. In this case, the FOTA master will abandon the normal flow of the installation procedure to perform the stop installation procedure.
- the target computer is in a second state 502 in which: the execution memory ME comprises the three blocks of the current software A,
- B, C, and the backup memory MS comprises the three blocks of the current software A, B,
- the second phase is only executed if the first phase has been successfully completed beforehand. From this phase, the boot software of the target computer invalidates the application software present in the execution memory because it is liable to be modified by the rest of the operations. For this, it can for example store a variable (or flag) in non-volatile memory, which will be tested each time the computer is initialized to verify whether the application software loaded in the execution memory can be executed or not.
- the second phase comprises the following steps.
- the FOTA master sends a request to ask the target computer to erase all the data blocks to be updated in the execution memory ME.
- the list of data blocks to be updated is provided to the FOTA master via the download file.
- the FOTA master writes the received data (by
- the FOTA master sends a request to request the target computer 200 to check the data integrity of each updated data block in the execution memory ME. This verification is advantageously carried out by the same methods as in the third step.
- the target computer is in a third state in which: the execution memory comprises a block of the current software A and two blocks of the updated software, B, C, and the memory of backup comprises the three blocks of the current software A, B, C.
- the target computer If one of the fourth, fifth or sixth steps fails, the target computer returns a negative response to the FOTA master.
- the FOTA master then performs the operation of returning to a state prior to the update (Rollback).
- the computer boot software declares the application software valid.
- the newly downloaded software is therefore automatically executed by the computer during the reset caused either by a request from the FOTA master, or by cutting and then resuming the power to the target computer.
- the installation shutdown procedure is performed only if the installation fails before the third phase.
- Two cases are to be distinguished depending on the type of intervention initially planned by the operator: (case 1) only the target computer is updated or (case 2) several computers are affected by the update.
- the FOTA master determines whether one or more computers are affected by the update.
- the FOTA master sends a message to suggest to the operator either to restart or to abandon the installation.
- the FOTA master proceeds as in the first case (sending a message to the operator and no rollback if abandoned),
- the FOTA master triggers the Rollback process in all the ECUs of the vehicle that require it until a state preceding the update is returned. in the other computers of the vehicle.
- the FOTA master then performs the operation of returning to a state prior to the update (Rollback).
- the rollback step has the following substeps.
- the FOTA master transmits a message to GI HM to inform the operator that a Rollback operation is in progress on one or more computers of the vehicle.
- the FOTA master sends a request to ask the target ECU to erase all of the execution memory.
- the FOTA master sends a request to ask the target ECU to copy the entire contents of the backup memory to the execution memory.
- the FOTA master sends a request to ask the target ECU to check the integrity of the data copied to the execution memory. This verification is advantageously carried out by the same methods as in the third step.
- the computer can again operate with its initial software after its reset caused either by a request from the FOTA master, or by a power cut and then on again.
- the target computer is in a fourth state in which: the execution memory comprises the three blocks of the current software A, B, C, and the backup memory comprises the three blocks current software A, B, C.
- the invention relates in particular to a method for updating software of an on-board computer of a vehicle, comprising an execution memory in which are stored a plurality of blocks (A, B, C) of a current software, a backup memory, characterized in that it comprises the steps of:
- the invention has the advantage when an integrity test of the data received leads to a failure, to allow the installation procedure to be interrupted without delay and to quickly restart the initial software since it is saved in the memory of the device. backup.
- the invention therefore saves time but also enhanced security insofar as it eliminates additional risks of data corruption inevitably linked to successive software block generation operations during the rollback phase in the solution. state of the art.
- the method for updating software of a computer further comprises a step of sending a request commanding said computer to erase the backup memory, prior to the transmission of the request controlling the copy from the execution memory to the backup memory of the plurality of blocks of the current software.
- the method for updating software of a computer further comprises a step of sending a request commanding said computer to check the integrity of the plurality of blocks of the current software in the backup memory.
- the method for updating software of a computer further comprises a step of sending a request commanding said computer to erase from the execution memory the software blocks to be put. up to date.
- the step of returning to a state preceding the update further comprises a preliminary step of erasing the execution memory of the computer and a step of verifying the integrity of the plurality of blocks of the current software in runtime memory.
- the method for updating the software of a computer further comprises a step of stopping the update comprising a command to return to a state preceding the update to other computers affected by said update.
- the invention also relates to a device for updating computer software, said device comprising a memory associated with at least one processor, configured to implement the steps of the method according to the invention.
- the invention also relates to a vehicle characterized in that it comprises a device for updating the software of a computer according to the invention.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
Description
Claims
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
FR1908403A FR3099265B1 (fr) | 2019-07-24 | 2019-07-24 | Procédé et dispositif de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution, une mémoire de sauvegarde et une mémoire de contrôle |
FR1908402A FR3099264B1 (fr) | 2019-07-24 | 2019-07-24 | Procédé et dispositif de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution et une mémoire de sauvegarde |
PCT/FR2020/051149 WO2021014064A1 (fr) | 2019-07-24 | 2020-07-01 | Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution, une mémoire de sauvegarde et une mémoire de contrôle |
Publications (1)
Publication Number | Publication Date |
---|---|
EP4004712A1 true EP4004712A1 (fr) | 2022-06-01 |
Family
ID=71786985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP20746261.5A Withdrawn EP4004712A1 (fr) | 2019-07-24 | 2020-07-01 | Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution, une mémoire de sauvegarde et une mémoire de contrôle |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4004712A1 (fr) |
CN (1) | CN114144759A (fr) |
WO (1) | WO2021014064A1 (fr) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4290396A1 (fr) * | 2022-06-07 | 2023-12-13 | Valeo Internal Automotive Software Egypt, a limited liability company | Mise à jour de logiciel d'un circuit électronique pour un véhicule |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2719924B1 (fr) | 1994-05-11 | 1996-08-14 | Peugeot | Procédé de déverrouillage de l'accès d'un outil de téléchargement d'un fichier, à un calculateur. |
CN108701340A (zh) * | 2016-01-22 | 2018-10-23 | 2236008安大略有限公司 | 更新交通工具中的控制器单元 |
JP2019036238A (ja) | 2017-08-21 | 2019-03-07 | 株式会社東芝 | 更新制御装置、端末、更新制御方法およびプログラム |
-
2020
- 2020-07-01 CN CN202080053253.9A patent/CN114144759A/zh active Pending
- 2020-07-01 WO PCT/FR2020/051149 patent/WO2021014064A1/fr active Application Filing
- 2020-07-01 EP EP20746261.5A patent/EP4004712A1/fr not_active Withdrawn
Also Published As
Publication number | Publication date |
---|---|
WO2021014064A1 (fr) | 2021-01-28 |
CN114144759A (zh) | 2022-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160306624A1 (en) | Vehicle control storage methods and systems | |
FR2937437A1 (fr) | Procede de fonctionnement d'un equipement embarque, equipement associe et aeronef comprenant un tel equipement | |
FR3096153A1 (fr) | Procédé et dispositif de retour à un état précédent une mise à jour logicielle d’un calculateur d’un véhicule à distance | |
EP4127911A1 (fr) | Dispositifs et procédé de contrôle d'unités de commande électroniques d'un véhicule automobile | |
CN107102849B (zh) | 用于周期性点火开关断开的文件替换的方法和设备 | |
WO2021014064A1 (fr) | Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution, une mémoire de sauvegarde et une mémoire de contrôle | |
US20220107929A1 (en) | System and Method Implementing a Distributed Audit Trail | |
EP4118548A1 (fr) | Procédé et dispositif de mise à jour d'un logiciel comportant des adresses physiques vers la mémoire d'un calculateur embarqué d'un véhicule | |
EP4066103A1 (fr) | Procédé de mise à jour de système numérique | |
CN113885929A (zh) | 高精度地图的远程升级方法 | |
EP4217852A1 (fr) | Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution, une mémoire de sauvegarde et une mémoire de contrôle | |
FR3099265A1 (fr) | Procédé et dispositif de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution, une mémoire de sauvegarde et une mémoire de contrôle | |
FR3099264A1 (fr) | Procédé et dispositif de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution et une mémoire de sauvegarde | |
FR3114415A1 (fr) | Procédé et dispositif de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution et une mémoire de sauvegarde | |
EP4018347A1 (fr) | Procédé et dispositif de mise à jour d'un logiciel d'un calculateur embarqué d'un véhicule, comportant une mémoire d'exécution et une mémoire de sauvegarde | |
CN117407020A (zh) | Ota升级刷写方法、装置、电子设备及存储介质 | |
WO2020165518A1 (fr) | Procédé de mise à jour d'un calculateur automobile de façon à lui ajouter une fonctionnalité supplémentaire | |
WO2021023694A1 (fr) | Procédé d'écriture dans une zone de données sécurisée d'un calculateur sur bus embarqué de véhicule | |
EP3991029A1 (fr) | Procédé de dialogue avec un calculateur sur bus embarqué de véhicule | |
WO2024121096A1 (fr) | Unite de commande electronique pour vehicule comprenant une boite noire transactionnelle, et procede de fonctionnement d'une telle unite de commande electronique | |
FR3100638A1 (fr) | Procédé et dispositif de mise à jour d’un calculateur cible à partir d’un script interprété | |
FR2903791A1 (fr) | Procede de telechargement d'un module logiciel. | |
FR3111447A1 (fr) | Gestion de versions de logiciels embarqués à partir d’une empreinte informatique | |
CN118400266A (zh) | 车辆远程升级方法、装置、设备、介质和程序产品 | |
FR3029048A1 (fr) | Procede de communication entre un outil de production et un vehicule automobile |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: UNKNOWN |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
17P | Request for examination filed |
Effective date: 20220113 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
DAV | Request for validation of the european patent (deleted) | ||
DAX | Request for extension of the european patent (deleted) | ||
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: EXAMINATION IS IN PROGRESS |
|
17Q | First examination report despatched |
Effective date: 20230731 |
|
RAP3 | Party data changed (applicant data changed or rights of an application transferred) |
Owner name: STELLANTIS AUTO SAS |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 20231212 |