JP3750617B2 - Electronic control device for internal combustion engine - Google Patents

Electronic control device for internal combustion engine Download PDF

Info

Publication number
JP3750617B2
JP3750617B2 JP2002065616A JP2002065616A JP3750617B2 JP 3750617 B2 JP3750617 B2 JP 3750617B2 JP 2002065616 A JP2002065616 A JP 2002065616A JP 2002065616 A JP2002065616 A JP 2002065616A JP 3750617 B2 JP3750617 B2 JP 3750617B2
Authority
JP
Japan
Prior art keywords
communication
communication data
time
initialization command
port
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
Application number
JP2002065616A
Other languages
Japanese (ja)
Other versions
JP2003264606A (en
Inventor
金千代 寺田
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 JP2002065616A priority Critical patent/JP3750617B2/en
Publication of JP2003264606A publication Critical patent/JP2003264606A/en
Application granted granted Critical
Publication of JP3750617B2 publication Critical patent/JP3750617B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Communication Control (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、サービスツールとしての、例えば、ダイアグテスタ等の外部接続機器が必要に応じて接続される内燃機関用電子制御装置に関するものである。
【0002】
【従来の技術】
従来、内燃機関用電子制御装置とダイアグテスタ等の外部接続機器との通信において、受信側の内部クロックによるタイミングにて送信側の通信データを読込む非同期通信を使用するものが知られている。この際の通信プロトコルとしては、例えば、ISO14230のKWP2000が用いられている。このKWP2000では、外部接続機器との接続確認において、一般的に、初期化コマンドが使用されており、外部接続機器側からの初期化コマンドが正常であるときのみ、電子制御装置側との通信応答が許可状態となって、以降において通信データのやり取りが可能となる。
【0003】
【発明が解決しようとする課題】
ところで、上記外部接続機器からの通信データの初期化コマンドにおけるパルスの幅及び間隔(時間)は、例えば、1〔ms:ミリ秒〕程度毎に電子制御装置側の受信ポートにて、そのパルスの立下がりまたは立上がりを捉え判定しているため、通常でも最大2〔ms〕程度の公差が必要で、これ以上正確に計測することができない。このため、通信応答のための接続許可判定では、計測されるパルスの幅及び間隔に所定の許容範囲を設けている。ここで、外部接続機器からの通信データの初期化コマンドにおけるパルスのエッジが鈍っていたりすると、正規な機器であっても通信応答のための接続が不許可状態となったり、逆に、正規でない機器で所定の許容範囲外であっても通信応答のための接続が許可状態となったりするという不具合があった。
【0004】
そこで、この発明はかかる不具合を解決するためになされたもので、外部接続機器との通信応答のための接続許可判定を精確に実施可能な内燃機関用電子制御装置の提供を課題としている。
【0005】
【課題を解決するための手段】
請求項1の内燃機関用電子制御装置によれば、外部接続機器からの通信データが受信ポートを介して受信開始される際、計測手段にてキャプチャ入力ポートで順次捕捉された外部接続機器からの通信データの初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻が計測され、この計測に基づくパルスの幅及び間隔が予め設定された時間範囲内となるときには許可手段によって外部接続機器が正規のものであると認定され、これ以降における通信応答が許可される。これにより、外部接続機器との通信応答のための接続許可判定が精確に実施される。
【0006】
請求項2の内燃機関用電子制御装置における許可手段では、初期化コマンドにおける一連のパルスの最終の立上がり時刻となる計測タイミングで、受信ポートがこの後に読込まれるスタートワードを受信可能とする受信モードに前以って切替えられる。これにより、初期化コマンドにおける一連のパルスに続くスタートワードが受信ポートにて最初から正確に読込まれるという効果が得られる。
【0007】
【発明の実施の形態】
以下、本発明の実施の形態を実施例に基づいて説明する。
【0008】
図1は本発明の実施の形態の一実施例にかかる内燃機関用電子制御装置の概略構成及び外部接続機器との接続状態を示すブロック図である。
【0009】
図1において、100は内燃機関用ECU(Electronic Control Unit:電子制御装置)であり、ECU100は、周知の各種演算処理を実行する中央処理装置としてのMPU(Micro-Processor Unit)10の他、図示しない制御プログラムや制御マップ等を格納したROM、各種データ等を格納するRAM、B/U(バックアップ)RAM、入出力回路及びそれらを接続するバスライン等からなる論理演算回路として構成され、また、通信データを送受信するためのインタフェース20を備えている。そして、MPU10は、受信ポートRx 、送信ポートTx 及びキャプチャ入力ポートTI04Bを備えている。
【0010】
ECU100は送受信用の1本の通信線L1にてサービスツールとしてのダイアグテスタ等の外部接続機器200と接続されている。そして、通信線L1が接続されたECU100内では、その接続ラインが2分岐されたうちの1本がインタフェース20を介して更に2分岐され、1本がMPU10の受信ポートRx 、他の1本がMPU10のキャプチャ入力ポートTI04Bとそれぞれ接続されている。また、接続ラインが2分岐されたうちの残りの1本がインタフェース20を介してMPU10の送信ポートTx と接続されている。
【0011】
上記構成により、外部接続機器200から通信線L1を通ってECU100に入力される通信データは、インタフェース20を介してMPU10の受信ポートRx で受信される。同時に、外部接続機器200からECU100に入力される通信データは、インタフェース20を介してMPU10のキャプチャ入力ポートTI04Bに直接、入力される。そして、MPU10のキャプチャ入力ポートTI04Bに入力された通信データの初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻が順次、捕捉される。このキャプチャ入力ポートTI04Bでは、時間単位として〔μs:マイクロ秒〕程度にて、通信データの初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻を捕捉可能である。また、MPU10の送信ポートTx からの通信データは、インタフェース20を介してECU100から通信線L1を通って外部接続機器200に送信される。
【0012】
次に、図1の変形例を示す図2のブロック図について説明する。なお、図中、図1と同様の構成または相当部分からなるものについては同一符号及び同一記号を付して示す。
【0013】
図2では、ECU100′と外部接続機器200′との間が、受信側と送信側となる独立の2本の通信線L11,L12にて接続されている点が異なっている。そして、外部接続機器200′側からECU100′側への通信のための通信線L11が接続されたECU100′内では、インタフェース20を介してその接続ラインが2分岐され、1本がMPU10の受信ポートRx 、他の1本がMPU10のキャプチャ入力ポートTI04Bとそれぞれ接続されている。また、ECU100′側から外部接続機器200′側への通信のための接続線L12が接続されたECU100′内では、その接続ラインがインタフェース20を介してMPU10の送信ポートTx に接続されている。
【0014】
上記構成により、外部接続機器200′から通信線L11を通ってECU100′に入力される通信データは、インタフェース20を介してMPU10の受信ポートRx で受信される。同時に、外部接続機器200′からECU100′に入力される通信データは、インタフェース20を介してMPU10のキャプチャ入力ポートTI04Bに直接、入力される。そして、MPU10にて、そのキャプチャ入力ポートTI04Bに入力された通信データの初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻が順次、捕捉される。また、MPU10の送信ポートTx からの通信データは、インタフェース20を介してECU100′から通信線L12を通って外部接続機器200′に送信される。
【0015】
次に、本発明の実施の形態の一実施例及び変形例にかかる内燃機関用電子制御装置で使用されているECU100(100′)内のMPU10における外部接続機器200(200′)との通信応答のための接続許可判定の処理手順を示す図3のフローチャートに基づき、図4を参照して説明する。ここで、図4は図3の処理に対応する通信データの初期化コマンドとキャプチャ時刻との関係を示すタイムチャートである。
【0016】
図3において、まず、ステップS101で、通信データの初期化コマンドにおけるパルスの立下がりを捕捉したキャプチャ時刻T01(図4参照)からパルスの立上がりを捕捉したキャプチャ時刻T02(図4参照)までの時間が22〔ms〕より長く、かつ28〔ms〕より短いかが判定される。ステップS101の判定条件が成立、即ち、22〔ms〕<(T02−T01)<28〔ms〕の不等式が成立するときにはステップS102に移行し、10.4〔kbps:キロビット毎秒〕受信モードがセットされる。つまり、この時点において、前以って後述の通信データの初期コマンドにおけるスタートワードの接続IDコードを読込むための10.4〔kbps〕受信モードに設定される。
【0017】
次にステップS103に移行して、通信データの初期化コマンドにおけるパルスに続くスタートワードの接続IDコードのスタートビットの立下がりを捕捉したキャプチャ時刻T03(図4参照)から上述のキャプチャ時刻T01までの時間が47〔ms〕より長く、53〔ms〕より短いかが判定される。ステップS103の判定条件が成立、即ち、47〔ms〕<(T03−T01)<53〔ms〕となるときには通信データの初期化コマンドが正常であるとしてステップS104に移行し、外部接続機器200(200′)との通信応答処理が実行され、本ルーチンを終了する。この通信応答処理では、まず、通信データの初期化コマンドにおけるスタートワードの接続IDコードの一致/不一致が判定され、スタートワードの接続IDコードが一致したときには、これ以降の通信データによる通信応答が実行される。なお、初期化コマンドにおけるスタートワードの接続IDコードが不一致のときには、通信データによる通信応答が拒否される。
【0018】
一方、ステップS101の判定条件が成立せず、即ち、キャプチャ時刻T01からキャプチャ時刻T02までの時間が22〔ms〕より短く、または28〔ms〕より長いとき、またはステップS103の判定条件が成立せず、即ち、キャプチャ時刻T01からキャプチャ時刻T03までの時間が47〔ms〕より短く、または53〔ms〕より長いときにはステップS105に移行し、通信データの初期化コマンドが異常であるとして、再度、通信チェックするための初期化が実行されたのちステップS101に戻り、同様の処理が繰返し実行される。なお、本ルーチンが複数回試行されても通信データの初期化コマンドが正常と判定されないときには、図示しない警告が行なわれ、本ルーチンを終了する。
【0019】
次に、本発明の実施の形態の一実施例及び変形例にかかる内燃機関用電子制御装置で使用されているECU100(100′)内のMPU10における外部接続機器200(200′)との通信応答のための接続許可判定の処理手順の変形例を示す図5のフローチャートに基づき、図6を参照して説明する。ここで、図6は図5の処理に対応する通信データの初期化コマンドとキャプチャ時刻との関係を示すタイムチャートである。
【0020】
図5において、まず、ステップS201で、通信データの初期化コマンドにおける第1のパルスの立下がりを捕捉したキャプチャ時刻T11(図6参照)から第1のパルスの立上がりを捕捉したキャプチャ時刻T12(図6参照)までの時間が7〔ms〕より長く、かつ13〔ms〕より短いかが判定される。ステップS201の判定条件が成立、即ち、7〔ms〕<(T12−T11)<13〔ms〕の不等式が成立するときにはステップS202に移行する。
【0021】
次にステップS202に移行して、通信データの初期化コマンドにおける第1のパルスの立上がりを捕捉したキャプチャ時刻T12から第2のパルスの立下がりを捕捉したキャプチャ時刻T13(図6参照)までの時間が7〔ms〕より長く、かつ13〔ms〕より短いかが判定される。ステップS202の判定条件が成立、即ち、7〔ms〕<(T13−T12)<13〔ms〕の不等式が成立するときにはステップS203に移行し、第2のパルスの立下がりを捕捉したキャプチャ時刻T13から第2のパルスの立上がりを捕捉したキャプチャ時刻T14までの時間が7〔ms〕より長く、かつ13〔ms〕より短いかが判定される。ステップS203の判定条件が成立、即ち、7〔ms〕<(T14−T13)<13〔ms〕の不等式が成立するときには通信データの初期化コマンドが正常であるとしてステップS204に移行し、9600〔bps:ビット毎秒〕受信モードがセットされる。つまり、この時点において、前以って後述の通信データの初期コマンドにおけるスタートワードの接続IDコードを読込むための9600〔bps〕受信モードに設定される。
【0022】
次にステップS205に移行して、外部接続機器200(200′)との通信応答処理が実行され、本ルーチンを終了する。この通信応答処理では、まず、通信データの初期化コマンドにおける2つのパルスに続くスタートワードの接続IDコードの一致/不一致が判定され、スタートワードの接続IDコードが一致したときには、これ以降の通信データによる通信応答が実行される。なお、初期化コマンドにおけるスタートワードの接続IDコードが不一致のときには、通信データによる通信応答が拒否される。
【0023】
一方、ステップS201の判定条件が成立せず、即ち、キャプチャ時刻T11からキャプチャ時刻T12までの時間が7〔ms〕より短く、または13〔ms〕より長いとき、またはステップS202の判定条件が成立せず、即ち、キャプチャ時刻T12からキャプチャ時刻T13までの時間が7〔ms〕より短く、または13〔ms〕とき、またはステップS203の判定条件が成立せず、即ち、キャプチャ時刻T13からキャプチャ時刻T14までの時間が7〔ms〕より短く、または13〔ms〕ときにはステップS206に移行し、通信データの初期化コマンドが異常であるとして、再度、通信チェックするための初期化が実行されたのちステップS201に戻り、同様の処理が繰返し実行される。なお、本ルーチンが複数回試行されても通信データの初期化コマンドが正常と判定されないときには、図示しない警告が行なわれ、本ルーチンを終了する。
【0024】
このように、本実施例及び変形例の内燃機関用電子制御装置としてのECU100(100′)は、外部接続機器200(200′)と接続され、非同期通信にて相互通信を行なうためのMPU10の受信ポートRx 及び送信ポートTx と、外部接続機器200(200′)からの通信データを受信ポートRx を介して受信開始する際、受信ポートRx に入力される通信データの所定回数のパルス及びそれに続くスタートワードからなる初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻を順次、捕捉するMPU10のキャプチャ入力ポートTI04Bと、キャプチャ入力ポートTI04Bで捕捉された時刻に基づきパルスの幅及び間隔を計測するMPU10にて達成される計測手段と、前記計測手段によるパルスの幅及び間隔が予め設定された時間範囲内となるときには、外部接続機器200(200′)との通信応答を許可するMPU10にて達成される許可手段とを具備するものである。
【0025】
つまり、ECU100(100′)側にて外部接続機器200(200′)が正規のものか否かを認定する際、ECU100(100′)のMPU10のキャプチャ入力ポートTI04Bで順次捕捉された外部接続機器200(200′)からの通信データの初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻がキャプチャ時刻として極めて正確に、即ち、時間単位として〔μs〕程度にて計測される。この計測に基づくパルスの幅及び間隔が予め設定された時間範囲内となるときにはECU100(100′)側にて外部接続機器200(200′)が正規のものであると認定され、これ以降におけるECU100(100′)との通信応答が許可される。これにより、ECU100(100′)における外部接続機器200(200′)との通信応答のための接続許可判定を精確に実施することができる。
【0026】
また、本実施例及び変形例の内燃機関用電子制御装置としてのECU100(100′)のMPU10にて達成される許可手段は、初期化コマンドにおける一連のパルスの最終の立上がり時刻にて受信ポートRx を初期化コマンドにおけるスタートワードの接続IDコードの受信モードに切替えるものである。つまり、初期化コマンドにおける一連のパルスの最終の立上がり時刻となる計測タイミングで、受信ポートRx がこの後に読込まれるスタートワードの接続IDコードを受信可能とする受信モードに前以って切替えられる。これにより、初期化コマンドにおける一連のパルスに続くスタートワードの接続IDコードを最初から正確に読込むことが可能となる。
【0027】
ところで、上記実施例及び変形例では、通信データの初期化コマンドの具体的な2例における、その接続許可判定について述べたが、本発明を実施する場合には、これに限定されるものではなく、通信データの初期化コマンドにおける種々の形態について同様の手法によれば、接続許可判定を精確に実施することが可能となる。
【図面の簡単な説明】
【図1】 図1は本発明の実施の形態の一実施例にかかる内燃機関用電子制御装置の概略構成及び外部接続機器との接続状態を示すブロック図である。
【図2】 図2は図1の変形例にかかる内燃機関用電子制御装置の概略構成及び外部接続機器との接続状態を示すブロック図である。
【図3】 図3は本発明の実施の形態の一実施例及び変形例にかかる内燃機関用電子制御装置で使用されているECU内のMPUにおける通信応答許可判定の処理手順を示すフローチャートである。
【図4】 図4は図3の処理に対応する通信データの初期化コマンドとキャプチャ時刻との関係を示すタイムチャートである。
【図5】 図5は本発明の実施の形態の一実施例及び変形例にかかる内燃機関用電子制御装置で使用されているECU内のMPUにおける通信応答許可判定の処理手順の変形例を示すフローチャートである。
【図6】 図6は図5の処理に対応する通信データの初期化コマンドとキャプチャ時刻との関係を示すタイムチャートである。
【符号の説明】
10 MPU
Rx 受信ポート
Tx 送信ポート
TI04B キャプチャ入力ポート
100,100′ ECU(電子制御装置)
200,200′ 外部接続機器
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic control device for an internal combustion engine to which an external connection device such as a diagnostic tester is connected as necessary as a service tool.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in communication between an internal combustion engine electronic control device and an externally connected device such as a diagnostic tester, one using asynchronous communication that reads communication data on the transmission side at a timing based on an internal clock on the reception side is known. As a communication protocol at this time, for example, KWP2000 of ISO14230 is used. In this KWP2000, an initialization command is generally used in connection confirmation with an externally connected device, and only when the initialization command from the externally connected device side is normal, a communication response with the electronic control device side. Then, the communication data can be exchanged thereafter.
[0003]
[Problems to be solved by the invention]
By the way, the pulse width and interval (time) in the communication data initialization command from the externally connected device are, for example, about 1 [ms: milliseconds] at the reception port on the electronic control unit side. Since the determination is made by detecting the fall or the rise, a tolerance of about 2 [ms] at the maximum is usually required, and the measurement cannot be performed more accurately. For this reason, in the connection permission determination for communication response, a predetermined allowable range is provided for the width and interval of the measured pulse. Here, if the pulse edge in the communication data initialization command from the external device is dull, even if it is a legitimate device, the connection for the communication response is not permitted, and conversely, it is not legitimate. There is a problem that the connection for communication response is permitted even if the device is out of a predetermined allowable range.
[0004]
Accordingly, the present invention has been made to solve such a problem, and an object thereof is to provide an electronic control device for an internal combustion engine that can accurately perform connection permission determination for communication response with an externally connected device.
[0005]
[Means for Solving the Problems]
According to the electronic control device for an internal combustion engine of claim 1, when the communication data from the external connection device is started to be received through the reception port, the measurement data from the external connection device sequentially captured by the capture input port is received. The fall time and rise time of a series of pulses in the communication data initialization command are measured, and when the pulse width and interval based on this measurement are within a preset time range, the externally connected device is properly The communication response after that is permitted. Thereby, the connection permission determination for a communication response with an external connection apparatus is implemented accurately.
[0006]
3. The permission mode in the electronic control device for an internal combustion engine according to claim 2, wherein the reception port can receive a start word read after that at a measurement timing which is a final rising time of a series of pulses in the initialization command. Can be switched in advance. This provides the effect that the start word following a series of pulses in the initialization command is read correctly from the beginning at the receiving port.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described based on examples.
[0008]
FIG. 1 is a block diagram showing a schematic configuration of an electronic control device for an internal combustion engine according to an example of an embodiment of the present invention and a connection state with an external connection device.
[0009]
In FIG. 1, reference numeral 100 denotes an internal combustion engine ECU (Electronic Control Unit). The ECU 100 is illustrated in addition to an MPU (Micro-Processor Unit) 10 as a central processing unit that executes various known arithmetic processes. It is configured as a logical operation circuit comprising a ROM storing control programs and control maps, a RAM storing various data, a B / U (backup) RAM, an input / output circuit and a bus line connecting them, An interface 20 for transmitting and receiving communication data is provided. The MPU 10 includes a reception port Rx, a transmission port Tx, and a capture input port TI04B.
[0010]
The ECU 100 is connected to an external connection device 200 such as a diagnostic tester as a service tool through a single transmission / reception communication line L1. Then, in the ECU 100 to which the communication line L1 is connected, one of the two branches of the connection line is further branched into two via the interface 20, one is the receiving port Rx of the MPU 10, and the other one is The MPU 10 is connected to the capture input port TI04B. Further, the remaining one of the two connection lines is connected to the transmission port Tx of the MPU 10 via the interface 20.
[0011]
With the above configuration, communication data input from the external device 200 through the communication line L1 to the ECU 100 is received via the interface 20 at the reception port Rx of the MPU 10. At the same time, communication data input from the external device 200 to the ECU 100 is directly input to the capture input port TI04B of the MPU 10 via the interface 20. Then, the falling time and rising time of a series of pulses in the communication data initialization command input to the capture input port TI04B of the MPU 10 are sequentially captured. The capture input port TI04B can capture the fall time and rise time of a series of pulses in the communication data initialization command in about [μs: microseconds] as a time unit. Further, communication data from the transmission port Tx of the MPU 10 is transmitted from the ECU 100 via the interface 20 to the external connection device 200 through the communication line L1.
[0012]
Next, the block diagram of FIG. 2 which shows the modification of FIG. 1 is demonstrated. In the figure, components having the same configuration or corresponding parts as in FIG. 1 are denoted by the same reference numerals and symbols.
[0013]
FIG. 2 is different in that the ECU 100 ′ and the external connection device 200 ′ are connected by two independent communication lines L11 and L12 on the reception side and the transmission side. In the ECU 100 ′ to which the communication line L 11 for communication from the external connection device 200 ′ to the ECU 100 ′ is connected, the connection line is branched into two via the interface 20, one of which is a receiving port of the MPU 10. Rx and the other one are connected to the capture input port TI04B of the MPU 10, respectively. In addition, in the ECU 100 ′ to which the connection line L12 for communication from the ECU 100 ′ side to the external connection device 200 ′ side is connected, the connection line is connected to the transmission port Tx of the MPU 10 via the interface 20.
[0014]
With the above configuration, communication data input from the external device 200 ′ through the communication line L 11 to the ECU 100 ′ is received via the interface 20 at the reception port Rx of the MPU 10. At the same time, communication data input from the external device 200 ′ to the ECU 100 ′ is directly input to the capture input port TI04B of the MPU 10 via the interface 20. The MPU 10 sequentially captures the falling time and the rising time of a series of pulses in the communication data initialization command input to the capture input port TI04B. Further, communication data from the transmission port Tx of the MPU 10 is transmitted from the ECU 100 ′ via the interface 20 to the external connection device 200 ′ through the communication line L12.
[0015]
Next, a communication response with the external connection device 200 (200 ′) in the MPU 10 in the ECU 100 (100 ′) used in the electronic control device for an internal combustion engine according to an example and a modification of the embodiment of the present invention. A description will be given with reference to FIG. 4 based on the flowchart of FIG. FIG. 4 is a time chart showing the relationship between the communication data initialization command corresponding to the processing of FIG. 3 and the capture time.
[0016]
In FIG. 3, first, in step S101, the time from the capture time T01 (see FIG. 4) at which the fall of the pulse in the communication data initialization command is captured to the capture time T02 (see FIG. 4) at which the rise of the pulse is captured. Is longer than 22 [ms] and shorter than 28 [ms]. When the determination condition of step S101 is satisfied, that is, when the inequality of 22 [ms] <(T02−T01) <28 [ms] is satisfied, the process proceeds to step S102, and the 10.4 [kbps: kilobit per second] reception mode is set. Is done. That is, at this time, the 10.4 [kbps] reception mode for reading the connection ID code of the start word in the initial command of communication data described later is set in advance.
[0017]
Next, the process proceeds to step S103, from the capture time T03 (see FIG. 4) at which the falling edge of the start bit of the connection ID code of the start word following the pulse in the communication data initialization command to the above-described capture time T01. It is determined whether the time is longer than 47 [ms] and shorter than 53 [ms]. When the determination condition in step S103 is satisfied, that is, 47 [ms] <(T03-T01) <53 [ms], the communication data initialization command is determined to be normal, and the process proceeds to step S104, and the external connection device 200 ( 200 ') is executed, and this routine is terminated. In this communication response process, first, it is determined whether the connection ID code of the start word in the communication data initialization command is coincident or not, and when the connection ID code of the start word matches, the communication response by the subsequent communication data is executed. Is done. When the connection ID code of the start word in the initialization command does not match, the communication response by the communication data is rejected.
[0018]
On the other hand, when the determination condition of step S101 is not satisfied, that is, when the time from the capture time T01 to the capture time T02 is shorter than 22 [ms] or longer than 28 [ms], or the determination condition of step S103 is satisfied. That is, when the time from the capture time T01 to the capture time T03 is shorter than 47 [ms] or longer than 53 [ms], the process proceeds to step S105, and it is determined that the communication data initialization command is abnormal. After initialization for communication check is executed, the process returns to step S101, and the same processing is repeatedly executed. If the initialization command for communication data is not determined to be normal even if this routine is tried a plurality of times, a warning (not shown) is given and the routine is terminated.
[0019]
Next, a communication response with the external connection device 200 (200 ′) in the MPU 10 in the ECU 100 (100 ′) used in the electronic control device for an internal combustion engine according to an example and a modification of the embodiment of the present invention. Based on the flowchart of FIG. 5 which shows the modification of the processing procedure of the connection permission determination for, it demonstrates with reference to FIG. Here, FIG. 6 is a time chart showing the relationship between the communication data initialization command and the capture time corresponding to the processing of FIG.
[0020]
In FIG. 5, first, in step S201, the capture time T12 (see FIG. 6) at which the rising edge of the first pulse is captured from the capture time T11 (see FIG. 6) at which the falling edge of the first pulse in the communication data initialization command is captured. 6) is determined whether it is longer than 7 [ms] and shorter than 13 [ms]. When the determination condition of step S201 is satisfied, that is, when the inequality of 7 [ms] <(T12−T11) <13 [ms] is satisfied, the process proceeds to step S202.
[0021]
Next, the process proceeds to step S202, and the time from the capture time T12 at which the rising edge of the first pulse in the communication data initialization command is captured to the capture time T13 (see FIG. 6) at which the falling edge of the second pulse is captured. Is longer than 7 [ms] and shorter than 13 [ms]. When the determination condition of step S202 is satisfied, that is, when the inequality of 7 [ms] <(T13−T12) <13 [ms] is satisfied, the process proceeds to step S203, and the capture time T13 when the falling edge of the second pulse is captured. To the capture time T14 when the rising edge of the second pulse is captured is determined whether it is longer than 7 [ms] and shorter than 13 [ms]. When the determination condition of step S203 is satisfied, that is, when the inequality of 7 [ms] <(T14−T13) <13 [ms] is satisfied, the communication data initialization command is assumed to be normal, and the process proceeds to step S204. bps: bits per second] The reception mode is set. That is, at this time, the 9600 [bps] reception mode for reading the connection ID code of the start word in the initial command of communication data described later is set in advance.
[0022]
Next, the process proceeds to step S205, a communication response process with the external device 200 (200 ′) is executed, and this routine is terminated. In this communication response process, first, it is determined whether the connection ID codes of the start word following the two pulses in the communication data initialization command match, and when the connection ID codes of the start word match, the subsequent communication data The communication response by is executed. When the connection ID code of the start word in the initialization command does not match, the communication response by the communication data is rejected.
[0023]
On the other hand, the determination condition of step S201 is not satisfied, that is, when the time from the capture time T11 to the capture time T12 is shorter than 7 [ms] or longer than 13 [ms], or the determination condition of step S202 is satisfied. That is, when the time from the capture time T12 to the capture time T13 is shorter than 7 [ms] or 13 [ms], or the determination condition of step S203 is not satisfied, that is, from the capture time T13 to the capture time T14. If the time is shorter than 7 [ms] or 13 [ms], the process proceeds to step S206, and it is determined that the communication data initialization command is abnormal. The same processing is repeatedly executed. If the initialization command for communication data is not determined to be normal even if this routine is tried a plurality of times, a warning (not shown) is given and the routine is terminated.
[0024]
As described above, the ECU 100 (100 ′) as the electronic control device for the internal combustion engine of the present embodiment and the modification is connected to the external connection device 200 (200 ′), and the MPU 10 for performing mutual communication by asynchronous communication. When reception of communication data from the reception port Rx and the transmission port Tx and the external connection device 200 (200 ') is started via the reception port Rx, a predetermined number of pulses of communication data input to the reception port Rx and the subsequent pulses The pulse width and interval are measured based on the capture input port TI04B of the MPU 10 that sequentially captures the fall time and rise time of a series of pulses in the initialization command consisting of the start word, and the time captured at the capture input port TI04B. The measuring means achieved by the MPU 10, the width of the pulse by the measuring means, and When septum becomes a preset time range is to a granted means achieved by MPU10 to allow communication response with the external connection device 200 (200 ').
[0025]
In other words, when the ECU 100 (100 ') side determines whether or not the external connection device 200 (200') is genuine, the external connection device sequentially captured at the capture input port TI04B of the MPU 10 of the ECU 100 (100 '). The fall time and rise time of a series of pulses in the communication data initialization command from 200 (200 ') are measured very accurately as the capture time, that is, in units of [μs]. When the pulse width and interval based on this measurement are within a preset time range, the ECU 100 (100 ′) recognizes that the externally connected device 200 (200 ′) is genuine, and the ECU 100 thereafter Communication response with (100 ') is allowed. Thereby, the connection permission determination for the communication response with the external connection device 200 (200 ′) in the ECU 100 (100 ′) can be accurately performed.
[0026]
In addition, the permission means achieved by the MPU 10 of the ECU 100 (100 ′) as the electronic control device for the internal combustion engine of the present embodiment and the modification is the reception port Rx at the final rising time of a series of pulses in the initialization command. Is switched to the reception mode of the connection ID code of the start word in the initialization command. That is, at the measurement timing that is the last rise time of a series of pulses in the initialization command, the reception port Rx is switched in advance to the reception mode in which the connection ID code of the start word that is read later can be received. As a result, the connection ID code of the start word following the series of pulses in the initialization command can be accurately read from the beginning.
[0027]
By the way, in the above-described embodiment and modification, the connection permission determination in the two specific examples of the communication data initialization command has been described. However, the present invention is not limited to this. According to the same method for various forms of the communication data initialization command, the connection permission determination can be performed accurately.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a schematic configuration of an electronic control device for an internal combustion engine according to an embodiment of the present invention and a connection state with externally connected devices.
FIG. 2 is a block diagram showing a schematic configuration of an internal combustion engine electronic control device according to a modification of FIG. 1 and a connection state with an external connection device.
FIG. 3 is a flowchart showing a communication response permission determination process in an MPU in an ECU used in an electronic control device for an internal combustion engine according to an embodiment and a modification of the embodiment of the present invention. .
4 is a time chart showing the relationship between a communication data initialization command corresponding to the processing of FIG. 3 and a capture time. FIG.
FIG. 5 shows a modified example of the processing procedure of the communication response permission determination in the MPU in the ECU used in the electronic control device for an internal combustion engine according to an example and a modified example of the embodiment of the present invention. It is a flowchart.
6 is a time chart showing the relationship between a communication data initialization command corresponding to the processing of FIG. 5 and a capture time. FIG.
[Explanation of symbols]
10 MPU
Rx reception port Tx transmission port TI04B Capture input port 100, 100 'ECU (electronic control unit)
200, 200 'Externally connected equipment

Claims (2)

外部接続機器と接続され、非同期通信にて相互通信を行なうための受信ポート及び送信ポートと、
前記外部接続機器からの通信データを前記受信ポートを介して受信開始する際、前記受信ポートに入力される前記通信データの所定回数のパルス及びそれに続くスタートワードからなる初期化コマンドにおける一連のパルスの立下がり時刻及び立上がり時刻を順次、捕捉するキャプチャ入力ポートと、
前記キャプチャ入力ポートで捕捉された時刻に基づき前記パルスの幅及び間隔を計測する計測手段と、
前記計測手段による前記パルスの幅及び間隔が予め設定された時間範囲内となるときには、前記外部接続機器との通信応答を許可する許可手段と
を具備することを特徴とする内燃機関用電子制御装置。
A reception port and a transmission port connected to an external device and performing mutual communication by asynchronous communication;
When reception of communication data from the external connection device is started via the reception port, a series of pulses in an initialization command including a predetermined number of pulses of the communication data input to the reception port and a start word that follows the communication data. A capture input port that captures the falling and rising times in sequence,
Measuring means for measuring the width and interval of the pulse based on the time captured at the capture input port;
An electronic control device for an internal combustion engine, comprising: permission means for permitting a communication response with the external connection device when the width and interval of the pulse by the measuring means are within a preset time range. .
前記許可手段は、前記初期化コマンドにおける一連のパルスの最終の立上がり時刻にて前記受信ポートを前記初期化コマンドにおけるスタートワードの受信モードに切替えることを特徴とする請求項1に記載の内燃機関用電子制御装置。2. The internal combustion engine according to claim 1, wherein the permission unit switches the reception port to a start word reception mode in the initialization command at a last rising time of a series of pulses in the initialization command. Electronic control device.
JP2002065616A 2002-03-11 2002-03-11 Electronic control device for internal combustion engine Expired - Fee Related JP3750617B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002065616A JP3750617B2 (en) 2002-03-11 2002-03-11 Electronic control device for internal combustion engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002065616A JP3750617B2 (en) 2002-03-11 2002-03-11 Electronic control device for internal combustion engine

Publications (2)

Publication Number Publication Date
JP2003264606A JP2003264606A (en) 2003-09-19
JP3750617B2 true JP3750617B2 (en) 2006-03-01

Family

ID=29197839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002065616A Expired - Fee Related JP3750617B2 (en) 2002-03-11 2002-03-11 Electronic control device for internal combustion engine

Country Status (1)

Country Link
JP (1) JP3750617B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6505482B2 (en) * 2015-03-23 2019-04-24 日立オートモティブシステムズ株式会社 Electronic control unit

Also Published As

Publication number Publication date
JP2003264606A (en) 2003-09-19

Similar Documents

Publication Publication Date Title
CN107038280B (en) Software and hardware collaborative simulation verification system and method
CN107707520A (en) Network monitoring device
EP1789858B1 (en) Safety control device, safety control system, and method for detecting communication error
KR20130021652A (en) Interface apparatus and method for converting a plurality of different vehicles diagnosis protocol to standard diagnosis protocol
CN104568459A (en) OBD intelligent device, test method and system thereof, and ECU simulator
CN110098897B (en) Serial communication method, device, computer equipment and storage medium
CN112448874B (en) Vehicle-mounted communication device and time synchronization method thereof
US11283646B2 (en) Monitoring local interconnect network (LIN) nodes
KR20050052537A (en) Method for transmittng data on a bus
CN114740329A (en) Data comparison device, data comparison method and chip tester
JP3750617B2 (en) Electronic control device for internal combustion engine
CN113032320B (en) Asynchronous serial port communication baud rate self-adaption method
CN110914769A (en) Process control
WO2016145405A1 (en) Intelligent packet analyzer circuits, systems, and methods
CN112398672B (en) Message detection method and device
CN109906609A (en) Method and apparatus for monitoring image sensor
US7730240B2 (en) Method for controlling the access times to a system bus and communication module
CN114416622B (en) Single bus communication system and method
JP4247791B2 (en) Ensuring maximum reaction time for complex or distributed safety and / or non-safety systems
CN114006837B (en) Error code testing method and device for network port of intelligent network card and intelligent network card
JPH08163653A (en) Serial communication switching method
CN109634906B (en) IC communication system and method
JP2007036850A (en) Character recognizing circuit
CN116614429A (en) Verification device and method of AXI bus bandwidth detection system
CN116052756A (en) SMBUS function test system, method, medium and equipment based on solid state disk

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050902

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051128

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3750617

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091216

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091216

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101216

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111216

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121216

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131216

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees