JP2001168889A - Electronic control unit - Google Patents

Electronic control unit

Info

Publication number
JP2001168889A
JP2001168889A JP34756399A JP34756399A JP2001168889A JP 2001168889 A JP2001168889 A JP 2001168889A JP 34756399 A JP34756399 A JP 34756399A JP 34756399 A JP34756399 A JP 34756399A JP 2001168889 A JP2001168889 A JP 2001168889A
Authority
JP
Japan
Prior art keywords
communication
data
sub
main
microcomputer
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.)
Granted
Application number
JP34756399A
Other languages
Japanese (ja)
Other versions
JP4221857B2 (en
Inventor
Sanae Hirata
佐奈恵 平田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP34756399A priority Critical patent/JP4221857B2/en
Publication of JP2001168889A publication Critical patent/JP2001168889A/en
Application granted granted Critical
Publication of JP4221857B2 publication Critical patent/JP4221857B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Multi Processors (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an in electronic control (ECU) by which a response time from the input of interrogation data to the output of response data is shortened and communication with another electronic control is normally executed. SOLUTION: This ECU 1 consists of a controller 10, having microcomputers 12 and 14 capable of mutual communication and communication equipment 30 having communication ICs 32 and 34. The ICs 32 and 34 are respectively connected to the microcomputers 12 and 14. Then the microcomputers 12 and 14 individually and directly input interrogation data which is transmitted to the ECU 1 via a bus 9. In the ECU 1, a time for inputting the interrogation data to the microcomputer 14 is shorter than that in the conventional ECU 1, which is provided with the communication IC only in the microcomputer 12. Then the response time necessary for outputting the response data responding to the interrogation data is shortened, and also communication is executed via another communication IC eve when one communication IC is in trouble, so that communication can be normally executed with another ECU 1.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、予め分担された制
御を個々に実行するとともに、車両内に配線された車両
用LANを介して通信を行い、各種データを送受信する
車載装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an in-vehicle device for individually executing pre-assigned control, performing communication via a vehicle LAN wired in a vehicle, and transmitting and receiving various data.

【0002】[0002]

【従来の技術】従来より、車両では、ワイヤハーネスの
削減や機器の標準化を目的として、水温センサ152
や、車輪速度センサ等のように各種データを取得するた
めのデータ取得装置をいくつかに仕分けし、この仕分け
られたデータ取得装置150毎に、車両を制御するため
の処理を行うコンピュータからなる制御装置110と、
データを通信するための通信装置130とからなる車載
装置であるECU(エレクトロニック・コントロール・
ユニット)100を取り付け、このECU100同士が
互いに通信できるように、車両内に配線されたバス10
9に接続して、車両用LAN(ローカル・エリア・ネッ
トワーク)を構築している。
2. Description of the Related Art Conventionally, a vehicle has been equipped with a water temperature sensor 152 for the purpose of reducing wire harnesses and standardizing equipment.
And a data acquisition device for acquiring various data, such as a wheel speed sensor, which is divided into several units, and for each of the divided data acquisition devices 150, a control including a computer for performing a process for controlling a vehicle. Device 110;
An ECU (Electronic Control System), which is an in-vehicle device including a communication device 130 for communicating data.
Unit 100), and a bus 10 wired in the vehicle so that the ECUs 100 can communicate with each other.
9 to construct a vehicle LAN (local area network).

【0003】そして、この車両用LANが構築された車
両では、各ECU100は、エンジン制御、トランスミ
ッション制御等の予め分担された各種制御を実行するよ
うに設定されるとともに、バス109を介して他のEC
U100と通信を行って、必要なデータを入出力するよ
うにされる。
[0003] In the vehicle in which the vehicle LAN is constructed, each ECU 100 is set to execute various pre-assigned controls such as engine control and transmission control. EC
It communicates with U100 to input and output necessary data.

【0004】ところで近年、車両には、燃費の向上、排
出ガス中の二酸化炭素の軽減など、技術的により高度で
複雑な制御を行うことが求められている。そのため、各
ECU100の制御装置110は、このような複雑で高
度な制御を実行可能であることが求められている。しか
しその一方で、車両の価格を抑えるため、制御装置11
0の生産コストを抑えることも求められている。このよ
うな事情から制御装置110としては、最新のマイコン
に比べ処理速度等の性能が劣るものの値段の安いマイク
ロコンピュータ(以下「マイコン」という)を複数組み
合わせたものが用いられている。
[0004] In recent years, vehicles have been required to perform technically advanced and complicated controls such as improvement of fuel efficiency and reduction of carbon dioxide in exhaust gas. Therefore, the control device 110 of each ECU 100 is required to be able to execute such complicated and sophisticated control. However, on the other hand, the control device 11
It is also required to reduce the production cost of zero. Under these circumstances, the control device 110 is a combination of a plurality of low-priced microcomputers (hereinafter referred to as “microcomputers”) that are inferior in performance such as processing speed as compared to the latest microcomputers.

【0005】この制御装置110は、具体的には、図8
に示すように、通信装置130に接続されたメインマイ
コン112と、このメインマイコン112に通信線αで
接続された複数のサブマイコン114(図8では1つの
み図示してある)とを備え、各マイコン112,114
は、SPI(シリアル・ペリフェラル・インターフェイ
ス)通信により、内部通信可能に構成されている。
[0005] Specifically, this control device 110 is shown in FIG.
As shown in FIG. 8, a main microcomputer 112 connected to the communication device 130, and a plurality of sub-microcomputers 114 (only one is shown in FIG. 8) connected to the main microcomputer 112 via a communication line α, Each microcomputer 112, 114
Are configured to be capable of internal communication by SPI (Serial Peripheral Interface) communication.

【0006】またこの制御装置110の各マイコン11
2,114では、ECU100毎に分担された制御がさ
らに細かく分担して行われ、例えば、エンジン制御を行
うECU100Eの場合、メインマイコン112では噴
射、点火制御、サブマイコン114ではスロットル開度
に関する制御が行われる。
The microcomputers 11 of the control device 110
2 and 114, the control assigned to each of the ECUs 100 is further finely assigned. For example, in the case of the ECU 100E that performs engine control, the main microcomputer 112 performs injection and ignition control, and the sub microcomputer 114 controls the throttle opening. Done.

【0007】そして各マイコン112,114でこのよ
うな制御を行うため、分担された制御に応じて、各デー
タ取得装置150がそれぞれ接続される。このデータ取
得装置150は、ECU100Eの場合、噴射、点火制
御を行うメインマイコン112には水温センサ152等
が、また、スロットル開度に関する制御を行うサブマイ
コン114にはスロットルセンサ156等が接続され、
エンジン回転数を検出する検出回路154は、各マイコ
ン112,114がデータを取得するスピードの関係か
ら、いずれのマイコン112,114にも接続されてい
る。
[0007] In order to perform such control by each of the microcomputers 112 and 114, each of the data acquisition devices 150 is connected according to the shared control. In the data acquisition device 150, in the case of the ECU 100E, a water temperature sensor 152 and the like are connected to the main microcomputer 112 that performs injection and ignition control, and a throttle sensor 156 and the like are connected to the sub-microcomputer 114 that performs control related to throttle opening.
The detection circuit 154 for detecting the engine speed is connected to both the microcomputers 112 and 114 because of the speed at which the microcomputers 112 and 114 acquire data.

【0008】以上のように構成されたECU100で
は、データを受信する場合、まず通信装置130がデー
タを受信する。そして、そのデータをメインマイコン1
12が通信装置130から入力し、さらにサブマイコン
114に転送している。一方、このECU100では、
データを送信する場合、各マイコン112,114で送
信すべきデータが準備され、まず、サブマイコン114
からメインマイコン112へ、サブマイコン114で準
備されたデータが送信される。そして、メインマイコン
112は、それら準備されたデータをバス109を介し
て通信するのに適応したデータに変換し、その変換した
データを通信装置130を介して送信している。
In the ECU 100 configured as described above, when receiving data, first, the communication device 130 receives the data. Then, the data is transferred to the main microcomputer 1
12 is input from the communication device 130 and further transferred to the sub-microcomputer 114. On the other hand, in this ECU 100,
When transmitting data, data to be transmitted is prepared by each of the microcomputers 112 and 114.
Then, the data prepared by the sub-microcomputer 114 is transmitted to the main microcomputer 112. Then, the main microcomputer 112 converts the prepared data into data adapted for communication via the bus 109, and transmits the converted data via the communication device 130.

【0009】具体的には、例えばトランスミッション制
御を行っているECU100Tが、水温やスロットル開
度に関するデータが必要な場合、図9に示すように、こ
れらのデータの出力を要求する質問データを、これらの
データを扱っているECU100Eに出力する。すると
ECU100Eでは、まず、メインマイコン112がそ
の質問データを通信装置130を介して入力し、その質
問データをさらにサブマイコン114に転送する。そし
て、サブマイコン114では、スロットル開度データ等
が準備されるので、そのデータ等がメインマイコン11
2に送信され、一方メインマイコン112でも水温デー
タ等が準備される。そして、メインマイコン112は、
これら水温データ及びスロットル開度データ等により、
質問データに応答するデータである応答データが作成さ
れ、この応答データを、通信装置130を介して、質問
データの送信元であるECU100Tに出力しているの
である。
Specifically, for example, when the ECU 100T performing the transmission control needs data on the water temperature and the throttle opening, as shown in FIG. Is output to the ECU 100E which handles the data of (1). Then, in the ECU 100E, first, the main microcomputer 112 inputs the question data via the communication device 130, and further transfers the question data to the sub-microcomputer 114. The sub microcomputer 114 prepares throttle opening data and the like, and the data and the like are stored in the main microcomputer 11.
2, the main microcomputer 112 prepares water temperature data and the like. Then, the main microcomputer 112
Based on these water temperature data and throttle opening data,
Response data that is data that responds to the question data is created, and the response data is output via the communication device 130 to the ECU 100T that is the transmission source of the question data.

【0010】尚、このシステムでは、近年、ドイツボッ
シュ社のCAN( コントローラ・エリア・ネットワー
ク)プロトコルが、車両用LANのプロトコルとして広
く用いられるようになっている。
In this system, recently, a CAN (Controller Area Network) protocol of Bosch Germany has been widely used as a protocol for a vehicle LAN.

【0011】[0011]

【発明が解決しようとする課題】しかし、上述したEC
U100では、通信装置130が受信したデータをサブ
マイコン114に入力する場合、メインマイコン112
に転送してもらう必要があったため、転送分の時間を要
してしまっていた。特に、通信装置130がデータを受
信したとき、メインマイコン112が、何らかの処理を
行ってデータを入力することができない、いわゆるビジ
ィ状態である場合、さらに入力に時間を要してしまって
いた。そのため、従来のECU100では、質問データ
を受信してから応答データを送信するまでの応答時間が
非常に長くなり、車両用LAN全体では、単位時間当た
りに行える制御の数が少なくなってしまい、全体に緩慢
な制御になってしまうという問題があった。
However, the above-mentioned EC
In U100, when data received by the communication device 130 is input to the sub-microcomputer 114, the main microcomputer 112
Had to be transferred to the Internet, which took time for the transfer. In particular, when the communication device 130 receives data, if the main microcomputer 112 is in a so-called busy state in which data cannot be input by performing some processing, it takes more time to input. Therefore, in the conventional ECU 100, the response time from the reception of the question data to the transmission of the response data becomes extremely long, and the number of controls that can be performed per unit time in the entire vehicle LAN is reduced. There is a problem that the control becomes slow.

【0012】また、例えば、CANプロトコルを用いた
車両用LANでは、テスタをバス109に接続して、各
モジュールに質問データを出力して応答データを取得す
ることが可能であるが、しかし、このテスタは、一般に
質問データをECU100に出力してから応答データが
入力されるまでの時間が50msを越えるとエラーと判
定するため、上述のように応答時間が長くなると、テス
タがデータを取得できないなどの障害が発生した。
For example, in a vehicular LAN using the CAN protocol, it is possible to connect a tester to the bus 109, output question data to each module, and obtain response data. In general, the tester determines that an error occurs when the time from when the question data is output to the ECU 100 to when the response data is input exceeds 50 ms. Therefore, if the response time is long as described above, the tester cannot acquire data. Failed.

【0013】また、このECU100では、通信装置1
30でしか通信が行われないので、通信装置130が故
障する等した場合、このECU100は通信不能になる
という問題もあった。そこで、本発明では、応答時間が
短く、また、常に他の車載装置と通信可能な車載装置を
提供することを目的とする。
In the ECU 100, the communication device 1
Since communication is performed only in the ECU 30, the ECU 100 has a problem that the communication becomes impossible if the communication device 130 breaks down. Therefore, an object of the present invention is to provide an in-vehicle device that has a short response time and can always communicate with another in-vehicle device.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
の請求項1記載の車載装置は、メインマイコンに相当す
る主データ処理手段に接続されている通信装置を主通信
装置とし、サブマイコンに相当する副データ処理手段毎
に、副データ処理手段がバスを介して他装置との通信を
行うための副通信手段を設け、副データ処理手段は、副
通信手段を介して車載装置宛データを受信するようにす
ることを特徴とする。
According to a first aspect of the present invention, there is provided an on-vehicle apparatus in which a communication device connected to a main data processing means corresponding to a main microcomputer is used as a main communication device, and a sub-microcomputer is used as a communication device. For each corresponding sub-data processing means, a sub-communication means is provided for the sub-data processing means to communicate with another device via the bus, and the sub-data processing means transmits data destined for the vehicle-mounted device via the sub-communication means. It is characterized by receiving.

【0015】この請求項1記載の車載装置では、主デー
タ処理手段及び副データ処理手段は、車両用LANを介
して当該車載装置に送られてくる、前述した質問データ
を含む車載装置宛データを、それぞれに備えられた主通
信装置及び副通信装置を通じて個別に直接入力してい
る。つまり、副データ処理手段では、従来装置のように
主データ処理手段を介することなく車載装置宛データを
直接獲得することができるのである。
In the vehicle-mounted device according to the first aspect, the main data processing means and the sub-data processing means transmit the data addressed to the vehicle-mounted device including the above-mentioned question data sent to the vehicle-mounted device via the vehicle LAN. Are directly input individually through the main communication device and the sub communication device provided for each. In other words, the sub-data processing means can directly acquire the data destined for the on-vehicle device without passing through the main data processing means unlike the conventional device.

【0016】また、この請求項1記載の車載装置では、
車載装置宛データを主データ処理手段から副データ処理
手段に転送する必要がないので、主データ処理手段と副
データ処理手段との間の通信量が減る。従って、この請
求項1記載の車載装置を用いると、従来主データ処理手
段から副データ処理手段への転送に要していた時間分だ
け、質問データを入力してから応答データを出力するま
での応答時間を短くすることができる。また、この車載
装置を用いると、主データ処理手段と副データ処理手段
との間の通信量が減るので、両データ処理手段間の通信
処理を行う必要がなくなった分だけ、数多くの種類の制
御を各データ処理手段で行うことができ、車両用LAN
全体では、単位時間当たりに行える制御の数が増え、全
体に迅速な制御を行える。
In the vehicle-mounted device according to the first aspect,
Since there is no need to transfer data destined for the in-vehicle device from the main data processing unit to the sub data processing unit, the amount of communication between the main data processing unit and the sub data processing unit is reduced. Therefore, when the in-vehicle device according to claim 1 is used, the time from input of the question data to the output of the response data for the time required for the transfer from the main data processing means to the sub data processing means in the related art is obtained. Response time can be shortened. In addition, when this in-vehicle device is used, the amount of communication between the main data processing means and the sub data processing means is reduced, so that there is no need to perform communication processing between the two data processing means, so that many types of control are performed. Can be performed by each data processing means, and the vehicle LAN
As a whole, the number of controls that can be performed per unit time increases, and quick control can be performed as a whole.

【0017】次に、請求項2記載の車載装置は、主通信
手段及び副通信手段による通信が可能か否かを判定する
通信判定手段を備え、通信判定手段にて通信不能である
と判定された主通信手段あるいは副通信手段に対応する
主データ処理手段あるいは副データ処理手段は、主通信
手段あるいは副通信手段に対応する主データ処理手段あ
るいは副データ処理手段を介して通信している。
Next, the on-vehicle apparatus according to the second aspect of the present invention includes a communication determining means for determining whether communication by the main communication means and the sub-communication means is possible, and the communication determining means determines that communication is impossible. The main data processing means or the sub data processing means corresponding to the main communication means or the sub communication means communicates via the main data processing means or the sub data processing means corresponding to the main communication means or the sub communication means.

【0018】この請求項2記載の車載装置では、主副何
れかの通信手段での通信が不能である場合、他の通信手
段を介して通信を行っているので、車載装置間での通信
が不能になることが防止される。従って、この請求項2
記載の車載装置を用いると、他の車載装置との通信が途
絶えてしまうことを確実に防止でき、他の車載装置と共
同して行う制御の信頼性を向上させることができる。
In the vehicle-mounted device according to the second aspect, when communication by any of the main and sub-communication means is impossible, communication is performed via another communication means. It is prevented from becoming disabled. Therefore, this claim 2
The use of the in-vehicle device described above can reliably prevent interruption of communication with another in-vehicle device, and can improve the reliability of control performed jointly with another in-vehicle device.

【0019】ところで、上述した請求項2記載の車載装
置では、主データ処理手段での通信が不能になったと
き、副データ処理手段で準備されたデータを一旦主デー
タ処理手段に送信し、そして主データ処理手段で作成さ
れた応答データを通信可能な副データ処理手段に送信
し、車両用LANに送信している。このようにしている
のは、応答データを作成する処理が、誤り訂正コード等
の各種コードを添付する処理など、様々な処理を行わな
ければならないため、これらを実行するための送信用プ
ログラムを記憶するのに大きな記憶容量が必要で、この
ように大きな記憶容量を要するプログラムを副データ処
理手段に組み込むと、副データ処理手段で行える制御の
種類が少なくなってしまうからである。
By the way, in the above-mentioned vehicle-mounted device, when communication by the main data processing means is disabled, the data prepared by the sub data processing means is once transmitted to the main data processing means, and The response data created by the main data processing means is transmitted to the communicable sub data processing means and transmitted to the vehicle LAN. This is because the process of creating the response data has to perform various processes such as a process of attaching various codes such as an error correction code, and the transmission program for executing the processes is stored. This is because a large storage capacity is required to perform such operations, and if a program requiring such a large storage capacity is incorporated in the sub-data processing means, the types of control that can be performed by the sub-data processing means are reduced.

【0020】しかし、副データ処理手段のプログラムを
記憶する容量等に余裕があれば、請求項3記載の車載装
置のように、通信判定手段で通信が不能であることが判
定がされた場合、主データ処理手段に代えて、副データ
処理手段の何れかに、応答処理を実行させるよう切り替
え、主データ処理手段を、副通信手段での通信が可能な
他の副データ処理手段で実行するようにしてもよい。
However, if there is sufficient capacity for storing the program of the sub-data processing means, the communication determining means determines that the communication is not possible, as in the vehicle-mounted device according to claim 3. In place of the main data processing unit, one of the sub data processing units is switched to execute the response process, and the main data processing unit is executed by another sub data processing unit that can communicate with the sub communication unit. It may be.

【0021】このようにすると、主通信手段での通信が
不能になったとき、応答処理が副データ処理部で行われ
るので、応答データを作成するため、主データ処理部を
介する場合に比べ、素早く応答データを出力することが
できる。
With this configuration, when the communication by the main communication unit is disabled, the response processing is performed by the sub data processing unit, so that the response data is created. Response data can be output quickly.

【0022】[0022]

【発明の実施の形態】以上説明した制御装置の一実施例
について以下説明する。ここで、図1は、本実施例の車
載装置であるECU(エレクトロニック・コントロール
・ユニット)及び、このECUと他のECUとの接続関
係を説明するためのブロック図である。尚、図6は、本
実施例のECU間で送受信されるデータを説明するため
の説明図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the control device described above will be described below. Here, FIG. 1 is a block diagram for explaining an ECU (Electronic Control Unit), which is an in-vehicle device of the present embodiment, and a connection relationship between this ECU and another ECU. FIG. 6 is an explanatory diagram for explaining data transmitted and received between the ECUs according to the present embodiment.

【0023】本実施例のECU1は、図1に示すよう
に、エンジン制御を行う制御装置10と、他のECU1
と通信を行うための通信装置30とからなる。このうち
制御装置10は、2つのマイクロコンピュータ12,1
4(以下「マイコン12,14」とよぶ)からなり、各
マイコン12,14は、SPI(シリアル・ペリフェラ
ル・インターフェイス)方式の通信線αを介して互いに
通信自在にされている。そしてこの制御装置10では、
各マイコン12,14がエンジン制御に係る制御を分担
して行っており、メインマイコン12が燃料の噴射制御
及び点火プラグの点火制御に関する処理を行い、サブマ
イコン14がスロットル駆動制御に関する処理を行って
いる。また、各マイコン12,14では、後述する通信
装置30を用いてデータの送受信が行えるか否かを判定
する通信判定処理を行っている。
As shown in FIG. 1, the ECU 1 of this embodiment comprises a control device 10 for controlling the engine and another ECU 1
And a communication device 30 for performing communication. The control device 10 includes two microcomputers 12, 1
4 (hereinafter, referred to as "microcomputers 12 and 14"), and the microcomputers 12 and 14 can communicate with each other via a communication line α of a SPI (serial peripheral interface) system. And in this control device 10,
The microcomputers 12 and 14 share control of engine control, the main microcomputer 12 performs processing related to fuel injection control and ignition plug ignition control, and the sub-microcomputer 14 performs processing related to throttle drive control. I have. In addition, each of the microcomputers 12 and 14 performs a communication determination process of determining whether data can be transmitted and received using the communication device 30 described later.

【0024】また、このECU1の制御装置10には、
エンジン制御に必要なデータを取得するための複数のデ
ータ出力装置50が接続されている。具体的には、制御
装置10には、水温センサ52、エンジン回転数検出回
路54、スロットルセンサ56等のデータ出力装置50
が接続され、水温センサ52はメインマイコン12に、
スロットルセンサ56はサブマイコン14に、エンジン
回転数検出回路54はマイコン12,14のいずれにも
接続されている。
The control device 10 of the ECU 1 includes:
A plurality of data output devices 50 for acquiring data required for engine control are connected. Specifically, the control device 10 includes a data output device 50 such as a water temperature sensor 52, an engine speed detection circuit 54, and a throttle sensor 56.
Is connected, and the water temperature sensor 52 is connected to the main microcomputer 12.
The throttle sensor 56 is connected to the sub microcomputer 14, and the engine speed detection circuit 54 is connected to both the microcomputers 12 and 14.

【0025】尚、本実施例のマイコン12,14は、そ
れぞれ、本発明の主データ処理手段、副データ処理手段
に相当する。また、各マイコン12,14はそれぞれ、
CPU、ROM、RAMからなる周知のマイクロコンピ
ュータである。次に、通信装置30は、CANプロトコ
ルを用いた車両用LAN用で用いられる周知の2つの通
信用IC32,34(Intel:82527)からなっており、
各通信用IC32,34は、マイコン12,14にそれ
ぞれ接続されている。以下メインマイコン12に接続さ
れた通信用IC32を主通信用IC32、サブマイコン
14に接続された通信用IC34を副通信用IC34と
よぶ。
The microcomputers 12 and 14 of this embodiment correspond to the main data processing means and the sub data processing means of the present invention, respectively. Each of the microcomputers 12 and 14 respectively
It is a known microcomputer including a CPU, a ROM, and a RAM. Next, the communication device 30 includes two well-known communication ICs 32 and 34 (Intel: 82527) used for a vehicle LAN using the CAN protocol.
The communication ICs 32 and 34 are connected to the microcomputers 12 and 14, respectively. Hereinafter, the communication IC 32 connected to the main microcomputer 12 is referred to as a main communication IC 32, and the communication IC 34 connected to the sub-microcomputer 14 is referred to as a sub-communication IC 34.

【0026】そして各通信用IC32,34は、車内に
配線された車両用LANのバス9にそれぞれ接続され、
このバス9に接続された他のECU1の通信装置との間
で通信自在に構成されている。尚、本実施例の通信用I
C32,34は、本発明の主通信手段、副通信手段にそ
れぞれ相当する。
The communication ICs 32 and 34 are connected to a vehicle LAN bus 9 wired in the vehicle, respectively.
It is configured to be able to communicate freely with a communication device of another ECU 1 connected to the bus 9. Note that the communication I
C32 and C34 correspond to the main communication unit and the sub communication unit of the present invention, respectively.

【0027】一方、本実施例のECU1が接続されるバ
ス9には、図1に示すように、トランスミッションを制
御するECU1Tをはじめとする多くのECU1が接続
され、またこのバス9にはテスタTが接続自在にされて
いる。そして、このバス9に接続された各ECUは、上
述したECU1と同様、各ECUでの制御に必要なデー
タを出力する車輪速センサ等の各種データ取得装置が接
続されている。尚、各ECU1は、本実施例のECU1
と同様マイクロコンピュータを2つ備えるものでもよい
し、1しか備えないもの、あるいは3つ以上備えるもの
であってもよい。
On the other hand, as shown in FIG. 1, many ECUs 1 including an ECU 1T for controlling a transmission are connected to a bus 9 to which the ECU 1 of this embodiment is connected. Is connected freely. Each of the ECUs connected to the bus 9 is connected to various data acquisition devices such as wheel speed sensors that output data necessary for control by each ECU, similarly to the ECU 1 described above. Each ECU 1 is the ECU 1 of the present embodiment.
The microcomputer may be provided with two microcomputers, may be provided with only one, or may be provided with three or more microcomputers.

【0028】このように構成された各ECU1は、質問
データを受信したらそれに応答する応答データを送信す
るようにされており、例えば、ECU1に質問データを
送信すると、図6(A)に示すように、水温、スロット
ル開度、エンジン回転数等のデータからなる応答データ
が送信され、トランスミッション制御を行っているEC
U1Tが質問データを受信すると、図6(B)に示すよ
うに、車両のすべての車輪の速度を表すデータ等からな
る応答データが送信される。尚、図6中の「ID」は、
応答データの中にどのようなデータを含むかを予め定め
た回答形式を表す符号である。すなわち、ID10のデ
ータは、水温、スロットル開度、エンジン回転数等かな
るデータを含んでいる。
When each of the ECUs 1 configured as described above receives the question data, it transmits response data in response to the question data. For example, when the ECU 1 transmits the question data to the ECU 1, as shown in FIG. Response data consisting of data such as water temperature, throttle opening, engine speed, etc. is transmitted to the EC which performs transmission control.
When the U1T receives the question data, response data including data indicating the speeds of all the wheels of the vehicle and the like is transmitted as shown in FIG. Note that “ID” in FIG.
This is a code representing an answer format in which what data is included in the response data is determined in advance. That is, the data of ID10 includes data including water temperature, throttle opening, engine speed, and the like.

【0029】尚、このバス9は、車載された車両用LA
Nには、CAN(コントローラ・エリア・ネットワー
ク)プロトコルが適用されているが、CANプロトコル
については周知であるので本実施例ではその詳述につい
ての説明を省略する。以下、他のECUからECU1宛
のデータを受信したときの、制御装置10の動作につい
て説明する。以下の説明では、主に、エンジン制御を行
う本実施例のECU1Eが、このECU1E宛のデータ
として、質問データを受信した場合について説明する。
尚、このECU1E宛のデータは、本発明の車載装置宛
データに相当する。
The bus 9 is a vehicle LA mounted on a vehicle.
Although a CAN (Controller Area Network) protocol is applied to N, since the CAN protocol is well known, a detailed description thereof will be omitted in this embodiment. Hereinafter, an operation of control device 10 when data addressed to ECU 1 is received from another ECU will be described. In the following description, a case will be mainly described where the ECU 1E of the present embodiment that performs engine control receives question data as data addressed to the ECU 1E.
The data addressed to the ECU 1E corresponds to the data addressed to the vehicle-mounted device of the present invention.

【0030】ここで、図2及び図3は、データの授受を
説明するための模式図である。まず、本実施例のECU
1では、質問データを受信する際、各マイコン12,1
4がそれぞれ通信用IC32,34を備えているので、
図2(A)に示すように、各通信用IC32,34がそ
れぞれ質問データを受信し、各通信用IC32,34が
受信した質問データを各マイコン12,14がそれぞれ
入力する。
FIG. 2 and FIG. 3 are schematic diagrams for explaining data transfer. First, the ECU of the present embodiment
1, when receiving the question data, each microcomputer 12, 1
4 includes communication ICs 32 and 34, respectively.
As shown in FIG. 2A, the communication ICs 32 and 34 respectively receive the question data, and the microcomputers 12 and 14 respectively input the question data received by the communication ICs 32 and 34.

【0031】この質問データには、出力を要求するモー
ド(Mode)01と、回答形式を示すID02とが情報と
して添付されているので、各通信用IC32,34は、
質問データに添付されたモードがECU1から応答デー
タを出力すべきモードか否かを判定して、応答データを
出力すべきモードの場合その質問データを各々受信して
いる。次に、各マイコン12,14は、通信用IC3
2,34が受信した質問データのID02に応じたデー
タを準備する。このとき、サブマイコン14は、データ
D14(例えばスロットル開度を示すデータ)を準備
し、そしてそのデータD14を、モード01に応答する
モードを表すモード41と回答形式ID02とともに、
図2(B)に示すように、SPI通信でメインマイコン
12に送信している。そして、このSPI通信で送信さ
れてきたデータを、メインマイコン12ではRAMに記
憶している。一方、メインマイコン12でも回答形式I
D02に応ずるデータD14(例えば水温を示すデー
タ)が準備され、そのデータD14がRAMに記憶され
る。このようにID02に応ずるべきデータがメインマ
イコン12のRAMにすべて記憶されると、メインマイ
コン12では、それらのデータから応答データを作成
し、図2(C)のように、その応答データを質問データ
の送信元に送信しているのである。
The mode of requesting the output (Mode) 01 and the ID 02 indicating the answer format are attached to the question data as information, so that the communication ICs 32 and 34
It is determined whether or not the mode attached to the question data is a mode in which response data is to be output from the ECU 1. If the mode is to output response data, the question data is received. Next, each of the microcomputers 12 and 14 has a communication IC 3
The data corresponding to ID02 of the question data received by the communication devices 2 and 34 is prepared. At this time, the sub-microcomputer 14 prepares data D14 (for example, data indicating the throttle opening) and stores the data D14 together with a mode 41 representing a mode responding to the mode 01 and an answer format ID02.
As shown in FIG. 2B, the data is transmitted to the main microcomputer 12 by SPI communication. The data transmitted by the SPI communication is stored in the RAM in the main microcomputer 12. On the other hand, the response format I
Data D14 (for example, data indicating water temperature) corresponding to D02 is prepared, and the data D14 is stored in the RAM. When all the data corresponding to ID02 is stored in the RAM of the main microcomputer 12, the main microcomputer 12 creates response data from the data and queries the response data as shown in FIG. It is sending to the source of the data.

【0032】また、メインマイコン12でのみデータが
準備可能なID03の質問データを図3(A)に示すよ
うに、各マイコン12,14が入力した場合は、サブマ
イコン14では、データが準備されないため、メインマ
イコン12へのデータの通信がなされず、サブマイコン
14で準備されたデータD12,D16(例えば水温
と、エンジンの回転するを示すデータ)からのみ応答デ
ータが作成され、図3(C)に示すように、その応答デ
ータが質問データの送信元のECU1に送信される。
As shown in FIG. 3A, when question data of ID03 for which data can be prepared only by the main microcomputer 12 is input by each of the microcomputers 12 and 14, data is not prepared by the sub-microcomputer 14. Therefore, data communication to the main microcomputer 12 is not performed, and response data is created only from data D12 and D16 (for example, data indicating water temperature and engine rotation) prepared by the sub-microcomputer 14, and FIG. ), The response data is transmitted to the ECU 1 that transmitted the question data.

【0033】一方、本実施例のECU1から他のECU
1に質問データが送信され、その応答データをECU1
E宛のデータとして受信したときは、その応答データ
は、各マイコン12,14にそれぞれ入力されるので、
各マイコン12,14では、その入力した応答データ
(例えば、各車輪の速度を示すデータ、ギアの入力段を
示すデータ等)のうちから各制御に必要なデータを取得
するようにされている。
On the other hand, the ECU 1 of this embodiment is replaced by another ECU.
1 is sent to the ECU 1 and the response data is sent to the ECU 1
When the data is received as data addressed to E, the response data is input to each of the microcomputers 12 and 14, respectively.
Each of the microcomputers 12 and 14 obtains data necessary for each control from the input response data (for example, data indicating the speed of each wheel, data indicating the input stage of the gear, etc.).

【0034】次に、メインマイコン12において、通信
用IC32での通信が不能と判定されたとき行われる迂
回通信処理(S1,S3)について説明する。ここで、
図4は、メインマイコン12で行われる迂回通信処理
(S1)のフローチャート、図5はサブマイコン14で
行われる迂回通信処理(S3)のフローチャートであ
る。
Next, the detour communication processing (S1, S3) performed when the main microcomputer 12 determines that communication with the communication IC 32 is impossible will be described. here,
FIG. 4 is a flowchart of the bypass communication process (S1) performed by the main microcomputer 12, and FIG. 5 is a flowchart of the bypass communication process (S3) performed by the sub-microcomputer 14.

【0035】この迂回通信処理(S1)は、車両の電源
がオンされると繰り返し実行される。まず、この迂回通
信処理(S1)では、通信用IC32を介しての通信が
可能か否かを判定する通信判定処理がなされる(S1
0)。この判定(S10)で肯定判定がなされた場合は
正常処理(S12)がなされ、例えば、質問データや、
メインマイコン12から出力した質問データに応ずる応
答データ(例えば、車輪の速度に関するデータ)等を本
実施例のECU1E宛のデータとして主通信用IC32
が受信していれば、そのECU1E宛のデータを入力し
て各種処理を行い、また、他のECU1へ送信する応答
データ等のデータがあればそのデータを通信用IC32
に出力して送信する処理がなされる。そして、この処理
(S12)が終了すると、当該迂回通信処理(S1)は
終了する。
This detour communication processing (S1) is repeatedly executed when the vehicle is turned on. First, in the detour communication process (S1), a communication determination process is performed to determine whether communication via the communication IC 32 is possible (S1).
0). When an affirmative determination is made in this determination (S10), normal processing (S12) is performed, for example, question data,
Response data corresponding to the question data output from the main microcomputer 12 (for example, data relating to the speed of the wheels) and the like are used as data addressed to the ECU 1E of the present embodiment and the main communication IC 32.
If the data is received, the data addressed to the ECU 1E is input and various processing is performed. If there is data such as response data to be transmitted to another ECU 1, the data is transmitted to the communication IC 32.
Is output and transmitted. Then, when this processing (S12) ends, the detour communication processing (S1) ends.

【0036】尚、通信判定処理(S10)は、各通信用
IC32,34が、通信が可能か否かを判定する周知の
自己判定機能を備えており、この自己判定機能で、各通
信用IC32,34が通信が不能あるいは可能であると
判定すると、各通信用IC32,34に直結された各マ
イコン12,14に各通信用IC32,34から通信不
能あるいは可能を示す信号が送られるので、各マイコン
12,14ではこの通信用IC32,34からの通信不
能あるいは可能を示す信号が入力されたか否かを判定す
る処理を行っている。
In the communication determination process (S10), each of the communication ICs 32 and 34 has a well-known self-determination function for determining whether or not communication is possible. , 34 determine that communication is not possible or possible, a signal indicating that communication is not possible or possible is sent from each communication IC 32, 34 to each microcomputer 12, 14 directly connected to each communication IC 32, 34. The microcomputers 12 and 14 perform a process of determining whether a signal indicating that communication is not possible or possible from the communication ICs 32 and 34 has been input.

【0037】一方、S10の判定で、否定判定された場
合、メインマイコン12は、サブマイコン14に、通信
不能になったことを知らせる通信不能データをSPI通
信を介して送信する(S20)。この通信不能データ
は、図6(C)に示すように、メインマイコン12から
サブマイコン14にSPI通信を介して通信されるデー
タ(例えば水温データ)の一部として送信してもよい。
On the other hand, if a negative determination is made in S10, the main microcomputer 12 transmits to the sub-microcomputer 14 communication-disabled data indicating that communication has been disabled via the SPI communication (S20). As shown in FIG. 6C, the communication-disabled data may be transmitted as part of data (for example, water temperature data) communicated from the main microcomputer 12 to the sub-microcomputer 14 via the SPI communication.

【0038】次にS20が終了すると、他のECU1と
の間で入出力するデータをサブマイコン14を介して入
出力するよう設定がなされ、まず、メインマイコン12
では、他のECU1に送信するべきデータがある場合
は、そのデータをサブマイコン14に出力する出力処理
がなされ、一方、他のECU1からECU1E宛のデー
タを受信したサブマイコン14が、そのデータをメイン
マイコン12に転送する要求がある場合には、そのデー
タをサブマイコン14から入力する入力処理がなされる
(S22)。この処理(S22)が終了すると、次に、
通信が復旧したか否かの判定(S24)がなされ、その
判定で肯定判定された場合は、サブマイコン14に通信
復旧の信号が出力され(S26)、再びS10の判定を
行い、否定判定された場合は、S22の判定を行う。
Next, when S20 is completed, a setting is made so that data to be input / output to / from another ECU 1 is input / output via the sub-microcomputer 14.
Then, when there is data to be transmitted to another ECU 1, an output process of outputting the data to the sub-microcomputer 14 is performed. On the other hand, the sub-microcomputer 14 which has received the data addressed to the ECU 1E from the other ECU 1 converts the data. If there is a request to transfer the data to the main microcomputer 12, an input process for inputting the data from the sub-microcomputer 14 is performed (S22). When this processing (S22) ends, next,
A determination is made as to whether or not communication has been restored (S24). If the determination is affirmative, a signal for communication recovery is output to the sub-microcomputer 14 (S26), the determination in S10 is performed again, and a negative determination is made. If it has, the determination in S22 is made.

【0039】次に、メインマイコン12のS10の処理
で否定判定されたとき、サブマイコン14で行われる迂
回通信処理(S3)について説明する。このサブマイコ
ン14で行われる迂回通信処理(S3)も車両の電源が
オンされた後繰り返し実行される。まず、このサブマイ
コン14の迂回通信処理(S3)では、通信用IC32
での通信が不能である旨を示す通信不能データがメイン
マイコン12からSPI通信を介して送信されたか否か
が判定される(S30)。
Next, a detour communication process (S3) performed by the sub-microcomputer 14 when a negative determination is made in the process of S10 of the main microcomputer 12 will be described. The detour communication processing (S3) performed by the sub-microcomputer 14 is also repeatedly executed after the power of the vehicle is turned on. First, in the bypass communication processing (S3) of the sub-microcomputer 14, the communication IC 32
Then, it is determined whether or not communication disabled data indicating that the communication in the above is impossible is transmitted from the main microcomputer 12 via the SPI communication (S30).

【0040】この判定(S30)で否定判定された場合
は本処理(S3)を終了し、肯定判定された場合は、次
に、副通信用IC34がECU1E宛のデータを受信し
たか否か、あるいは、メインマイコン12から外部に送
信すべきデータを、メインマイコン12から入力したか
否かを判定するデータ受信判定がなされる(S32)。
この判定(S32)で否定判定されたときは、本処理
(S3)を終了する。一方、この判定(S32)で肯定
判定されたときは、副通信用IC34が受信したECU
1E宛のデータを入力してメインマイコン12に転送を
要求する信号を出力して、そのデータを出力するか、あ
るいは、メインマイコン12から転送されてきた外部に
送信すべきデータを、副通信用IC34に出力して送信
する転送処理を行って(S34)、本処理(S3)を終
了している。
If a negative determination is made in this determination (S30), the process (S3) ends, and if an affirmative determination is made, it is determined whether the sub-communication IC 34 has received data addressed to the ECU 1E. Alternatively, a data reception determination is made to determine whether data to be transmitted from the main microcomputer 12 to the outside has been input from the main microcomputer 12 (S32).
When a negative determination is made in this determination (S32), the present process (S3) ends. On the other hand, when an affirmative determination is made in this determination (S32), the ECU
1E, and outputs a signal requesting transfer to the main microcomputer 12 and outputs the data. Alternatively, the data transferred from the main microcomputer 12 to be transmitted to the outside is transmitted to the sub-communication device. A transfer process of outputting to the IC 34 for transmission is performed (S34), and the process (S3) is completed.

【0041】尚、ここでサブマイコン14からメインマ
イコン12に転送されるデータは、図6(d)のよう
に、受信した車輪の速度を表すデータの他に、メインマ
イコン12での処理に必要なデータ(スロットル開度を
示すデータ等)を加えて転送してもよい。
Here, the data transferred from the sub-microcomputer 14 to the main microcomputer 12 is necessary for the processing by the main microcomputer 12 in addition to the data representing the received wheel speed as shown in FIG. Such data (such as data indicating the throttle opening) may be added and transferred.

【0042】また、メインマイコン12で行った迂回通
信処理(S1)をサブマイコン14で行い、サブマイコ
ン14で行った迂回通信処理(S3)をメインマイコン
12で行ってもよいことはもちろんである。このような
迂回通信処理(S1、S3)を行うと、図7に示すよう
に、主通信用IC32を介しての通信が不能で、副通信
用IC34を迂回して通信を行う場合、ECU1E宛の
データとして質問データを副通信用IC34が受信する
と、まずその質問データがサブマイコン14からメイン
マイコン12に送信され、各マイコン12,14で質問
データに応ずるデータが準備される。そしてサブマイコ
ン14で準備されたデータがメインマイコン12に送信
され、メインマイコン12では応答データが作成され、
その応答データがサブマイコン14に送信される。そし
てサブマイコン14から応答データが出力されるのであ
る。
The bypass communication process (S1) performed by the main microcomputer 12 may be performed by the sub-microcomputer 14, and the bypass communication process (S3) performed by the sub-microcomputer 14 may be performed by the main microcomputer 12. . When such detour communication processing (S1, S3) is performed, as shown in FIG. 7, when communication via the main communication IC 32 is disabled and communication is performed bypassing the sub communication IC 34, the ECU 1E When the sub-communication IC 34 receives question data as the above data, the question data is first transmitted from the sub-microcomputer 14 to the main microcomputer 12, and each microcomputer 12, 14 prepares data corresponding to the question data. The data prepared by the sub-microcomputer 14 is transmitted to the main microcomputer 12, and the main microcomputer 12 creates response data.
The response data is transmitted to the sub microcomputer 14. Then, response data is output from the sub microcomputer 14.

【0043】また、副通信用IC34を介しての通信が
不能な場合は、従来のECUのように、質問データをメ
インマイコン12が入力すると、その質問データがサブ
マイコン14に出力され、以下従来のECUと同様の動
作がなされ、応答データが出力される。
When communication via the sub-communication IC 34 is not possible, when question data is input to the main microcomputer 12 as in a conventional ECU, the question data is output to the sub-microcomputer 14, and the conventional The same operation as that of the ECU is performed, and response data is output.

【0044】以上のように構成されたエンジン制御モジ
ュールを用いると以下のような効果がある。本実施例の
ECU1では、メインマイコン12及びサブマイコン1
4は、バス9を介してECU1に送られてくる、質問デ
ータを含むECU1E宛のデータを、それぞれに備えら
れた主通信用IC32及び副通信用IC34を通じて個
別に直接入力している。つまり、サブマイコン14で
は、従来装置のようにメインマイコン12を介すること
なくECU1E宛のデータを直接獲得することができる
のである。
Using the engine control module configured as described above has the following effects. In the ECU 1 of this embodiment, the main microcomputer 12 and the sub microcomputer 1
Numeral 4 directly inputs data addressed to the ECU 1E including the question data, which is sent to the ECU 1 via the bus 9, individually via the main communication IC 32 and the sub communication IC 34 provided respectively. That is, the sub-microcomputer 14 can directly acquire data addressed to the ECU 1E without the intervention of the main microcomputer 12 as in the conventional device.

【0045】また、この本実施例のECU1では、EC
U1E宛のデータをメインマイコン12からサブマイコ
ン14に転送する必要がないので、メインマイコン12
とサブマイコン14との間の通信量が減る。従って、本
実施例のECU1を用いると、従来メインマイコン12
からサブマイコン14への転送に要していた時間分だ
け、質問データを入力してから応答データを出力するま
での応答時間を短くすることができる。また、メインマ
イコン12とサブマイコン14との間の通信量が減るの
で、両マイコン12,14間の通信処理を行う必要がな
くなった分だけ、数多くの種類の制御を各マイコン1
2,14で行うことができ、車両用LAN全体では、単
位時間当たりに行える制御の数が増え、全体に迅速な制
御を行える。
In the ECU 1 of this embodiment, the EC
Since there is no need to transfer data addressed to U1E from the main microcomputer 12 to the sub-microcomputer 14, the main microcomputer 12
The communication amount between the sub microcomputer 14 and the sub microcomputer 14 is reduced. Therefore, when the ECU 1 of this embodiment is used, the conventional main microcomputer 12
The response time from the input of the question data to the output of the response data can be shortened by the time required for the transfer to the sub-microcomputer 14. Also, since the amount of communication between the main microcomputer 12 and the sub-microcomputer 14 is reduced, many types of control are performed by each microcomputer 1 as much as there is no need to perform communication processing between the two microcomputers 12 and 14.
2 and 14, the number of controls that can be performed per unit time increases in the entire vehicle LAN, and quick control can be performed as a whole.

【0046】次に、本実施例のECU1は、主通信用I
C32及び副通信用IC34による通信が可能か否かを
判定する通信判定処理(S10)を行い、通信判定処理
(S10)にて通信不能であると判定された主通信用I
C32あるいは副通信用IC34に対応するメインマイ
コン12あるいはサブマイコン14は、主通信用IC3
2あるいは副通信用IC34に対応するメインマイコン
12あるいはサブマイコン14を介して通信している。
Next, the ECU 1 of this embodiment is provided with the main communication I
A communication determination process (S10) for determining whether communication by the C32 and the sub-communication IC 34 is possible is performed, and the main communication I that is determined to be incommunicable in the communication determination process (S10).
The main microcomputer 12 or the sub-microcomputer 14 corresponding to the C32 or the sub-communication IC 34
The communication is performed via the main microcomputer 12 or the sub microcomputer 14 corresponding to the second or sub communication IC 34.

【0047】すなわち、本実施例のECU1では、主副
何れかの通信用IC32,34での通信が不能である場
合、他の通信用IC32,34を介して通信を行ってい
るので、ECU1間での通信が不能になることが防止さ
れる。従って、本実施例のECU1を用いると、他のE
CU1との通信が途絶えてしまうことを確実に防止で
き、他のECU1と共同して行う制御の信頼性を向上さ
せることができる。
That is, in the ECU 1 of this embodiment, when communication is not possible with any of the main and sub communication ICs 32 and 34, communication is performed via the other communication ICs 32 and 34. It is possible to prevent communication from being disabled. Therefore, when the ECU 1 of this embodiment is used, other E
The communication with the CU 1 can be reliably prevented from being interrupted, and the reliability of control performed in cooperation with another ECU 1 can be improved.

【0048】ところで、本実施例のECU1では、図7
に示すように、メインマイコン12での通信が不能にな
ったときは、質問データとサブマイコン14で準備され
たデータとを一旦メインマイコン12に送信し、そして
メインマイコン12で作成された応答データを通信可能
なサブマイコン14に送信し、バス9に送信している。
このようにしているのは、応答データを作成する処理
が、誤り訂正コード等の各種コードを添付する処理な
ど、様々な処理を行わなければならないため、これらを
実行するための送信用プログラムを記憶するのに大きな
記憶容量が必要で、このように大きな記憶容量を要する
プログラムをサブマイコン14に組み込むと、サブマイ
コン14で行える制御の種類が少なくなってしまうから
である。
Incidentally, in the ECU 1 of this embodiment, FIG.
As shown in (1), when the communication with the main microcomputer 12 is disabled, the question data and the data prepared by the sub-microcomputer 14 are transmitted to the main microcomputer 12 once, and the response data created by the main microcomputer 12 is transmitted. Is transmitted to the communicable sub-microcomputer 14 and transmitted to the bus 9.
This is because the process of creating the response data has to perform various processes such as a process of attaching various codes such as an error correction code, and the transmission program for executing the processes is stored. This is because a large storage capacity is required to perform such operations, and if a program requiring such a large storage capacity is incorporated in the sub-microcomputer 14, the types of control that can be performed by the sub-microcomputer 14 are reduced.

【0049】しかし、サブマイコン14のプログラムを
記憶する容量等に余裕があれば、通信が不能であること
が判定がされた場合、メインマイコン12に代えて、サ
ブマイコン14の何れかに、応答処理を実行するよう切
り替え、メインマイコン12で行われている応答データ
を作成する処理を、副通信用IC34での通信が可能な
他のサブマイコン14で実行するようにしてもよい。
However, if the capacity of the sub-microcomputer 14 to store the program or the like is sufficient, if it is determined that communication is not possible, a response is sent to any of the sub-microcomputers 14 instead of the main microcomputer 12. The processing may be switched to be executed, and the processing of creating response data performed by the main microcomputer 12 may be executed by another sub-microcomputer 14 capable of communicating with the sub-communication IC 34.

【0050】このようにすると、応答処理がサブマイコ
ン14で行われるので、応答データを作成するため、メ
インマイコン12を介する場合に比べ、素早く応答デー
タを出力することができる。
In this case, since the response processing is performed by the sub-microcomputer 14, the response data is created, so that the response data can be output more quickly than in the case where the response data is transmitted through the main microcomputer 12.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本実施例のエンジンモジュール及び周辺機器
の模式回路図である。
FIG. 1 is a schematic circuit diagram of an engine module and peripheral devices of the present embodiment.

【図2】 本実施例でのデータの授受を説明するための
説明図である。
FIG. 2 is an explanatory diagram for explaining transmission and reception of data in the embodiment.

【図3】 本実施例でのデータの授受を説明するための
説明図である。
FIG. 3 is an explanatory diagram for explaining exchange of data in the present embodiment.

【図4】 本実施例の通信不能時処理のフローチャート
である。
FIG. 4 is a flowchart of processing when communication is disabled according to the embodiment.

【図5】 本実施例の通信不能時処理のフローチャート
である。
FIG. 5 is a flowchart of processing when communication is disabled according to the embodiment.

【図6】 本実施例の通信判定処理で通信されるデータ
の説明図である。
FIG. 6 is an explanatory diagram of data transmitted in the communication determination processing of the embodiment.

【図7】 本実施例でのデータの授受を説明するための
説明図である。
FIG. 7 is an explanatory diagram for explaining exchange of data in the present embodiment.

【図8】 従来のエンジン制御モジュール及び周辺機器
の模式回路図である。
FIG. 8 is a schematic circuit diagram of a conventional engine control module and peripheral devices.

【図9】 従来のエンジン制御モジュールでのデータの
授受を説明するための説明図である。
FIG. 9 is an explanatory diagram for explaining data transmission and reception in a conventional engine control module.

【符号の説明】[Explanation of symbols]

1…ECU、9…バス、10…制御装置、12…メイン
マイコン、14…サブマイコン、30…通信装置、32
…主通信用IC、34…副通信用IC、50…データ出
力装置、52…水温センサ、54…エンジン回転数検出
回路、56…スロットルセンサ
DESCRIPTION OF SYMBOLS 1 ... ECU, 9 ... Bus, 10 ... Control device, 12 ... Main microcomputer, 14 ... Sub microcomputer, 30 ... Communication device, 32
... Main communication IC, 34 ... Sub communication IC, 50 ... Data output device, 52 ... Water temperature sensor, 54 ... Engine speed detection circuit, 56 ... Throttle sensor

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 車両内に配線された車両用LANのバス
を介して、該バスに接続された他装置との通信を行う主
通信装置と、 前記主通信装置を介して前記他装置から質問データを受
信すると、該質問データに対する応答データを作成し、
該応答データを前記主通信手段を介して前記質問データ
の送信元に送信する応答処理を少なくとも実行する主デ
ータ処理手段と、 前記主通信手段を介することなく前記主データ処理手段
との通信が可能に構成され、前記主データ処理手段と分
担して各種処理を実行する1ないし複数の副データ処理
手段とを備えた車載装置において、 前記副データ処理手段毎に、該副データ処理手段が前記
バスを介して前記他装置との通信を行うための副通信手
段を設け、 前記副データ処理手段は、前記副通信手段を介して当該
車載装置宛データを受信することを特徴とする車載装
置。
1. A main communication device for communicating with another device connected to a bus via a vehicle LAN bus wired in a vehicle, and an inquiry from the other device via the main communication device. When receiving the data, create response data to the question data,
Main data processing means for executing at least a response process of transmitting the response data to the transmission source of the question data via the main communication means; and communication with the main data processing means without interposing the main communication means. And one or more sub-data processing means for executing various processes by sharing with the main data processing means, wherein the sub-data processing means is connected to the bus for each of the sub-data processing means. An in-vehicle device, provided with a sub-communication unit for performing communication with the other device via the sub-communication unit, wherein the sub-data processing unit receives the data addressed to the in-vehicle device via the sub-communication unit.
【請求項2】 請求項1記載の車載装置において、 前記主通信手段及び前記副通信手段による通信が可能か
否かを判定する通信判定手段を備え、 該通信判定手段にて通信不能であると判定された主通信
手段あるいは副通信手段に対応する前記主データ処理手
段あるいは副データ処理手段は、主通信手段あるいは副
通信手段に対応する主データ処理手段あるいは副データ
処理手段を介して通信することを特徴とする車載装置。
2. The in-vehicle device according to claim 1, further comprising: a communication determination unit that determines whether communication by the main communication unit and the sub communication unit is possible, wherein the communication determination unit determines that communication is not possible. The main data processing means or sub data processing means corresponding to the determined main communication means or sub communication means communicates via the main data processing means or sub data processing means corresponding to the main communication means or sub communication means. A vehicle-mounted device characterized by the above-mentioned.
【請求項3】 請求項1記載の車載装置において、 前記主通信手段による通信が可能か否かを判定する通信
判定手段と、 該通信判定手段で通信が不能であるとの判定がされた場
合、前記主データ処理手段に代えて、前記副データ処理
手段の何れかに、前記応答処理を実行させる切替手段と
を備えることを特徴とする車載装置。
3. The in-vehicle device according to claim 1, wherein: a communication determining unit that determines whether communication by the main communication unit is possible; and if the communication determining unit determines that communication is not possible. An in-vehicle apparatus comprising, in place of the main data processing means, one of the sub data processing means including a switching means for executing the response processing.
JP34756399A 1999-12-07 1999-12-07 In-vehicle device Expired - Fee Related JP4221857B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34756399A JP4221857B2 (en) 1999-12-07 1999-12-07 In-vehicle device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34756399A JP4221857B2 (en) 1999-12-07 1999-12-07 In-vehicle device

Publications (2)

Publication Number Publication Date
JP2001168889A true JP2001168889A (en) 2001-06-22
JP4221857B2 JP4221857B2 (en) 2009-02-12

Family

ID=18391077

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34756399A Expired - Fee Related JP4221857B2 (en) 1999-12-07 1999-12-07 In-vehicle device

Country Status (1)

Country Link
JP (1) JP4221857B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01123545A (en) * 1987-11-06 1989-05-16 Pfu Ltd Communication system for doubling host system in lan
JPH053483A (en) * 1991-02-27 1993-01-08 Mazda Motor Corp Multiplex transmitter
JPH1083321A (en) * 1996-07-15 1998-03-31 Denso Corp Data processor and electronic controller
JPH1091203A (en) * 1996-09-18 1998-04-10 Toshiba Corp Process controller and its communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01123545A (en) * 1987-11-06 1989-05-16 Pfu Ltd Communication system for doubling host system in lan
JPH053483A (en) * 1991-02-27 1993-01-08 Mazda Motor Corp Multiplex transmitter
JPH1083321A (en) * 1996-07-15 1998-03-31 Denso Corp Data processor and electronic controller
JPH1091203A (en) * 1996-09-18 1998-04-10 Toshiba Corp Process controller and its communication method

Also Published As

Publication number Publication date
JP4221857B2 (en) 2009-02-12

Similar Documents

Publication Publication Date Title
JP5709055B2 (en) Electronic control device for vehicle
JP3994821B2 (en) Vehicle communication system
JP3307215B2 (en) Failure diagnosis device for vehicle electronic control unit
JP3099663B2 (en) Communications system
US10780783B2 (en) Onboard vehicle communication system
US6321148B1 (en) Vehicle communication control apparatus and method
US20060004545A1 (en) Physical quantity sensor and apparatus for inspecting physical quantity sensor
US20080306647A1 (en) In-vehicle network system and control method thereof
JP5019983B2 (en) In-vehicle communication system, relay device, and communication method
JPH04219099A (en) On-vehicle communication equipment
JP2006333007A (en) Vehicle communication system and data communication method
JP2009302783A (en) Failure detecting method and failure detection system of communication network
WO2021100548A1 (en) Onboard relay device and relay method
JP2009035237A (en) Failure diagnosis device, and failure diagnosis method
JP4221857B2 (en) In-vehicle device
JP3179037B2 (en) Vehicle communication network system
JPH09226482A (en) Communication controller for vehicle
JP4259468B2 (en) Diagnostic system for vehicles
JP2000275145A (en) Vehicle diagnostic system and recording medium
JPH0630472A (en) Multiplex transmission equipment
JPH11230868A (en) Diagnosing apparatus for vehicle
JP3310020B2 (en) Multiplex transmission equipment for vehicles
JP2007036632A (en) Gateway apparatus
JP2904304B2 (en) Multiplex transmission equipment
US20050122915A1 (en) Communication apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080729

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080929

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: 20081028

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: 20081110

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111128

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121128

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131128

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees