Onboard device, program, and information processing method

The in-vehicle device efficiently detects abnormal data by comparing event data payload values with periodic data, addressing the inefficiencies in real-time validation and reducing processing time and load in in-vehicle network monitoring systems.

WO2024195486A1PCT designated stage expired Publication Date: 2024-09-26AUTONETWORKS TECH LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/007834
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-01
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Current in-vehicle network monitoring systems face inefficiencies in detecting abnormal data due to the need for real-time validation of periodic and event data, leading to increased processing load and time.

Method used

An in-vehicle device equipped with a processing unit that determines the correctness of event data by comparing its payload values with those of consecutively received periodic data, allowing for efficient detection of abnormal data without continuous validation each time event data is received.

Benefits of technology

This approach reduces processing time and load by separating the reception and determination of event data, enabling efficient detection of abnormal data in communication formats with periodic data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024007834_26092024_PF_FP
    Figure JP2024007834_26092024_PF_FP
Patent Text Reader

Abstract

An onboard device according to the present invention is to be connected to an onboard network installed on a vehicle. The onboard device comprises a processing unit that performs processing related to determination of the appropriateness of data flowing over the onboard network. The processing unit receives periodic data that is periodically transmitted over the onboard network. When the processing unit has received event data of the same type as the periodic data between the points in time at which two consecutively received instances of the periodic data are received, the processing unit determines the appropriateness of the event data on the basis of a payload value for the event data and a payload value for at least one of the two instances of the periodic data.
Need to check novelty before this filing date? Find Prior Art

Description

In-vehicle device, program, and information processing method

[0001] This application claims priority to Japanese Patent Application No. 2023-44682 filed on March 20, 2023, and incorporates by reference all of the contents of that application.

[0002] Conventionally, the CAN communication protocol has been widely adopted for communication between multiple on-board ECUs (Electronic Control Units) installed in a vehicle. As vehicles become more multifunctional and sophisticated, the number of on-board ECUs installed tends to increase. In this case, the on-board ECUs are divided into groups (segments) to form a vehicle network, and multiple on-board ECUs in the same group are connected by a common communication line to transmit and receive data to and from each other, while data transmission and reception between on-board ECUs in different groups is relayed by an on-board relay device (gateway) (see, for example, Patent Document 1).

[0003] The vehicle network of Patent Document 1 includes, in addition to an on-board relay device (gateway), a vehicle network monitoring device connected to each segment of the vehicle network and detecting unauthorized data (messages) flowing through the vehicle network. When the vehicle network monitoring device detects unauthorized data (messages), it transmits warning information (message code) to an on-board control device (on-board ECU).

[0004] JP 2013-131907 A

[0005] An in-vehicle device according to one aspect of the present disclosure is an in-vehicle device connected to an in-vehicle network mounted on a vehicle, and includes a processing unit that performs processing related to determining the validity of data flowing through the in-vehicle network, wherein the processing unit receives periodic data that is periodically transmitted on the in-vehicle network, and when event data of the same type as the periodic data is received between the reception times of two consecutively received periodic data, the processing unit determines the validity of the event data based on the payload value of the event data and the payload value of at least one of the two periodic data.

[0006] FIG. 1 is a schematic diagram illustrating the configuration of an in-vehicle system including an in-vehicle device according to a first embodiment; FIG. 2 is a block diagram illustrating the physical configuration of an in-vehicle device; FIG. 3 is an explanatory diagram relating to a data type table; FIG. 4 is an explanatory diagram relating to a data reception list; FIG. 5 is an explanatory diagram relating to a determination of whether event data is correct (event data transmission prohibited period); FIG. 6 is an explanatory diagram relating to a determination of whether event data is correct (normal cycle range); FIG. 7 is an explanatory diagram relating to a determination of whether event data is correct (normal value range); FIG. 8 is an explanatory diagram relating to a determination of whether event data is correct (forecasting); FIG. 9 is an explanatory diagram relating to a determination of whether event data is correct (payload change); FIG. 10 is an explanatory diagram (matrix table) relating to a determination mode (determination table) for event data by a processing unit of an in-vehicle device; and FIG. 11 is a flowchart illustrating processing by a processing unit of an in-vehicle device.

[0007] [Problem that the present disclosure aims to solve] The vehicle network monitoring device of Patent Document 1 has a problem in that, in a communication format in which data is transmitted periodically, no consideration is given to efficiently detecting abnormal (illegal) messages based on the correlation with the transmission period, etc.

[0008] The present disclosure aims to provide an in-vehicle device or the like that can efficiently detect abnormal data in a communication format in which data is transmitted periodically.

[0009] Effect of the Present Disclosure According to one aspect of the present disclosure, it is possible to provide an in-vehicle device or the like that efficiently detects abnormal data in a communication mode in which data is transmitted periodically.

[0010] [Description of Embodiments of the Present Disclosure] First, embodiments of the present disclosure will be listed and described. In addition, at least some of the embodiments described below may be combined in any manner.

[0011] (1) An in-vehicle device according to one aspect of the present disclosure is an in-vehicle device connected to an in-vehicle network mounted on a vehicle, and includes a processing unit that performs processing related to determining the validity of data flowing through the in-vehicle network. The processing unit receives periodic data that is periodically transmitted through the in-vehicle network, and when event data of the same type as the periodic data is received between the reception times of two consecutive periodic data, the processing unit determines the validity of the event data based on the payload value of the event data and the payload value of at least one of the two periodic data.

[0012] In this aspect, the processing unit of the in-vehicle device receives (acquires) multiple data (frames), such as CAN messages or IP packets, transmitted from an in-vehicle ECU connected to the in-vehicle network. Data transmitted and received between the in-vehicle ECUs via the in-vehicle network includes periodic data (periodic messages) transmitted periodically and event data (event messages) transmitted outside the period when a predetermined event occurs. The handling or processing details of the periodic data may be similar to, for example, the processing related to determining whether data (corresponding to periodic data) is correct or incorrect, as described in International Publication No. 2022 / 185566 (WO / 2022 / 185566). In other words, in this embodiment, by appropriately applying or citing the descriptions in International Publication No. 2022 / 185566, the processing unit of the in-vehicle device may perform processing related to the periodic data similar to the processing related to determining whether data is correct or incorrect, as described in International Publication No. 2022 / 185566. The data is classified into multiple types (categories) for each communication protocol. For example, when the communication protocol is TCP / IP, the data type may be determined based on the identity of a port number (TCP port number, UDP port number), a source address, a destination address, or a combination thereof included in an IP packet. When the communication protocol is CAN (Controller Area Network) or CAN / FD, the data type may be determined based on the identity of a CAN message ID (CAN-ID). In other words, data (CAN messages) with the same message ID (CAN-ID) correspond to data of the same type (data of the same type). When the processing unit of the in-vehicle device receives two pieces of periodic data of the same type consecutively, it determines whether event data (event messages) of the same type as the periodic data has been received between the times when the two consecutively received pieces of periodic data were received.When the processing unit of the in-vehicle device determines that event data has been received, it determines whether the event data is valid or invalid based on the payload value of the event data and the payload value of either of the two consecutively received periodic data, i.e., the first or last received periodic data. This allows efficient determination of whether the event data is valid (authentic) or invalid (illegal) based on the periodic data in a communication mode in which not only periodic data but also event data is transmitted. Furthermore, after receiving two consecutive periodic data, i.e., after receiving the later periodic data, the processing unit of the in-vehicle device performs a valid / invalid determination on one or more event data received between the reception points of the two consecutive periodic data. This reduces processing time compared to a process (detection logic) in which valid / invalid determination is performed each time event data is received. In particular, when multiple event data are received between the reception points of periodic data, the reception process of the event data and the valid / invalid determination process for the multiple received event data are performed separately, triggered by the reception of the later periodic data. This eliminates the overhead associated with performing a determination process each time event data is received, thereby reducing processing time and the processing load on the processing unit. In this embodiment, the determination of the validity of data by the processing unit of the in-vehicle device is intended to execute a process of determining whether the data (event data, periodic data) is normal or abnormal. Then, as a result of the determination process, the processing unit of the in-vehicle device determines that the data is abnormal or normal, and stores or outputs the determination result (abnormal determination or normal determination) in the storage unit.

[0013] (2) In an in-vehicle device according to one aspect of the present disclosure, the processing unit determines that the event data is abnormal when the difference between the payload value of the previously received periodic data and the payload value of the event data is less than or equal to a predetermined value, and determines that the event data is normal when the difference between the payload value of the previously received periodic data and the payload value of the event data exceeds a predetermined value.

[0014] In this aspect, the processing unit of the in-vehicle device determines whether the event data is valid by comparing (forecasting) the payload value of the first received periodic data (previous periodic data) of two consecutively received periodic data with the payload value (payload value) of the event data. The payload may contain (store) multiple signals, and the processing unit of the in-vehicle device may compare the signal values ​​(signal values) for each individual signal. In this case, the payload values ​​may be determined to be different even if only one of the signal values ​​included in the payload is different. In other words, "the payload values ​​are equal (substantially identical)" means that all signal values ​​included in the payload of the periodic data and all signal values ​​included in the payload of the event data are equal (substantially identical). The processing unit of the in-vehicle device determines that the event data is abnormal if the difference (absolute value of the difference, deviation, etc.) between the payload value (signal value) of the previous periodic data and the payload value (signal value) of the event data is equal to or less than a predetermined value, and determines that the event data is normal if the difference exceeds the predetermined value. For example, if the predetermined value is 0, and the difference between the payload value (signal value) of the previous periodic data and the payload value (signal value) of the event data is 0 or less, i.e., these payload values ​​are the same (complete match), the processing unit of the in-vehicle device may determine that the event data is abnormal. In this case, if these payload values ​​are not the same, i.e., different, the processing unit of the in-vehicle device determines that the event data is normal. The predetermined value (threshold value for determining difference) used when determining the difference in payload values ​​is set to 0 or a relatively small value close to 0, making it possible to determine whether the payload value of the previously received data and the payload value of the event data are substantially identical. The event data is transmitted before the periodic data to be transmitted in the next transmission cycle when an event occurs that changes the payload value of the periodic data transmitted immediately before.Therefore, it is assumed in the product specifications that the payload value of normal event data will differ from the payload value of the immediately preceding transmitted (received) periodic data (previous periodic data), and the processing unit of the in-vehicle device determines whether the event data is valid or invalid based on whether the difference between these payload values ​​is equal to or smaller than a predetermined value, i.e., whether these payload values ​​are substantially identical. By performing such processing, it is possible to efficiently determine whether the event data is valid or invalid based on the transmission characteristics of the event data, which is that it is transmitted outside the transmission period when a predetermined event occurs.

[0015] (3) In an in-vehicle device according to one aspect of the present disclosure, the processing unit determines that the event data is normal when the difference between the payload value of the later-received periodic data and the payload value of the event data is less than or equal to a predetermined value, and determines that the event data is abnormal when the difference between the payload value of the earlier-received data and the payload value of the event data is greater than a predetermined value.

[0016] In this aspect, the event data has a transmission characteristic in which, when an event occurs that changes the payload value of the previously transmitted periodic data, the event data is transmitted before the periodic data to be transmitted in the next transmission cycle. In this case, it is assumed in the product specifications that the payload value (signal value) of the periodic data received immediately after the event data (the later of two consecutively received periodic data) will be substantially identical to the payload value (signal value) of the event data. When determining whether the payload values ​​are substantially identical using a predetermined value (difference determination threshold) used to determine the difference between the payload values, the processing unit of the in-vehicle device may set the predetermined value (difference determination threshold) to 0 or a relatively small value close to 0. As a result, the processing unit of the in-vehicle device determines that the event data is normal if the difference between the payload values ​​(signal values) is 0 or less, i.e., the payload values ​​are the same (complete match). The processing unit of the in-vehicle device determines that the event data is abnormal if the difference between the payload values ​​(signal values) exceeds 0, i.e., the payload values ​​are different. By performing such processing, the authenticity of the event data can be efficiently determined in accordance with the transmission characteristics of the event data, which are transmitted outside the transmission period when a predetermined event occurs. Furthermore, the processing unit of the in-vehicle device may perform a comparison process (backcasting process) with the payload value of the subsequently received periodic data and a comparison process (forecasting process) with the payload value of the previously received periodic data. In this case, the processing unit of the in-vehicle device may perform parallel calculations (parallel processing) for the backcasting process and the forecasting process using multi-core or multi-CPU hardware resources. By parallelizing multiple processes on the event data in this way, the processing time (elapse time) required for the authenticity determination process of the event data can be reduced.

[0017] (4) In one aspect of the in-vehicle device of the present disclosure, when the processing unit receives multiple event data between the reception times of two consecutively received periodic data, it determines whether the multiple event data are correct or incorrect based on changes in the payload values ​​of each of the multiple event data.

[0018] In this aspect, if event data of the same type as two consecutively received periodic data is transmitted between the reception times of the two consecutively received periodic data, the processing unit of the in-vehicle device receives all of the transmitted event data, associates the reception times of each of the event data, and stores the event data in the storage unit of the in-vehicle device. At this time, the two consecutively received periodic data may also be stored in the storage unit in association with the reception times of each of the event data. At this time, if the processing unit of the in-vehicle device receives multiple event data between the reception times of the two consecutively received periodic data, the multiple event data are arranged in chronological order according to their reception times. The processing unit of the in-vehicle device determines whether the multiple event data are valid or invalid based on changes in the payload values ​​of each of the multiple event data arranged in chronological order at the reception times. If there is a change in the payload value of each of the multiple event data, the processing unit of the in-vehicle device determines whether the event data are valid or invalid. If there is no change, the processing unit of the in-vehicle device determines whether the event data are valid or invalid based on whether or not there is a change in the payload value of two adjacent event data at the reception time, or the degree of change (degree of change). This makes it possible to efficiently determine whether the event data is valid or invalid in accordance with the transmission characteristics of the event data, that is, the event data is transmitted outside the transmission cycle when a predetermined event occurs.

[0019] (5) In an in-vehicle device according to one aspect of the present disclosure, the processing unit determines that at least one of the two consecutive event data is abnormal if there is no change in the payload value of two consecutive event data received from the plurality of event data received.

[0020] In this aspect, the event data has a transmission characteristic in which, when an event occurs that changes the payload value of the previously transmitted (received) periodic data or event data, the event data is transmitted before the periodic data to be transmitted in the next transmission cycle. Therefore, when multiple event data are received between the reception times of two consecutively received periodic data, the product specifications assume that the payload values ​​of each of these multiple event data will be different (change) between two adjacent event data in the time series of reception times. If the payload values ​​of the two consecutively received event data do not change, i.e., if the payload values ​​are identical, the processing unit of the in-vehicle device determines that at least one of the two consecutive event data is abnormal. Therefore, the processing unit of the in-vehicle device can efficiently determine the validity of the event data according to the transmission characteristic of the event data. Note that, if the processing unit of the in-vehicle device determines that at least one of the two consecutive event data is abnormal, it may identify one of the event data by comparing the payload value of either of the two consecutively received periodic data. The processing unit of the in-vehicle device may store the received multiple event data in a memory unit, for example, in a list format (data reception list). When the processing unit of the in-vehicle device performs various arithmetic processing, such as determining whether or not the payload values ​​of multiple received event data have changed, it can perform (respond) the processing using only difference calculations or comparison calculations in the data reception list, thereby preventing an increase in the processing power (operating frequency) of the processing unit or the required amount of computational resources (hardware resources) such as the area of ​​the memory unit.

[0021] (6) In an in-vehicle device according to one aspect of the present disclosure, the processing unit determines that the later-received periodic data among the consecutively received periodic data is normal if the reception time of the later-received periodic data is within a normal period range based on the reception time of the earlier-received periodic data, and determines whether the event data is correct or incorrect based on the value of the payload only if it determines that the later-received data is normal.

[0022] In this aspect, when the processing unit of the in-vehicle device receives consecutive periodic data of the same type, the processing unit derives a reception interval, which is the interval between the reception time of the first received periodic data and the reception time of the second received periodic data. The processing unit determines whether the second received periodic data (periodic data of the same type as the first received periodic data) is valid or invalid based on the reception interval and the normal period range defined based on the reception time of the first received periodic data. This allows the processing unit to efficiently detect invalid (abnormal) data (messages) from periodically transmitted periodic data (messages) based on the transmission period. By setting the normal period range defined based on the reception time of the first received periodic data for two consecutively received periodic data in this manner, the processing unit of the in-vehicle device can identify, as event data, data received between the reception time of the first received periodic data and the start (lower limit (limit-low)) of the normal period range.

[0023] (7) In the in-vehicle device according to one aspect of the present disclosure, the normal period range is a range in which upper and lower limits are set with a transmission period determined based on the type of data as a reference value.

[0024] In this aspect, the processing unit of the in-vehicle device sets, based on the reception time of the previously received periodic data, a range in which upper and lower limits (from a lower limit (limit-low) to an upper limit (limit-upp)) are set, with the transmission period determined based on the type of the periodic data as a reference value. The lower limit (limit-low) corresponds to the start time of the normal period range. The upper limit (limit-upp) corresponds to the end time of the normal period range. The processing unit of the in-vehicle device may determine whether or not the later of two consecutively received periodic data sets has been received, depending on whether or not periodic data of the same type as the previously received periodic data has been received during the period corresponding to the normal period range thus set. When the processing unit of the in-vehicle device receives a single periodic data set during the period corresponding to the normal period range, the processing unit may set the next normal period range based on the reception time of the single periodic data set. In other words, the normal period range may be set based only on the reception time of periodic data determined to be valid, regardless of whether or not event data has been received. In this way, even in a communication format in which the normal period range is set based on the time of reception of periodic data (a communication format in which the regular transmission interval is not reset), it is possible to efficiently determine whether event data transmitted outside the period is correct or incorrect.

[0025] (8) In an in-vehicle device according to one aspect of the present disclosure, if the processing unit is unable to receive periodic data within the normal periodic range or if it receives multiple periodic data, it determines that the event data is abnormal without performing a determination process regarding the value of the payload of the event data.

[0026] In this aspect, the processing unit of the in-vehicle device calculates the number of received periodic data items within a normal period range set based on the reception time of the previously received periodic data item. If the number of received periodic data items is one (a single periodic data item is received), the processing unit of the in-vehicle device determines that the single periodic data item is normal. If the number of received periodic data items is two (a plurality of periodic data items is received) within the normal period range, the processing unit of the in-vehicle device determines that the plurality of periodic data items are abnormal. In this case, the processing unit of the in-vehicle device may determine that at least one of the received periodic data items is abnormal and that the plurality of periodic data items fall under the range abnormality detection "abnormality detection (range)." If the processing unit of the in-vehicle device fails to receive periodic data within the normal period range or receives multiple periodic data items, the processing unit of the in-vehicle device determines that one or more event data items are abnormal without performing a determination process on the payload value of the event data items, even if the processing unit receives one or more event data items between the reception time of the previously received periodic data item and the start time of the normal period range, "limit-low." When determining whether event data is valid or invalid, it is a prerequisite that two consecutively received periodic data sets are both determined to be normal. However, if periodic data within a normal periodic range is not received or if multiple periodic data sets are received, this prerequisite cannot be met. Therefore, if the prerequisite cannot be met, the event data is determined to be abnormal without performing a determination process on the value of the payload of the event data. This eliminates the need for excessive or redundant determination processes on the event data and prevents an unnecessary increase in the processing load on the processing unit of the in-vehicle device.

[0027] (9) In an in-vehicle device according to one aspect of the present disclosure, the processing unit determines whether the value of the payload of the event data is within a normal value range predetermined according to the type of periodic data, and if it determines that the value of the payload of the event data is within the normal value range, it determines whether the event data is correct or incorrect based on a comparison with the value of the payload of the periodic data, and if it determines that the value of the payload of the event data is not within the normal value range, it determines that the event data is abnormal without comparing it with the value of the payload of the periodic data.

[0028] In this aspect, the normal value range of the payload value (signal value) included in the event data and the periodic data, i.e., the range of values ​​that the payload value (signal value) can take, is predetermined according to the data type, which is determined by, for example, a message ID or a port number. These normal value ranges according to the data type may be stored in a storage unit, for example, in a table format (data type table). The processing unit of the in-vehicle device, for example, refers to the data type table to determine whether the payload value (signal value) of the received event data is within the normal value range. If the processing unit of the in-vehicle device determines that the payload value (signal value) of the event data is within the normal value range, the processing unit of the in-vehicle device determines whether the event data is correct or incorrect based on a comparison between the payload value (signal value) of the event data and the payload value (signal value) of at least one of the two consecutively received periodic data. If the processing unit of the in-vehicle device determines that the payload value is not within the normal value range, the processing unit of the in-vehicle device determines that the event data is abnormal without comparing the payload values ​​of the event data and the periodic data. In this case, the processing unit of the in-vehicle device may determine that the event data corresponds to a specific abnormality detection "abnormality detection (specific)." In other words, event data whose payload value (signal value) falls outside the normal range is assumed to be highly likely to be fraudulent (abnormal) data, for example, due to an attack, etc., and therefore, by eliminating the need for post-processing such as comparison of the event data with periodic data, it is possible to reduce the processing load on the processing unit or shorten the processing time.

[0029] (10) In an in-vehicle device according to one aspect of the present disclosure, the processing unit determines whether the time point at which the received event data was received is within an event data transmission prohibition period based on the time point at which the earliest received periodic data among the consecutively received periodic data was received. If it is determined that the time point at which the event data was received is not within the event data transmission prohibition period, it performs a determination process regarding the value of the payload of the event data. If it is determined that the time point at which the event data was received is within the event data transmission prohibition period, it determines that the event data is abnormal without performing a determination process regarding the value of the payload of the event data.

[0030] In this aspect, an event data transmission prohibition period during which transmission of the event data is prohibited is predetermined for the event data and periodic data, based on the time point of reception of the previously received periodic data, according to the data type determined by, for example, a message ID or a port number. The transmission prohibition period for each data type may be stored in a storage unit, for example, in a table format (data type table). The processing unit of the in-vehicle device, for example, references the data type table to determine whether the time point of reception of the received event data falls within the event data transmission prohibition period. If the processing unit of the in-vehicle device determines that the event data does not fall within the event data transmission prohibition period, it performs a determination process on the payload value of the event data. The determination process on the payload value of the event data includes, for example, determining whether the payload value (signal value) of the event data is within a normal value range, comparing the payload values ​​(signal values) of the event data and periodic data, or determining whether there is a change in the payload value (signal value) between two consecutively received event data. If the processing unit of the in-vehicle device determines that the event data falls within the event data transmission prohibition period, it determines that the event data is abnormal without performing any determination process on the payload value of the event data. In other words, since event data received during the event data transmission prohibition period is expected to be highly likely to be fraudulent (abnormal) data, for example, due to an attack, by eliminating the need for post-processing such as determination processing regarding the payload value of the event data, it is possible to reduce the processing load on the processing unit or shorten the processing time.

[0031] (11) A program according to one aspect of the present disclosure causes a computer connected to an in-vehicle network to receive periodic data periodically transmitted over the in-vehicle network, and, if event data of the same type as the periodic data is received between the reception times of two consecutively received periodic data, to execute a process of determining whether the event data is valid or invalid based on a payload value of the event data and a payload value of at least one of the two periodic data.

[0032] In this aspect, it is possible to provide a program that causes a computer to function as an in-vehicle device that can efficiently detect abnormal data in a communication format in which data is transmitted periodically.

[0033] (12) An information processing method according to one aspect of the present disclosure includes receiving periodic data periodically transmitted over an in-vehicle network to a computer connected to the in-vehicle network, and if event data of the same type as the periodic data is received between the reception times of two consecutively received periodic data, determining whether the event data is correct or incorrect based on the payload value of the event data and the payload value of at least one of the two periodic data.

[0034] In this aspect, it is possible to provide an information processing method that causes a computer to function as an in-vehicle device that can efficiently detect abnormal data in a communication format in which data is transmitted periodically.

[0035] [Details of the embodiment of the present disclosure] The present disclosure will be specifically described with reference to the drawings illustrating the embodiment. An in-vehicle device 2 according to the embodiment of the present disclosure will be described below with reference to the drawings. Note that the present disclosure is not limited to these examples, but is defined by the claims, and is intended to include all modifications within the meaning and scope equivalent to the claims.

[0036] (Embodiment 1) Hereinafter, an embodiment will be described with reference to the drawings. Fig. 1 is a schematic diagram illustrating the configuration of an in-vehicle system S including an in-vehicle device 2 according to embodiment 1. Fig. 2 is a block diagram illustrating the physical configuration of the in-vehicle device 2.

[0037] The in-vehicle system S is configured with an in-vehicle device 2 mounted on a vehicle C as a main device, and the in-vehicle device 2 is communicably connected to an exterior communication device 1 and a plurality of in-vehicle ECUs 3. The in-vehicle device 2 relays communication between the plurality of in-vehicle ECUs 3 mounted on the vehicle C. The in-vehicle device 2 may communicate with an external server 100 connected via an exterior network N via the exterior communication device 1, and relay communication between the external server 100 and the in-vehicle ECUs 3 mounted on the vehicle C.

[0038] The external server 100 is a computer such as a server connected to an external network N such as the Internet or a public line network, and includes a memory unit 21 or a storage device such as a RAM (Random Access Memory), a ROM (Read Only Memory), or a hard disk. The memory unit 21 of the external server 100 is included in a memory area accessible from the in-vehicle device 2.

[0039] The vehicle C is equipped with an exterior communication device 1, an in-vehicle device 2, a display device 5, and a plurality of in-vehicle ECUs 3 for controlling various in-vehicle devices. The in-vehicle device 2 and the exterior communication device 1 are communicatively connected by a wire harness such as a serial cable. The in-vehicle device 2 and the in-vehicle ECU 3 are communicatively connected by a communication line 41 and an in-vehicle network 4 that are compatible with a communication protocol such as CAN (Control Area Network / registered trademark), CAN / FD, or Ethernet (registered trademark). The communication protocol used by the in-vehicle device 2 and the in-vehicle ECU 3 may be LIN, MOST, FlexRay, or the like.

[0040] The exterior-vehicle communication device 1 includes an exterior-vehicle communication unit (not shown) and an input / output I / F (not shown) for communicating with the in-vehicle device 2. The exterior-vehicle communication unit is a communication device for wireless communication using a mobile communication protocol such as 3G, LTE, 4G, 5G, or Wi-Fi, and transmits and receives data to and from an external server 100 via an antenna 11 connected to the exterior-vehicle communication unit. Communication between the exterior-vehicle communication device 1 and the external server 100 is performed via an external network N, such as a public line network or the Internet. The input / output I / F is a communication interface for, for example, serial communication with the in-vehicle device 2. The exterior-vehicle communication device 1 and the in-vehicle device 2 communicate with each other via the input / output I / F and a wire harness, such as a serial cable, connected to the input / output I / F. In this embodiment, the exterior-vehicle communication device 1 is a separate device from the in-vehicle device 2, and these devices are communicatively connected via the input / output I / F, but this is not limiting. The exterior-vehicle communication device 1 may be built into the in-vehicle device 2 as a component of the in-vehicle device 2.

[0041] The in-vehicle device 2 includes a processing unit 20, a storage unit 21, an input / output I / F 22, and an in-vehicle communication unit 23. The in-vehicle device 2 is, for example, an in-vehicle relay device such as a gateway (CAN gateway) that manages system segments formed by multiple communication lines 41, such as the in-vehicle ECU 3 for recognition, the in-vehicle ECU 3 for judgment, and the in-vehicle ECU 3 for operation, and relays communications between the in-vehicle ECUs 3 between these segments. Each of the multiple communication lines 41 corresponds to a bus (CAN bus, Ethernet cable) in each segment. The in-vehicle device 2 may be an in-vehicle relay device such as a Layer 2 or Layer 3 Ethernet switch, a PLB (Power LAN Box) that has a power distribution function in addition to a data communication relay function, or an integrated ECU that has a relay function and controls the entire vehicle C in an integrated manner. Alternatively, the in-vehicle device 2 may be configured as a functional part of the in-vehicle ECU 3, such as a body ECU that controls body actuators of the vehicle C.

[0042] The processing unit 20 is configured with a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), and performs various control processes and arithmetic processes by reading and executing control programs (program products) and data pre-stored in the storage unit 21. The processing unit 20 determines whether data (CAN messages, IP packets) acquired (received) via the in-vehicle communication unit 23 is correct or not, and may also function as a control unit that performs overall control of the in-vehicle device 2.

[0043] The storage unit 21 is configured with a volatile memory element such as a RAM (Random Access Memory) or a non-volatile memory element such as a ROM (Read Only Memory), an EEPROM (Electrically Erasable Programmable ROM), or a flash memory, and stores a program P (program product) and data to be referenced during processing in advance. The program P (program product) stored in the storage unit 21 may be a program P (program product) read from a recording medium M readable by the in-vehicle device 2. Alternatively, the program P (program product) may be downloaded from an external computer (not shown) connected to a communication network (not shown) and stored in the storage unit 21.

[0044] The storage unit 21 stores relay route information (routing table) used in relay processing for communication between the in-vehicle ECUs 3 or communication between the in-vehicle ECUs 3 and the external server 100. The format of the relay route information is determined based on the communication protocol. When the communication protocol is, for example, CAN, the CAN relay route information includes a message identifier (CAN-ID) included in the CAN message and a relay destination (I / O port number of the in-vehicle communication unit 23) associated with the CAN-ID.

[0045] The input / output I / F 22 is a communication interface for, for example, serial communication, similar to the input / output I / F of the exterior communication device 1. For example, via the input / output I / F 22, the in-vehicle device 2 is communicably connected to the exterior communication device 1, the display device 5 (HMI device), and the IG switch 6 (or power switch) that starts and stops the vehicle C.

[0046] The in-vehicle communication unit 23 is an input / output interface (CAN driver, Ethernet PHY unit) using a communication protocol such as CAN (Control Area Network), CAN-FD (CAN with Flexible Data Rate), or Ethernet (registered trademark), and the processing unit 20 communicates with in-vehicle devices such as the in-vehicle ECU 3 or other relay devices connected to the in-vehicle network 4 via the in-vehicle communication unit 23.

[0047] A plurality of in-vehicle communication units 23 are provided, and each in-vehicle communication unit 23 is connected to a respective communication line 41 (such as a CAN bus) that constitutes the in-vehicle network 4. By providing a plurality of in-vehicle communication units 23 in this manner, the in-vehicle network 4 may be divided into a plurality of segments. The topology type of the in-vehicle network 4 is not limited to the bus type as shown in the figure in this embodiment, and the topology type may be, for example, a star type centered on the in-vehicle device 2, a ring type including a plurality of in-vehicle devices 2, or a cascade type with the in-vehicle device 2 at the top.

[0048] The processing unit 20 of the in-vehicle device 2 configured in this manner transitions through multiple states during the process of performing a determination process on received data (periodic data, event data) described below. The multiple states include, for example, a reference data reception state (reference message acquisition state) in which data (periodic data) that serves as a reference for identifying a normal period range is received, and a determination execution state (periodic detection execution state) in which the correctness of the received data (periodic data) is determined based on the identified normal period range. The processing by the processing unit 20 related to state transitions during these determination processes may use, for example, the state transition processing described in International Publication No. WO 2022 / 185566 (WO / 2022 / 185566).

[0049] The on-vehicle ECU 3 includes a control unit (not shown), a storage unit (not shown), and an in-vehicle communication unit (not shown), similar to the on-vehicle device 2. The storage unit 21 is configured with a volatile memory element such as a random access memory (RAM) or a non-volatile memory element such as a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory, and stores programs or data for the on-vehicle ECU 3. The on-vehicle ECU 3 communicates with the on-vehicle device 2, for example, by periodically transmitting CAN messages or IP packets. The on-vehicle ECU 3 may be an individual ECU connected to a sensor or an actuator and connected under the control of an integrated ECU.

[0050] The display device 5 is an HMI (Human Machine Interface) device such as a display of a car navigation system. The display device 5 is communicably connected to the input / output I / F 22 of the in-vehicle device 2 via a harness such as a serial cable. The display device 5 displays data or information output from the processing unit 20 of the in-vehicle device 2 via the input / output I / F 22.

[0051] 3 is an explanatory diagram of a data type table. Various data referenced by the processing unit 20 when performing the determination process is stored in a predetermined storage area accessible from the processing unit 20, such as the storage unit 21 of the in-vehicle device 2, or a storage device connected to the in-vehicle ECU 3 or the external server 100. Data types to be monitored when the processing unit 20 performs the determination process are stored in the storage unit 21 or the like as a data type table in table format. Management items (fields) defined in the data type table include, for example, a message ID (data type), design period, upper and lower limit value ratio, normal period range, determination execution target flag, event data transmission prohibition time, and payload normal value range.

[0052] The management item (field) for message ID (data type) stores, for example, a message ID (CAN-ID) indicating the type of CAN message. The type of data to be received is determined based on the message ID. If the data to be determined is, for example, a CAN message, CAN messages with the same message ID are processed as being the same type of data. In other words, the message ID is set as a management item for classifying or defining the data type. The management item (field) for determining the data type is not limited to the message ID in a CAN message, and may be, for example, in the case of a TCP / IP packet, the source IP address, destination IP address, TCP port number, UDP port number, or a combination of these included in the packet.

[0053] The design period indicates a predetermined transmission period when data (messages) are transmitted from any of the in-vehicle ECUs 3, etc., i.e., the transmission period based on the design specifications of the application, etc., implemented in the in-vehicle ECU 3. The design period management item (field) stores the design period (e.g., x [ms]) for each piece of data.

[0054] The upper and lower limit ratio indicates upper and lower limit values ​​for specifying a normal cycle range based on the design cycle. The upper and lower limit ratio may be defined, for example, as a ratio to the design cycle (e.g., a %, where a > 0), or may be expressed in real time (±x × a × 0.01 [ms]). Alternatively, the upper and lower limits of the upper and lower limit ratio may be different ratios.

[0055] The normal period range is calculated based on the design period and the upper and lower limit ratio, and is information used to determine whether received data is correct. For example, if the design period is x [ms] and the upper and lower limit ratio is a % (±xx a x 0.01 [ms]), the normal period range is x - xx a x 0.01 [ms] to x + xx a x 0.01 [ms]. If the time point at which the reference data used to determine the normal period range is received is (K ms), the median of the normal period range is (K + x) ms, the lower limit of the normal period range (limit-low) is {(K + x) - (xx a x 0.01)} ms, and the upper limit of the normal period range (limit-upp) is {(K + x) + (xx a x 0.01)} ms. In this embodiment, the data type table includes both the design period and the upper / lower limit value ratio, and the normal period range, but it is not limited to this and it goes without saying that the table may include only one of them.

[0056] The judgment execution target flag stores a flag value (1: to be monitored, 0: not to be monitored) that determines which type of data is to be subjected to the execution of the correct / incorrect judgment (to be monitored) among the data transmitted and received over the in-vehicle network 4. In this way, among the data transmitted and received over the in-vehicle network 4, by designating the data of the type for which the judgment execution target flag is set as the target for the execution of the correct / incorrect judgment (to be monitored), it is possible to monitor only data with a relatively high level of importance, thereby reducing the processing load on the in-vehicle device 2 (processing unit 20).

[0057] The event data transmission prohibition time is a value that specifies the time (period) during which event data transmission is prohibited from the time of reception of reference data (reference message) for identifying the normal periodic range, i.e., the previously received periodic data, for the message ID (data type) stored in the same record. That is, the start point of the period during which event data transmission is prohibited (event data transmission prohibition period) is the time when the previously received periodic data is received, and the end point of the event data transmission prohibition period is the time when the event data transmission prohibition time has elapsed from the time of reception. The event data transmission prohibition time is shorter (smaller) than the design period (event data transmission prohibition time < design period). The event data transmission prohibition time may be set using a coefficient (K) less than 1, such as 0.4, relative to the design period (event data transmission prohibition time = design period × K: e.g., K = 0.4). As will be described in detail later, data (event data) received during the event data transmission prohibition period is determined to be abnormal (anomaly detection (identification)).

[0058] The payload normal value range stores the possible range of values ​​such as signal values ​​or control values ​​included in the payload field of the message ID (data type) stored in the same record. The possible range of values ​​such as signal values ​​or control values ​​is a range determined in advance based on the product specifications of various applications that detect or calculate these values. As will be described in detail later, if the value stored in the payload field of the received event data exceeds the normal payload value range, the event data is determined to be abnormal (anomaly detected (identified)).

[0059] A plurality of values ​​may be defined (stored) in the payload normal value range according to each signal included in the payload area. In this embodiment, the payload area includes two signals (signal A and signal B), and normal value ranges may be defined for each of these signals (normal value range for signal A and normal value range for signal B).

[0060] When making a correct / incorrect determination based on the payload values ​​of the received event data, the processing unit 20 of the in-vehicle device 2 may determine whether each signal value included in the payload area is within a normal value range. In this case, even if only one of the multiple signal values ​​included in the payload area exceeds the normal value range, the processing unit 20 of the in-vehicle device 2 may determine that the received event data is abnormal (abnormality detected (identified)).

[0061] 4 is an explanatory diagram of a data reception list. When the processing unit 20 of the in-vehicle device 2 receives data to be judged as correct or incorrect, it stores information about the data in a list format (data reception list) or table format in a predetermined accessible storage area such as the storage unit 21. When the processing unit 20 of the in-vehicle device 2 stores information about the received data in, for example, a data reception list, it may store the information in different lists depending on the data type. The data reception list thus generated and stored depending on the data type is saved and managed as log information (reception log) of the received data.

[0062] The data reception list in list format (table format) is saved and managed as a different list for each data type, for example. Each data reception list for each data type includes management items (fields), for example, a serial number (No.), a reception timestamp, a reception period, a normal value range determination, a payload value, a forecast result, a backcast result, and a result determination.

[0063] The serial number (No.) management item stores a number (serial number) indicating the order in which data was received. In this embodiment, the serial number of the reference data (reference message) for identifying the normal period range, i.e., the previously received periodic data, is set (stored) as 0. After receiving the previous periodic data, the serial number is incremented (by 1) and set (stored) each time data of the same type as the previous periodic data is received.

[0064] The management item for reception time (timestamp) stores a reception time (timestamp) indicating the time when data with a serial number (No.) stored in the same record was received. The processing unit 20 of the in-vehicle device 2 uses the reception time of data with a serial number set to 0 (previously received periodic data) as a reference and calculates the difference (time difference) from the reception time of each data, thereby making it possible to identify whether the data was received during an event data transmission prohibited period, an event transmission allowed period (event data transmission allowed period), or a normal periodic range.

[0065] The received period stores the period that includes the time point at which data with the serial number (No.) stored in the same record was received. This period includes the normal period range (previous normal period range) that includes the time point at which reference data (reference message) included in the previous normal period range was received, i.e., the time point at which the previously received periodic data was received, followed by the event data transmission prohibited period, event transmission allowed period, and current normal period range, in this order. The event data transmission prohibited period and current normal period range are determined based on the time point at which the previously received periodic data was received, for example, according to the normal period range and event data transmission prohibited time defined in the data type table. The event transmission allowed period (event data transmission allowed period) is the period between the event data transmission prohibited period and the current normal period range.

[0066] The processing unit 20 of the in-vehicle device 2 determines whether the received data is event data or periodic data depending on which period the data reception time belongs to. Data received during an event data transmission prohibited period or an event transmission permitted period is determined to be event data. Data received within a normal period range is determined to be periodic data.

[0067] The management item for determining the normal value range stores whether or not the payload value of the data of the consecutive numbers (No.) stored in the same record, i.e., each signal value, is within the normal payload value range defined in the data type table (inside or outside the range). Note that event data received during the event data transmission prohibition period may not be processed with respect to the payload value.

[0068] The payload value management item stores the payload values ​​of consecutively numbered data stored in the same record, i.e., individual signal values. Note that event data received during the event data transmission prohibition period may not be processed with respect to the payload values.

[0069] The forecast result management item stores the determination results of the forecast process for the data (event data) received during the event transmission allowable period. Details of the forecast process will be described later.

[0070] The backcast result management item stores the determination result of the backcast process on the data (event data) received during the event transmission allowable period. Details of the backcast process will be described later.

[0071] The result determination management item stores the forecast result for the data (event data) received during the event transmission allowance period, or the final result determination according to the combination of the forecast result and the backcast result. The result determination is, for example, normal or abnormal, and the abnormality includes anomaly detection (range) "abnormal (range)" indicating a state in which an abnormality is detected within a certain range of received data, and anomaly detection (identification) "abnormal (identification)" indicating a state in which it has been possible to identify which data (message) is abnormal. Details regarding the result determination will be described later.

[0072] FIG. 5 is an explanatory diagram regarding the determination of the validity of event data (event data transmission prohibition period). In the illustration of this embodiment, the determination process for data of a specific data type (e.g., CAN message) will be described. In this illustration, the horizontal axis represents time (elapsed time). For example, for each piece of data (monitored message) defined in a data type table stored in the storage unit 21, the processing unit 20 of the in-vehicle device 2 calculates the reception interval of the same type of data (same message ID), and if the reception interval falls within a normal period range, determines (identifies) the data as periodically transmitted periodic data (periodic message). The determination of the validity of the periodic data and the determination of the normal period range may be similar to the processing for data (corresponding to periodic data) described in, for example, International Publication No. WO 2022 / 185566 (WO / 2022 / 185566).

[0073] In the illustrated embodiment, the previous periodic data (reference Msg) is determined to be normal, and the event data transmission prohibition period and normal value range are determined based on the time point at which the previous periodic data (reference Msg) was received. The event data transmission prohibition period is the period from the time point at which the previous periodic data (reference Msg) was received until the event data transmission prohibition time has elapsed. The processing unit 20 of the in-vehicle device 2 determines the median value to be the time point at which the previous periodic data (reference Msg) was received plus the design period (T), and calculates (specifies) the normal period range (current normal period range) as the period with the lower limit (limit-low) and upper limit (limit-upp) around the median value. Data (Msg2) received within this normal period range (current normal period range) is treated as subsequent periodic data (Msg2). In the illustration of this embodiment, the number of data received within this normal periodic range is only one, which is the subsequent periodic data (Msg2), and the payload values ​​(all signal values) of the periodic data (Msg2) are within the normal value range, so the subsequent periodic data (Msg2) is determined to be normal.

[0074] The time point of reception of the data (Msg1) received between the time point of reception of the previous periodic data (reference Msg) and the lower limit (limit-low) of the current normal period range is included in the event data transmission prohibition period. Therefore, the processing unit 20 of the in-vehicle device 2 determines that the data (Msg1) received during the event data transmission prohibition period is abnormal event data. In this case, the processing unit 20 of the in-vehicle device 2 may determine that the event data (Msg1) corresponds to an abnormality detection (identification) "abnormal (identification)."

[0075] FIG. 6 is an explanatory diagram illustrating the determination of whether event data is valid (normal period range). In the illustrated example of the present embodiment, multiple pieces of data (Msg6, Msg7) are received as periodic data within the current normal period range. Furthermore, two pieces of event data (Msg1, Msg2) are received within the event data transmission prohibited period, and three pieces of event data (Msg3, Msg4, Msg5) are received within the event transmission permitted period. All of the multiple pieces of periodic data (Msg6, Msg7) received within the normal period range (current normal period range) are determined to be abnormal. The processing unit 20 of the in-vehicle device 2 may determine that the multiple pieces of periodic data (Msg6, Msg7) received within the same normal period range fall within the abnormality detection range (range) "abnormal (range)."

[0076] When determining whether the event data is valid or invalid, it is assumed that both of the two consecutively received periodic data (the previous periodic data and the subsequent periodic data) are determined to be normal. In contrast, if the periodic data (the subsequent periodic data) cannot be received within the normal period range (within the current normal period range) or if multiple periodic data (the subsequent periodic data) are received, this prerequisite cannot be met. In this case, the processing unit 20 of the in-vehicle device 2 transitions to a reference data reception state (a reference message acquisition state) in which it receives periodic data that serves as a reference for identifying the subsequent normal period range. After transitioning to the reference data reception state, when the processing unit 20 of the in-vehicle device 2 receives data for the first time, it sets the data as periodic data and transitions to a determination execution state (a period detection execution state). In this case, the processing unit 20 of the in-vehicle device 2 determines that the event data (Msg1, Msg2) received between the time of receiving the previous periodic data (reference Msg) and the lower limit (limit-low) of the current normal periodic range, and received within the event data transmission prohibition period, corresponds to an abnormality detection (identification) "abnormality (identification)."

[0077] Furthermore, the processing unit 20 of the in-vehicle device 2 may execute a processing form (pattern A) in which, for event data (Msg3, Msg4, Msg5) received within the event transmission allowable period, the event data (Msg3, Msg4, Msg5) is determined to be correct or incorrect based on a comparison with the payload values ​​of previous periodic data that have already been determined to be normal. The payload value comparison process will be described later. By using this processing form (pattern A), the accuracy of anomaly detection for each of the event data (Msg3, Msg4, Msg5) can be improved. That is, the frequency of anomaly detection (range) determinations of "Abnormal (Range)," which indicates a state in which an anomaly is detected within a certain range of received data, can be reduced, and the frequency of anomaly detection (identification) determinations of "Abnormal (Identification)," which indicates a state in which the data (message) that is abnormal can be identified, can be increased.

[0078] Alternatively, the processing unit 20 of the in-vehicle device 2 may determine that the event data (Msg3, Msg4, Msg5) received within the event transmission allowable period corresponds to the abnormality detection (range) "Abnormal (range)." In this case, a processing form (pattern B) may be performed in which the multiple pieces of periodic data (Msg6, Msg7) determined to be the abnormality detection (range) "Abnormal (range)" and the event data (Msg3, Mg4, Msg5) determined to be the abnormality detection (range) "Abnormal (range)" are stored in the log information as separate abnormality determination results. By using this processing form (pattern B), the abnormality detection (range) "Abnormal (range)" outside the normal periodic range and the abnormality detection (range) "Abnormal (range)" within the normal periodic range can be separately stored in the log.

[0079] Alternatively, the processing unit 20 of the in-vehicle device 2 may determine that the event data (Msg3, Msg4, Msg5) received within the event transmission allowable period corresponds to the abnormality detection (range) "abnormal (range)." In this case, a processing form (pattern C) may be performed in which the multiple periodic data (Msg6, Msg7) determined to be the abnormality detection (range) "abnormal (range)" and the event data (Msg3, Mg4, Msg5) determined to be the abnormality detection (range) "abnormal (range)" are stored (log-saved) as a series of (identical) abnormality determination results in the log information. By using this processing form (pattern C), the processing time can be relatively shortened. Furthermore, compared to pattern B, the size of the common header portion added when saving the log can be reduced, thereby alleviating storage area congestion in the storage unit 21.

[0080] Alternatively, the processing unit 20 of the in-vehicle device 2 may perform a processing mode (pattern D) in which the event data (Msg3, Msg4, Msg5) received within the event transmission allowable period is stored in the log information as data not subject to the validity determination. By using this processing mode (pattern D), the processing time can be shortened most compared to other processing modes.

[0081] In this embodiment, if no periodic data is received within the current normal period range or if multiple periodic data are received, the processing mode for the event data (Msg3, Msg4, Msg5) received within the event transmission allowance period is not limited to being fixed or uniformly set, but may be variably set. The processing mode for the event data (Msg3, Msg4, Msg5) may be determined individually for each data type, for example. In this case, the data type table may include a management item for managing the processing mode, and each data type may be defined as one of processing modes A to D, for example. It is assumed that the processing mode (pattern) to be applied to the received data is determined based on a trade-off between the log retention policy and the processing time required for the detection process. The log retention policy is, for example, a product specification or operational setting regarding whether to widely log even slightly suspicious data or to log only reliably anomalous data. In contrast, by using, for example, a data type table to determine the processing mode (pattern) for each data type, an appropriate processing mode can be used according to the data importance determined by the data type.

[0082] FIG. 7 is an explanatory diagram illustrating the determination of whether event data is correct (normal value range). In the illustrated example of this embodiment, both the previous periodic data (reference Msg) and the subsequent periodic data (Msg2) are determined to be normal. For the event data (Msg1) received between the reception of the previous periodic data (reference Msg) and the lower limit (limit-low) of the current normal periodic range, the reception time of the event data (Msg1) falls within the event transmission allowable period. Therefore, from the perspective of the reception time, the event data (Msg1) can be considered normal. However, because the payload value (signal value) of the event data (Msg1) exceeds the normal value range, the processing unit 20 of the in-vehicle device 2 determines that the event data (Msg1) is an abnormality detected (identified) as "abnormal (identified)."

[0083] In the illustrated embodiment, the payload area of ​​the event data (Msg1) contains the values ​​of signal A and signal B. Of these, for example, only the value of signal A is outside the payload normal value range (normal value range of signal A) defined in the data type table. In this way, even if only one of multiple signal values ​​is outside the normal value range, the processing unit 20 of the in-vehicle device 2 may determine that the event data whose payload area contains a signal value outside the normal value range (a signal value outside the possible range) is an abnormality detected (identified) "abnormal (identified)."

[0084] FIG. 8 is an explanatory diagram regarding the determination of the validity (forecasting) of event data. In the illustration of this embodiment, the previous periodic data (reference Msg) and the subsequent periodic data (Msg2) are both determined to be normal. The time of reception of the event data (Msg1) falls within the event transmission allowable period. The payload value (signal value) of the event data (Msg1) is within the normal payload value range (the normal value ranges of Signal A and Signal B). Therefore, from the perspective that the time of reception of the event data (Msg1) and the payload value (signal value) are within the normal value range, the event data (Msg1) can be said to be normal. However, when compared with the payload value (signal value) of the periodic data (reference Msg), which is the same type of data as the event data (Msg1) and was received immediately before, the payload values ​​(all signal values) of the event data (Msg1) and the periodic data (reference Msg) are the same.

[0085] Event data has a transmission characteristic in which, when an event occurs that changes the payload value of the previously transmitted periodic data, the event data is transmitted before the periodic data to be transmitted in the next transmission cycle. Therefore, for the same data type, it is contrary to this transmission characteristic if the payload value of event data and the payload value of the periodic data received immediately before the event data are the same. The processing unit 20 of the in-vehicle device 2 determines that an abnormality has been detected (identified) as "abnormal (identified)" when event data has the same payload value as the payload value of the previously received periodic data. If the payload value of the periodic data received immediately before the event data is not the same as the payload value of the event data, i.e., if the payload values ​​are different, the processing unit 20 of the in-vehicle device 2 determines that the event data is normal.

[0086] The processing unit 20 of the in-vehicle device 2 determines whether the event data is correct or incorrect based on the identity of the payload value of the periodic data and the payload value of the event data. However, the determination of identity does not need to be limited to a case where the values ​​exactly match. The processing unit 20 of the in-vehicle device 2 may determine that the event data is abnormal if the difference between the payload values ​​(signal values) of the periodic data and the event data is equal to or less than a predetermined value (substantially identical), and may determine that the event data is normal if the difference between the payload values ​​(signal values) of the periodic data and the event data exceeds the predetermined value (not substantially identical). A predetermined value of 0 indicates a perfect match of the payload values ​​(signal values). However, by setting the predetermined value to, for example, a relatively small value close to 0, it is possible to flexibly accommodate transmission characteristics determined by the data type of the event data. In other words, the predetermined value (difference determination threshold) used for comparing the payload values ​​(signal values) (determination of difference) may be individually set, for example, using a data type table, depending on the data type of the event data transmitted in an event-driven manner.

[0087] FIG. 9 is an explanatory diagram regarding the determination of whether event data is valid (payload change). In the illustrated example of this embodiment, both the previous periodic data (reference Msg) and the subsequent periodic data (Msg6) are determined to be valid. Furthermore, five pieces of event data (Msg1 to Msg5) are received within the event transmission allowable period. As described above, event data has the transmission characteristic of being transmitted in an event-driven manner when an event occurs that changes the payload value of the previously transmitted periodic data. Therefore, if the event occurs multiple times within the same event transmission allowable period, the event data is transmitted multiple times in response to each occurrence of the event.

[0088] In the illustrated embodiment, the payload values ​​of all of the multiple event data (Msg1 to Msg5) are within the normal range, meaning that the event data payload values ​​themselves are normal. The processing unit 20 of the in-vehicle device 2 then compares the payload value of the event data to be evaluated with the payload value of the same type of data (periodic data or event data) received immediately before the event data being evaluated. For the event data (Msg1) received immediately after the previous periodic data (reference Msg: No. 0), as described in FIG. 8 , the payload values ​​of the periodic data (reference Msg: No. 0) and the event data (Msg1) are compared. If the payload values ​​are not identical, the event data (Msg1) is determined to be normal.

[0089] Event data (Msg2 to Msg5) received after the reception of event data (Msg1) are event data that have been determined to be normal, and are compared with the payload value of the event data received immediately before to determine whether they are correct. That is, the correctness of event data (Msg2) is determined by comparing its payload value with that of event data (Msg1), and if these payload values ​​are different (not substantially identical), it is determined to be normal. Similarly, the payload values ​​of two consecutively received event data (Msg2 and Msg3, and Msg3 and Msg4) are also compared.

[0090] The two event data (Msg3 and Msg4) have the same payload value. Therefore, the processing unit 20 of the in-vehicle device 2 determines that the event data (Msg4) received later than the two event data (Msg3 and Msg4) is abnormal. The processing unit 20 of the in-vehicle device 2 may determine the event data (Msg4) as an abnormality detection (range) "abnormal (range)." When the event data (Msg5) is the target of determination, the event data (Msg4) is determined to be normal and was received immediately before the event data (Msg5). In other words, the event data (Msg4) is the data used to compare payload values ​​when determining whether the event data (Msg5) is correct or not.

[0091] In this way, the processing unit 20 of the in-vehicle device 2 executes a process (forecasting process) in which, based on the previous periodic data (Reference Msg: No. 0) that has already been determined to be normal, the validity of multiple event data received within the event transmission allowable period that is set based on the time point at which the periodic data was received is determined sequentially based on whether or not the payload value (signal value) has changed from that periodic data (Reference Msg: No. 0). This allows for efficient determination of the validity of the event data in accordance with the transmission characteristics of the event data, which is that the event is transmitted outside the transmission period (design period) when a predetermined event occurs, i.e., when the payload value (signal value) has changed from the immediately preceding transmission time.

[0092] FIG. 10 is an explanatory diagram regarding the determination of event data validity (backcasting). In the illustrated example of this embodiment, both the previous periodic data (reference Msg) and the subsequent periodic data (Msg2) are determined to be normal. That is, the subsequent periodic data (Msg2) is the only data of the same type received within a normal periodic range established based on the reception time of the previous periodic data (reference Msg), and the payload value of the subsequent periodic data (Msg2) is within the normal value range, so it is determined to be normal. The event data (Msg1) was received within the event transmission allowable period, and its payload value (signal value) is also within the normal value range. Furthermore, since the payload value (signal value) of the event data (Msg1) is different (not substantially identical) from the payload value (signal value) of the previous periodic data (reference Msg), the event data (Msg1) appears normal from the perspective of a change in payload value from the previous periodic data (reference Msg). In contrast, the payload value (signal value) of the event data (Msg1) and the payload value (signal value) of the subsequent periodic data (Msg2) are different.

[0093] Event data has a transmission characteristic of being transmitted in an event-driven manner when an event occurs that changes the payload value of the data (periodic data or event data) transmitted immediately before. In contrast, periodic data is transmitted periodically when no event occurs that changes the payload value of the data (periodic data or event data) transmitted immediately before. Therefore, it is assumed that the payload value (signal value) of the event data received immediately before the periodic data is received matches (is substantially identical to) the payload value (signal value) of the periodic data. The aforementioned difference determination threshold value may be used to determine whether or not the payload values ​​of the event data and the periodic data received immediately after the event data are different (are not substantially identical to) each other, which violates the transmission characteristic. For data of the same type, it is not practically the case that the payload value of the event data and the payload value of the periodic data received immediately after the event data are different (are not substantially identical to each other).

[0094] The processing unit 20 of the in-vehicle device 2 performs a comparison process (backcast process) between the payload value (signal value) of the last event data (Msg1) received during the event transmission allowable period and the payload value (signal value) of the subsequent periodic data (Msg2). The processing unit 20 of the in-vehicle device 2 determines that event data having a payload value different from the payload value of the immediately subsequent periodic data is an abnormality detection (identification) "abnormal (identification)." The processing unit 20 of the in-vehicle device 2 determines that event data having a payload value that is the same (substantially identical) to the payload value of the immediately subsequent periodic data is normal.

[0095] 11 is an explanatory diagram (matrix table) of the determination mode (determination table) for event data by the processing unit 20 of the in-vehicle device 2. The processing unit 20 of the in-vehicle device 2 performs a determination process (forecasting process) based on whether or not there is a change in the payload value of the previous periodic data, and a determination process (backcasting process) based on the identity of the payload value with the subsequent periodic data, for one or more event data received during an event transmission allowable period.

[0096] In this case, for example, both forecast processing and backcast processing are performed on the last event data received during the event transmission allowable period. At this time, the processing unit 20 of the in-vehicle device 2 may combine the results of the forecast processing and the backcast processing to derive a final result determination. Event data other than the last event data received during the event transmission allowable period may be subjected to forecast processing only, and the processing unit 20 of the in-vehicle device 2 may derive a final result determination based on the forecast processing. When deriving the final result determination, the processing unit 20 of the in-vehicle device 2 may derive a determination mode (final result determination) for the event data using, for example, a determination table shown in a matrix format.

[0097] The judgment table is stored in a predetermined storage area accessible by the processing unit 20, such as the storage unit 21. The judgment table in a matrix format includes forecast results as vertical control items and backcast results as horizontal control items.

[0098] The forecast result includes the sub-items OK (normal), NG (abnormal), and abnormal (specific). A forecast result of OK (normal) indicates that the judgment result of the forecast processing is normal. A forecast result of NG (abnormal) indicates that the judgment result of the forecast processing is abnormal, i.e., there is no change in the payload value (signal value) of the event data being judged. A forecast result of abnormal (specific) indicates that the payload value (signal value) of the event data being judged exceeds the normal value range.

[0099] The backcast result includes the following sub-items: no judgment, OK (normal), NG (abnormal), and abnormal (specific). A backcast result of no judgment indicates that the backcast process was not performed on the event data being judged. A backcast result of OK (normal) indicates that the judgment result of the backcast process is normal. A backcast result of NG (abnormal) indicates that the judgment result of the backcast process is abnormal, that is, the payload value (signal value) of the event data being judged is a different value from the payload value of the periodic data received immediately afterwards (is not substantially the same value). A backcast result of abnormal (specific) indicates that the payload value (signal value) of the event data being judged exceeds the normal value range.

[0100] The processing unit 20 of the in-vehicle device 2 derives a final result judgment based on a combination of the detailed items of the forecast result and the detailed items of the backcast result. If the backcast result is no judgment, the final result judgment will be normal if the forecast result is OK (normal), will be abnormality detected (range) if NG (abnormal), and will be abnormality detected (identified) if abnormal (identified).

[0101] If the backcast result is OK (normal), the final result will be normal if the forecast result is OK (normal), if NG (abnormal), the final result will be abnormality detected (range), and if abnormal (identified), the final result will be abnormality detected (identified). In other words, if the backcast result and forecast result differ between OK (normal) and NG (abnormal), the result will be abnormality detected (range).

[0102] If the backcast result is NG (abnormal), and the forecast result is OK (normal), the final result will be an abnormality detected (range), if NG (abnormal), the final result will be an abnormality detected (identified), and if an abnormality is identified, the final result will be an abnormality detected (identified). In other words, if both the backcast result and the forecast result are NG (abnormal), the result will be an abnormality detected (identified).

[0103] If the backcasting result is abnormal (identified), all results are considered to be abnormal (identified) regardless of the forecasting result. An abnormal (identified) backcasting result or forecasting result indicates that the payload value (signal value) of the event data to be determined exceeds the normal value range. In this case, the processing unit 20 of the in-vehicle device 2 may determine that the event data to be determined is abnormal, i.e., data corresponding to abnormality detection (identification), without comparing the payload value (signal value) of the event data to be determined with other data (periodic data or event data).

[0104] 12 is a flowchart illustrating the processing of the processing unit 20 of the in-vehicle device 2. The processing unit 20 of the in-vehicle device 2 steadily performs the following processing, for example, when the vehicle C is in a running state (IG switch 6 or power switch is on) or a stopped state (IG switch 6 or power switch is off).

[0105] The processing unit 20 of the in-vehicle device 2 sets an event data transmission prohibition period and a normal period range based on the received reference period data (reference data) (S101). Each time the processing unit 20 of the in-vehicle device 2 receives periodically transmitted period data, the processing unit 20 determines whether the received period data is normal. Based on the time point when the period data determined to be normal (reference data) was received, the processing unit 20 of the in-vehicle device 2 sets an event data transmission prohibition period and a normal period range (current normal period range) by, for example, referring to a data type table.

[0106] The processing unit 20 of the in-vehicle device 2 stores information about the received event data in the storage unit 21 (S102). The processing unit 20 of the in-vehicle device 2 stores information about the event data received during the period from the time point at which the reference period data (reference data) was received to the lower limit (limit-low) of the set normal period range (sequential number, time point, etc.) in, for example, a list format (data reception list) in the storage unit 21. The processing unit 20 of the in-vehicle device 2 may also store (append) period data received within the normal period range in the storage unit 21.

[0107] The period from the time when the reference periodic data (reference data) is received to the lower limit (limit-low) of the set normal periodic range includes an event data transmission prohibition period during which event transmission is prohibited and an event transmission allowance period during which event transmission is allowed. The event data transmission prohibition period and the event transmission allowance period are continuous over time; that is, the event transmission allowance period begins immediately after the event data transmission prohibition period ends. The normal periodic range period begins immediately after the event transmission allowance period ends.

[0108] The processing unit 20 of the in-vehicle device 2 acquires data received during the event data transmission prohibition period and the event transmission allowance period as event data (messages outside the normal cycle range) to be subjected to a judgment of correctness. The event data transmission prohibition period and the event transmission allowance period correspond to periods outside the normal cycle range. The processing unit 20 of the in-vehicle device 2 acquires data received within the normal cycle range as cycle data (messages within the normal cycle range) to be subjected to a judgment of correctness. Even if the processing unit 20 of the in-vehicle device 2 does not receive data within the normal cycle range, i.e., if the number of pieces of data received within the normal cycle range is zero, the processing unit 20 executes the subsequent processing after the period defined by the normal cycle range has elapsed.

[0109] The processing unit 20 of the in-vehicle device 2 determines whether the event data was received within the event data transmission prohibition period (S103). If the event data was received within the event data transmission prohibition period (S103: YES), the processing unit 20 of the in-vehicle device 2 determines that the event data is abnormal (abnormality detected (identified)) (S1031).

[0110] If the event data is not received within the event data transmission prohibition period (S103: NO), i.e., if the event data is received within the event transmission allowable period, the processing unit 20 of the in-vehicle device 2 determines whether there is one periodic data received within the normal period range (S104). If there is not one periodic data acquired within the normal period range (S104: NO), i.e., if there is zero (none) or multiple periodic data acquired within the normal period range, the processing unit 20 of the in-vehicle device 2 determines that the received event data and multiple periodic data are abnormal (abnormality detected (range)) (S1041). Alternatively, the processing unit 20 of the in-vehicle device 2 may determine that an abnormality has been detected (identified) for the event data received within the event data transmission prohibition period if there is zero (none) or multiple periodic data acquired within the normal period range. In this case, the processing unit 20 of the in-vehicle device 2 may perform one of the above-described processing patterns (patterns A to D) for the event data received within the event transmission allowable period, depending on the data type of the event data.

[0111] If there is one acquired periodic data within the normal period range (S104: YES), the processing unit 20 of the in-vehicle device 2 determines whether the payload value of the event data to be determined is within the normal value range (S105). If there is one acquired periodic data within the normal period range (the current normal period range) and the payload value of the periodic data is within the normal value range, the processing unit 20 of the in-vehicle device 2 determines that the periodic data is normal. This means that both of the two consecutively received periodic data (the earlier periodic data and the later periodic data) are normal, and the prerequisite for starting a determination process based on a comparison of the payload value of the periodic data with respect to one or more event data received between the reception points of these two periodic data is satisfied.

[0112] The processing unit 20 of the in-vehicle device 2 refers to the data reception list stored in the storage unit 21, and starts the determination process sequentially from the event data with the oldest reception time, in other words, the event data with the reception time closest to the reception time of the previous periodic data (reference data). In other words, the event data received immediately after the reference periodic data (reference data) corresponds to the event data with the oldest reception time.

[0113] If the payload value of the event data to be determined is not within the normal value range (S105: NO), the processing unit 20 of the in-vehicle device 2 determines that the event data to be determined is abnormal (abnormality detected (identified)) (S1051). If the payload value of the event data to be determined is not within the normal value range, that is, if any signal value included in the payload area of ​​the event data is not within the normal value range, the processing unit 20 of the in-vehicle device 2 determines that the event data to be determined is abnormal (abnormality detected (identified)).

[0114] If it is within the normal value range (S105: YES), the processing unit 20 of the in-vehicle device 2 determines whether the payload value of the event data to be determined is different from the payload value of the data received immediately before and determined to be normal, i.e., whether the payload value has changed (S106). If the payload value of the event data to be determined is within the normal value range (all signal values ​​are within the normal value range), the processing unit 20 of the in-vehicle device 2 determines whether the payload value is different from the payload value of the data received immediately before and determined to be normal, i.e., whether the payload value has changed.

[0115] When the event data to be judged is received immediately after the reception of previous periodic data (reference data) that serves as a reference, the processing unit 20 of the in-vehicle device 2 judges whether or not there is a change (a difference) in the payload values, i.e., signal values, between the event data and the previous periodic data. When the event data to be judged is received immediately after the reception of event data that has already been judged to be normal, the processing unit 20 of the in-vehicle device 2 judges whether or not there is a change (a difference) in the payload values ​​(signal values) between the event data to be judged and the event data that has already been judged to be normal. As described above, the processing unit 20 of the in-vehicle device 2 sequentially performs judgment processing on the event data stored in chronological order according to the reception time in the data reception list, and therefore can efficiently identify data to be compared with the event data to be judged (periodic data or event data received immediately before and judged to be normal).

[0116] If the payload value has not changed (is not different) (S106: NO), the processing unit 20 of the in-vehicle device 2 determines that the event data to be determined is abnormal (abnormality detection (range)) (S1061). Event data has a transmission characteristic of being transmitted in an event-driven manner when an event occurs that changes the payload value. Therefore, if the payload value has not changed (is not different), that is, if the event data has the same payload value as the payload value of the data to be compared (periodic data or event data that was received immediately before and determined to be normal), the processing unit 20 of the in-vehicle device 2 determines that the event data is abnormal (abnormality detection (range)).

[0117] If the payload value has changed (is different) (S106: YES), the processing unit 20 of the in-vehicle device 2 determines that the event data to be judged is normal (S107). If the payload value has changed (is different), that is, if the event data has a payload value different from the payload value of the data to be compared (the periodic data or event data received immediately before and judged to be normal), the processing unit 20 of the in-vehicle device 2 initially judges that the event data to be judged is normal. The processing unit 20 of the in-vehicle device 2 adds the judgment result for the event data to be judged to the forecast result field in the data reception list.

[0118] The processing unit 20 of the in-vehicle device 2 determines whether or not the determination for all the received event data has been completed (S108). By referring to the data reception list stored in the storage unit 21, the processing unit 20 of the in-vehicle device 2 determines whether or not the determination for all the event data has been completed, i.e., whether or not there is any event data for which the determination process has not yet been performed.

[0119] If the determination for all event data has not been completed (S108: NO), the processing unit 20 of the in-vehicle device 2 performs loop processing to execute the processing of S103 again. At this time, the processing unit 20 of the in-vehicle device 2 refers to the data reception list, and executes the processing from S103 on the event data received next to the event data determined in the current processing as the determination target. This allows the determination processing (forecast processing) to be performed on the multiple received event data in order, starting with the event data received oldest.

[0120] When the determination for all event data has been completed (S108: YES), the processing unit 20 of the in-vehicle device 2 determines whether the payload values ​​of the last received event data and the subsequently received periodic data are the same (S109). When the determination for all event data (forecast processing) has been completed, the processing unit 20 of the in-vehicle device 2 executes a process (backcast processing) to determine whether the payload values ​​of the last received event data during the event transmission allowable period are the same as those of the subsequently received periodic data.

[0121] If the payload values ​​are the same (S109: YES), the processing unit 20 of the in-vehicle device 2 determines that the event data to be judged is normal (S110). If the payload values ​​are the same, that is, if the payload values ​​(all signal values) of the last received event data and the subsequently received periodic data are the same, the processing unit 20 of the in-vehicle device 2 determines that the event data to be judged is normal.

[0122] If the payload values ​​are not the same (S109: NO), the processing unit 20 of the in-vehicle device 2 determines that the event data to be judged is abnormal (abnormality detected (range)) (S1091). If the payload values ​​are not the same, that is, if the payload values ​​(any signal value) of the last received event data and the subsequently received periodic data are different, the processing unit 20 of the in-vehicle device 2 determines that the event data to be judged is abnormal (abnormality detected (range)). The processing unit 20 of the in-vehicle device 2 adds the judgment result for the event data to be judged to the backcast result field in the data reception list.

[0123] The processing unit 20 of the in-vehicle device 2 derives a final judgment result for each piece of event data to be judged, based on the forecast result and the backcast result (S111). The processing unit 20 of the in-vehicle device 2 derives a final judgment result for each piece of event data to be judged, based on the forecast result and the backcast result in the data reception list. For each piece of event data to be judged that has only a forecast result, the processing unit 20 of the in-vehicle device 2 derives the forecast result as the final judgment result.

[0124] For each piece of event data to be judged that has a forecast result and a backcast result, the processing unit 20 of the in-vehicle device 2 derives a final judgment result based on a combination of the forecast result and the backcast result. The processing unit 20 of the in-vehicle device 2 may, for example, refer to a judgment table stored in the storage unit 21 and derive the final judgment result based on a combination of the forecast result and the backcast result.

[0125] If the forecast result and the backcast result are both normal (OK), the processing unit 20 of the in-vehicle device 2 may derive the event data as a final judgment result that it is normal. If the forecast result and the backcast result are both abnormal (NG), the processing unit 20 of the in-vehicle device 2 may derive the event data as a final judgment result that it is abnormal (abnormality detected (identified)). If the forecast result and the backcast result differ, the processing unit 20 of the in-vehicle device 2 may derive the event data as a final judgment result that it is abnormal (abnormality detected (range)).

[0126] The processing unit 20 of the in-vehicle device 2 may store (append) the derived final determination result in the data reception list, thereby storing the result as log information in the storage unit 21. The processing unit 20 of the in-vehicle device 2 may output the data reception list stored as log information to the external server 100 or the display device 5.

[0127] The embodiments disclosed herein are to be considered as illustrative in all respects and not restrictive. The scope of the present invention is defined by the claims, not by the above meaning, and is intended to include all modifications within the meaning and scope of the claims.

[0128] Multiple claims may be combined with each other regardless of the form of reference. The claims may contain multiple dependent claims that depend on multiple claims. Multiple dependent claims may be contained that depend on multiple dependent claims. If multiple dependent claims that depend on multiple dependent claims are not contained, this does not limit the number of multiple dependent claims that depend on multiple dependent claims.

[0129] C Vehicle S In-vehicle system 100 External server 1 Exterior communication device 11 Antenna 2 In-vehicle device (in-vehicle relay device) 20 Processing unit (control unit) 21 Storage unit P Program (program product) M Recording medium 22 Input / output I / F 23 In-vehicle communication unit 3 In-vehicle ECU 4 In-vehicle network 41 Communication line 5 Display device (HMI device) 6 IG switch

Claims

1. An in-vehicle device connected to an in-vehicle network mounted in a vehicle, comprising a processing unit that performs processing related to determining whether data flowing through the in-vehicle network is valid, wherein the processing unit receives periodic data periodically transmitted by the in-vehicle network, and when event data of the same type as the periodic data is received between the reception times of two consecutive periodic data pieces, the processing unit determines whether the event data is valid based on a payload value of the event data and a payload value of at least one of the two periodic data pieces.

2. The in-vehicle device according to claim 1, wherein the processing unit determines that the event data is abnormal when a difference between a payload value of the first received periodic data and a payload value of the event data is equal to or smaller than a predetermined value, and determines that the event data is normal when a difference between a payload value of the first received periodic data and a payload value of the event data exceeds a predetermined value.

3. The in-vehicle device according to claim 1, wherein the processing unit determines that the event data is normal when a difference between a payload value of the later received periodic data and a payload value of the event data is equal to or smaller than a predetermined value, and determines that the event data is abnormal when a difference between a payload value of the earlier received data and a payload value of the event data is greater than a predetermined value.

4. The in-vehicle device according to claim 1, wherein when the processing unit receives multiple event data between the reception times of two consecutively received periodic data, the processing unit determines whether the multiple event data are correct or incorrect based on changes in the payload values ​​of each of the multiple event data.

5. The in-vehicle device according to claim 4, wherein the processing unit determines that at least one of the two consecutive event data is abnormal when there is no change in the payload value of two consecutive event data received from the plurality of received event data.

6. The in-vehicle device according to claim 1, wherein the processing unit determines that the later received periodic data among the consecutively received periodic data is normal if the reception time of the later received periodic data is within a normal period range based on the reception time of the earlier received periodic data, and determines whether the event data is correct based on the value of the payload only if it determines that the later received periodic data is normal.

7. The in-vehicle device according to claim 6, wherein the normal period range is a range in which upper and lower limits are set with a transmission period determined based on the type of data as a reference value.

8. The in-vehicle device according to claim 7, wherein the processing unit determines that the event data is abnormal without performing a determination process regarding the value of the payload of the event data when it is unable to receive periodic data within the normal periodic range or when it receives multiple periodic data.

9. The in-vehicle device according to claim 7, wherein the processing unit determines whether a payload value of the event data is within a normal value range that is predetermined according to a type of periodic data, and if it determines that the payload value of the event data is within the normal value range, determines whether the event data is correct based on a comparison with the payload value of the periodic data, and if it determines that the payload value of the event data is not within the normal value range, determines that the event data is abnormal without comparing it with the payload value of the periodic data.

10. The in-vehicle device according to claim 7, wherein the processing unit determines whether the reception time of the received event data is within an event data transmission prohibition period based on the reception time of the earlier received periodic data among the consecutively received periodic data, and if it determines that the reception time of the event data is not within the event data transmission prohibition period, performs a determination process on the value of the payload of the event data, and if it determines that the reception time of the event data is within the event data transmission prohibition period, determines that the event data is abnormal without performing a determination process on the value of the payload of the event data.

11. A program that causes a computer connected to an in-vehicle network to execute a process of receiving periodic data periodically transmitted via the in-vehicle network, and, when event data of the same type as the periodic data is received between two consecutive received sets of periodic data, determining whether the event data is valid or invalid based on a payload value of the event data and a payload value of at least one of the two sets of periodic data.

12. An information processing method that causes a computer connected to an in-vehicle network to execute a process of receiving periodic data periodically transmitted via the in-vehicle network, and, when event data of the same type as the periodic data is received between two consecutive received pieces of periodic data, determining whether the event data is valid or invalid based on a payload value of the event data and a payload value of at least one of the two pieces of periodic data.

Citation Information

Patent Citations

  • Attack detection device, attack detection method, and program

    WO2021229694A1