JP2014127078A - Control system - Google Patents
Control system Download PDFInfo
- Publication number
- JP2014127078A JP2014127078A JP2012284214A JP2012284214A JP2014127078A JP 2014127078 A JP2014127078 A JP 2014127078A JP 2012284214 A JP2012284214 A JP 2012284214A JP 2012284214 A JP2012284214 A JP 2012284214A JP 2014127078 A JP2014127078 A JP 2014127078A
- Authority
- JP
- Japan
- Prior art keywords
- data
- control
- command
- frame
- drive
- 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
Links
- 230000005540 biological transmission Effects 0.000 claims abstract description 87
- 238000002347 injection Methods 0.000 description 24
- 239000007924 injection Substances 0.000 description 24
- 239000000446 fuel Substances 0.000 description 21
- 238000001514 detection method Methods 0.000 description 12
- 238000003745 diagnosis Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 description 2
- 239000000498 cooling water Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 229910052760 oxygen Inorganic materials 0.000 description 2
- 239000001301 oxygen Substances 0.000 description 2
- 238000011144 upstream manufacturing Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 230000004043 responsiveness Effects 0.000 description 1
Images
Landscapes
- Bus Control (AREA)
- Information Transfer Systems (AREA)
Abstract
Description
本発明は、制御対象機器を制御するための制御システムに関する。 The present invention relates to a control system for controlling a device to be controlled.
例えば、特許文献1には、計算装置と、当該計算装置とシリアル多線バスを介して接続された周辺構成素子とを有する制御装置が開示されている。この周辺構成素子は、計算装置から出力されたシリアルデータを、センサ、診断テスタ等の外部装置へ伝送する。 For example, Patent Literature 1 discloses a control device having a computing device and peripheral components connected to the computing device via a serial multi-line bus. This peripheral component transmits serial data output from the computing device to an external device such as a sensor or a diagnostic tester.
このように、計算装置と外部装置との間に、周辺構成素子を介在させ、その周辺構成素子との間をシリアル多線バスを介して接続するようにすると、計算装置が、各外部装置にパラレルにデータを送信する構成に比較して、信号線や接続端子の数を少なくすることができる。 In this way, when a peripheral component is interposed between the computing device and the external device, and the peripheral component is connected via the serial multi-wire bus, the computing device is connected to each external device. Compared to a configuration in which data is transmitted in parallel, the number of signal lines and connection terminals can be reduced.
上述した制御システムにおけるシリアル通信を、例えば車両のエンジン制御に適用しようとした場合、点火装置、燃料噴射装置、燃料ポンプ、電子スロットルなどの制御対象機器の駆動回路(ドライバ)とマイコンとの間に、シリアル通信を行うための通信インターフェースを介在させることが考えられる。 When the serial communication in the control system described above is applied to, for example, vehicle engine control, between a drive circuit (driver) of a control target device such as an ignition device, a fuel injection device, a fuel pump, and an electronic throttle, and a microcomputer. It is conceivable to interpose a communication interface for performing serial communication.
しかし、このような構成において、マイコンが出力する信号は、各駆動回路が対応する制御対象機器に出力する駆動信号を生成するための駆動制御データばかりではない。例えば、マイコンは、各駆動回路において故障診断を実行し、その結果を通知するよう指示したり、あるいは、制御対象機器の種類や状態に応じて、駆動回路において用いられる設定データの変更を指示したりするためのコマンドデータを出力することも必要となる場合がある。 However, in such a configuration, the signal output from the microcomputer is not only drive control data for generating a drive signal output to the control target device corresponding to each drive circuit. For example, the microcomputer executes a failure diagnosis in each drive circuit and instructs to notify the result, or instructs to change setting data used in the drive circuit according to the type and state of the control target device. In some cases, it may be necessary to output command data.
ここで、例えば点火装置によりエンジンのシリンダ内の燃料を着火させるタイミングや、そのシリンダ内に燃料を噴射するタイミングは、エンジンの運転状態を大きく左右する。従って、エンジンを望ましい運転状態に制御するためには、点火装置や燃料噴射装置の駆動回路に対して、タイミング良く、点火を指示したり、燃料の噴射を指示したりするための駆動制御データを与える必要がある。 Here, for example, the timing at which the fuel in the cylinder of the engine is ignited by the ignition device and the timing at which the fuel is injected into the cylinder greatly affect the operating state of the engine. Therefore, in order to control the engine to a desired operating state, drive control data for instructing ignition or injecting fuel in a timely manner to the drive circuit of the ignition device or the fuel injection device is provided. Need to give.
その一方で、上述したように、マイコンはコマンドデータを出力することがある。このコマンドデータが、上述したような良好なタイミング精度が求められる駆動制御データとタイミング的に競合し、コマンドデータの送信が優先されてしまうと、エンジンの運転状態を望ましい運転状態に維持することが困難になる虞が生じる。 On the other hand, as described above, the microcomputer may output command data. If this command data competes in timing with drive control data that requires good timing accuracy as described above and transmission of command data is prioritized, the engine operating state can be maintained in a desirable operating state. There is a risk of difficulty.
本発明は、上述した点に鑑みてなされたもので、制御部が出力した駆動制御データ及びコマンドデータを、制御対象機器の駆動部に対して、シリアルに送信する制御システムにおいて、コマンドデータが、制御対象機器の駆動状態を変化させるための駆動制御データと競合することを回避することが可能な制御システムを提供することを目的とする。 The present invention has been made in view of the above points. In a control system that serially transmits drive control data and command data output by a control unit to a drive unit of a control target device, command data is: It is an object of the present invention to provide a control system capable of avoiding competition with drive control data for changing the drive state of a control target device.
上記目的を達成するために、本発明による制御システム(100)は、
制御対象機器を駆動する駆動信号を出力する駆動部(23、24)と、
駆動信号を生成するための駆動制御データと、当該駆動部に所定の動作を指示するコマンドデータとを出力する制御部(11)と、
制御部が出力した、駆動制御データを含むデータフレーム及びコマンドデータを含むコマンドフレームを、駆動部に対して、シリアルに送信する通信インターフェース(15、21)と、を備え、
制御部は、通信インターフェースによるデータフレーム及びコマンドフレームの送信に関して、コマンドフレームが制御対象機器の駆動状態を変化させるための駆動制御データを含むデータフレームと競合しないように、コマンドフレームの送信開始タイミングを調停する調停部(33、36)を備えることを特徴とする。
In order to achieve the above object, a control system (100) according to the present invention comprises:
A drive unit (23, 24) for outputting a drive signal for driving the control target device;
A control unit (11) for outputting drive control data for generating a drive signal and command data for instructing the drive unit to perform a predetermined operation;
A communication interface (15, 21) for serially transmitting a data frame including drive control data and a command frame including command data output from the control unit to the drive unit;
The control unit sets the transmission start timing of the command frame so that the command frame does not compete with the data frame including the drive control data for changing the drive state of the control target device regarding the transmission of the data frame and the command frame by the communication interface. An arbitration unit (33, 36) for arbitrating is provided.
このような構成を採用したことにより、通信インターフェースを介して、制御部から駆動部へ、データフレーム及びコマンドフレームを送信する場合であっても、コマンドフレームが、制御対象機器の駆動状態を変化させるための駆動制御データを含むデータフレームと競合することを回避することができる。そのため、駆動制御データにより、良好なタイミング精度にて制御対象機器の駆動状態を変化させることができる。 By adopting such a configuration, even when a data frame and a command frame are transmitted from the control unit to the driving unit via the communication interface, the command frame changes the driving state of the control target device. Therefore, it is possible to avoid contention with a data frame including drive control data. Therefore, the drive state of the control target device can be changed with good timing accuracy by the drive control data.
本発明による制御システムは、複数の制御対象機器を制御するものであり、1つのデータフレームは、複数の制御対象機器のための駆動制御データを含み、このフレームデータが、繰り返し送信され、調停部は、複数の制御対象機器の内、コマンドフレームとの競合によるデータフレームの送信開始タイミングの遅れが制御上問題となる制御対象機器の駆動状態を変化させる駆動制御データを含むデータフレームを対象として、コマンドフレームの送信開始タイミングの調停を行うことが好ましい。 The control system according to the present invention controls a plurality of devices to be controlled, and one data frame includes drive control data for a plurality of devices to be controlled, and this frame data is repeatedly transmitted to the arbitration unit. Is a data frame including drive control data that changes the drive state of the control target device, in which a delay in the transmission start timing of the data frame due to contention with the command frame is a problem in control among a plurality of control target devices, It is preferable to adjust the transmission start timing of the command frame.
このような構成を採用することにより、制御システムは、複数の制御対象機器をそれぞれ制御するための駆動制御データを、1つのデータフレームにて同時に送信することができる。その一方、それらの駆動制御データが、対応する制御対象機器の駆動状態を変化させるタイミングは、種々の条件に応じてそれぞれ決定される。そのため、複数の制御対象機器の内、コマンドフレームとの競合によるデータフレームの送信開始タイミングの遅れが制御上問題となる制御対象機器を選定し、その選定された制御対象機器の駆動状態を変化させる駆動制御データを含むデータフレームを対象として、コマンドフレームの送信開始タイミングの調停を行う。これにより、コマンドフレームとの競合を回避することが必要なデータフレームに関して、確実にコマンドフレームの送信開始時期の調停を行うことができる。 By adopting such a configuration, the control system can simultaneously transmit drive control data for controlling a plurality of control target devices in one data frame. On the other hand, the timing at which the drive control data changes the drive state of the corresponding control target device is determined according to various conditions. Therefore, among the plurality of control target devices, a control target device whose data frame transmission start delay due to contention with the command frame becomes a control problem is selected, and the drive state of the selected control target device is changed. Arbitration of command frame transmission start timing is performed for a data frame including drive control data. As a result, it is possible to reliably arbitrate the transmission start time of the command frame with respect to the data frame that needs to avoid conflict with the command frame.
コマンドフレームの送信開始タイミングの調停の具体例として、調停部(33)は、通信インターフェースにおいて、制御対象機器の駆動状態を変化させるための駆動制御データを含むデータフレームの送信から所定期間内に、コマンドフレームが送信されるように、コマンドフレームの送信開始タイミングを設定するようにしても良い。この手法は、一度、制御対象機器の駆動状態を変化させるための駆動制御データが出力されると、ある程度の期間は、そのような駆動制御データが出力されない場合に効果的である。 As a specific example of command frame transmission start timing arbitration, the arbitration unit (33), within the communication interface, transmits a data frame including drive control data for changing the drive state of the control target device within a predetermined period. The command frame transmission start timing may be set so that the command frame is transmitted. This method is effective when the drive control data for changing the drive state of the control target device is output once, when such drive control data is not output for a certain period.
また、調停部(36)は、制御対象機器の駆動状態を変化させるための駆動制御データを含むデータフレームの送信タイミングを基準として、コマンドフレームの送信禁止期間を定め、制御部によりコマンドデータが出力されたとき、送信禁止期間に該当している場合、通信インターフェースに対してコマンドデータの送信指示を保留し、送信禁止期間に該当しない場合、コマンドデータの送信指示を行うようにしても良い。このようにしても、コマンドフレームが、制御対象機器の駆動状態を変化させるための駆動制御データを含むデータフレームと競合することを回避することができる。 The arbitration unit (36) determines a command frame transmission prohibition period based on the transmission timing of the data frame including the drive control data for changing the drive state of the control target device, and the control unit outputs the command data. When the transmission prohibition period is satisfied, the command data transmission instruction may be suspended with respect to the communication interface, and when the transmission prohibition period is not satisfied, the command data transmission instruction may be performed. Even in this case, it is possible to avoid a command frame competing with a data frame including drive control data for changing the drive state of the control target device.
なお、上記括弧内の参照番号は、本発明の理解を容易にすべく、後述する実施形態における具体的な構成との対応関係の一例を示すものにすぎず、なんら本発明の範囲を制限することを意図したものではない。 Note that the reference numerals in the parentheses merely show an example of a correspondence relationship with a specific configuration in an embodiment described later in order to facilitate understanding of the present invention, and limit the scope of the present invention. It is not intended.
また、上述した特徴以外の本発明の特徴に関しては、後述する実施形態の説明及び添付図面から明らかになる。 Further, the features of the present invention other than the features described above will be apparent from the description of embodiments and the accompanying drawings described later.
(第1実施形態)
以下、本発明の第1実施形態による制御システムについて、図面を参照しつつ説明する。なお、本実施形態では、制御システムが、車両のエンジンの運転状態を制御するために適用された例について説明する。しかし、本発明による制御システムの制御対象は、エンジンに限られる訳ではなく、その他の機器や装置を制御対象としても良い。
(First embodiment)
Hereinafter, a control system according to a first embodiment of the present invention will be described with reference to the drawings. In the present embodiment, an example in which the control system is applied to control the operating state of the vehicle engine will be described. However, the control target of the control system according to the present invention is not limited to the engine, and other devices and apparatuses may be the control target.
図1は、本実施形態による制御システム100の概略的な構成を示す構成図である。図1に示すように、制御システム100は、マイコン10と拡張IC20とを有する。
FIG. 1 is a configuration diagram illustrating a schematic configuration of a
マイコン10は、エンジン(図示せず)の運転状態を検出するために、入出力部(I/O)14を介して、各種のセンサの検出信号を取り込む。例えば、マイコン10は、吸気管に設けられたスロットルバルブの開度を検出するスロットル開度センサ、エンジンの所定クランク角毎にクランク角信号を出力するクランク角センサ、エンジンの吸入空気量を検出するエアフローセンサ、エンジン冷却水の温度を検出する冷却水温センサ、排気中の酸素濃度を検出する酸素濃度センサなどから検出信号を取り込む。
The
マイコン10は、CPU11、ROM12、RAM13を有する。そして、制御部としてのCPU11が、ROM12に記憶された各種の演算プログラムを実行することで、現在のエンジンの運転状態に基づき、そのエンジンの運転状態を所望の状態になるように制御するための制御データを演算する。例えば、マイコン10は、上記各種センサ等から各々検出信号を入力し、それらの各種信号に基づき、制御データとして、点火時期を示す点火データ、燃料噴射時期及びその量を指示する噴射データ、スロットル開度を制御するための駆動データ、燃料ポンプの回転数を制御するための駆動データなどを演算する。
The
また、例えばエアフローセンサは大きな温度特性を有するため、定期的に温度検出を行なうことが必要となる場合がある。この場合、エアフローセンサの近傍に温度センサを設けるのではなく、エアフローセンサの温度と相関する、エアフローセンサのインピーダンスを検出し、その検出したインピーダンスから温度を推定することが考えられる。このような場合、マイコン10は、エアフローセンサのインピーダンス検出を行なう時期が到来したか否かを判断し、その検出時期が到来したと判断した場合には、インピーダンス検出を行なうべく、エアフローセンサへの所定電流の通電を指示する通電データを制御データとして出力する。
For example, since an airflow sensor has a large temperature characteristic, it may be necessary to periodically detect the temperature. In this case, instead of providing a temperature sensor in the vicinity of the air flow sensor, it is conceivable to detect the impedance of the air flow sensor that correlates with the temperature of the air flow sensor and estimate the temperature from the detected impedance. In such a case, the
さらに、マイコン10は、拡張IC20に設けられた各種のドライバ23〜25に対して、各ドライバ23〜25において故障診断を実行し、その結果を通知するよう指示したり、あるいは、制御対象機器の種類や状態に応じて、対応するドライバ23〜25において用いられる設定データの変更を指示したりするためのコマンドデータを出力する。
Further, the
マイコン10及び拡張IC20は、それぞれマイクロセカンドバスインターフェース(MSBIF)15、21を有し、これらMSBIF15,21を介して、相互に通信可能に接続されている。MSBIF15、21は、高速にシリアル通信を行うための通信インターフェースであり、例えば通信フレームを1〜数μs以内の時間で送信することが可能なものである。MSBIF15は、マイコン10から出力された制御データやコマンドデータに基づき、制御データを含むデータフレーム(DF)及びコマンドデータを含むコマンドフレーム(CF)を生成し、ダウンストリーム(DS)用の送信ラインを用いて、拡張IC20のMSBIF21に送信する。逆に、拡張IC20において、例えばエアフローセンサのインピーダンス検出結果や、故障診断結果が得られたときには、MSBIF21が、それらの検出結果や故障診断結果を含むデータフレームを生成し、アップストリーム(US)用の送信ラインを用いて、マイコン10のMSBIF15に送信する。
The
MSBIF15は、例えば図2(a)、(b)に示すように、連続的にかつ繰り返しデータフレームを送信する。各データフレームには、エンジンの運転状態を制御するために必要な全ての制御データの項目が含まれている。例えば、データフレームには、エンジンの気筒数分の点火データ、噴射データ(直噴エンジンであれば、気筒数分の噴射データ)、スロットルバルブモータの駆動データ、燃料ポンプモータの駆動データ、及びインピーダンス検出のための通電データなどをそれぞれ示す制御データが含まれる。すなわち、データフレームは、送信すべき制御データの種類や長さに応じて、予め複数に区分され、いずれの区分において、いずれの制御データを送信するかが事前に定められている。この制御データの中で、例えば点火データや噴射データは、点火や噴射を行うべき期間はオンし、それ以外はオフするものとなり、各モータの駆動データは、モータの回転数を直接的に指示するものであったり、モータの回転数の増減を指示するものとなる。
For example, as shown in FIGS. 2A and 2B, the
さらに、MSBIF15からMSBIF21へは、クロック送信ラインを介して、クロック信号が与えられている。このクロック信号は、MSBIF15が、CPU11から出力された制御データやコマンドデータを、データフレームやコマンドフレームに載せる際に、各データの単位長さ(ビット)を区分するために用いられるものである。このクロック信号をMSBIF21に与えることにより、MSBIF21では、受信したデータフレームやコマンドフレームから各種の制御データやコマンドデータを復号することができる。さらに、MSBIF21が、そのクロック信号を用いてインピーダンス検出結果を示すデータなどの単位長さを区分しつつデータフレームに載せることにより、MSBIF15において、そのようなデータを復号することができるようになる。
Further, a clock signal is given from the
拡張IC20は、さらに、レジスタ22及び各種のドライバ23〜25を有する。レジスタ22は、上述したインピーダンス検出結果や故障診断結果を一時的に保存したり、少なくとも1つのドライバの設定を変更するための設定データを保存しておくものである。拡張IC20の各種のドライバ23〜25は、上述した各種の制御データに基づいて、エンジンに設けられた各種の機器や装置に対して駆動信号を出力する。例えば、点火用ドライバ23は、点火データに基づいて、図示しない点火装置に対して点火信号を出力する。すなわち、点火用ドライバ23は、点火データがオンしているとき点火信号を出力し、点火プラグにより火花を発生させる。また、噴射用ドライバ24は、噴射データに基づいて、図示しない燃料噴射装置に対して噴射信号を出力する。すなわち、噴射用ドライバ24は、噴射データがオンしている間、噴射信号を出力する。それにより、燃料噴射弁が開弁され、エンジン内に燃料が噴射される。
The
その他のドライバ25は、例えば、スロットルバルブモータの駆動データに基づいて、スロットルバルブモータに対して駆動信号を出力し、スロットルバルブ開度を所望の開度となるように制御する。また、拡張IC20には、燃料ポンプモータの駆動データに基づいて燃料ポンプモータに駆動信号を出力して、燃料ポンプの回転数を所望の回転数となるように制御したり、インピーダンス検出のための通電データに基づいて、エアフローセンサにインピーダンス検出用の電流を通電したりするドライバなども設けられる。
For example, the
ここで、上述した制御データの中で、特に、点火データに基づき、エンジンのシリンダ内の燃料を着火させるタイミングや、噴射データに基づき、エンジンの吸気管やシリンダ内に燃料を噴射するタイミングは、エンジンを望ましい運転状態に制御する上で非常に重要となる。換言すると、エンジンを望ましい運転状態に制御するためには、点火装置や燃料噴射装置のドライバ23、24に対して、タイミング良く、点火の開始及び終了を指示したり、燃料の噴射の開始及び終了を指示したりするための制御データを与える必要がある。
Here, among the above-described control data, in particular, the timing for igniting the fuel in the engine cylinder based on the ignition data, and the timing for injecting the fuel into the engine intake pipe and cylinder based on the injection data are as follows: This is very important in controlling the engine to a desired operating state. In other words, in order to control the engine to a desired operating state, the ignition devices and the fuel
その一方で、上述したように、マイコン10はコマンドデータを出力することがある。このコマンドデータが、上述したような良好なタイミング精度が求められる制御データとタイミング的に競合し、コマンドデータの送信が優先されてしまうと、エンジンの運転状態を望ましい運転状態に維持することが困難になる虞が生じる。
On the other hand, as described above, the
例えば、図2(a)は、点火信号をオフからオンに変化させる点火データ(最初の点火H出力データ)を含むデータフレームの送信前にコマンドフレームが送信された例を示し、図2(b)は、最初の点火H出力データを含むデータフレームとコマンドフレームとの送信タイミングが競合した例を示している。 For example, FIG. 2A shows an example in which a command frame is transmitted before transmission of a data frame including ignition data (first ignition H output data) for changing the ignition signal from OFF to ON, and FIG. ) Shows an example in which the transmission timing of the data frame including the first ignition H output data and the command frame compete.
図2(a)に示す例では、コマンドフレームと、点火信号をオフするための点火データ(点火L出力データ)を含むデータフレームとが競合している。この場合、コマンドフレームの送信が行われ、点火L出力データを含むデータフレームは送信されていないが、競合負けしたデータフレームの点火L出力データは、点火装置の駆動状態を変化させるものではない。そのため、この場合、コマンドフレームが送信されても、エンジンの運転状態の制御に実質的な影響が及ぶことはない。しかし、図2(b)に示す例のように、点火データが、点火L出力データから点火H出力データに変化するとき、その変化直後の点火H出力データを含むデータフレームがコマンドフレームと競合し、コマンドフレームが出力されてしまうと、点火の開始タイミングが所望のタイミングから遅れてしまう。この結果、エンジンの運転状態を望ましい運転状態に維持することは困難になってしまう。 In the example shown in FIG. 2A, a command frame and a data frame including ignition data (ignition L output data) for turning off the ignition signal compete. In this case, the command frame is transmitted, and the data frame including the ignition L output data is not transmitted. However, the ignition L output data of the data frame that has lost the competition does not change the driving state of the ignition device. Therefore, in this case, even if the command frame is transmitted, the control of the engine operating state is not substantially affected. However, when the ignition data changes from the ignition L output data to the ignition H output data as in the example shown in FIG. 2B, the data frame including the ignition H output data immediately after the change conflicts with the command frame. If the command frame is output, the ignition start timing is delayed from the desired timing. As a result, it becomes difficult to maintain the engine operating state in a desirable operating state.
そこで、本実施形態においては、コマンドフレームとの競合によるデータフレームの送信タイミングの遅れが制御上問題となる、点火装置や燃料噴射装置の駆動状態を変化させる制御データを含むデータフレームを対象として、その対象データフレームと競合しないように、コマンドフレームの送信タイミングの調停を行うこととした。これにより、データフレームに含まれる点火データや噴射データにより、良好なタイミング精度にて点火装置や燃料噴射装置の駆動状態を変化させることが可能となる。 Therefore, in the present embodiment, for a data frame including control data for changing the driving state of the ignition device or the fuel injection device, a delay in the transmission timing of the data frame due to competition with the command frame is a problem in control. The command frame transmission timing is adjusted so as not to compete with the target data frame. Thereby, it becomes possible to change the driving state of the ignition device and the fuel injection device with good timing accuracy by the ignition data and the injection data included in the data frame.
なお、いずれの制御データを含むデータフレームがコマンドフレームと競合したときに制御上問題が生じるかは、通信フレームの長さ、制御対象機器の応答性、その制御対象機器の駆動状態による制御対象への影響の大きさなどに基づいて、適宜、決定すれば良い。 In addition, which control data contains a control frame when a data frame containing a control frame competes with the command frame depends on the length of the communication frame, the responsiveness of the control target device, and the control target depending on the drive state of the control target device. What is necessary is just to determine suitably based on the magnitude | size etc. of an influence.
以下、点火の開始や終了を指示する点火データを含むデータフレームを例として、そのデータフレームと競合しないように、コマンドフレームの送信タイミングの調停を行うための、マイコン10の機能構成や制御処理について説明する。図3は、コマンドフレームの送信タイミングを調停するためのマイコン10の機能をブロックとして表した機能構成図である。
Hereinafter, taking as an example a data frame including ignition data instructing the start and end of ignition, the functional configuration and control processing of the
図3において、点火出力変化タイミング算出部31は、上述した各種センサの検出信号に基づいて、点火信号をオフからオンに変化させる指示を行うべきタイミング及びオンからオフに変化させる指示を行うべきタイミングを算出する。この点火出力変化タイミング算出部31の算出結果は、制御データ生成部32及びコマンドフレーム送信タイミング決定部33に出力される。
In FIG. 3, the ignition output change timing
制御データ生成部32は、点火出力変化タイミング算出部31の算出結果に基づき、点火L出力データもしくは点火H出力データを制御データとして算出する。さらに、制御データ生成部32は、他の制御データを生成するための演算結果を取り込み、それぞれの制御データを算出する。そして、各制御データを予め定めた順番で並べた制御データ列を作成し、MSBIF15のデータフレームバッファ16に出力する。
The control
コマンドフレーム送信タイミング決定部33は、点火L出力から点火H出力もしくは点火H出力から点火L出力に変化する点火データを含むデータフレームの送信から所定期間以内に、コマンドフレームが送信されるように、コマンドフレームの送信タイミングを決定する。点火信号がオフからオンに変化したり、オンからオフに変化したりした直後から所定の期間は、少なくとも、その変化後の点火信号の状態が維持される。そのため、コマンドフレームの送信タイミングを上述したように決定すると、点火信号の状態が維持されている間にコマンドフレームを送信することができ、点火信号の状態を変化させるための点火データを含むデータフレームと競合することを避けることができる。
The command frame transmission
より好ましくは、図4に示すように、コマンドフレーム送信タイミング決定部33は、点火L出力から点火H出力もしくは点火H出力から点火L出力に変化する点火データを含むデータフレームの次に、コマンドフレームが送信されるように、コマンドフレームの送信タイミングを決定する。このようにすれば、より確実に、点火信号の状態を変化させる点火データを含むデータフレームとの競合を回避することができる。ただし、次に、点火信号の状態を変化させる点火データを含むデータフレームが用意されるまでの期間内であれば、そのようなデータフレームとの競合は回避できる。従って、コマンドフレームは、必ずしも、点火信号の状態を変化させる点火データを含むデータフレームの次に送信されなくとも良い。
More preferably, as shown in FIG. 4, the command frame transmission
コマンドフレーム送信タイミング決定部33は、例えば図4に示すように、点火信号の状態を変化させる点火データを含むデータフレームの送信タイミング(点火信号の状態を変化させる指示を行うべきタイミング)に所定の遅延時間を加えることで、コマンドフレームの送信タイミングを決定することができる。この場合、遅延時間に依存して、点火信号の状態を変化させるデータフレームの次のフレームとしてコマンドフレームを送信することも可能であるし、さらにそれよりも後のフレームとしてコマンドフレームを送信することも可能となる。
For example, as shown in FIG. 4, the command frame transmission
マイコン10のコマンドデータ生成部34は、必要に応じて、故障診断を指示したり、設定データを変更することを指示するコマンドデータを生成する。コマンドデータ生成部34によって生成されたコマンドデータは、コマンドデータ出力部35に、一時的に保存される。コマンドデータ出力部35は、保存しているコマンドデータがある場合、コマンドフレーム送信タイミング決定部33により決定された送信タイミングが到来したかを判断し、到来したと判断した場合に、保存しているコマンドデータをMSBIF15のコマンドフレームバッファ17に出力する。なお、コマンドフレームの送信タイミングが到来したか否かは、コマンドフレーム送信タイミング決定部33において判断しても良い。
The command
MSBIF15は、ダウンストリーム用コントローラ18を有する。このダウンストリーム用コントローラ18は、データフレームバッファ16あるいはコマンドフレームバッファ17に保存されている制御データ列あるいはコマンドデータに基づき、データフレームあるいはコマンドフレームを送信する。すなわち、ダウンストリーム用コントローラ18は、制御データ列あるいはコマンドデータを、単位データで区分しつつ、順番に送信する。このようにして送信される制御データ列の集合がデータフレームとなり、コマンドデータの集合がコマンドフレームとなる。
The
また、ダウンストリーム用コントローラ18は、データフレームバッファ16とコマンドフレームバッファ17の両方にデータが保存されている場合には、いずれのバッファにより早くデータが保存されたかに基づいて、どちらを先に送信するかを決定する。もしくは、本実施形態では、コマンドフレームの送信タイミングは、競合を回避すべきデータフレームの送信タイミングからずれるように調停されているので、コマンドデータがコマンドフレームバッファ17に保存されているときには、コマンドフレームの送信を優先するようにしても良い。
Further, when data is stored in both the
次に、図5のフローチャートを参照しつつ、コマンドフレームの送信タイミングの調停を行うための制御処理について説明する。 Next, control processing for adjusting the transmission timing of the command frame will be described with reference to the flowchart of FIG.
まず、ステップS100では、各種センサの検出信号に基づいて、点火信号をオフからオンに変化させるタイミングTIGON及びオンからオフに変化させるタイミングTIGOFFを算出する。続くステップS110では、ステップS100にて算出したタイミングTIGON、TIGOFFに所定の遅延時間を加えることで、コマンドフレームの送信タイミングTCOを決定する。 First, in step S100, based on the detection signals from various sensors, and calculates the timing T IGOFF changing off from the timing T IGON and on changing the ON an ignition signal from OFF. In step S110, by adding a predetermined delay time in the timing T IGON, T IGOFF calculated in step S100, it determines the transmission timing T CO command frame.
ステップS120では、点火データとして、点火信号をオフからオンに変化させるタイミングTIGON以前は点火L出力データを生成し、点火信号をオフからオンに変化させるタイミングTIGONからオンからオフに変化させるタイミングTIGOFFまでは点火H出力データを生成し、点火信号をオンからオフに変化させるタイミングTIGOFF以後は点火L出力データを生成する。このようにして生成される点火データは、順次、データフレームバッファ16に出力される。
In step S120, as ignition data, ignition L output data is generated before the timing T IGON when the ignition signal is changed from OFF to ON, and timing when the ignition signal is changed from OFF to ON from the timing T IGON. Ignition H output data is generated until T IGOFF, and ignition L output data is generated after timing T IGOFF when the ignition signal is changed from on to off. The ignition data generated in this way is sequentially output to the
ステップS130では、例えばタイマを用いて、ステップS100にて算出したタイミングTIGON、TIGOFFからの経過時間をカウントし、その経過時間が所定の遅延時間に一致したか否かにより、コマンドフレームの送信タイミングTCOとなったか否かを判定する。送信タイミングとなったと判定した場合には、ステップS140に進み、送信すべきコマンドデータが生成され、保存されているかどうかを判定する。この判定処理において、コマンドデータが保存されていると判定されると、ステップS150において、コマンドデータをコマンドフレームバッファ17に出力する。
In step S130, the elapsed time from the timings T IGON and T IGOFF calculated in step S100 is counted using, for example, a timer, and a command frame is transmitted depending on whether or not the elapsed time matches a predetermined delay time. It is determined whether or not the timing TCO has been reached. If it is determined that the transmission timing is reached, the process proceeds to step S140, and it is determined whether command data to be transmitted is generated and stored. If it is determined in this determination process that command data is stored, the command data is output to the
(第2実施形態)
次に、本発明の第2実施形態による制御システムについて、図面を参照しつつ説明する。
(Second Embodiment)
Next, a control system according to a second embodiment of the present invention will be described with reference to the drawings.
上述した第1実施形態では、点火出力を変化させるべきタイミングに基づいて、コマンドフレームの送信タイミングを決定するものであった。それに対して、第2実施形態では、点火出力を変化させるべきタイミングに基づいて、コマンドフレームの送信禁止期間を定める。そして、送信すべきコマンドデータが生じたとき、送信禁止期間に該当していれば、送信を行わず、送信禁止期間外であれば、コマンドフレームの送信を行う。このようにしても、コマンドフレームが、点火装置などの駆動状態を変化させる制御データを含むデータフレームと競合しないように、コマンドフレームの送信タイミングの調停を行うことができる。 In the first embodiment described above, the transmission timing of the command frame is determined based on the timing at which the ignition output should be changed. On the other hand, in the second embodiment, the command frame transmission prohibition period is determined based on the timing at which the ignition output should be changed. When command data to be transmitted is generated, if it falls within the transmission prohibited period, no transmission is performed, and if it is outside the transmission prohibited period, a command frame is transmitted. Even in this case, the transmission timing of the command frame can be adjusted so that the command frame does not compete with the data frame including the control data for changing the driving state of the ignition device or the like.
図6は、本実施形態において、コマンドフレームの送信タイミングを調停するためのマイコン10の機能をブロックとして表した機能構成図である。なお、第1実施形態と同一の構成に対しては、同じ参照番号を付与することにより、説明を省略する。
FIG. 6 is a functional configuration diagram showing the function of the
本実施形態では、図6に示すように、マイコン10が、コマンドフレーム送信禁止期間決定部36を備える。このコマンドフレーム送信禁止期間決定部36は、点火出力変化タイミング算出部31が算出した、点火信号をオフからオンに変化させるタイミング及びオンからオフに変化させるタイミングを基準として、コマンドフレームの送信禁止期間を定めるものである。例えば、コマンドフレーム送信禁止期間決定部36は、図7に示すように、点火出力変化タイミング算出部31が算出したタイミングの前後に渡る所定期間を、コマンドフレームの送信禁止期間として定めることが好ましい。これにより、コマンドフレームが、点火装置の状態を変化させる点火データを含むデータフレームと競合することをより確実に回避することができるためである。
In the present embodiment, as shown in FIG. 6, the
特に、図7に示す例では、コマンドフレーム送信禁止期間が、点火装置の状態を変化させるための点火データを含むデータフレームの送信開始タイミングの前後で、それぞれ1つのデータフレームの長さに相当する期間に定められている。このようにすれば、必要なデータフレームとの競合を回避しつつ、コマンドフレームの送信機会の減少を極力抑制することが可能となる。 In particular, in the example shown in FIG. 7, the command frame transmission prohibition period corresponds to the length of one data frame before and after the transmission start timing of a data frame including ignition data for changing the state of the ignition device. It is fixed in the period. In this way, it is possible to suppress a decrease in command frame transmission opportunities as much as possible while avoiding competition with necessary data frames.
なお、コマンドフレーム送信禁止期間において、マイコン10により生成されたコマンドデータは、コマンドデータ出力部37からコマンドフレームバッファ17に出力されず、その送信がキャンセルされる。ただし、コマンドデータ出力部37は、コマンドフレーム送信禁止期間中、コマンドデータを保持しておき、送信禁止期間の経過後に、保持しているコマンドデータをコマンドフレームバッファ17に出力するようにしても良い。
In the command frame transmission prohibition period, the command data generated by the
10 マイコン
11 CPU
12 ROM
13 RAM
14 I/O
15 マイクロセカンドバスインターフェース
20 拡張IC
21 マイクロセカンドバスインターフェース
22 レジスタ
23 点火用ドライバ
24 噴射用ドライバ
25 ドライバ
100 制御システム
10
12 ROM
13 RAM
14 I / O
15
21
Claims (8)
前記制御対象機器を駆動する駆動信号を出力する駆動部(23、24)と、
前記駆動信号を生成するための駆動制御データと、当該駆動部に所定の動作を指示するコマンドデータとを出力する制御部(11)と、
前記制御部が出力した、前記駆動制御データを含むデータフレーム及び前記コマンドデータを含むコマンドフレームを、前記駆動部に対して、シリアルに送信する通信インターフェース(15、21)と、を備え、
前記制御部は、前記通信インターフェースによる前記データフレーム及び前記コマンドフレームの送信に関して、前記コマンドフレームが前記制御対象機器の駆動状態を変化させるための駆動制御データを含むデータフレームと競合しないように、前記コマンドフレームの送信開始タイミングを調停する調停部(33、36)を備えることを特徴とする制御システム。 A control system (100) for controlling a control target device,
A drive unit (23, 24) for outputting a drive signal for driving the device to be controlled;
A control unit (11) for outputting drive control data for generating the drive signal and command data for instructing the drive unit to perform a predetermined operation;
A communication interface (15, 21) for serially transmitting a data frame including the drive control data and a command frame including the command data output from the control unit to the drive unit;
The control unit is configured to transmit the data frame and the command frame through the communication interface so that the command frame does not compete with a data frame including drive control data for changing a drive state of the control target device. A control system comprising an arbitration unit (33, 36) that arbitrates transmission start timing of a command frame.
1つの前記データフレームは、複数の前記制御対象機器のための駆動制御データを含み、当該フレームデータが、繰り返し送信され、
前記調停部は、複数の前記制御対象機器の内、前記コマンドフレームとの競合による前記データフレームの送信開始タイミングの遅れが制御上問題となる制御対象機器の駆動状態を変化させる駆動制御データを含むデータフレームを対象として、前記コマンドフレームの送信開始タイミングの調停を行うことを特徴とする請求項1に記載の制御システム。 The control system controls a plurality of the devices to be controlled,
One data frame includes drive control data for a plurality of devices to be controlled, and the frame data is repeatedly transmitted.
The arbitration unit includes drive control data for changing a drive state of a control target device in which a delay in transmission start timing of the data frame due to contention with the command frame is a problem in control among the plurality of control target devices. The control system according to claim 1, wherein arbitration of transmission start timing of the command frame is performed for a data frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012284214A JP6098161B2 (en) | 2012-12-27 | 2012-12-27 | Control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012284214A JP6098161B2 (en) | 2012-12-27 | 2012-12-27 | Control system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014127078A true JP2014127078A (en) | 2014-07-07 |
JP6098161B2 JP6098161B2 (en) | 2017-03-22 |
Family
ID=51406499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012284214A Active JP6098161B2 (en) | 2012-12-27 | 2012-12-27 | Control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6098161B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4895588B2 (en) * | 2005-11-30 | 2012-03-14 | 株式会社ビー・アイ・テック | Cementless hip stem |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0546540A (en) * | 1991-08-15 | 1993-02-26 | Pfu Ltd | Conflict arbitration system with inhibition time |
JPH07317587A (en) * | 1994-05-27 | 1995-12-05 | Nippondenso Co Ltd | Control device of internal combustion engine for vehicle |
WO2010052892A1 (en) * | 2008-11-04 | 2010-05-14 | 株式会社オートネットワーク技術研究所 | Communication device, relay device, communication system, and communication method |
-
2012
- 2012-12-27 JP JP2012284214A patent/JP6098161B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0546540A (en) * | 1991-08-15 | 1993-02-26 | Pfu Ltd | Conflict arbitration system with inhibition time |
JPH07317587A (en) * | 1994-05-27 | 1995-12-05 | Nippondenso Co Ltd | Control device of internal combustion engine for vehicle |
WO2010052892A1 (en) * | 2008-11-04 | 2010-05-14 | 株式会社オートネットワーク技術研究所 | Communication device, relay device, communication system, and communication method |
Also Published As
Publication number | Publication date |
---|---|
JP6098161B2 (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6125111B2 (en) | In-vehicle electronic control unit | |
US7954364B2 (en) | Malfunction diagnosis apparatus for exhaust gas sensor and method for diagnosis | |
JP6098161B2 (en) | Control system | |
JP2022164815A (en) | Combusting-cylinder ratio variation control apparatus | |
JP6288431B2 (en) | Vehicle output control device | |
JP2004036541A (en) | Fuel supply control device for internal combustion engine | |
JP2010163904A (en) | Abnormality determination device for air-fuel ratio sensor | |
US9752526B2 (en) | Load driving device | |
JP6327339B2 (en) | Control device and control method for internal combustion engine | |
JP2015001200A (en) | Electronic control device for vehicle and electronic control method for vehicle | |
JP2013084059A (en) | Electronic control device | |
JP6398829B2 (en) | Electronic control unit | |
JP2016130452A (en) | Control device for internal combustion engine | |
JP2014095292A (en) | Control device for internal combustion engine | |
KR102075086B1 (en) | Epm microtick generation emergency stop using dma | |
JP2014055563A (en) | Internal combustion engine control device | |
WO2024135704A1 (en) | Method for producing state recognition device and state recognition device | |
JP2014159753A (en) | Control device of internal combustion engine | |
CN101922366A (en) | Dynamical system and ignition diagnostic system and method | |
JP2009292168A (en) | Electronic control device, electronic control system, and control method regarding communication | |
JP2007162505A (en) | Control device for internal combustion engine | |
JP2009074371A (en) | Idling period predicting device and control system for internal combustion engine | |
JP4910941B2 (en) | Control method and control apparatus for internal combustion engine | |
JP5262856B2 (en) | Gas sensor deterioration diagnosis device and gas sensor deterioration diagnosis method | |
JPH08153052A (en) | Data communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150602 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160614 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160808 |
|
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: 20170124 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170206 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6098161 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
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 |