FR3099265A1 - Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory - Google Patents

Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory Download PDF

Info

Publication number
FR3099265A1
FR3099265A1 FR1908403A FR1908403A FR3099265A1 FR 3099265 A1 FR3099265 A1 FR 3099265A1 FR 1908403 A FR1908403 A FR 1908403A FR 1908403 A FR1908403 A FR 1908403A FR 3099265 A1 FR3099265 A1 FR 3099265A1
Authority
FR
France
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.)
Granted
Application number
FR1908403A
Other languages
French (fr)
Other versions
FR3099265B1 (en
Inventor
Francois Rochette
Thierry Lopez
Pierre Schmidt
Emmanuel Georges
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.)
Stellantis Auto Sas Fr
Original Assignee
PSA Automobiles SA
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 PSA Automobiles SA filed Critical PSA Automobiles SA
Priority to FR1908403A priority Critical patent/FR3099265B1/en
Priority to EP20746261.5A priority patent/EP4004712A1/en
Priority to CN202080053253.9A priority patent/CN114144759A/en
Priority to PCT/FR2020/051149 priority patent/WO2021014064A1/en
Publication of FR3099265A1 publication Critical patent/FR3099265A1/en
Application granted granted Critical
Publication of FR3099265B1 publication Critical patent/FR3099265B1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Abstract

L’invention concerne un procédé de mise à jour d’un logiciel d’un véhicule, comportant des mémoires d’exécution (ME), de sauvegarde (MS) et de contrôle (MC) comportant des étapes de : - Emission d’une requête commandant une écriture en mémoire de contrôle (MC) d’au moins un bloc de logiciel mis à jour (B’,C’), - Emission d’une requête commandant une vérification dudit au moins un bloc de logiciel mis à jour (B’,C’) stocké en mémoire de contrôle (MC), - Emission d’une requête commandant la copie depuis la mémoire d’exécution (ME) vers la mémoire de sauvegarde (MS) de la pluralité de blocs (A, B, C), - Emission d’une requête commandant la copie depuis la mémoire de contrôle (MC) vers la mémoire d’exécution (ME) dudit au moins un bloc de logiciel mis à jour (B’,C’), - Emission d’une requête commandant une vérification de l’intégrité des blocs (A,B’,C’) de logiciel de la mémoire d’exécution (ME). Figure pour l’abrégé : Figure 5The invention relates to a method for updating software for a vehicle, comprising execution (ME), backup (MS) and control (MC) memories comprising steps of: - Issuing a request controlling a writing in the control memory (MC) of at least one updated software block (B ', C'), - Sending of a request controlling a verification of said at least one updated software block ( B ', C') stored in control memory (MC), - Sending of a request commanding the copy from the execution memory (ME) to the backup memory (MS) of the plurality of blocks (A, B , C), - Sending of a request commanding the copy from the control memory (MC) to the execution memory (ME) of said at least one updated software block (B ', C'), - Sending a request controlling a check of the integrity of the software blocks (A, B ', C') of the execution memory (ME). Figure for the abstract: Figure 5

Description

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ôleMethod and device for updating software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory

L’invention concerne la mise à jour logicielle d’un ou plusieurs calculateurs d’un véhicule automobile réalisée à distance d’un outil de diagnostic aussi appelée mise à jour OTA (pour Over The Air).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 OTA update (for Over The Air).

Arrière-plan technologiqueTechnology background

Dans la suite de la description, lorsque le fichier à télécharger contient des instructions ou le code exécutable d'un logiciel, on parlera également de téléchargement d'un logiciel.In the remainder of the description, when the file to be downloaded contains instructions or the executable code of software, reference will also be made to downloading software.

La complexité croissante de la fonction électronique embarquée entraîne une multiplication des boîtiers électroniques (ou calculateurs) montés sur les véhicules automobiles.The increasing complexity of the on-board electronic function leads to a proliferation of electronic boxes (or computers) mounted on motor vehicles.

Afin de limiter la diversité qui en résulte, il a été décidé de reporter lorsque cela est possible la diversité matérielle sur le logiciel et de pratiquer un téléchargement de ces calculateurs. L'opération est réalisée moyennant un outil débarqué qui se connecte sur la prise diagnostic du véhicule et permet de programmer dans la mémoire du ou des calculateurs le logiciel qui assure un fonctionnement conforme du véhicule produit en prenant en compte les caractéristiques (motorisation, options) propres à ce véhicule.In order to limit the resulting diversity, it was decided to transfer the hardware diversity to the software whenever possible and to download these computers. The operation is carried out using an off-board tool which connects to the vehicle's diagnostic socket and allows the software to be programmed in the memory of the computer(s) which ensures correct operation of the vehicle produced, taking into account the characteristics (engine, options) unique to this vehicle.

La communication entre l'outil et le ou les calculateurs fait généralement usage soit de la technologie CAN 500kbps connue de l’état de l’art actuel ou de la technologie Ethernet 100 Mbits/s en cours de déploiement dans le monde automobile afin de transférer les données à programmer.Communication between the tool and the ECU(s) generally makes use either of the CAN 500kbps technology known from the current state of the art or of the 100 Mbits/s Ethernet technology currently being deployed in the automotive world in order to transfer the data to be programmed.

On connaît déjà dans l'état de la technique des procédés et des systèmes de téléchargement de fichiers dans des calculateurs embarqués à bord de véhicules automobiles, tels que ceux décrits par exemple dans le document FR-A-2719924. Ce document détaille les différentes étapes successives de la procédure utilisée lors de l'assemblage des véhicules ou dans le réseau après-vente d'un constructeur, lors de la correction d'une prestation par échange de fichier.Methods and systems for downloading files into computers on board motor vehicles are already known in the state of the art, such as those described for example in the document FR-A-2719924. This document details the different successive stages of the procedure used during the assembly of vehicles or in the after-sales network of a manufacturer, during the correction of a service by file exchange.

Cependant, dans le but de rendre les véhicules toujours plus sûrs pour leurs clients, les constructeurs automobiles envisagent de pouvoir réaliser certaines mises à jour directement chez le client final, à l’image de ce qui existe déjà dans le domaine du consumériste pour un PC ou un smartphone par exemple. En effet, les moyens de connectivité présents dans les véhicules permettent déjà d’échanger déjà de nombreuses informations avec l’extérieur (informations de trafic, de navigation, de données pour la réparation ou pour les assureurs, …) et ces échanges sont en pleine expansion. Il en résulte une demande accrue pour la protection des données clients, mais aussi pour une protection importante de ces véhicules compte tenu des possibilités de cyber-attaque et du risque encouru sur la sécurité routière. En effet, lors de la détection d’une attaque de ce type et de la disponibilité d’un « patch » correctif (un logiciel ou module logiciel) en mesure d’en supprimer ou d’en réduire les risques, la vitesse à laquelle cette correction peut être installée revêt sans aucun doute un aspect primordial. Dans ce cas, une mise à jour OTA peut permettre de gagner beaucoup de temps en comparaison d’un rappel organisé des véhicules dans le garage du réseau agrée ou indépendant.However, with the aim of making vehicles ever safer for their customers, car manufacturers are planning to be able to carry out certain updates directly at the end customer, similar to what already exists in the consumer field for a PC. or a smartphone for example. In fact, the means of connectivity present in the vehicles already make it possible to exchange a great deal of information with the outside world (traffic information, navigation information, data for repairs or for insurers, etc.) and these exchanges are in full swing. expansion. This results in an increased demand for the protection of customer data, but also for significant protection of these vehicles given the possibilities of cyber-attack and the risk to road safety. Indeed, upon detection of an attack of this type and the availability of a corrective "patch" (software or software module) capable of removing or reducing the risks, the speed at which this fix can be installed is undoubtedly of paramount importance. In this case, an OTA update can save a lot of time compared to an organized recall of vehicles in the garage of the approved or independent network.

Pour pouvoir réaliser ce type d’opération directement chez le client final, il convient néanmoins de prendre en considérations plusieurs aspects qui ajoutent à la complexité de cette opération.To be able to carry out this type of operation directly with the end customer, it is nevertheless necessary to take into consideration several aspects which add to the complexity of this operation.

La mise à jour du logiciel d’un calculateur d’une automobile peut dans certains cas la rendre indisponible ou encore induire des conséquences importantes tant pour les occupants du véhicule que pour son environnement. C’est la raison pour laquelle la mise à jour en OTA de certains calculateurs et en particulier ceux qui sont associés à la dynamique du véhicule nécessitent un mécanisme appelé Rollback (ou retour en arrière, ou encore retour à un état précédent) qui permet de revenir à la configuration logicielle antérieure dans le cas de la détection d’un problème survenue pendant la mise à jour du logiciel d’un ou plusieurs calculateurs du véhicule.Updating the software of an automobile computer can in some cases make it unavailable or even have major consequences for both the occupants of the vehicle and its environment. This is the reason why the OTA update of certain ECUs and in particular those associated with vehicle dynamics require a mechanism called Rollback (or backtracking, or even returning to a previous state) which makes it possible to return to the previous software configuration in the event of the detection of a problem occurring during the update of the software of one or more computers of the vehicle.

Ce type de problème peut intervenir par exemple dans le cas où le calculateur destinataire essaye d’écrire une valeur sur une cellule mémoire corrompue par exemple, ou dans le cas d’une erreur de transmission due par exemple à un champ électromagnétique, ou d’autres cas encore.This type of problem can occur, for example, in the case where the destination computer tries to write a value to a corrupted memory cell, for example, or in the case of a transmission error due, for example, to an electromagnetic field, or still other cases.

Un tel type de problème est généralement détecté par le calculateur destinataire (par exemple au moyen d’une vérification d’un CRC Cyclic Redoundancy Check dans le cas d’une réception erronée). Dans ce cas, une information sera transmise au calculateur maitre pour demander l’exécution du processus de rollback.Such a type of problem is generally detected by the destination computer (for example by means of a verification of a CRC Cyclic Redoundancy Check in the case of an erroneous reception). In this case, information will be transmitted to the master computer to request the execution of the rollback process.

On connait par exemple par le document US20190057214 un dispositif de commande de mise à jour comprend une première unité de communication, une seconde unité de communication, et une unité de commande. La première unité de communication est configurée pour recevoir des données de patch pour chaque bloc des logiciels et des premières données d'authentification pour chaque bloc d'authentification d'un logiciel dans un terminal mis à jour en utilisant les données de patch sur une base par bloc.For example, 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 a terminal updated using the patch data on a per block.

L'unité de commande est configurée pour demander au terminal d'effectuer un rollback pour restauration d’un premier bloc à un (M-1) ième bloc en utilisant les données de patch à réception d'un résultat de mise jour indiquant une défaillance dans une authentification d’un bloc Mième (M> 1).The control unit is configured to request the terminal to perform a rollback for restoring 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).

Malgré toutes ces précautions et ces systèmes de vérifications, il reste possible que certains cas de mauvais fonctionnement ne puissent pas être détectés à l’issue de la mise à jour OTA.Despite all these precautions and these verification systems, it is still possible that certain cases of malfunction cannot be detected after the OTA update.

Un objet de la présente invention est de proposer une solution pour remettre rapidement à un état précédent une mise à jour logicielle un calculateur d’un véhicule en particulier lorsqu’un fichier de mis à jour est corrompu.An object of the present invention is to propose a solution for quickly restoring a software update to a previous state of a computer of a vehicle in particular when an update file is corrupted.

L’invention concerne en particulier un procédé de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution (ME) dans laquelle sont stockés une pluralité de blocs (A, B, C) d’un logiciel courant, une mémoire de sauvegarde (MS) et une mémoire de contrôle (MC), caractérisé en ce qu’il comporte des étapes de :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 are stored a plurality of blocks (A, B, C) of current software, a backup memory (MS) and a control memory (MC), characterized in that it comprises steps of:

- Emission (312) d’une requête commandant une écriture en mémoire de contrôle (MC) d’au moins un bloc de logiciel mis à jour (B’,C’),- Emission (312) of a request commanding a writing in control memory (MC) of at least one updated software block (B', C'),

- Emission (313) d’une requête commandant une vérification dudit au moins un bloc de logiciel mis à jour (B’,C’) stocké en mémoire de contrôle (MC),- Emission (313) of a request ordering a verification of said at least one updated software block (B′, C′) stored in the control memory (MC),

- Emission (322) d’une requête commandant la copie depuis la mémoire d’exécution (ME) vers la mémoire de sauvegarde (MS) de la pluralité de blocs (A, B, C) du logiciel courant,- Emission (322) of a request ordering the copy from the execution memory (ME) to the backup memory (MS) of the plurality of blocks (A, B, C) of the current software,

- Emission (332) d’une requête commandant la copie (332) depuis la mémoire de contrôle (MC) vers la mémoire d’exécution (ME) dudit au moins un bloc de logiciel mis à jour (B’,C’),- Emission (332) of a request ordering the copy (332) from the control memory (MC) to the execution memory (ME) of said at least one updated software block (B', C'),

- Emission (333) d’une requête commandant une vérification de l’intégrité des blocs (A,B’,C’) de logiciel de la mémoire d’exécution (ME),- Emission (333) of a request ordering a verification of the integrity of the software blocks (A,B',C') of the execution memory (ME),

Et si une erreur est détectée alors :And if an error is detected then:

- Emission (400) d’une requête commandant un retour à un état précédent la mise à jour comportant une copie (403) depuis la mémoire de sauvegarde (MS) vers la mémoire d’exécution (ME) de la pluralité de blocs du logiciel courant (A, B, C).- Emission (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 software blocks current (A, B, C).

L’invention a pour avantage lorsqu’un test d’intégrité des données reçues abouti à un échec, de permettre d’interrompre sans délai la procédure d’installation et de relancer immédiatement le logiciel initial car la mémoire d’exécution (Executing Memory) n’a pas encore été modifiée.The advantage of the invention, when a test of the integrity of the data received ends in failure, is that it allows the installation procedure to be interrupted without delay and the initial software to be restarted immediately because the execution memory (Executing Memory) has not yet been modified.

L’invention offre donc un gain de temps mais aussi une sécurité renforcée dans la mesure où elle élimine des risques supplémentaires de corruption des données inévitablement liées aux opérations successives de génération de blocs de logiciel courant dans les solutions de l’état de la technique.The invention therefore offers a time saving but also enhanced security insofar as it eliminates additional risks of data corruption inevitably linked to the successive operations of generating blocks of software common in the solutions of the state of the art.

En utilisant une mémoire de vérification supplémentaire, la probabilité de devoir exécuter un Rollback est plus faible qu’avec les autres solutions connues dans l’état de l’art. Ceci diminue considérablement le risque d’échec lors de l’exécution du retour à la configuration n-1 du véhicule.By using an additional verification memory, the probability of having to execute a Rollback is lower than with other known solutions in the state of the art. This considerably decreases the risk of failure when performing the return to the n-1 configuration of the vehicle.

Avantageusement, le procédé de mise à jour d’un logiciel d’un calculateur selon l’invention comporte en outre une étape d’émission d’une requête commandant audit calculateur d’effacer la mémoire de contrôle, préalablement à l’émission de la requête commandant l’écriture en mémoire de contrôle d’au moins un bloc de logiciel mis à jour.Advantageously, the method for updating software of a computer according to the invention further comprises a step of sending a request ordering said computer to erase the control memory, prior to the sending of the request commanding the writing in control memory of at least one updated block of software.

Avantageusement, le procédé de mise à jour d’un logiciel d’un calculateur selon l’invention comporte en outre une étape d’émission d’une requête commandant audit calculateur d’effacer la mémoire de sauvegarde, préalablement à l’émission de la requête commandant la copie depuis la mémoire d’exécution vers la mémoire de sauvegarde de la pluralité de blocs du logiciel courant.Advantageously, the method for updating computer software according to the invention further comprises a step of sending a request ordering said computer to erase the backup memory, prior to sending the request controlling the copy from the execution memory to the backup memory of the plurality of blocks of the current software.

Avantageusement, le procédé de mise à jour d’un logiciel d’un calculateur selon l’invention comporte en outre une étape d’émission d’une requête commandant audit calculateur de vérifier l’intégrité de la pluralité de blocs du logiciel courant dans la mémoire de sauvegarde.Advantageously, the method for updating software of a computer according to the invention further comprises a step of sending a request ordering said computer to check the integrity of the plurality of blocks of the current software in the backup memory.

Avantageusement, le procédé de mise à jour d’un logiciel d’un calculateur selon l’invention comporte en outre une étape d’émission d’une requête commandant audit calculateur d’effacer de la mémoire d’exécution les blocs de logiciels à mettre à jour.Advantageously, the method for updating software of a computer according to the invention further comprises a step of sending a request ordering said computer to erase from the execution memory the software blocks to be updated. up to date.

Avantageusement, l’étape de retour à un état précédent la mise à jour comporte en outre une étape préalable d’effacement de la mémoire d’exécution du calculateur et une étape de vérification de l’intégrité de la pluralité de blocs du logiciel courant dans la mémoire d’exécution.Advantageously, the step of returning to a state prior to the update further comprises a prior 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 execution memory.

Avantageusement, l’étape de retour à un état précédent la mise à jour comporte en outre une étape d’arrêt de la mise à jour comportant une commande de retour à un état précédent la mise à jour à d’autres calculateurs concernés par ladite mise à jour.Advantageously, the step of returning to a state prior to the update further comprises a step of stopping the update comprising a command to return to a state prior to the update to other computers affected by said update. up to date.

L’invention concerne aussi un dispositif de mise à jour d’un logiciel d’un calculateur, ledit dispositif comprenant une mémoire associée à au moins un processeur configuré pour mettre en œuvre les étapes du procédé selon l’invention.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.

L’invention concerne aussi un véhicule caractérisé en ce qu’il comporte un dispositif de mise à jour d’un logiciel d’un calculateur selon l’invention.The invention also relates to a vehicle characterized in that it comprises a device for updating software of a computer according to the invention.

Brève description des figuresBrief description of figures

D’autres caractéristiques et avantages de l’invention ressortiront de la description des modes de réalisation non limitatifs de l’invention ci-après, en référence aux figures annexées, sur lesquelles :Other characteristics and advantages of the invention will emerge from the description of the non-limiting embodiments of the invention below, with reference to the appended figures, in which:

illustre de façon schématique un système, selon un exemple de réalisation particulier de la présente invention ; schematically illustrates a system, according to a particular embodiment of the present invention;

illustre de façon schématique un calculateur, selon un exemple de réalisation particulier de la présente invention; schematically illustrates a computer, according to a particular embodiment of the present invention;

illustre schématiquement un procédé de mise à jour, selon un exemple de réalisation particulier de la présente invention. schematically illustrates an updating method, according to a particular embodiment of the present invention.

illustre schématiquement des sous-étapes d’une étape de remise à un état précédent une mise à jour, selon un exemple de réalisation particulier de la présente invention. schematically illustrates sub-steps of a step of resetting to a state prior to an update, according to a particular embodiment of the present invention.

illustre un exemple des états successifs de mémoires d’un calculateur au cours d’une mise à jour. illustrates an example of the successive states of a computer's memories during an update.

DESCRIPTION D’EXEMPLES DE REALISATION DE L’INVENTIONDESCRIPTION OF EXAMPLES OF EMBODIMENT OF THE INVENTION

L’invention a notamment pour objet un procédé permettant la mise à jour, via une communication filaire ou une communication sans fils, d’un calculateur embarqué muni d’une mémoire externe de capacité double de la mémoire d’exécution. En cas d’échec pendant l’opération de mise à jour du logiciel, la procédure prévoit une opération de Rollback qui permet de revenir à la version n-1 pour que le véhicule puisse retrouver sa fonctionnalité.The subject of the invention is in particular a method allowing the updating, via a wired communication or a wireless communication, of an on-board computer equipped with an external memory of double capacity of the execution memory. In the event of failure during the software update operation, 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.

En référence à la figure 1, le système selon l’invention comporte un véhicule 101 connecté à un serveur 102 de mise à jour distant.Referring to Figure 1, the system according to the invention comprises a vehicle 101 connected to a remote update server 102.

Le véhicule 101 comprend une pluralité de calculateurs ECU1, ECU2, ECU3 dont une unité de communication embarquée qui communique avec le serveur 102, par l'intermédiaire d'une connexion sans fil. Typiquement, la connexion ou liaison sans fil est une connexion par ondes radio (3G, 4G,…).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. Typically, the wireless connection or link is a connection by radio waves (3G, 4G, etc.).

Les calculateurs ECU1, ECU2, ECU3 communiquent entre eux par l’intermédiaire d’un bus de données 104 (par exemple de type CAN).The computers ECU1, ECU2, ECU3 communicate with each other via a data bus 104 (for example of the CAN type).

Le serveur débarqué 102 est par exemple un calculateur générique comportant au moins une mémoire et un processeur.The off-board server 102 is for example a generic computer comprising at least one memory and one processor.

Le véhicule 101 et le serveur débarqué 102 communique via un réseau étendu 105 tel que un réseau de communication fixe 103 (ou WAN pour "Wide Area Network"), par exemple le réseau Internet auquel véhicule se connecte par une liaison sans fil (3G, 4G,…).The vehicle 101 and the off-board server 102 communicate via an extended network 105 such as a fixed communication network 103 (or WAN for "Wide Area Network"), for example the Internet network to which the vehicle connects via a wireless link (3G, 4G,…).

Le calculateur ECU1 aussi appelé calculateur de gestion de mise à jour (ou encore FOTA Master – pour Full Over-The-Air) qui permet la mise à jour des calculateurs ECU2 à ECU3, dispose à cet effet des mécanismes capables de transférer les fichiers de données reçues en trames attendues par les calculateurs ECU2, ECU3 destinataires pour installer leur logiciel. A noter que le calculateur jouant le rôle de FOTA master dans un véhicule peut ou non être le même calculateur que celui qui dispose des fonctions de communication sans fils.The ECU1 computer also called update management computer (or FOTA Master – for Full Over-The-Air) which allows the updating of the ECU2 to ECU3 computers, has for this purpose mechanisms capable of transferring the files from data received in frames expected by the destination computers ECU2, ECU3 to install their software. Note that the computer playing the role of FOTA master in a vehicle may or may not be the same computer as the one with the wireless communication functions.

Un opérateur via un terminal 107 peut réaliser les vérifications et transmet des instructions à distance au véhicule 101. Ces instructions sont transmises au véhicule 101 par voie d’onde qui peut être de la 4G, du WIFI ou toute autre technologie de communication sans fil à venir.An operator via a terminal 107 can carry out the checks and transmits instructions remotely 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 to come.

Les calculateurs ECU1, ECU2, ECU3 peuvent être mis à jour dans un garage. La mise à jour d’un logiciel dans un garage répond à une procédure spécifique (cas 1 de la figure 1) au cours de laquelle, l’opérateur devient responsable du véhicule qui lui a été confié. A cet égard, il place le véhicule dans un environnement « safe and secure » avant de lancer cette opération à partir d’un outil 106 branché sur une prise dédiée 108 du véhicule 101 Puis une fois l’opération terminée, il effectue certains contrôles afin de s’assurer de son bon fonctionnement. En cas de problème détecté, soit lors du déroulement de la procédure ou après la mise à jour, le technicien prendra les mesures nécessaires à la correction de l’anomalie (nouvel essai, changement de pièce, …) avant de restituer le véhicule au client. Le garagiste est donc à ce titre un maillon important de la chaine safety mais est aussi en charge de s’assurer de la qualité de l’opération réalisée.The ECU1, ECU2, ECU3 computers can be updated in a garage. Updating software in a garage responds to a specific procedure (case 1 in figure 1) during which the operator becomes responsible for the vehicle entrusted to him. In this respect, he 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 finished, he carries out certain checks in order to to ensure its proper functioning. In the event of a problem being detected, either during 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 customer. . The mechanic is therefore an important link in the safety chain but is also in charge of ensuring the quality of the operation carried out.

Lors d’une mise à jour OTA chez un client (cas 2 de la figure 1), rien de tout cela n’est possible et il convient donc d’ajouter dans chaque calculateur un mécanisme permettant de revenir à la version antérieure en cas de problème.During an OTA update at a customer's (case 2 in figure 1), none of this is possible and it is therefore necessary to add in each computer a mechanism making it possible to return to the previous version in the event of issue.

Pour réaliser les opérations décrites dans cette proposition de brevet, le FOTA master communique avec le calculateur cible via le réseau de communication disponible dans le véhicule (par exemple CAN, Ethernet ou autre). Il utilise pour cela un protocole de communication dédié, comme par exemple, le protocole UDS (norme ISO14229) couramment employé pour réaliser le diagnostic ou le téléchargement du logiciel des calculateurs embarqués dans les véhicules automobiles.To carry out the operations described in this patent proposal, the FOTA master communicates with the target computer via the communication network available in the vehicle (for example CAN, Ethernet or other). For this, it uses a dedicated communication protocol, such as, for example, the UDS protocol (ISO14229 standard) commonly used to carry out diagnostics or to download the software of on-board computers in motor vehicles.

En référence à la figure 2, le calculateur 200 selon l’invention comporte :Referring to Figure 2, the computer 200 according to the invention comprises:

- un microcontrôleur 201 comprenant muni d’une mémoire Flash ME, d’une taille donnée N, utilisée pour exécuter le logiciel téléchargé et nommée mémoire d’exécution ME (ou Executing Memory en anglais),- a microcontroller 201 comprising provided with a Flash memory ME, of a given size N, used to execute the downloaded software and named execution memory ME (or Executing Memory in English),

- Une mémoire de sauvegarde MS (ou Backup Memory en anglais), d’une taille au moins égale à la taille donnée N, utilisée comme mémoire de sauvegarde permettant de revenir à la version précédente du logiciel en cas de problème lors de l’installation,- 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 installation ,

- Une mémoire de contrôle MC (ou Checking Memory en anglais), d’une taille au moins égale à la taille donnée N, utilisée pour vérifier l’intégrité du nouveau logiciel reçu par méthode filaire ou OTA avant même de lancer toute modification du contenu de la mémoire d’exécution.- 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 wired or OTA method even before launching any modification of the content execution memory.

Selon première variante de l’invention, la mémoire de sauvegarde MS et la mémoire de contrôle MC appartiennent à une mémoire Flash externe 205, d’une taille au moins égale à deux fois la taille donnée N.According to the first variant of the invention, 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.

La mémoire Flash externe est liée au microcontrôleur par exemple par un bus 206 SPI (Serial Peripheral Interface), mais il pourrait s’agir d’une autre liaison de données.The external Flash memory is linked to the microcontroller for example by a 206 SPI (Serial Peripheral Interface) bus, but it could be another data link.

Ce bus peut être remplacé par toute autre technologie de bus de communication dont le débit d’échange de données est suffisant pour que l’installation du nouveau logiciel soit réalisée dans un délai raisonnable vu du client. De façon avantageuse, les données échangées entre la mémoire interne et la mémoire externe sont chiffrées, de façon à améliorer la sécurité de la mise à jour.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 carried out within a reasonable time, seen by the customer. Advantageously, the data exchanged between the internal memory and the external memory are encrypted, so as to improve the security of the update.

Selon une deuxième variante de l’invention, la mémoire de sauvegarde MS et la mémoire de contrôle MC peuvent être intégrées dans la mémoire du microcontrôleur 201. Cette variante a pour avantage de ne pas avoir besoin de chiffrer les données lors d’une copie d’une mémoire à l’autre. En outre, cette variante permet de se passer composants additionnels utilisés pour gérer la communication avec une mémoire externe. Par contre cette variante implique d’utiliser un microcontrôleur disposant d’une mémoire interne de taille au moins double de la taille maximale du logiciel.According to a second variant of the invention, 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 one memory to another. In addition, this variant makes it possible to dispense with additional components used to manage communication with an external memory. On the other hand, this variant involves using a microcontroller with an internal memory of a size at least twice the maximum size of the software.

On va maintenant présenter le procédé selon l’invention à l’appui de la figure 3, illustrant des étapes dudit procédé et de la figure 5, montrant un exemple de mise en œuvre dudit procédé.We will now present the method according to the invention in support of Figure 3, illustrating steps of said method and Figure 5, showing an example of implementation of said method.

Dans l’exemple de la figure 5, le calculateur à mettre à jour 200, ou calculateur cible, dispose d’un logiciel dans sa mémoire d’exécution ME. Ce logiciel est composé de 3 blocs de données A, B et C.In the example of FIG. 5, the computer to be updated 200, or target computer, has software in its execution memory ME. This software is made up of 3 data blocks A, B and C.

Le procédé selon l’invention comporte :The method according to the invention comprises:

Une première phase 310 au cours de laquelle : les données de mise à jour (blocs B’ et C’ dans l’exemple) contenues dans le fichier à télécharger sont transmises au calculateur cible 200 (via une communication filaire ou une communication sans fils) et sont placées dans la mémoire de contrôle MC afin de vérifier leur intégrité. Ceci permet de ne pas altérer le logiciel actuellement dans la mémoire d’exécution ME.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 target computer 200 (via a wired communication or a wireless communication) and are placed in the control memory MC in order to verify their integrity. This makes it possible not to alter the software currently in the ME execution memory.

Une deuxième phase 320 au cours de laquelle : la totalité du contenu de la mémoire d’exécution ME est dupliqué dans la mémoire de sauvegarde MS afin de conserver une copie du logiciel d’origine.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.

Une troisième phase 330 au cours laquelle : les blocs de données contenus dans la mémoire de contrôle MC, blocs B’ et C’ dans l’exemple, sont recopiés dans la mémoire d’exécution ME afin de remplacer les blocs de l’ancien logiciel (blocs B et C dans l’exemple). Les blocs de données non concernés par la mise à jour ne sont pas modifiés (bloc A dans l’exemple).A third phase 330 during which: the blocks of data 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).

Une quatrième phase, dite de Rollback, exécutée en cas d’échec de l’installation au cours de laquelle la totalité du contenu de la mémoire de sauvegarde MS est recopiée dans la mémoire d’exécution ME afin de revenir au logiciel initial.A fourth phase, called Rollback, executed in the event of installation failure during which the entire content of the backup memory MS is copied into the execution memory ME in order to return to the initial software.

Avantageusement, avant la mise à jour du calculateur cible, le FOTA master place le calculateur 200 dans un état dédié à la programmation (où le fonctionnel est désactivé) en utilisant une requête d’entrée en session reprogrammation. Le calculateur cible 200 accepte d’exécuter cette requête uniquement si les conditions sécuritaires sont remplies (ex : véhicule à l’arrêt, chaîne de traction désactivée, etc.)Advantageously, before the update of the target computer, 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 agrees to execute this request only if the security conditions are met (eg: vehicle stationary, traction chain deactivated, etc.)

En session reprogrammation, le FOTA master communique directement avec le logiciel de boot du calculateur cible 200. En fonction des requêtes envoyées par le FOTA master, le logiciel de boot du calculateur peut exécuter différentes opérations (écriture, copie, contrôle d’intégrité) sur l’une des trois mémoires dont il dispose (mémoire d’exécution ME, mémoire de sauvegarde MS ou mémoire de contrôle MC). La figure 3 décrit une succession d’actions à réaliser par le FOTA master pour installer un nouveau logiciel dans le calculateur cible 200.In a reprogramming session, the FOTA master communicates directly with the boot software of the target computer 200. Depending on the requests sent by the FOTA master, the computer boot software can perform various operations (write, copy, integrity check) on one of the three memories it has (execution memory ME, backup memory MS or control memory MC). Figure 3 describes a succession of actions to be performed by the FOTA master to install new software in the target computer 200.

Avant l’exécution du procédé de mise à jour selon l’invention, le calculateur cible 200 se trouve dans un premier état 501, dit état initial, dans lequel : la mémoire d’exécution ME comporte trois blocs d’un logiciel courant.Before the execution of the update method according to the invention, 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.

Avantageusement, la première phase 310 comporte les étapes suivantes :Advantageously, the first phase 310 comprises the following steps:

Dans une première étape 311, le FOTA master envoie une requête pour demander au calculateur cible d’effacer la mémoire de contrôle MC.In a first step 311, the FOTA master sends a request to ask the target computer to erase the control memory MC.

Dans une deuxième étape 312, le FOTA master écrit les données reçues du serveur distant (par la communication filaire ou sans fils) dans la mémoire de contrôle MC du calculateur cible 200 à l’aide de requête dédiées. Cette opération est réitérée pour chaque bloc de donnée à mettre à jour.In a second step 312, the FOTA master writes the data received from the remote server (via wired or wireless communication) into the control memory MC of the target computer 200 using dedicated requests. This operation is repeated for each block of data to be updated.

Dans le mode de réalisation selon lequel la mémoire de contrôle MC est dans une mémoire externe 205, c’est le logiciel de boot du calculateur cible qui gère de manière transparente pour le FOTA master les échanges réalisés sur le bus de communication 206 (par exemple de type SPI) entre le microcontrôleur 201 et sa mémoire externe 205.In the embodiment according to which the control memory MC is in an external memory 205, it is the boot software of the target computer which manages transparently for the FOTA master the exchanges carried out on the communication bus 206 (for example SPI type) between the microcontroller 201 and its external memory 205.

Dans une troisième étape 313, le FOTA master envoie une requête pour demander au calculateur cible 200 de contrôler l’intégrité des données copiées dans la mémoire de contrôle MS. Cette vérification peut être réalisée à l’aide d’un CRC Cyclic Redoundancy Check ou toute autre méthode connue de l’état de l’art (exemple : calcul, à l’aide d’une fonction de hachage, d’un « condensat » du contenu des données téléchargées dans le calculateur cible, et comparaison du résultat avec une valeur de référence transmise au préalable par le FOTA master). Si la mémoire est composée de plusieurs blocs de données, chaque bloc dispose de son propre mécanisme de contrôle d’intégrité (basé sur la même méthode ou des méthodes différentes).In a third step 313, 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 verification can be carried out using a CRC Cyclic Redoundancy Check or any other known state-of-the-art method (example: calculation, using a hash function, of a "condensate » of the content of the data downloaded into the target computer, and comparison of the result with a reference value transmitted beforehand by the FOTA master). If the memory is composed of several data blocks, each block has its own integrity checking mechanism (based on the same method or different methods).

En cas d’échec lors d’une des première 311, deuxième 312 ou troisième 313 étape, le FOTA master reçoit une réponse négative de la part du calculateur cible 200. Dans ce cas, le FOTA master abandonne le déroulement normal de la procédure d’installation pour exécuter une procédure d’arrêt de l’installation 314.In the event of failure during one of the first 311 , second 312 or third 313 steps, the FOTA master receives a negative response from the target computer 200. In this case, the FOTA master abandons the normal running of the procedure. installation to execute a procedure for stopping the installation 314.

A l’issue de la première phase 310, le calculateur cible 200 se trouve dans un deuxième état 502 dans lequel : la mémoire d’exécution ME comporte trois blocs d’un logiciel courant A, B, C et la mémoire de contrôle MC comporte les blocs de logiciel mis à jour B’, C’ issus du fichier de mise à jour 510.At the end of the first phase 310, 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 update file 510.

Avantageusement, la deuxième phase 320 comporte les étapes suivantes.Advantageously, the second phase 320 includes the following steps.

Dans une quatrième étape 321, le FOTA master envoie une requête pour demander au calculateur 200 d’effacer la totalité de la mémoire de sauvegarde MS.In a fourth step 321, the FOTA master sends a request to ask the computer 200 to erase the entire backup memory MS.

Dans une cinquième étape 322, le FOTA master envoie une requête pour demander au calculateur cible 200 de copier la totalité du contenu de la mémoire d’exécution ME dans la mémoire de sauvegarde MS.In a fifth step 322, 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.

Dans une sixième étape 323, le FOTA master envoie une requête pour demander au calculateur cible 200 de contrôler l’intégrité des données copiées dans la mémoire de sauvegarde MS. Cette vérification est avantageusement réalisée par les mêmes méthodes qu’à la troisième étape 313.In 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.

En cas d’échec lors d’une des quatrième 321, cinquième 322 ou sixième 323 étape, le calculateur cible 200 renvoie une réponse négative au FOTA master. Le FOTA master exécute alors la procédure d’arrêt de l’installation 314.In case of failure during one of the fourth 321, fifth 322 or sixth 323 step, the target computer 200 returns a negative response to the FOTA master. The FOTA master then executes the installation shutdown procedure 314.

A l’issue de la deuxième phase 320, le calculateur cible 200 se trouve dans un troisième état 503 dans lequel : la mémoire d’exécution ME comporte les trois blocs du logiciel courant A, B, C, la mémoire de contrôle MC comporte les blocs de logiciel mis à jour B’, C’ issus du fichier de mise à jour 510, et la mémoire de sauvegarde MS comporte les trois blocs du logiciel courant A, B, CAt the end of the second phase 320, the target computer 200 is in a third state 503 in which: the execution memory ME comprises the three blocks of 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 current software blocks A, B, C

Selon une caractéristique de l’invention, la troisième phase 330 n’est exécutée que si la première phase 310 et la deuxième phase 320 ont été réalisées avec succès au préalable. A partir de cette phase, le logiciel de boot du calculateur cible 200 invalide le logiciel applicatif présent dans la mémoire d’exécution ME car il est susceptible d’être modifié par la suite des opérations. Pour cela, il peut par exemple stocker une variable (ou flag) en mémoire non-volatile, qui sera testée à chaque initialisation du calculateur 200 pour vérifier si le logiciel applicatif chargé en mémoire d’exécution ME peut être exécuté ou non.According to a feature of the invention, the third phase 330 is executed only 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 likely to be modified subsequently. For this, it can for example store a variable (or flag) in non-volatile memory, which will be tested each time computer 200 is initialized to check whether the application software loaded in execution memory ME can be executed or not.

Avantageusement, la troisième phase 330 comporte les étapes suivantes.Advantageously, the third phase 330 comprises the following steps.

Dans une septième étape 331, le FOTA master envoie autant de requêtes que nécessaire pour demander au calculateur cible 200 d’effacer tous les blocs de données à mettre à jour dans la mémoire d’exécution ME. La liste des blocs de données à mettre à jour est fournie au FOTA master via le fichier de téléchargement.In a seventh step 331, the FOTA master sends as many requests as necessary to ask the target computer 200 to erase all the blocks of data 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.

Dans une huitième étape 332, le FOTA master envoie autant de requêtes que nécessaire pour demander au calculateur cible 200 de copier chaque bloc de données à mettre à jour depuis la mémoire de contrôle MC vers la mémoire d’exécution ME.In an eighth step 332, 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.

Dans une neuvième étape 333, le FOTA master envoie autant de requêtes que nécessaire pour demander au calculateur cible de contrôler l’intégrité des données de chaque bloc de données mis à jour dans la mémoire d’exécution ME. Cette vérification est avantageusement réalisée par les mêmes méthodes qu’à la troisième étape 313.In a ninth step 333, the FOTA master sends as many requests as necessary to ask the target computer to check the data integrity of each data block updated in the execution memory ME. This verification is advantageously carried out by the same methods as in the third step 313.

A l’issue de la troisième phase 330, le calculateur cible se trouve dans un quatrième état 504 dans lequel : la mémoire d’exécution ME comporte un bloc du logiciel courant A, et deux blocs du logiciel mis à jour B’, C’ ; la mémoire de contrôle MC comporte les blocs de logiciel mis à jour B’, C’ issus du fichier de mise à jour 510 ; et la mémoire de sauvegarde MS comporte les trois blocs du logiciel courant A, B, CAt the end of the third phase 330, the target computer is in a fourth state 504 in which: the execution memory ME comprises a block of current software A, and two blocks of updated software 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 current software A, B, C

En cas d’échec lors d’une des septième 331, huitième 332 ou neuvième 333 étape, le calculateur cible 200 renvoie une réponse négative au FOTA master. Le FOTA master exécute alors l’opération de retour à un état précédent la mise à jour (Rollback).In the event of failure during one of the seventh 331, eighth 332 or ninth 333 steps, the target computer 200 returns a negative response to the FOTA master. The FOTA master then executes the operation to return to a state prior to the update (Rollback).

Si la troisième phase 333 s’est exécutée correctement, alors le logiciel de boot du calculateur déclare le logiciel applicatif valide (et donc modifie la variable correspondante). Le logiciel nouvellement téléchargé sera donc automatiquement exécuté par le calculateur 200 lors de sa prochaine réinitialisation provoquée soit par requête de la part du FOTA master, soit par une coupure puis remise de l’alimentation.If the third phase 333 has been executed correctly, then the computer boot software declares the application software valid (and therefore modifies the corresponding variable). The newly downloaded software will therefore be automatically executed by the computer 200 during its next reset caused either by a request from the FOTA master, or by a power cut and then restart.

La procédure d’arrêt de l’installation 314 est exécutée uniquement en cas d’échec de l’installation avant la troisième phase 330.The procedure for stopping the installation 314 is executed only in the event of failure of the installation before the third phase 330.

Deux cas sont à distinguer selon le type d’intervention initialement prévue par l’opérateur : (cas 1) seul le calculateur cible est mis à jour ou (cas 2) plusieurs calculateurs sont concernés par la mise à jour.Two cases are to be distinguished according to 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.

Le FOTA master détermine si un plusieurs calculateurs sont concernés par la mise à jour.The FOTA master determines whether several ECUs are affected by the update.

Si un seul calculateur est concerné par la mise à jour, le FOTA master envoie un message pour proposer à l’opérateur soit de relancer, soit d’abandonner l’installation. En cas d’abandon, comme le contenu de la mémoire d’exécution ME n’a pas encore été modifié à ce stade des opérations, le calculateur 200 est opérationnel dès le prochain reset, sans opération de Rollback.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. In the event of abandonment, as the content of the execution memory ME has not yet been modified at this stage of the operations, the computer 200 is operational from the next reset, without a Rollback operation.

Si plusieurs calculateurs sont concernés par la mise à jour, en particulier lorsqu’une cohérence doit être assurée entre les versions de logiciel des différents calculateurs du véhicule :If several computers are affected by the update, in particular when consistency must be ensured between the software versions of the vehicle's different computers:

  • Si au moment de l’erreur, seul le calculateur cible 200 a commencé sa mise à jour alors, le FOTA master procède comme pour le premier cas (envoi d’un message à l’opérateur et absence de rollback si abandon),If at the time of the error, only the target computer 200 has started its update, then the FOTA master proceeds as for the first case (sending a message to the operator and no rollback if aborted),
  • Si au moment de l’erreur, d’autres calculateurs dans le véhicule ont déjà été mis à jour, le FOTA master déclenche le processus de Rollback dans tous les calculateurs du véhicule qui le nécessitent jusqu’à retrouver un état précédent la mise à jour dans les autres calculateurs du véhicule.If at the time of the error, other computers in the vehicle have already been updated, the FOTA master triggers the Rollback process in all the vehicle computers that require it until the state prior to the update is found in the other computers of the vehicle.

Comme indiqué précédemment, en cas d’échec lors d’une des septième 331, huitième 332 ou neuvième 333 étape, le FOTA master exécute alors l’opération de retour à un état précédent la mise à jour (Rollback).As indicated previously, in the event of a failure during one of the seventh 331 , eighth 332 or ninth 333 steps, the FOTA master then executes the operation to return to a state prior to the update (Rollback).

En référence à la figure 4, l’étape de rollback 400 comporte les sous-étapes suivantes.Referring to Figure 4, the rollback step 400 includes the following sub-steps.

Avantageusement, le FOTA master transmet 401 un message à l’IHM pour informer l’opérateur qu’une opération de Rollback est en cours sur un ou plusieurs calculateurs du véhicule.Advantageously, the FOTA master transmits 401 a message to the HMI to inform the operator that a Rollback operation is in progress on one or more computers of the vehicle.

Le FOTA master envoie 402 une requête pour demander au calculateur cible 200 d’effacer la totalité de la mémoire d’exécution ME.The FOTA master sends 402 a request to ask the target computer 200 to erase the entire execution memory ME.

Le FOTA master envoie 403 une requête pour demander au calculateur cible 200 de copier la totalité du contenu de la mémoire de sauvegarde MS dans la mémoire d’exécution ME.The FOTA master sends 403 a request to ask the target computer 200 to copy the entire content of the backup memory MS into the execution memory ME.

Le FOTA master envoie 404 une requête pour demander au calculateur cible de contrôler l’intégrité des données copiées dans la mémoire d’exécution ME. Cette vérification est avantageusement réalisée par les mêmes méthodes qu’à la troisième étape 313.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.

A l’issue de l’opération de rollback, le calculateur peut de nouveau fonctionner avec son logiciel initial après sa réinitialisation provoquée soit par une requête du FOTA master, soit par une coupure puis remise de l’alimentation.At the end of the rollback operation, the computer can again operate with its initial software after its reinitialization caused either by a request from the FOTA master, or by a power cut and then restart.

A l’issue de l’opération de rollback 400, le calculateur cible se trouve dans un cinquième état 505 dans lequel : la mémoire d’exécution ME comporte les trois blocs du logiciel courant A, B, C, la mémoire de contrôle MC comporte les blocs de logiciel mis à jour B’, C’ issus du fichier de mise à jour 510, et la mémoire de sauvegarde MS comporte les trois blocs du logiciel courant A, B, C.At the end of the rollback operation 400, the target computer is in a fifth state 505 in which: the execution memory ME comprises the three blocks of 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 current software blocks A, B, C.

Claims (9)

Procédé de mise à jour d’un logiciel d’un calculateur embarqué d’un véhicule, comportant une mémoire d’exécution (ME) dans laquelle sont stockés une pluralité de blocs (A, B, C) d’un logiciel courant, une mémoire de sauvegarde (MS) et une mémoire de contrôle (MC), caractérisé en ce qu’il comporte des étapes de :
- Emission (312) d’une requête commandant une écriture en mémoire de contrôle (MC) d’au moins un bloc de logiciel mis à jour (B’,C’),
Emission (313) d’une requête commandant une vérification dudit au moins un bloc de logiciel mis à jour (B’,C’) stocké en mémoire de contrôle (MC),
Emission (322) d’une requête commandant la copie depuis la mémoire d’exécution (ME) vers la mémoire de sauvegarde (MS) de la pluralité de blocs (A, B, C) du logiciel courant,
Emission (332) d’une requête commandant la copie (332) depuis la mémoire de contrôle (MC) vers la mémoire d’exécution (ME) dudit au moins un bloc de logiciel mis à jour (B’,C’),
Emission (333) d’une requête commandant une vérification de l’intégrité des blocs (A,B’,C’) de logiciel de la mémoire d’exécution (ME),
Et si une erreur est détectée alors :
Emission (400) d’une requête commandant un retour à un état précédent la mise à jour comportant une copie (403) depuis la mémoire de sauvegarde (MS) vers la mémoire d’exécution (ME) de la pluralité de blocs du logiciel courant (A, B, C).
Method for updating software of an on-board computer of a vehicle, comprising an execution memory (ME) in which are stored a plurality of blocks (A, B, C) of current software, a backup memory (MS) and a control memory (MC), characterized in that it comprises steps of:
- Emission (312) of a request commanding a writing in control memory (MC) of at least one updated software block (B', C'),
Emission (313) of a request ordering a verification of said at least one updated software block (B', C') stored in the control memory (MC),
Emission (322) of a request controlling the copy from the execution memory (ME) to the backup memory (MS) of the plurality of blocks (A, B, C) of the current software,
Emission (332) of a request ordering the copy (332) from the control memory (MC) to the execution memory (ME) of said at least one updated software block (B', C'),
Emission (333) of a request ordering a verification of the integrity of the software blocks (A, B', C') of the execution memory (ME),
And if an error is detected then:
Emission (400) of a request commanding a return to a state prior to 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).
Procédé de mise à jour d’un logiciel d’un calculateur selon la revendication 1, comportant en outre une étape d’émission (311) d’une requête commandant audit calculateur d’effacer la mémoire de contrôle (MC), préalablement à l’émission (312) de la requête commandant l’écriture en mémoire de contrôle (MC) d’au moins un bloc de logiciel mis à jour (B’,C’).Method for updating computer software according to claim 1, further comprising a step of sending (311) a request ordering said computer to erase the control memory (MC), prior to the transmission (312) of the request commanding the writing in the control memory (MC) of at least one updated block of software (B', C'). Procédé de mise à jour d’un logiciel d’un calculateur selon l’une des revendications précédentes, comportant en outre une étape d’émission (321) d’une requête commandant audit calculateur d’effacer la mémoire de sauvegarde (MS), préalablement à l’émission (322) de la requête commandant la copie depuis la mémoire d’exécution (ME) vers la mémoire de sauvegarde (MS) de la pluralité de blocs du logiciel courant (A, B, C).Method for updating computer software according to one of the preceding claims, further comprising a step of sending (321) a request ordering said computer to erase the backup memory (MS), prior to the transmission (322) of the request controlling the copy from the execution memory (ME) to the backup memory (MS) of the plurality of blocks of the current software (A, B, C). Procédé de mise à jour d’un logiciel d’un calculateur selon l’une des revendications précédentes, comportant en outre une étape d’émission (323) d’une requête commandant audit calculateur de vérifier l’intégrité de la pluralité de blocs du logiciel courant (A, B, C) dans la mémoire de sauvegarde (MS).Method for updating computer software according to one of the preceding claims, further comprising a step of sending (323) a request ordering said computer to verify the integrity of the plurality of blocks of the current software (A, B, C) in the backup memory (MS). Procédé de mise à jour d’un logiciel d’un calculateur selon l’une des revendications précédentes, comportant en outre une étape d’émission (331) d’une requête commandant audit calculateur d’effacer de la mémoire d’exécution (ME) les blocs de logiciels à mettre à jour (B, C).Method for updating computer software according to one of the preceding claims, further comprising a step of sending (331) a request ordering said computer to erase from the execution memory (ME ) the software blocks to be updated (B, C). Procédé de mise à jour d’un logiciel d’un calculateur selon l’une des revendications précédentes, dans lequel l’étape de retour à un état précédent la mise à jour comporte en outre une étape préalable d’effacement (402) de la mémoire d’exécution du calculateur et une étape de vérification (404) de l’intégrité de la pluralité de blocs du logiciel courant (A, B, C) dans la mémoire d’exécution (ME).Method for updating computer software according to one of the preceding claims, in which the step of returning to a state prior to the update further comprises a prior step of erasing (402) the execution memory of the computer and a verification step (404) of the integrity of the plurality of blocks of current software (A, B, C) in the execution memory (ME). Procédé de mise à jour d’un logiciel d’un calculateur selon l’une des revendications précédentes, dans lequel l’étape de retour à un état précédent la mise à jour comporte en outre une étape d’arrêt de la mise à jour (314) comportant une commande de retour à un état précédent la mise à jour à d’autres calculateurs concernés par ladite mise à jour.Method for updating computer software according to one of the preceding claims, in which the step of returning to a state prior to the update further comprises a step of stopping the update ( 314) comprising a command to return to a state preceding the update to other computers concerned by said update. Dispositif de mise à jour d’un logiciel d’un calculateur, ledit dispositif comprenant une mémoire associée à au moins un processeur configuré pour mettre en œuvre les étapes du procédé selon l’une quelconque des revendications 1 à 7.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 any one of Claims 1 to 7. Véhicule caractérisé en ce qu’il comporte un dispositif de mise à jour d’un logiciel d’un calculateur selon la revendication précédente.Vehicle characterized in that it comprises a computer software update device according to the preceding claim.
FR1908403A 2019-07-24 2019-07-24 Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory Active FR3099265B1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
FR1908403A FR3099265B1 (en) 2019-07-24 2019-07-24 Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory
EP20746261.5A EP4004712A1 (en) 2019-07-24 2020-07-01 Method and device for updating software of an onboard computer of a vehicle, comprising a runtime memory, a backup memory and a control memory
CN202080053253.9A CN114144759A (en) 2019-07-24 2020-07-01 Method and device for updating software of a vehicle computer comprising an execution memory, a backup memory and a check memory
PCT/FR2020/051149 WO2021014064A1 (en) 2019-07-24 2020-07-01 Method and device for updating software of an onboard computer of a vehicle, comprising a runtime memory, a backup memory and a control memory

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FR1908403A FR3099265B1 (en) 2019-07-24 2019-07-24 Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory
FR1908403 2019-07-24

Publications (2)

Publication Number Publication Date
FR3099265A1 true FR3099265A1 (en) 2021-01-29
FR3099265B1 FR3099265B1 (en) 2021-07-09

Family

ID=68987815

Family Applications (1)

Application Number Title Priority Date Filing Date
FR1908403A Active FR3099265B1 (en) 2019-07-24 2019-07-24 Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory

Country Status (1)

Country Link
FR (1) FR3099265B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2719924A1 (en) 1994-05-11 1995-11-17 Peugeot Method for unlocking the access of a file download tool to a computer.
WO2017124174A1 (en) * 2016-01-22 2017-07-27 2236008 Ontario Inc. Updating a controller unit in a vehicle
US20190057214A1 (en) 2017-08-21 2019-02-21 Kabushiki Kaisha Toshiba Update control device, terminal, and method of controlling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2719924A1 (en) 1994-05-11 1995-11-17 Peugeot Method for unlocking the access of a file download tool to a computer.
WO2017124174A1 (en) * 2016-01-22 2017-07-27 2236008 Ontario Inc. Updating a controller unit in a vehicle
US20190057214A1 (en) 2017-08-21 2019-02-21 Kabushiki Kaisha Toshiba Update control device, terminal, and method of controlling

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MANSOR HAFIZAH ET AL: "Don't Brick Your Car: Firmware Confidentiality and Rollback for Vehicles", 2015 10TH INTERNATIONAL CONFERENCE ON AVAILABILITY, RELIABILITY AND SECURITY, IEEE, 24 August 2015 (2015-08-24), pages 139 - 148, XP032795237, DOI: 10.1109/ARES.2015.58 *

Also Published As

Publication number Publication date
FR3099265B1 (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US11650808B2 (en) Hot updates to controller software using tool chain
US10162625B2 (en) Vehicle control storage methods and systems
WO2021014064A1 (en) Method and device for updating software of an onboard computer of a vehicle, comprising a runtime memory, a backup memory and a control memory
FR3096153A1 (en) Method and device for returning to a state prior to a software update of a remote vehicle computer
CN113885929A (en) Remote upgrading method for high-precision map
EP4118548A1 (en) Method and device for updating software comprising physical addresses to the memory of an on-board computer of a vehicle
EP4066103A1 (en) Method for updating a digital system
CN117407020A (en) OTA upgrade refreshing method and device, electronic equipment and storage medium
FR3099265A1 (en) Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory, a backup memory and a control memory
FR3099264A1 (en) Method and device for updating the software of an on-board computer of a vehicle, comprising an execution memory and a backup memory
WO2022064118A1 (en) Method and device for updating software of an onboard computer in a vehicle, comprising a runtime memory, a backup memory and a control memory
FR3114415A1 (en) Method and device for updating software of an on-board computer of a vehicle, comprising an execution memory and a backup memory
EP4018347A1 (en) Method and device for updating software of an onboard computer of a vehicle, comprising a runtime memory and a backup memory
EP3924831A1 (en) Method for updating a motor vehicle computer in such a way as to add an additional functionality thereto
WO2021023694A1 (en) Method for writing to a secure data area of a computer on an on-board vehicle bus
WO2020259956A1 (en) Method of dialogue with a computer on an on-board bus of a vehicle
FR3100638A1 (en) Method and device for updating a target computer from an interpreted script
WO2024121096A1 (en) Electronic control unit for a vehicle comprising a transactional black box, and method for operating such an electronic control unit
CN112287348B (en) Self-refreshing method and system of vehicle-mounted module
FR2903791A1 (en) Software module i.e. complete software or file, downloading method, involves storing downloaded software module in storing zone that is defined as new execution zone, and defining memory zone by switching variable
FR3111447A1 (en) Management of embedded software versions from a computer footprint
FR2928473A1 (en) Software's new version coherent download providing method for e.g. car, involves copying content portion of table into zone of memory to subsequently compare portion with same content portion of table from subsequent version of software
WO2024080913A1 (en) Simulation of functionalities of a physical vehicle or parts thereof
CN118331616A (en) Vehicle-mounted terminal and remote upgrading method thereof
FR3029047A1 (en) METHOD OF COMMUNICATION BETWEEN A PRODUCTION TOOL AND A MOTOR VEHICLE

Legal Events

Date Code Title Description
PLFP Fee payment

Year of fee payment: 2

PLSC Publication of the preliminary search report

Effective date: 20210129

PLFP Fee payment

Year of fee payment: 3

PLFP Fee payment

Year of fee payment: 4

PLFP Fee payment

Year of fee payment: 5

CD Change of name or company name

Owner name: STELLANTIS AUTO SAS, FR

Effective date: 20240423