# US 2019/0173862 A1 · Vehicle and method for controlling same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0173862 A1
- Document ID: US20190173862A1
- Status: Published application
- Kind: A1
- Application number: 16/266,911
- Filed: 2019-02-04
- Published: 2019-06-06
- Earliest claimed: 2016-08-03
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Cheolseung KIM; Seongsoo KIM; Byeongrim JO
- Web page: https://patentgrep.com/patent/US20190173862A1

## CPC

- H04L 63/062: {for key distribution, e.g. centrally by trusted party (cryptographic mechanisms or cryptographic arrangements for key distribution involving a central third party H04L9/0819)}
- H04L 9/083: {involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]}
- H04L 9/088: {Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms (network architectures or network communication protocols for using time-dependent keys in a packet data network H04L63/068)}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04L 12/40: Bus networks
- H04L 63/065: {for group communications (cryptographic mechanisms or cryptographic arrangements for key management involving conference or group key H04L9/0833)}
- B60R 16/023: for transmission of signals between vehicle parts or subsystems
- H04L 67/12: specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L 2012/40215: {Controller Area Network CAN}
- H04L 2012/40273: {the transportation system being a vehicle}
- H04L 2209/84: Vehicles
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- B60R: VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR

## Abstract

A method of controlling a vehicle that includes a plurality of electronic control units (ECUs), the method including: allocating an order in which at least one ECU among the plurality of ECUs is to be assigned an encryption key, based on a data rate of each ECU; receiving, by the at least one ECU, at least one encryption key that is assigned to the at least one ECU according to the allocated order; and performing, by the at least one ECU and using the assigned at least one encryption key, (i) encryption of data to be transmitted through a Controller Area Network (CAN) communication bus, or (ii) decryption of data that is transmitted through the CAN communication bus.

## Claims

### Claim 1

A method of controlling a vehicle that comprises a plurality of electronic control units (ECUs), the method comprising:
allocating an order in which at least one ECU among the plurality of ECUs is to be assigned an encryption key, based on a data rate of each ECU;
receiving, by the at least one ECU, at least one encryption key that is assigned to the at least one ECU according to the allocated order; and
performing, by the at least one ECU and using the assigned at least one encryption key, (i) encryption of data to be transmitted through a Controller Area Network (CAN) communication bus, or (ii) decryption of data that is transmitted through the CAN communication bus.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
classifying the plurality of ECUs into a plurality of groups; and
selecting a master ECU for each group,
wherein, for a group among the plurality of groups, the group comprises one master ECU and one or more slave ECUs, and
wherein the master ECU included in the group is configured to assign the encryption key.

### Claim 3 (depends on 2)

The method of claim 2, wherein at a first instance of time, the master ECU in the group is a first ECU in the group, and
wherein at a second instance of time, the master ECU in the group is a second ECU in the group, different from the first ECU.

### Claim 4 (depends on 3)

The method of claim 3, wherein the master ECU of the group has a lowest data rate among all ECUs included in the group.

### Claim 5 (depends on 2)

The method of claim 2, wherein the master ECU of the group sequentially assigns the encryption key to each of the one or more slave ECUs in the group, according to the allocated order.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
a selection operation of selecting an i-th group among N groups, based on a corresponding sum of data rates of ECUs included in each of the N groups; and
an assignment operation of assigning the at least one encryption key to a j-th ECU in the selected i-th group, based on a data rate of each of M ECUs in the selected i-th group,
wherein at least one of the selection operation or the assignment operation is repeated until all ECUs are assigned a corresponding encryption key, and wherein N, M, i, and j are natural numbers, with 0<i≤N, and 0<j≤M.

### Claim 7 (depends on 6)

The method of claim 6, wherein the master ECU of the i-th group performs, in assigning the encryption key to the j-th ECU of the i-th group:
inserting, into a data field of a CAN frame, an encryption key to be assigned to the j-th ECU;
encrypting the CAN frame using an existing encryption key set that is assigned to the j-th ECU; and
transmitting, through the CAN communication bus, the encrypted CAN frame to the j-th ECU as a destination.

### Claim 8 (depends on 7)

The method of claim 7, wherein the master ECU of the i-th group, in encrypting the CAN frame, selects at least one field among fields constituting the CAN frame based on the j-th ECU, and performs encryption only for the selected at least one field, and
wherein the at least one field that is encrypted in the CAN frame depends on a type of the j-th ECU.

### Claim 9 (depends on 7)

The method of claim 7, wherein the master ECU of the i-th group comprises a memory configured to store an encryption key set,
wherein the master ECU of the i-th group further performs generating the encryption key using the encryption key set, in assigning the encryption key to the j-th ECU, and
wherein the generated encryption key is inserted into the data field of the CAN frame.

### Claim 10 (depends on 9)

The method of claim 9, wherein the memory is disposed in a circuit board provided in the master ECU of the i-th group, and is disposed in a physically separated region that is inaccessible by unauthorized software on the circuit board.

### Claim 11 (depends on 2)

The method of claim 2, wherein the master ECU of the group performs:
determining whether hacking has occurred based on at least one message that is transmitted through the CAN communication bus from the one or more slave ECUs in the group; and
based on a determination that the hacking has occurred, requesting an encryption key change for assigning new encryption keys.

### Claim 12 (depends on 11)

The method of claim 11, wherein determining whether hacking has occurred comprises:
counting a number of messages that are transmitted over a period of time through the CAN communication bus by the one or more slave ECUs; and
determining that the hacking has occurred based on a total number of messages that are transmitted over the period of time exceeding a threshold number that is set for the one or more slave ECUs.

### Claim 13 (depends on 2)

The method of claim 2, wherein all ECUs in the group share a same group ID, and
wherein the master ECU of the group assigns a same encryption key to the one or more slave ECUs having the same group ID.

### Claim 14 (depends on 2)

The method of claim 2, wherein the master ECU of the group assigns different encryption keys to the one or more slave ECUs in the group.

### Claim 15 (depends on 2)

The method of claim 2, further comprising:
based on a second condition being satisfied, reclassifying the plurality of ECUs into new groups based on a data rate of each of the plurality of ECUs.

### Claim 16

A vehicle comprising a plurality of electronic control units (ECUs), the vehicle comprising:
a plurality of slave ECUs each configured to, using an encryption key assigned thereto, (i) encrypt data to be transmitted through a CAN communication bus, or (ii) decrypt data that is transmitted through the CAN communication bus;
a master ECU configured to:
allocate an order in which at least one slave ECU among the plurality of slave ECUs is to be assigned an encryption key, based on a data rate of each of the at least one slave ECU; and
sequentially assign at least one encryption key to the at least one slave ECU according to the allocated order; and
a master-of-master-ECUs configured to transmit an encryption key assignment command to the master ECU for the master ECU to assign encryption keys to the plurality of slave ECUs, based on a predetermined condition being satisfied.

### Claim 17 (depends on 16)

The vehicle of claim 16, wherein the plurality of ECUs is grouped into a plurality of groups,
wherein the master ECU is one of a plurality of master ECUs that are respectively selected for the plurality of groups,
wherein a group among the plurality of groups comprises the master ECU and at least one slave ECU, and
wherein the master ECU in the group is configured to assign the encryption key.

### Claim 18 (depends on 17)

The vehicle of claim 17, wherein the master ECU of the group is an ECU having a lowest data rate, from among all ECUs included in the group,
wherein at a first instance of time, the master ECU in the group is a first ECU in the group, and
wherein at a second instance of time, the master ECU in the group is a second ECU in the group, different from the first ECU.

### Claim 19 (depends on 16)

The vehicle of claim 16, wherein the master ECU of the group is further configured to:
determine whether hacking has occurred for the at least one slave ECU in the group, and
based on a determination that the hacking has occurred, transmit an encryption key change request to the master-of-master-ECU for assigning new encryption keys to the at least one slave ECU.

### Claim 20 (depends on 16)

The vehicle of claim 16, wherein the master-of-master-ECU is further configured to:
reclassify the plurality of ECUs into new groups based on a data rate of each of the plurality of ECUs, based on a second condition being satisfied.
