Data communication authentication system for a vehicle and network coupling device for a vehicle
Patent Information
- Application Number
- DE102013101508
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2012-03-23
- Filing Date
- 2013-02-15
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2033-02-15
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
The present invention relates to a vehicle data communication authentication system in which an external device is connectable to an electronic control unit (ECU=electronic control unit). The present disclosure further relates to a vehicle gateway device connected to the vehicle data communication authentication system to disconnect the external device from the ECU. The present disclosure further relates to a vehicle data communication system including a vehicle data communication device connected to a plurality of nodes through a bus. The present disclosure further relates to a vehicle data communication device.It is known that data communication between electronic control units (ECUs) serving as nodes is performed by a bus, and data communication between an ECU and an external device is performed by a bus. When data communication is performed between the external device and the ECU, it becomes possible to access the ECU by connecting the external device to the bus, and it becomes possible to rewrite a control program of the ECU and read out data from the ECU (see, for example, Patent Document 1).Patent Document 1: JP 2004-192277ASpecifications of data communication standards and connection interfaces between an external device and a bus are publicly available. Thus, not only can a proper worker connect a proper external device to the bus, but also a third party having a malicious intention can connect an improper external device to the bus.When the incorrect external device is connected to the bus, the vehicle may be subjected to an attack such as an incorrect rewriting of the control program of the ECU, an incorrect reading of the data from the ECU (so-called masking), or the like. A controller area network (CAN=controller area network) is a data communication standard between the external device and the ECU. In the CAN, since a data frame is transmitted, wire tapping and analysis are relatively easy. The CAN additionally provides a data field for storing data, an identification field for identifying a type of a data frame, a cyclic redundancy check (CRC=cyclic redundancy check) field for storing a CRC check, etc. In the CAN, a source field for identifying a source (source address) of a data frame and an authentication field for authenticating a data frame are not provided.Due to the foregoing, protection measures against the incorrect connection of the external device to the bus are desired.Further, improvement of security in data communication between ECUs and between the external device and the ECU is desired. Although it may be possible to improve security by providing a node having a data encryption function, this leads to various difficulties such as configuration complication, processing load increase, and the like.In view of the foregoing, an object of the present disclosure is to provide a vehicle data communication authentication system and a vehicle gateway device that can prevent damage resulting from connection of an incorrect external device and can increase safety even when the incorrect external device is connected to a bus connected to an ECU.This object is achieved by the features of independent claims 1, 9, 15 and 17. Further advantageous embodiments and further developments are the subject matter of the claims that follow.JP2003324459A achieves the object of providing a communication system in which the costs associated with a safety function of a communication device are to be reduced. The communication system is provided with communication devices for receiving a packet transmitted from the Internet or the like outside a vehicle, and a gateway for controlling transmission of the packet inside an in-vehicle LAN (CL-LAN and OP-LAN). Each of the communication devices has a transmission means for transmitting the received packet to the gateway regardless of its transmission destination, and the gateway has an authentication means for authenticating the transmission source of the packet transmitted from the communication devices. When the authentication is completed, the packet is forwarded to the transmission destination.US20110083161A1 relates to a vehicle, a maintenance device, a maintenance service system and a maintenance service method. Here, the vehicle includes electronic control units and performs an authentication process to judge the validity of an external device outside the vehicle, e.g., a maintenance device that attempts to access the electronic control unit. Based on the result of the judgment, the vehicle decides an area in which the maintenance device can access the electronic control device. In the authentication, for example, both the maintenance device and the vehicle each use an authentication microcomputer. It is thus possible to prevent an external device outside the vehicle from making undesired access to the electronic control device of the vehicle.DE10230351A1 relates to a vehicle relay device, an in-vehicle communication system, a failure diagnosis system, a relay device, a server device, and a detection / diagnosis program. Here, a gateway ECU (50) identifies a requested ECU from a plurality of ECUs (11 to 22) via a LAN (10) based on an access request of an external device (3) for requesting access to the requested ECU, and determines whether the external device (3) is authorized to access the ECUs (11 to 22) based on first authentication information of the external device (3). Further, the gateway ECU (50) determines whether there is a failure of the vehicle at present based on data sent from each ECU (11 to 22) via the LAN (10). When the failure exists, the gateway ECU ( 50) identifies a failed part that causes the current failure in the vehicle based on information sent from each corresponding ECU ( 11 to 22) by executing a detection / diagnostic program obtained from a client server ( 140).It is further an object of the present disclosure to provide a vehicle data communication system and a vehicle data communication device that can improve security in data communication while minimizing a node load even when a node does not have a data encryption function.According to a first example of embodiments, a vehicle data communication authentication system in which an external device is connectable to a bus connected to electronic control units (ECUs) including an access target ECU includes an authenticator, an authentication controller, and an authentication maintainer. The authentication device performs authentication of the external device connected to the bus. The authentication control means determines whether or not a result of the authentication of the external device performed by the authentication means is affirmative. When it is determined that the result of authentication of the external device is affirmative, the authentication control means sets an authenticated state and permits data communication between the external device and the access target ECU. When it is determined that the result of authentication of the external device is not affirmative, the authentication controller does not set the authenticated state and prohibits the data communication between the external device and the access target ECU. After the authenticated state is set by the authentication controller, the authentication maintaining device maintains the authenticated state during one of a first duration that is a predetermined time period elapsed since the authenticated state was set, a second duration that is a duration during which an authenticated state maintenance request is input to the authentication controller, a third duration that is a duration during which a vehicle state satisfies a predetermined condition, and a fourth duration that is a duration during which the bus is in a communicating state.According to a second example of embodiments, a vehicle data communication authentication system in which an external device is connectable to a bus connected to electronic control units (ECUs) including an access target ECU includes an authenticator, an authentication controller, and an authentication maintainer. The authentication device performs authentication of a vehicle state. The authentication control means determines whether or not a result of the authentication of the vehicle state performed by the authentication means is affirmative. When it is determined that the result of authentication of the vehicle state is affirmative, the authentication control means sets an authenticated state and permits data communication between the external device and the access target ECU. When it is determined that the result of authentication of the vehicle state is not affirmative, the authentication controller does not set the authenticated state and prohibits the data communication between the external device and the access target ECU. After the authenticated state is set by the authentication controller, the authentication maintaining device maintains the authenticated state within either a first duration that is a predetermined time period elapsed since the authenticated state was set, a second duration that is a duration during which an authenticated state maintenance request is input to the authentication controller, a third duration that is a duration during which the vehicle state satisfies a predetermined condition, or a fourth duration that is a duration during which the bus is in a communicating state.According to a third example of embodiments, in a vehicle data authentication system in which an external device is connectable to a bus connected to electronic control units (ECUs) including an access target ECU, and in which the vehicle gateway disconnects the external device from the ECUs, a vehicle gateway device includes an authentication device, an authentication control device, and an authentication maintenance device. The authentication device performs authentication of the external device connected to the bus. The authentication control means determines whether or not a result of the authentication of the external device performed by the authentication means is affirmative. When it is determined that the result of authentication of the external device is affirmative, the authentication control means sets an authenticated state and permits data communication between the external device and the access target ECU. When it is determined that the result of authentication of the external device is not affirmative, the authentication controller does not set the authenticated state and prohibits the data communication between the external device and the access target ECU. After the authenticated state is set by the authentication controller, the authentication maintainer maintains the authenticated state during one of a first duration that is a predetermined time period elapsed since the authenticated state was set, a second duration that is a duration during which an authenticated state maintain request is input to the authentication controller ( 102 e), a third duration that is a duration during which a vehicle state satisfies a predetermined condition, and a fourth duration that is a duration during which the bus is in a communicating state.According to a fourth example of embodiments, in a vehicle data authentication system in which an external device is connectable to a bus connected to electronic control units (ECUs) including an access target ECU, and in which the vehicle gateway disconnects the external device from the ECUs, a vehicle gateway device includes an authentication device, an authentication control device, and an authentication maintenance device. The authentication device performs authentication of a vehicle state. The authentication control means determines whether or not a result of the authentication of the vehicle state performed by the authentication means is affirmative. When it is determined that the result of authentication of the vehicle state is affirmative, the authentication control means sets an authenticated state and permits data communication between the external device and the access target ECU. When it is determined that the result of authentication of the vehicle state is not affirmative, the authentication controller does not set the authenticated state and prohibits the data communication between the external device and the access target ECU. After the authenticated state is set by the authentication controller, the authentication maintainer maintains the authenticated state during one of a first duration that is a predetermined time period elapsed since the authenticated state was set, a second duration that is a duration during which an authenticated state maintenance request is input to the authentication controller ( 102 e), a third duration that is a duration during which the vehicle state satisfies a predetermined condition, and a fourth duration that is a duration during which the bus is in a communicating state.According to the above vehicle data communication authentication systems and the vehicle gateway devices, even when an incorrect external device is connected to a bus connected to an ECU, it is possible to prevent damage resulting from connection of the incorrect external device, and possible to improve safety.According to a fifth example of embodiments, a vehicle data communication system includes a vehicle data communication device connected to nodes through buses. The vehicle data communication apparatus includes an encryption information storage device and an encryption control device. For each combination of a bus connected to a data source node and another bus connected to a data destination node, the encryption information storage means stores encryption information indicating whether or not data is to be encrypted, wherein the data source node is a node which is a source of the data, and the data destination node is another node which is a destination of the data. In cases where the vehicle data communication apparatus receives the data from a first node through a first bus and transmits the received data to a second node through a second bus, the encryption control means determines whether (i) the received data is to be encrypted and the encrypted data is to be transmitted to the second node through the second bus, or (ii) whether the received data is to be transmitted to the second node through the second bus without encrypting the received data, based on the encryption information stored in the encryption information storage means. Each node comprises a decryption information storage means and a decryption control means. For each bus connected to the data source node, the decryption information storage means stores encryption information indicating whether or not the data is to be decrypted. In cases where the node receives the data from the vehicle data communication device, the decryption control means determines whether (i) the received data is to be decrypted and processed or (ii) the received data is to be processed without decrypting the received data based on the decryption information stored in the decryption information storage means.According to a sixth example of embodiments, a vehicle data communication system includes a vehicle data communication device connected to nodes through buses. The vehicle data communication apparatus includes an encryption information storage device and an encryption control device. For each combination of a data source node and a data destination node, the encryption information storage means stores encryption information indicating whether or not data is to be encrypted, wherein the data source node is one node which is a source of the data, and the data destination node is another node which is a destination of the data. In cases where the vehicle data communication apparatus receives the data from a first node through a first bus and transmits the received data to a second node through a second bus, the encryption control means determines whether (i) the received data is to be encrypted and the encrypted data is to be transmitted to the second node through the second bus, or (ii) the received data is to be transmitted to the second node through the second bus without encrypting the received data, based on the encryption information stored in the encryption information storage means. Each node comprises a decryption information storage means and a decryption control means. For each data source node, the decryption information storage means stores decryption information indicating whether or not the data is to be decrypted. In cases where the node receives the data from the vehicle data communication device, the decryption control means determines whether (i) the received data is to be decrypted and processed or (ii) the received data is to be processed without decrypting the received data based on the decryption information stored in the decryption information storage means.According to a seventh example of embodiments, a vehicle data communication system includes a vehicle data communication device connected to nodes through buses. The vehicle data communication apparatus includes an encryption information storage device and an encryption control device. For each identification indicating a class of a data frame storing data, the encryption information storage means stores encryption information indicating whether or not the data is to be encrypted. In cases where the vehicle data communication apparatus receives the data from a first node through a first bus and transmits the received data to a second node through a second bus, the encryption control means determines whether (i) the received data is to be encrypted and the encrypted data is to be transmitted to the second node through the second bus, or (ii) the received data is to be transmitted to the second node through the second bus without encrypting the received data, based on the encryption information stored in the encryption information storage means. Each node comprises a decryption information storage means and a decryption control means. For each identification indicating the type of the data frame storing the data, the decryption information storage means stores decryption information indicating whether or not the data is to be decrypted. In cases where the node receives the data from the vehicle data communication device, the decryption control means determines whether (i) the received data is to be decrypted and processed or (ii) the received data is to be processed without decrypting the received data based on the decryption information stored in the decryption information storage means.According to an eighth example of embodiments, a vehicle data communication system includes a vehicle data communication device connected to nodes through buses. The vehicle data communication apparatus includes an encryption information storage device and an encryption control device. For each data storage area of a data frame storing data, the encryption information storage means stores encryption information indicating whether or not the data is to be encrypted. In cases where the vehicle data communication apparatus receives data from a first node through a first bus and transmits the received data to a second node through a second bus, the encryption control means determines whether (i) the received data is to be encrypted and the encrypted data is to be transmitted to the second node through the second bus, or (ii) the received data is to be transmitted to the second node through the second bus without encrypting the received data, based on the encryption information stored in the encryption information storage means. Each node comprises a decryption information storage means and a decryption control means. For each data storage area of the data frame storing the data, the decryption information storage means stores decryption information indicating whether or not the data is to be decrypted. In cases where the node receives the data from the vehicle data communication device, the decryption control means determines whether (i) the received data is to be decrypted and processed or (ii) the received data is to be processed without decrypting the received data based on the decryption information stored in the decryption information storage means.According to the vehicle data communication systems and the vehicle data communication devices, it is possible to improve security in data communication while minimizing a node load even when a node does not have a data encryption function.The foregoing and other objects, characteristics and advantages of the present disclosure will become more apparent from the following detailed description made with reference to the accompanying drawings. The following are shown: FIG. 1 is a functional block diagram illustrating a data communication authentication system of a first example of a first embodiment; FIG. 2 is a sequence diagram illustrating operations; FIG. 3 is a flowchart illustrating operations performed after the same in FIG. 2 ; FIG. 4 is a flowchart illustrating operations in cases where a vehicle gateway device discards a data request command in response to a negative result of authentication; FIG. 5 is a flowchart illustrating operations in cases where a vehicle gateway device has a timer for maintaining an authenticated state; FIG. 6 is a flowchart illustrating operations in cases where a vehicle gateway device maintains an authenticated state within a period during which an authenticated state maintenance request is input from an external device; FIG. 7 is a flowchart illustrating operations in cases where a vehicle gateway device maintains an authenticated state within a period during which an authenticated state maintenance request is input from an access target ECU; FIG. 8 is a flowchart illustrating operations in cases where a vehicle gateway device maintains an authenticated state within a period during which a vehicle state satisfies a predetermined condition; FIG. 9 is a flowchart illustrating operations in cases where a vehicle gateway device maintains an authenticated state within a period during which a bus is in a communicating state; FIG. 10 is a functional block diagram illustrating a data communication authentication system of a second example of the first embodiment; FIG. 11 is a flowchart illustrating operations of the second example of the first embodiment; FIG. 12 is a functional block diagram illustrating a data communication authentication system of a third example of the first embodiment; FIG. 13 is a flowchart illustrating operations of the third example of the first embodiment; FIG. 14 is a functional block diagram illustrating a data communication authentication system of a fourth example of the first embodiment; FIG. 15 is a flowchart illustrating operations of the fourth example of the first embodiment; FIG. 16 is a functional block diagram illustrating a data communication authentication system of a fifth example of the first embodiment; FIG. 17 is a flowchart illustrating operations of the fifth example of the first embodiment; FIG. 18 is a functional block diagram illustrating a data communication authentication system of a sixth example of the first embodiment; FIG. 19 is a flowchart illustrating operations of the sixth example of the first embodiment; FIG. 20 is a flowchart illustrating operations of a seventh example of the first embodiment; FIG. 21 is a flowchart illustrating operations of an eighth example of the first embodiment; FIG. 22 is a flowchart illustrating operations of a ninth example of the first embodiment; FIG. 23 is a flowchart illustrating operations of a tenth example of the first embodiment; FIG. 24 is a functional block diagram illustrating a vehicle data communication system of a first example of a second non-claimed embodiment; FIG. 25 is a flowchart illustrating operations in a first situation according to the first example of the second non-claimed embodiment; FIG. 26 is a flowchart illustrating operations in a second situation according to the first example of the second non-claimed embodiment; FIG. 27 is a flowchart illustrating operations in a third situation according to the first example of the second non-claimed embodiment; FIG. 28 is a block diagram illustrating an encryption table and a decryption table according to the first example of the second non-claimed embodiment; FIG. 29 is a functional block diagram illustrating a vehicle data communication system of a second example of the second non-claimed embodiment; FIG. 30 is a block diagram illustrating an encryption table and a decryption table according to the second example of the second non-claimed embodiment; FIG. 31 is a functional block diagram illustrating a vehicle data communication system of a third example of the second non-claimed embodiment; FIG. 32 is a diagram illustrating a configuration of a data frame of the second non-claimed embodiment; and FIG. 33 is a functional block diagram illustrating a vehicle data communication system of a fourth example of the second non-claimed embodiment.Embodiments will be described with reference to the drawings. Throughout the following embodiments, like reference numerals are used to refer to like parts.(FIRST EMBODIMENT)A first embodiment will be described with reference to Figs. 1 to 23.(First Example of First Embodiment)A first example of the first embodiment will be described with reference to Figs. 1 to 9.As shown in FIG. 1, in a vehicle data communication authentication system 101, a vehicle gateway device 102 is connected to a bus 106, so that the gateway device 102 disconnects (separates) a plurality of electronic control units (ECUs) 103, 104 from an external device 105 (an operated device) operable by an operator. In FIG. 1, two ECUs are illustrated as the plurality of ECUs 103, 104. In the present embodiment, a portion of the bus 106 on an ECU side of the gateway device 102 is referred to as an ECU side bus 106 a. That is, the ECU-side bus 106 ais a bus for transmitting data between the gateway device 102 and the ECUs 103, 104. A portion of the external device side bus 106 of the gateway device 102 is referred to as an external device side bus 106 b. That is, the external device side bus 106 bis a bus for transmitting data between the gateway device 102 and the external device 105.The ECUs 103, 104 may include, for example, an engine ECU for controlling an operation of the engine, a door lock ECU for controlling an operation of a door lock mechanism, a navigation ECU for controlling a navigation operation, a meter ECU for controlling an operation of a meter (a display device), or the like. The number of the ECUs may be two, three, or more, or may be one. The external device side bus 106b is provided with a connector 107 to which the external device 105 is detachably connectable. By being connected to the connector 107, the external device 105 is connected to the external device side bus 106 band is enabled to perform data communication with the gateway device 102.The bus 106 adopts a control area network (CAN) as a data communication method. The CAN communication defines a data field for storing data, an identification field for identifying a type of a data frame, a cyclic redundancy check (CRC) field for storing a CRC check, etc. However, in the CAN communication, a source field for identifying a source (source address) of a data frame and an authentication field for authenticating a data frame are not defined.The gateway apparatus 102 includes a controller 102 a, an ECU-side bus communicator 102 b, an external device-side bus communicator 102 c, an authenticator 103 d, an authentication controller 102 e, a communication controller 102 f, a filter 102 g, and an authentication maintainer 102 a. The authentication device 102 dmay correspond to an example of an authentication means or an authentication device and an example of a second authentication means or a second authentication device. The authentication controller 102 emay correspond to an example of an authentication controller or an authentication controller and an example of an authentication controller or an authentication controller. The communication control device 102 fmay correspond to an example of a communication control means or a communication control device, and an example of a communication control means or a communication control device. The authentication maintaining means 102h may correspond to an example of an authentication maintaining means or an authentication maintaining means and an example of an authentication maintaining means or an authentication maintaining means.The controller 102 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 102 acontrols operations of the ECU-side bus communicator 102 b, the external device-side bus communicator 102 c, the authenticator 102 d, the authentication controller 102 e, the communication controller 102 f, the filter device 102 g, and the authentication maintaining device 102 h. The ECU-side bus communicator 102 bis connected to the ECU-side bus 106 aand controls communication such as data transmission and data reception with the ECUs 103 and 104. The external device side bus communication device 102 cis connected to the external device side bus 106 b. In a state where the external device 105 is connected to the connector 107, the external device-side bus communicator 102 ccontrols communications such as data transmission and data reception with the external device 105.In a situation where the external device 105 is connected to the connector 107, the authentication device 102 dperforms authentication of the external device 105 (a procedure of authentication will be described later). Based on a result of the authentication of the external device 105 by the authentication device 102 d, the authentication control device 102 esets whether the data communication between the external device 105 and an access target ECU should be allowed or prohibited. More specifically, when the result of authentication of the external device 105 is affirmative, the authentication controller 102 esets an authenticated state and permits data communication between the external device 105 and the access target ECU. When the result of authentication of the external device 105 is negative (not affirmative), the authentication controller 102 edoes not set the authenticated state and prohibits the data communication between the external device 105 and the access target ECU.Regardless of whether or not the result of authentication of the external device 105 performed by the authentication device 102 dis affirmative, the communication control device 102 fsets whether or not data communication between the external device 105 and an access target ECU should be permitted or prohibited. One reason for this exceptional permission is as follows. In data communication for a vehicle, since it is necessary to always allow a certain part of the data communication, the communication controller 102 fexclusively allows the data communication for specified data, for example, a regulation message described below, between the external device 105 and the access target ECU. Exceptionally, in a situation where the authentication controller 102 eor the communication controller 102 fbids the data communication between the external device 105 and the access target ECU, the filtering device 102 gallows only a specified data communication. When the authentication controller 102 esets the authenticated state, the authentication maintainer 102 h maintains the set authenticated state. That is, when the authentication controller 102 esets the authenticated state, the authentication maintainer 102 htentains permitting the data communication between the external device 105 and the access target ECU for a duration.The controller 102a has an encryption function and a decryption function. More specifically, when the external device side bus communication device 102c receives a clear text command from the external device 105, the control device 102a encrypts the received clear text command into an encrypted text command and rewrites the same. When the ECU-side bus communication device 102 receives an encrypted text command from the ECU 103 or ECU 104, the controller 102 adecodes and rewrites the received encrypted text command to a plain text command. The encryption and decryption may use public key cryptography in which the encryption is performed with a public key and the decryption is performed with a private key. The encryption and decryption may alternatively use common key cryptography in which the encryption and decryption are performed with a common key (English).The ECU 103 includes a controller 103 a, a bus communicator 103 b, and a vehicle state input device 103 c. The controller 103 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 103 acontrols the bus communicator 103 band the vehicle state input device 103 c. The bus communicator 103 bis connected to the ECU-side bus 106 aand controls communication operations such as data transmission and data reception with the gateway device 102. The vehicle state input device 103 c receives and inputs a vehicle state from an external device (for example, various sensors, various ECUs, a wireless communication device, etc.). The vehicle state input by the vehicle state input device 103 cmay be, for example, an immobilizer state (locked state or unlocked state), an ignition (IG; IG=ignition) switch state (on and off), a door state (open state or closed state), or the like.The ECU 104 includes a controller 104 aand a bus communicator 104 b. The controller 104 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 104 acontrols the bus communicator 104 b. The bus communicator 104 bis connected to the ECU-side bus 106 aand controls communication operations such as data transmission and data reception with the gateway device 102.Note that, when the ECU 103 or 104 is, for example, the engine ECU, the ECU 103 or 104 includes a function block (not shown) for controlling the operation of the engine in addition to the above-described function blocks. When the ECU 103 or 104 is the door lock ECU, the ECU 103 or 104 includes, in addition to the above-described function blocks, a function block (not shown) for controlling the operation of the door lock mechanism. The same is applicable in cases where the ECU 103 or 104 is an ECU other than the engine EU and the door lock ECU. Both the ECU 103 and the ECU 104 alternatively receive the vehicle states of externals.The external apparatus 105 has a controller 105 a, a bus communicator 105 b, and an input / output interface (IF; IF=interface) 105 c. The controller 105 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 105 acontrols operations of the bus communicator 105 band the input / output interface (IF) 105 c. The bus communicator 105 bis connected to the external device side bus 106 band controls communication operations such as data transmission and data reception with the gateway device 102. The input / output IF 105 chas a function of accepting an input operation from the operator operating the external device 105, and has a function of outputting a message by displaying data, for example.More specifically, by connecting the external device 105 to the connector 107 and performing the input operation to the external device 105, the operator can rewrite the control program of the access target ECU and read data from the access target ECU. The external device 105 is not limited to a dedicated device for rewriting the control program of the access target ECU and reading out the data from the access target ECU. The external device 105 may be, for example, a mobile phone, a personal digital assistant (Personal Digital Assistant), or the like having the foregoing functions.Operations are described with reference to Figs. 2 to 9. It is now assumed that the ECU 104 is the access target ECU, and that the external device 105 sends a data request command to the access target ECU 104 to rewrite the control program of the access target ECU 104 or read data from the access target ECU 104.When the controller 105 aof the external device 105 determines that the external device 105 is connected to the connector 107, the controller 105 atransmits an authentication start value request command from the bus communicator 105 bto the gateway device 102. When the controller 102 aof the gateway device 102 determines that the external device side bus communicator 102 c receives the authentication start value request command from the external device 105, the controller 102 agenerates an authentication start value at B 101 (see FIG. 2 ) and transmits the generated authentication start value from the external device side bus communicator 102 cto the external device 105. The authentication start value includes information used in generating the authentication code described below, and is written as a random number.When the controller 105 aof the external device 105 determines that the bus communicator 105 bceeds the authentication start value from the gateway device 102, the controller 105 agenerates an authentication code (while associating the authentication code with the authentication start value) based on the authentication start value at A 101, and the controller 105 atransmits the generated authentication code from the bus communicator 105 bto the gateway device 102. The authentication code is expressed as a random number like the authentication start value. In the foregoing, it is assumed that the external device 105 does not have the authentication start value. However, the external device 105 may have the authentication start value. With this configuration, the external device 105 can generate the authentication code based on the authentication start value possessed by the external device 105 itself, and send the generated authentication code from the bus communication device 105 bto the gateway device 102.In the gateway device 102, when the controller 102 adetermines that the external device side bus communicator 102 c receives the authentication code from the external device 105, the controller 102 aexecutes B 102. More specifically, at B 102, the controller 102 aperforms a counter check between the authentication start value sent to the external device 105 and the authentication code received from the external device 105, and determines whether or not the result of the authentication of the external device 105 is affirmative.More specifically, a correct external device connected to the connector 107 by a correct operator is provided with a function of (i) properly generating an authentication code based on the authentication start value received from the gateway device 102, and (ii) transmitting the properly generated authentication code to the gateway device 102. Therefore, when the correct operator connects the correct external device to the connector 107, there is a match between the authentication start value and the authentication code, and the result of the authentication of the external device 105 becomes affirmative.An incorrect external device that can be connected to the connector 107 by a third party who has a malicious intention is not provided with the function of properly generating the authentication based on the authentication start value received from the gateway device 102. The incorrect external device is thus unable to properly generate an authentication code or send the authentication code to the gateway device, or may send an incorrect authentication code to the gateway device 102. As a result, when a third party having a malicious intention connects an incorrect external device to the connector 107, there is a mismatch between the authentication start value and the authentication code, and the result of the authentication of the external device 105 does not become affirmative.In the gateway device 102, when the controller 102 adetermines that the result of authentication of the external device 105 is affirmative and the external device 105 is a correct external device (YES in B 103), the controller 102 aexecutes B 104. At B 104, the controller 102 atransmits an authentication result affirmative response command indicating that the result of the authentication is affirmative from the external device-side bus communication device 102 cto the external device 105, and the controller 102 afurther sets the authenticated state, which is a state where the external device 105 is authenticated. Within a period during which the authenticated state is set, the controller 102 aallows reception of a data request command from the external device 105 and allows data communication. Within a period during which the authenticated state is not set, the controller 102 abbids reception of the data request command from the external device 105 and prohibits the data communication.In the external apparatus 105, when the controller 105 aacquires, for example, the input operation from the operator, after the controller 105 adetermines that the bus communicator 105 bceeds the affirmative authentication response command from the gateway device 102, the controller 105 atransmits the data request command from the bus communicator 105 bto the gateway device according to the input operation. Note that the data request command sent from the external device 105 to the gateway device 102 includes information for identifying the access destination ECU 104 which is a destination of the data request command.The controller 102 aof the gateway device 102 determines that the external device side bus communicator 102 c receives the data request command from the external device 105, and the controller 102 aperforms B 105. More specifically, at B 105, the controller 102 aanalysiss the received data request command and determines whether or not it is necessary to perform the authentication of the external device 105. For example, by determining whether the data request command is a regulation message (a regulation command) or a non-regulation message (a non-regulation command), the controller 102 adetermines whether or not it is necessary to perform the authentication of the external device 105. The right regulation message is a message imposing a obligation to respond in response to the request from the external device 105. The regulation message can be, for example, a message requesting data via, for example, a machine system or the like. The non-regulation message is a message that does not impose a obligation to respond in response to the request from the external device 105. Note that a determination of whether the data request command is a feedback control message or a non-feedback control message may correspond to a determination of whether the access target ECU 104, which is a transmission determination location of the data request command, is a feedback control ECU or a non-feedback control ECU.When the controller 102 adetermines that the data request command is the non-regulation message and determines that it is necessary to perform the authentication of the external device 105 (YES in B 105), the controller B 106 performs. At B 106, the controller 102 adetermines whether the result of the authentication previously performed is affirmative or negative. When the controller 102 adetermines that the result of the authentication previously performed is affirmative (YES in B 106), the process proceeds to B 107. At B 107, the controller 102 adetermines whether or not it is necessary to encrypt the data request command. Specifically, the controller 102 adetermines whether the data request command is the regulation message or the non-regulation message, thereby determining whether or not it is necessary to encrypt the data request command.When the controller 102 adetermines that the data request command is the non-feedback message and determines that it is necessary to encrypt the data request command (YES at B 107), the controller 102 aacrypts the data request command (B 108), and sends the encrypted data request command from the bus communicator 102 bof the ECU side to the access target ECU 104. When the controller 102 adetermines that the data request command is the regulation message and determines that it is not necessary to encrypt the data request command (NO at B 107), the controller 102 atransmits, without encrypting the data request command, the data request command from the ECU-side bus communication device 102 bto the access target ECU 104.As shown in FIG. 3, in the access target ECU 104, when the controller 104 adetermines that the bus communicator 104 bceeds the data request command from the vehicle gateway device 102, the controller 104 adetermines whether or not it is necessary to decrypt the received data request command (C 101). More specifically, when the controller 104 adetermines that the data request command received from the vehicle gateway device 102 is the encrypted data request command, the controller 104 adetermines that it is necessary to decrypt the data request command (YES at C 101). In this case, the controller 104 adecommits the data request command (C 102), and performs data processing according to the content of the data request command (C 103). The data processing may include rewriting of a control program, reading of data, or the like. When the controller 104 adetermines that the data request command received from the vehicle gateway device 102 is not encrypted, the controller 104 adetermines that it is not necessary to decrypt the data request command (NO at C 101). In this case, the controller 104 aexecutes the data processing according to the content of the data request command (C 103).After completion of the data processing, the controller 104 adetermines whether or not it is necessary to encrypt a data response command indicating the completion of the data processing (C 104). For example, when the data request command received from the gateway device 102 is encrypted, the controller 104 adetermines that it is necessary to encrypt a data response command indicating the completion of the data processing. When the data request command received from the gateway device 102 has not been encrypted, the controller 104 adetermines that it is not necessary to encrypt the data response command indicating the completion of the data processing. Importance degrees of data response commands may alternatively be preset, and the controller 104 amay determine whether or not it is not necessary to encrypt the data response command indicating the completion of the data processing regardless of whether the data request command received from the gateway device 102 was encrypted.When the controller 104 adetermines that it is necessary to encrypt the data response command (YES at C 104), the controller 104 aacrypts the data response command (C 105) and sends the encrypted data response command from the bus communicator 104 bto the vehicle gateway device 102. When the controller 104 adetermines that it is not necessary to encrypt the data response command (NO at C 104), the controller 104 atransmits, without encrypting the data response command, the data response command from the bus communicator 104 bto the vehicle gateway device 102.In the vehicle gateway device 102, the controller 102 adetermines that the ECU-side bus communicator 102 bceeds the data response command from the access target ECU 104, and the controller 102 adetermines whether or not it is necessary to decrypt the received data response command (B 109). More specifically, when the controller 102 adetermines that the data response command received from the access target ECU 104 is encrypted, the controller 102 adetermines that it is necessary to decrypt the received data response command (YES in B 109). In this case, the controller 102 adecommodates the encrypted data response command (B 110), and sends the decrypted data response command from the external device side bus communicator 102 cto the external device 105. When the controller 102 adetermines that the data response command received from the access target ECU 104 is not encrypted, the controller 102 adetermines that it is not necessary to decrypt the received data response command (NO at B 109). In this case, the controller 102 atransmits, without decrypting, the data response command from the external device side communication device 102 cto the external device 105.As described above, in response to connecting the external device 105, the controller 102 aof the vehicle gateway device 102 performs the authentication of the external device 105. When a result of authentication of the external device 105 is affirmative (YES in B 103), the controller 102 aspecifies the external device 105 connected to the connector 107 as a correct external device 105 and sets the authenticated state (step B 104) as illustrated in FIG. 2. Thereafter, the controller 102a permits reception of a data request command regardless of whether the data request command is a regulation message or a non-regulation message.As illustrated in FIG. 4, when the controller 102 adetermines that the result of authentication of the external device 105 is negative (NO at B 103), the controller 102 aspecifies the external device 105 connected to the connector 107 as an incorrect external device and does not set the authenticated state. Therefore, when the controller 102 adetermines that a data request command from the external device 105 is a non-regulation message requiring the authentication, the controller 102 adebroadcasts the data request command and rejects the reception of the data request command to reject the data communication (B 111), because the result of the authentication previously performed is negative and the authenticated state is not set. That is, at B 111, the controller 102 arequests the data communication. In this case, rejecting the receipt of the data request command may include invalidating the data request command without discarding the data request command. That is, rejecting reception of the data request command may include prohibiting processing in accordance with the content of the data request command.The foregoing is directed to a situation in which, on an as-needed basis, the vehicle gateway device 102 encrypts the data request command received from the external device 105. The external device 105 may alternatively have a function of encrypting the data request command and may encrypt the data request command on a demand basis.As described above, when the controller 102 adetermines that the result of the authentication is affirmative, the controller 102 asets the authenticated state to allow the reception of the data request command from the external device 105. A period of maintaining the authenticated state is managed in the following ways.More specifically, the controller 102 amanipulates the authenticated state maintenance period based on the following first to fourth periods: (1) A first period from a time when the authenticated state has been set to a time when a predetermined time has elapsed. (2) A second period during which an authenticated state maintenance request signal is input from an external. (3) A third period during which a vehicle state satisfies a predetermined condition. (4) A fourth period during which the bus 106 is in a communicating state.The first to fourth time periods are shown below.(1) The first period of time (from a time when the authenticated state has been set to a time when a predetermined time has elapsed)As shown in FIG. 5, in the vehicle gateway device 102, the controller 102 asets the authenticated state (B 104), starts an authentication maintenance timer for counting a predetermined time (B 112), and monitors whether or not the authentication maintenance timer reaches the predetermined time (B 113). When the controller 102 adetermines that the authentication maintenance timer reaches the predetermined time (YES in B 113), the controller 102 aends the authenticated state. In this example, the time period of maintaining the authenticated state is managed by the vehicle gateway device 102 alone. The predetermined time to be counted by the authentication maintenance timer may be an initial value set at the generation or may be a set value set and input by the operator operating the external device 105.(2) The second period (a period during which the authenticated state maintenance request signal is input from an external)An example is shown in FIG. 6. In FIG. 6, after the authenticated state is set (B 104), the controller 102 aof the vehicle gateway device 102 maintains the authenticated state within a period during which the controller 102 adetermines that the authenticated state maintenance request command is received by the external device side bus communicator 102 c. Upon determining that an authenticated state completion request command is received by the external device side bus communication device 102 c, the control device 102 aends the authenticated state (B 114). In this example, the external device 105 directs control of the authenticated state maintenance period.Another example is shown in FIG. 7. In FIG. 7, after setting the authenticated state (B 104), the controller 102 aof the vehicle gateway device 102 transmits an authenticated state notification command from the bus communicator 102 bof the ECU side to the access target ECU 104, so that the access target ECU 104 transmits the authenticated state maintenance request command. Within the period during which the controller 102 adetermines that the authenticated state maintenance request command is received from the access target ECU 104 through the ECU-side bus communication device 102 b, the controller 102 apretains the authenticated state. Upon determining that the authenticated state completion request command is received from the access target ECU through the ECU-side bus communication device 102 b, the controller 102 aends the authenticated state (B 114). In this example, the access target ECU 104 directs the control of the authenticated state maintenance period. Note that the predetermined period during which the external device 105 or the access target ECU 104 periodically transmits the authenticated state maintenance request command to the vehicle gateway device 102 may be an initial value set upon generation or may be a set value set and input by the operator operating the external device 105.(3) The third period (a period during which the vehicle state satisfies the predetermined condition)As shown in FIG. 8, in the vehicle gateway device 102, after setting the authenticated state (B 104), the controller 102 adetermines whether or not the vehicle state satisfies a predetermined condition by receiving the vehicle state from the ECU 104 through the ECU-side bus communicator 102 b(B 115). The predetermined condition may be, for example, one of: the immobilizer is in an unlocked state (released state); the ignition switch is off; and the door is in a closed state. That is, when at least one of the foregoing three conditions is satisfied, the controller 102 adetermines that the vehicle state satisfies the predetermined condition (YES in B 115). During a period of determining that the vehicle state satisfies the predetermined condition, the controller 102 acontaines the authenticated state. When the controller 102 adetermines that the vehicle state no longer satisfies the predetermined condition (NO at B 115), the controller 102 aends the authenticated state. In this case, the vehicle gateway device 102 directs the control of the authenticated state maintenance period.(4) The fourth time period (the time period during which the bus 106 is in the communicating state)As shown in FIG. 9, after setting the authenticated state (B 104), the controller 102 aof the vehicle gateway device 102 determines whether or not the bus is in the communicating state (B 116). More specifically, when the controller 102 adetermines that either the ECU-side bus communicator 102 bor the external device bus communicator 102 cis in the communicating state, the controller 102 adetermines that the bus 106 is in the communicating state (YES in B 116). During the period during which the controller 102 adetermines that the bus is in the communicating state, the controller 102 acontaines the authenticated state. Upon determining that the bus 106 is changed to a non-communicating state (NO at B 116), the controller 102 aends the authenticated state (B 114). In this case, the vehicle gateway device manages the authenticated state maintenance period based on the communicating state of the bus 106.As described above, in the present example of the first embodiment, the vehicle gateway device 102 is connected to the bus 106 to disconnect (separate) the external device 105 from the ECU 103 and the ECU 104. When the external device 105 is connected, the vehicle gateway device 102 performs the authentication of the external device 105. When a result of the authentication of the external device 105 is affirmative, the vehicle gateway device 102 sets the authenticated state so that the vehicle gateway device 102 allows reception of a subsequent data request command from the external device 105 regardless of whether or not the data request command is a non-regulation message requiring the authentication. When the result of authentication of the external device 105 is negative, the vehicle gateway device 102 does not set the authenticated state, so when the vehicle gateway device 102 determines that a subsequent data request command from the external device 105 is a non-feedback message requiring the authentication, the vehicle gateway device 102 rejects the reception of the data request command.According to the above configuration, even in cases where an incorrect external device is connected to the bus 106, the damage resulting from the connection of the incorrect external device can be prevented. As a result, it is possible to improve the safety. In order to achieve this advantage, it is not necessary to change the specifications of data communication between the external device 105 and the ECUs 103, 104. In addition, since the authenticated state maintenance period is managed, it is possible to avoid unnecessary extension of the data communication permitting period between the external device 105 and the access target ECU after the connection of the external device is disconnected. As a result, it is possible to further improve the safety. In addition, since the authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state are collectively performed by the vehicle gateway device 102, it is possible to achieve the foregoing advantages by adding the vehicle gateway device 102. It is therefore possible to achieve the foregoing advantages while minimizing a change of an existing system.In addition, during the period of prohibiting the data communication between the external device 105 and the access target ECU, the data communication of specified data (for example, a regulation message) between the external device 105 and the access target ECU is exceptionally permitted. Therefore, while preventing the damage resulting from the connection of the incorrect external device, it is possible to ensure the data communication of the specified data.(Second Example of First Embodiment)A second example of the first embodiment will be described with reference to FIGS. 10 and 11.In the first example of the first embodiment, the vehicle gateway device 102 performs the authentication of the external device 105, sets the authenticated state, and maintains the authenticated state. In a vehicle data communication authentication system 121 of the second example, one of the ECUs has an authentication function, so that one of the ECUs is referred to as an authentication ECU. This authentication ECU additionally performs the authentication of the external device 105, and the vehicle gateway device 102 sets the authenticated state and maintains the authenticated state.As shown in FIG. 10, in a vehicle data communication authentication system 111, the authentication ECU 103 includes an authenticator 103 d. The authentication device 103 dis provided as a substitute for the authentication device 103 dof the vehicle gateway apparatus 102 of the first example of the first embodiment. That is, the authentication device 103 dhas substantially the same function as the authentication device 103 d.As shown in FIG. 11, in the authentication ECU 103, when the controller 103 adetermines that the bus communicator 103 bhas received an authentication start value request command from the external device 105 through the vehicle gateway 102, the controller 103 aexecutes D 101 to D 103 corresponding to B 101 to B 103 executed by the vehicle gateway 102 as illustrated in the first embodiment. When the controller 103 adetermines that a result of authentication of the external device 105 is affirmative (YES in D 103), the controller 103 atransmits an affirmative response command of an authentication result indicating that the result of authentication is affirmative from the bus communication device 103 bto the vehicle gateway device 102.When the controller 102 aof the vehicle gateway device 102 determines that the ECU-side bus communicator 102 bhas received the affirmative response command of the authentication result from the authentication ECU, the controller 102 atransmits the affirmative response command of the authentication result to the external device 105 by using the external device-side communicator 102 c. Thereafter, the controller 102 aexecutes B 104 and B 112 to B 114 already illustrated in the first example. Specifically, the authentication ECU 103 performs the authentication of the external device 105, and the vehicle gateway device 102 sets the authenticated state. The vehicle gateway device 102 thereafter maintains the authenticated state until the predetermined time has elapsed since the authenticated state was set. In the foregoing, the authenticated state is maintained only within the predetermined period after the authenticated state is set. However, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the second example, the period of maintaining the authenticated state is managed in a manner similar to that in the first example. Therefore, for example, after interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the authentication ECU 103 performs the authentication of the external device 105, and since the vehicle gateway device 102 sets and maintains the authenticated state, the authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state are decentrally performed by the authentication ECU 103 and the vehicle gateway device 102.(Third Example of First Embodiment)A third example of the first embodiment will be described with reference to FIGS. 12 and 13. In the third example, the vehicle gateway device 102 connected to the bus 106 is absent. The authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state are performed by the authentication ECU 103.More specifically, as shown in FIG. 12, in a vehicle data communication authentication system 131, the authentication ECU 103 includes an authenticator 103 d, an authentication controller 103 e, a communication controller 103 f, a filter 103 g, and an authentication maintainer 103 h. The authentication device 103 d, the authentication control device 103 e, the communication control device 103 f, the filtering device 103 g, and the authentication maintaining device 103 heach have substantially the same function as the authentication device 102 d, the authentication control device 102 e, the communication control device 102 f, the filtering device 102 g, and the authentication maintaining device 102 dillustrated in the first example.As shown in FIG. 13, in the authentication ECU 103, the controller 103 adetermines that the bus communicator 103 bhas received an authentication start value request command from the external device 105 through the vehicle gateway device 102, the controller 103 aexecutes D 101 to D 103 corresponding to B 101 to B 103 executed by the vehicle gateway device 102 illustrated in the first example. When the controller 103 adetermines that a result of authentication of the external device 105 is affirmative (YES in D 103), the controller 103 atransmits an affirmative response command of an authentication result indicating that the result of authentication is affirmative to the external device 105 by using the bus communicator 103 b. The controller 103 afurther performs D 104 to D 107 corresponding to B 104 and B 112 to B 114 performed by the vehicle gateway device 102 of the first example. In the present example as well, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the third example, the period of maintaining the authenticated state is managed in a similar manner to that in the first example. Therefore, after, for example, interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the authentication ECU 103 performs the authentication of the external device 105, sets the authenticated state, and maintains the authenticated state, it is possible to omit the vehicle gateway device 102. In the present example, the access target ECU 104 may include an authentication controller 104 dand an authentication maintainer 104 gsuch that the authentication ECU 103 performs the authentication of the external device 105, and that the access target ECU 104 sets and maintains the authenticated state. That is, the authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state may be performed in a decentralized manner by a plurality of ECUs.(Fourth Example of First Embodiment)A fourth example of the first embodiment will be described with reference to FIGS. 14 and 15. In the fourth example of the first embodiment, the vehicle gateway device 102 is not connected to the bus 106. The authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state are performed by the access target ECU 104.More specifically, as shown in FIG. 14, in a vehicle data communication authentication system 131, the access target ECU 104 includes an authenticator 104 c, an authentication controller 104 d, a communication controller 104 e, a filter 104 f, and an authentication maintainer 104 g. The authentication device 104 c, the authentication control device 104 d, the communication control device 104 e, the filtering device 104 f, and the authentication maintaining device 104 geach have substantially the same functions as the authentication device 102 d, the authentication control device 102 e, the communication control device 102 f, the filtering device 102 g, and the authentication maintaining device 102 hillustrated in the first example.As shown in FIG. 15, when the controller 104 aof the access target ECU 104 determines that the bus communication device 104 bhas received the authentication start value request command from the external device 105, the controller 104 aexecutes C 106 to C 112 corresponding to D 101 to D 107 executed by the authentication ECU 103 of the third example. Further, in the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the fourth example, the period of maintaining the authenticated state is managed in a similar manner to that in the first example. It is therefore possible to avoid unnecessary lengthening of the period of time of permitting the data communication between the external device 105 and the access target ECU. As a result, for example, after disconnection of the external device, it is possible to improve the safety. In addition, since the access target ECU 104 performs the authentication of the external device 105, sets the authenticated state, and maintains the authenticated state, it is possible to omit the vehicle gateway device 102. In the present example, the authentication ECU 103 may include an authentication controller 103 eand an authentication maintainer 103 hsuch that the access target ECU 104 performs the authentication of the external device 105, and that the authentication ECU 103 sets and maintains the authenticated state. That is, the authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state may be performed in a decentralized manner by a plurality of ECUs.(Fifth Example of First Embodiment)A fifth example of the first embodiment is described with reference to FIGS. 16 and 17. As shown in FIG. 16, in the fifth example, a communication device 108 is connected to the ECU-side bus 106 a. A center (server) 109 communicable with the external device 105 and the communication device 108 via a wide area communication network (wide area communication network) is additionally present. The center 109 performs the authentication of the external device 105, and the vehicle gateway device 102 sets and maintains the authenticated state.More specifically, in a vehicle data communication authentication system 141, the center 109 includes an authenticator 109 a. The authentication device 109 ais provided as a substitute for the authentication device 102 dof the vehicle gateway apparatus 102 of the first example. The authentication device 109a has substantially the same function as the authentication device 102d shown in the first example.As shown in FIG. 17, when the center 109 determines that the center 109 has received the authentication start value request command from the external device 105, the center 109 performs E 101 to E 103 corresponding to B 101 to B 103 performed by the vehicle gateway device 102 illustrated in the first example. When the center 109 determines that the result of authentication of the external device 105 is affirmative (YES at E 103), the center 109 sends the affirmative response command of an authentication result indicating that the result of authentication is affirmative to the external device 105 and the communication device 108.The controller 102 aof the vehicle gateway apparatus 102 receives the affirmative answer command of the authentication result from the center 109 through the communication device 108. When it is determined that the controller 102 a receives the affirmative response command of the authentication result from the communication device 108, the controller 102 aexecutes B 104 and B 112 to B 114 already illustrated in the first example. Further, in the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the present example, the period of maintaining the authenticated state is managed in a manner similar to that in the first example. Therefore, after, for example, interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the center 109 performs the authentication of the external device 105, and since the vehicle gateway device 102 sets and maintains the authenticated state, the authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state are decentrally performed by the center 109 and the vehicle gateway device 102. In addition, since the center 109 located outside the vehicle data communication authentication system 141 performs the authentication of the external device 105, it is possible to perform high-security authentication by, for example, minutely updating the authentication start values. It is therefore possible to further improve the safety.(Sixth Example of First Embodiment)A sixth example of the first embodiment is described with reference to FIGS. 18 and 19. As shown in FIG. 18, in the sixth example, a communication device 108 is connected to the ECU-side bus 106. A center (server) 109 capable of communicating with the external device 105 and the communication device 108 through a wide area communication network is additionally present. The center 109 performs the authentication of the external device 105, and the authentication ECU 103 sets and maintains the authenticated state.As shown in FIG. 19, when the center 109 determines that the center 109 has received the authentication start value request command from the external device, the center 109 performs E 101 to E 103 corresponding to B 101 to B 103 performed by the vehicle gateway device 102 of the first example. When the center 109 determines that the result of authentication of the external device 105 is affirmative (YES in E 103), the center 109 sends the affirmative response command of an authentication result indicating that the result of authentication is affirmative to the external device 105 and the communication device 108.The controller 103 aof the authentication ECU 103 receives the affirmative answer command of an authentication result from the center 109 through the communication device 108. When it is determined that the controller 103 a receives the affirmative answer command of an authentication result from the communication device 108, the controller 103 aexecutes D 104 and D 107 as illustrated in the second example. Further, in the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the present example, the period of maintaining the authenticated state is managed in a similar manner to that in the first example. Therefore, for example, after interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the center 109 performs the authentication of the external device 105, and since the authentication ECU 193 sets and maintains the authenticated state, the authentication of the external device 105, the setting of the authenticated state, and the maintenance of the authenticated state are decentrally performed by the center 109 and the authentication ECU 103. In addition, since the center 109 located outside a vehicle data communication authentication system 151 performs the authentication of the external device 105, it is possible to perform high-security authentication by, for example, minutely updating the authentication start values. It is therefore possible to further improve the safety.(Seventh Example of First Embodiment)A seventh example is described with reference to FIG. 20. In the seventh example, even in cases where it is impossible to directly perform the authentication of the external device 105, the system enables indirect authentication of the external device 105 by performing the authentication of the vehicle state. The seventh example can be achieved by using the same functional blocks (FIG. 1 ) as the first example.As shown in FIG. 20, the controller 102 aof the vehicle gateway device 102 receives the vehicle state from the ECU 103 through the ECU-side bus communicator 102 b, thereby specifying the vehicle state (B 117). The controller 102 athen determines whether or not the vehicle state satisfies a predetermined condition, thereby performing the authentication of the vehicle state. In this manner, the controller 102 adetermines whether a result of authentication of the vehicle state is affirmative or negative (D 118). For example, the controller 102 adetermines whether or not the immobilizer is in the unlocked state, whether or not the ignition switch is off, and whether or not the door is in the closed state.More specifically, when a correct worker connects a correct external device to the connector 107, the vehicle state is in a normal state in which the immobilizer unit is in the released state (unlocked state), the ignition switch is off, or the door is in the closed state. Thus, in the foregoing situation, it is determined that the result of authentication of the vehicle state is affirmative. However, when a third party having a malicious intention connects an incorrect external device to the connector 107, the vehicle state is an abnormal state in which the immobilizer unit is not in the released state, the ignition switch is not off, or the door is not in the closed state. Thus, in the foregoing situation, it is determined that the result of authentication of the vehicle state is not affirmative.In the gateway device 102, when the controller 102 adetermines that the result of authentication of the vehicle state is affirmative (YES in B 119), the controller 102 aexecutes B 104. At B 104, the controller 102 atransmits an affirmative response command of an authentication result indicating that the result of the authentication is affirmative by using the external device-side bus communicator 102 cto the external device 105. The controller 102 afurther sets the authenticated state, which is a state in which the vehicle state is authenticated. Within a period during which the authenticated state is set, the controller 102 aallows reception of a data request command from the external device 105 (allows data communication). Within a period during which the authenticated state is not set, the controller 102 abbids reception of the data request command from the external device 105 (prohibits the data communication).When the authenticated state is set in the foregoing manner (B 104), the controller 102 aexecutes B 112 to B 114 as illustrated in the first example. In the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the present example, the period of maintaining the authenticated state is managed in a similar manner to that in the first example. Therefore, after, for example, interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the authentication of the vehicle state, the setting of the authenticated state, and the maintenance of the authenticated state are collectively performed by the vehicle gateway device 102, it is possible to achieve the foregoing advantages by adding the vehicle gateway device 102. It is therefore possible to achieve the foregoing advantages while minimizing a change to an existing system.(Eighth Example of First Embodiment)An eighth example will be described with reference to FIG. 21. In the eighth example, the authentication ECU performs the authentication of the vehicle state, and the vehicle gateway device 102 sets and maintains the authenticated state. The eighth example may be achieved by using the same functional blocks (FIG. 10 ) as the second example.As shown in FIG. 21, the controller 103 aof the authentication ECU 103 receives the vehicle state from an external, thereby specifying the vehicle state (D 108). The controller 103 athen determines whether or not the vehicle state satisfies a predetermined condition, thereby performing the authentication of the vehicle state. In this manner, the controller 102 adetermines whether a result of authentication of the vehicle state is affirmative or negative (D 109). The controller 103 adetermines that the result of authentication of the vehicle state is affirmative (YES in D 110), the controller 103 atransmits the affirmative response command of the authentication result indicating that the result of authentication is affirmative from the bus communication device 103 bto the vehicle gateway device 102.When the controller 102 aof the vehicle gateway device 102 determines that the affirmative response command of the authentication result is received from the authentication ECU 103 through the ECU-side bus communicator 102 b, the controller 102 atransmits the affirmative response command of the authentication result to the external device 105 by using the external device-side communicator 102 c. The controller 102 aafter performs B 104 and B 112 to B 114 as illustrated in the first example. In other words, the authentication ECU 103 performs the authentication of the vehicle state, and the vehicle gateway device 102 sets the authenticated state and maintains the authenticated state only within the predetermined period after the authenticated state is set. Further, in the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the present example, the period of maintaining the authenticated state is managed in a manner similar to the first example. Therefore, for example, after interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety.(Ninth Example of First Embodiment)A ninth example is described with reference to FIG. 22. In the ninth example, the authentication ECU 103 performs the authentication of the vehicle state, sets the authenticated state, and maintains the same. The ninth example may be achieved by using the same functional blocks (FIG. 12 ) as the third example.As shown in FIG. 22, the controller 103 aof the authentication ECU 103 receives the vehicle state from an external and performs D 108 to D 110 as illustrated in the seventh example. When the controller 103 adetermines that the result of authentication of the vehicle state is affirmative (YES in D 110), the controller 103 atransmits the affirmative response command of the authentication result indicating that the result of authentication is affirmative to the external device 105 by using the bus communication device 103 b. The controller 103a then performs D104 to D107 as shown in the third example. Further, in the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state. In the present example, the period of maintaining the authenticated state is managed in a manner similar to the first example. Therefore, for example, after interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the authentication of the vehicle state, the setting of the authenticated state, and the maintenance of the authenticated state are performed by the authentication ECU 103, it is possible to omit the vehicle gateway device 102. The access target ECU 104 may alternatively include an authentication controller 104 dand an authentication maintainer 104 gsuch that the authentication ECU 103 performs the authentication of the vehicle state and that the access target ECU 104 sets and maintains the authenticated state. In other words, the authentication of the vehicle state, the setting of the authenticated state, and the maintenance of the authenticated state may be performed in a decentralized manner by a plurality of ECUs.(Tenth Example of First Embodiment)A tenth example is described with reference to FIG. 23. In the tenth example, the access target ECU 104 performs the authentication of the vehicle state, sets the authenticated state, and maintains the authenticated state. The tenth example may be achieved by using the same functional blocks (FIG. 14 ) as the fourth example.As shown in FIG. 23, the controller 104 aof the access target ECU 104 receives the vehicle state from the ECU 103 through the bus communicator 104 b, thereby specifying the vehicle state (C 113). The controller 104 athen determines whether or not the vehicle state satisfies the predetermined condition, thereby performing the authentication of the vehicle state, and determines whether or not a result of the authentication is affirmative or negative (C 114). When the result of the authentication is affirmative (YES at C 114), the controller 104 atransmits the affirmative response command of the authentication result indicating that the result of the authentication is affirmative to the external device 105 by using the bus communication device 104 b. The controller 104 athen performs C 109 to C 112 as illustrated in the fourth example. Further, in the present example, as is the case with the first example, the authenticated state may be maintained only within a period during which the authenticated state maintenance request signal is input from the external such as the external device 105, the authentication ECU 103, or the like, a period during which the vehicle state satisfies the predetermined condition, or a period during which the bus 106 is in the communicating state, for example.In the present example, the period of maintaining the authenticated state is managed in a manner similar to the first example. Therefore, for example, after interrupting the connection of the external device, it is possible to avoid the unnecessary lengthening of the period of permitting the data communication between the external device 105 and the access target ECU. As a result, it is possible to improve the safety. In addition, since the authentication of the vehicle state, the setting of the authenticated state, and the maintenance of the authenticated state are performed by the access target ECU 104, it is possible to omit the vehicle gateway device 102. The authentication ECU 103 may alternatively include an authentication controller 103 eand an authentication maintainer 103 hsuch that the access target ECU 104 performs the authentication of the vehicle state and that the authentication ECU 103 sets and maintains the authenticated state. That is, the authentication of the vehicle state, the setting of the authenticated state, and the maintenance of the authenticated state may be performed in a decentralized manner by a plurality of ECUs.(Other Examples of First Embodiment)The examples presented above do not limit examples of the first embodiment. The first embodiment may be modified and extended in various ways. For example, if (i) the result of authentication of the external device 105 is affirmative, and (ii) the result of authentication of the vehicle state is affirmative, the authenticated state may be set. The vehicle state to be authenticated is not limited to the state (locked state, released state) of the immobilizer unit, the state (on, off) of the ignition switch, and the state of the door (open state, closed state). Any state may be peculiar as long as the state enables determination of whether or not a correct operator connects a correct external device, or an incorrect operator connects an incorrect external device. The determination may be further performed by using a single one of the states or by using a combination of the states. The filtering means 102 gof the vehicle gateway device 102, the filtering means 103 gof the authentication ECU 103, and the filtering means 104 fof the access target ECU 104 may be omitted.(SECOND EMBODIMENT)The second embodiment forms part of the disclosure, but is not claimed.A first example of the non-claimed embodiment is described with reference to Figs. 24 to 27. As shown in FIG. 24, in a vehicle data communication system 201, a vehicle data communication device 202 is connected to a bus to disconnect (separate) a plurality of ECUs including a first ECU 203 and a second ECU 204 from an external device 205. Each of the ECUs and the external device 205 serves as a node. The external device 205 is operable by an operator. A bus connecting the vehicle data communication device 202 and the external device 205 is called a bus A. That is, the bus A is a bus for data transmission between the vehicle data communication device 202 and the external device 205. A bus connecting the vehicle data communication device 202 and the first ECU 203 is called a bus B. That is, the bus B is a bus for data transmission between the vehicle data communication device 202 and the first ECU 203. A bus connecting the vehicle data communication device 202 and the second ECU 204 is called a bus C. That is, the bus C is a bus for data transmission between the vehicle data communication device 202 and the second ECU 204. A connector 206 to which the external device 205 is connectable is provided on an external device side of the bus A. When the external device 205 is connected to the connector 206, the external device 205 is enabled to communicate with the vehicle data communication device 202.The bus A, the bus B and the bus C are unique to a control area network (CAN; CAN=control area network) as a data communication method. The CAN communication defines a data field for storing data, an identification field for identifying a type of a data frame, a cyclic redundancy check (CRC) field for storing a CRC check, etc. However, in the CAN communication, a source field for identifying a source (source address) of a data frame and an authentication field for authenticating a data frame are not defined.The vehicle data communication apparatus 202 includes a controller 202 a(which corresponds to an example of an encryption controller and an encryption controller), an ECU-side bus communicator 202 b, an external device-side bus communicator 202 c, an encryptor 202 d, and an encryption table 202 e(which may correspond to an encryption information storage device or an encryption information storage means). The controller 202 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 202 acontrols operations of the ECU-side bus communicator 202 b, the external device-side bus communicator 202 c, and the encryptor 202 d. The ECU-side bus communication device 202 bis connected to the bus B and the bus C, and controls data transmission and reception between the first ECU 203 and the second ECU 204. The external device side bus communication device 202 cis connected to the bus A. In a state where the external device 205 is connected to the connector 206, the external device-side bus communicator 202 ccontrols communications such as data transmission and data reception with the external device 205.By referring to the encryption table 202e, the encryptor 202d refers to the encryption table 202e to encrypt and rewrite plaintext data into encrypted text data. In the foregoing, the plaintext data to be encrypted may be (i) plaintext data that the external device side bus communicator 202 c receives from the external device 205, and (ii) plaintext data that the ECU side bus communicator 202 b receives from the first ECU 203 or the second ECU 204. For each combination of a bus connected to a data source node and a bus connected to a data destination node, the encryption table 202e stores encryption information. For example, as illustrated in FIG. 24, in the case where the bus connected to the data source node is the bus A and the bus connected to the data destination node is the bus B, the encryption table 202 estores the encryption information ("VERS" in FIG. 24 ) indicating that the plain text is to be encrypted. In the case where the bus connected to the data source node is the bus A and the bus connected to the data destination node is the bus C, the encryption table 202 estores the encryption information ("CLEAR" in FIG. 24 ) indicating that the plain text is not to be encrypted.The first ECU 203 includes a controller 203 a(which may correspond to an example of a decryption controller and a decryption controller), a bus communication device 203 b, a decryption device 203 c, and a decryption table 203 d(which may correspond to an example of a decryption information storage device and a decryption information storage means). The controller 203 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 203 acontrols the bus communicator 203 band the decryptor 203 c. The bus communicator 203 bis connected to the bus B and controls communication such as data transmission and data reception with the vehicle data communication device 202.The decryption means 203c decrypts encrypted text data received from the vehicle data communication device 202 by rewriting the encrypted text data into plain text data when the bus communication means 203b receives the encrypted text data from the vehicle data communication device 202. For each bus connected to a data source node, the decryption table 203d stores decryption information. As illustrated in FIG. 24, for example, in the case where the bus connected to the data source node is the bus A, the decryption table 203 dstores "ENTS" indicating that the data is to be decrypted with encrypted text. In the case where the bus connected to the source node is the bus C, the decryption table 203d stores "CLEAR" indicating that the plaintext data is not to be decrypted.The second ECU 204 has substantially the same configuration as the first ECU 203. The second ECU 204 includes a controller 204 a(which may correspond to an example of a decryption controller and a decryption controller), a bus communication device 204 b, a decryption device 204 c, and a decryption table 204 d(which may correspond to an example of a decryption information storage device and a decryption information storage means). The controller 204 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 204 acontrols the bus communicator 204 band the decryptor 204 c. The bus communicator 204 bis connected to the bus C and controls communication such as data transmission and data reception with the vehicle data communication device 202.The decryptor 204 cdecodes encrypted text data by rewriting the encrypted text data into plain text data when the bus communicator 204 breceeds the encrypted text data from the vehicle data communication device 202. For each bus connected to the data source node, the decryption table 204d stores decryption information. For example, as shown in FIG. 24, in the case where the bus connected to the data source node is the bus A, the information "CLEAR" indicating that the plaintext data is not encrypted is stored. In the case where the bus connected to the data source node is the bus C, "the information ENTS" indicating that the data is to be decrypted with encrypted text is stored.The external apparatus 205 comprises a controller 205a (which may correspond to a decryption controller and a decryption controller), a bus communication device 205b, a decryption device 205c, a decryption table 205d (which may correspond to a decryption information storage device and a decryption information storage means), an input / output interface (IF; IF = interface) 205e. The controller 205 aincludes a microcomputer. By executing a control program with the microcomputer, the controller 205 acontrols operations of the bus communicator 205 b, the decryptor 205 c, and the input / output interface (IF) 205 e. The bus communicator 205 bis connected to the bus A and controls communication such as data transmission and data reception with the vehicle data communication device 202.The decryptor 205 cdecodes encrypted text data by rewriting the encrypted text data into plain text data when the bus communicator 205 bceeds the encrypted text data from the vehicle data communication device 202. The decryption table 205d stores decryption information for each data bus connected to the data source node. For example, as illustrated in FIG. 24, in the case where the bus connected to the data source node is the bus B, the information "ENTS" indicating that the data is to be decrypted with encrypted text is stored. In the case where the bus connected to the data source node is the bus C, the information "CLEAR" indicating that the plaintext data is not decrypted is stored.The input / output IF 205 ehas a function of accepting an input operation from the operator operating the external device 205, and has a function of outputting a message by displaying data, for example. More specifically, by connecting the external device 205 to the connector 206 and performing the input operation to the external device 205, the operator can rewrite the control program of an access target ECU and read data from the access target ECU. The external device 205 is not limited to a dedicated node for rewriting the control program of the access target ECU and reading out the data from the access target ECU, but the external device 205 may be a mobile phone, a personal digital assistant, or the like having the foregoing functions.The encryption and decryption may use public key cryptography in which the encryption is performed with a public key and the decryption is performed with a private key. The encryption and decryption may alternatively use a common key cryptography in which the encryption and decryption are performed with a common key. Various ECUs may be used as the first ECU 203 and the second ECU 204. The first ECU 203 or the second ECU 204 may be, for example, either an engine ECU for controlling an engine, a door lock ECU for controlling operations of a door lock mechanism, a navigation ECU for controlling navigation operations, a meter ECU for controlling operations of a meter (indicator), or the like. For example, when the first ECU 203 or the second ECU 204 is the engine ECU, the first ECU 203 or the second ECU 204 includes a function block for controlling the engine in addition to the above-described function blocks. In the example shown in FIG. 24, the number of ECUs is two. However, the number of the ECUs may be one or more than two.The encryption table and the decryption table are configured based on the following, for example. Assume that data sending through the bus can be classified into a regulation message (i.e., the message imposing a obligation to respond in response to the request) and a non-regulation message (i.e., the message imposing no obligation to respond in response to the request). In this case, the encryption table and the decryption table are configured such that (i) information indicating that the encryption or decryption is not to be performed is set for the bus connected to the node that sends and receives the control message, and (ii) the information indicating that the encryption or decryption is to be performed is set for the bus connected to the node that sends and receives the non-control message.Operations will be described with reference to Figs. 25 to 28. Three situations are shown below. A first situation is that the external device 205 and the first ECU 203 perform the data communication. A second situation is that the external device 205 and the second ECU 204 perform the data communication. A third situation is that the first ECU 203 and the second ECU 204 perform the data communication.(1) The first situation (the external device 205 and the first ECU 203 perform the data communication)In this situation, the processes illustrated in FIG. 25 are performed by the external device 205, the first ECU 203, and the vehicle data communication device 202. As illustrated in FIG. 25, when the external device 205 is connected to the connector 206, the plain text data is transmitted from the external device 205 to the first ECU 203 (the data destination node). In this case, when the controller 202 aof the vehicle data communication apparatus 202 determines that the plaintext data is received by the external device-side bus communicator 202 c, the controller 202 adetermines whether or not it is necessary to encrypt the received plaintext data (B 201). When the controller 202 adetermines that it is necessary to encrypt the received plaintext data (YES in B 201), the controller 202 aacrypts the plaintext data by using the encryptor 202 d(B 202), and sends the encrypted text data to the first ECU 203 by using the bus communicator 202 bof the ECU side. When the controller 202 determines that it is not necessary to encrypt the plaintext data (NO at B 201), the controller 202 atransmits the plaintext data to the first ECU 203 by using the bus communicator 202 bof the ECU side without encrypting the plaintext data by using the encryptor 202 d. In the present example, since "VERS" is stored for a combination of the bus A connected to the source and the bus B connected to the destination, the controller 202a encrypts the plaintext data received from the external device 205 and sends the encrypted text data to the first ECU 203.When the controller 203 aof the first ECU 203 determines that the bus communicator 203 bhas received the data addressed to the first ECU 203 from the vehicle data communication device 202, the controller 203 aexecutes C 201. At C201, the controller 203a determines whether or not it is necessary to decrypt the received data by referring to the decryption table 203d. When the controller 203 adetermines that it is necessary to decrypt the received data, in other words, when the controller 203 adetermines that the received data is encrypted text data (YES in C 201), the controller 203 adecodes the encrypted text data (C 202) and performs data processing based on the decrypted data. When the controller 203 adetermines that it is not necessary to decrypt the received data, in other words, when the controller 203 adetermines that the received data is the plaintext data (NO at C 201), the controller 203 aperforms the data processing based on the plaintext data without decrypting the plaintext data (C 203). In the present example, since "ENTS" is stored for the bus A connected to the data source node, the controller 203 adecodes the encrypted text data received from the vehicle data communication device 202, and performs the data processing based on the plain text data. The controller 203 athereafter sends clear text data to the vehicle data communication apparatus 202 by using the bus communication apparatus 203 b.When the controller 202 aof the vehicle data communication apparatus 202 determines that the external device side bus communication device 202 chas received the plain text data addressed to the external device 205 from the external device 205, the controller 202 aexecutes B 203. At B203, the controller 202a determines whether or not it is necessary to encrypt the received plaintext data by referring to the encryption table 202e (B203). When the controller 202 adetermines that it is necessary to encrypt the received plaintext data (YES in B 203), the controller 202 aacrypts the plaintext data (B 204) by using the encryptor 202 d, and sends the encrypted text data to the external device 205 by using the external device side bus communicator 202 c. If the controller 202 adetermines that it is not necessary to encrypt the received plaintext data (NO at B 203), then the controller 202 atransmits the plaintext data to the external device 205 by using the external device side bus communicator 202 cwithout encrypting the plaintext data by using the encryptor 202 d. In the present example, since "VERS" is stored for a combination of the bus B on a source side and the bus A on a destination side, the controller 202a encrypts the plain text data received from the first ECU 203 and sends the encrypted text data to the external device 205.When the controller 205 aof the external device 205 determines that the bus communicator 205 bhas received the data addressed to the external device 205 from the vehicle data communication device 202, the controller 205 aexecutes A 201. At A201, the controller 205a determines whether or not it is necessary to decrypt the received data by referring to the decryption table 205d. When the controller 205 adetermines that it is necessary to decrypt the received data, in other words, when the controller 205 determines that the received data is the encrypted text data (YES in A 201), the controller 205 adecodes the encrypted text data (A 202) and performs data processing based on the decrypted data (A 203). When the controller 205 adetermines that it is not necessary to decrypt the received data, in other words, when the controller 203 adetermines that the received data is the plaintext data (NO at A 201), the controller 203 aperforms data processing based on the plaintext data without decrypting the plaintext data (A 203). In the present example, since "ENTS" for the bus B is stored on the source side, the controller 205 adecodes the encrypted text data received from the vehicle data communication device 202 to obtain plaintext data, and performs data processing based on the plaintext data.As described above, the vehicle data communication device 202 stores "VER" for the combination of the bus A on the data source side and the bus B on the data destination side. Thus, upon receiving the plaintext data from the external device 205, the vehicle data communication device 202 encrypts the received plaintext data into decrypted text data and sends the decrypted text data to the first ECU 203. The vehicle data communication device 202 also stores "VER" for the combination of the bus B on the data source side and the bus A on the data destination side. Thus, upon receiving the plaintext data from the first ECU 203, the vehicle data communication device 202 encrypts the received plaintext data into decrypted text data and sends the decrypted text data to the external device 205.(2) The second situation (the external device 205 and the second ECU 204 perform the data communication)As shown in FIG. 26, the vehicle data communication device 202 performs steps B 211 and B 212, and the second ECU 204 then performs D 211 to D 213, and then the vehicle data communication device 202 performs B 213 and B 214, and then the external device 205 performs A 211 to A 213. In the present example, the vehicle data communication device 202 stores "CLEAR" for the combination of the bus A on the data source side and the bus C on the data destination side. Thus, upon receiving the plaintext data from the external device 205, the vehicle data communication device 202 transmits the received plaintext data to the second ECU 204 without encrypting the received plaintext data. The vehicle data communication device 202 also stores "CLEAR" for the combination of the bus C on the data source side and the bus A on the data destination side. Thus, upon receiving the plaintext data from the second ECU 204, the vehicle data communication device 202 transmits the received plaintext data to the external device 205 without encrypting the received plaintext data.(3) The third situation (the first ECU 203 and the second ECU 204 perform the data communication).As shown in FIG. 27, the vehicle data communication device 202 performs steps B 221 and B222, and then the second ECU 204 performs D 221 to D223, and then the vehicle data communication device 202 performs B223 and B224, and then the first ECU 203 performs C221 to C223. In the present example, the vehicle data communication device 202 stores "VERS" for the combination of the bus B on the data source side and the bus C on the data destination side. Thus, upon receiving the plaintext data from the first ECU 203, the vehicle data communication device 202 encrypts the received plaintext data into encrypted text data and sends the encrypted text data to the second ECU 204. The vehicle data communication device 202 also stores "CLEAR" for the combination of the bus C on the data source side and the bus B on the data destination side. Thus, upon receiving the plaintext data from the second ECU 204, the vehicle data communication device 202 transmits the received plaintext data to the first ECU 203 without encrypting the received plaintext data.In the first example, the vehicle data communication device 202 relays data between the external device 205, the first ECU 203, and the second ECU 204. For each combination of a bus connected to a data source node and a bus connected to a data destination node, the encryption information (the encryption table) indicating whether or not to encrypt the data is managed uniformly by the vehicle data communication device 202. In addition, for each bus connected to the data source node, the decryption information (the decryption table) indicating whether or not to decrypt the data is managed uniformly by the external device, the first ECU 203, and the second ECU 204.Accordingly, in order to transmit the data, it is not necessary for the external device 205, the first ECU 203, and the second ECU 204 to encrypt the data. The external device 205, the first ECU 203, and the second ECU 204 can thus transmit the data without encrypting the data. In addition, it is sufficient for each of the external device 205, the first ECU 203, and the second ECU 204 to store the decryption table associated only with the data sent to all from the vehicle data communication device 202. Configuration complication and processing increase resulting from encryption and decryption can therefore be prevented. For example, it is possible to use a processing capacity (for example, a storage capacity) that is not unlimited for a primary function, and it is possible to ensure satisfaction of the primary function. Note that, when the encryption or the decryption causes the failure to satisfy the primary function (for example, processing delay), a negative influence may be exerted on, for example, the vehicle control during vehicle running. The configuration of the present example is therefore unusually advantageous in a system in which the ECU serves as a node. In addition, since the vehicle data communication device 202 performs the data encryption, it is possible to improve security in data communication. More specifically, even if an incorrect external device is connected to the bus, data sent from the incorrect external device is not supported by the encryption of the vehicle data communication device 202, and thus it becomes possible to prevent the incorrect rewriting of the control programs of the first ECU 203 and the second ECU 204 and the incorrect reading of the first ECU 203 and the second ECU 204.In addition, even if a plurality of nodes which transmit data which need to be encrypted are connected to the same bus and / or even if a plurality of nodes which transmit data which need not be encrypted are connected to the same bus, it is not necessary to establish an encryption table and / or a decryption table which are targeted to respective individual nodes. Instead, the encryption table and / or the decryption table that are targeted to respective individual nodes are established. Therefore, a work for setting up the encryption table and / or the decryption table is simple.Although the foregoing is directed to the system in which the first ECU 203 is connected to the vehicle data communication device 202 through the bus B, ideas of the foregoing are applicable to a system in which a plurality of ECUs including the first ECU 203 are connected to the vehicle data communication device 202 through the bus B. More specifically, as shown in FIG. 28, in the vehicle data communication system 211, the first ECU 203 and a third ECU 207 may be connected to the vehicle data communication device 202 through the bus B. In this configuration, the third ECU 207 stores the same decryption table that the first ECU 203 stores, so that the third ECU 207 can perform substantially the same process as the first ECU 203. Note that when the first ECU 203 and the third ECU 207 perform the data communication, the encryption table stored in the vehicle data communication device 202 is not used because the vehicle data communication device 202 does not relay the data. The same applies to cases where the second ECU 204 and the fourth ECU 208 are connected to the vehicle data communication device 202 through the bus C.(Second Example of Second Non-Claimed Embodiment)A second example of the second non-claimed embodiment is described with reference to FIGS. 29 and 30. In the second example, for each combination of a data source node and a data destination node, the encryption table is managed uniquely by the vehicle data communication device 202 forwarding data. For each data source node, the decryption table is managed uniformly by the external device 205, the first ECU 203, and the second ECU 204. In the second example, for example, the information indicating that the decryption or the encryption is not to be performed is set for a node that sends and receives a non-feedback message. The information indicating that the decryption or the encryption is to be performed is set for a node that sends and receives a regulation message.In a vehicle data communication system 221, the vehicle data communication device 202 is connected to the first ECU 203 and the second ECU 204 through the bus B. The vehicle data communication device 202 stores, for each combination of a data source node and a data destination node, the encryption information as the encryption table 202 e. For example, as illustrated in FIG. 29, in the case where the data source node is the external device 205 and the data destination node is the first ECU 203, the stored encryption information indicates that the plaintext data is to be encrypted. In the case where the data source node is the external device 205 and the data destination node is the second ECU 204, the stored encryption information indicates that the plaintext data is not to be encrypted.For each data source node, the first ECU 203 stores the decryption information as the decryption table 203d. For example, as shown in FIG. 29, in the case where the data source node is the external device 205, the stored decryption information indicates that the data is to be decrypted with encrypted text. Likewise, for each data source node, the second ECU 204 stores the decryption information as the decryption table 204d. For example, as illustrated in FIG. 29, in the case where the data source node is the external device 205, the stored decryption information indicates that the plaintext data is not to be decrypted. Similarly, for each data source node, the external device 205 stores the decryption information as the decryption table 205 d. For example, as illustrated in FIG. 29, in the case where the data source node is the first ECU 203, the stored decryption information indicates that the data is to be decrypted with encrypted text. In the case where the data source node is the second ECU 204, the stored decryption information indicates that the plaintext data is not to be decrypted.In the second example, the vehicle data communication device 202 relays data between the external device 205, the first ECU 203, and the second ECU 204. For each combination of a data source node and a data destination node, the vehicle data communication device 202 uniformly manages the encryption information (the encryption table) indicating whether or not to encrypt the data. In addition, for each data source node, the decryption information (the decryption table) indicating whether or not to decrypt the data is managed uniformly by the external device 205, the first ECU 203, and the second ECU 204.The second example of the second non-claimed embodiment can accordingly provide substantially the same advantages as the first example of the second non-claimed embodiment. More specifically, in order to transmit the data, it is not necessary for the external device 205, the first ECU 203, and the second ECU 204 to encrypt the data. The external device 205, the first ECU 203, and the second ECU 204 can thus transmit the data without encrypting the data. In addition, it is sufficient that the external device 205 stores the first ECU 203 and the second ECU 204 with the decryption table associated only with the data sent from the vehicle data communication device 202 to all. Configuration complication and processing increase resulting from encryption and decryption can therefore be prevented. In addition, since the vehicle data communication device 202 performs the data encryption, it is possible to improve security in data communication.Moreover, even if a plurality of nodes which transmit data which need to be encrypted are connected to the same bus and / or even if a plurality of nodes which transmit data which need not be encrypted are connected to the same bus, it is possible to encrypt only the data which need to be encrypted appropriately by setting the encryption tables and / or the decryption tables for respective individual nodes. In addition, it is possible to treat node addition and node deletion flexibly.The foregoing is directed to the system in which the first ECU 203 and the second ECU 204 are connected to the vehicle data communication device 202 through the bus B. Ideas of the above descriptions, however, are applicable to a system in which a plurality of ECUs including the first ECU 203 and the second ECU 204 are connected to the vehicle data communication device 202 through a plurality of buses including the bus B. For example, as illustrated in FIG. 30, in a vehicle data communication system 231, the first ECU 203 and the second ECU 204 are connected to the vehicle data communication device 202 through the bus B, and in addition, the third ECU 207 and the fourth ECU 208 are connected to the vehicle data communication device 202 through the bus C. In this case, the vehicle data communication device 202 stores the encryption table by designating the third ECU 207 and the fourth ECU 208 as the data source node and the data destination node. Each of the first ECU 203, the second ECU 204, and the external device 205 stores the decryption table by designating the third ECU 207 and the fourth ECU 208 as the data source node.(Third Example of Second Non-Claimed Embodiment)A third example of the second non-claimed embodiment is described with reference to FIGS. 31 and 32. In the third example, the vehicle data communication device 202 for relaying data uniformly manages the encryption table for each identification (CAN_ID) indicating a type of a data frame storing data. For each identification (CAN_ID) indicating a type of a data frame storing data, the decryption table is managed uniformly by the external device 205, the first ECU 203, and the second ECU 204. In the third example, for example, the information indicating that the decryption or the encryption is not to be performed is set for the CAN_ID of the data frame having the regulation message. The information indicating that the decryption or the encryption is not to be performed is set for the CAN_ID of the data frame having the non-control message. The CAN_ID refers to information identifying data content or the like, and has a length of 11 bits in the standard format as illustrated in FIG. 32.In a vehicle data communication system 241, the vehicle data communication device 202 stores the encryption as the encryption table 202 efor each CAN_ID indicating the type of the data frame. For example, as indicated in FIG. 31 for the case where the data frame has the CAN_ID "700", the stored encryption information indicates that the plaintext data is to be encrypted. In the case where the data frame has the CAN_ID "701", the stored encryption information indicates that the plain text data is not to be encrypted.For each CAN_ID indicating the type of the data frame, the first ECU 203 stores the decryption information as the decryption table 203 d. For example, as illustrated in FIG. 31, for the case where the data frame has the CAN_ID "700", the stored decryption information indicates that the plaintext data is to be decrypted. In the case where the data frame has the CAN_ID "701", the stored encryption information indicates that the plain text data is not to be decrypted. Similarly, for each CAN_ID indicating the type of the data frame, the second ECU 204 stores the decryption information as the decryption table 204 d. The external device 205 further stores, for each CAN_ID indicating the type of the data frame, the decryption information as the decryption table 205 d.In the third example, the vehicle data communication device 202 relays data between the external device 205, the first ECU 203, and the second ECU 204. For each CAN_ID, the vehicle data communication device 202 uniformly manages the encryption information (the encryption table) indicating whether or not to encrypt the data. In addition, for each CAN_ID, the encryption information (the encryption table) indicating whether or not to decrypt the data is managed uniformly by the external device 205, the first ECU 203, and the second ECU 204.The third example of the second non-claimed embodiment can accordingly provide substantially the same advantages as the first example of the second non-claimed embodiment. More specifically, in order to transmit the data, it is not necessary for the external device 205, the first ECU 203, and the second ECU 204 to encrypt the data. The external device 205, the first ECU 203, and the second ECU 204 can thus transmit the data without encrypting the data. In addition, it is sufficient that each of the external device 205, the first ECU 203, and the second ECU 204 stores the decryption table associated only with the data sent to all from the vehicle data communication device 202. Configuration complication and processing increase resulting from encryption and decryption can therefore be prevented. In addition, since the vehicle data communication device 202 performs the data encryption, it is possible to improve security in data communication.Moreover, by setting the encryption tables and the decryption tables for respective individual data frames, it is possible to suitably encrypt only the data which needs to be encrypted even if the same individual node sends both the data frame storing the data which needs to be encrypted and the data frame storing the data which does not need to be encrypted.(Fourth Example of Second Non-Claimed Embodiment)A fourth example of the second non-claimed embodiment is described with reference to FIG. 33. In the fourth example, the vehicle data communication device 202 for relaying data manages the encryption table uniformly for each data storage area (each data field) of a data frame storing data. For each data storage area (each data field) of a data frame storing data, the decryption table is managed uniformly by the external device 205, the first ECU 203, and the second ECU 204. In the fourth example, for example, the information indicating that the decryption or the encryption is not to be performed is set for the data storage area of the data frame having the control message. The information indicating that the decryption or the encryption is not to be performed is set for the data storage area of the data frame having the non-regulation message.In a vehicle data communication system 251, the vehicle data communication device 202 stores the encryption as the encryption table 202 efor each data storage area of the data frame. For example, as illustrated in FIG. 33, for plaintext data stored in the "bytes 0 to 4" of the data field of the data frame having "800" as the CAN_ID, the stored encryption information indicates that the plaintext data is to be encrypted. For plaintext data stored in "bytes 5 to 8", the stored encryption information indicates that the plaintext data is not to be encrypted.For each data storage area of the data frame, the first ECU 203 stores the decryption information as the decryption table 203 d. For example, as illustrated in FIG. 33, for encrypted text data stored in the "bytes 0 to 4" of the data field of the data frame having "800" as the CAN_ID, the stored decryption information indicates that the encrypted text data is to be decrypted. For plaintext data stored in "bytes 5 to 8", the stored decryption information indicates that the plaintext data is not to be decrypted. Similarly, the second ECU 204 stores, for each data storage area of the data frame, the decryption information as the decryption table 204 d. The external device 205 further stores, for each data storage area of the data frame, the decryption information as the decryption table 205 d.In the fourth example, the vehicle data communication device 202 relays data between the external device 205, the first ECU 203, and the second ECU 204. For each data field (for each data storage area of the data frame), the vehicle data communication device 202 uniformly manages the encryption information (the encryption table) indicating whether or not to encrypt the data. In addition, for each data field (for each data storage area of the data frame), the data destination node uniformly manages the decryption information (the decryption table) indicating whether or not the data is to be decrypted. The data destination node is, for example, the external device 205, the first ECU 203, and the second ECU 204.The third example of the second non-claimed embodiment can accordingly provide substantially the same advantages as the first example of the second non-claimed embodiment. More specifically, in order to transmit the data, it is not necessary for the external device 205, the first ECU 203, and the second ECU 204 to encrypt the data. The external device 205, the first ECU 203, and the second EC 204 can thus transmit the data without encrypting the data. In addition, it is sufficient that each of the external device 205, the first ECU 203, and the second ECU 204 stores the decryption table associated only with the data sent to all from the vehicle data communication device 202. Configuration complication and processing increase resulting from encryption and decryption can therefore be prevented. In addition, since the vehicle data communication device 202 performs the data encryption, it is possible to improve security in data communication.Moreover, by setting the encryption tables and the decryption tables for respective individual data storage areas, it is possible to suitably encrypt only the data which needs to be encrypted even if the node sends the data frame having both the data which needs to be encrypted and the data which does not need to be encrypted.(Other Examples of Second Non-Claimed Embodiment)The second non-claimed embodiment is not limited to the above-illustrated example, and may be modified and extended in the following manner, for example. Two or more of the first to fourth examples may be combined. More specifically, the system may employ the two or more of a configuration in which the encryption information and the decryption information are managed on a bus-by-bus basis, a configuration in which the encryption information and the decryption information are managed on a node-by-node basis, a configuration in which the encryption information and the decryption information are managed on a CAN_ID-by-data basis, and a configuration in which the encryption information and the decryption information are managed on a data-field-by-data basis. Some of the plurality of ECUs may have some of the functions of the vehicle data communication device 202. More specifically, the vehicle data communication device 202 is not limited to a dedicated device for encrypting data by determining whether or not to encrypt the data. An ECU having a high processing capacity may be provided, for example, in the system so that while it satisfies its primary function, the ECU encrypts data by determining whether or not the data is to be encrypted.The present disclosure is not limited to the foregoing embodiments and modifications thereof. That is, the foregoing embodiments and modifications thereof may be modified in various ways without departing from the spirit and scope of the present disclosure.
Claims
A vehicle data communication authentication system in which an external device (105) is connectable to a bus (106) connected to electronic control units (ECUs) having an access destination ECU (104), comprising: an authenticator (102d, 103d, 104c, 109a) that performs authentication of the external device (105) connected to the bus (106); an authentication controller (102e, 103e, 104d) that determines whether or not a result of authentication of the external device (105) performed by the authenticator (102d, 103d, 104c, 109a) is affirmative; when it is determined that the result of authentication of the external device (105) is affirmative, sets an authenticated state, and permits data communication between the external device (105) and the access target ECU (104); and when it is determined that the result of authentication of the external device (105) is not affirmative, does not set the authenticated state, and prohibits the data communication between the external device (105) and the access target ECU (104); and authentication maintaining means (102h, 103h, 104g) which, after the authenticated state is set by the authentication control means (102e, 103e, 104d), maintains the authenticated state within a period during which an authenticated state maintenance request is input to the authentication control means (102e, 103e, 104d).The vehicle data communication authentication system according to claim 1, further comprising: a vehicle gateway device (102) that disconnects the external device (105) from the ECUs, wherein the authentication device (102d, 103d, 104c, 109a), the authentication control device (102e, 103e, 104d), and the authentication maintaining device (102h, 103h, 104g) are provided in the vehicle gateway device (102).The vehicle data communication authentication system according to claim 1, comprising: a vehicle gateway device (102) that disconnects the external device (105) from the ECUs, wherein the ECUs include an authentication ECU (103) provided separately from the access target ECU (104), the authentication means (102d, 103d, 104c, 109a) is provided in the vehicle gateway device (102), and the authentication control means (102e, 103e, 104d) and the authentication maintenance means (102h, 103h, 104g) are provided in the authentication ECU (103).The vehicle data communication authentication system according to claim 1, wherein the ECUs include an authentication ECU (103) provided separately from the access target ECU (104), the authentication means (102d, 103d, 104c, 109a) is provided in the authentication ECU (103), and the authentication control means (102e, 103e, 104d) and the authentication maintaining means (102h, 103h, 104g) are provided in each of the ECUs including the authentication ECU (103) and the access target ECU (104).The vehicle data communication authentication system according to claim 1, wherein the ECUs include an authentication ECU (103) provided separately from the access target ECU (104), and the authentication device (102d, 103d, 104c, 109a), the authentication control device (102e, 103e, 104d), and the authentication maintaining device (102h, 103h, 104g) are provided in each of the ECUs including the authentication ECU (103) and the access target ECU (104).The vehicle data communication authentication system according to claim 1, further comprising: a center (109) communicable with the external device (105); and a vehicle gateway device (102) that disconnects the external device (105) from the ECUs, wherein the authentication device (102d, 103d, 104c, 109a) is provided in the center (109), and the authentication control device (102e, 103e, 104d) and the authentication maintaining device (102h, 103h, 104g) are provided in the vehicle gateway device (102).The vehicle data communication authentication system according to claim 1, further comprising: a center (109) communicable with the external device (105), wherein the ECUs include an authentication ECU (103) provided separately from the access target ECU (104), the authentication means (102d, 103d, 104c, 109a) is provided in the center (109), and the authentication control means (102e, 103e, 104d) and the authentication maintenance means (102h, 103h, 104g) are provided in the authentication ECU (103).The vehicle data communication authentication system according to any one of claims 1 to 7, further comprising: a communication control means (102f, 103f, 104e) that permits data communication between the external device (105) and the access destination ECU (104) only for specified data in a situation where the authenticated state is not set by the authentication means (102d, 103d, 104c, 109a).A vehicle data communication authentication system in which an external device (105) is connectable to a bus (106) connected to electronic control units (ECUs) having an access destination ECU (104), comprising: an authenticator (102d, 103d, 104c, 109a) that performs authentication of a vehicle state; an authentication control means (102e, 103e, 104d) that determines whether or not a result of authentication of the vehicle state performed by said authentication means (102d, 103d, 104c, 109a) is affirmative, when it is determined that the result of authentication of the vehicle state is affirmative, sets an authenticated state and permits data communication between said external device (105) and said access target ECU (104), and when it is determined that the result of authentication of the vehicle state is not affirmative, does not set said authenticated state and prohibits data communication between said external device (105) and said access target ECU (104); and authentication maintaining means (102h, 103h, 104g) which, after the authenticated state is set by the authentication control means (102e, 103e, 104d), maintains the authenticated state within a period during which an authenticated state maintenance request is input to the authentication control means (102e, 103e, 104d).The vehicle data communication authentication system according to claim 9, further comprising: a vehicle gateway device (102) that disconnects the external device (105) from the ECUs, wherein the authentication means (102d, 103d, 104c, 109a), the authentication control means (102e, 103e, 104d), and the authentication maintaining means (102h, 103h, 104g) are provided in the vehicle gateway device (102).The vehicle data communication authentication system according to claim 9, further comprising: a vehicle gateway device (102) that disconnects the external device (105) from the ECUs, wherein the ECU includes an authentication ECU (103) provided separately from the access target ECU (104), the authentication means (102d, 103d, 104c, 109a) is provided in the vehicle gateway device (102), and the authentication control means (102e, 103e, 104d) and the authentication maintenance means (102h, 103h, 104g) are provided in the authentication ECU (103).The vehicle data communication authentication system according to claim 9, wherein the ECUs include an authentication ECU (103) provided separately from the access target ECU (104), the authentication means (102d, 103d, 104c, 109a) is provided in the authentication ECU (103), and the authentication control means (102e, 103e, 104d) and the authentication maintaining means (102h, 103h, 104g) are provided in each of the ECUs including the authentication ECU (103) and the access target ECU (104).The vehicle data communication authentication system according to claim 9, wherein the ECUs include an authentication ECU (103) provided separately from the access target ECU (104), and the authentication device (102d, 103d, 104c, 109a), the authentication control device (102e, 103e, 104d), and the authentication maintaining device (102h, 103h, 104g) are provided in each of the ECUs including the authentication ECU (103) and the access target ECU (104).The vehicle data communication authentication system according to any one of claims 9 to 13, further comprising a communication control means (102f, 103f, 104e) that permits data communication between the external device (105) and the access destination ECU (104) only for specified data in a situation where the authenticated state is not set by the authentication means (102d, 103d, 104c, 109a).A vehicle gateway apparatus in a vehicle data authentication system in which an external device (105) is connectable to a bus (106) connected to electronic control units (ECUs) having an access destination ECU (104), and in which the vehicle gateway apparatus disconnects the external device (105) from the ECUs, comprising: an authenticator (102d) that performs authentication of the external device (105) connected to the bus (106); an authentication control means (102e) that determines whether or not a result of authentication of the external device (105) performed by the authentication means (102d) is affirmative, when it is determined that the result of authentication of the external device (105) is affirmative, sets an authenticated state and permits data communication between the external device (105) and the access target ECU (104), and when it is determined that the result of authentication of the external device (105) is not affirmative, does not set the authenticated state and prohibits data communication between the external device (105) and the access target ECU (104); and authentication maintaining means (102h) which, after the authenticated state is set by the authentication control means (102e), maintains the authenticated state within a period during which an authenticated state maintenance request is input to the authentication control means (102e).The vehicle gateway apparatus according to claim 15, further comprising a communication control means (102f) that permits data communication between the external device (105) and the access destination ECU (104) only for specified data in a situation where the authenticated state is not set by the authentication means (102d).A vehicle gateway apparatus in a vehicle data authentication system in which an external device (105) is connectable to a bus (106) connected to electronic control units (ECUs) having an access target ECU (104), and in which the vehicle gateway apparatus disconnects the external device (105) from the ECUs, comprising: an authenticator (102d) that performs authentication of a vehicle state; an authentication controller (102e) that determines whether or not a result of authentication of the vehicle state performed by the authenticator (102d) is affirmative when it is determined that the result of authentication of the vehicle state is affirmative, setting an authenticated state and allowing data communication between the external device (105) and the access target ECU (104), and when it is determined that the result of authentication of the vehicle state is not affirmative, not setting the authenticated state and prohibiting data communication between the external device (105) and the access target ECU (104); and authentication maintaining means (102h) that, after the authenticated state is set by the authentication controlling means (102e), maintains the authenticated state within a duration during which an authenticated state maintenance request is input to the authentication controlling means (102e).The vehicle gateway apparatus according to claim 17, further comprising a communication control means (102f) that permits data communication between the external device (105) and the specified-only data access destination ECU (104) in a situation where the authenticated state is not set by the authentication means (102d).
Citation Information
Patent Citations
Vehicular relay device for the delivery of communication data transmitted from external device to requested in-vehicle electronic device only when in-vehicle device is authorized device
DE10230351A1
Communication system
JP2003324459A
Vehicle diagnostic system and vehicle
JP2004192277A
Vehicle, maintenance device, maintenance service system, and maintenance service method
US20110083161A1
JP002003324459A
