JP2022096920A - Electronic control device mounted on vehicle - Google Patents

Electronic control device mounted on vehicle Download PDF

Info

Publication number
JP2022096920A
JP2022096920A JP2020210184A JP2020210184A JP2022096920A JP 2022096920 A JP2022096920 A JP 2022096920A JP 2020210184 A JP2020210184 A JP 2020210184A JP 2020210184 A JP2020210184 A JP 2020210184A JP 2022096920 A JP2022096920 A JP 2022096920A
Authority
JP
Japan
Prior art keywords
information
control device
electronic control
operation information
time
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
JP2020210184A
Other languages
Japanese (ja)
Inventor
斌 張
Bin Zhang
雄介 阿部
Yusuke Abe
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Astemo Ltd
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 Hitachi Astemo Ltd filed Critical Hitachi Astemo Ltd
Priority to JP2020210184A priority Critical patent/JP2022096920A/en
Publication of JP2022096920A publication Critical patent/JP2022096920A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
  • Information Transfer Systems (AREA)
  • Traffic Control Systems (AREA)

Abstract

To provide an electronic control device which is mounted on a vehicle and securely maintains a real time property of data.SOLUTION: An electronic control device of a vehicle includes a first micro computer and a second micro computer. The first micro computer includes a data receiving part, a first SPI communication part, a first Ethernet communication part, and a second driving information generation part. The data receiving part receives first driving information relating to a travel state of the vehicle. The second driving information generation part generates second driving information. The second driving information includes information relating to a time change of the travel state. The second micro computer includes a second SPI communication part, a second Ethernet communication part, and a command signal generation part. The second SPI communication part receives first driving information from the first SPI communication part. The second Ethernet communication part receives second driving information from the first Ethernet communication part. The command signal generation part generates a command signal for driving and controlling an actuator of the vehicle on the basis of at least one of the first driving information and the second driving information.SELECTED DRAWING: Figure 2

Description

本発明は、車両に搭載される電子制御装置に関する。 The present invention relates to an electronic control device mounted on a vehicle.

近年、運転中の安全性要求の高まりに伴い、所謂自動運転システムが必要となってきている。自動運転システムは、レーダー(RAdio Detecting And Ranging)、LIDAR(LIght Detection And Ranging)、カメラ、等の周辺センサーより周辺移動物体、走行路などの情報を取得し、自動でエンジン、ブレーキ、アクチュエータなどのコントロールユニットに操舵量、制動量などの指令を出す。 In recent years, with the increasing demand for safety during driving, a so-called automatic driving system has become necessary. The autonomous driving system acquires information on peripheral moving objects, driving paths, etc. from peripheral sensors such as radar (RAdio Detecting And Ranging), LIDAR (LIght Detection And Ranging), cameras, etc., and automatically installs engines, brakes, actuators, etc. It issues commands such as steering amount and braking amount to the control unit.

この自動運転システムの実現のため、扱うデータ量が増大傾向にある。この増大するデータを処理するため、複数のマイクロコンピュータ(以下「マイコン」と略記)を含むマルチマイコン構成の車載システムが主流になりつつある。自動運転システムにおいて、マルチマイコンの基本構成は、たとえば認識マイコンと制御マイコンの組み合わせとなる。この認識マイコンと制御マイコンの協調制御や同期のため、マイコン間の通信が必要となる。 Due to the realization of this automated driving system, the amount of data handled is increasing. In order to process this increasing amount of data, an in-vehicle system having a multi-microcomputer configuration including a plurality of microcomputers (hereinafter abbreviated as "microcomputer") is becoming mainstream. In an automated driving system, the basic configuration of a multi-microcomputer is, for example, a combination of a recognition microcomputer and a control microcomputer. Communication between the recognition microcomputer and the control microcomputer is required for cooperative control and synchronization.

通常、マイコン間通信によるデータ受け渡しは、シリアル・ペリフェラル・インタフェース(Serial Peripheral Interface)(以下「SPI」と略記)通信経路を使用している。このような構成の例は特許文献1に記載される。 Normally, data transfer by communication between microcomputers uses a serial peripheral interface (hereinafter abbreviated as "SPI") communication path. An example of such a configuration is described in Patent Document 1.

特開2002-236659号公報JP-A-2002-236659

しかしながら、従来の技術では、データのリアルタイム性を維持するのが困難であるという課題があった。 However, with the conventional technique, there is a problem that it is difficult to maintain the real-time property of the data.

たとえば、SPI通信に障害が発生した場合、マイコン間の通信が不調となり、データのリアルタイム性が確保できなくなるので、制御の精度が低下するおそれがある。 For example, when a failure occurs in SPI communication, communication between microcomputers becomes unsuccessful, and real-time data cannot be ensured, so that control accuracy may decrease.

また、将来的に、自動運転システムが扱う地図情報などの通信データが膨大になると、SPI通信だけでは通信容量が不足し、通信遅延が発生してデータのリアルタイム性が確保できなくなる可能性がある。 In addition, in the future, if the amount of communication data such as map information handled by the autonomous driving system becomes enormous, there is a possibility that the communication capacity will be insufficient with SPI communication alone, communication delays will occur, and real-time data data cannot be ensured. ..

本発明はこのような課題を解決するためになされたものであり、車両に搭載される電子制御装置において、データのリアルタイム性をより確実に維持するものを提供することを目的とする。 The present invention has been made to solve such a problem, and an object of the present invention is to provide an electronic control device mounted on a vehicle that more reliably maintains the real-time property of data.

本発明に係る電子制御装置の一例は、
車両に搭載される電子制御装置であって、
前記電子制御装置は、第1マイコンおよび第2マイコンを備え、
前記第1マイコンは、データ受信部と、第1SPI通信部と、第1イーサネット通信部と、第2運転情報生成部とを備え、
前記データ受信部は第1運転情報を受信し、前記第1運転情報は、前記車両に搭載されたセンサーによって検出された前記車両の走行状況に関する情報であり、
前記第2運転情報生成部は第2運転情報を生成し、前記第2運転情報は、前記走行状況の時間変化に関する情報を含み、
前記第2マイコンは、第2SPI通信部と、第2イーサネット通信部と、指令信号生成部とを備え、
前記第2SPI通信部は、SPI通信を介して前記第1SPI通信部から前記第1運転情報を受信し、
前記第2イーサネット通信部は、イーサネット通信を介して前記第1イーサネット通信部から前記第2運転情報を受信し、
前記指令信号生成部は、前記第1運転情報および前記第2運転情報の少なくとも一方に基づき、前記車両に搭載されたアクチュエータを駆動または制御するための指令信号を生成する、
ことを特徴とする。
An example of the electronic control device according to the present invention is
An electronic control device mounted on a vehicle
The electronic control device includes a first microcomputer and a second microcomputer.
The first microcomputer includes a data receiving unit, a first SPI communication unit, a first Ethernet communication unit, and a second operation information generation unit.
The data receiving unit receives the first driving information, and the first driving information is information about the traveling state of the vehicle detected by the sensor mounted on the vehicle.
The second operation information generation unit generates the second operation information, and the second operation information includes information regarding a time change of the traveling situation.
The second microcomputer includes a second SPI communication unit, a second Ethernet communication unit, and a command signal generation unit.
The second SPI communication unit receives the first operation information from the first SPI communication unit via SPI communication, and receives the first operation information.
The second Ethernet communication unit receives the second operation information from the first Ethernet communication unit via Ethernet communication, and receives the second operation information.
The command signal generation unit generates a command signal for driving or controlling an actuator mounted on the vehicle based on at least one of the first operation information and the second operation information.
It is characterized by that.

本発明に係る車両に搭載される電子制御装置は、データのリアルタイム性をより確実に維持することができる。 The electronic control device mounted on the vehicle according to the present invention can more reliably maintain the real-time property of data.

たとえば、SPI通信に障害が発生した場合には、イーサネット(登録商標)通信でマイコン間通信を継続することができ、データのリアルタイム性が維持される。また、膨大なデータを扱う場合には、SPI通信に加えてイーサネット通信を併用することで、データのリアルタイム性が維持される。とくに、イーサネット通信は一般的にSPI通信より通信容量が大きいので、膨大なデータの処理に適している可能性がある。 For example, when a failure occurs in SPI communication, communication between microcomputers can be continued by Ethernet (registered trademark) communication, and the real-time property of data is maintained. Further, when handling a huge amount of data, the real-time property of the data is maintained by using Ethernet communication in addition to SPI communication. In particular, since Ethernet communication generally has a larger communication capacity than SPI communication, it may be suitable for processing a huge amount of data.

実施例1に係る自動運転制御ユニットの構成Configuration of automatic operation control unit according to the first embodiment 実施例1に係る認識マイコン(第1マイコン)の詳細構成Detailed configuration of the recognition microcomputer (first microcomputer) according to the first embodiment SPIパケットフォーマットとイーサネットパケットフォーマットの例Examples of SPI packet formats and Ethernet packet formats 連続データの作成方法How to create continuous data 実施例1に係る制御マイコン(第2マイコン)の詳細構成Detailed configuration of the control microcomputer (second microcomputer) according to the first embodiment SPI通信異常検知機構とイーサネット通信異常検知機構が判定する通信異常の種類Types of communication errors determined by the SPI communication error detection mechanism and the Ethernet communication error detection mechanism 制御マイコンが認識マイコンからデータを受信した後に、RAM12の内容が更新されるまでのシーケンスを示すフローチャートA flowchart showing a sequence from when the control microcomputer receives data from the recognition microcomputer to when the contents of the RAM 12 are updated. 検証される情報の例Examples of information to be validated 図5のRAM2のデータ構成Data structure of RAM 2 in FIG. 実施例2に係る送信処理のシーケンスを示すフローチャートA flowchart showing a sequence of transmission processing according to the second embodiment. 送信周期の例Example of transmission cycle 送信バッファ余裕量の具体的な計算方法例Example of specific calculation method of transmission buffer margin

以下、図面を用いて本発明を実施するための実施形態について説明する。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.

[実施例1]
図1は、実施例1に係る自動運転制御ユニット100の構成を示している。自動運転制御ユニット100は、車両に搭載される電子制御装置(ECU)である。自動運転制御ユニット100は、二つのマイコン(第1マイコンを構成する認識マイコン101および第2マイコンを構成する制御マイコン102)を備える。
[Example 1]
FIG. 1 shows the configuration of the automatic operation control unit 100 according to the first embodiment. The automatic driving control unit 100 is an electronic control unit (ECU) mounted on a vehicle. The automatic operation control unit 100 includes two microcomputers (a recognition microcomputer 101 constituting the first microcomputer and a control microcomputer 102 constituting the second microcomputer).

各マイコンは公知のコンピュータとしての構成を有し、たとえば演算手段および記憶手段を備える。演算手段はたとえばプロセッサを含み、記憶手段はたとえば半導体メモリ装置等の記憶媒体を含む。記憶媒体の一部または全部が、過渡的でない記憶媒体であってもよい。記憶手段はプログラムを記憶してもよい。プロセッサがこのプログラムを実行することにより、各マイコンは本明細書において説明される機能を実現してもよい。 Each microcomputer has a structure as a known computer, and includes, for example, an arithmetic means and a storage means. The arithmetic means includes, for example, a processor, and the storage means includes, for example, a storage medium such as a semiconductor memory device. A part or all of the storage medium may be a non-transient storage medium. The storage means may store the program. By executing this program by the processor, each microcomputer may realize the function described in this specification.

マイコン間の通信は、SPI通信106とイーサネット通信105で実現される。また、車載システムにおいて、自動運転制御ユニット100は、車両内の通信ネットワーク(イーサネット、CAN、LINなど)を介して、各種のセンサーユニット103および各種の制御機構ユニット104と接続されている。センサーユニット103は、車両に搭載されたセンサーであり、例えば、地図センサー、カメラ、レーダー、LIDARなどである。制御機構ユニット104は、例えば、パワーステアリング装置の制御装置、アクセル制御用のスロットルコントローラー、ブレーキ装置用制御装置などである。 Communication between microcomputers is realized by SPI communication 106 and Ethernet communication 105. Further, in the in-vehicle system, the automatic driving control unit 100 is connected to various sensor units 103 and various control mechanism units 104 via a communication network (Ethernet, CAN, LIN, etc.) in the vehicle. The sensor unit 103 is a sensor mounted on a vehicle, and is, for example, a map sensor, a camera, a radar, a lidar, or the like. The control mechanism unit 104 is, for example, a control device for a power steering device, a throttle controller for accelerator control, a control device for a brake device, and the like.

認識マイコン101、制御マイコン102、およびセンサーユニット103は、イーサネットスイッチ107を介して互いに接続されており、イーサネット通信105を介して通信可能である。認識マイコン101と制御マイコン102との通信(マイコン間通信)は、SPI通信106により行うことができ、また、イーサネットスイッチ107を介して、イーサネット通信105により行うこともできる。 The recognition microcomputer 101, the control microcomputer 102, and the sensor unit 103 are connected to each other via the Ethernet switch 107, and can communicate with each other via the Ethernet communication 105. Communication between the recognition microcomputer 101 and the control microcomputer 102 (communication between microcomputers) can be performed by the SPI communication 106, or can be performed by the Ethernet communication 105 via the Ethernet switch 107.

これにより、認識マイコン101が有する車両の走行状況に関する信号を、SPI通信106に加え、イーサネット通信105によって、制御マイコン102に送信することができる。例えば、通常は、通信周期の短いSPI通信106によりSPI通信信号を送信し、SPI通信に障害が発生した場合にイーサネット通信105によりイーサネット通信信号を送信することで、SPI通信106の障害時におけるバックアップを行うことができる。 Thereby, the signal regarding the traveling condition of the vehicle possessed by the recognition microcomputer 101 can be transmitted to the control microcomputer 102 by the Ethernet communication 105 in addition to the SPI communication 106. For example, normally, the SPI communication signal is transmitted by the SPI communication 106 having a short communication cycle, and when a failure occurs in the SPI communication, the Ethernet communication signal is transmitted by the Ethernet communication 105 to back up the SPI communication 106 in the event of a failure. It can be performed.

イーサネット通信105は、SPI通信106ほど通信周期が短くない場合があるが、1回のイーサネット通信105(たとえば1つのイーサネットパケット)は、1回のSPI通信(たとえば1つのSPIパケット)よりも大容量のデータを送信することが可能である。このため、複数回のSPI通信に係る信号をまとめてイーサネット通信で送信することができ、イーサネット通信の通信周期の長さを補うことができる。 The Ethernet communication 105 may not have a shorter communication cycle than the SPI communication 106, but one Ethernet communication 105 (for example, one Ethernet packet) has a larger capacity than one SPI communication (for example, one SPI packet). It is possible to send the data of. Therefore, the signals related to the SPI communication a plurality of times can be collectively transmitted by the Ethernet communication, and the length of the communication cycle of the Ethernet communication can be supplemented.

なお、SPI通信106とイーサネット通信105における通信データ容量や通信周期の関係は、上記のものに限られるものではない。 The relationship between the communication data capacity and the communication cycle in the SPI communication 106 and the Ethernet communication 105 is not limited to the above.

センサーユニット103は、たとえばレーダーであり、車両周辺の移動物体との距離を検知する。検知された距離に関する情報は、イーサネットスイッチ107経由で認識マイコン101に送信される。また、地図データなどのメディアデータも、センサーユニット103からイーサネットスイッチ107経由で認識マイコン101に送信される。認識マイコン101では、車両と移動物体との距離と、地図データとを総合的に解析し、信号の変換を行って制御マイコン102で処理可能な形式とする。変換済みのデータは、SPI通信106経由で認識マイコン101から制御マイコン102に送信される。 The sensor unit 103 is, for example, a radar, and detects a distance from a moving object around the vehicle. Information about the detected distance is transmitted to the recognition microcomputer 101 via the Ethernet switch 107. Media data such as map data is also transmitted from the sensor unit 103 to the recognition microcomputer 101 via the Ethernet switch 107. The recognition microcomputer 101 comprehensively analyzes the distance between the vehicle and the moving object and the map data, converts the signal, and makes it a format that can be processed by the control microcomputer 102. The converted data is transmitted from the recognition microcomputer 101 to the control microcomputer 102 via the SPI communication 106.

制御マイコン102は、認識マイコン101から送信されたデータを用いて、制御機構ユニット104に対する指令信号を生成する。この指令信号の演算の方法については、後述する。制御機構ユニット104は、指令信号の内容に応じて、車両を制御する。 The control microcomputer 102 uses the data transmitted from the recognition microcomputer 101 to generate a command signal for the control mechanism unit 104. The method of calculating this command signal will be described later. The control mechanism unit 104 controls the vehicle according to the content of the command signal.

図2は、実施例1に係る認識マイコン101(第1マイコン)の詳細構成を示している。認識マイコン101は、データ受信機構201(データ受信部)と、データ処理機構202と、マイコン間通信信号抽出機構203と、送信経路ビジー判定機構204と、SPI通信送信部205(第1SPI通信部)と、連続データ作成機構206(第2運転情報生成部)と、イーサネット通信送信部207(第1イーサネット通信部)とを備える。 FIG. 2 shows a detailed configuration of the recognition microcomputer 101 (first microcomputer) according to the first embodiment. The recognition microcomputer 101 includes a data reception mechanism 201 (data reception unit), a data processing mechanism 202, an inter-microcomputer communication signal extraction mechanism 203, a transmission path busy determination mechanism 204, and an SPI communication transmission unit 205 (first SPI communication unit). A continuous data creation mechanism 206 (second operation information generation unit) and an Ethernet communication transmission unit 207 (first Ethernet communication unit) are provided.

データ受信機構201は、第1運転情報を受信する。第1運転情報は、センサーユニット103によって検出された車両の走行状況に関する情報である。なお、「走行状況」とは、車両の挙動または車両周辺の状態を表す情報を含み、とくに車両が走行している場合の状況に限らない。 The data receiving mechanism 201 receives the first operation information. The first driving information is information regarding the traveling state of the vehicle detected by the sensor unit 103. The "driving situation" includes information indicating the behavior of the vehicle or the state around the vehicle, and is not limited to the situation when the vehicle is running.

走行状況に関する情報の例を図2に示している。たとえば、センサーが車両の周囲を撮影するカメラである場合には、走行状況に関する情報は、カメラによって撮影された画像情報を含む。また、センサーが車両の周囲の物体を検知するレーダーである場合には、走行状況に関する情報は、レーダーによって検知された物体の情報を含む。 FIG. 2 shows an example of information regarding the driving situation. For example, if the sensor is a camera that captures the surroundings of the vehicle, the travel information includes image information captured by the camera. Further, when the sensor is a radar that detects an object around the vehicle, the information on the traveling condition includes the information of the object detected by the radar.

また、走行状況に関する情報は、車両の進行方向における道路形状に関する情報(たとえば道路の白線に関する情報)、車両の周囲の移動物体に関する情報(たとえば車両周辺の障害物に関する情報)、等を含んでもよい。さらに、第1運転情報は、MACアドレス、サービスID、等の情報を含んでもよい。 Further, the information on the traveling situation may include information on the road shape in the traveling direction of the vehicle (for example, information on the white line of the road), information on moving objects around the vehicle (for example, information on obstacles around the vehicle), and the like. .. Further, the first operation information may include information such as a MAC address and a service ID.

次に、データ処理機構202は、第1運転情報の変換(たとえば分析および認識)を行う。例えば、センサーユニット103から受信した信号を分析し、カメラによって撮影された移動物体が車両(自車)に対してどのような速度で運動しているかを表す相対速度信号に変換する。 Next, the data processing mechanism 202 performs the conversion (for example, analysis and recognition) of the first operation information. For example, the signal received from the sensor unit 103 is analyzed and converted into a relative speed signal indicating at what speed the moving object photographed by the camera is moving with respect to the vehicle (own vehicle).

次に、マイコン間通信信号抽出機構203は、データ処理機構202によって生成された信号のうちから、制御マイコン102に送信すべき信号を抽出する。 Next, the inter-microcomputer communication signal extraction mechanism 203 extracts a signal to be transmitted to the control microcomputer 102 from the signals generated by the data processing mechanism 202.

送信経路ビジー判定機構204は、抽出された信号について経路ビジー判定を行う。経路ビジー判定は、たとえばSPI通信が経路ビジー状態であるか否かの判定である。経路ビジーとは、たとえば通信規格においてPath_Busyと表現される状態であり、また、たとえば、通信が遅延したり、送信不可能になったりする可能性がある状態である。たとえば、SPI通信において障害が発生した場合には、経路ビジー状態となる。 The transmission path busy determination mechanism 204 performs path busy determination on the extracted signal. The route busy determination is, for example, a determination of whether or not the SPI communication is in the route busy state. The route busy is, for example, a state expressed as Path_Busy in a communication standard, and is a state in which communication may be delayed or transmission may become impossible, for example. For example, if a failure occurs in SPI communication, the route becomes busy.

SPI通信送信部205は、送信経路ビジー判定機構204の判定結果に応じ、信号を制御マイコン102に送信する。たとえば、SPI通信が経路ビジー状態でない場合には、送信経路ビジー判定機構204はSPI通信送信部205に第1運転情報の信号を送信し、SPI通信送信部205はSPI通信を介して第1運転情報の信号を送信する。 The SPI communication transmission unit 205 transmits a signal to the control microcomputer 102 according to the determination result of the transmission path busy determination mechanism 204. For example, when the SPI communication is not in the path busy state, the transmission path busy determination mechanism 204 transmits the signal of the first operation information to the SPI communication transmission unit 205, and the SPI communication transmission unit 205 transmits the first operation via the SPI communication. Send a signal of information.

SPI通信が経路ビジー状態である場合(すなわちSPI通信送信部205が送信待機状態である場合)には、送信経路ビジー判定機構204はSPI通信送信部205に信号を送信せず、したがってSPI通信送信部205も第1運転情報の信号を送信しない。 When the SPI communication is in the path busy state (that is, when the SPI communication transmission unit 205 is in the transmission standby state), the transmission path busy determination mechanism 204 does not transmit a signal to the SPI communication transmission unit 205, and therefore SPI communication transmission is performed. Unit 205 also does not transmit the signal of the first operation information.

また、マイコン間通信信号抽出機構203によって抽出された信号は、SPI通信送信部205に送信される一方、連続データ作成機構206にも送信される。連続データ作成機構206は、第1運転情報に基づき、走行状況の時間変化に関する情報を含む第2運転情報を生成する(具体的な処理の例は後述する)。 Further, the signal extracted by the inter-microcomputer communication signal extraction mechanism 203 is transmitted to the SPI communication transmission unit 205, and is also transmitted to the continuous data creation mechanism 206. The continuous data creation mechanism 206 generates the second operation information including the information regarding the time change of the traveling situation based on the first operation information (an example of specific processing will be described later).

連続データ作成機構206で生成された第2運転情報は、イーサネット通信送信部207に送信される。イーサネット通信送信部207は、イーサネットスイッチ107を介して、第2運転情報を制御マイコン102に送信する。 The second operation information generated by the continuous data creation mechanism 206 is transmitted to the Ethernet communication transmission unit 207. The Ethernet communication transmission unit 207 transmits the second operation information to the control microcomputer 102 via the Ethernet switch 107.

なお、本実施例では、イーサネット通信送信部207は、SPI通信が経路ビジー状態であるか否かに関わらず第2運転情報を送信するが、SPI通信が経路ビジー状態である場合にのみ第2運転情報を送信するよう構成することも可能である。 In this embodiment, the Ethernet communication transmission unit 207 transmits the second operation information regardless of whether or not the SPI communication is in the route busy state, but the second operation information is transmitted only when the SPI communication is in the route busy state. It can also be configured to transmit driving information.

上記のように、SPI通信106において障害が発生した場合等には、SPI通信106に代えてイーサネット通信105を用いることができるので、制御機構ユニット104による車両の制御が継続できる。 As described above, when a failure occurs in the SPI communication 106, the Ethernet communication 105 can be used instead of the SPI communication 106, so that the control mechanism unit 104 can continue to control the vehicle.

図3は、SPIパケットフォーマット310とイーサネットパケットフォーマット320の例を示している。SPIパケットにおいて、データ311(この例では234バイト)は第1運転情報を表すことができ、イーサネットパケットにおいて、連続データ321(この例では1500バイト)は第2運転情報を表すことができる。 FIG. 3 shows an example of the SPI packet format 310 and the Ethernet packet format 320. In the SPI packet, the data 311 (234 bytes in this example) can represent the first operation information, and in the Ethernet packet, the continuous data 321 (1500 bytes in this example) can represent the second operation information.

連続データ作成機構206では、第1運転情報に基づいて、複数の時刻に係る第1運転情報を含む第2運転情報を作成する。連続データ321は、データ311と、データ311の過去値(すなわち、走行状況の過去値)と、データ311の未来予測値(すなわち、走行状況の未来予測値)とを含む。たとえば、図3においてデータ_#0はデータ311と同一すなわち現在値であり、データ_#-1およびデータ_#-2はデータ311の過去値であり、データ_#1~データ_#3はデータ311の未来予測値である。これらのデータは、それぞれがデータ311と同じ234バイトのサイズを有する。 The continuous data creation mechanism 206 creates the second operation information including the first operation information related to a plurality of times based on the first operation information. The continuous data 321 includes the data 311 and the past value of the data 311 (that is, the past value of the traveling condition) and the future predicted value of the data 311 (that is, the future predicted value of the traveling condition). For example, in FIG. 3, data _ # 0 is the same as data 311, that is, the current value, data _ # -1 and data _ # -2 are past values of data 311, and data _ # 1 to data _ # 3 are. It is a future predicted value of data 311. Each of these data has the same size of 234 bytes as the data 311.

このように、本実施例では、ある時刻(第1時刻。たとえば現在)に係る第2運転情報は、当該時刻(現在時刻)に係る走行状況に関する情報と、当該時刻より過去(過去時刻)に係る走行状況に関する情報と、当該時刻より未来(未来時刻)に係る走行状況に関する情報とを含む。ここで、上記の第1時刻は、たとえば第2運転情報のパケット自体に付与されるタイムスタンプによって表される。なお、変形例として、第2運転情報は、過去時刻に係る情報を含まないものであってもよい。 As described above, in this embodiment, the second operation information related to a certain time (first time, for example, the present) is the information about the traveling situation related to the time (current time) and the past (past time) from the time. It includes information on the driving situation related to the driving situation and information on the driving situation related to the future (future time) from the time concerned. Here, the above-mentioned first time is represented by, for example, a time stamp given to the packet itself of the second operation information. As a modification, the second operation information may not include information related to the past time.

上述のように、データ311はたとえば相対速度信号である。未来予測値を生成するための具体的な手法(関数およびその変数等)は、従来技術等に基づき、当業者が適宜設計可能である。たとえば統計計算、線形補間、等を用いることができる。 As mentioned above, the data 311 is, for example, a relative velocity signal. Specific methods (functions and their variables, etc.) for generating future predicted values can be appropriately designed by those skilled in the art based on the prior art and the like. For example, statistical calculation, linear interpolation, etc. can be used.

連続データ作成機構206は、第1運転情報のデータ311のサイズの情報を用いて、連続データ321の要素数を決める。図3の例では、SPIパケットのデータサイズが234バイトであり、イーサネットのパケットにおけるペイロード最大サイズが1500バイトである。連続データ作成機構206は、現在の相対速度信号すなわちデータ311と、その過去値および未来予測値とを含む連続データ321を作成する。連続データ321に含まれる各時刻のデータには、それぞれの時刻を表すタイムスタンプが付与される。 The continuous data creation mechanism 206 determines the number of elements of the continuous data 321 by using the information of the size of the data 311 of the first operation information. In the example of FIG. 3, the data size of the SPI packet is 234 bytes, and the maximum payload size of the Ethernet packet is 1500 bytes. The continuous data creation mechanism 206 creates continuous data 321 including the current relative velocity signal, that is, the data 311 and its past and future predicted values. The data at each time included in the continuous data 321 is given a time stamp representing each time.

連続データ321のそれぞれに付与されるタイムスタンプは、現在時刻(たとえばSPIパケットに付与されるタイムスタンプ)と、所定の周期(通信周期または測定周期等)とに基づいて算出することができる。周期はたとえば10msである。 The time stamp given to each of the continuous data 321 can be calculated based on the current time (for example, the time stamp given to the SPI packet) and a predetermined cycle (communication cycle, measurement cycle, etc.). The period is, for example, 10 ms.

このように、第2運転情報は、タイムスタンプによって表される複数の時刻に係る走行状況に関する情報を含む。 As described above, the second driving information includes information regarding the traveling situation at a plurality of times represented by the time stamp.

この構成によれば、イーサネット通信105で扱う連続データのそれぞれにタイムスタンプが付与されているので、SPI通信データとイーサネット通信データとの同期を図ることができる。即ち、制御マイコン102で必要としているタイミングのデータを、このタイムスタンプに基づきイーサネット通信105の連続信号のうちから選択することができる。 According to this configuration, since each of the continuous data handled by the Ethernet communication 105 is given a time stamp, it is possible to synchronize the SPI communication data with the Ethernet communication data. That is, the timing data required by the control microcomputer 102 can be selected from the continuous signals of the Ethernet communication 105 based on this time stamp.

さらに、イーサネット通信105は、比較的大容量のデータの通信に適しているため、連続データのようなデータサイズの大きい信号を適切に送信することができる。 Further, since the Ethernet communication 105 is suitable for communication of a relatively large amount of data, it is possible to appropriately transmit a signal having a large data size such as continuous data.

図4は、連続データの作成方法を表している。マイコン間通信信号抽出機構203は、まず、ある時刻(第1時刻、たとえば現在時刻)において受信したデータ401を、送信メモリ402において時刻t0に対応する位置に保存する。 FIG. 4 shows a method of creating continuous data. First, the inter-microcomputer communication signal extraction mechanism 203 stores the data 401 received at a certain time (first time, for example, the current time) in the transmission memory 402 at a position corresponding to the time t0.

また、送信メモリ402において1周期だけ過去の時刻t-1および2周期だけ過去の時刻t-2に対応する位置に、それぞれ前回値Data-1と前々回値Data-2を保存する。更に、1~3周期だけ未来の時刻t1~t3に対応する位置に、各時刻の未来予測値を保存する。図4に示すように、さらに未来の時刻t4およびt5の未来予測値を保存してもよい。未来予測値は、新たなデータ401を受信するたびに更新される。 Further, in the transmission memory 402, the previous value Data-1 and the previous value Data-2 are stored at positions corresponding to the past time t-1 for one cycle and the past time t-2 for two cycles, respectively. Further, the future predicted value of each time is stored at the position corresponding to the future time t1 to t3 for 1 to 3 cycles. As shown in FIG. 4, future predicted values at future times t4 and t5 may be further stored. The future prediction value is updated every time new data 401 is received.

この連続データ作成機構206で作成された連続データには、現在時刻t0のデータに加え、前回値、前々回値等の過去のデータも含まれるため、これらの連続データと、SPI通信データの過去値とを比較することにより、SPI通信データの信頼性を検証することができる(具体例は図7等に関連して後述する)。 Since the continuous data created by the continuous data creation mechanism 206 includes past data such as the previous value and the previous value in addition to the data at the current time t0, these continuous data and the past values of the SPI communication data are included. By comparing with, the reliability of SPI communication data can be verified (specific examples will be described later in relation to FIG. 7 and the like).

また、SPI通信106の障害により最新のデータが受信できない場合には、過去に受信した連続データに含まれる未来予測値を用いることにより、制御機構ユニット104の制御を継続することができる。 Further, when the latest data cannot be received due to the failure of the SPI communication 106, the control of the control mechanism unit 104 can be continued by using the future predicted value included in the continuous data received in the past.

SPI通信送信部205は、SPI通信106におけるマイコン間通信信号の送信周期に応じてデータ401を取得し、これをデータ311としてSPIパケットに含めて制御マイコン102に送信する。一方、イーサネット通信送信部207も、イーサネット通信105におけるマイコン間通信信号の送信周期に応じて、連続データを含むイーサネットパケットを制御マイコン102に送信する。 The SPI communication transmission unit 205 acquires data 401 according to the transmission cycle of the communication signal between microcomputers in SPI communication 106, includes this as data 311 in the SPI packet, and transmits it to the control microcomputer 102. On the other hand, the Ethernet communication transmission unit 207 also transmits an Ethernet packet including continuous data to the control microcomputer 102 according to the transmission cycle of the communication signal between microcomputers in the Ethernet communication 105.

上記の構成によれば、イーサネット通信105で送信される信号には未来予測値が含まれているので、SPI通信106の障害時にイーサネット通信105をバックアップ信号として使用することができる。すなわち、最新のデータを待つ間に、過去に受信した未来予測値を用いて制御機構ユニット104への指令信号を生成することができる。 According to the above configuration, since the signal transmitted by the Ethernet communication 105 includes a future predicted value, the Ethernet communication 105 can be used as a backup signal in the event of a failure of the SPI communication 106. That is, while waiting for the latest data, it is possible to generate a command signal to the control mechanism unit 104 using the future predicted value received in the past.

図5は、実施例1に係る制御マイコン102(第2マイコン)の詳細構成を示している。制御マイコン102は、SPI通信受信部521(第2SPI通信部)と、SPI通信異常検知機構522と、イーサネット通信受信部511(第2イーサネット通信部)と、イーサネット通信異常検知機構512と、RAM1 523と、RAM2 513と、信号選択機構530(情報比較部)と、RAM12 531と、指令信号変換機構532(指令信号生成部)と、指令送信機構533とを備える。 FIG. 5 shows a detailed configuration of the control microcomputer 102 (second microcomputer) according to the first embodiment. The control microcomputer 102 includes an SPI communication receiving unit 521 (second SPI communication unit), an SPI communication abnormality detecting mechanism 522, an Ethernet communication receiving unit 511 (second Ethernet communication unit), an Ethernet communication abnormality detecting mechanism 512, and a RAM 1 523. , RAM 2 513, signal selection mechanism 530 (information comparison unit), RAM 12 531, command signal conversion mechanism 532 (command signal generation unit), and command transmission mechanism 533.

SPI通信受信部521は、SPI通信106を介して、認識マイコン101のSPI通信送信部205からSPIパケット(第1運転情報を含む)を受信する。同様に、イーサネット通信受信部511は、認識マイコン101のイーサネット通信送信部207からイーサネットパケット(第2運転情報を含む)を受信する。 The SPI communication receiving unit 521 receives an SPI packet (including the first operation information) from the SPI communication transmitting unit 205 of the recognition microcomputer 101 via the SPI communication 106. Similarly, the Ethernet communication receiving unit 511 receives an Ethernet packet (including the second operation information) from the Ethernet communication transmitting unit 207 of the recognition microcomputer 101.

SPI通信異常検知機構522は、SPI通信受信部521がSPI通信送信部205から第1運転情報を正常に受信したか否かを判定する(判定の具体例は図6に関連して後述する)。正常に受信した場合には、第1運転情報をRAM1 523に保存する。同様に、イーサネット通信異常検知機構512は、イーサネット通信受信部511がイーサネット通信送信部207から第2運転情報を正常に受信したか否かを判定する。正常に受信した場合には、第2運転情報をRAM2 513に保存する。 The SPI communication abnormality detection mechanism 522 determines whether or not the SPI communication receiving unit 521 has normally received the first operation information from the SPI communication transmitting unit 205 (specific examples of the determination will be described later in relation to FIG. 6). .. When it is received normally, the first operation information is stored in RAM 1 523. Similarly, the Ethernet communication abnormality detection mechanism 512 determines whether or not the Ethernet communication receiving unit 511 has normally received the second operation information from the Ethernet communication transmitting unit 207. When it is received normally, the second operation information is stored in the RAM 2 513.

信号選択機構530は、最終的に制御機構ユニット104に送信するデータを選択するため、RAM1 523およびRAM2 513に保存されたデータに基づき、対象となるデータを選択する。データは、たとえば図3の例では、データ311と、データ_#-2~データ_#3とのうちいずれかが選択される。具体的な選択方法については、図7に関連して後述する。 In order to select the data to be finally transmitted to the control mechanism unit 104, the signal selection mechanism 530 selects the target data based on the data stored in the RAM 1 523 and the RAM 2 513. As the data, for example, in the example of FIG. 3, one of data 311 and data _ # -2 to data _ # 3 is selected. The specific selection method will be described later in relation to FIG. 7.

信号選択機構530は、選択したデータを送信対象としてRAM12 531に保存する。指令信号変換機構532は、RAM12に保存されたデータを、制御機構ユニット104が認識できる形式の指令信号に変換する。すなわち、第1運転情報および第2運転情報の少なくとも一方に基づき、車両に搭載されたアクチュエータを駆動または制御するための指令信号を生成する。指令送信機構533は、この指令信号を制御機構ユニット104に通知する。 The signal selection mechanism 530 stores the selected data in the RAM 12 531 as a transmission target. The command signal conversion mechanism 532 converts the data stored in the RAM 12 into a command signal in a format that can be recognized by the control mechanism unit 104. That is, a command signal for driving or controlling an actuator mounted on the vehicle is generated based on at least one of the first driving information and the second driving information. The command transmission mechanism 533 notifies the control mechanism unit 104 of this command signal.

指令信号の例を図5に示している。たとえば、操舵量に関する信号を含んでもよいし、制動量に関する信号を含んでもよい。 An example of the command signal is shown in FIG. For example, it may include a signal relating to the steering amount or may include a signal relating to the braking amount.

上記の構成により、信号選択機構530は、SPI通信受信部521で受信したデータとイーサネット通信受信部511で受信したデータを比較して、データの検証を行うことができる。信号選択機構530は、検証の結果を記憶手段に記録してもよい。このような結果を記録しておくと、後に信頼性の検証を行うことができる。 With the above configuration, the signal selection mechanism 530 can compare the data received by the SPI communication receiving unit 521 with the data received by the Ethernet communication receiving unit 511 to verify the data. The signal selection mechanism 530 may record the result of the verification in the storage means. By recording such results, reliability can be verified later.

図6は、SPI通信異常検知機構522とイーサネット通信異常検知機構512が判定する通信異常の種類を示す。
No.1の通信障害601は、通信が完全に不可能となる状態である。
No.2の受信欠落602は、あるタイミングまたは時間のデータが受信できない状態である。
No.3のチェックサム異常603は、受信したパケットのデータと、当該パケットのチェックサム値とで不整合が発生した状態である。
No.4のメッセージカウンター異常604は、パケットがメッセージ番号の順に受信されていない、または、所定期間内に受信した複数のパケットのメッセージ番号が連番になっていない、等の状態である。
FIG. 6 shows the types of communication abnormalities determined by the SPI communication abnormality detection mechanism 522 and the Ethernet communication abnormality detection mechanism 512.
No. Communication failure 601 of 1 is a state in which communication is completely impossible.
No. The reception omission 602 of 2 is a state in which data at a certain timing or time cannot be received.
No. The checksum abnormality 603 of 3 is a state in which an inconsistency has occurred between the received packet data and the checksum value of the packet.
No. The message counter error 604 of 4 is a state in which packets are not received in the order of message numbers, or the message numbers of a plurality of packets received within a predetermined period are not serial numbers.

これらの状態のいずれかが発生した場合には、SPI通信異常検知機構522およびイーサネット通信異常検知機構512は情報を正常に受信していないと判定する。そうでない場合には、SPI通信異常検知機構522およびイーサネット通信異常検知機構512は情報を正常に受信していると判定する。 When any of these states occurs, the SPI communication abnormality detection mechanism 522 and the Ethernet communication abnormality detection mechanism 512 determine that the information is not normally received. If not, the SPI communication abnormality detection mechanism 522 and the Ethernet communication abnormality detection mechanism 512 determine that the information is normally received.

図7は、制御マイコン102が認識マイコン101からデータを受信した後に、RAM12の内容が更新されるまでのシーケンスを示すフローチャートである。図7のシーケンスが開始されると、先ず、ステップ700においてRAMの初期化を行ってもよい。 FIG. 7 is a flowchart showing a sequence from when the control microcomputer 102 receives data from the recognition microcomputer 101 until the contents of the RAM 12 are updated. When the sequence of FIG. 7 is started, the RAM may be initialized in step 700 first.

次に、ステップ701において、SPI通信異常検知機構522とイーサネット通信異常検知機構512がそれぞれ通信異常の判定を行う。判定の結果はたとえばフラグに記録される。SPI通信異常フラグは、SPI通信異常検知機構522が通信異常を検知した場合には偽に、そうでない場合には真にセットされる。イーサネット通信異常フラグは、イーサネット通信異常検知機構512が通信異常を検知した場合には偽に、そうでない場合には真にセットされる。 Next, in step 701, the SPI communication abnormality detection mechanism 522 and the Ethernet communication abnormality detection mechanism 512 each determine a communication abnormality. The result of the determination is recorded in a flag, for example. The SPI communication abnormality flag is set falsely when the SPI communication abnormality detection mechanism 522 detects a communication abnormality, and truly set otherwise. The Ethernet communication abnormality flag is set falsely when the Ethernet communication abnormality detection mechanism 512 detects a communication abnormality, and truly set otherwise.

ステップ702において、SPI通信異常フラグのチェックを行う。上述のように、SPI通信異常フラグは、図6に示した4つの種類の異常のいずれかが検知されたとき、偽にセットされる。 In step 702, the SPI communication abnormality flag is checked. As described above, the SPI communication abnormality flag is set to false when any of the four types of anomalies shown in FIG. 6 is detected.

ステップ702の判定結果がNoの場合(すなわちSPI通信が正常な場合)、処理はステップ703に移行する。ステップ703では、SPI通信106で受信したRAM1のデータをRAM12に保存する。保存されたデータは、後に制御機構ユニット104に送信される。 If the determination result in step 702 is No (that is, when SPI communication is normal), the process proceeds to step 703. In step 703, the data of RAM 1 received by SPI communication 106 is stored in RAM 12. The stored data is later transmitted to the control mechanism unit 104.

ステップ702の判定結果がYesの場合(すなわちSPI通信に異常が発生した場合)、処理はステップ704に移行する。ステップ704において、イーサネット通信異常フラグのチェックを行う。イーサネット通信異常フラグは、上述のように、図6に示した4つの種類の異常のいずれかが検知されたとき、偽にセットされる。 If the determination result in step 702 is Yes (that is, when an abnormality occurs in SPI communication), the process proceeds to step 704. In step 704, the Ethernet communication error flag is checked. As described above, the Ethernet communication abnormality flag is set to false when any of the four types of anomalies shown in FIG. 6 is detected.

ステップ704の判定結果がNoの場合(すなわちイーサネット通信が正常な場合)、処理はステップ705に移行する。ステップ705において、イーサネット通信105で受信したRAM2のデータ(図3のデータ_#0または図4のData0)をRAM12に保存する。保存されたデータは、後に制御機構ユニット104に送信される。 If the determination result in step 704 is No (that is, when Ethernet communication is normal), the process proceeds to step 705. In step 705, the data of the RAM 2 (data_# 0 in FIG. 3 or Data0 in FIG. 4) received by the Ethernet communication 105 is stored in the RAM 12. The stored data is later transmitted to the control mechanism unit 104.

このように、指令信号変換機構532は、
‐SPI通信受信部521がSPI通信送信部205から第1運転情報を正常に受信した場合に、第1運転情報に基づき指令信号を生成し、
‐SPI通信受信部521がSPI通信送信部205から第1運転情報を正常に受信しなかった場合に、第2運転情報に基づき指令信号を生成する。
In this way, the command signal conversion mechanism 532 is
-When the SPI communication receiving unit 521 normally receives the first operation information from the SPI communication transmitting unit 205, a command signal is generated based on the first operation information.
-When the SPI communication receiving unit 521 does not normally receive the first operation information from the SPI communication transmitting unit 205, a command signal is generated based on the second operation information.

このように、SPI通信106に障害が発生した場合であっても、イーサネット通信105によってデータ通信が可能なので、データのリアルタイム性がより確実に維持される。 As described above, even if a failure occurs in the SPI communication 106, the data communication is possible by the Ethernet communication 105, so that the real-time property of the data is more reliably maintained.

ステップ704の判定結果がYesの場合(すなわちイーサネット通信に異常が発生した場合)、処理はステップ706に移行する。ステップ706において、RAM2に保存されている以前のイーサネットパケットに含まれていた未来予測値(図3のデータ_#1または図4のData1)をRAM12に保存する。保存されたデータは、後に制御機構ユニット104に送信される。 If the determination result in step 704 is Yes (that is, when an abnormality occurs in Ethernet communication), the process proceeds to step 706. In step 706, the future predicted value (data_# 1 in FIG. 3 or Data1 in FIG. 4) contained in the previous Ethernet packet stored in RAM 2 is stored in RAM 12. The stored data is later transmitted to the control mechanism unit 104.

このように、すべての通信経路に障害が発生した場合であっても、過去のパケットに含まれていた未来予測値を用いて後の処理を継続することができるので、データのリアルタイム性がより確実に維持される。 In this way, even if a failure occurs in all communication paths, the future processing contained in the past packets can be used to continue the subsequent processing, so that the real-time property of the data is improved. It will be maintained reliably.

なお、新たなSPIパケットを受信した場合等において、SPI通信異常フラグが変更され、ステップ702の判定結果が偽から真に変わると、当該新たなSPIパケットについてはステップ703の処理が実行されることになる。 When the SPI communication error flag is changed and the determination result in step 702 changes from false to true when a new SPI packet is received, the process of step 703 is executed for the new SPI packet. become.

すなわち、指令信号変換機構532は、SPI通信受信部521がSPI通信送信部205から第1運転情報を正常に受信しなかった後に、SPI通信受信部521がSPI通信送信部205から第1運転情報を正常に受信した場合に、当該正常に受信した第1運転情報に基づき指令信号を生成する。 That is, in the command signal conversion mechanism 532, after the SPI communication receiving unit 521 does not normally receive the first operation information from the SPI communication transmitting unit 205, the SPI communication receiving unit 521 receives the first operation information from the SPI communication transmitting unit 205. Is normally received, a command signal is generated based on the normally received first operation information.

上記の制御により、SPI通信106の信号の受信が再開した場合には、イーサネット通信105の未来予測値より精度の高いSPIパケットのデータを用いることができるので、データのリアルタイム性がより確実に維持される。 With the above control, when the reception of the signal of the SPI communication 106 is resumed, the data of the SPI packet with higher accuracy than the future predicted value of the Ethernet communication 105 can be used, so that the real-time property of the data is maintained more reliably. Will be done.

イーサネット通信105のデータを使用する場合は、イーサネットパケットに含まれるタイムスタンプの値を参照し、制御マイコン102で使用する該当データを抽出する。たとえば、イーサネットパケットに含まれるデータのうちから、現在時刻またはSPIパケットが受信されるはずであった時刻に最もよく一致するタイムスタンプを有するデータを選択する。 When using the data of the Ethernet communication 105, the value of the time stamp included in the Ethernet packet is referred to, and the corresponding data used by the control microcomputer 102 is extracted. For example, from the data contained in the Ethernet packet, select the data that has the time stamp that best matches the current time or the time when the SPI packet was supposed to be received.

ステップ703、705または706の後、ステップ707において、信号選択機構530は、データの整合性を検証し、結果を出力する。
図8を用いて、検証される情報と、検証の結果として記録される情報の例を以下に挙げる。
ある時刻t11(第1時刻)に係るイーサネットパケットの第2運転情報は、当該時刻t11に係る走行状況に関する情報B11を含む。また、当該時刻t11に係るSPIパケットの第1運転情報は、当該時刻t11に係る走行状況に関する情報A11を含む。信号選択機構530は、情報B11と情報A11とを比較し、その比較結果を出力する。
After step 703, 705 or 706, in step 707, the signal selection mechanism 530 verifies the integrity of the data and outputs the result.
Using FIG. 8, examples of the information to be verified and the information recorded as a result of the verification are given below.
The second operation information of the Ethernet packet related to a certain time t11 (first time) includes the information B11 regarding the traveling condition related to the time t11. Further, the first operation information of the SPI packet related to the time t11 includes the information A11 regarding the traveling situation related to the time t11. The signal selection mechanism 530 compares the information B11 and the information A11, and outputs the comparison result.

時刻t11に係るイーサネットパケットの第2運転情報は、当該時刻t11より過去の時刻t10に係る走行状況に関する情報B10(過去値)を含む。また、時刻t10に係るSPIパケットの第1運転情報は、当該時刻t10に係る走行状況に関する情報A10を含む。信号選択機構530は、情報B10と情報A10とを比較し、その比較結果を出力する。 The second operation information of the Ethernet packet related to the time t11 includes the information B10 (past value) regarding the traveling situation related to the time t10 past the time t11. Further, the first operation information of the SPI packet related to the time t10 includes the information A10 regarding the traveling situation related to the time t10. The signal selection mechanism 530 compares the information B10 and the information A10, and outputs the comparison result.

時刻t11に係るイーサネットパケットの第2運転情報は、当該時刻t11より未来の未来時刻t12に係る走行状況に関する情報B12(未来予測値)を含む。また、時刻t12に係るSPIパケットの第1運転情報は、当該時刻t12に係る走行状況に関する情報A12を含む。信号選択機構530は、情報B12と情報A12とを比較し、その比較結果を出力する。 The second operation information of the Ethernet packet related to the time t11 includes information B12 (future predicted value) regarding the traveling situation related to the future future time t12 from the time t11. Further, the first operation information of the SPI packet related to the time t12 includes the information A12 regarding the traveling situation related to the time t12. The signal selection mechanism 530 compares the information B12 and the information A12, and outputs the comparison result.

比較結果の出力先は、たとえば制御マイコン102の記憶手段に格納されるエラーログファイルであるが、通信ネットワークまたは出力装置であってもよい。また、出力形式は任意に設計可能である。たとえば比較される情報が一致した場合には何も出力せず、一致しなかった場合には、比較されたパケットそれぞれについてパケット番号および情報の内容を出力してもよい。 The output destination of the comparison result is, for example, an error log file stored in the storage means of the control microcomputer 102, but may be a communication network or an output device. The output format can be designed arbitrarily. For example, if the information to be compared matches, nothing is output, and if they do not match, the packet number and the content of the information may be output for each of the compared packets.

図9は、RAM2 513のデータ構成を示している。RAM2 513の記憶領域はアドレス901によって区画され、タイムスタンプ情報領域902およびデータ格納領域903を含む。イーサネット通信105で受信したイーサネットパケットに含まれる各データについて、そのデータとそのデータのタイムスタンプ情報とを関連付けてアドレス領域に保存する。 FIG. 9 shows the data structure of the RAM 2 513. The storage area of the RAM 2 513 is partitioned by the address 901 and includes a time stamp information area 902 and a data storage area 903. For each data included in the Ethernet packet received by the Ethernet communication 105, the data and the time stamp information of the data are associated and stored in the address area.

本実施例では、認識マイコン101と制御マイコン102とがSPI通信106およびイーサネット通信105によりデータの通信を行うようになっているため、通信の冗長性が確保される。例えば、通常は、通信周期の短い(通信頻度の高い)SPI通信の第1運転情報を利用し、SPI通信に障害が発生した場合には、イーサネット通信の第2運転情報を利用することで、SPI通信の障害時におけるバックアップを行うことができる。 In this embodiment, since the recognition microcomputer 101 and the control microcomputer 102 communicate data by SPI communication 106 and Ethernet communication 105, communication redundancy is ensured. For example, normally, the first operation information of SPI communication having a short communication cycle (high communication frequency) is used, and when a failure occurs in SPI communication, the second operation information of Ethernet communication is used. Backup can be performed in the event of a SPI communication failure.

イーサネット通信は、SPI通信より通信周期が長い(通信頻度が低い)場合があるが、1つのパケットでSPI通信よりも大量のデータを送信することが可能であるため、走行状況(たとえば第1運転情報)の時間変化に関する複数のデータ単位を第2運転情報に含めて、まとめて送信することができる。これによって通信周期の長さを補うことができる。 Ethernet communication may have a longer communication cycle (communication frequency is lower) than SPI communication, but since it is possible to transmit a larger amount of data than SPI communication in one packet, driving conditions (for example, first operation). A plurality of data units related to the time change of information) can be included in the second operation information and transmitted collectively. This makes it possible to supplement the length of the communication cycle.

なお、SPI通信とイーサネット通信における通信データ容量や通信周期の関係は、上記のものに限られるものではない。 The relationship between the communication data capacity and the communication cycle in SPI communication and Ethernet communication is not limited to the above.

本実施例では、第2運転情報は、走行状況の未来予測値に関する情報を含む。 In this embodiment, the second driving information includes information regarding the future predicted value of the driving situation.

よって、SPI通信の障害時にイーサネット通信をバックアップ信号として使用することができる。とくに、イーサネット通信で送信される第2運転情報には、未来予測値が含まれているため、次の通信周期の第2運転情報を待つ間に、この未来予測値を用いて指令信号を生成することができる。 Therefore, Ethernet communication can be used as a backup signal when SPI communication fails. In particular, since the second operation information transmitted by Ethernet communication includes the future predicted value, a command signal is generated using this future predicted value while waiting for the second operation information in the next communication cycle. can do.

本実施例では、指令信号生成部は、
‐第2SPI通信部が第1SPI通信部から第1運転情報を正常に受信した場合に、第1運転情報に基づき指令信号を生成し、
‐第2SPI通信部が第1SPI通信部から第1運転情報を正常に受信しなかった場合に、第2運転情報に基づき指令信号を生成する。
In this embodiment, the command signal generation unit is
-When the 2nd SPI communication unit normally receives the 1st operation information from the 1st SPI communication unit, a command signal is generated based on the 1st operation information.
-When the second SPI communication unit does not normally receive the first operation information from the first SPI communication unit, a command signal is generated based on the second operation information.

よって、SPI通信の障害時においても、イーサネット通信を用いて指令信号の生成を継続することができる。 Therefore, even when the SPI communication fails, the generation of the command signal can be continued using the Ethernet communication.

本実施例では、第2運転情報は、走行状況の過去値に関する情報を含む。 In this embodiment, the second driving information includes information regarding the past value of the driving situation.

よって、第2運転情報が、第1運転情報よりも過去の値である過去値を含んでいるため、この過去値と第1運転情報との比較により、各情報の信頼性を検証することができる。また、線形補間等を用いて第1運転情報の未来予測値を生成することができる。 Therefore, since the second operation information includes a past value that is a past value than the first operation information, it is possible to verify the reliability of each information by comparing this past value with the first operation information. can. Further, the future predicted value of the first operation information can be generated by using linear interpolation or the like.

本実施例では、第2マイコンはさらに情報比較部を備え、
第1時刻に係る第2運転情報は、第1時刻より過去の過去時刻に係る走行状況に関する情報を含み、
情報比較部は、
‐過去時刻に係る第1運転情報に含まれる、過去時刻に係る走行状況に関する情報と、
‐第1時刻に係る第2運転情報に含まれる、過去時刻に係る走行状況に関する情報と、
の比較結果を出力する。
In this embodiment, the second microcomputer further includes an information comparison unit.
The second operation information relating to the first time includes information regarding the driving situation related to the past time past the first time.
The information comparison department
-Information on the driving situation related to the past time and information on the driving situation related to the past time included in the first driving information related to the past time.
-Information on the driving situation related to the past time included in the second driving information related to the first time, and
The comparison result of is output.

よって、複数の制御周期で受信した複数単位の第1運転情報と、複数の過去値を含む第2運転情報とを比較し、各情報の信頼性を検証することができる。このため、同一種類の信号同士を比較する場合に比べ、高い信頼性検証判断を行うことができる。 Therefore, it is possible to compare the first operation information of a plurality of units received in a plurality of control cycles with the second operation information including a plurality of past values, and verify the reliability of each information. Therefore, a higher reliability verification judgment can be made as compared with the case where signals of the same type are compared with each other.

本実施例では、指令信号生成部は、
‐第2SPI通信部が第1SPI通信部から第1運転情報を正常に受信した場合に、第1運転情報に基づき指令信号を生成し、
‐第2SPI通信部が第1SPI通信部から第1運転情報を正常に受信しなかった場合に、第2運転情報に基づき指令信号を生成する。
In this embodiment, the command signal generation unit is
-When the 2nd SPI communication unit normally receives the 1st operation information from the 1st SPI communication unit, a command signal is generated based on the 1st operation information.
-When the second SPI communication unit does not normally receive the first operation information from the first SPI communication unit, a command signal is generated based on the second operation information.

よって、SPI通信の障害時においても、イーサネット通信を用いて指令信号の生成を継続することができる。 Therefore, even when the SPI communication fails, the generation of the command signal can be continued using the Ethernet communication.

本実施例では、指令信号生成部は、第2SPI通信部が第1SPI通信部から第1運転情報を正常に受信しなかった後に、第2SPI通信部が第1SPI通信部から第1運転情報を正常に受信した場合に、当該正常に受信した第1運転情報に基づき指令信号を生成する。 In this embodiment, in the command signal generation unit, after the second SPI communication unit does not normally receive the first operation information from the first SPI communication unit, the second SPI communication unit normally receives the first operation information from the first SPI communication unit. When it is received, a command signal is generated based on the normally received first operation information.

よって、第1運転情報の受信が再開した場合には、第2運転情報の未来予測値より精度の高い第1運転情報を用いて指令信号を生成することにより、より適切なアクチュエータ制御を行うことができる。 Therefore, when the reception of the first operation information is resumed, more appropriate actuator control is performed by generating a command signal using the first operation information with higher accuracy than the future predicted value of the second operation information. Can be done.

本実施例では、第2マイコンはさらに情報比較部を備え、
第1時刻に係る第2運転情報は、第1時刻より過去の過去時刻に係る走行状況に関する情報、または、第1時刻より未来の未来時刻に係る走行状況に関する情報を含み、
情報比較部は、
‐過去時刻に係る第1運転情報に含まれる、過去時刻に係る走行状況に関する情報と、
‐第1時刻に係る第2運転情報に含まれる、過去時刻に係る走行状況に関する情報と、
の比較結果を出力するか、または、
‐未来時刻に係る第1運転情報に含まれる、未来時刻に係る走行状況に関する情報と、
‐第1時刻に係る第2運転情報に含まれる、未来時刻に係る走行状況に関する情報と、
の比較結果を出力する。
In this embodiment, the second microcomputer further includes an information comparison unit.
The second driving information relating to the first time includes information relating to the driving situation relating to the past time past the first time, or information relating to the driving situation relating to the future time future from the first time.
The information comparison department
-Information on the driving situation related to the past time and information on the driving situation related to the past time included in the first driving information related to the past time.
-Information on the driving situation related to the past time included in the second driving information related to the first time, and
Output the comparison result of
-Information on the driving situation related to the future time and information on the driving situation related to the future time included in the first driving information related to the future time.
-Information on the driving situation related to the future time included in the second driving information related to the first time, and
The comparison result of is output.

よって、複数の制御周期で受信した複数単位の第1運転情報と、複数の過去値を含む第2運転情報とを比較し、第1運転情報の信頼性を検証することができる。このため、同一種類の信号同士を比較する場合に比べ、高い信頼性検証判断を行うことができる。 Therefore, the reliability of the first operation information can be verified by comparing the first operation information of a plurality of units received in a plurality of control cycles with the second operation information including a plurality of past values. Therefore, a higher reliability verification judgment can be made as compared with the case where signals of the same type are compared with each other.

本実施例では、第2運転情報は、タイムスタンプによって表される複数の時刻に係る走行状況に関する情報を含む。 In the present embodiment, the second operation information includes information on the traveling situation at a plurality of times represented by the time stamp.

よって、第1運転情報と第2運転情報との間のデータの同期(対応付け)が可能となる。たとえば、第2運転情報を第1運転情報の代替情報として用いる場合に、第1運転情報と第2運転情報との同期を図ることができる。 Therefore, data can be synchronized (corresponded) between the first operation information and the second operation information. For example, when the second operation information is used as alternative information for the first operation information, the first operation information and the second operation information can be synchronized.

本実施例では、
センサーは、車両の周囲を撮影するカメラまたは車両の周囲の物体を検知するレーダーであり、
第1運転情報は、カメラによって撮影された画像情報またはレーダーによって検知された物体の情報を含む。
In this example,
A sensor is a camera that captures the surroundings of a vehicle or a radar that detects objects around the vehicle.
The first driving information includes image information taken by a camera or information on an object detected by a radar.

イーサネット通信は、比較的大容量のデータの通信に適しているため、例えば画像情報のようなデータ量の大きい信号を適切に送受信することができる。 Since Ethernet communication is suitable for communication of a relatively large amount of data, it is possible to appropriately transmit and receive a signal having a large amount of data such as image information.

本実施例では、第1運転情報は、車両の進行方向における道路形状に関する情報を含む。 In this embodiment, the first driving information includes information regarding the road shape in the traveling direction of the vehicle.

よって、例えば、アクチュエータが操舵用ステアリング装置である場合、指令信号生成部は、道路形状の情報に基づき、操舵量の演算を行うことができる。 Therefore, for example, when the actuator is a steering steering device for steering, the command signal generation unit can calculate the steering amount based on the information of the road shape.

本実施例では、第1運転情報は、車両の周囲の移動物体に関する情報を含む。 In this embodiment, the first driving information includes information about moving objects around the vehicle.

よって、例えば、アクチュエータが操舵用ステアリング装置である場合、指令信号生成部は、移動物体との接触を回避するような指令信号を生成することができる。また、アクチュエータが制動用ブレーキ装置である場合、指令信号生成部は、移動物体との衝突を回避するようにブレーキをかけることができる。 Therefore, for example, when the actuator is a steering steering device for steering, the command signal generation unit can generate a command signal that avoids contact with a moving object. Further, when the actuator is a braking brake device, the command signal generation unit can apply a brake so as to avoid a collision with a moving object.

本実施例では、指令信号は、操舵量に関する信号を含む。 In this embodiment, the command signal includes a signal relating to the steering amount.

よって、アクチュエータとしての操舵用ステアリング装置に対し、操舵指令信号を出力することで、車両の操舵制御を行うことができる。 Therefore, it is possible to control the steering of the vehicle by outputting a steering command signal to the steering steering device for steering as an actuator.

本実施例では、第2運転情報は、車両の進行方向における道路形状の未来予測値を含む。 In this embodiment, the second driving information includes a future predicted value of the road shape in the traveling direction of the vehicle.

よって、SPI通信に障害が発生した場合においても、イーサネット通信によって道路形状に関する情報を取得することができる。また、第2運転情報には、道路形状に関する情報の未来予測値が含まれているため、イーサネット通信の次の制御周期の信号を受信するまでの間、この未来予測値を用いて継続して指令信号を生成することができる。 Therefore, even when a failure occurs in SPI communication, information on the road shape can be acquired by Ethernet communication. Further, since the second driving information includes the future predicted value of the information regarding the road shape, the future predicted value is continuously used until the signal of the next control cycle of the Ethernet communication is received. A command signal can be generated.

本実施例では、第2運転情報は、車両の周囲の移動物体に関する情報の未来予測値を含む。 In this embodiment, the second driving information includes a future predicted value of information about a moving object around the vehicle.

よって、SPI通信に障害が発生した場合においても、イーサネット通信によって移動物体に関する情報を取得することができる。また、第2運転情報には、移動物体に関する情報の未来予測値が含まれているため、イーサネット通信の次の制御周期の信号を受信するまでの間、この未来予測値を用いて継続して指令信号を生成することができる。 Therefore, even if a failure occurs in SPI communication, information about a moving object can be acquired by Ethernet communication. Further, since the second operation information includes the future predicted value of the information about the moving object, the future predicted value is continuously used until the signal of the next control cycle of the Ethernet communication is received. A command signal can be generated.

本実施例では、指令信号は、制動量に関する情報を含む。 In this embodiment, the command signal includes information regarding the braking amount.

よって、アクチュエータとしての制動用ブレーキ装置に対し、制動量指令信号を出力することで、車両の制動制御を行うことができる。 Therefore, the braking control of the vehicle can be performed by outputting the braking amount command signal to the braking braking device as the actuator.

本実施例では、第2運転情報は、車両の進行方向における道路形状の未来予測値を含む。 In this embodiment, the second driving information includes a future predicted value of the road shape in the traveling direction of the vehicle.

よって、SPI通信に障害が発生した場合においても、イーサネット通信によって道路形状に関する情報を取得することができる。また、第2運転情報には、道路形状に関する情報の未来予測値が含まれているため、イーサネット通信の次の制御周期の信号を受信するまでの間、この未来予測値を用いて継続して指令信号を生成することができる。 Therefore, even when a failure occurs in SPI communication, information on the road shape can be acquired by Ethernet communication. Further, since the second driving information includes the future predicted value of the information regarding the road shape, the future predicted value is continuously used until the signal of the next control cycle of the Ethernet communication is received. A command signal can be generated.

本実施例では、第2運転情報は、車両の周囲の移動物体に関する情報の未来予測値を含む。 In this embodiment, the second driving information includes a future predicted value of information about a moving object around the vehicle.

よって、SPI通信に障害が発生した場合においても、イーサネット通信によって移動物体に関する情報を取得することができる。また、第2運転情報には、移動物体に関する情報の未来予測値が含まれているため、イーサネット通信の次の制御周期の信号を受信するまでの間、この未来予測値を用いて継続して指令信号を生成することができる。 Therefore, even if a failure occurs in SPI communication, information about a moving object can be acquired by Ethernet communication. Further, since the second operation information includes the future predicted value of the information about the moving object, the future predicted value is continuously used until the signal of the next control cycle of the Ethernet communication is received. A command signal can be generated.

本実施例では、第1SPI通信部が送信待機状態である場合に、第1イーサネット通信部は、イーサネット通信を介して第2イーサネット通信部に第2運転情報を送信する。 In this embodiment, when the first SPI communication unit is in the transmission standby state, the first Ethernet communication unit transmits the second operation information to the second Ethernet communication unit via Ethernet communication.

よって、SPI通信が経路ビジー状態であっても、イーサネット通信によって第2運転情報を取得することができる。 Therefore, even if the SPI communication is in the busy route state, the second operation information can be acquired by the Ethernet communication.

上述の実施例1では、第2運転情報は、走行状況の時間変化に関する情報として、走行状況の現在値、過去値および未来予測値を含むが、過去値または未来予測値のいずれかを省略してもよい。 In the first embodiment described above, the second driving information includes the current value, the past value, and the future predicted value of the driving situation as the information regarding the time change of the driving situation, but either the past value or the future predicted value is omitted. You may.

[実施例2]
実施例2では、実施例1における送信経路ビジー判定機構204の動作の具体例を示す。今後、自動運転システム等が膨大なデータを扱う時に、送信データ量の増大により、従来の技術ではリアルタイム性が低下する可能性がある。これを防ぐために、本実施例では、SPI通信よりも一般的に通信容量の大きいイーサネット通信を用いることで、大容量データ通信のリアルタイム性をより確実に維持する。
[Example 2]
In the second embodiment, a specific example of the operation of the transmission path busy determination mechanism 204 in the first embodiment is shown. In the future, when an automated driving system or the like handles a huge amount of data, the increase in the amount of transmitted data may reduce the real-time performance of the conventional technique. In order to prevent this, in this embodiment, by using Ethernet communication having a communication capacity generally larger than that of SPI communication, the real-time property of large-capacity data communication is more reliably maintained.

図10は、実施例2に係る送信処理のシーケンスを示すフローチャートである。このフローチャートは、マイコン間通信信号抽出機構203が認識マイコン101と制御マイコン102の間とで通信する信号を特定した後に、送信経路ビジー判定機構204がSPIの経路ビジー状態を判定して、SPI通信送信部205が送信できないデータをイーサネット通信送信部207が制御マイコン102に送信するまでのシーケンスを示す。 FIG. 10 is a flowchart showing a sequence of transmission processing according to the second embodiment. In this flowchart, after the inter-microcomputer communication signal extraction mechanism 203 identifies the signal to be communicated between the recognition microcomputer 101 and the control microcomputer 102, the transmission path busy determination mechanism 204 determines the path busy state of the SPI, and the SPI communication is performed. The sequence until the Ethernet communication transmission unit 207 transmits the data that cannot be transmitted by the transmission unit 205 to the control microcomputer 102 is shown.

フローが開始すると、ステップ1001において、送信経路ビジー判定機構204はマイコン間通信信号のデータサイズを取得する。以下に説明する例では、データサイズはたとえば256バイトであると想定する。なお、様々なデータサイズのデータを扱うことも可能である。 When the flow starts, in step 1001, the transmission path busy determination mechanism 204 acquires the data size of the communication signal between microcomputers. In the example described below, it is assumed that the data size is, for example, 256 bytes. It is also possible to handle data of various data sizes.

ステップ1002では、送信経路ビジー判定機構204は、通信仕様に規定された周期の設定値からマイコン間通信信号の送信周期を取得する。 In step 1002, the transmission path busy determination mechanism 204 acquires the transmission cycle of the communication signal between microcomputers from the set value of the cycle specified in the communication specifications.

図11に送信周期の例を示す。図11(a)は、送信周期の種類と、周期ごとに送信されるメッセージの数とを示す。この例では送信経路ビジー判定機構204の送信周期は10msであるとする。また、この例では、たとえば1周期ごと(10ms)ごとに送信されるメッセージが50個あり、2周期ごと(20msごと)に送信されるメッセージが20個あり、3周期ごと(30msごと)に送信されるメッセージが10個あり、4周期ごと(40msごと)に送信されるメッセージが10個ある。 FIG. 11 shows an example of the transmission cycle. FIG. 11A shows the type of transmission cycle and the number of messages transmitted in each cycle. In this example, it is assumed that the transmission cycle of the transmission path busy determination mechanism 204 is 10 ms. Further, in this example, for example, there are 50 messages transmitted every 1 cycle (10 ms), 20 messages transmitted every 2 cycles (every 20 ms), and every 3 cycles (every 30 ms). There are 10 messages to be sent, and 10 messages are sent every 4 cycles (every 40 ms).

図11(b)は、送信時刻ごとに送信されるメッセージの合計個数を示す。時刻0msにおいてすべてのメッセージが送信されたと想定すると、たとえば時刻40msでは、送信周期が40msの約数となっているメッセージ(すなわち、送信周期10ms、20msまたは40msのもの)がすべて送信され、それ以外のメッセージ(たとえば送信周期200msのメッセージ)は送信されないので、合計50+20+10=80個のメッセージが送信されることになる。 FIG. 11B shows the total number of messages transmitted at each transmission time. Assuming that all messages are transmitted at time 0 ms, for example, at time 40 ms, all messages having a transmission cycle that is a divisor of 40 ms (that is, those with a transmission cycle of 10 ms, 20 ms, or 40 ms) are transmitted, and other than that. (For example, a message having a transmission cycle of 200 ms) is not transmitted, so that a total of 50 + 20 + 10 = 80 messages are transmitted.

同様に、時刻1000msでは、送信周期が10ms、20ms、40ms、100ms、200ms、500ms、1000msのメッセージ(合計104個)が送信されることになる。この場合、時刻1000msに送信されるデータの総量は、256バイト×104個=26624バイト=26Kバイトとなる。 Similarly, at a time of 1000 ms, messages having a transmission cycle of 10 ms, 20 ms, 40 ms, 100 ms, 200 ms, 500 ms, and 1000 ms (104 in total) are transmitted. In this case, the total amount of data transmitted at the time of 1000 ms is 256 bytes × 104 pieces = 26624 bytes = 26 Kbytes.

ステップ1003では、送信経路ビジー判定機構204は、ステップ1001で取得したデータサイズとステップ1002で取得した送信周期とを用いて、単位時間送信サイズを計算する。単位時間送信サイズは、たとえば1送信周期で送信されるデータのサイズである。たとえば時刻1000msでは、上記のように単位時間送信サイズは26Kバイトとなる。 In step 1003, the transmission path busy determination mechanism 204 calculates the unit-time transmission size using the data size acquired in step 1001 and the transmission cycle acquired in step 1002. The unit-time transmission size is, for example, the size of data transmitted in one transmission cycle. For example, at a time of 1000 ms, the unit-time transmission size is 26 Kbytes as described above.

ステップ1004では、送信経路ビジー判定機構204は送信バッファ余裕量を取得する。送信バッファ余裕量の計算方法として、送信バッファの総数から、パケットが割り当てられた送信バッファの合計数を引いた数が、送信バッファ余裕量となる。 In step 1004, the transmission path busy determination mechanism 204 acquires the transmission buffer margin amount. As a method of calculating the transmission buffer margin, the transmission buffer margin is calculated by subtracting the total number of transmission buffers to which packets are allocated from the total number of transmission buffers.

図12に、送信バッファ余裕量の具体的な計算方法例を示す。送信バッファが[0]から[N]までのN+1個あるとする。図12(a)はすべてのバッファが空である場合を示し(図ではStatus[…]=0として示す)、この場合には余裕度はN+1である。 FIG. 12 shows an example of a specific calculation method of the transmission buffer margin amount. It is assumed that there are N + 1 transmission buffers from [0] to [N]. FIG. 12A shows a case where all the buffers are empty (shown as Status [...] = 0 in the figure), and in this case, the margin is N + 1.

その後、4つのメッセージの送信要求があったとする。メッセージはそれぞれバッファに割り当てられる(図ではStatus[…]=1として示す)。この場合には、図12(b)に示すように余裕度が4だけ減少し、N-3となる。 After that, it is assumed that there is a request to send four messages. Each message is assigned to a buffer (in the figure, it is shown as Status [...] = 1). In this case, as shown in FIG. 12B, the margin is reduced by 4 to become N-3.

さらにその後、3つのメッセージの送信処理が完了したとする。この場合には、図12(c)に示すように余裕度が3だけ増加し、Nとなる。 After that, it is assumed that the transmission processing of the three messages is completed. In this case, as shown in FIG. 12 (c), the margin increases by 3 and becomes N.

ステップ1005では、送信経路ビジー判定機構204は、取得したデータを比較する。まず、単位時間送信サイズとSPI通信送信能力を表す閾値とを比較する。ここで、SPI通信送信能力を表す閾値は、たとえばハードウェア仕様およびSPI通信仕様より定められた設計値である。 In step 1005, the transmission path busy determination mechanism 204 compares the acquired data. First, the unit-time transmission size is compared with the threshold value representing the SPI communication transmission capability. Here, the threshold value representing the SPI communication transmission capability is, for example, a design value determined from the hardware specifications and the SPI communication specifications.

具体例として、SPI通信用のクロック周波数が20MHzである場合には、SPI通信送信能力は1秒で20Mビットであり、1周期(10ms)あたりに換算すると200Kビット=25Kバイトとなる。図11の例では、時刻1000msでは単位時間送信サイズは26Kバイトであるため、単位時間送信サイズはSPI通信送信能力を超える。 As a specific example, when the clock frequency for SPI communication is 20 MHz, the SPI communication transmission capacity is 20 Mbits in 1 second, and 200 Kbits = 25 Kbytes when converted per cycle (10 ms). In the example of FIG. 11, since the unit-time transmission size is 26 Kbytes at a time of 1000 ms, the unit-time transmission size exceeds the SPI communication transmission capacity.

また、送信サイズ(必要バッファ数)と送信バッファ余裕量の比較を行う。必要バッファ数の計算は、たとえば送信すべきメッセージの総数と、1つのバッファで送信可能なメッセージの数とに基づいて計算可能である。 In addition, the transmission size (the number of required buffers) and the transmission buffer margin are compared. The required number of buffers can be calculated based on, for example, the total number of messages to be transmitted and the number of messages that can be transmitted in one buffer.

ステップ1005で比較した結果、ステップ1003で計算した単位時間送信サイズが閾値より上回り、かつ、送信サイズ(必要バッファ数)がステップ1004で取得した送信バッファ余裕量より上回る場合には、処理はステップ1008に移行する。 As a result of comparison in step 1005, if the unit-time transmission size calculated in step 1003 exceeds the threshold value and the transmission size (required buffer number) exceeds the transmission buffer margin acquired in step 1004, the process is performed in step 1008. Move to.

ステップ1008では、送信経路ビジー判定機構204はSPI通信が経路ビジー状態であると判定し、ステップ1009に移行する。 In step 1008, the transmission route busy determination mechanism 204 determines that the SPI communication is in the route busy state, and proceeds to step 1009.

その後、ステップ1009において、送信経路ビジー判定機構204はSPIの経路ビジーフラグ(たとえばPath_Busyフラグ)が「Yes」である状態をイーサネット通信送信部207に通知する。イーサネット通信送信部207は、この送信周期のデータをイーサネット通信105で制御マイコン102に送信する。 After that, in step 1009, the transmission route busy determination mechanism 204 notifies the Ethernet communication transmission unit 207 of the state in which the route busy flag (for example, Path_Busy flag) of the SPI is “Yes”. The Ethernet communication transmission unit 207 transmits the data of this transmission cycle to the control microcomputer 102 by the Ethernet communication 105.

一方、ステップ1005で比較した結果、Noの場合(すなわち、ステップ1003で計算した単位時間送信サイズが閾値以下であるか、または、送信サイズ(必要バッファ数)がステップ1004で取得した送信バッファ余裕量以下である場合)には、ステップ1006に移行して、送信経路ビジー判定機構204はこの送信周期にSPI通信106が経路ビジー状態でない状態と判定し、ステップ1007に移行する。 On the other hand, as a result of comparison in step 1005, in the case of No (that is, the unit time transmission size calculated in step 1003 is equal to or less than the threshold value, or the transmission size (required number of buffers) is the transmission buffer margin amount acquired in step 1004. In the following cases), the process proceeds to step 1006, and the transmission path busy determination mechanism 204 determines that the SPI communication 106 is not in the path busy state during this transmission cycle, and proceeds to step 1007.

その後、ステップ1007において、送信経路ビジー判定機構204はSPI通信の経路ビジーフラグが「No」である状態をSPI通信送信部205に通知する。SPI通信送信部205は、この送信周期のデータをSPI通信106制御マイコン102に送信する。 After that, in step 1007, the transmission path busy determination mechanism 204 notifies the SPI communication transmission unit 205 of the state in which the path busy flag of SPI communication is “No”. The SPI communication transmission unit 205 transmits the data of this transmission cycle to the SPI communication 106 control microcomputer 102.

上記の実施により、SPI通信106が経路ビジー状態(Path_BusyフラグがON)となり、SPI通信106によって認識マイコン101からSPI通信信号を制御マイコン102に送信することができず、待機状態となっている場合には、比較的大容量のデータ通信が可能なイーサネット通信105によって、待機していたデータを送信する。これにより、制御マイコン102は、SPI通信106で待機していた信号のデータ情報をイーサネット通信105によって取得することができる。 When the SPI communication 106 is in the busy state (Path_Busy flag is ON) due to the above implementation, and the SPI communication signal cannot be transmitted from the recognition microcomputer 101 to the control microcomputer 102 by the SPI communication 106, and is in the standby state. The standby data is transmitted to the Ethernet communication 105, which is capable of a relatively large amount of data communication. As a result, the control microcomputer 102 can acquire the data information of the signal waiting in the SPI communication 106 by the Ethernet communication 105.

100…自動運転制御ユニット
101…認識マイコン(第1マイコン)
102…制御マイコン(第2マイコン)
103…センサーユニット
104…制御機構ユニット
105…イーサネット通信
106…SPI通信
107…イーサネットスイッチ
201…データ受信機構
202…データ処理機構
203…マイコン間通信信号抽出機構
204…送信経路ビジー判定機構
205…SPI通信送信部
206…連続データ作成機構
207…イーサネット通信送信部
310…SPIパケットフォーマット
311…データ
320…イーサネットパケットフォーマット
321…連続データ
401…データ
402…送信メモリ
511…イーサネット通信受信部
512…イーサネット通信異常検知機構
513…RAM2
523…RAM1
521…SPI通信受信部
522…SPI通信異常検知機構
530…信号選択機構
531…RAM12
532…指令信号変換機構
533…指令送信機構
601…通信障害
602…受信欠落
603…チェックサム異常
604…メッセージカウンター異常
901…アドレス
902…タイムスタンプ情報領域
903…データ格納領域
100 ... Automatic operation control unit 101 ... Recognition microcomputer (first microcomputer)
102 ... Control microcomputer (second microcomputer)
103 ... Sensor unit 104 ... Control mechanism unit 105 ... Ethernet communication 106 ... SPI communication 107 ... Ethernet switch 201 ... Data reception mechanism 202 ... Data processing mechanism 203 ... Inter-microcomputer communication signal extraction mechanism 204 ... Transmission path busy determination mechanism 205 ... SPI communication Transmitter 206 ... Continuous data creation mechanism 207 ... Ethernet communication Transmitter 310 ... SPI packet format 311 ... Data 320 ... Ethernet packet format 321 ... Continuous data 401 ... Data 402 ... Transmission memory 511 ... Ethernet communication receiver 512 ... Ethernet communication error detection Mechanism 513 ... RAM 2
523 ... RAM1
521 ... SPI communication receiver 522 ... SPI communication abnormality detection mechanism 530 ... Signal selection mechanism 531 ... RAM 12
532 ... Command signal conversion mechanism 533 ... Command transmission mechanism 601 ... Communication failure 602 ... Missing reception 603 ... Checksum error 604 ... Message counter error 901 ... Address 902 ... Time stamp information area 903 ... Data storage area

Claims (19)

車両に搭載される電子制御装置であって、
前記電子制御装置は、第1マイコンおよび第2マイコンを備え、
前記第1マイコンは、データ受信部と、第1SPI通信部と、第1イーサネット通信部と、第2運転情報生成部とを備え、
前記データ受信部は第1運転情報を受信し、前記第1運転情報は、前記車両に搭載されたセンサーによって検出された前記車両の走行状況に関する情報であり、
前記第2運転情報生成部は第2運転情報を生成し、前記第2運転情報は、前記走行状況の時間変化に関する情報を含み、
前記第2マイコンは、第2SPI通信部と、第2イーサネット通信部と、指令信号生成部とを備え、
前記第2SPI通信部は、SPI通信を介して前記第1SPI通信部から前記第1運転情報を受信し、
前記第2イーサネット通信部は、イーサネット通信を介して前記第1イーサネット通信部から前記第2運転情報を受信し、
前記指令信号生成部は、前記第1運転情報および前記第2運転情報の少なくとも一方に基づき、前記車両に搭載されたアクチュエータを駆動または制御するための指令信号を生成する、
ことを特徴とする電子制御装置。
An electronic control device mounted on a vehicle
The electronic control device includes a first microcomputer and a second microcomputer.
The first microcomputer includes a data receiving unit, a first SPI communication unit, a first Ethernet communication unit, and a second operation information generation unit.
The data receiving unit receives the first driving information, and the first driving information is information about the traveling state of the vehicle detected by the sensor mounted on the vehicle.
The second operation information generation unit generates the second operation information, and the second operation information includes information regarding a time change of the traveling situation.
The second microcomputer includes a second SPI communication unit, a second Ethernet communication unit, and a command signal generation unit.
The second SPI communication unit receives the first operation information from the first SPI communication unit via SPI communication, and receives the first operation information.
The second Ethernet communication unit receives the second operation information from the first Ethernet communication unit via Ethernet communication, and receives the second operation information.
The command signal generation unit generates a command signal for driving or controlling an actuator mounted on the vehicle based on at least one of the first operation information and the second operation information.
An electronic control device characterized by that.
請求項1に記載の電子制御装置であって、前記第2運転情報は、前記走行状況の未来予測値に関する情報を含むことを特徴とする電子制御装置。 The electronic control device according to claim 1, wherein the second operation information includes information regarding a future predicted value of the traveling situation. 請求項2に記載の電子制御装置であって、前記指令信号生成部は、
‐前記第2SPI通信部が前記第1SPI通信部から前記第1運転情報を正常に受信した場合に、前記第1運転情報に基づき前記指令信号を生成し、
‐前記第2SPI通信部が前記第1SPI通信部から前記第1運転情報を正常に受信しなかった場合に、前記第2運転情報に基づき前記指令信号を生成する
ことを特徴とする電子制御装置。
The electronic control device according to claim 2, wherein the command signal generation unit is used.
-When the second SPI communication unit normally receives the first operation information from the first SPI communication unit, the command signal is generated based on the first operation information.
-An electronic control device characterized in that when the second SPI communication unit does not normally receive the first operation information from the first SPI communication unit, the command signal is generated based on the second operation information.
請求項1に記載の電子制御装置であって、前記第2運転情報は、前記走行状況の過去値に関する情報を含むことを特徴とする電子制御装置。 The electronic control device according to claim 1, wherein the second operation information includes information regarding past values of the traveling state. 請求項4に記載の電子制御装置であって、
前記第2マイコンはさらに情報比較部を備え、
第1時刻に係る前記第2運転情報は、前記第1時刻より過去の過去時刻に係る前記走行状況に関する情報を含み、
前記情報比較部は、
‐前記過去時刻に係る前記第1運転情報に含まれる、前記過去時刻に係る前記走行状況に関する情報と、
‐前記第1時刻に係る前記第2運転情報に含まれる、前記過去時刻に係る前記走行状況に関する情報と、
の比較結果を出力することを特徴とする電子制御装置。
The electronic control device according to claim 4.
The second microcomputer further includes an information comparison unit.
The second operation information relating to the first time includes information relating to the traveling situation relating to the past time past the first time.
The information comparison unit
-Information on the driving situation related to the past time and information on the driving situation related to the past time included in the first operation information related to the past time.
-Information on the driving situation related to the past time and information on the running situation related to the past time included in the second driving information related to the first time.
An electronic control device characterized by outputting the comparison result of.
請求項1に記載の電子制御装置であって、前記指令信号生成部は、
‐前記第2SPI通信部が前記第1SPI通信部から前記第1運転情報を正常に受信した場合に、前記第1運転情報に基づき前記指令信号を生成し、
‐前記第2SPI通信部が前記第1SPI通信部から前記第1運転情報を正常に受信しなかった場合に、前記第2運転情報に基づき前記指令信号を生成する
ことを特徴とする電子制御装置。
The electronic control device according to claim 1, wherein the command signal generation unit is used.
-When the second SPI communication unit normally receives the first operation information from the first SPI communication unit, the command signal is generated based on the first operation information.
-An electronic control device characterized in that when the second SPI communication unit does not normally receive the first operation information from the first SPI communication unit, the command signal is generated based on the second operation information.
請求項6に記載の電子制御装置であって、前記指令信号生成部は、前記第2SPI通信部が前記第1SPI通信部から前記第1運転情報を正常に受信しなかった後に、前記第2SPI通信部が前記第1SPI通信部から前記第1運転情報を正常に受信した場合に、当該正常に受信した前記第1運転情報に基づき前記指令信号を生成することを特徴とする電子制御装置。 The electronic control device according to claim 6, wherein the command signal generation unit performs the second SPI communication after the second SPI communication unit does not normally receive the first operation information from the first SPI communication unit. An electronic control device, characterized in that, when a unit normally receives the first operation information from the first SPI communication unit, the unit generates the command signal based on the normally received first operation information. 請求項1に記載の電子制御装置であって、
前記第2マイコンはさらに情報比較部を備え、
第1時刻に係る前記第2運転情報は、前記第1時刻より過去の過去時刻に係る前記走行状況に関する情報、または、前記第1時刻より未来の未来時刻に係る前記走行状況に関する情報を含み、
前記情報比較部は、
‐前記過去時刻に係る前記第1運転情報に含まれる、前記過去時刻に係る前記走行状況に関する情報と、
‐前記第1時刻に係る前記第2運転情報に含まれる、前記過去時刻に係る前記走行状況に関する情報と、
の比較結果を出力するか、または、
‐前記未来時刻に係る前記第1運転情報に含まれる、前記未来時刻に係る前記走行状況に関する情報と、
‐前記第1時刻に係る前記第2運転情報に含まれる、前記未来時刻に係る前記走行状況に関する情報と、
の比較結果を出力することを特徴とする電子制御装置。
The electronic control device according to claim 1.
The second microcomputer further includes an information comparison unit.
The second driving information relating to the first time includes information relating to the traveling situation related to the past time past the first time, or information relating to the traveling situation relating to the future time future from the first time.
The information comparison unit
-Information on the driving situation related to the past time and information on the driving situation related to the past time included in the first operation information related to the past time.
-Information on the driving situation related to the past time and information on the running situation related to the past time included in the second driving information related to the first time.
Output the comparison result of
-Information on the driving situation related to the future time and information on the driving situation related to the future time included in the first driving information related to the future time.
-Information on the driving situation related to the future time and information on the driving situation related to the future time included in the second driving information related to the first time.
An electronic control device characterized by outputting the comparison result of.
請求項1に記載の電子制御装置であって、前記第2運転情報は、タイムスタンプによって表される複数の時刻に係る前記走行状況に関する情報を含むことを特徴とする電子制御装置。 The electronic control device according to claim 1, wherein the second operation information includes information on the traveling state related to a plurality of times represented by a time stamp. 請求項1に記載の電子制御装置であって、
前記センサーは、前記車両の周囲を撮影するカメラまたは前記車両の周囲の物体を検知するレーダーであり、
前記第1運転情報は、前記カメラによって撮影された画像情報または前記レーダーによって検知された物体の情報を含む、
ことを特徴とする電子制御装置。
The electronic control device according to claim 1.
The sensor is a camera that photographs the surroundings of the vehicle or a radar that detects an object around the vehicle.
The first driving information includes image information taken by the camera or information of an object detected by the radar.
An electronic control device characterized by that.
請求項10に記載の電子制御装置であって、前記第1運転情報は、前記車両の進行方向における道路形状に関する情報を含むことを特徴とする電子制御装置。 The electronic control device according to claim 10, wherein the first driving information includes information regarding a road shape in a traveling direction of the vehicle. 請求項10に記載の電子制御装置であって、前記第1運転情報は、前記車両の周囲の移動物体に関する情報を含むことを特徴とする電子制御装置。 The electronic control device according to claim 10, wherein the first driving information includes information about a moving object around the vehicle. 請求項10に記載の電子制御装置であって、前記指令信号は、操舵量に関する信号を含むことを特徴とする電子制御装置。 The electronic control device according to claim 10, wherein the command signal includes a signal relating to a steering amount. 請求項13に記載の電子制御装置であって、前記第2運転情報は、前記車両の進行方向における道路形状の未来予測値を含むことを特徴とする電子制御装置。 The electronic control device according to claim 13, wherein the second driving information includes a future predicted value of a road shape in a traveling direction of the vehicle. 請求項13に記載の電子制御装置であって、前記第2運転情報は、前記車両の周囲の移動物体に関する情報の未来予測値を含むことを特徴とする電子制御装置。 The electronic control device according to claim 13, wherein the second driving information includes a future predicted value of information about a moving object around the vehicle. 請求項10に記載の電子制御装置であって、前記指令信号は、制動量に関する情報を含むことを特徴とする電子制御装置。 The electronic control device according to claim 10, wherein the command signal includes information regarding a braking amount. 請求項16に記載の電子制御装置であって、前記第2運転情報は、前記車両の進行方向における道路形状の未来予測値を含むことを特徴とする電子制御装置。 The electronic control device according to claim 16, wherein the second driving information includes a future predicted value of a road shape in a traveling direction of the vehicle. 請求項16に記載の電子制御装置であって、前記第2運転情報は、前記車両の周囲の移動物体に関する情報の未来予測値を含むことを特徴とする電子制御装置。 The electronic control device according to claim 16, wherein the second driving information includes a future predicted value of information about a moving object around the vehicle. 請求項1に記載の電子制御装置であって、前記第1SPI通信部が送信待機状態である場合に、前記第1イーサネット通信部は、イーサネット通信を介して前記第2イーサネット通信部に前記第2運転情報を送信することを特徴とする電子制御装置。 In the electronic control device according to claim 1, when the first SPI communication unit is in a transmission standby state, the first Ethernet communication unit connects to the second Ethernet communication unit via Ethernet communication. An electronic control device characterized by transmitting driving information.
JP2020210184A 2020-12-18 2020-12-18 Electronic control device mounted on vehicle Pending JP2022096920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020210184A JP2022096920A (en) 2020-12-18 2020-12-18 Electronic control device mounted on vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020210184A JP2022096920A (en) 2020-12-18 2020-12-18 Electronic control device mounted on vehicle

Publications (1)

Publication Number Publication Date
JP2022096920A true JP2022096920A (en) 2022-06-30

Family

ID=82165135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020210184A Pending JP2022096920A (en) 2020-12-18 2020-12-18 Electronic control device mounted on vehicle

Country Status (1)

Country Link
JP (1) JP2022096920A (en)

Similar Documents

Publication Publication Date Title
US20220006669A1 (en) In-vehicle communications system, in-vehicle communication method, and device
US10270619B2 (en) In-vehicle recording system and in-vehicle control apparatus
US20190108160A1 (en) Vehicle Control System Verification Device, Vehicle Control System, and Vehicle Control System Verification Method
WO2019021403A1 (en) Control network system, vehicle remote control system, and vehicle-mounted relay device
JP7124303B2 (en) Vehicle-mounted relay device, information processing device, relay device, information processing method, program, information processing system, and vehicle
KR101802858B1 (en) Integrated data processing system and method for vehicle
JP2019008618A (en) Information processing apparatus, information processing method, and program
US11247696B2 (en) Information processing device, information processing method, and recording medium
KR20190046477A (en) Method for handling message in gateway and gateway therefor
US20190362161A1 (en) Data recording device
US20220105956A1 (en) Vehicle, device, computer program and method for implementation in a vehicle
WO2021037237A1 (en) Railway vehicle and control method and system therefor, and train control and management system
JP2022096920A (en) Electronic control device mounted on vehicle
US11318953B2 (en) Fault-tolerant embedded automotive applications through cloud computing
CN116170779B (en) Collaborative awareness data transmission method, device and system
KR102488902B1 (en) A method and a device for determining latency that occurs when synchronizing sensors in autonomous vehicles and converting protocols
KR20200130881A (en) Method and apparatus for setting the distance between vehicles according to the situation of the platooning driving
WO2021234947A1 (en) Vehicle control system, vehicle integrated control device, electronic control device, network communication device, vehicle control method, and vehicle control program
US20240175714A1 (en) Method for checking a digital map of an environment of a motor vehicle
JP7359175B2 (en) Server, data collection system, program and data collection method
EP4059208B1 (en) Automotive network with centralized storage
US20220180754A1 (en) Communication System for Platooning Vehicles
US20240007859A1 (en) Detecting spoofed ethernet frames within an autosar communication stack
WO2023209820A1 (en) In-vehicle electronic device
WO2022097257A1 (en) Vehicle control system