In-vehicle device, control method, and computer program

By using the oscillation circuit and detection circuit in the vehicle-mounted device to determine the consistency of the received signal frequency and the ECU oscillation signal, combined with temperature and aging characteristics compensation, the problem of difficulty in detecting illegal intrusion in the prior art is solved, and more reliable illegal intrusion detection is achieved and defense.

CN119032547APending Publication Date: 2024-11-26AUTONETWORKS TECH LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380037459.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-05-16
Filing Date
2023-05-01
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The prior art is difficult to detect illegal intrusion into the on-board network, especially when the illegal terminal imitates the MAC address and communication sequence of the ECU, it cannot effectively detect illegal intrusion.

Method used

By using an oscillation circuit and a detection circuit in the vehicle-mounted device, it is determined whether the second oscillation signal frequency in the received signal is consistent with the third oscillation signal frequency generated by the second oscillator of the ECU, and combined with temperature and aging characteristics compensation, it is achieved more reliable. Illegal intrusion detection.

Benefits of technology

Effectively detect and prevent illegal intrusion, avoid illegal signals input to the PHY unit, reduce the rate of misjudgment and misjudgment, and improve the security of the on-board network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119032547A_ABST
    Figure CN119032547A_ABST
Patent Text Reader

Abstract

The in-vehicle device is connected to an ECU mounted on a vehicle via a communication line, and is provided with: a PHY unit that converts a received signal received from the communication line into a digital signal; an oscillation circuit outputting a first oscillation signal based on oscillation of the first oscillator; a detection circuit that outputs a detection value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a second oscillation signal included in the reception signal; a switching unit that switches between a first state in which at least a portion of the received signal is not input to the PHY unit, and a second state in which the received signal is input to the PHY unit; and a control unit for controlling the switch unit, the control unit being configured to set the switch unit to the first state when a difference between the detection value and a normal value exceeds a predetermined value, and to set the switch unit to the second state when a difference between the detection value and the normal value exceeds the predetermined value. The normal value corresponds to a difference value between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on oscillation of a second oscillator included in the ECU, and the control unit sets the switch unit to the second state when the detection value differs from the normal value by a predetermined value or less.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an in-vehicle device, a control method, and a computer program. This application claims priority based on Japanese application No. 2022-079934 filed on May 16, 2022, and all the contents described in the above Japanese application are cited. Background Art

[0002] There is a known technology for preventing illegal intrusion into an in-vehicle network including an ECU (Electronic Control Unit) mounted on a vehicle. For example, in Patent Document 1, a CPU included in the ECU monitors a terminal connected to a port. And, if the MAC address of the connected terminal is different from the destination MAC address of the terminal pre-registered in the MAC address table, the port is set to be unusable, thereby preventing illegal intrusion into the in-vehicle LAN.

[0003] Prior art literature

[0004] Patent Literature

[0005] Patent Document 1: Japanese Patent Application Publication No. 2019-125991 Summary of the invention

[0006] The vehicle-mounted device of the present disclosure is connected to an ECU mounted on a vehicle via a communication line, and comprises: a PHY unit that converts a reception signal received from the communication line into a digital signal; an oscillation circuit that outputs a first oscillation signal based on the oscillation of a first oscillator; a detection circuit that outputs a detection value, the detection value corresponding to the difference between the frequency of the first oscillation signal and the frequency of a second oscillation signal included in the reception signal; a switch unit that switches between a first state and a second state, the first state being a state in which at least a part of the reception signal is not input to the PHY unit, and the second state being a state in which the reception signal is input to the PHY unit; and a control unit that controls the switch unit, the control unit setting the switch unit to the first state when the difference between the detection value and a normal value exceeds a specified value, the normal value corresponding to the difference between the frequency of the first oscillation signal and the frequency of a third oscillation signal generated based on the oscillation of the second oscillator included in the ECU, and the control unit setting the switch unit to the second state when the difference between the detection value and the normal value is within the specified value.

[0007] The control method disclosed in the present invention is a control method for controlling a vehicle-mounted device connected to an ECU mounted on a vehicle via a communication line, comprising: a first step, when a detection value differs from a normal value by more than a specified value, setting the device to a first state, wherein the first state is a state in which at least a portion of a reception signal received from the communication line is not input into a PHY unit; and a second step, when the detection value differs from the normal value by less than the specified value, setting the device to a second state, wherein the second state is a state in which the reception signal is input into the PHY unit, and the PHY unit converts the reception signal into a digital signal, wherein the detection value corresponds to a value of a difference between a frequency of a first oscillation signal output by an oscillation circuit included in the vehicle-mounted device based on an oscillation of a first oscillator and a frequency of a second oscillation signal included in the reception signal, and the normal value corresponds to a value of a difference between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on an oscillation of a second oscillator included in the ECU.

[0008] The computer program disclosed in the present invention is a computer program for controlling an on-vehicle device connected to an ECU mounted on a vehicle through a communication line, and the computer program causes a computer to execute the following steps: a first step, when the difference between the detected value and the normal value exceeds a specified value, setting the computer to a first state, the first state is a state in which at least a part of the received signal received from the communication line is not input to the PHY unit; and a second step, when the difference between the detected value and the normal value is within the specified value, setting the computer to a second state, the second state is a state in which the received signal is input to the PHY unit. The PHY unit converts the received signal into a digital signal, the detected value is a value corresponding to the difference between the frequency of a first oscillation signal output by an oscillation circuit included in the on-vehicle device based on the oscillation of a first oscillator and the frequency of a second oscillation signal included in the received signal, and the normal value is a value corresponding to the difference between the frequency of the first oscillation signal and the frequency of a third oscillation signal generated based on the oscillation of a second oscillator included in the ECU. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] [ Figure 1 ] Figure 1 It is a diagram showing a configuration example of an in-vehicle system according to an embodiment.

[0010] [ Figure 2 ] Figure 2 Yes means Figure 1 A diagram showing a situation where the vehicle system is illegally hacked into.

[0011] [ Figure 3 ] Figure 3 It is a diagram showing a configuration example of a vehicle-mounted device according to an embodiment.

[0012] [ Figure 4 ] Figure 4 is a flow chart illustrating a detection method according to an embodiment.

[0013] [ Figure 5 ] Figure 5 is a flow chart illustrating a detection method according to an embodiment.

[0014] [ Figure 6 ] Figure 6 : is a graph illustrating detection values ​​according to the embodiment.

[0015] [ Figure 7 ] Figure 7 is a graph illustrating the temperature characteristics of an oscillator.

[0016] [ Figure 8 ] Figure 8 This is a table showing the relationship between normal values ​​and temperatures according to a modified example.

[0017] [ Fig. 9 ] Fig. 9 is a graph illustrating the aging characteristics of an oscillator.

[0018] [ Fig.10 ] Fig.10 It is a diagram showing the configuration of an in-vehicle system according to a modified example.

[0019] [ Fig.11 ] Fig.11 : is a graph illustrating detection values ​​according to a modified example. DETAILED DESCRIPTION

[0020] [Problems to be Solved by the Present Disclosure]

[0021] In recent years, there has been a method in which a malicious terminal peeks at data transmitted and received between a plurality of ECUs in an in-vehicle network, records a normal sequence in the malicious terminal, and then impersonates one ECU to illegally invade the in-vehicle network.

[0022] In this case, the illegal terminal copies the MAC address of the ECU included in the vehicle network, so the illegal intrusion cannot be detected by the conventional monitoring method such as Patent Document 1.

[0023] In view of this problem, an object of the present disclosure is to provide an in-vehicle device, a control method, and a computer program that can more reliably detect illegal intrusion.

[0024] [Effects of the present disclosure]

[0025] According to the present disclosure, illegal intrusion can be detected more reliably.

[0026] [Description of Embodiments of the Present Disclosure]

[0027] The embodiments of the present disclosure include the following structures as the gist thereof.

[0028] (1) The vehicle-mounted device of the present disclosure is a vehicle-mounted device connected to an ECU mounted on a vehicle via a communication line, and comprises: a PHY unit that converts a reception signal received from the communication line into a digital signal; an oscillation circuit that outputs a first oscillation signal based on oscillation of a first oscillator; a detection circuit that outputs a detection value, the detection value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a second oscillation signal included in the reception signal; a switch unit that switches between a first state and a second state, the first state being a state in which at least a part of the reception signal is not input to the PHY unit, and the second state being a state in which the reception signal is input to the PHY unit; and a control unit that controls the switch unit, the control unit setting the switch unit to the first state when the difference between the detection value and a normal value exceeds a prescribed value, the normal value corresponding to a difference between the frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on oscillation of the second oscillator included in the ECU, and the control unit setting the switch unit to the second state when the difference between the detection value and the normal value is within the prescribed value.

[0029] Even if an illegal terminal can imitate the communication sequence of the ECU, it cannot imitate the third oscillation signal caused by the second oscillator of the ECU. Therefore, by determining whether the frequency of the second oscillation signal received from the communication line is equivalent to the frequency of the third oscillation signal, illegal intrusion can be detected more reliably.

[0030] (2) In the vehicle-mounted device of (1), the detection circuit may include: a first circuit, which inputs the first oscillation signal and the second oscillation signal and detects the difference between the frequency of the first oscillation signal and the frequency of the second oscillation signal; and a second circuit, which converts the difference detected in the first circuit into the detection value.

[0031] With this configuration, the difference between the frequency of the first oscillation signal and the frequency of the second oscillation signal can be converted into a detection value.

[0032] (3) In the vehicle-mounted device of (2), the received signal may be a signal in which the second oscillation signal and a data signal are superimposed. In this case, the detection circuit may further include an extraction circuit that extracts the second oscillation signal from the received signal and outputs it to the first circuit.

[0033] With this configuration, the second oscillation signal can be extracted from the received signal.

[0034] (4) In the vehicle-mounted device according to any one of (1) to (3) above, the vehicle-mounted device may further include a storage unit, wherein the storage unit stores the normal value in advance.

[0035] (5) In the vehicle-mounted device of (4), the control unit may be capable of selecting a plurality of operation modes including a first mode and a second mode, and when the first mode is selected, the control unit changes the normal value stored in the storage unit to the detection value output from the detection circuit during the period in which the first mode is selected, and when the second mode is selected, the control unit does not change the normal value stored in the storage unit.

[0036] With this configuration, it is possible to compensate for the frequency deviation of the oscillator caused by the change over time, thereby enabling more reliable detection of unauthorized intrusion.

[0037] (6) In the vehicle-mounted device of (4) or (5), the control unit may determine the normal value based on a temperature detected by a temperature sensor that detects a temperature of at least one of the first oscillator and the second oscillator.

[0038] With this configuration, it is possible to compensate for the frequency deviation of the oscillator caused by temperature changes, thereby enabling more reliable detection of unauthorized intrusion.

[0039] (7) In the vehicle-mounted device of any one of (1) to (6), the control unit may control the temperature adjustment unit, the temperature adjustment unit adjusts the temperature of the second oscillator, the detection circuit outputs a first detection value to the control unit, the first detection value being the detection value corresponding to the difference between the frequency of the first oscillation signal and the frequency of the second oscillation signal included in the received signal received during the period when the second oscillator is adjusted to the first specified temperature by the temperature adjustment unit, and the control unit sets the switch unit to the first state when the difference between the first detection value and a first normal value exceeds a specified value, the first normal value being the normal value corresponding to the difference between the frequency of the first oscillation signal and the frequency of the third oscillation signal generated based on the oscillation of the second oscillator during the period when the second oscillator is adjusted to the first specified temperature by the temperature adjustment unit.

[0040] According to such a structure, when the first detection value does not follow the temperature adjustment of the temperature adjustment unit, illegal intrusion is detected, and when the first detection value follows the temperature adjustment of the temperature adjustment unit, illegal intrusion is not detected. Thus, even if the frequency of the second oscillator and the frequency of the third oscillator coincide with each other by chance at a certain temperature, illegal intrusion can be detected.

[0041] (8) The control method disclosed in the present invention is a control method for controlling a vehicle-mounted device connected to an ECU mounted on a vehicle via a communication line, comprising: a first step, when a difference between a detected value and a normal value exceeds a specified value, setting the control to a first state, wherein the first state is a state in which at least a portion of a received signal received from the communication line is not input to a PHY unit; and a second step, when a difference between the detected value and the normal value is within the specified value, setting the control to a second state, wherein the received signal is input to the PHY unit, and the PHY unit converts the received signal into a digital signal, wherein the detected value is a value corresponding to a difference between a frequency of a first oscillation signal output by an oscillation circuit included in the vehicle-mounted device based on an oscillation of a first oscillator and a frequency of a second oscillation signal included in the received signal, and the normal value is a value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on an oscillation of a second oscillator included in the ECU.

[0042] Even if an illegal terminal can imitate the communication sequence of the ECU, it cannot imitate the third oscillation signal caused by the second oscillator of the ECU. Therefore, by determining whether the frequency of the second oscillation signal received from the communication line is equivalent to the frequency of the third oscillation signal, illegal intrusion can be detected more reliably. In addition, the received signal is input to the PHY unit only when no illegal intrusion is detected, so that illegal received signals can be prevented from being input to the PHY unit.

[0043] (9) The computer program disclosed in the present invention is a computer program for controlling an on-vehicle device connected to an ECU mounted on a vehicle via a communication line, the computer program causing a computer to execute the following steps: a first step, when a difference between a detected value and a normal value exceeds a specified value, setting the computer to a first state, wherein the first state is a state in which at least a portion of a received signal received from the communication line is not input to a PHY unit; and a second step, when a difference between the detected value and the normal value is within the specified value, setting the computer to a second state, wherein the received signal is input to the PHY unit, and the PHY unit converts the received signal into a digital signal, the detected value being a value corresponding to a difference between a frequency of a first oscillation signal output by an oscillation circuit included in the on-vehicle device based on an oscillation of a first oscillator and a frequency of a second oscillation signal included in the received signal, and the normal value being a value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on an oscillation of a second oscillator included in the ECU.

[0044] Even if an illegal terminal can imitate the communication sequence of the ECU, it cannot imitate the third oscillation signal caused by the second oscillator of the ECU. Therefore, by determining whether the frequency of the second oscillation signal received from the communication line is equivalent to the frequency of the third oscillation signal, illegal intrusion can be detected more reliably. In addition, the received signal is input to the PHY unit only when no illegal intrusion is detected, so that illegal received signals can be prevented from being input to the PHY unit.

[0045] [1. Details of embodiments of the present disclosure]

[0046] Hereinafter, details of the embodiments of the present disclosure will be described with reference to the drawings.

[0047] [1.1 Structure of the vehicle-mounted system 1]

[0048] Figure 1 It is a diagram showing a configuration example of the vehicle-mounted system 1 according to the embodiment.

[0049] The vehicle-mounted system 1 is a system installed in a vehicle 9 such as an automobile. The vehicle-mounted system 1 includes a vehicle-mounted device 10, a plurality of ECUs (Electronic Control Units) 20, and a plurality of communication lines 30 that respectively connect the vehicle-mounted device 10 and the plurality of ECUs 20. The vehicle-mounted device 10 and the plurality of ECUs 20 are respectively connected via the plurality of communication lines 30, thereby forming a vehicle-mounted network.

[0050] The vehicle-mounted device 10 is, for example, a relay device that relays data sent and received between a plurality of ECUs 20. Specifically, the vehicle-mounted device 10 is a relay device having functions as an Ethernet switch (Ethernet is a registered trademark) and an L2 switch. In addition, the vehicle-mounted device 10 may be an integrated ECU that manages control of a plurality of ECUs 20, or may be an ECU that is the same as a plurality of ECUs 20.

[0051] The number of ECUs 20 included in the vehicle-mounted system 1 is not particularly limited, and may be one. Figure 1 In the example of FIG. 1 , the vehicle-mounted system 1 includes four ECUs 20. When the four ECUs 20 are distinguished, they are referred to as ECUs 21, 22, 23, and 24, respectively.

[0052] The ECU 20 is, for example, a device (operating system ECU) that controls various parts of the vehicle 9 (for example, brakes, doors, batteries, air conditioners, etc.). The function of the ECU 20 is not particularly limited, and the ECU 20 may also be a device (recognition system ECU) that communicates with a sensor to monitor the status of various parts of the vehicle 9. A plurality of ECUs 20 may have different functions or the same functions.

[0053] Multiple roots (in Figure 1In the example of the embodiment, the communication lines 30 are four (four) and extend from the vehicle-mounted device 10, respectively. When distinguishing the four communication lines 30, the line extending to the ECU 21 is called the communication line 31, the line extending to the ECU 22 is called the communication line 32, the line extending to the ECU 23 is called the communication line 33, and the line extending to the ECU 24 is called the communication line 34.

[0054] When the in-vehicle network is an Ethernet-based network, the communication line 30 is, for example, a communication line based on the 1000 BASE-T1 or 1000 BASE-RH standard. Alternatively, the communication line 30 may comply with other standards such as CAN (Controller Area Network).

[0055] [1.2 Issues to be Solved by the Implementation Method]

[0056] Figure 2 1 is a diagram showing a situation where the vehicle-mounted system 1 is illegally hacked. First, the intruder inserts a hub H1 connected to an illegal terminal D1 in the middle of the communication line 31. The illegal terminal D1 is, for example, a personal computer such as a notebook computer or a tablet terminal. The hub H1 is, for example, a relay hub that copies the data flowing through the communication line 31. For example, the intruder cuts the communication line 31 and installs connectors on the cut parts, and connects the hub H1 to the connectors. In addition, there is also a situation where the communication line 31 is unplugged from one of the vehicle-mounted device 10 and ECU21, and the hub H1 is inserted, and a new communication line is connected from the hub H1 to the other of the vehicle-mounted device 10 and ECU21.

[0057] Next, the intruder copies the data flowing through the communication line 31 to the illegal terminal D1 connected to the hub H1. Then, the illegal terminal D1 analyzes the MAC (Media Access Control) address of the ECU 21 and the communication sequence between the ECU 21 and the vehicle-mounted device 10 based on the data. After that, the illegal terminal D1 copies the MAC address and communication sequence of the ECU 21, and sends illegal data to the vehicle-mounted device 10 by pretending to be the ECU 21.

[0058] For example, in the case of Patent Document 1, whether the communication partner is normal or abnormal is determined based on the MAC address. In the above-mentioned intrusion method, illegal intrusion is performed in a state where the MAC address of the ECU 21 is copied, so the software monitoring method such as Patent Document 1 cannot detect illegal intrusion.

[0059] Therefore, in this embodiment, the frequency of the oscillator (e.g., crystal oscillator) included in the ECU 20 is focused on to detect illegal intrusion. In multiple ECUs 20, oscillators are provided to generate oscillation signals (clock signals) respectively. For example, the ECU 21 includes a second oscillator 71. The frequency of the oscillator has individual differences (allowable deviations), and even oscillators of the same specification will have a frequency difference of, for example, ±20 to 50 ppm. Therefore, in the past, on the receiving side of the signal, the clock was synchronized in a manner to eliminate the frequency difference.

[0060] like Figure 1 As shown, in a normal state (a state without illegal intrusion), the vehicle-mounted device 10 receives an oscillation signal SG3 (an example of a “third oscillation signal” in the present disclosure) generated based on the oscillation of the second oscillator 71 included in the ECU 21 .

[0061] On the other hand, Figure 2 As shown, when the illegal terminal D1 transmits data to the vehicle-mounted device 10 by posing as the ECU 21, the vehicle-mounted device 10 receives the oscillation signal SGx generated by the oscillation of the third oscillator H2 included in the hub H1.

[0062] Even if the illegal terminal D1 can impersonate the contents of data such as the MAC address and communication sequence of ECU21, it cannot imitate the frequency of the oscillation signal SG3 sent from ECU21 because the frequency of the oscillation signal SGx sent to the vehicle-mounted device 10 depends on the characteristics of the third oscillator H2.

[0063] The inventor has conducted in-depth research and has come up with the following invention: by utilizing the fact that the illegal terminal D1 cannot imitate the signal caused by the hardware structure such as the oscillator, it is determined whether the frequency of the oscillation signal received in the vehicle-mounted device 10 is equivalent to the frequency of the oscillation signal SG3 of the ECU 21, thereby more reliably detecting illegal intrusion. The specific structure is described below.

[0064] [1.3 Structure of the vehicle-mounted device 10]

[0065] Figure 3 It is a diagram showing a configuration example of the vehicle-mounted device 10 according to the embodiment.

[0066] The in-vehicle device 10 includes a plurality of PHY units 11 , a processing device 12 , a switch unit 13 , a detection circuit 14 , a control unit 15 , a storage unit 16 , a reading unit 17 , a first oscillator 18 , and a temperature sensor 19 .

[0067] The PHY unit 11 is an area that operates at the physical layer in the OSI (Open System Interconnection) reference model, and is, for example, an integrated circuit such as Ethernet PHY. The PHY unit 11 has a function of converting an analog signal (received signal RS1) received from the communication line 30 into a digital signal DS1 that can be recognized by the processing device 12 and outputting it to the processing device 12, and a function of converting the digital signal DS1 input from the processing device 12 into an analog signal that can be recognized by the ECU 20 and sending it to the communication line 30.

[0068] In the vehicle-mounted device 10 , four PHY units 11 are provided corresponding to the number of ECUs 20 .

[0069] The number of the PHY units 11 is not particularly limited, and for example, five or more PHY units 11 may be provided. The four PHY units 11 have the same internal structure and are connected to the four communication lines 31 , 32 , 33 , and 34 , respectively.

[0070] Among the four PHY units 11 , the PHY unit 11 that converts the analog signal received from the communication line 31 into the digital signal DS1 is referred to as a “PHY unit 11 a ” for distinction. The PHY unit 11 a is connected to a second port 13 b of the switch unit 13 , which will be described later.

[0071] The processing device 12 is a device that performs various processes based on the digital signal DS1 converted by the PHY unit 11, such as a microcontroller unit (MCU). The processing device 12 can also be a PLD (Programmable Logic Device) such as a CPLD (Complex PLD) or an FPGA (Field Programmable Gate Array). The processing device 12, for example, issues a control instruction to the ECU 20 based on the digital signal DS1, or analyzes the state of the ECU 20.

[0072] The switch unit 13 is, for example, a semiconductor switch, specifically, a switch including a MOSFET (Metal-Oxide-Semiconductor Field-Effect-Transistor). Alternatively, the switch unit 13 may be a mechanical switch including a coil and a contact. The switch unit 13 switches to the first state ( Figure 3 The solid line shows the state) and the second state ( Figure 3 The state shown by the imaginary line.

[0073] The first state is a state in which at least a part of the reception signal RS1 received from the communication line 31 is not input to the PHY unit 11a. The second state is a state in which the reception signal RS1 received from the communication line 31 is input to the PHY unit 11a. Specifically, the switch unit 13 includes a first port 13a electrically connected to the detection circuit 14 and a second port 13b electrically connected to the PHY unit 11a. For example, in the first state, the switch unit 13 electrically connects the communication line 31 to the first port 13a, thereby outputting all the reception signal RS1 received from the communication line 31 to the detection circuit 14, and not inputting the reception signal RS1 to the PHY unit 11a.

[0074] In addition, the switch unit 13 may divide the received signal RS1, for example, in time, in the first state, output a part of the signal to the detection circuit 14, and input the remaining part of the signal to the PHY unit 11a. In this case, an incomplete signal is input to the PHY unit 11a, so that the conversion to the digital signal DS1 cannot be performed and an error occurs, or even if the conversion to the digital signal DS1 can be performed in the PHY unit 11a, an error occurs in the processing device 12. That is, even if a part of the received signal RS1 is input to the PHY unit 11a in the first state, the processing device 12 does not perform normal control based on the part of the signal.

[0075] The switch unit 13 electrically connects the communication line 31 to the second port 13b in the second state, thereby outputting the reception signal RS1 received from the communication line 31 to the PHY unit 11a. For example, in the second state, the switch unit 13 outputs all (i.e., in a complete state) the reception signal RS1 received from the communication line 31 to the PHY unit 11a. Here, the complete state of the reception signal RS1 refers to a state sufficient to be normally converted into the digital signal DS1 in the PHY unit 11a. Therefore, even if a part of the reception signal RS1 is missing when the reception signal RS1 passes through the switch unit 13, as long as it can be normally converted into the digital signal DS1 in the PHY unit 11a, it is called a "complete state".

[0076] The detection circuit 14 is a circuit that outputs a detection value Vx corresponding to the difference between the frequency of the first oscillation signal SG1 generated according to the oscillation of the first oscillator 18 and the frequency of the second oscillation signal SG2 included in the reception signal RS1 to the control section 15. The details of the detection circuit 14 will be described later.

[0077] The control unit 15 determines the illegal intrusion in the communication line 31 based on the detection value Vx, and controls the switch unit 13 according to the determination result. Specifically, the control unit 15 compares the detection value Vx input from the detection circuit 14 with the normal value V1 stored in the storage unit 16. For example, the absolute value (|Vx-V1|) of the difference between the detection value Vx and the normal value V1 is calculated. And, when the absolute value exceeds the margin value α (|Vx-V1|>α), it is determined that there is an illegal intrusion in the communication line 31.

[0078] When it is determined that an illegal intrusion occurs, the control unit 15 maintains the switch unit 13 in the first state, thereby preventing the complete reception signal RS1 from being input to the PHY unit 11a. When it is not determined that an illegal intrusion occurs, the control unit 15 switches the switch unit 13 from the first state to the second state, thereby inputting the reception signal RS1 to the PHY unit 11a. Thus, the complete reception signal RS1 is input to the PHY unit 11a only when no illegal intrusion is detected, thereby preventing the illegal reception signal RS1 from being input to the PHY unit 11a.

[0079] In addition, when all the received signals RS1 are input to the detection circuit 14 in the first state, input to the PHY unit 11a is prevented during the period determined as an illegal intrusion, so that the PHY unit 11a can be maintained in a power-saving state such as a sleep state, thereby suppressing the power consumption of the vehicle-mounted device 10.

[0080] The control unit 15 includes, for example, a circuit structure such as a processor. Specifically, the control unit 15 includes one or more CPUs (Central Processing Units). The processor included in the control unit 15 may be a graphics processing unit (GPU). In addition, the control unit 15 may also be, for example, a SoC (System-on-a-Chip). The control unit 15 reads out a computer program stored in the storage unit 16 and performs various operations and controls.

[0081] The control unit 15 includes an oscillation circuit 41 that generates a first oscillation signal SG1 based on the oscillation of the first oscillator 18. The oscillation circuit 41 is a clock circuit for operating the control unit 15. In addition, the oscillation circuit 41 may be provided outside the control unit 15. In this case, the oscillation circuit 41 supplies the first oscillation signal SG1 to the control unit 15 from outside the control unit 15.

[0082] The storage unit 16 has a volatile memory and a nonvolatile memory, and stores various data including a normal value V1 described later. The volatile memory includes, for example, a random access memory (RAM). The nonvolatile memory includes, for example, a flash memory, a HDD (Hard Disk Drive), an SSD (Solid State Drive), or a ROM (Read Only Memory). The storage unit 16 stores, for example, a computer program and various parameters in the nonvolatile memory.

[0083] The reading unit 17 reads information from a computer-readable recording medium 17a. The recording medium 17a is, for example, an optical disk such as a CD or a DVD or a USB flash memory. The reading unit 17 is, for example, an optical drive or a USB terminal. The recording medium 17a records a computer program and various parameters. By making the reading unit 17 read the recording medium 17a, the computer program and various parameters are stored in the non-volatile memory of the storage unit 16.

[0084] The first oscillator 18 is an element used as a clock source for each circuit included in the vehicle-mounted device 10. The first oscillator 18 is, for example, a crystal oscillator. Alternatively, the first oscillator 18 may be a ceramic oscillator. Figure 1 In the example of FIG. 1 , a first oscillator 18 is provided in the vehicle-mounted device 10 , and an oscillation component is supplied from the first oscillator 18 to an oscillation circuit 41 in the control unit 15 .

[0085] The temperature sensor 19 is a sensor for detecting the temperature of the first oscillator 18 . The temperature sensor 19 is, for example, a resistance temperature detector (RTD) such as a thermistor. Alternatively, the temperature sensor 19 may be a thermocouple or an infrared radiation thermometer. The temperature sensor 19 outputs a detection signal to the control unit 15 .

[0086] [1.4 Structure of detection circuit 14]

[0087] Next, the internal structure of the detection circuit 14 is described. Figure 3 As shown, the detection circuit 14 includes an extraction circuit 42 , a first circuit 43 and a second circuit 44 .

[0088] Here, the reception signal RS1 is a signal in which the second oscillation signal SG2 (clock) and the data signal DS2 are superimposed on one differential signal. Thus, both the second oscillation signal SG2 and the data signal DS2 can be transmitted through one communication line 30 .

[0089] The extraction circuit 42 is a circuit that extracts the second oscillation signal SG2 from the reception signal RS1 and outputs the second oscillation signal SG2 to the first circuit 43. The extraction circuit 42 is, for example, a CDR (Clock Data Recovery) circuit.

[0090] The first oscillation signal SG1 is input from the oscillation circuit 41 to the first circuit 43, and the second oscillation signal SG2 is input from the extraction circuit 42 to the first circuit 43. The first circuit 43 is a circuit for detecting the difference between the frequency of the first oscillation signal SG1 and the frequency of the second oscillation signal SG2. The first circuit 43 is, for example, a PFD (Phase Frequency Detector) circuit. The difference detected by the first circuit 43 is output to the second circuit 44 as a pulse wave, for example.

[0091] The second circuit 44 is a circuit that converts the difference value detected in the first circuit 43 into a detection value Vx. The second circuit 44 includes a CP (Charge Pump) circuit 45, a filter circuit 46, and an AD (Analog to digital) conversion circuit 47. The difference value detected in the first circuit 43 is input to the CP circuit 45.

[0092] The CP circuit 45 is a circuit that outputs a current signal (pulse current) corresponding to the difference (pulse wave) detected in the first circuit 43 , and includes, for example, a capacitor and a diode. The current signal output from the CP circuit 45 is input to the filter circuit 46 .

[0093] The filter circuit 46 is a circuit that converts the current signal output from the CP circuit 45 into a voltage value. The filter circuit 46 is, for example, a lag-lead filter, and converts the pulse current into a smoothed voltage value. The voltage value output from the filter circuit 46 is input to the AD conversion circuit 47.

[0094] The AD conversion circuit 47 is a circuit that converts the voltage value (analog value) outputted from the filter circuit 46 into a digital value. The AD conversion circuit 47 outputs the converted digital value as the detection value Vx to the control unit 15. The AD conversion circuit 47 may be provided inside the control unit 15.

[0095] [1.5 Detection method]

[0096] Next, a method of detecting illegal intrusion in the vehicle-mounted system 1 will be described.

[0097] Figure 4 and Figure 5 is a flow chart illustrating a detection method according to an embodiment. Figure 4 as well as Figure 5 Controls executed by the vehicle-mounted device 10 are respectively shown.

[0098] Figure 6 3 is a graph illustrating the detection value Vx according to the embodiment.

[0099] In the in-vehicle system 1, the normal value V1 is first stored, and then the detection of illegal intrusion is performed. Figure 4 is a flowchart showing the steps for storing a normal value V1, Figure 5 is a flow chart showing steps for performing detection of an unauthorized intrusion. Figure 6 It means execution Figure 4 as well as Figure 5 The timing chart of the steps is shown in FIG. 1 , where the vertical axis represents the detection value Vx and the horizontal axis represents the time.

[0100] The normal value V1 is stored, for example, in a manufacturing plant of the vehicle 9 before the vehicle 9 is shipped. Figure 6 If the vehicle 9 is not shipped (ie, in the manufacturing plant), the possibility of illegal intrusion into the vehicle-mounted system 1 is low, and therefore the normal value V1 can be registered in the storage unit 16 as no illegal intrusion.

[0101] Reference Figure 4 First, according to the control instruction of the control unit 15, the switch unit 13 is switched to the first state ( Figure 3 Thus, the reception signal RS1 received from the communication line 31 is input to the detection circuit 14 via the switch unit 13. In this example, the reception signal RS1 is input to the detection circuit 14 in its entirety in the first state, but a portion of the reception signal RS1 may be input to the PHY unit 11a as described above.

[0102] Next, the first circuit 43 detects the difference between the frequency of the first oscillation signal SG1 generated based on the oscillation of the first oscillator 18 and the frequency of the third oscillation signal SG3 generated based on the oscillation of the second oscillator 71 included in the ECU 21 (step S11). Specifically, the vehicle-mounted device 10 and the ECU 21 are operated, for example, a test signal superimposed with the third oscillation signal SG3 and the data signal is transmitted from the ECU 21 to the vehicle-mounted device 10 via the communication line 31. The vehicle-mounted device 10 receives the test signal as a reception signal RS1.

[0103] The reception signal RS1 is input to the CDR circuit 42 via the first port 13a of the switch section 13. The third oscillation signal SG3 is extracted from the reception signal RS1 in the CDR circuit 42, and the third oscillation signal SG3 is input to the first circuit 43 (PFD circuit). In addition, the first oscillation signal SG1 generated in the oscillation circuit 41 according to the oscillation of the first oscillator 18 is also input to the first circuit 43. The first circuit 43 compares the frequency of the first oscillation signal SG1 with the frequency of the third oscillation signal SG3, and outputs the frequency difference as a pulse wave to the second circuit 44. With the above, step S11 ends.

[0104] Next, the second circuit 44 converts the frequency difference into a detection value Vx (steps S12 to S14). Specifically, the CP circuit 45 converts the frequency difference into a current value (step S12), the filter circuit 46 converts the current value into a voltage value (step S13), and the AD conversion circuit 47 converts the voltage value into a digital value (step S14).

[0105] Finally, the control unit 15 causes the storage unit 16 to store the detection value Vx as the normal value V1 (step S15). Specifically, the AD conversion circuit 47 outputs the digital value as the detection value Vx to the control unit 15. The control unit 15 stores the input detection value Vx as the normal value V1 in the storage unit 16. Step S15 ends as described above.

[0106] Reference Figure 5 and Figure 6 The detection of illegal intrusion is performed, for example, when the power of the vehicle-mounted device 10 is turned on. In addition, the detection of illegal intrusion can be performed periodically while the power of the vehicle-mounted device 10 is turned on, or can be performed based on the operation of the passenger of the vehicle 9. Figure 6 For example, the detection of illegal intrusion is performed at time X2 and time X3 after the vehicle 9 leaves the factory.

[0107] In detecting illegal intrusion, first, the switch unit 13 is switched to the first state according to a control instruction of the control unit 15 (step S20 ), whereby the reception signal RS1 received from the communication line 31 is input to the detection circuit 14 via the switch unit 13 .

[0108] Next, the first circuit 43 detects a difference between the frequency of the first oscillation signal SG1 and the frequency of the second oscillation signal SG2 included in the reception signal RS1 received from the communication line 31 (step S21 ).

[0109] Specifically, the vehicle-mounted device 10 receives the reception signal RS1 from the communication line 31. Here, it is not clear how the reception signal RS1 is at the time of step S21. Figure 1 The signal (regular signal) sent from ECU21 is still as shown in Figure 2The signal shown is sent from the illegal hub H1 (illegal signal).

[0110] The received signal RS1 is input to the CDR circuit 42. The second oscillation signal SG2 is extracted from the received signal RS1 in the CDR circuit 42, and the second oscillation signal SG2 is input to the first circuit 43. In addition, the first oscillation signal SG1 is also input to the first circuit 43. The first circuit 43 compares the frequency of the first oscillation signal SG1 with the frequency of the second oscillation signal SG2, and outputs the frequency difference as a pulse wave to the second circuit 44. With the above, step S21 ends.

[0111] Next, the second circuit 44 converts the frequency difference into a detection value Vx (from step S22 to step S24). Specifically, the CP circuit 45 converts the frequency difference into a current value (step S22), the filter circuit 46 converts the current value into a voltage value (step S23), and the AD conversion circuit 47 converts the voltage value into a digital value (step S24). The AD conversion circuit 47 outputs the digital value as the detection value Vx to the control unit 15.

[0112] Next, the control unit 15 monitors whether the detection value Vx is within a predetermined range (step S25). Here, if the second oscillation signal SG2 included in the received signal RS1 is a signal based on the second oscillator 71 included in the ECU 21, the frequency of the second oscillation signal SG2 is substantially equal to the frequency of the third oscillation signal SG3 within a range of, for example, ±2ppm. On the other hand, if the second oscillation signal SG2 is a signal based on the third oscillator H2 included in the hub H1, the frequency of the second oscillation signal SG2 is different from the frequency of the third oscillation signal SG3 in most cases except for the case of accidental coincidence.

[0113] In step S25, the difference between the detection value Vx (i.e., the value corresponding to the difference between the first oscillation signal SG1 and the second oscillation signal SG2) and the normal value V1 (i.e., the value corresponding to the difference between the first oscillation signal SG1 and the third oscillation signal SG3) is monitored. If the difference exceeds the specified value, it is considered that the second oscillation signal SG2 is not a signal caused by the second oscillator 71, and it is determined to be an illegal intrusion.

[0114] Specifically, the control unit 15 compares the input detection value Vx with the normal value V1 stored in the storage unit 16. For example, the control unit 15 calculates the absolute value of the difference between the detection value Vx and the normal value V1 (|Vx-V1|).

[0115] When the difference between the detected value Vx and the normal value V1 exceeds a predetermined value (margin value α) (No in step S25), the control unit 15 determines that there is an illegal intrusion in the communication line 31 (step S26: intrusion determination). For example, when the absolute value of the difference between the detected value Vx and the normal value V1 exceeds the margin value α (|Vx-V1|>α), the control unit 15 performs the intrusion determination.

[0116] Here, the margin value α is appropriately set according to the detection accuracy of illegal intrusion required in the vehicle-mounted device 10. The smaller the margin value α is set, the easier it is to detect illegal intrusion. On the other hand, due to the influence of temperature and the like described later, even in the absence of illegal intrusion, the detection value Vx is likely to differ from the normal value V1 by more than the margin value α, and the possibility of erroneous judgment increases. In addition, the larger the margin value α is set, the less likely it is to erroneously judge, but on the other hand, it is easier to overlook illegal intrusion. The margin value α is set to a value of 2 ppm or less, for example.

[0117] When an intrusion determination is made, the control unit 15 maintains the switch unit 13 in the first state, thereby preventing the reception signal RS1 from being input to the PHY unit 11a. In addition, the control unit 15 may also cause a display unit (e.g., a display) not shown in the figure to perform a display for notifying that an illegal intrusion has occurred. For example, the control unit 15 may also cause the display unit to display a text such as "illegal intrusion detected".

[0118] On the other hand, when the difference between the detection value Vx and the normal value V1 is within the prescribed value (margin value α) (Yes in step S25), the control unit 15 does not perform intrusion determination, and switches the switch unit 13 to the second state (step S27). For example, when the absolute value of the difference between the detection value Vx and the normal value V1 is less than the margin value α (|Vx-V1|≤α), the control unit 15 executes step S27. As a result, the PHY unit 11a receives the received signal RS1, and the received signal RS1 is converted into a digital signal DS1 in the PHY unit 11a, and the processing device 12 receives the digital signal DS1 (step S28).

[0119] After step S28, the processing device 12 executes various controls such as communication with the ECU 21 based on the digital signal DS1. Thereby, the detection of illegal intrusion ends.

[0120] exist Figure 6 In the example of , at time X2, the detection value Vx becomes value V1 (Vx=V1). The detection value Vx is a value within the margin value α relative to the normal value V1, so no illegal intrusion is detected at time X2. In this case, the control unit 15 switches the switch unit 13 from the first state to the second state.

[0121] Meanwhile, at time X3, the detection value Vx reaches value V2 (Vx=V2). The detection value Vx is different from the normal value V1 by a margin value α, so illegal intrusion is detected at time X3. In this case, the control unit 15 maintains the switch unit 13 in the first state.

[0122] Even if the illegal terminal D1 and the hub H1 can imitate the communication sequence of the ECU 21, they cannot imitate the third oscillation signal SG3 caused by the second oscillator 71 of the ECU 21. Therefore, by determining whether the frequency of the second oscillation signal SG2 received in the vehicle-mounted device 10 is equivalent to the frequency of the third oscillation signal SG3 of the ECU 21, illegal intrusion can be detected more reliably.

[0123] In addition, in the vehicle-mounted device 10, during the period of illegal intrusion, the switch unit 13 is maintained in the first state, so that the reception signal RS1 is not input to the PHY unit 11a. As a result, the reception signal RS1 can be input to the PHY unit 11a only when there is no illegal intrusion, thereby preventing the illegal reception signal RS1 from being input to the PHY unit 11a.

[0124] Furthermore, since the input of the reception signal RS1 to the PHY unit 11 a is prevented during the period in which the illegal intrusion is determined, the PHY unit 11 a can be kept in a power saving state such as a sleep state, and the power consumption of the vehicle-mounted device 10 can be suppressed.

[0125] Furthermore, since the determination of illegal intrusion is performed in the detection circuit 14 and the control unit 15 provided outside the PHY unit 11a, a general-purpose PHY unit can be used as the PHY unit 11a. Therefore, it is not necessary to manufacture a dedicated PHY unit for determining illegal intrusion, and the manufacturing cost of the PHY unit can be reduced. In particular, since a plurality of PHY units are provided in the vehicle-mounted device 10, the manufacturing cost of the vehicle-mounted device 10 can be reduced by reducing the manufacturing cost of the PHY unit.

[0126] [2. Modifications]

[0127] Hereinafter, a modification of the embodiment will be described. In the modification, the same reference numerals are given to the same components as those of the above-described embodiment, and description thereof will be omitted.

[0128] [2.1 Correction of normal value corresponding to temperature characteristics]

[0129] Figure 7 is a graph illustrating the temperature characteristics of an oscillator. Figure 7 The horizontal axis represents the temperature in Celsius. Figure 7 The vertical axis represents the frequency deviation (Δf / f) of the oscillator at each temperature with respect to the frequency of the oscillator at 25 degrees Celsius.

[0130] like Figure 7 As shown in FIG. 1 , it is known that the frequency of oscillation of an oscillator such as a crystal oscillator changes according to temperature. For example, when the temperature is higher than 25 degrees Celsius, the frequency of the oscillator gradually slows down, and there is a tendency to gradually increase after passing a minimum value. In addition, when the temperature is lower than 25 degrees Celsius, the frequency of the oscillator gradually increases, and there is a tendency to gradually decrease after passing a maximum value.

[0131] Therefore, for example, when the storage of the normal value V1 described above is performed in an environment of 25 degrees Celsius (steps S11 to S15), if the detection of illegal intrusion is performed in an environment of 40 degrees Celsius (for example, in summer) (steps S21 to S25), the frequencies of the first oscillator 18 included in the vehicle-mounted device 10 and the second oscillator 71 included in the ECU 21 become slower than the respective frequencies when the normal value V1 is stored. The degree of frequency slowdown is different between the first oscillator 18 and the second oscillator 71.

[0132] Therefore, when an illegal intrusion is detected at a temperature different from the temperature when the normal value V1 is stored, if the margin value α is set to a smaller value (for example, 0.5 ppm), the detection value Vx differs from the normal value V1 by more than the margin value α, although it is the second oscillation signal SG2 based on the oscillation of the second oscillator 71 (that is, although there is no illegal intrusion), and there is a possibility of an intrusion judgment (step S26).

[0133] In order to prevent such erroneous judgment, the margin value α may be set larger. However, if the margin value α is set larger, the possibility that the detection value Vx corresponding to the second oscillation signal SG2 based on the oscillation of the third oscillator H2 of the illegal hub H1 accidentally becomes within the range of the margin value α relative to the normal value V1 increases, and the possibility of missing the illegal intrusion increases.

[0134] Therefore, in this modification, the normal value V1 is determined based on the temperature detected by the temperature sensor that detects the temperature of at least one of the first oscillator 18 and the second oscillator 71. Thus, the frequency deviation of the oscillator caused by the temperature change is compensated.

[0135] Specifically, the temperature sensor 19 ( Figure 3 ) detects the temperature of the first oscillator 18. Since the vehicle-mounted system 1 is a system mounted on the vehicle 9, it is considered that the temperature of the second oscillator 71 is about the same as the temperature detected by the temperature sensor 19. Therefore, in this modification, the temperature of the entire vehicle-mounted system 1 including the first oscillator 18 is detected by the temperature sensor 19. In addition, different temperature sensors may be provided for the first oscillator 18 and the second oscillator 71, respectively, or a temperature sensor may be provided only near the second oscillator 71.

[0136] Figure 8 This is a table showing the relationship between normal values ​​and temperatures according to a modified example. Figure 8 The table is stored in the storage unit 16. Figure 8 In the table, the first column indicates the temperature range, and the second column indicates the normal value corresponding to the temperature range. Figure 8 The table is obtained, for example, by performing tests under various temperature conditions in the vehicle-mounted system 1 before shipment.

[0137] For example, when the temperature Tx detected by the temperature sensor 19 is lower than the first temperature T1, the control unit 15 reads the normal value of the first row from the storage unit 16 and determines the normal value to be "V11". In addition, when the temperature Tx detected by the temperature sensor 19 exceeds the first temperature T1 and is lower than the second temperature T2, the control unit 15 reads the normal value of the second row from the storage unit 16 and determines the normal value to be "V12" which is different from V11. In addition, when the temperature Tx detected by the temperature sensor 19 exceeds the second temperature T2 and is lower than the third temperature T3, the control unit 15 reads the normal value of the third row from the storage unit 16 and determines the normal value to be "V13" which is different from V11 and V12.

[0138] In this way, the control unit 15 determines the normal value based on the table stored in the storage unit 16 and the detected temperature Tx. As a result, the frequency deviation of the first oscillator 18 and the second oscillator 71 caused by the temperature change can be compensated, so even if the margin value α is set to a smaller value, for example, erroneous determination can be suppressed. As a result, erroneous determination can be suppressed, and the margin value α with a low possibility of overlooking illegal intrusion is set, so illegal intrusion can be detected more reliably.

[0139] [2.2 Correction of normal values ​​corresponding to aging characteristics]

[0140] Fig. 9 This is a graph illustrating the aging characteristics (time-dependent characteristics) of an oscillator. Fig. 9 The horizontal axis of the logarithm represents the number of days that have passed. Fig. 9 The vertical axis represents the frequency deviation (Δf / f) of the oscillator at each time point with respect to the frequency of the oscillator on the first day.

[0141] like Fig. 9 As shown in , it is known that the frequency of oscillation of an oscillator such as a crystal oscillator changes over time. Fig. 9 , an example is shown in which the frequency of the oscillator gradually decreases (the vibration gradually slows down) due to the adhesion of impurities to the oscillator over time. However, depending on the characteristics of the oscillator, for example, there is also a case in which the frequency of the oscillator gradually increases due to the release of gas from the oscillator over time, and after reaching a maximum value in a certain number of days, the frequency gradually decreases.

[0142] Therefore, for example, when the storage of the above-mentioned normal value V1 is performed (steps S11 to S15) in an environment where a small number of days have passed (for example, 10 days), when the detection of illegal intrusion is performed (steps S21 to S25) after, for example, 1000 days, since the frequencies of the first oscillator 18 and the second oscillator 71 are different from their respective frequencies when the normal value V1 is stored, although there is no illegal intrusion, the difference between the detection value Vx and the normal value V1 exceeds the margin value α, which may become an intrusion judgment (step S26).

[0143] Therefore, in this modification, the normal value V1 stored in the vehicle-mounted device 10 can be updated by the operation of the manager in order to consider the aging characteristics of the first oscillator 18 and the second oscillator 71. This compensates for the frequency deviation of the oscillator caused by the change over time.

[0144] For example, the owner of the vehicle 9 regularly takes the vehicle 9 to a business operator (e.g., a dealer) that performs vehicle inspections in order to inspect the vehicle 9. The business operator is, for example, an administrator who has obtained management authority for the vehicle-mounted system 1 from the manufacturer of the vehicle-mounted system 1, and holds a key for replacing the normal value V1. The key may be, for example, a key inserted into the vehicle-mounted device 10 in a hardware manner or a key input into the vehicle-mounted device 10 in a software manner.

[0145] For example, the control unit 15 can select a plurality of operation modes including a first mode and a second mode. Normally, the second mode is selected as the operation mode of the control unit 15. When the second mode is selected, the control unit 15 cannot change the normal value V1 stored in the storage unit 16. The control unit 15 can select the first mode only when the administrator inputs a key to the vehicle-mounted device 10.

[0146] When the first mode is selected, when the administrator instructs the control unit 15 to update the normal value V1 through an input unit (eg, a keyboard) not shown in the figure, the control unit 15 executes Figure 4 Then, the control unit 15 changes the normal value V1 stored in the storage unit 16 to the detection value Vx output from the detection circuit 14 during the period in which the first mode is selected.

[0147] For example, in the first year inspection of a vehicle 9 ( Fig. 9 At time point X11), the manager updates the normal value V1 to the new value. In addition, at the third annual inspection of vehicle 9 ( Fig. 9 X12) and the fifth year inspection ( Fig. 9At the time point X13), the manager also updates the normal value. As a result, since the frequency deviation of the oscillator caused by the change over time can be compensated, it is possible to set a margin value α with a low possibility of overlooking illegal intrusion while suppressing erroneous judgment, similarly to the case of temperature compensation. As a result, illegal intrusion can be detected more reliably.

[0148] [2.3 Intentionally changing the temperature of the oscillator]

[0149] In the above embodiment, the second oscillator 71 included in the ECU 21 and the third oscillator H2 included in the illegal hub H1 are different in hardware to detect illegal intrusion. However, if the frequency of the second oscillator 71 coincides with the frequency of the third oscillator H2, illegal intrusion may not be detected.

[0150] Therefore, in this modification, the temperature of the second oscillator 71 is intentionally changed, and when the detected value Vx after the temperature change differs from the temperature-compensated normal value V4 by more than the margin value α, unauthorized intrusion is detected.

[0151] Fig.10 FIG. 1 is a diagram showing a configuration of a vehicle-mounted system 1a according to a modified example. Figure 1 The vehicle-mounted system 1 is different in that the ECU 21 includes a temperature adjustment unit 72 for adjusting the temperature of the second oscillator 71 and a temperature sensor 73 for detecting the temperature of the second oscillator 71. In addition, in this modification, the control unit 15 controls the temperature adjustment unit 72 by issuing a command signal to the temperature adjustment unit 72.

[0152] The temperature adjustment unit 72 is, for example, a heating unit such as a resistance heater that can only perform heating. In addition, the temperature adjustment unit 72 may be capable of performing both heating and cooling. In this case, the temperature adjustment unit 72 is, for example, a Peltier element.

[0153] Fig.11 : is a graph of the detection value Vx of the modified example. In this modified example, the normal value is temperature compensated. For example, the normal value of 25 degrees Celsius is determined as "V1", the normal value of the first specified temperature T4 higher than 25 degrees Celsius is determined as "V4", and the normal value of the second specified temperature T5 higher than the first specified temperature T4 is determined as "V5".

[0154] For example, consider a case where the detection environment is 25 degrees Celsius. First, in a state where the control unit 15 does not instruct the temperature adjustment unit 72 (i.e., the second oscillator 71 is at 25 degrees Celsius), the vehicle-mounted device 10 performs detection of illegal intrusion. In this case, if the same value as the normal value V1 is detected as the detection value Vx, for example, illegal intrusion is not detected.

[0155] If no illegal intrusion is detected at 25 degrees Celsius, the frequency of the second oscillator 71 and the frequency of the third oscillator H2 may coincide with each other by chance. Therefore, the control unit 15 then instructs the temperature adjustment unit 72 to adjust the temperature of the second oscillator 71 to the first predetermined temperature T4. Then, at the time X4 when the temperature of the second oscillator 71 reaches the first predetermined temperature T4, the vehicle-mounted device 10 performs illegal intrusion detection again.

[0156] Specifically, the detection circuit 14 outputs a first detection value Vx1 to the control unit 15, which is a detection value Vx corresponding to the difference between the frequency of the first oscillation signal SG1 and the frequency of the second oscillation signal SG2 included in the received signal RS1 received during the period when the second oscillator 71 is adjusted to the first specified temperature T4 according to the instruction of the control unit 15.

[0157] Moreover, the control unit 15 determines that there is an illegal intrusion in the communication line 31 when the difference between the first detection value Vx1 and the first normal value V4 exceeds a prescribed value (margin value α), and the first normal value V4 is a normal value corresponding to the difference between the frequency of the first oscillation signal SG1 and the frequency of the third oscillation signal SG3 generated based on the oscillation of the second oscillator 71 during the period when the second oscillator 71 is adjusted to the first prescribed temperature T4.

[0158] For example, in the event of an illegal intrusion, even if the temperature of the second oscillator 71 is adjusted to the first specified temperature T4 by the temperature adjustment unit 72, the temperature of the third oscillator H2 of the illegal hub H1 does not change, and therefore the first detection value Vx1 becomes "V1". On the other hand, in the event of no illegal intrusion, the first detection value Vx1 becomes "V4" along with the temperature adjustment of the second oscillator 71. Therefore, in this modified example, when the first detection value Vx1 does not follow the temperature adjustment of the temperature adjustment unit 72, an illegal intrusion is detected, and when it follows the temperature adjustment of the temperature adjustment unit 72, an illegal intrusion is not detected. Thus, even in the event that the frequency of the second oscillator 71 coincides with the frequency of the third oscillator H2 by chance, an illegal intrusion can be detected.

[0159] In addition, at time X5 after the temperature of the second oscillator 71 is further changed to the second predetermined temperature T5 higher than the first predetermined temperature T4 by the temperature adjustment unit 72, the vehicle-mounted device 10 may perform the illegal intrusion detection again. By changing the temperature multiple times and performing the illegal intrusion detection each time, the detection accuracy can be further improved.

[0160] Specifically, the detection circuit 14 outputs a second detection value Vx2 to the control unit 15, and the second detection value Vx2 is a detection value Vx corresponding to the difference between the frequency of the first oscillation signal SG1 and the frequency of the second oscillation signal SG2 included in the received signal RS1 received during the period when the second oscillator 71 is adjusted to the second specified temperature T5 according to the instruction of the control unit 15.

[0161] Furthermore, the control unit 15 determines that there is an illegal intrusion on the communication line 31 when the difference between the second detection value Vx2 and the second normal value V5 exceeds a prescribed value (margin value α), and the above-mentioned second normal value V5 is a normal value corresponding to the difference between the frequency of the first oscillation signal SG1 and the frequency of the third oscillation signal SG3 generated based on the oscillation of the second oscillator 71 during the period when the second oscillator 71 is adjusted to the second prescribed temperature T5.

[0162] In addition, the first prescribed temperature T4 may be a temperature lower than 25 degrees Celsius, and the second prescribed temperature T5 may be a temperature lower than the first prescribed temperature T4.

[0163] [3. Supplementary Note]

[0164] In addition, about the above-mentioned embodiment and various modification examples, at least a part thereof can also be arbitrarily combined with each other. In addition, it should be considered that the embodiment and modification examples disclosed this time are illustrative and non-restrictive in all aspects. The scope of the present disclosure is represented by the scope of the claim, and it is intended to include all changes within the meaning and scope equivalent to the scope of the claim.

[0165] Description of Reference Numerals

[0166] 1. Vehicle system

[0167] 1a In-vehicle system

[0168] 10 Vehicle-mounted device

[0169] 11 PHY

[0170] 12 Processing device

[0171] 13 Switch

[0172] 13a First port

[0173] 13b Secondary port

[0174] 14 Detection circuit

[0175] 15 Control Unit

[0176] 16 Storage

[0177] 17 Reading unit

[0178] 17a Recording medium

[0179] 18 First Oscillator

[0180] 19 Temperature Sensor

[0181] 20 ECU

[0182] 21 ECU

[0183] 22 ECU

[0184] 23 ECU

[0185] 24 ECU

[0186] 30 Communication lines

[0187] 31 Communication line

[0188] 32 Communication lines

[0189] 33 Communication line

[0190] 34 Communication lines

[0191] 41 Oscillator Circuit

[0192] 42 Extraction circuit (CDR circuit)

[0193] 43 First Circuit (PFD Circuit)

[0194] 44 Second Circuit

[0195] 45 CP Circuit

[0196] 46 Filter circuit

[0197] 47 AD conversion circuit

[0198] 71 Second Oscillator

[0199] 72 Temperature adjustment unit

[0200] 73 Temperature sensor

[0201] 9 Vehicles

[0202] D1 Illegal terminal

[0203] H1 Hub (Relay Hub)

[0204] H2 Oscillator (Third Oscillator)

[0205] B1 Bus

[0206] RS1 receiving signal

[0207] SG1 first oscillation signal

[0208] SG2 Second oscillation signal

[0209] SG3 oscillation signal (third oscillation signal)

[0210] SGx oscillation signal

[0211] DS1 digital signal

[0212] DS2 data signal

[0213] Vx detection value

[0214] Vx1 detection value (first detection value)

[0215] Vx2 detection value (second detection value)

[0216] V1 Normal value

[0217] V4 Normal value (first normal value)

[0218] V5 Normal value (second normal value)

[0219] α margin value

[0220] X1 Moment

[0221] X2 Moment

[0222] X3 Moment

[0223] X4 Moment

[0224] X5 Moments

[0225] X11 Time Point

[0226] X12 Time Point

[0227] X13 Time Point

[0228] T1 First temperature

[0229] T2 Second temperature

[0230] T3 Third temperature

[0231] T4 The first specified temperature

[0232] T5 The second specified temperature

[0233] Tx detection temperature

Claims

1. A vehicle-mounted device connected to an ECU mounted on a vehicle via a communication line, wherein: The vehicle-mounted device comprises: A PHY unit converts a reception signal received from the communication line into a digital signal; an oscillation circuit that outputs a first oscillation signal based on the oscillation of the first oscillator; a detection circuit, outputting a detection value, wherein the detection value corresponds to a difference between a frequency of the first oscillation signal and a frequency of a second oscillation signal included in the received signal; a switch unit that switches between a first state and a second state, wherein the first state is a state in which at least a part of the received signal is not input to the PHY unit, and the second state is a state in which the received signal is input to the PHY unit; and a control unit for controlling the switch unit, the control unit sets the switch unit to the first state when the detected value differs from a normal value by more than a predetermined value, the normal value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on oscillation of a second oscillator included in the ECU, The control unit sets the switch unit to the second state when the difference between the detection value and the normal value is within the predetermined value.

2. The vehicle-mounted device according to claim 1, wherein: The detection circuit comprises: a first circuit, which inputs the first oscillation signal and the second oscillation signal, and detects a difference between a frequency of the first oscillation signal and a frequency of the second oscillation signal; and The second circuit converts the difference detected in the first circuit into the detection value.

3. The vehicle-mounted device according to claim 2, wherein: The received signal is a signal formed by superimposing the second oscillation signal and the data signal. The detection circuit further includes an extraction circuit configured to extract the second oscillation signal from the reception signal and output the second oscillation signal to the first circuit.

4. The vehicle-mounted device according to any one of claims 1 to 3, wherein: The in-vehicle device further includes a storage unit that stores the normal value in advance.

5. The vehicle-mounted device according to claim 4, wherein: The control unit is capable of selecting a plurality of operation modes including a first mode and a second mode, When the first mode is selected, the control unit changes the normal value stored in the storage unit to the detection value output from the detection circuit during the period in which the first mode is selected. When the second mode is selected, the control unit does not change the normal value stored in the storage unit.

6. The vehicle-mounted device according to claim 4, wherein: The control unit determines the normal value based on a temperature detected by a temperature sensor that detects a temperature of at least one of the first oscillator and the second oscillator.

7. The vehicle-mounted device according to any one of claims 1 to 3, wherein: The control unit controls the temperature adjustment unit, and the temperature adjustment unit adjusts the temperature of the second oscillator. the detection circuit outputting a first detection value to the control unit, the first detection value being the detection value corresponding to a difference between a frequency of the first oscillation signal and a frequency of the second oscillation signal included in the received signal received during a period in which the second oscillator is adjusted to a first predetermined temperature by the temperature adjustment unit, The control unit sets the switch unit to the first state when the difference between the first detection value and a first normal value exceeds a specified value, and the first normal value is the normal value corresponding to the difference between the frequency of the first oscillation signal and the frequency of the third oscillation signal generated based on the oscillation of the second oscillator during the period when the second oscillator is adjusted to the first specified temperature by the temperature adjustment unit.

8. A control method for controlling a vehicle-mounted device connected to an ECU mounted on a vehicle via a communication line, comprising: The first step is to set the detection value to a first state when the difference between the detection value and the normal value exceeds a predetermined value, wherein the first state is a state in which at least a part of the received signal received from the communication line is not input to the PHY unit; and In the second step, when the difference between the detected value and the normal value is within the predetermined value, the state is set to a second state, wherein the received signal is input to the PHY unit. The PHY unit converts the received signal into a digital signal. The detection value is a value corresponding to a difference between a frequency of a first oscillation signal output by an oscillation circuit included in the vehicle-mounted device based on oscillation of a first oscillator and a frequency of a second oscillation signal included in the received signal, The normal value is a value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on oscillation of a second oscillator included in the ECU.

9. A computer program for controlling a vehicle-mounted device connected to an ECU mounted on a vehicle via a communication line, wherein: The computer program causes the computer to execute the following steps: The first step is to set the detection value to a first state when the difference between the detection value and the normal value exceeds a predetermined value, wherein the first state is a state in which at least a part of the received signal received from the communication line is not input to the PHY unit; and In the second step, when the difference between the detected value and the normal value is within the predetermined value, the state is set to a second state, wherein the received signal is input to the PHY unit. The PHY unit converts the received signal into a digital signal. The detection value is a value corresponding to a difference between a frequency of a first oscillation signal output by an oscillation circuit included in the vehicle-mounted device based on oscillation of a first oscillator and a frequency of a second oscillation signal included in the received signal, The normal value is a value corresponding to a difference between a frequency of the first oscillation signal and a frequency of a third oscillation signal generated based on oscillation of a second oscillator included in the ECU.