JP2024040861A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2024040861A
JP2024040861A JP2022145491A JP2022145491A JP2024040861A JP 2024040861 A JP2024040861 A JP 2024040861A JP 2022145491 A JP2022145491 A JP 2022145491A JP 2022145491 A JP2022145491 A JP 2022145491A JP 2024040861 A JP2024040861 A JP 2024040861A
Authority
JP
Japan
Prior art keywords
identification information
communication
communication line
processing unit
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2022145491A
Other languages
Japanese (ja)
Inventor
潤人 小野
Hiroto Ono
友久 岸上
Tomohisa Kishigami
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2022145491A priority Critical patent/JP2024040861A/en
Publication of JP2024040861A publication Critical patent/JP2024040861A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

To provide a communication device capable of determining that an unauthorized device is connected by the communication device as a single unit.SOLUTION: A communication device includes a transceiver 10 and a controller 20. The controller outputs a transmission signal including identification information as a communication signal to be transmitted through a communication wire, and receives a reception signal including the identification information as a communication signal received through the communication wire. The transceiver is connected to the communication wire, transmits the transmission signal inputted from the controller from the communication wire, and outputs the reception signal received from the communication wire to the controller. The transceiver includes a storage part 132 for storing the identification information included in the transmission signal, and a processing part 131 for determining that an unauthorized device is connected to the communication wire in the case that the same identification information as the identification information included in the reception signal is stored in the storage part.SELECTED DRAWING: Figure 2

Description

本開示は、通信装置に関する。 The present disclosure relates to communication devices.

特許文献1には、ECUと通信規約発行装置が車載ネットワークを介して接続された車載ネットワークシステムが開示されている。 Patent Document 1 discloses an in-vehicle network system in which an ECU and a communication protocol issuing device are connected via an in-vehicle network.

通信規約発行装置は、ECUを車載ネットワークに参加させる登録装置から、ECUを車載ネットワークに参加させるよう要求する登録要求を受け取ると、登録装置に対する認証を実施した上で、車載ネットワークに上における実装に準拠した定義データを作成して登録装置に返信する。 When the communication protocol issuing device receives a registration request requesting the ECU to participate in the in-vehicle network from the registration device that allows the ECU to participate in the in-vehicle network, the communication protocol issuing device performs authentication on the registration device and then requests the above implementation on the in-vehicle network. Create compliant definition data and send it back to the registered device.

登録装置は、通信規約発行装置が送信した定義データを受け取り、受け取った定義データをメモリ上に格納するようECUに対して要求する。そして、ECUは、登録装置から定義データを受け取ってメモリ上に格納し、定義データが定義する部分にしたがって、通信規約に準拠して車載ネットワークを用いて通信する。この車載ネットワークシステムによれば、車両ごとに独自の通信規約によって車載ネットワークの全体動作を規定し、それを知らない不正ECUが車載ネットワークに接続したことを検出する。 The registration device receives the definition data transmitted by the communication protocol issuing device, and requests the ECU to store the received definition data in the memory. The ECU then receives the definition data from the registration device, stores it in the memory, and communicates using the in-vehicle network according to the communication protocol according to the portion defined by the definition data. According to this in-vehicle network system, the overall operation of the in-vehicle network is defined by a unique communication protocol for each vehicle, and it is detected that an unauthorized ECU that is not aware of the rules is connected to the in-vehicle network.

特開2013-168865号公報Japanese Patent Application Publication No. 2013-168865

先行技術文献では、専用の動作をする通信規約発行装置の開発や、登録装置を介して定義データをECUのメモリに格納する必要がある。このため、先行技術文献では、ECU単体での不正ECUの検出ができないという問題がある。 In the prior art literature, it is necessary to develop a communication protocol issuing device that performs a dedicated operation and to store definition data in the memory of the ECU via a registration device. For this reason, in the prior art literature, there is a problem in that a fraudulent ECU cannot be detected by a single ECU.

開示される一つの目的は、不正装置が接続されたことを通信装置単体で判定可能な通信装置を提供することである。 One object of the disclosure is to provide a communication device that can determine, by itself, that an unauthorized device has been connected.

ここに開示された通信装置は、
固有の識別情報を含む複数の通信信号を、通信線(200)を介して送受信可能に構成された通信装置であり、
通信線を介して送信する通信信号としての送信信号を出力するとともに、通信線を介して受信した通信信号としての受信信号が入力されるコントローラ(20)と、
通信線と接続されており、コントローラから入力された送信信号を通信線から送信するとともに、通信線から受信した受信信号をコントローラに出力するトランシーバ(10)と、を備え、
コントローラは、識別情報を含む送信信号を出力するものであり、
コントローラとトランシーバの一方は、
送信信号に含まれる識別情報が記憶される記憶部(132)と、
受信信号に含まれる識別情報と同一の識別情報が記憶部に記憶されていた場合、不正装置が通信線に接続されたと判定する処理部(131)と、を備えていることを特徴とする。
The communication device disclosed herein is
A communication device configured to be able to transmit and receive a plurality of communication signals including unique identification information via a communication line (200),
a controller (20) that outputs a transmission signal as a communication signal transmitted via a communication line and receives a reception signal as a communication signal received via the communication line;
A transceiver (10) connected to a communication line, which transmits a transmission signal input from the controller from the communication line and outputs a reception signal received from the communication line to the controller,
The controller outputs a transmission signal containing identification information,
One of the controller and one of the transceivers is
a storage unit (132) in which identification information included in the transmission signal is stored;
The present invention is characterized by comprising a processing section (131) that determines that an unauthorized device is connected to the communication line when the same identification information as the identification information included in the received signal is stored in the storage section.

ここに開示された通信装置によると、送信信号に含まれる識別情報を記憶部に記憶しておく。そして、通信装置は、受信信号に含まれる識別情報と同一の識別情報が記憶部に記憶されていた場合に、不正装置が通信線に接続されたと判定する。よって、通信装置は、通信装置単体で、不正装置が接続されたことを判定することができる。 According to the communication device disclosed herein, the identification information included in the transmission signal is stored in the storage unit. Then, the communication device determines that an unauthorized device is connected to the communication line when the same identification information as the identification information included in the received signal is stored in the storage unit. Therefore, the communication device alone can determine that an unauthorized device has been connected.

この明細書において開示された複数の態様は、それぞれの目的を達成するために、互いに異なる技術的手段を採用する。請求の範囲およびこの項に記載した括弧内の符号は、後述する実施形態の部分との対応関係を例示的に示すものであって、技術的範囲を限定することを意図するものではない。この明細書に開示される目的、特徴、および効果は、後続の詳細な説明、および添付の図面を参照することによってより明確になる。 The multiple embodiments disclosed in this specification employ different technical means to achieve their respective objectives. The claims and the reference numerals in parentheses described in this section exemplarily indicate correspondence with parts of the embodiment described later, and are not intended to limit the technical scope. The objects, features, and advantages disclosed in this specification will become more apparent by reference to the subsequent detailed description and accompanying drawings.

通信ネットワークの概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a communication network. 電子制御装置の概略構成を示すブロック図である。FIG. 2 is a block diagram showing a schematic configuration of an electronic control device. 通信装置における送信時の処理動作を示すフローチャートである。3 is a flowchart showing a processing operation during transmission in a communication device. 通信装置における受信時の処理動作を示すフローチャートである。3 is a flowchart showing a processing operation at the time of reception in a communication device. 通信装置におけるIDの削除処理動作を示すフローチャートである。3 is a flowchart showing an ID deletion processing operation in a communication device. 通信装置におけるIDの削除処理動作を示すフローチャートである。3 is a flowchart showing an ID deletion processing operation in a communication device.

以下において、図面を参照しながら、本開示を実施するための形態を説明する。 Hereinafter, embodiments for carrying out the present disclosure will be described with reference to the drawings.

<構成>
図1,図2を用いて、通信装置10,20の構成に関して説明する。通信装置10,20は、電子制御装置100~120の少なくとも一つに搭載される。図1に示すように、電子制御装置100~120は、通信線200を介して互いにメッセージの送受信(通信)が可能に構成されている。このように、電子制御装置100~120は、通信線200を介して通信ネットワークを構成している。この通信ネットワークは、例えば車両に搭載することもできる。この場合、通信ネットワークは、車載ネットワークとも呼ばれることがある。図面では、電子制御装置をECUと記載している。ECUは、Electronic Control Unitの略称である。メッセージは、通信信号に相当する。メッセージは、フレームと呼ばれる所定のフォーマットで通信される。
<Configuration>
The configurations of the communication devices 10 and 20 will be explained using FIGS. 1 and 2. The communication devices 10 and 20 are installed in at least one of the electronic control devices 100 to 120. As shown in FIG. 1, the electronic control devices 100 to 120 are configured to be able to send and receive messages (communication) to each other via a communication line 200. In this way, the electronic control devices 100 to 120 constitute a communication network via the communication line 200. This communication network can also be mounted on a vehicle, for example. In this case, the communication network may also be referred to as an in-vehicle network. In the drawings, the electronic control unit is indicated as an ECU. ECU is an abbreviation for Electronic Control Unit. A message corresponds to a communication signal. Messages are communicated in a predetermined format called a frame.

なお、本実施形態では、一例として、三つの電子制御装置100~120が通信線200に接続された例を採用している。しかしながら、本開示は、これに限定されず、複数の電子制御装置が通信線200に接続されていればよい。 In this embodiment, as an example, three electronic control devices 100 to 120 are connected to the communication line 200. However, the present disclosure is not limited thereto, as long as a plurality of electronic control devices are connected to the communication line 200.

本実施形態では、一例として、電子制御装置100に通信装置10,20が搭載された例を採用する。この場合、他の電子制御装置110,120は、通信装置10,20とは処理動作が異なる装置によって通信線200を介した通信が可能に構成される。しかしながら、本開示は、全ての電子制御装置100~120が通信装置10,20を備えていてもよい。 In this embodiment, as an example, an example in which communication devices 10 and 20 are installed in an electronic control device 100 is adopted. In this case, the other electronic control devices 110 and 120 are configured to be able to communicate via the communication line 200 by devices whose processing operations are different from those of the communication devices 10 and 20. However, in the present disclosure, all the electronic control devices 100 to 120 may include the communication devices 10 and 20.

各電子制御装置100~120は、所定の通信規格に準拠して通信を行う。本実施形態では、通信規格の一例として、Controller Area Network(以降、CAN:登録商標)を採用する。しかしながら、本開示は、これに限定されず、LINやCXPIなどの通信規格でも採用できる。LINは、Local Interconnect Networkの略称である。CXPIは、Clock Extension Peripheral Interfaceの略称である。 Each electronic control device 100 to 120 communicates in accordance with a predetermined communication standard. In this embodiment, Controller Area Network (hereinafter referred to as CAN: registered trademark) is adopted as an example of a communication standard. However, the present disclosure is not limited thereto, and can also be adopted in communication standards such as LIN and CXPI. LIN is an abbreviation for Local Interconnect Network. CXPI is an abbreviation for Clock Extension Peripheral Interface.

通信線200は、二つの線201,202を備えている。メッセージは、二つの線201,202の間における電位差によって表される。通信線200は、CANHライン201と、CANLライン202の二線式の通信線といえる。また、通信線200は、通信バスやCANバスとも呼ばれることがある。 The communication line 200 includes two lines 201 and 202. The message is represented by the potential difference between the two lines 201,202. The communication line 200 can be said to be a two-wire communication line including a CANH line 201 and a CANL line 202. Further, the communication line 200 may also be called a communication bus or a CAN bus.

電位差のないメッセージは、劣性レベルの信号に相当する。一方、電位差のあるメッセージは、優性レベルの信号に相当する。劣性レベルの信号は、レセシブと呼ばれることがある。一方、優性レベルの信号は、ドミナントと呼ばれることがある。よって、各電子制御装置100~120は、メッセージを送信する際には、CANHライン201とCANLライン202に電位差を発生させて、ドミナントが示す値(0)とレセシブが示す値(1)を送信する。このように、各電子制御装置100~120は、二線式作動電圧方式でメッセージの送受信を行う。 A message without a potential difference corresponds to a recessive level signal. On the other hand, a message with a potential difference corresponds to a signal at a dominant level. A signal at a recessive level is sometimes called recessive. On the other hand, a signal at a dominant level is sometimes called a dominant signal. Therefore, when each electronic control unit 100 to 120 transmits a message, it generates a potential difference between the CANH line 201 and the CANL line 202, and transmits the value (0) indicated by the dominant and the value (1) indicated by the recessive. do. In this way, each of the electronic control devices 100 to 120 transmits and receives messages using the two-wire operating voltage method.

ドミナントとレセシブは、通信線200上で衝突した場合はドミナントが優先される。優性レベルの信号は、劣性レベルの信号よりも優先される。したがって、ある電子制御装置によって、通信線200がドミナントレベルに固定されて占有されると、その他の電子制御装置は、通信線200を介した通信ができなくなる。 If a dominant and a recessive conflict on the communication line 200, the dominant is given priority. Dominant level signals have priority over recessive level signals. Therefore, when the communication line 200 is fixed at a dominant level and occupied by a certain electronic control device, other electronic control devices are unable to communicate via the communication line 200.

図2に示すように、電子制御装置100は、通信装置としてのコントローラ20とトランシーバ10を備えている。また、電子制御装置100は、通信装置の他に、送信データおよび受信データの処理を行うマイコンなどを備えていてもよい。さらに、コントローラ20は、マイコンに設けられていてもよい。送信データは、送信するメッセージに含まれるデータである。受信データは、受信したメッセージに含まれるデータである。 As shown in FIG. 2, the electronic control device 100 includes a controller 20 and a transceiver 10 as a communication device. In addition to the communication device, the electronic control device 100 may also include a microcomputer that processes transmitted data and received data. Furthermore, the controller 20 may be provided in a microcomputer. Transmission data is data included in a message to be transmitted. Received data is data included in a received message.

各電子制御装置100~120は、複数のメッセージを送信する。各メッセージは、送信する各電子制御装置100~120に固有のものである。また、各メッセージは、各メッセージに固有の識別情報を含んでいる。以下、識別情報をIDとも記載する。 Each electronic control device 100-120 transmits multiple messages. Each message is unique to each sending electronic control device 100-120. Each message also includes identification information unique to each message. Hereinafter, identification information will also be referred to as ID.

コントローラ20は、CANプロトコルにしたがって他の電子制御装置110,120との通信を制御する通信制御装置である。コントローラ20は、送信する送信データなどをメッセージに変換し、通信線200への通信調停などを行いながら、トランシーバ10へ送信指示を行う。コントローラ20は、複数の異なるメッセージの送信指示をトランシーバ10へ行うことができる。 The controller 20 is a communication control device that controls communication with other electronic control devices 110 and 120 according to the CAN protocol. The controller 20 converts transmission data to be transmitted into a message, and instructs the transceiver 10 to transmit while performing communication mediation to the communication line 200 and the like. Controller 20 can instruct transceiver 10 to send a plurality of different messages.

コントローラ20は、送信指示を行う際には、トランシーバ10への入力信号として、通信線200を介して送信するメッセージ(送信信号)を出力する。このとき、コントローラ20は、IDを含むメッセージをトランシーバ10へ出力する。また、コントローラ20は、トランシーバ10の出力信号として、通信線200を介して受信したメッセージ(受信信号)が入力される。コントローラ20は、CANコントローラと呼ばれることもある。通信線200を介して送信するメッセージは、送信メッセージともいえる。通信線200を介して受信したメッセージは、受信メッセージともいえる。 When issuing a transmission instruction, the controller 20 outputs a message (transmission signal) to be transmitted via the communication line 200 as an input signal to the transceiver 10 . At this time, the controller 20 outputs a message including the ID to the transceiver 10. Further, the controller 20 receives a message (received signal) received via the communication line 200 as an output signal of the transceiver 10 . Controller 20 is sometimes called a CAN controller. The message sent via the communication line 200 can also be called a transmission message. The message received via the communication line 200 can also be called a received message.

トランシーバ10は、送信部11、受信部12、制御部13などを備えている。送信部11および受信部12は、通信線200のCANHライン201とCANLライン202と接続されている。送信部11は、コントローラ20から入力されたメッセージを通信線200から送信する。受信部12は、通信線200から受信したメッセージをコントローラ20に出力する。つまり、トランシーバ10は、コントローラ20から受け取ったメッセージをビットレベルから電圧レベルに変換して通信線200に送信する。また、トランシーバ10は、電圧レベルを通信線200から読み取り、電圧レベルからビットレベルに変換しコントローラ20に出力する。 The transceiver 10 includes a transmitter 11, a receiver 12, a controller 13, and the like. The transmitter 11 and the receiver 12 are connected to a CANH line 201 and a CANL line 202 of a communication line 200. The transmitter 11 transmits a message input from the controller 20 through the communication line 200 . The receiving unit 12 outputs the message received from the communication line 200 to the controller 20. That is, transceiver 10 converts the message received from controller 20 from a bit level to a voltage level and transmits it to communication line 200. Further, the transceiver 10 reads the voltage level from the communication line 200, converts the voltage level to a bit level, and outputs the converted bit level to the controller 20.

制御部13は、CPUなどの処理部131と、RAMなどの揮発性メモリやフラッシュメモリなどの不揮発性メモリを含む記憶部132とを備えている。CPUは、Cetral Processing Unitの略称である。RAMは、Random Access Memoryの略称である。 The control unit 13 includes a processing unit 131 such as a CPU, and a storage unit 132 including a volatile memory such as a RAM and a nonvolatile memory such as a flash memory. CPU is an abbreviation for Central Processing Unit. RAM is an abbreviation for Random Access Memory.

処理部131は、コントローラ20から出力されたメッセージが入力される。処理部131は、メッセージに含まれているIDを抽出し、抽出したIDを記憶部132に記憶する。処理部131は、記憶部132における不揮発性メモリにIDを記憶すると好ましい。このように、記憶部132には、メッセージに含まれるIDが記憶される。 The processing unit 131 receives a message output from the controller 20 as input. The processing unit 131 extracts the ID included in the message and stores the extracted ID in the storage unit 132. Preferably, the processing unit 131 stores the ID in a nonvolatile memory in the storage unit 132. In this way, the storage unit 132 stores the ID included in the message.

電子制御装置100は、複数の異なるメッセージを送信する。そのため、処理部131は、複数の異なるメッセージが入力される。よって、記憶部132は、複数のIDが記憶される。IDは、消去可能な状態で記憶部132に記憶されると好ましい。 Electronic control device 100 sends multiple different messages. Therefore, the processing unit 131 receives a plurality of different messages. Therefore, the storage unit 132 stores a plurality of IDs. It is preferable that the ID is stored in the storage unit 132 in an erasable state.

また、処理部131は、受信部12から出力された受信メッセージが入力される。処理部131は、受信メッセージに含まれるIDを抽出する。そして、処理部131は、受信メッセージから抽出したIDと、記憶部132に記憶されているIDとから通信線200に不正装置が接続されているか否かを検出する。言い換えると、処理部131は、なりすましを検出する。不正装置とは、通信線200に対して正規に取り付けられた電子制御装置ではなく、悪意のある第三者などによって不正に接続された電子装置である。トランシーバ10は、CANトランシーバと呼ばれることもある。 Further, the processing unit 131 receives the received message output from the receiving unit 12 as input. The processing unit 131 extracts the ID included in the received message. The processing unit 131 then detects whether an unauthorized device is connected to the communication line 200 based on the ID extracted from the received message and the ID stored in the storage unit 132. In other words, the processing unit 131 detects spoofing. The unauthorized device is not an electronic control device that is legally attached to the communication line 200, but is an electronic device that is illegally connected to the communication line 200 by a malicious third party or the like. Transceiver 10 is sometimes referred to as a CAN transceiver.

<処理動作>
図3~図6を用いて、トランシーバ10の処理動作に関して説明する。まず、図3を用いて、メッセージの送信時の処理動作に関して説明する。トランシーバ10は、コントローラ20から入力信号が入力されると図3に示すフローチャートの処理を開始する。
<Processing operation>
The processing operation of the transceiver 10 will be explained using FIGS. 3 to 6. First, processing operations when transmitting a message will be described using FIG. 3. When the transceiver 10 receives an input signal from the controller 20, it starts processing the flowchart shown in FIG.

ステップS10では、入力信号からIDを検知する。つまり、処理部131は、入力信号であるメッセージからIDを抽出する。 In step S10, the ID is detected from the input signal. That is, the processing unit 131 extracts the ID from the message that is the input signal.

ステップS11では、記憶部132に同一のIDが記憶されているか否かを判定する。処理部131は、ステップS10で抽出したIDが、既に記憶部132に記憶されているか否かを確認する。つまり、処理部131は、入力された今回のメッセージが過去にも入力されているか否かを確認する。また、処理部131は、今回のメッセージに含まれているIDを記憶部132に記憶する必要があるか否かを確認する、ともいえる。 In step S11, it is determined whether the same ID is stored in the storage unit 132. The processing unit 131 checks whether the ID extracted in step S10 is already stored in the storage unit 132. That is, the processing unit 131 checks whether the currently input message has been input in the past. It can also be said that the processing unit 131 checks whether the ID included in the current message needs to be stored in the storage unit 132.

処理部131は、ステップS10で抽出したIDが既に記憶部132に記憶されていると判定した場合、IDを記憶する必要がないとみなして図3のフローチャートを終了する。処理部131は、ステップS10で抽出したIDが記憶部132に記憶されていないと判定した場合、IDを記憶する必要があるとみなしてステップS12へ進む。 If the processing unit 131 determines that the ID extracted in step S10 is already stored in the storage unit 132, it considers that there is no need to store the ID and ends the flowchart of FIG. 3. If the processing unit 131 determines that the ID extracted in step S10 is not stored in the storage unit 132, it determines that the ID needs to be stored and proceeds to step S12.

ステップS12では、記憶部132にIDを追加する。処理部131は、ステップS10で抽出したIDを記憶部132に記憶する。これは、受信メッセージに含まれているIDと比較して、通信線200に不正装置が接続されているか否かを判定するためである。 In step S12, the ID is added to the storage unit 132. The processing unit 131 stores the ID extracted in step S10 in the storage unit 132. This is to compare the ID included in the received message to determine whether or not an unauthorized device is connected to the communication line 200.

次に、図4を用いて、メッセージの受信時の処理動作に関して説明する。トランシーバ10は、受信部12から受信メッセージを受け取ると図4に示すフローチャートの処理を開始する。 Next, processing operations when receiving a message will be described using FIG. 4. When the transceiver 10 receives the received message from the receiving unit 12, it starts the process of the flowchart shown in FIG.

ステップS20では、出力信号からIDを検知する。つまり、処理部131は、出力信号である受信メッセージからIDを抽出する。 In step S20, the ID is detected from the output signal. That is, the processing unit 131 extracts the ID from the received message that is the output signal.

ステップS21では、記憶部132に同一のIDが記憶されているか否かを判定する。処理部131は、ステップS20で抽出したIDが、記憶部132に記憶されているか否かを確認する。処理部131は、処理部131が搭載されている電子制御装置100のみが送信するはずのメッセージを受信したか否かを判定するために、ステップS21での確認を行う。つまり、処理部131は、不正装置が通信線200に接続されているか否かを判定するためにステップS21での確認を行う。 In step S21, it is determined whether the same ID is stored in the storage unit 132. The processing unit 131 checks whether the ID extracted in step S20 is stored in the storage unit 132. The processing unit 131 performs a check in step S21 in order to determine whether a message that is supposed to be transmitted only by the electronic control device 100 in which the processing unit 131 is installed has been received. That is, the processing unit 131 performs the check in step S21 to determine whether an unauthorized device is connected to the communication line 200.

処理部131は、ステップS20で抽出したIDが記憶部132に記憶されていると判定した場合、不正装置が通信線200に接続されている可能性があるとみなしてステップS22へ進む。処理部131は、ステップS10で抽出したIDが記憶部132に記憶されていないと判定した場合、不正装置が通信線200に接続されていないとみなして図4のフローチャートを終了する。 If the processing unit 131 determines that the ID extracted in step S20 is stored in the storage unit 132, it assumes that there is a possibility that an unauthorized device is connected to the communication line 200, and proceeds to step S22. If the processing unit 131 determines that the ID extracted in step S10 is not stored in the storage unit 132, it assumes that the unauthorized device is not connected to the communication line 200, and ends the flowchart of FIG.

ステップS22では、入力信号ID=出力信号IDであるか否かを判定する。処理部131は、入力信号に含まれているIDと出力信号に含まれているIDとが一致しているか否かを判定する。つまり、処理部131は、コントローラ20から入力されたメッセージに含まれるIDと、メッセージが入力されてから所定時間内にコントローラ20に出力する受信メッセージに含まれるIDが一致するか否かを判定する。 In step S22, it is determined whether the input signal ID=output signal ID. The processing unit 131 determines whether the ID included in the input signal and the ID included in the output signal match. That is, the processing unit 131 determines whether the ID included in the message input from the controller 20 matches the ID included in the received message output to the controller 20 within a predetermined time after the message is input. .

そして、処理部131は、一致していると判定しなかった場合はステップS23に進む。一方、処理部131は、一致していると判定した場合はステップS23に進むことなく、図4のフローチャートを終了する。 If the processing unit 131 does not determine that they match, the process proceeds to step S23. On the other hand, if the processing unit 131 determines that they match, the processing unit 131 ends the flowchart of FIG. 4 without proceeding to step S23.

入力信号ID=出力信号IDでない場合は、不正装置が送信したメッセージを、通信線200を介して受信したとみなせる。よって、処理部131は、一致していると判定しなかった場合は、不正装置が通信線200に接続されたとみなしてステップS23に進む。 If the input signal ID does not equal the output signal ID, it can be assumed that a message sent by an unauthorized device has been received via the communication line 200. Therefore, if the processing unit 131 does not determine that they match, it assumes that an unauthorized device is connected to the communication line 200 and proceeds to step S23.

一方、入力信号ID=出力信号IDの場合は、処理部131が送信したメッセージを、処理部131が通信線200を介して受信したとみなせる。このため、処理部131は、ステップS21でYES判定したとしても、入力信号ID=出力信号IDの場合は不正装置が通信線200に接続されたと判定しない。これによって、トランシーバ10は、自身が送信したメッセージによって、不正装置が接続されたと誤判定することを抑制できる。 On the other hand, if the input signal ID=output signal ID, it can be assumed that the processing section 131 has received the message transmitted by the processing section 131 via the communication line 200. Therefore, even if the processing unit 131 makes a YES determination in step S21, it does not determine that an unauthorized device is connected to the communication line 200 if the input signal ID=output signal ID. As a result, the transceiver 10 can prevent the transceiver 10 from erroneously determining that an unauthorized device is connected based on the message it has transmitted.

なお、本開示は、ステップS22を省略することもできる。この場合、処理部131は、受信メッセージに含まれるIDと同一のIDが記憶部132に記憶されていた場合、不正装置が通信線200に接続されたと判定する。 Note that in the present disclosure, step S22 can also be omitted. In this case, if the same ID as the ID included in the received message is stored in the storage unit 132, the processing unit 131 determines that an unauthorized device has been connected to the communication line 200.

ステップS23では、通信線にエラーフレームを送信する。処理部131は、不正装置が送信したフレームが継続的に通信線200に流れることを抑制するために送信部11を介してエラーフレームを送信する。言い換えると、処理部131は、不正装置が送信したフレームを破壊するためにエラーフレームを送信する。本実施形態では、エラーフレームの一例として、優性レベルの信号を一定時間送信し続ける。 In step S23, an error frame is transmitted to the communication line. The processing unit 131 transmits an error frame via the transmitting unit 11 in order to prevent frames transmitted by an unauthorized device from continuously flowing to the communication line 200. In other words, the processing unit 131 transmits an error frame in order to destroy the frame transmitted by the unauthorized device. In this embodiment, as an example of an error frame, a dominant level signal is continuously transmitted for a certain period of time.

また、処理部131は、不正装置が通信線200に接続されたと判定すると、通信線200に不正装置が接続されたことをコントローラ20に通知してもよい。つまり、処理部131は、ステップS22でNO判定の場合、ステップS23とコントローラ20への通知との少なくとも一方を実行する。 Further, when determining that an unauthorized device is connected to the communication line 200, the processing unit 131 may notify the controller 20 that the unauthorized device has been connected to the communication line 200. That is, when the determination is NO in step S22, the processing unit 131 executes at least one of step S23 and notification to the controller 20.

さらに、トランシーバ10は、入力信号であるメッセージからIDを抽出するたびに図5に示すフローチャートの処理を開始してもよい。 Furthermore, the transceiver 10 may start the process of the flowchart shown in FIG. 5 every time it extracts an ID from a message that is an input signal.

ステップS30では、記憶部132に記憶されている各IDが最後に入力された時間(時刻)を記録する。処理部131は、各IDが入力された時刻を記録する。また、処理部131は、各IDが入力されるたびに時刻を更新する。これによって、処理部131は、各IDが最後に入力された時刻を記録する。また、処理部131は、各IDと時刻とを関連付けて記憶部132などに記録する。なお、各IDが入力された時刻は、入力された各メッセージからIDを抽出した時刻ともいえる。 In step S30, the time (time) when each ID stored in the storage unit 132 was last input is recorded. The processing unit 131 records the time when each ID was input. Furthermore, the processing unit 131 updates the time every time each ID is input. Accordingly, the processing unit 131 records the time when each ID was last input. Furthermore, the processing unit 131 records each ID and time in association with each other in the storage unit 132 or the like. Note that the time when each ID is input can also be said to be the time when the ID is extracted from each input message.

ステップS31では、一定時間が経過したか否かを判定する。処理部131は、動作を開始してから一定時間が経過したか否かを判定する。処理部131は、一定時間が経過したと判定した場合はステップS32へ進み、一定時間が経過したと判定しない場合はステップS30へ戻る。なお、処理部131は、タイマなどによって経過時間を計測することができる。 In step S31, it is determined whether a certain period of time has elapsed. The processing unit 131 determines whether a certain period of time has passed since the start of the operation. If the processing unit 131 determines that the predetermined time has elapsed, the process proceeds to step S32, and if it does not determine that the predetermined time has elapsed, the process returns to step S30. Note that the processing unit 131 can measure the elapsed time using a timer or the like.

ステップS32では、基準時間以上、入力がないIDがあるか否かを判定する。処理部131は、最後に入力された時刻から基準時間以上、トランシーバ10への入力がないIDがあるか否かを判定する。 In step S32, it is determined whether there is any ID for which no input has been made for a reference time or longer. The processing unit 131 determines whether there is an ID that has not been input to the transceiver 10 for a reference time or more since the last input time.

処理部131は、各IDごとに最後に入力された時刻からの経過時間を計測し、その経過時間が基準時間を超えているIDがあるか否かを判定する。処理部131は、基準時間以上入力がないIDがあると判定した場合は、該当IDがあるとみなしてステップS33へ進む。また、処理部131は、基準時間以上入力がないIDがあると判定した場合は、IDを抽出してからの経過時間が基準値に達しないとみなしてステップS33へ進む、ともいえる。 The processing unit 131 measures the elapsed time from the last input time for each ID, and determines whether there is any ID for which the elapsed time exceeds the reference time. If the processing unit 131 determines that there is an ID for which no input has been made for longer than the reference time, it assumes that the corresponding ID exists and proceeds to step S33. Furthermore, if the processing unit 131 determines that there is an ID for which no input has been made for longer than the reference time, it can be said that the process proceeds to step S33, assuming that the elapsed time since the extraction of the ID has not reached the reference value.

一方、処理部131は、基準時間以上入力がないIDがあると判定しない場合は、該当IDがないとみなして図5のフローチャートを終了する。該当IDとは、基準時間以上、トランシーバ10への入力がないIDである。なお、基準時間は基準値に相当する。 On the other hand, if the processing unit 131 does not determine that there is an ID for which no input has been made for longer than the reference time, it assumes that there is no corresponding ID and ends the flowchart of FIG. The relevant ID is an ID that has not been input to the transceiver 10 for a reference time or longer. Note that the reference time corresponds to a reference value.

ステップS33では、該当IDを記憶部132から削除する。処理部131は、該当IDを記憶部132から削除する。 In step S33, the corresponding ID is deleted from the storage unit 132. The processing unit 131 deletes the corresponding ID from the storage unit 132.

また、トランシーバ10は、入力信号であるメッセージからIDを読み取るたびに図6に示すフローチャートの処理を開始してもよい。 Furthermore, the transceiver 10 may start the process of the flowchart shown in FIG. 6 every time it reads an ID from a message that is an input signal.

ステップS40では、記憶部132に記憶されている各IDの入力回数を記録する。処理部131は、各IDが入力されるたびに入力回数を更新する。処理部131は、各IDと入力回数とを関連付けて記憶部132などに記録する。なお、各IDの入力回数は、入力された各メッセージからIDを抽出した回数ともいえる。各IDの入力回数は、入力された各メッセージの送信回数ともいえる。 In step S40, the number of inputs for each ID stored in the storage unit 132 is recorded. The processing unit 131 updates the number of inputs each time each ID is input. The processing unit 131 associates each ID with the number of inputs and records them in the storage unit 132 or the like. Note that the number of times each ID is input can also be said to be the number of times the ID is extracted from each input message. The number of times each ID is input can also be said to be the number of times each input message is transmitted.

ステップS41では、入力回数の合計数が一定回数以上であるか否かを判定する。処理部131は、動作を開始してから各IDの入力回数の合計数が一定回数以上であると判定した場合はステップS42へ進み、一定回数以上であると判定しない場合はステップS40へ戻る。なお、処理部131は、カウンタなどによって入力回数をカウントすることができる。 In step S41, it is determined whether the total number of inputs is equal to or greater than a certain number of times. If the processing unit 131 determines that the total number of inputs for each ID is equal to or greater than the predetermined number of times after starting the operation, the processing section 131 proceeds to step S42, and if it does not determine that the total number of inputs for each ID is equal to or greater than the predetermined number of times, it returns to step S40. Note that the processing unit 131 can count the number of inputs using a counter or the like.

ステップS42では、入力回数が基準回数以下のIDがあるか否かを判定する。処理部131は、入力回数が基準回数以下のIDがあるか否かを判定する。処理部131は、IDごとに入力回数をカウントし、その入力回数が基準回数を下回っているIDがあるか否かを判定する。処理部131は、基準回数以下のIDがあると判定した場合は、該当IDがあるとみなしてステップS43へ進む。また、処理部131は、基準回数以下のIDがあると判定した場合は、IDを抽出した回数が基準値に達しないとみなしてステップS43へ進む、ともいえる。 In step S42, it is determined whether there is an ID whose number of inputs is equal to or less than a reference number of times. The processing unit 131 determines whether there is an ID whose number of inputs is equal to or less than a reference number of times. The processing unit 131 counts the number of inputs for each ID, and determines whether there is any ID for which the number of inputs is less than the reference number of times. When the processing unit 131 determines that there is an ID that is equal to or less than the reference number of times, it is assumed that there is a corresponding ID, and the process proceeds to step S43. Furthermore, if the processing unit 131 determines that there is an ID that is less than or equal to the reference number of times, it can be said that the processing unit 131 assumes that the number of times the ID has been extracted does not reach the reference value and proceeds to step S43.

一方、処理部131は、基準回数以下のIDがあると判定しない場合は、該当IDがないとみなして図6のフローチャートを終了する。該当IDとは、入力回数が基準回数以下のIDである。なお、基準回数は基準値に相当する。ステップS43は、ステップS33と同様である。 On the other hand, if the processing unit 131 does not determine that there is an ID that is equal to or less than the reference number of times, it assumes that there is no corresponding ID and ends the flowchart of FIG. The corresponding ID is an ID for which the number of inputs is equal to or less than the reference number of times. Note that the reference number of times corresponds to a reference value. Step S43 is similar to step S33.

このように、処理部131は、経過時間および送信回数の少なくとも一方が基準値に達しないIDを記憶部132から削除する。つまり、複数のIDが記憶部132に記憶されている場合、処理部131は、経過時間および送信回数の少なくとも一方が基準値に達しないIDのみを記憶部132から削除する。 In this way, the processing unit 131 deletes from the storage unit 132 IDs for which at least one of the elapsed time and the number of transmissions does not reach the reference value. That is, when a plurality of IDs are stored in the storage unit 132, the processing unit 131 deletes from the storage unit 132 only those IDs for which at least one of the elapsed time and the number of transmissions does not reach the reference value.

メッセージは、ノイズなどの影響で間違ったIDが含まれることもある。この場合、処理部131は、その間違ったIDを記憶部132に記憶することになる。しかしながら、トランシーバ10は、上記のようにIDを削除することで、間違ったIDを記憶部132から削除することができる。 A message may contain an incorrect ID due to noise or the like. In this case, the processing unit 131 stores the incorrect ID in the storage unit 132. However, the transceiver 10 can delete the incorrect ID from the storage unit 132 by deleting the ID as described above.

<効果>
ここに開示されたトランシーバ10によると、送信信号であるメッセージに含まれるIDを記憶部132に記憶しておく。そして、トランシーバ10は、受信信号である受信メッセージに含まれるIDと同一のIDが記憶部132に記憶されていた場合に、不正装置が通信線200に接続されたと判定する。よって、トランシーバ10は、電子制御装置単体で、不正装置が通信線200に接続されたことを判定することができる。また、通信装置10,20は、トランシーバ10によって不正装置の接続を判定するため、コントローラ20の変更が不要である。
<Effect>
According to the transceiver 10 disclosed herein, an ID included in a message, which is a transmission signal, is stored in the storage unit 132. Then, the transceiver 10 determines that an unauthorized device is connected to the communication line 200 when the same ID as the ID included in the received message, which is the received signal, is stored in the storage unit 132. Therefore, the transceiver 10 can determine that an unauthorized device is connected to the communication line 200 using only the electronic control device. Further, since the communication devices 10 and 20 determine whether an unauthorized device is connected by the transceiver 10, there is no need to change the controller 20.

なお、本実施形態では、処理部131と記憶部132とをトランシーバ10が備えている例を採用している。しかしながら、本開示は、これに限定されず、処理部131と記憶部132とをコントローラ20が備えていてもよい。この場合、コントローラ20の処理部は、送信信号であるメッセージに含まれるIDを、コントローラ20の記憶部に記憶する。そして、コントローラ20の処理部は、受信信号であるメッセージに含まれるIDと同一のIDがコントローラ20の記憶部に記憶されていた場合、不正装置が通信線200に接続されたと判定する。このように、通信装置10,20は、コントローラ20が処理部131と記憶部132とを備えることで、トランシーバ10の構成に依存しないため、トランシーバ10のコストアップを抑制できる。 Note that this embodiment employs an example in which the transceiver 10 includes a processing section 131 and a storage section 132. However, the present disclosure is not limited thereto, and the controller 20 may include the processing section 131 and the storage section 132. In this case, the processing section of the controller 20 stores the ID included in the message, which is the transmission signal, in the storage section of the controller 20. Then, the processing unit of the controller 20 determines that an unauthorized device has been connected to the communication line 200 if the same ID as the ID included in the message that is the received signal is stored in the storage unit of the controller 20. In this way, the communication devices 10 and 20 do not depend on the configuration of the transceiver 10 because the controller 20 includes the processing section 131 and the storage section 132, and therefore it is possible to suppress an increase in the cost of the transceiver 10.

また、コントローラ20の処理部は、ステップS22、ステップS23を実行してもよい。さらに、コントローラ20の処理部は、複数のIDが記憶部に記憶されている場合、経過時間および送信回数の少なくとも一方が基準値に達しないIDを記憶部から削除してもよい。 Further, the processing unit of the controller 20 may execute steps S22 and S23. Furthermore, when a plurality of IDs are stored in the storage unit, the processing unit of the controller 20 may delete from the storage unit an ID for which at least one of the elapsed time and the number of transmissions does not reach a reference value.

本開示は、実施形態に準拠して記述されたが、本開示は当該実施形態や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態が本開示に示されているが、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範畴や思想範囲に入るものである。 Although the present disclosure has been described in accordance with embodiments, it is understood that the present disclosure is not limited to such embodiments or structures. The present disclosure also includes various modifications and equivalent modifications. In addition, although various combinations and configurations are shown in this disclosure, other combinations and configurations involving only one element, more, or fewer elements are also within the scope and spirit of this disclosure. It is something that can be entered.

10…トランシーバ、11…送信部、12…受信部、13…制御部、131…処理部、132…記憶部、20…コントローラ、100…電子制御装置、200…通信線、201…CANHライン、202…CANLライン DESCRIPTION OF SYMBOLS 10... Transceiver, 11... Transmission part, 12... Receiving part, 13... Control part, 131... Processing part, 132... Storage part, 20... Controller, 100... Electronic control unit, 200... Communication line, 201... CANH line, 202 ...CANL line

Claims (5)

固有の識別情報を含む複数の通信信号を、通信線(200)を介して送受信可能に構成された通信装置であり、
前記通信線を介して送信する前記通信信号としての送信信号を出力するとともに、前記通信線を介して受信した前記通信信号としての受信信号が入力されるコントローラ(20)と、
前記通信線と接続されており、前記コントローラから入力された前記送信信号を前記通信線から送信するとともに、前記通信線から受信した前記受信信号を前記コントローラに出力するトランシーバ(10)と、を備え、
前記コントローラは、前記識別情報を含む前記送信信号を出力するものであり、
前記コントローラと前記トランシーバの一方は、
前記送信信号に含まれる前記識別情報が記憶される記憶部(132)と、
前記受信信号に含まれる前記識別情報と同一の前記識別情報が前記記憶部に記憶されていた場合、不正装置が前記通信線に接続されたと判定する処理部(131)と、を備えている通信装置。
A communication device configured to be able to transmit and receive a plurality of communication signals including unique identification information via a communication line (200),
a controller (20) that outputs a transmission signal as the communication signal transmitted via the communication line, and into which a reception signal as the communication signal received via the communication line is input;
A transceiver (10) connected to the communication line and configured to transmit the transmission signal input from the controller from the communication line and output the reception signal received from the communication line to the controller. ,
The controller outputs the transmission signal including the identification information,
One of the controller and the transceiver,
a storage unit (132) in which the identification information included in the transmission signal is stored;
a processing unit (131) that determines that an unauthorized device is connected to the communication line when the identification information that is the same as the identification information included in the received signal is stored in the storage unit; Device.
対をなす二線式の前記通信線を介して、劣性レベルの信号と前記劣性レベルの信号よりも優先される優性レベルの信号とで示される前記通信信号を二線式作動電圧方式で送受信するものであり、
前記処理部は、前記不正装置が前記通信線に接続されたと判定すると、前記優性レベルの信号を一定時間送信し続ける、請求項1に記載の通信装置。
The communication signal, which is represented by a recessive level signal and a dominant level signal that is given priority over the recessive level signal, is transmitted and received via the paired two-wire communication line using a two-wire operating voltage method. It is a thing,
The communication device according to claim 1, wherein the processing unit continues to transmit the dominant level signal for a certain period of time when determining that the unauthorized device is connected to the communication line.
前記処理部は、前記トランシーバに設けられており、前記不正装置が前記通信線に接続されたと判定すると、前記通信線に前記不正装置が接続されたことを前記コントローラに通知する、請求項1または2に記載の通信装置。 The processing unit is provided in the transceiver, and when determining that the unauthorized device is connected to the communication line, the processing unit notifies the controller that the unauthorized device is connected to the communication line. 2. The communication device according to 2. 前記処理部は、前記送信信号から前記識別情報を抽出し、前記識別情報を前記記憶部に記憶するものであり、前記識別情報を抽出してからの経過時間、および前記識別情報を抽出した回数の少なくとも一方が基準値に達しない場合に、前記識別情報を前記記憶部から削除する、請求項1または2に記載の通信装置。 The processing unit extracts the identification information from the transmission signal and stores the identification information in the storage unit, and the processing unit extracts the identification information from the transmission signal and stores the identification information in the storage unit, and records the elapsed time since extracting the identification information and the number of times the identification information has been extracted. The communication device according to claim 1 or 2, wherein the identification information is deleted from the storage unit when at least one of the identification information does not reach a reference value. 前記処理部は、前記トランシーバに設けられており、前記コントローラから入力された前記送信信号に含まれる前記識別情報と、前記送信信号が入力されてから所定時間内に前記コントローラに出力する前記受信信号に含まれる前記識別情報が一致した場合、前記不正装置が前記通信線に接続されたと判定しない、請求項1または2に記載の通信装置。 The processing unit is provided in the transceiver and is configured to process the identification information included in the transmission signal inputted from the controller and the reception signal outputted to the controller within a predetermined time after the transmission signal is inputted. 3. The communication device according to claim 1, wherein when the identification information included in the identification information matches, it is not determined that the unauthorized device is connected to the communication line.
JP2022145491A 2022-09-13 2022-09-13 Communication device Pending JP2024040861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022145491A JP2024040861A (en) 2022-09-13 2022-09-13 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022145491A JP2024040861A (en) 2022-09-13 2022-09-13 Communication device

Publications (1)

Publication Number Publication Date
JP2024040861A true JP2024040861A (en) 2024-03-26

Family

ID=90368933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022145491A Pending JP2024040861A (en) 2022-09-13 2022-09-13 Communication device

Country Status (1)

Country Link
JP (1) JP2024040861A (en)

Similar Documents

Publication Publication Date Title
JP6477281B2 (en) In-vehicle relay device, in-vehicle communication system, and relay program
US10361934B2 (en) Controller area network (CAN) device and method for controlling CAN traffic
JP6836340B2 (en) Fraud detection electronic control unit, in-vehicle network system and communication method
US11096051B2 (en) Connection establishment method, device, and system
US11366885B2 (en) Vehicle security system and vehicle security method
JP2017050643A (en) Repeating device
JP2012222527A (en) In-vehicle network, management node, and number assignment method
JP2014236248A (en) Electronic control device and electronic control system
JP2016143963A (en) On-vehicle communication system
CN112347023A (en) Security module for CAN node
JP6176199B2 (en) Transmission line abnormality detection device
JP2024040861A (en) Communication device
KR100982254B1 (en) System and method for processing log-in request
US10447384B2 (en) Communication apparatus, communication method, and program
JP6620696B2 (en) Electronic control unit
JP2017060057A (en) Communication control device and communication system
JP2009526469A (en) Electronic fax control apparatus for security and control method therefor
JP7110950B2 (en) network system
JP6833143B2 (en) ECU, monitoring ECU and CAN system
WO2020145086A1 (en) Onboard communication system, onboard communication control device, onboard communication device, communication control method, and communication method
US11388133B2 (en) Network switch
JP2021114687A (en) Information processing device, information processing system, and program
JP2020150442A (en) Gateway unit
KR20120010693A (en) Authntication method between electronic control units and electronic control unit using the same
JP2018198363A (en) Communication system, and communication control method