JP4958619B2 - Relay connection unit - Google Patents
Relay connection unit Download PDFInfo
- Publication number
- JP4958619B2 JP4958619B2 JP2007115464A JP2007115464A JP4958619B2 JP 4958619 B2 JP4958619 B2 JP 4958619B2 JP 2007115464 A JP2007115464 A JP 2007115464A JP 2007115464 A JP2007115464 A JP 2007115464A JP 4958619 B2 JP4958619 B2 JP 4958619B2
- Authority
- JP
- Japan
- Prior art keywords
- message
- flexray
- processing circuit
- connection unit
- determination processing
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、車載用の中継接続ユニットに関し、詳しくは、CAN通信線とFlexRay通信線の間に接続して、メッセージを高速に中継するものである。 The present invention relates to an in-vehicle relay connection unit, and more specifically, is connected between a CAN communication line and a FlexRay communication line to relay messages at high speed.
自動車に搭載されるエンジン、トランスミッション、ブレーキ、エアコン、ライト、パワーウィンドウなどの電装品は電子制御ユニット(ECU)によって制御されており、該ECUは車載LANを介して各ECU間でメッセージを通信している。
車載LANの通信プロトコルとして、従来よりCANが広く用いられている。CANはイベントドリブン型であり、通信線に他のECUのメッセージが通信されている間は、自ECUはメッセージを送信できず、通信線が空いている時にはいつでもメッセージを送信することができる。
Electrical components such as engines, transmissions, brakes, air conditioners, lights, and power windows mounted on automobiles are controlled by an electronic control unit (ECU), which communicates messages between each ECU via an in-vehicle LAN. ing.
Conventionally, CAN has been widely used as a communication protocol for in-vehicle LAN. The CAN is an event driven type, and while the message of another ECU is being communicated to the communication line, the own ECU cannot transmit the message, and can transmit the message whenever the communication line is available.
また、近年では自動車に搭載されるECUの増加により車載LAN上の通信データ量も増加しており、CANよりも高速かつ信頼性の高いプロトコルが求められている。そこで、新たな通信プロトコルとしてFlexRayが注目されている。FlexRayはタイムトリガ型であり、所定の単位時間で時分割されたタイムスロットを用いてメッセージの送受信が行われる。FlexRayの通信線に接続された各ECUは、予め割り当てられたタイムスロットにおいてメッセージの送信を行っている。 In recent years, the amount of communication data on the in-vehicle LAN has increased due to an increase in the number of ECUs installed in automobiles, and a protocol that is faster and more reliable than CAN is required. Therefore, FlexRay has attracted attention as a new communication protocol. FlexRay is a time trigger type, and messages are transmitted and received using time slots that are time-divided in a predetermined unit time. Each ECU connected to the FlexRay communication line transmits a message in a time slot assigned in advance.
通信プロトコルにFlexRayを用いて車載LANの信頼性や通信速度を向上させる場合、車両には既にCANを用いた車載LANが構築されていることがあるため、既存のCANの車載LANをそのまま活用して、CANの車載LAN同士をFlexRayの通信線で接続することが多い。このとき、異なる通信プロトコルの通信線間でメッセージの中継を行う必要が生じる。 When using FlexRay as a communication protocol to improve the reliability and communication speed of an in-vehicle LAN, an in-vehicle LAN using CAN may already be built in the vehicle. In many cases, CAN in-vehicle LANs are connected to each other via a FlexRay communication line. At this time, it is necessary to relay messages between communication lines of different communication protocols.
このため、特開2005−328119号公報(特許文献1)では、通信プロトコルとしてCANを用いた通信線と、FlexRayを用いた通信線との間に通信メッセージ変換装置(中継接続ユニット)を設け、通信メッセージ変換装置が各通信プロトコルの通信形式やメッセージのフレーム形式に合わせてメッセージの変換を行い、メッセージの中継を行っている。 For this reason, in JP-A-2005-328119 (Patent Document 1), a communication message conversion device (relay connection unit) is provided between a communication line using CAN as a communication protocol and a communication line using FlexRay. A communication message conversion device converts a message in accordance with the communication format of each communication protocol and the frame format of the message, and relays the message.
具体的には、図15に示すように、CANアプリケーションデバイス(ECU)102が接続されたCAN通信線103とFlexRay通信線104は通信メッセージ変換装置(中継接続ユニット)100を介してメッセージの送受信を行っている。ECU102からCANメッセージがCAN通信線103に送信されると、中継接続ユニット100はCANコントローラ100cを介して該CANメッセージを受信する。CPU100aはCANメッセージをFlexRayメッセージに変換し、FlexRay通信線105に送信している。
また、FlexRay通信線からCAN通信線にメッセージを送信するときは、中継接続ユニットは前述した動作とは逆の動作を行い、FlexRayコントローラ100bを介してFlexRayメッセージを受信し、CANメッセージに変換してCAN通信線に送信している。
Specifically, as shown in FIG. 15, the CAN
In addition, when transmitting a message from the FlexRay communication line to the CAN communication line, the relay connection unit performs the operation opposite to the above-described operation, receives the FlexRay message via the FlexRay
しかし、特許文献1では、FlexRayコントローラまたはCANコントローラとCPUは別体として設けられているため、CPUと両コントローラ間のメッセージの送受信に時間がかかるという問題がある。
また、メッセージの送受信において、CPUは同時に両コントローラとメッセージの送受信を行うことはできないため、中継接続ユニットの動作速度が遅くなるという問題がある。
However, in
In addition, since the CPU cannot send and receive messages to and from both controllers simultaneously when sending and receiving messages, there is a problem that the operation speed of the relay connection unit becomes slow.
本発明は、前記問題に鑑みてなされたもので、車載用中継接続ユニットの動作速度を向上させてメッセージを高速に中継することを課題としている。 The present invention has been made in view of the above problems, and an object of the present invention is to improve the operation speed of the in-vehicle relay connection unit and relay messages at high speed.
前記課題を解決するため、本発明は、CAN通信線とFlexRay通信線からなるバスに接続され、該バスを介して行うメッセージの送受信をプロトコルを変換して中継する中継接続ユニットであって、
時分割されたタイムスロットでFlexRayメッセージを通信する前記FlexRay通信線と接続され、FlexRayメッセージを送受信するFlexRayドライバと、
ID(識別子)を備えるCANメッセージを通信するCAN通信線と接続され、CANメッセージを送受信するCANドライバと、
前記FlexRayドライバに接続されるFlexRayコントローラと、
前記CANドライバに接続されるCANコントローラと、
前記2つのコントローラに接続され、受信した前記FlexRayメッセージ及びCANメッセージの送信宛先を記憶した宛先検索テーブルと、該宛先検索テーブルからの送信の要否を検出する判断処理回路を備えたメインコントローラと、
前記メインコントローラに接続され、前記判断処理回路で送信要とされたメッセージを記憶するメモリを備え、
前記判断処理回路はCANコントローラと接続されるCAN判断処理回路と、FlexRayコントローラに接続されるFlexRay判断処理回路を備え、
前記宛先検索テーブルにはCANメッセージのIDに対応するデータ長が記憶され、
前記FlexRay判断処理回路は、受信した前記FlexRayメッセージのペイロードセグメントを前記CANメッセージのデータフィールドとすると共に、前記FlexRayメッセージを受信したタイムスロットのスロット番号と送信周期から前記宛先検索テーブルを参照してCANメッセージのIDとデータ長を読み出し、該IDをアービトレーションフィールドに記載し、データ長をコントロールフィールドに記載してCANメッセージに変換して該CANメッセージを前記メモリに送信し、前記CAN判断処理回路は、前記メモリからCANメッセージを読み出して前記CAN通信線に送信することを特徴とする車載用中継接続ユニットを提供している。
In order to solve the above-mentioned problems, the present invention is a relay connection unit that is connected to a bus composed of a CAN communication line and a FlexRay communication line, and relays messages transmitted and received through the bus by converting a protocol.
A FlexRay driver connected to the FlexRay communication line for communicating a FlexRay message in a time-divided time slot and transmitting / receiving a FlexRay message;
A CAN driver connected to a CAN communication line for communicating a CAN message having an ID (identifier), and transmitting / receiving a CAN message;
A FlexRay controller connected to the FlexRay driver;
A CAN controller connected to the CAN driver;
A main controller that is connected to the two controllers and includes a destination search table that stores transmission destinations of the received FlexRay message and CAN message; and a determination processing circuit that detects whether transmission from the destination search table is necessary;
A memory that is connected to the main controller and stores a message to be transmitted by the determination processing circuit ;
The determination processing circuit includes a CAN determination processing circuit connected to the CAN controller, and a FlexRay determination processing circuit connected to the FlexRay controller,
The destination search table stores a data length corresponding to the ID of the CAN message,
The FlexRay determination processing circuit uses the payload segment of the received FlexRay message as a data field of the CAN message, and refers to the destination search table from the slot number and transmission cycle of the time slot that received the FlexRay message. The message ID and data length are read, the ID is written in the arbitration field, the data length is written in the control field, converted to a CAN message, and the CAN message is sent to the memory. An in-vehicle relay connection unit is provided that reads a CAN message from the memory and transmits the CAN message to the CAN communication line .
CAN通信線からCANメッセージを受信する場合、メインコントローラはCANドライバ及びCANコントローラを介してCANメッセージを受信し、メモリに記憶している。
また、CANメッセージをFlexRay通信線に送信する場合、メインコントローラはCANメッセージをFlexRayメッセージに変換し、FlexRayコントローラ、FlexRayドライバを介してFlexRay通信線に送信している。
When receiving a CAN message from the CAN communication line, the main controller receives the CAN message via the CAN driver and the CAN controller and stores it in the memory.
When transmitting the CAN message to the FlexRay communication line, the main controller converts the CAN message into a FlexRay message and transmits the Flex message to the FlexRay communication line via the FlexRay controller and the FlexRay driver.
このようなメッセージの中継を行うメインコントローラは、CPUではなくハードウェアで構成することができる。また、CANドライバ、CANコントローラ、FlexRayドライバ、FlexRayコントローラもハードウェアで構成し、メインコントローラと一体化した半導体として構成することができる。
このように中継接続ユニットの構成をハードウェアとして一体とすることで、メインコントローラとCANコントローラ及びFlexRayコントローラ間のメッセージの送受信にかかる時間を短縮することができる。
The main controller that relays such messages can be configured by hardware instead of the CPU. The CAN driver, the CAN controller, the FlexRay driver, and the FlexRay controller can also be configured as hardware and configured as a semiconductor integrated with the main controller.
By integrating the configuration of the relay connection unit as hardware in this way, it is possible to reduce the time required for message transmission / reception between the main controller, the CAN controller, and the FlexRay controller.
また、従来技術ではCPUを用いているのでCPUとCANコントローラおよびCPUとFlexRayコントローラとのメッセージの送受信を同時に行うことができないが、中継接続ユニットの構成をハードウェアにすることで、メインコントローラとCANコントローラとの間のメッセージの送受信と、メインコントローラとFlexRayコントローラとの間のメッセージの送受信を並行して行うことができ、中継接続ユニットの動作速度を上げてメッセージを高速に中継することができる。
さらに、中継接続ユニットの構成を一体化した半導体とすることで、中継接続ユニットに搭載される半導体の数を減らすことができ、中継接続ユニットを小型化することができる。
In addition, since the conventional technology uses a CPU, it cannot simultaneously transmit and receive messages between the CPU and the CAN controller and between the CPU and the FlexRay controller. However, by configuring the relay connection unit as hardware, the main controller and the CAN Message transmission / reception with the controller and message transmission / reception between the main controller and the FlexRay controller can be performed in parallel, and the operation speed of the relay connection unit can be increased to relay the message at high speed.
Furthermore, by using a semiconductor in which the configuration of the relay connection unit is integrated, the number of semiconductors mounted on the relay connection unit can be reduced, and the relay connection unit can be downsized.
前記CAN判断処理回路は、受信したCANメッセージを前記メモリに送信し、
前記FlexRay判断処理回路は、タイムスロットと送信周期を検知して、前記中継接続ユニットに割り当てられFlexRayメッセージを送信することができるタイムスロットと送信周期であることを判断した場合に、前記メモリに記憶されたCANメッセージを順に読み出し、FlexRayメッセージに変換して送信することが好ましい。
具体的には、前記メモリに記憶されたCANメッセージを1または複数結合して前記FlexRayメッセージのペイロードセグメントとし、該ペイロードセグメントにヘッダセグメントを付けて前記CANメッセージからFlexRayメッセージへの変換を行っている。
Before SL CAN determination processing circuit sends a CAN message received in the memory,
When the FlexRay determination processing circuit detects a time slot and a transmission cycle and determines that the time slot and the transmission cycle are assigned to the relay connection unit and can transmit the FlexRay message, the FlexRay determination processing circuit stores the time slot and the transmission cycle in the memory. It is preferable to read out the CAN messages in order, convert them into FlexRay messages, and transmit them.
Specifically, one or more CAN messages stored in the memory are combined to form a payload segment of the FlexRay message, and a header segment is attached to the payload segment to convert the CAN message to the FlexRay message. .
前記構成とすることで、複数のCANメッセージを1つのFlexRayメッセージとすることができ、該FlexRayメッセージを中継接続ユニットに割り当てられたタイムスロット時にFlexRay通信線に送信することができるので、メッセージの中継を効率良く行うことができる。 With the above configuration, a plurality of CAN messages can be made into one FlexRay message, and the FlexRay message can be transmitted to the FlexRay communication line at the time slot assigned to the relay connection unit. Can be performed efficiently.
FlexRay通信線から受信したFlexRayメッセージをCANメッセージに変換してCAN通信線に送信する場合には、
前記FlexRay判断処理回路は、1または複数のCANメッセージを含んだペイロードセグメントを有するFlexRayメッセージを受信してCANメッセージに変換して前記メモリに送信し、前記CAN判断処理回路は、前記メモリからCANメッセージを読み出して前記CAN通信線に送信する。
When the FlexRay message received from the FlexRay communication line is converted into a CAN message and transmitted to the CAN communication line,
The FlexRay determination processing circuit receives a FlexRay message having a payload segment including one or a plurality of CAN messages, converts the FlexRay message into a CAN message, and transmits the CAN message to the memory. The CAN determination processing circuit receives the CAN message from the memory. Is transmitted to the CAN communication line.
CAN通信線から受信した1つのCANメッセージを1つのFlexRayメッセージに変換してFlexRay通信線に送信する場合、前記メインコントローラの前記宛先検索テーブルは、FlexRayメッセージ通信用の時分割されたタイムスロット及び送信周期毎に前記CANメッセージのIDを割り当てており、
前記判断処理回路は、前記CANコントローラと接続されるCAN判断処理回路と、FlexRayコントローラに接続されるFlexRay判断処理回路を備え、
前記CAN判断処理回路は、受信したCANメッセージのIDから前記宛先検索テーブルを参照して、該CANメッセージをFlexRayメッセージに変換して送信する際のFlexRayのタイムスロットのスロット番号及び送信周期を読み出し、該CANメッセージ及びFlexRayのスロット番号及び送信周期を前記メモリに送信し、
前記FlexRay判断処理回路は、タイムスロットと送信周期を検知して、前記中継接続ユニットに割り当てられFlexRayメッセージを送信することができるタイムスロットと送信周期であることを判断した場合に、前記メモリからタイムスロットのスロット番号及び送信周期に該当するCANメッセージを読み出し、FlexRayメッセージに変換して送信してもよい。
When one CAN message received from the CAN communication line is converted into one FlexRay message and transmitted to the FlexRay communication line, the destination search table of the main controller includes the time-divided time slot and transmission for the FlexRay message communication. An ID of the CAN message is assigned for each period,
The determination processing circuit includes a CAN determination processing circuit connected to the CAN controller, and a FlexRay determination processing circuit connected to the FlexRay controller,
The CAN determination processing circuit refers to the destination search table from the received CAN message ID, reads the slot number and the transmission cycle of the FlexRay time slot when the CAN message is converted into a FlexRay message and transmitted, Sending the CAN message and FlexRay slot number and transmission cycle to the memory;
When the FlexRay determination processing circuit detects a time slot and a transmission cycle and determines that it is a time slot and a transmission cycle that can be assigned to the relay connection unit and can transmit a FlexRay message, the time is read from the memory. The CAN message corresponding to the slot number and the transmission cycle of the slot may be read, converted into a FlexRay message, and transmitted.
具体的には、前記CANメッセージのデータフィールドを前記FlexRayメッセージのペイロードセグメントとし、該ペイロードセグメントにヘッダセグメントを付けて前記CANメッセージからFlexRayメッセージへの変換を行っている。 Specifically, the data field of the CAN message is used as a payload segment of the FlexRay message, and a header segment is attached to the payload segment to convert the CAN message to the FlexRay message.
FlexRay判断処理回路はCANメッセージをFlexRayメッセージに変換し、中継接続ユニットがFlexRayメッセージを送信可能であるタイムスロットと送信周期のうち、宛先検索テーブルで割り当てられたタイムスロット及び送信周期でFlexRayメッセージをFlexRay通信線に送信している。このとき、FlexRayメッセージには必ず1つのCANメッセージしか含まれない。
従来技術では、中継接続ユニットがCANメッセージを受信するタイミングに遅延が生じたり順序が変わった場合、CANメッセージを変換したFlexRayメッセージの送信のタイミングも変動することがある。一方、前記構成によれば、CANメッセージのIDごとにFlexRayメッセージを送信する送信周期が定められているため、FlexRayメッセージの送信の時間変動の発生を防ぐことができる。
The FlexRay determination processing circuit converts the CAN message into a FlexRay message, and among the time slots and the transmission cycle in which the relay connection unit can transmit the FlexRay message, the FlexRay message is transmitted with the time slot and the transmission cycle assigned in the destination search table. Sending to the communication line. At this time, the FlexRay message always includes only one CAN message.
In the prior art, when a delay occurs in the timing at which the relay connection unit receives the CAN message or the order is changed, the transmission timing of the FlexRay message obtained by converting the CAN message may also vary. On the other hand, according to the above-described configuration, since the transmission cycle for transmitting the FlexRay message is determined for each CAN message ID, it is possible to prevent the occurrence of time fluctuations in the transmission of the FlexRay message.
前記のように、前記宛先検索テーブルにはCANメッセージのIDに対応するデータ長が記憶されており、
前記FlexRay判断処理回路は、受信した前記FlexRayメッセージのペイロードセグメントを前記CANメッセージのデータフィールドとすると共に、前記FlexRayメッセージを受信したタイムスロットのスロット番号と送信周期から前記宛先検索テーブルを参照してCANメッセージのIDとデータ長を読み出し、該IDをアービトレーションフィールドに記載し、データ長をコントロールフィールドに記載してCANメッセージに変換して該CANメッセージを前記メモリに送信し、前記CAN判断処理回路は、前記メモリからCANメッセージを読み出して前記CAN通信線に送信している。
As described above, the destination search table stores the data length corresponding to the CAN message ID,
The FlexRay determination processing circuit uses the payload segment of the received FlexRay message as a data field of the CAN message, and refers to the destination search table from the slot number and transmission cycle of the time slot that received the FlexRay message. The message ID and data length are read, the ID is written in the arbitration field, the data length is written in the control field, converted to a CAN message, and the CAN message is sent to the memory. A CAN message is read from the memory and transmitted to the CAN communication line.
前記FlexRayコントローラは同期信号を前記FlexRay判断処理回路に送信する同期信号発生回路を備え、
該FlexRay判断処理回路は、前記同期信号からFlexRayメッセージ通信用の現在の送信周期を検知する周期管理回路と、前記同期信号からFlexRayメッセージ通信用の現在のタイムスロットのスロット番号を検知するスロット番号管理回路を備え、
前記スロット番号管理回路は、前記中継接続ユニットに割り当てられFlexRayメッセージを送信することができるスロット番号と送信周期を予め備えており、前記周期管理回路は送信周期を前記スロット番号管理回路に送信し、前記スロット番号管理回路は前記現在のスロット番号及び送信周期と前記記憶したスロット番号および送信周期を比較してFlexRayメッセージを送信できるスロットか否かを判断していることが好ましい。
The FlexRay controller includes a synchronization signal generation circuit that transmits a synchronization signal to the FlexRay determination processing circuit.
The FlexRay determination processing circuit detects a current transmission cycle for FlexRay message communication from the synchronization signal, and a slot number management for detecting a slot number of a current time slot for FlexRay message communication from the synchronization signal. With a circuit,
The slot number management circuit is provided with a slot number and a transmission cycle assigned to the relay connection unit and capable of transmitting a FlexRay message in advance, and the cycle management circuit transmits a transmission cycle to the slot number management circuit, Preferably, the slot number management circuit compares the current slot number and transmission cycle with the stored slot number and transmission cycle to determine whether or not the slot can transmit a FlexRay message.
FlexRayプロトコルではあらかじめメッセージ送信についてスケジューリングされており、各タイムスロットで1つのFlexRayメッセージが送信される。FlexRayコントローラの同期信号発生回路が同期信号をFlexRay判断処理回路に送信し、FlexRay判断処理回路のスロット番号管理回路は同期信号から現在のスロット番号を検知する。また、周期管理回路は現在の送信周期を検知する。
中継接続ユニットのFlexRayメッセージのFlexRay通信線への送信のタイムスケジュールはタイムスロットのスロット番号と送信周期により定められており、スロット番号管理回路は割り当てられたスロット番号と送信周期を予め記憶している。
スロット番号管理回路は記憶したスロット番号と送信周期の情報と、検知した現在のスロット番号と送信周期を比較して、中継接続ユニットがFlexRayメッセージを送信できるスロットか否かを判断している。
該構成によれば、FlexRayコントローラが同期信号をFlexRay判断処理回路に送信しているので、FlexRayプロトコルのタイムスケジュールを管理することができる。
In the FlexRay protocol, message transmission is scheduled in advance, and one FlexRay message is transmitted in each time slot. The synchronization signal generation circuit of the FlexRay controller transmits the synchronization signal to the FlexRay determination processing circuit, and the slot number management circuit of the FlexRay determination processing circuit detects the current slot number from the synchronization signal. The cycle management circuit detects the current transmission cycle.
The time schedule for transmitting the FlexRay message of the relay connection unit to the FlexRay communication line is determined by the slot number of the time slot and the transmission cycle, and the slot number management circuit stores the assigned slot number and the transmission cycle in advance. .
The slot number management circuit compares the stored slot number and transmission cycle information with the detected current slot number and transmission cycle, and determines whether or not the relay connection unit can transmit a FlexRay message.
According to this configuration, since the FlexRay controller transmits the synchronization signal to the FlexRay determination processing circuit, the time schedule of the FlexRay protocol can be managed.
前述したように、本発明の車載用中継接続ユニットによれば、メッセージの中継を行うメインコントローラは、CPUではなくハードウェアで構成し、また、CANドライバ、CANコントローラ、FlexRayドライバ、FlexRayコントローラもハードウェアで構成し、メインコントローラと一体化した半導体として構成しているため、メインコントローラとCANコントローラ及びFlexRayコントローラ等とのメッセージの送受信にかかる時間が短縮できると共に、メインコントローラとFlexRayコントローラまたはCANコントローラとの間のメッセージの送受信を並行して行うことができ、中継接続ユニットの動作速度を上げてメッセージを高速に中継することができる。 As described above, according to the in-vehicle relay connection unit of the present invention, the main controller that relays messages is configured by hardware instead of the CPU, and the CAN driver, CAN controller, FlexRay driver, and FlexRay controller are also hardware. Since it is configured as a semiconductor integrated with the main controller, the time required for message transmission / reception between the main controller, the CAN controller and the FlexRay controller can be reduced, and the main controller and the FlexRay controller or the CAN controller Messages can be transmitted and received in parallel, and messages can be relayed at high speed by increasing the operation speed of the relay connection unit.
本発明の実施形態を図面を参照して説明する。
図1乃至図9は本発明の第1実施形態を示す。
本実施形態では、図1中に太線で示すFlexRay通信線11に本発明の中継接続ユニット20(20A、20B)を接続し、各中継接続ユニット20にCAN通信線12を介して夫々複数のECU13(20Aに13Aと13B、20Bに13Cと13D)を接続して車載LAN10を構成している。
前記車載LAN10では、例えば、中継接続ユニット20Aに接続したECU13Aと中継接続ユニット20Bに接続したECU13Cの間でメッセージを送受信する際、ECU13AからCAN通信線12を介して中継接続ユニット20Aに送信し、中継接続ユニット20AからFlexRay通信線11を介して中継接続ユニット20Bへ送信し、該中継接続ユニット20BからCAN通信線12を介して送信相手方のECU13Cに送信している。
即ち、中継接続ユニット20(20A、20B)は通信プロトコルが異なるFlexRay通信線11とCAN通信線12の間で通信プロトコルを変換してメッセージの中継を行う必要がある。
Embodiments of the present invention will be described with reference to the drawings.
1 to 9 show a first embodiment of the present invention.
In this embodiment, the relay connection unit 20 (20A, 20B) of the present invention is connected to the
In the in-
That is, it is necessary for the relay connection unit 20 (20A, 20B) to relay a message by converting the communication protocol between the
前記FlexRay通信線11は時分割されたタイムスロットでFlexRayメッセージを通信するFlexRayに準拠した通信プロトコルで通信を行う通信線であり、伝送速度は最大10Mbpsである。
前記CAN通信線12はID(識別子)を備えるCANメッセージを通信するCANに準拠した通信プロトコルで通信を行う通信線であり、伝送速度は最大1Mbpsである。
The
The
図2に示すように、中継接続ユニット20はFlexRayドライバ21と、CANドライバ22と、FlexRayコントローラ23と、CANコントローラ24と、メインコントローラ30と、メモリ26を備えており、中継接続ユニット20は図3に示すように一つの半導体チップでハードウェアとして一体に構成している。
中継接続ユニット20は、CAN通信線12からCANドライバ22、CANコントローラ24を介してCANメッセージを受信すると、メインコントローラ30により該CANメッセージをメモリ26に記憶する。また、メインコントローラ30は該メモリ26から1または複数のCANメッセージを読み出しFlexRayメッセージに変換し、FlexRayコントローラ23、FlexRayドライバ21を介してFlexRay通信線11に送信する。
2, the
When the
また、中継接続ユニット20はFlexRay通信線11からFlexRayメッセージを受信すると、メインコントローラ30はFlexRayメッセージを複数のCANメッセージに分割し、該CANメッセージをメモリ26に記憶する。メインコントローラ30はメモリ26から該CANメッセージを読み出してCAN通信線12に送信する。
When the
FlexRayドライバ21はFlexRay通信線11と接続し、FlexRayメッセージを送受信するものである。
CANドライバ22はCAN通信線12と接続し、CANメッセージを送受信するものである。
The
The
FlexRayコントローラ23はFlexRayドライバ21と接続しており、受信回路23aと送信回路23bと同期信号発生回路27を備えている。
受信回路23aはFlexRayドライバ21を介してFlexRayメッセージを受信する回路であり、送信回路23bはメインコントローラ30から受信したFlexRayメッセージをFlexRayドライバ21を介して送信する回路である。
同期信号発生回路27はFlexRayドライバ21と接続しており、受信したFlexRayメッセージからFlexRayプロトコルのコミュニケーションサイクルの周期の先頭を検出し、同期信号を発生させてメインコントローラ30に送信している。
The
The
The synchronization
CANコントローラ24はCANドライバ22と接続しており、受信回路24aと送信回路24bを備えている。
受信回路24aはCANドライバ22を介してCANメッセージを受信する回路であり、送信回路24bはCANドライバ22を介してCANメッセージを送信する回路である。
The
The
メインコントローラ30はFlexRayコントローラ23とCANコントローラ24に接続しており、宛先検索テーブル31とFlexRay判断処理回路32とCAN判断処理回路33を備えている。
宛先検索テーブル31は、CAN判断処理回路33とFlexRay判断処理回路32と接続しており、FlexRayメッセージ及びCANメッセージの送信宛先の通信線を記憶している。
The
The destination search table 31 is connected to the CAN
図4は宛先検索テーブル31の例であり、図4(A)はCAN通信12から受信したCANメッセージをFlexRayメッセージに変換してFlexRay通信線11へ送信する場合の宛先検索テーブル31である。CANメッセージのIDごとに、該CANメッセージを含むFlexRayメッセージの送信宛先が記載されている。なお、送信宛先が記されていない場合は、該IDのCANメッセージは送信不要であることを示している。本実施形態では1つの中継接続ユニット20に1本のFlexRay通信線11が接続されているため、送信宛先は全て同じである。
FIG. 4 shows an example of the destination search table 31. FIG. 4A shows the destination search table 31 when the CAN message received from the
また、図4(B)はFlexRay通信線11から受信したFlexRayメッセージをCANメッセージに変換してCAN通信線12へ送信する場合の宛先検索テーブル31である。CANメッセージのIDごとに送信宛先を記載している。
また、図4(C)はFlexRayメッセージをFlexRay通信線11へ送信する場合のテーブルであり、FlexRayプロトコルで中継接続ユニットに割り当てられ、中継接続ユニット20がFlexRay通信線11にFlexRayメッセージの送信が可能であるタイムスロットのスロット番号と送信周期が示されている。
FIG. 4B shows a destination search table 31 when the FlexRay message received from the
FIG. 4C is a table when a FlexRay message is transmitted to the
CAN判断処理回路33は中継処理回路34と書込回路33aと読出回路33bを備えている。
中継処理回路34はCANドライバ22、CANコントローラ24を介してCANメッセージを受信するとCANメッセージのIDから図4(A)に示すような宛先検索テーブル31を参照して、FlexRay通信線11に送信すべきメッセージか否かを判断する。送信すべきメッセージの場合は、該CANメッセージを書込回路33aに送信し、送信不要なメッセージは破棄する。
また、メモリ26に記憶されたCANメッセージをCAN通信線12に送信する場合は、中継処理回路34は読出回路33bを介してメモリ26から読み出したCANメッセージのIDから、図4(B)に示すような宛先検索テーブル31を参照して送信先のCAN通信線12を判別し、CANコントローラ24に該CANメッセージを送信する。
The CAN
When the
When the CAN message stored in the
FlexRay判断処理回路32は、タイミング回路35と読出回路32bと書込回路32aを備えている。
タイミング回路35は周期管理回路36とスロット番号管理回路37を備え、FlexRayコントローラ23の同期信号発生回路27から送信される同期信号を受信している。FlexRayプロトコルでは、タイムスロットのスロット番号と送信周期から中継接続ユニット20のFlexRayメッセージの送信を管理しており、周期管理回路36は同期信号から現在の送信周期を検知すると共に、スロット番号管理回路37は同期信号から現在のタイムスロットのスロット番号を検知している。
The FlexRay
The
また、スロット番号管理回路37は周期管理回路36から送信周期を受信する。さらに、図4(C)に示す宛先検索テーブルを読み込み、現在のスロット番号と送信周期を読み込んだ宛先検索テーブルと比較し、現在のスロット番号と送信周期が宛先検索テーブルにあれば、中継接続ユニット20はFlexRayメッセージを送信可能であると判断している。送信可の場合は読出回路32bにFlexRayメッセージの読出しの指令を出している。
The slot
読出回路32bはタイミング回路35の指令を受け、メモリ26から1または複数のCANメッセージを読み出して該メッセージを結合させてFlexRayメッセージとしている。
図5(A)に示すように、CANメッセージは、CANメッセージのID(識別子)を格納するアービトレーションフィールド41と、データ長(DLC)を格納するコントロールフィールド42と、データを格納するデータフィールド43を備えている。
The
As shown in FIG. 5A, the CAN message includes an arbitration field 41 that stores an ID (identifier) of the CAN message, a
読出回路32bはCANメッセージ全体の長さを数えながらメモリ26に記憶された順にCANメッセージを読み出し、FlexRayメッセージの最大バイト数を超えない範囲で複数のCANメッセージを結合し、FlexRayメッセージのペイロードセグメント45とする。図5(B)では2つのCANメッセージを結合している。このとき、ペイロードセグメント45には図5(A)に示す各CANメッセージのアービトレーションフィールド41、コントロールフィールド42、データフィールド43の全てが含まれる。さらに、該ペイロードセグメント45にヘッダセグメント44を取り付けてFlexRayメッセージとしている。
さらに、ペイロードセグメント45として割り当てられたビット数とCANメッセージの全体のビット数とが異なる場合には、CANメッセージの末尾にゼロを入れて所定のペイロードセグメント長とするパディング処理を行っている。
The
Further, when the number of bits allocated as the
書込回路32aは、FlexRay通信線11からFlexRayメッセージを受信した場合に、FlexRayメッセージからCANメッセージを分割してメモリ26に書き込んでいる。
図5(B)に示すFlexRayメッセージをヘッダセグメント44とペイロードセグメント45に分割し、さらに、ペイロードセグメント45を図5(A)に示すようにCANメッセージごとに分割して取り出している。次いで、該CANメッセージをメモリ26に書込んでいる。
When receiving the FlexRay message from the
The FlexRay message shown in FIG. 5B is divided into a
メモリ26はメインコントローラ30と接続しており、CAN判断処理回路33及びFlexRay判断処理回路32からCANメッセージが書き込まれると共に読み込まれる。
The
なお、中継接続ユニット20にFlexRay通信線11が2本以上接続されている場合には、FlexRay通信線11毎に通信速度や同期信号の送信タイミングが異なるため、FlexRayドライバ21、FlexRayコントローラ23、FlexRay判断処理回路32をFlexRay通信線11毎に備えていてもよい。
また、中継接続ユニット20にCAN通信線12が2本以上接続されている場合には、CANドライバ22とCANコントローラ24はCAN通信線毎に備え、CAN判断処理回路33は1つとしてもよい。
なお、図4(C)テーブルに記載されていない送信周期とスロット番号においては、中継接続ユニット20は該送信周期のタイムスロットのスロット番号ではFlexRayメッセージをFlexRay通信線11に送信しないことを示している。該送信周期のタイムスロットのスロット番号においては、FlexRay通信線11に接続された他の中継接続ユニット20や電子制御ユニットがメッセージを送信しているか、どの中継接続ユニット20等もメッセージを送信していない状態である。
When two or more
When two or more
In the transmission cycle and slot number not described in the table of FIG. 4C, the
次に、中継接続ユニット20の動作について説明する。図1に示すCAN通信線12Aに接続したECU13A、ECU13Bが夫々CANメッセージmcA、mcBを送信する場合を例にして説明する。
図6はCAN通信線12から中継接続ユニット20がCANメッセージを受信してメモリ26に記憶する場合に、中継接続ユニット20の動作を示すフローチャートである。
Next, the operation of the
FIG. 6 is a flowchart showing the operation of the
ステップS11では、CAN通信線12からCANメッセージmcA、mcBを夫々受信している。CANドライバ22、CANコントローラ24の受信回路24aを介して、メインコントローラ30がCANメッセージを受信する。
ステップS12では、メインコントローラ30の中継処理回路34がCANメッセージmcA、mcBのアービトレーションフィールド41からIDを読み出し、例えば図4(A)に示す宛先検索テーブル31を参照して送信宛先を判別している。送信先がある場合はステップS13に進み、送信不要である場合はステップS14に進む。
ステップS13では、中継処理回路34が書込回路33aに指令を出し、書込回路33aはCANメッセージmcA、mcBをメモリ26に書き込んでいる。
ステップS14ではCANメッセージを破棄している。
In step S11, CAN messages mcA and mcB are received from the
In step S12, the
In step S13, the
In step S14, the CAN message is discarded.
図7は中継接続ユニット20がメモリ26に記憶したCANメッセージmcA、mcBをFlexRay通信線11に送信する場合の動作を示すフローチャートである。
ステップS21では、FlexRayコントローラ23の同期信号発生回路27が同期信号をFlexRay判断処理回路32の周期管理回路36とスロット番号管理回路37に周期的に送信している。
ステップS22では、周期管理回路36が、同期信号からFlexRayプロトコルの現在の送信周期を検知している。
ステップS23では、スロット番号管理回路37は、同期信号からFlexRayプロトコルの現在のスロット番号を検知している。
なお、ステップS22とステップS23は動作を並行して行っていてもよい。
FIG. 7 is a flowchart showing an operation when the
In
In step S22, the
In step S23, the slot
Steps S22 and S23 may be performed in parallel.
ステップS24では、周期管理回路36は送信周期をスロット番号管理回路37に送信している。
ステップS25では、スロット番号管理回路37が例えば図4(C)に示す宛先検索テーブルを読み込んで、現在のスロット番号及び送信周期情報から中継接続ユニット20がFlexRayメッセージを送信できるスロット番号及び送信周期であるか否かを判断している。送信できる場合にはステップS26に進む。送信できない場合はステップS21に戻る。
In step S24, the
In step S25, the slot
ステップS26では、スロット番号管理回路37は読出回路32bに指令を出し、読出回路32bはメモリ26に記憶されたCANメッセージmcA、mcBを読み出してこれら2つのCANメッセージを結合してペイロードセグメント45とし、ヘッダセグメント44を取り付けてFlexRayメッセージに変換している。読出回路32bは中継接続ユニット20が送信可能な最大のバイト数を超えないようにCANメッセージを結合する。
ステップS27では、メインコントローラ30はFlexRayメッセージをFlexRayコントローラ23の送信回路23bとFlexRayドライバ21を介してFlexRay通信線11に送信している。
In step S26, the slot
In step S27, the
なお、ステップS21からS25は、FlexRayメッセージの送信の有無に関わらず、周期的に行われている。
また、ステップS25で中継接続ユニット20がFlexRayメッセージを送信できるスロット番号及び送信周期であっても、メモリ26にCANメッセージが記憶されていなければ、読出回路32bはFlexRayメッセージへの変換は行わず、中継接続ユニット20からFlexRayメッセージの送信は行われない。
さらに、メモリ26に記憶されたCANメッセージを結合させてFlexRayメッセージに変換してもメモリ26にまだCANメッセージが残っている場合には、中継接続ユニット20がメッセージを送信できる次のスロット番号及び送信周期のタイミングで、FlexRayメッセージに変換されて、FlexRay通信線11に送信される。
Steps S21 to S25 are periodically performed regardless of whether or not the FlexRay message is transmitted.
In addition, even if the slot number and the transmission cycle at which the
Further, if the CAN message still remains in the
図8はFlexRay通信線11から中継接続ユニット20がFlexRayメッセージを受信してメモリ26に記憶する場合に、中継接続ユニット20の動作を示すフローチャートである。
図1に示すCAN通信線12Bに接続したECU13C、ECU13Dが送信したCANメッセージmcC、mcDを中継接続ユニット20BがFlexRayメッセージに変換してFlexRay通信線11に送信した場合の中継接続ユニット20Aの動作を例として説明する。
FIG. 8 is a flowchart showing the operation of the
The operation of the
ステップS31では、FlexRay通信線11からFlexRayメッセージを受信している。FlexRayドライバ21、FlexRayコントローラ23の受信回路23aを介して、メインコントローラ30がFlexRayメッセージを受信する。
ステップS32では、メインコントローラ30のFlexRay判断処理回路32の書込回路32aはFlexRayメッセージをヘッダセグメント44とペイロードセグメント45に分割し、さらにペイロードセグメント45に含まれるCANメッセージを夫々分割する。本実施形態では1つのFlexRayメッセージを2つのCANメッセージmcC、mcDに変換している。
ステップS33では、書込回路32aが各CANメッセージmcC、mcDをメモリ26へ書き込む。
In step S31, the FlexRay message is received from the
In step S32, the
In step S33, the
図9は中継接続ユニット20がメモリ26に記憶したCANメッセージをCAN通信線12に送信する場合の動作を示すフローチャートである。
ステップS41では、メインコントローラ30のCAN判断処理回路33がメモリ26に記憶されたCANメッセージmcC、mcDのIDを読み出す。
ステップS42では、CAN判断処理回路33が図4(A)に示す宛先検索テーブル31から該IDに対応する送信宛先のCAN通信線12を読み出し、読出回路33bに読み出しの指令を出す。
FIG. 9 is a flowchart showing the operation when the
In step S41, the CAN
In step S42, the CAN
ステップS43では、CANコントローラ24の送信回路24bが、CAN通信線12が他のECU13がメッセージの送信を行っていない開放状態であるか否かを検知している。CAN通信線12が開放状態である場合はステップS44に進む。CAN通信線12が開放状態で無い場合は、開放状態になるまでステップS43を繰り返す。
ステップS44では、読出回路33bはメモリ26からCANメッセージを読み出し、CANコントローラ24の送信回路24b、CANドライバ22を介してCAN通信線12にCANメッセージを送信する。
In step S43, the
In step S44, the
前記構成によれば、メッセージの中継を行うメインコントローラ30は、CPUではなくハードウェアで構成し、また、CANドライバ22、CANコントローラ24、FlexRayドライバ21、FlexRayコントローラ23もハードウェアで構成し、メインコントローラ30と一体化した半導体として構成しているため、メインコントローラ30とCANコントローラ24及びFlexRayコントローラ23等とのメッセージの送受信にかかる時間が短縮できると共に、メインコントローラ30とFlexRayコントローラ23またはCANコントローラ24との間のメッセージの送受信を並行して行うことができ、中継接続ユニットの動作速度を上げてメッセージの中継速度を向上させることができる。
According to the above configuration, the
図10乃至図14は本発明の第2実施形態を示す。
第2実施形態の中継接続ユニット20の構成は図2に示す第1実施形態の構成と同様であるが、メインコントローラ30の機能が異なっている。
10 to 14 show a second embodiment of the present invention.
The configuration of the
第1実施形態では、メインコントローラ30は該メモリ26から複数のCANメッセージを読み出して1つのFlexRayメッセージに変換していたが、第2実施形態では、1のCANメッセージをFlexRayメッセージに変換してFlexRay通信線11に送信している。
図10(B)に示すように、CANメッセージのうちデータフィールド43を取り出してFlexRayメッセージのペイロードセグメント45としている。
In the first embodiment, the
As shown in FIG. 10B, the
宛先検索テーブル31は、図4(A)、(B)の宛先検索テーブル31に変えて、CANメッセージをFlexRayメッセージに変換する際に参照する第1記憶テーブルT1と、FlexRayメッセージをCANメッセージに変換する際に参照する第2記憶テーブルT2を備えている。
図11(A)は第1記憶テーブルT1の一例を示し、タイムスロットのスロット番号と送信周期とCANメッセージのIDとの関係を規定している。
図11(B)は第2記憶テーブルT2の一例を示し、CANメッセージのIDとデータ長の関係を規定している。
The address search table 31 is changed to the address search table 31 of FIGS. 4A and 4B, and the first storage table T1 referred to when converting the CAN message into the FlexRay message, and the FlexRay message converted into the CAN message. A second storage table T2 to be referred to.
FIG. 11A shows an example of the first storage table T1, and defines the relationship between the slot number of the time slot, the transmission cycle, and the ID of the CAN message.
FIG. 11B shows an example of the second storage table T2, which defines the relationship between the ID of the CAN message and the data length.
CAN判断処理回路33の中継処理回路34はCANドライバ22、CANコントローラ24を介してCANメッセージを受信するとCANメッセージのIDから第1記憶テーブルT1を参照して、FlexRay通信線11に送信すべきメッセージか否かを判断する。例えば図11(A)に示す第1記憶テーブルT1にIDが存在する場合には、該CANメッセージをFlexRay通信線11に送信すべきメッセージであると判断する。送信すべきメッセージの場合は、第1記憶テーブルT1からIDに対応するFlexRay通信線11に送信する送信周期とタイムスロットのスロット番号を読み出して書込回路33aに送信する。
また、FlexRay通信線11に送信する必要がないと判断した場合は、該CANメッセージを破棄する。
When the
If it is determined that there is no need to transmit to the
例えば、CAN通信線12から周期的に受信するCANメッセージのIDが「3」であるときには、中継処理回路34は、第1記憶テーブルT1より3周期目のタイムスロットのスロット番号「5」でFlexRay通信線11に送信することを読み出し、書込回路33aに送信する。
For example, when the ID of the CAN message periodically received from the
FlexRay判断処理回路32のスロット番号管理回路37は周期管理回路36から現在の送信周期情報を受信すると共に現在のスロット番号を検知し、現在のスロット番号と送信周期を図11(A)に示すテーブルと比較して中継接続ユニット20がFlexRayメッセージを送信可か否かを判断している。図11(A)に現在のスロット番号と送信周期が記載されていれば送信可であると判断して、スロット番号管理回路37は第1記憶テーブルT1から現在のスロット番号と送信周期に対応するCANメッセージのIDを読み出し、読出回路32bにFlexRayメッセージ送信の指令を出すと共に、CANメッセージのIDを送信している。
The slot
FlexRay判断処理回路32の読出回路32bはタイミング回路35の指令を受け、メモリ26から該IDのCANメッセージを読み出してFlexRayメッセージに変換している。
読出回路32bは読み出したCANメッセージからデータフィールド43を取り出し、ヘッダセグメント44を取り付けると共にパディング処理を行ってFlexRayメッセージとしている。
即ち、中継接続ユニット20がCANメッセージをFlexRayメッセージに変換して中継するタイミングは第1記憶テーブルT1により定め、中継接続ユニット20がCANメッセージを受信するタイミングに基づかない。
The
The
That is, the timing at which the
また、中継接続ユニット20がFlexRayメッセージを受信した場合には、FlexRay判断処理回路32のスロット番号管理回路37はFlexRayメッセージを受信したスロット番号と送信周期から、前記第1記憶テーブルT1を参照してFlexRayメッセージに含まれるCANメッセージのIDを読み出す。次に、メッセージのIDから第2記憶テーブルT2を参照してCANメッセージのデータ長を読み出し、IDとデータ長を書込回路33aに送信する。
書込回路32aでは、FlexRayメッセージをヘッダセグメント44とペイロードセグメント45に分割し、ペイロードセグメント45のデータにアービトレーションフィールド41とコントロールフィールド42を付けてIDとデータ長(DLC)を格納してCANメッセージに変換している。さらに、該CANメッセージをメモリ26に記憶させている。
When the
In the
なお、第1記憶テーブルT1に記載されていない送信周期とスロット番号においては、中継接続ユニット20は該送信周期のタイムスロットのスロット番号ではFlexRayメッセージをFlexRay通信線11に送信しないことを示している。該送信周期のタイムスロットのスロット番号においては、FlexRay通信線11に接続された他の中継接続ユニット20や電子制御ユニットがメッセージを送信しているか、どの中継接続ユニット20等もメッセージを送信していない状態である。
In the transmission cycle and slot number not described in the first storage table T1, the
第2実施形態の中継接続ユニット20の動作を説明する。
図1に示すCAN通信線12Aに接続したECU13A、ECU13Bが夫々CANメッセージmcA、mcBを送信する場合を例にして説明する。
図12はCAN通信線12から中継接続ユニット20がCANメッセージを受信してメモリ26に記憶する場合に、中継接続ユニット20の動作を示すフローチャートである。
Operation | movement of the
An example will be described in which the
FIG. 12 is a flowchart showing the operation of the
ステップS51では、CAN通信線12からCANメッセージmcA、mcBを夫々受信している。
ステップS52では、メインコントローラ30の中継処理回路34がCANメッセージのアービトレーションフィールド41からIDを読み出し、宛先検索テーブル31の第1記憶テーブルT1を参照して、該CANメッセージを変換したFlexRayメッセージをFlexRay通信線11に送信する送信周期とスロット番号を読み出す。第1記憶テーブルT1にCANメッセージのIDが記載されている場合は、送信先があるとしてステップS53に進む。IDが記載されていない場合は、送信不要であるとしてステップS55に進む。
ステップS53では、中継処理回路34は書込回路33aにCANメッセージの書込みの指令を出すと共に、スロット番号と送信周期を書込回路33aに送信している。
ステップS54では、書込回路33aはCANコントローラ24から受信したCANメッセージと、スロット番号及び送信周期をメモリ26に書き込んでいる。
ステップS55ではCANメッセージを破棄している。
In step S51, CAN messages mcA and mcB are received from the
In step S52, the
In step S53, the
In step S54, the
In step S55, the CAN message is discarded.
図13は中継接続ユニット20がメモリ26に記憶したCANメッセージをFlexRay通信線11に送信する場合の動作を示すフローチャートである。
ステップS61からステップS65は第1実施形態のステップS21からステップS25と同様であり、FlexRayコントローラ23の同期信号発生回路27が送信する同期信号から周期管理回路36とスロット番号管理回路37が送信周期とスロット番号を検知して、中継接続ユニット20が例えば図11(A)に示す宛先検索テーブルからFlexRayメッセージを送信できるスロット番号及び送信周期であるか否かを判断している。
FIG. 13 is a flowchart showing an operation when the
Steps S61 to S65 are the same as steps S21 to S25 of the first embodiment. The
ステップS66では、スロット番号管理回路37は読出回路32bにスロット番号及び送信周期の情報を送信する。
ステップS67では、読出回路32bはメモリ26に記憶されたスロット番号及び送信周期と一致するCANメッセージを読み出す。
In step S66, the slot
In step S67, the
ステップS68では、読出回路32bはCANメッセージのデータフィールド43だけを取り出してFlexRayメッセージのペイロードセグメント45に格納し、ヘッダセグメント44を取り付けてFlexRayメッセージに変換する。
ステップS69では、メインコントローラ30はFlexRayメッセージをFlexRayコントローラ23の送信回路23bとFlexRayドライバ21を介してFlexRay通信線11に送信している。
In step S68, the
In step S 69, the
図14はFlexRay通信線11から中継接続ユニット20がFlexRayメッセージを受信してメモリ26に記憶する場合に、中継接続ユニット20の動作を示すフローチャートである。
図1に示すCAN通信線12Bに接続したECU13C、ECU13Dが送信したCANメッセージmcC、mcDを中継接続ユニット20BがFlexRayメッセージに変換してFlexRay通信線11に送信した場合の中継接続ユニット20Aの動作を例として説明する。
FIG. 14 is a flowchart showing the operation of the
The operation of the
ステップS71では、FlexRay通信線11からFlexRayメッセージを受信しており、FlexRayドライバ21、FlexRayコントローラ23の受信回路23aを介して、メインコントローラ30の書込回路32aがFlexRayメッセージを受信する。
ステップS72では、同期信号発生回路27が同期信号をスロット番号管理回路37と周期管理回路36に送信し、スロット番号管理回路37が現在のスロット番号を検知すると共に、周期管理回路36が送信周期を検知し、スロット番号管理回路37に周期管理回路36から送信周期の情報が送信される。
ステップS73では、スロット番号管理回路37は、宛先検索テーブル31の第1記憶テーブルT1を参照して、スロット番号と送信周期からFlexRayメッセージに含まれるCANメッセージのIDを読出している。
In step S71, the FlexRay message is received from the
In step S72, the synchronization
In step S73, the slot
ステップS74では、スロット番号管理回路37は該IDから第2記憶テーブルT2を参照してDLC(データ長)を読出している。
ステップS75では、スロット番号管理回路37はIDとDLCを書込回路32aに送信している。
ステップS76では、書込回路32aが受信したFlexRayメッセージのペイロードセグメント45に格納されたデータをCANメッセージのデータフィールド43に格納すると共に、アービトレーションフィールド41とコントロールフィールド42にIDとDLCを格納する。即ち、FlexRayメッセージをCANメッセージに変換している。
ステップS77では書込回路32aはCANメッセージをメモリ26に記憶している。
In step S74, the slot
In step S75, the slot
In step S76, the data stored in the
In step S77, the
中継接続ユニット20がメモリ26に記憶したCANメッセージをCAN通信線12に送信する場合の動作は第1実施形態と同様であるため、記載を省略する。
Since the operation when the
本実施形態によっても、中継接続ユニットの構成をハードウェア化することで、中継接続ユニットの動作速度を上げてメッセージの中継速度を向上させることができる。
なお、他の構成および作用効果は第1実施形態と同様のため、同一の符号を付して説明を省略する。
Also according to the present embodiment, by implementing the configuration of the relay connection unit in hardware, it is possible to increase the operation speed of the relay connection unit and improve the message relay speed.
In addition, since another structure and an effect are the same as that of 1st Embodiment, the same code | symbol is attached | subjected and description is abbreviate | omitted.
11 FlexRay通信線
12 CAN通信線
20 中継接続ユニット
21 FlexRayドライバ
22 CANドライバ
23 FlexRayコントローラ
24 CANコントローラ
26 メモリ
27 同期信号発生回路
30 メインコントローラ
31 宛先検索テーブル
35 タイミング回路
36 周期管理回路
37 スロット番号管理回路
11
Claims (7)
時分割されたタイムスロットでFlexRayメッセージを通信する前記FlexRay通信線と接続され、FlexRayメッセージを送受信するFlexRayドライバと、
ID(識別子)を備えるCANメッセージを通信するCAN通信線と接続され、CANメッセージを送受信するCANドライバと、
前記FlexRayドライバに接続されるFlexRayコントローラと、
前記CANドライバに接続されるCANコントローラと、
前記2つのコントローラに接続され、受信した前記FlexRayメッセージ及びCANメッセージの送信宛先を記憶した宛先検索テーブルと、該宛先検索テーブルからの送信の要否を検出する判断処理回路を備えたメインコントローラと、
前記メインコントローラに接続され、前記判断処理回路で送信要とされたメッセージを記憶するメモリを備え、
前記判断処理回路はCANコントローラと接続されるCAN判断処理回路と、FlexRayコントローラに接続されるFlexRay判断処理回路を備え、
前記宛先検索テーブルにはCANメッセージのIDに対応するデータ長が記憶され、
前記FlexRay判断処理回路は、受信した前記FlexRayメッセージのペイロードセグメントを前記CANメッセージのデータフィールドとすると共に、前記FlexRayメッセージを受信したタイムスロットのスロット番号と送信周期から前記宛先検索テーブルを参照してCANメッセージのIDとデータ長を読み出し、該IDをアービトレーションフィールドに記載し、データ長をコントロールフィールドに記載してCANメッセージに変換して該CANメッセージを前記メモリに送信し、前記CAN判断処理回路は、前記メモリからCANメッセージを読み出して前記CAN通信線に送信することを特徴とする車載用中継接続ユニット。 A relay connection unit that is connected to a bus composed of a CAN communication line and a FlexRay communication line, and relays a message transmitted and received through the bus by converting a protocol;
A FlexRay driver connected to the FlexRay communication line for communicating a FlexRay message in a time-divided time slot and transmitting / receiving a FlexRay message;
A CAN driver connected to a CAN communication line for communicating a CAN message having an ID (identifier), and transmitting / receiving a CAN message;
A FlexRay controller connected to the FlexRay driver;
A CAN controller connected to the CAN driver;
A main controller that is connected to the two controllers and includes a destination search table that stores transmission destinations of the received FlexRay message and CAN message; and a determination processing circuit that detects whether transmission from the destination search table is necessary;
A memory that is connected to the main controller and stores a message to be transmitted by the determination processing circuit ;
The determination processing circuit includes a CAN determination processing circuit connected to the CAN controller, and a FlexRay determination processing circuit connected to the FlexRay controller,
The destination search table stores a data length corresponding to the ID of the CAN message,
The FlexRay determination processing circuit uses the payload segment of the received FlexRay message as a data field of the CAN message, and refers to the destination search table from the slot number and transmission cycle of the time slot that received the FlexRay message. The message ID and data length are read, the ID is written in the arbitration field, the data length is written in the control field, converted to a CAN message, and the CAN message is sent to the memory. An in-vehicle relay connection unit that reads a CAN message from the memory and transmits the CAN message to the CAN communication line .
前記FlexRay判断処理回路は、タイムスロットと送信周期を検知して、前記中継接続ユニットに割り当てられFlexRayメッセージを送信することができるタイムスロットと送信周期であることを判断した場合に、前記メモリに記憶されたCANメッセージを順に読み出し、FlexRayメッセージに変換して送信する請求項1に記載の車載用中継接続ユニット。 Before SL CAN determination processing circuit sends a CAN message received in the memory,
When the FlexRay determination processing circuit detects a time slot and a transmission cycle and determines that the time slot and the transmission cycle are assigned to the relay connection unit and can transmit the FlexRay message, the FlexRay determination processing circuit stores the time slot and the transmission cycle in the memory. The in-vehicle relay connection unit according to claim 1, wherein the received CAN messages are sequentially read, converted into a FlexRay message, and transmitted.
前記判断処理回路は、前記CANコントローラと接続されるCAN判断処理回路と、FlexRayコントローラに接続されるFlexRay判断処理回路を備え、
前記CAN判断処理回路は、受信したCANメッセージのIDから前記宛先検索テーブルを参照して、該CANメッセージをFlexRayメッセージに変換して送信する際のFlexRayのタイムスロットのスロット番号及び送信周期を読み出し、該CANメッセージ及びFlexRayのスロット番号及び送信周期を前記メモリに送信し、
前記FlexRay判断処理回路は、タイムスロットと送信周期を検知して、前記中継接続ユニットに割り当てられFlexRayメッセージを送信することができるタイムスロットと送信周期であることを判断した場合に、前記メモリからタイムスロットのスロット番号及び送信周期に該当するCANメッセージを読み出し、FlexRayメッセージに変換して送信する請求項1に記載の車載用中継接続ユニット。 The destination search table of the main controller assigns an ID of the CAN message for each time slot and transmission cycle for FlexRay message communication,
The determination processing circuit includes a CAN determination processing circuit connected to the CAN controller, and a FlexRay determination processing circuit connected to the FlexRay controller,
The CAN determination processing circuit refers to the destination search table from the received CAN message ID, reads the slot number and the transmission cycle of the FlexRay time slot when the CAN message is converted into a FlexRay message and transmitted, Sending the CAN message and FlexRay slot number and transmission cycle to the memory;
When the FlexRay determination processing circuit detects a time slot and a transmission cycle and determines that it is a time slot and a transmission cycle that can be assigned to the relay connection unit and can transmit a FlexRay message, the time is read from the memory. The in-vehicle relay connection unit according to claim 1, wherein a CAN message corresponding to a slot number and a transmission cycle of the slot is read, converted into a FlexRay message, and transmitted.
該FlexRay判断処理回路は、前記同期信号からFlexRayメッセージ通信用の現在の送信周期を検知する周期管理回路と、前記同期信号からFlexRayメッセージ通信用の現在のタイムスロットのスロット番号を検知するスロット番号管理回路を備え、
前記スロット番号管理回路は、前記中継接続ユニットに割り当てられFlexRayメッセージを送信することができるスロット番号と送信周期を予め備えており、前記周期管理回路は送信周期を前記スロット番号管理回路に送信し、前記スロット番号管理回路は前記現在のスロット番号及び送信周期と前記記憶したスロット番号および送信周期を比較してFlexRayメッセージを送信できるスロットか否かを判断している請求項1乃至請求項6のいずれか1項に記載の車載用中継接続ユニット。 The FlexRay controller includes a synchronization signal generation circuit that transmits a synchronization signal to the FlexRay determination processing circuit.
The FlexRay determination processing circuit detects a current transmission cycle for FlexRay message communication from the synchronization signal, and a slot number management for detecting a slot number of a current time slot for FlexRay message communication from the synchronization signal. With a circuit,
The slot number management circuit is provided with a slot number and a transmission cycle assigned to the relay connection unit and capable of transmitting a FlexRay message in advance, and the cycle management circuit transmits a transmission cycle to the slot number management circuit, any said slot number management circuit of claims 1 to 6 is determined whether the slot or not capable of sending FlexRay messages by comparing the slot number and transmission period after the said storage slot number and transmission cycle of the current The in-vehicle relay connection unit according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007115464A JP4958619B2 (en) | 2007-04-25 | 2007-04-25 | Relay connection unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007115464A JP4958619B2 (en) | 2007-04-25 | 2007-04-25 | Relay connection unit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008277873A JP2008277873A (en) | 2008-11-13 |
JP4958619B2 true JP4958619B2 (en) | 2012-06-20 |
Family
ID=40055364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007115464A Expired - Fee Related JP4958619B2 (en) | 2007-04-25 | 2007-04-25 | Relay connection unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4958619B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5069043B2 (en) * | 2007-05-28 | 2012-11-07 | 株式会社デンソー | Relay device, network system, program, and hardware description code |
JP5382472B2 (en) * | 2009-04-08 | 2014-01-08 | トヨタ自動車株式会社 | Data relay apparatus and data relay method used in the apparatus |
JP5391897B2 (en) * | 2009-07-17 | 2014-01-15 | 株式会社デンソー | node |
EP2509263B1 (en) | 2009-12-02 | 2016-08-10 | Toyota Jidosha Kabushiki Kaisha | Data communication network system |
JP5255579B2 (en) * | 2010-02-09 | 2013-08-07 | 日立オートモティブシステムズ株式会社 | In-car data relay device, vehicle control system |
KR101094812B1 (en) | 2010-07-15 | 2011-12-16 | 재단법인대구경북과학기술원 | Method and apparatus of processing pararell message in heterogeneous communication |
KR101601303B1 (en) * | 2010-09-01 | 2016-03-09 | 현대자동차주식회사 | Method for mediating message with differed typed protocol |
JP5907499B2 (en) * | 2011-05-11 | 2016-04-26 | 矢崎総業株式会社 | Relay device and connector |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4401239B2 (en) * | 2004-05-12 | 2010-01-20 | Necエレクトロニクス株式会社 | Communication message converter, communication method, and communication system |
-
2007
- 2007-04-25 JP JP2007115464A patent/JP4958619B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008277873A (en) | 2008-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4958619B2 (en) | Relay connection unit | |
JP4950704B2 (en) | In-vehicle relay connection unit | |
CN113204226B (en) | Vehicle diagnosis system and method | |
US11463275B2 (en) | Electronic control unit, frame generating method, and non-transitory computer-readable recording medium storing a program | |
JP5308802B2 (en) | CAN node | |
US7826479B2 (en) | Communication message conversion device, communication method and communication system | |
KR100786814B1 (en) | Integrated network system for automobile and gateway therefor | |
US20100057959A1 (en) | Method as well as system for the transmission of cyclic and acyclic data | |
CN112075063B (en) | Gateway for data communication in a vehicle | |
JPWO2017090351A1 (en) | In-vehicle gateway device, electronic control device, in-vehicle network system | |
US11374795B2 (en) | Gateway apparatus and method for controlling thereof | |
CN113169916B (en) | Subscriber station for a serial bus system and method for communication in a serial bus system | |
US6741566B1 (en) | Remote management ethernet network and device | |
US20150010017A1 (en) | Communication network for transmission of messages | |
US10230656B2 (en) | Method and apparatus for controlling message over heterogeneous network | |
US20060083266A1 (en) | Initial access signaling method in synchronous ethernet device | |
JP4839140B2 (en) | Relay connection unit | |
KR100775516B1 (en) | Control system of flexray and can and method thereof | |
JP2006519532A (en) | Synchronous multi-cluster network architecture | |
JP2006519532A5 (en) | ||
KR100609493B1 (en) | Method for transmitting multiple sensors data with a CAN message | |
An et al. | Analysis of CAN FD to CAN message routing method for CAN FD and CAN gateway | |
CN116346720A (en) | Information transmission device and method | |
KR100226781B1 (en) | Method for recognizing node | |
US8576704B2 (en) | Communication system, communication device, integrated circuit, and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090930 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110930 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111011 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111208 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120306 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120319 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150330 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |