IP Library Granted Patent US 11,321,074
Granted Patent B2
US 11,321,074 · App. 17/345,542 · Granted May 3, 2022

Vehicle-mounted device upgrade method and related apparatus

Inventors: Xinxing Yin (Shenzhen, CN); Zhuo Wei (Singapore, SG)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F8/65H04L9/3273H04L63/0428H04L63/166H04L67/02H04L67/12H04L67/34
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,321,074
App. No.
17/345,542
Granted
May 3, 2022
Kind
B2
Abstract

A vehicle-mounted device upgrade method and a related apparatus, where the method includes an on-board unit (Tbox) of a vehicle that processes a first data segment according to a first algorithm to obtain a first check value, where the first data segment is any data segment in a plurality of data segments included in an upgrade file of a control unit, and the first check value is sent to the control unit, and the Tbox encrypts the first data segment by using a first key to obtain a first encrypted segment, and sends the first encrypted segment to the control unit, so that the control unit stores, in the control unit, the first data segment obtained by decrypting the first encrypted segment by using the first key, where the first data segment is used by the control unit to form the upgrade file for upgrade.

Claims (73)

1. A method implemented by a vehicle, wherein the method comprises:

processing, by a first vehicle-mounted device of the vehicle and according to a first algorithm, a first data segment to obtain a first check value, wherein the first data segment is in a plurality of data segments comprised in an upgrade file used to upgrade a second vehicle-mounted device of the vehicle, wherein processing the first data segment to obtain the first check value comprises:

setting, by the first vehicle-mounted device, the first data segment as a first input of the first algorithm to obtain first output data as the first check value when the first data segment is a first in a sequence of the data segments in the upgrade file; and

when the first data segment is not the first in the sequence of the data segments in the upgrade file:

processing, by the first vehicle-mounted device, a previous data segment of the first data segment according to the first algorithm to obtain a second check value; and

setting, by the first vehicle-mounted device, the first data segment and the second check value as second inputs of the first algorithm to obtain second output data as the first check value;

encrypting, by the first vehicle-mounted device using a first key, the first data segment or both the first data segment and the first check value to obtain a first encrypted segment;

sending, by the first vehicle-mounted device to the second vehicle-mounted device, the first encrypted segment or both the first encrypted segment and the first check value;

receiving, by the second vehicle-mounted device from the first vehicle-mounted device, the first encrypted segment or both the first encrypted segment and the first check value;

decrypting, by the second vehicle-mounted device, the first encrypted segment using the first key to obtain the first data segment;

verifying, by the second vehicle-mounted device, the first check value according to the first algorithm;

storing, by the second vehicle-mounted device, the first data segment in a memory of the second vehicle-mounted device when the first check value is successfully verified; and

forming, by the second vehicle-mounted device and based on the first data segment, the upgrade file to upgrade the second vehicle-mounted device.

2. The method of claim 1 , wherein before processing the first data segment, the method further comprises:

performing, by the first vehicle-mounted device, a two-way authentication with a download server and according to a Hypertext Transfer Protocol (HTTP) over Secure Sockets Layer (SSL) (HTTPS);

receiving, by the first vehicle-mounted device from the download server, an encrypted file that is based on the upgrade file; and

decrypting, by the first vehicle-mounted device, the encrypted file when a preset upgrade condition is met to obtain the upgrade file.

3. The method of claim 1 , further comprising:

performing, by the first vehicle-mounted device, a two-way authentication negotiation with the second vehicle-mounted device and according to a Transport Layer Security (TLS) protocol; and

processing, by the first vehicle-mounted device, the first data segment according to the TLS protocol and the first algorithm to obtain a message authentication code of the first data segment as the first check value.

4. A first vehicle-mounted device comprising:

a processor configured to:

process a first data segment according to a first algorithm to obtain a first check value, wherein the first data segment is in a plurality of data segments comprised in an upgrade file used to upgrade a second vehicle-mounted device, and wherein the processor is configured to process the first data segment at least in part by being configured to:

set the first data segment as a first input of the first algorithm to obtain first output data as the first check value when the first data segment is a first in a sequence of the data segments in the upgrade file; and

when the first data segment is not the first in the sequence of the data segments in the upgrade file:

process a previous data segment of the first data segment according to the first algorithm to obtain a second check value; and

set the first data segment and the second check value as second inputs of the first algorithm to obtain second output data as the first check value; and

encrypt the first data segment or both the first data segment and the first check value using a first key to obtain a first encrypted segment; and

a transceiver coupled to the processor and configured to:

send the first encrypted segment or both the first encrypted segment and the first check value to the second vehicle-mounted device.

5. The first vehicle-mounted device of claim 4 , wherein before processing the first data segment, the processor is further configured to perform a two-way authentication with a download server and according to a Hypertext Transfer Protocol (HTTP) over Secure Sockets Layer (SSL) (HTTPS) protocol, wherein the transceiver is further configured to receive, from the download server, an encrypted file that is based on the upgrade file, and wherein the processor is further configured to decrypt the encrypted file when a preset upgrade condition is met to obtain the upgrade file.

6. The first vehicle-mounted device of claim 4 , wherein the processor is further configured to:

perform a two-way authentication negotiation with the second vehicle-mounted device and according to a Transport Layer Security (TLS) protocol to obtain the first key; and

process the first data segment according to the TLS protocol and the first algorithm to obtain a message authentication code of the first data segment as the first check value.

7. A second vehicle-mounted device comprising:

a transceiver configured to:

receive a first encrypted segment from a first vehicle-mounted device, wherein the first encrypted segment is based on a first data segment and a first key, and wherein the first data segment is in a plurality of data segments comprised in an upgrade file used to upgrade the second vehicle-mounted device; and

receive a first check value from the first vehicle-mounted device, wherein the first check value is based on the first data segment and a first algorithm, and wherein the first check value is either:

first output data of the first algorithm when the first data segment is a first in a sequence of the data segments in the upgrade file and when the first data segment is a first input of the first algorithm; or

second output data of the first algorithm when the first data segment is other than the first in the sequence of the data segments in the upgrade file and when the first data segment and a second check value are second inputs of the first algorithm, wherein the second check value is based on a previous data segment of the first data segment and the first algorithm; and

a processor coupled to the transceiver and configured to:

decrypt the first encrypted segment using the first key to obtain the first data segment;

verify the first check value according to the first algorithm;

store the first data segment in the second vehicle-mounted device when the first check value is successfully verified; and

form the upgrade file based on the first data segment to upgrade the second vehicle-mounted device.

8. The second vehicle-mounted device of claim 7 , wherein the first data segment is the first in the sequence and the first data segment is the first input, and wherein the first check value is the first output data.

9. The second vehicle-mounted device of claim 7 , wherein the first data segment is other than the first in the sequence and the first data segment and the second check value are the second inputs of the first algorithm, and wherein the first check value is the second output data.

10. The second vehicle-mounted device of claim 7 , wherein the first check value is a message authentication code that is of the first data segment and that is based on the first data segment, a Transport Layer Security (TLS) protocol, and the first algorithm.

11. The second vehicle-mounted device of claim 7 , wherein the first encrypted segment is further based on the first check value.

12. The second vehicle-mounted device of claim 7 , wherein the processor is further configured to perform a two-way authentication negotiation with the first vehicle-mounted device and according to a Transport Layer Security (TLS) protocol, and wherein the first check value is a message authentication code that is of the first data segment and that is based on the first data segment, the TLS protocol, and the first algorithm.

13. A vehicle comprising:

a first vehicle-mounted device configured to:

process a first data segment according to a first algorithm to obtain a first check value, wherein the first data segment is in a plurality of data segments comprised in an upgrade file, and wherein the first vehicle-mounted device is configured to process the first data segment at least in part by being configured to:

set the first data segment as a first input of the first algorithm to obtain first output data as the first check value when the first data segment is a first in a sequence of the data segments in the upgrade file; and

when the first data segment is not the first in the sequence of the data segments in the upgrade file:

process a previous data segment of the first data segment according to the first algorithm to obtain a second check value; and

set the first data segment and the second check value as second inputs of the first algorithm to obtain second output data as the first check value;

encrypt the first data segment or both the first data segment and the first check value using a first key to obtain a first encrypted segment; and

send the first encrypted segment or both the first encrypted segment and the first check value; and

a second vehicle-mounted device coupled to the first vehicle-mounted device and configured to:

receive the first encrypted segment or both the first encrypted segment and the first check value from the first vehicle-mounted device;

decrypt the first encrypted segment using the first key to obtain the first data segment;

verify the first check value according to the first algorithm;

store the first data segment in a memory of the second vehicle-mounted device when the first check value is successfully verified; and

form, based on the first data segment, the upgrade file to upgrade the second vehicle-mounted device.

14. The vehicle of claim 13 , wherein before processing the first data segment, the first vehicle-mounted device is further configured to:

perform a two-way authentication with a download server and according to a Hypertext Transfer Protocol (HTTP) over Secure Sockets Layer (SSL) (HTTPS);

receive, from the download server, an encrypted file that is based on the upgrade file; and

decrypt the encrypted file when a preset upgrade condition is met to obtain the upgrade file.

15. The vehicle of claim 13 , wherein the first vehicle-mounted device is further configured to:

perform a two-way authentication negotiation with the second vehicle-mounted device and according to a Transport Layer Security (TLS) protocol to obtain the first key; and

process the first data segment according to the TLS protocol and the first algorithm to obtain a message authentication code of the first data segment as the first check value.

16. The vehicle of claim 13 , wherein the first vehicle-mounted device is a telematics box (Tbox), and wherein the second vehicle-mounted device is an electronic control unit (ECU) or a vehicle control unit (VCU).

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0026 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 23, 2022
From: YIN, XINXING; WEI, ZHUO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 059077/0198 →