In-vehicle network system, electronic control unit, and update processing method
First Claim
1. A method for use in an in-vehicle network system including a first electronic control unit and a second control unit, each of the first electronic control unit and the second electronic control unit communicating a data frame having a message authentication code (MAC) added thereto with one another via at least one bus in accordance with Controller Area Network (CAN) protocol, the method comprising:
- the first electronic control unit detecting a state of a vehicle having the in-vehicle network system mounted therein;
the first electronic control unit sending a data frame identified with a predetermined message ID;
the first electronic control unit generating a first message authentication code that reflects the value of a transmission counter which counts the number of transmission events using a first MAC key;
the first electronic control unit adding the first message authentication code to the data frame to be sent;
the first electronic control unit updating the first MAC key used to generate the first message authentication code under the condition that the detected state of the vehicle is a predetermined state;
the second electronic control unit detecting a state of the vehicle having the in-vehicle network system mounted therein;
the second electronic control unit receiving the data frame identified with a predetermined message ID;
the second electronic control unit generating a second message authentication code that reflects the value of a reception counter which counts the number of reception events using a second MAC key;
the second electronic control unit verifying whether the message authentication code added to the received data frame is the same as the second message authentication code;
the second electronic control unit updating the second MAC key used to generate the second message authentication code under the condition that the detected state of the vehicle is the predetermined state; and
resetting the transmission counter and the reception counter under the condition that the detected state of the vehicle is the predetermined state.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for use in an in-vehicle network system is provided. The in-vehicle network system includes a plurality of electronic control units that communicate a data frame having a message authentication code (MAC) added thereto with one another via a bus in accordance with the Controller Area Network (CAN) protocol. The method includes detecting the state of a vehicle having the in-vehicle network system mounted therein and updating a MAC key used to generate the MAC under the condition that the detected state of the vehicle is a predetermined state.
15 Citations
10 Claims
-
1. A method for use in an in-vehicle network system including a first electronic control unit and a second control unit, each of the first electronic control unit and the second electronic control unit communicating a data frame having a message authentication code (MAC) added thereto with one another via at least one bus in accordance with Controller Area Network (CAN) protocol, the method comprising:
-
the first electronic control unit detecting a state of a vehicle having the in-vehicle network system mounted therein; the first electronic control unit sending a data frame identified with a predetermined message ID; the first electronic control unit generating a first message authentication code that reflects the value of a transmission counter which counts the number of transmission events using a first MAC key; the first electronic control unit adding the first message authentication code to the data frame to be sent; the first electronic control unit updating the first MAC key used to generate the first message authentication code under the condition that the detected state of the vehicle is a predetermined state; the second electronic control unit detecting a state of the vehicle having the in-vehicle network system mounted therein; the second electronic control unit receiving the data frame identified with a predetermined message ID; the second electronic control unit generating a second message authentication code that reflects the value of a reception counter which counts the number of reception events using a second MAC key; the second electronic control unit verifying whether the message authentication code added to the received data frame is the same as the second message authentication code; the second electronic control unit updating the second MAC key used to generate the second message authentication code under the condition that the detected state of the vehicle is the predetermined state; and resetting the transmission counter and the reception counter under the condition that the detected state of the vehicle is the predetermined state. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An in-vehicle network system including a plurality of electronic control units that each communicate a data frame having a message authentication code (MAC) added thereto with one another via at least one bus in accordance with Controller Area Network (CAN) protocol, the system comprising:
-
a first electronic control unit including one or more memories and circuitry which, in operation, holds a first MAC key used to generate the message authentication code, generates a first message authentication code that reflects the value of a transmission counter which counts the number of transmission events using the first MAC key, adds the generated first message authentication code to a data frame identified by a predetermined message ID, sends the data frame, and updates the first MAC key under the condition that a state of a vehicle having the in-vehicle network system mounted therein is a predetermined state; and a second electronic control unit including one or more memories and circuitry which, in operation, holds a second MAC key used to generate the message authentication code, generates a second message authentication code that reflects the value of a reception counter which counts the number of reception events using the second MAC key, receives a data frame identified by the predetermined message ID, verifies whether the message authentication code added to the received data frame is the same as the second message authentication code, and updates the second MAC key under the condition that the state of the vehicle is a predetermined state, wherein the transmission counter and the reception counter are reset under the condition that the state of the vehicle is the predetermined state. - View Dependent Claims (9)
-
-
10. A plurality of electronic control units for operating in accordance with Controller Area Network (CAN) protocol, comprising a first electronic control unit and a second electronic control unit, each comprising one or more memories and circuitry which, in operation:
-
holds, via the first electronic control unit, a first MAC key used to generate a first message authentication code (MAC); detects, via the first electronic control unit, a state of a vehicle; sends, via the first electronic control unit, a data frame identified with a predetermined message ID; adds, via the first electronic control unit, the first message authentication code to the data frame to be sent; generates, via the first electronic control unit, the first message authentication code that reflects the value of a transmission counter which counts the number of transmission events using the first held MAC key; updates, via the first electronic control unit, the first held MAC key under the condition that a state of a vehicle having the electronic control unit mounted therein is a predetermined state; holds, via the second electronic control unit, a second MAC key used to generate a second message authentication code (MAC); detects, via second electronic control unit, a state of a vehicle; receives, via the second electronic control unit, the data frame identified with a predetermined message ID; generates, via the second electronic control unit, the second message authentication code that reflects the value of a reception counter which counts the number of reception events using the second held MAC key; verifies, via the second electronic control unit, whether the message authentication code added to the received data frame is the same as the second message authentication code; updates, via the second electronic control unit, the second MAC key used to generate the second message authentication code under the condition that the detected state of the vehicle is the predetermined state; and resets the transmission counter and the reception counter under the condition that the detected state of the vehicle is the predetermined state.
-
Specification