CPC H04L 9/088 (2013.01) [G06F 8/65 (2013.01)] | 18 Claims |
1. A vehicle-mounted device upgrade method, applied to a vehicle upgrade system that comprises an intelligent vehicle and a communications device, wherein the intelligent vehicle comprises a vehicle-mounted control device and a first to-be-upgraded vehicle-mounted device, and the method comprises:
receiving, by the vehicle-mounted control device, a first partial key sent by the communications device;
restoring, by the vehicle-mounted control device, a first key by using the first partial key and a second partial key that is stored on the vehicle-mounted control device;
performing, by the vehicle-mounted control device, secure processing on a first upgrade file by using the first key, to obtain a securely processed first upgrade file, wherein the secure processing comprises generating a first message authentication code (MAC), and the securely processed first upgrade file comprises the first upgrade file and the first MAC;
attempting to upgrade the first to-be-upgraded vehicle-mounted device; and
responsive to determining that the first to-be-upgraded vehicle-mounted device is successfully upgraded, indicating, by the vehicle-mounted control device, the communications device to update a rollback file of the first upgrade file; or
responsive to determining that the first to-be-upgraded vehicle-mounted device fails to be upgraded, obtaining, by the vehicle-mounted control device, a rollback file of the first upgrade file from the communications device, and sending the rollback file to the first to-be-upgraded vehicle-mounted device for a rollback operation.
|