JP2002271333A - Program and electronic controller - Google Patents

Program and electronic controller

Info

Publication number
JP2002271333A
JP2002271333A JP2001066691A JP2001066691A JP2002271333A JP 2002271333 A JP2002271333 A JP 2002271333A JP 2001066691 A JP2001066691 A JP 2001066691A JP 2001066691 A JP2001066691 A JP 2001066691A JP 2002271333 A JP2002271333 A JP 2002271333A
Authority
JP
Japan
Prior art keywords
control
data
program
control data
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001066691A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kishi
弘行 岸
Shuichi Nitta
修一 新田
Katsuhiko Furuta
克彦 古田
Minoru Okada
岡田  稔
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 JP2001066691A priority Critical patent/JP2002271333A/en
Publication of JP2002271333A publication Critical patent/JP2002271333A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a program and an electronic controller for controlling an object efficiently. SOLUTION: When control data is handed over from processing at a data management section to processing by application software, attribute data for deciding whether a control processing using that control data is executed or not is also handed over in correspondence with the control data. During processing according to the application software, a decision is made whether a control processing using that control data is executed or not and if it is not executed, the control processing is not executed even if the control data has been handed over already. Since unnecessary execution of control processing can be eliminated, the control object can be controlled efficiently and prevention of erroneous operation of the system can be expected.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、制御対象に対す
る制御を行うための電子制御装置、およびこの電子制御
装置を動作させるためのプログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control unit for controlling a control target and a program for operating the electronic control unit.

【0002】[0002]

【従来の技術】従来より、例えば自動車に搭載されたエ
ンジンや自動変速機等の制御対象を制御する自動車用制
御装置などの電子制御装置では、制御データに対する情
報処理を制御プログラムに従って行うことにより、所定
の制御対象に対する制御を実現している。そうした制御
に伴う処理(単に「制御処理」という)としては、例え
ば、与えられた(当該処理に渡された)制御データに基
づく演算を行うことにより制御量を算出し、その制御量
で制御対象に対する制御を行う処理や、与えられた制御
データに基づく演算を行うことにより新たな別の制御デ
ータを算出して記憶領域に格納する処理や、或いは、渡
された制御データの加工(例えば積算処理、微分処理な
ど)を行い、その加工結果で当該制御データの内容を更
新する処理など、制御データを用いる様々な処理が考え
られる。
2. Description of the Related Art Conventionally, for example, an electronic control unit such as a vehicle control unit that controls a control target such as an engine or an automatic transmission mounted on a vehicle performs information processing on control data in accordance with a control program. Control for a predetermined control target is realized. As a process associated with such control (hereinafter, simply referred to as “control process”), for example, a control amount is calculated by performing an operation based on given control data (passed to the process), and the control target is calculated based on the control amount. , A process of calculating new control data by performing an operation based on given control data and storing the same in a storage area, or a process of passed control data (for example, an integration process) , Differential processing, etc.), and various processes using the control data, such as a process of updating the content of the control data with the processing result.

【0003】[0003]

【発明が解決しようとする課題】この様に、制御データ
を用いる処理としては様々なものが考えられるが、こう
した処理に制御データが与えられても、当該処理の遂行
が、制御系全体としては好ましいといえない場合があ
る。例えば、制御対象に対する前回の駆動時と同じ値の
制御データが与えられた場合に、その制御データの値を
用いて前回と同様の駆動を行っても取り立てて変化はな
く、当該処理を遂行しない場合と同様の結果が得られる
場合がある。そうした場合、当該処理を遂行しない方が
無駄な動作を省くことができ、制御系全体としてはかえ
って好ましいと考えられる。
As described above, various types of processing using control data can be considered. Even when control data is given to such processing, the execution of the processing is not performed by the entire control system. It may not be desirable. For example, when the control data of the same value as that of the previous drive for the control target is given, even if the same drive as the previous drive is performed using the value of the control data, there is no change and the process is not performed. In some cases, similar results can be obtained. In such a case, it is considered that not performing the process can save useless operations, and is rather preferable for the control system as a whole.

【0004】本発明は、こうした点を背景として成され
たものであり、制御対象に対して効率的な制御を行うこ
とを可能とするプログラムおよび電子制御装置を提供す
ることを目的とする。
[0004] The present invention has been made in view of such a background, and an object of the present invention is to provide a program and an electronic control device that enable efficient control of a control target.

【0005】[0005]

【課題を解決するための手段及び発明の効果】上記課題
を解決するために成された本発明(請求項1記載)のプ
ログラムは、制御対象に対する制御処理を実行する機能
をコンピュータに実現させるための制御プログラムと、
この制御プログラムとは別個に設けられたデータ管理プ
ログラムを有している。データ管理プログラムは、前記
制御処理で用いられる制御データを制御データ記憶領域
に記憶する機能、および、制御プログラムに従う処理へ
の制御データの入出力を管理する機能をコンピュータに
実現させるものである。
Means for Solving the Problems and Effects of the Invention A program according to the present invention (described in claim 1) made to solve the above-mentioned problems is for causing a computer to realize a function of executing a control process on a control target. Control program,
It has a data management program provided separately from this control program. The data management program causes a computer to realize a function of storing control data used in the control processing in a control data storage area and a function of managing input / output of control data to processing according to the control program.

【0006】そして特に、本発明(請求項1)における
データ管理プログラムによれば、コンピュータは、制御
データを制御プログラムによる処理に渡す際、「その制
御データを用いた制御処理を実行するかどうかを判断す
るための属性データ」を、当該制御データと対応づけて
制御プログラムに従う処理に渡す。
[0006] In particular, according to the data management program of the present invention (claim 1), when transferring the control data to the processing by the control program, the computer determines whether or not to execute the control processing using the control data. Attribute data for determination "is associated with the control data and passed to the process according to the control program.

【0007】そして、コンピュータは、制御プログラム
に従う処理の中で、当該制御データを用いた制御処理を
実行するか否かを、上記の属性データに基づいて判断す
る。そして、実行しないと判断した場合には、当該制御
処理を実行しない。従って本発明(請求項1)によれ
ば、制御処理の不必要な実行を省くことができるため、
制御対象に対して効率的な制御を行うことができ、延い
てはシステムの誤動作防止も期待できる。
[0007] Then, the computer determines, based on the attribute data, whether or not to execute a control process using the control data in the process according to the control program. If it is determined not to execute, the control process is not executed. Therefore, according to the present invention (claim 1), unnecessary execution of the control processing can be omitted.
Efficient control can be performed for the control target, and prevention of malfunction of the system can be expected.

【0008】また、制御処理を実行に移すべきかどうか
の判断を、制御プログラムの処理中において、属性デー
タに基づき極めて容易に行うことができるため、制御プ
ログラムの構成が簡単となり、制御プログラムを格納す
るための記憶領域の削減や、プログラム開発の工数削減
を図る上で好ましい。例えば、自動車においては、複数
の制御対象が搭載されているため、制御プログラムもそ
れに応じて複数設けられることになる。制御処理の実行
の可否を属性データを用いずに、各制御プログラムで個
々に同様な判断を行うものとすると、各制御プログラム
間で重複した部分が生じるため、プログラム全体のボリ
ュームが大きくなり、ROMなどの記録容量を無駄に消
費するし、各制御プログラムの開発工数も増えることに
なるからである。
In addition, since it is possible to determine whether or not to execute the control processing very easily based on the attribute data during the processing of the control program, the configuration of the control program is simplified and the control program is stored. This is preferable from the viewpoint of reducing the storage area for performing the program and reducing the number of steps of program development. For example, in an automobile, since a plurality of control targets are mounted, a plurality of control programs are provided accordingly. If it is assumed that each control program makes a similar determination as to whether or not the control process can be executed without using the attribute data, an overlapping portion occurs between the control programs. This is because the recording capacity is wastefully consumed, and the man-hour for developing each control program increases.

【0009】さて、上記の属性データとしては様々なも
のが考えられる。例えば、制御処理が制御データの加工
処理を行う処理であり、データ管理プログラムが、その
制御処理にて加工された制御データで、制御データ記憶
領域の制御データを更新する機能を実現させるよう構成
されている場合には、請求項2に記載の様に、制御デー
タ記憶領域の制御データの更新が禁止されている状態か
どうかを示す情報を、属性データとすればよい。そうす
れば、更新できないのに制御データを加工してしまう、
という無駄な処理を行うのを防ぐことができ、効率的な
制御を実現できる。
Now, various types of attribute data can be considered. For example, the control processing is processing for processing control data, and the data management program is configured to realize a function of updating the control data in the control data storage area with the control data processed in the control processing. In this case, information indicating whether or not the update of the control data in the control data storage area is prohibited may be used as the attribute data. In that case, the control data is processed even though it cannot be updated,
That is, it is possible to prevent the unnecessary processing from being performed, and it is possible to realize efficient control.

【0010】こうした属性データは、例えばデータ管理
プログラムを次のように構成することで生成することが
できる。即ち、「制御データ記憶領域の制御データが使
用中であるかどうかを判断し、使用中であるとき、当該
使用中の制御データの更新を禁止すべき旨の情報を当該
制御データに対応する属性データとする機能」が実現さ
せるようデータ管理プログラムを構成するとよい。
Such attribute data can be generated, for example, by configuring a data management program as follows. That is, it is determined whether or not the control data in the control data storage area is being used, and when the control data is being used, information indicating that the update of the used control data should be prohibited is set to the attribute corresponding to the control data. It is preferable to configure the data management program so as to realize the “function as data”.

【0011】また、請求項3に記載の様に、制御データ
記憶領域内の制御データの値が、予め定められた所定期
間に変更されたかどうかを示す情報を、当該制御データ
に対応する属性データとしてもよい。所定期間内に変更
されていれば、その制御データの値は、前回の制御に用
いられた値とは異なる値であると考えられる。そのた
め、この様な情報を属性データとして用いれば、同じ値
の制御データを用いた前回の制御を繰り返してしまうこ
とを防止でき、効率的に制御対象を制御できる。
According to a third aspect of the present invention, information indicating whether or not the value of the control data in the control data storage area has been changed during a predetermined period is set in the attribute data corresponding to the control data. It may be. If the value is changed within the predetermined period, the value of the control data is considered to be a value different from the value used for the previous control. Therefore, if such information is used as attribute data, it is possible to prevent the previous control using the control data having the same value from being repeated, and to efficiently control the control target.

【0012】こうした属性データは、例えば、データ管
理プログラムを次のように構成することで生成すること
ができる。即ち、「制御データ記憶領域の制御データの
値を監視し、それが所定期間に亘って変更されていない
かどうかを判断して、その判断結果を示す情報を当該制
御データに対応する属性データとして扱う機能」が実現
されるようデータ管理プログラムを構成するとよい。
Such attribute data can be generated, for example, by configuring a data management program as follows. That is, "the value of the control data in the control data storage area is monitored, and it is determined whether or not the value has been changed over a predetermined period. Information indicating the determination result is set as attribute data corresponding to the control data. It is preferable to configure the data management program so as to realize "functions to be handled".

【0013】また、請求項4に記載の様に、制御データ
を用いた制御処理により制御される制御対象の状態を示
す情報を、当該制御データに対応する属性データとして
もよい。そうすれば、制御対象に対して意味のない制御
を行うことを防止することができ、効率的に制御対象を
制御できる。
According to a fourth aspect of the present invention, the information indicating the state of the control target controlled by the control process using the control data may be attribute data corresponding to the control data. By doing so, it is possible to prevent performing meaningless control on the control target, and it is possible to efficiently control the control target.

【0014】こうした属性データは、例えば、データ管
理プログラムを次のように構成することで生成すること
ができる。即ち、「制御データを用いた制御処理により
制御される制御対象の状態を検出し、その検出結果を当
該制御データに対応する属性データとして扱う機能」が
実現されるようデータ管理プログラムを構成するとよ
い。
Such attribute data can be generated, for example, by configuring a data management program as follows. That is, the data management program may be configured to realize “a function of detecting a state of a control target controlled by control processing using control data and treating the detection result as attribute data corresponding to the control data”. .

【0015】そして、以上の請求項1〜4に記載のプロ
グラムに従ってコンピュータが動作することにより制御
対象を制御する電子制御装置(請求項5記載)によれ
ば、当該制御対象を効率的に制御することができる。
[0015] According to the electronic control device (claim 5) for controlling the control target by operating the computer according to the above-described program according to claims 1 to 4, the control target is efficiently controlled. be able to.

【0016】[0016]

【発明の実施の形態】以下、本発明が適用された一実施
例について図面を用いて説明する。なお、本発明の実施
の形態は、下記の実施例に何ら限定されることなく、本
発明の技術的範囲に属する限り種々の形態を採りうるこ
とは言うまでもない。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment to which the present invention is applied will be described below with reference to the drawings. It is needless to say that the embodiments of the present invention are not limited to the following examples, and can take various forms as long as they belong to the technical scope of the present invention.

【0017】図1は、実施例としての電子制御装置20
(以下ECU20と称する)を備えたボデー系システム
90を示す図である。ボデー系システム90は、ECU
20としてのD席ドアECU20aとP席ドアECU2
0bとインパネECU20cとボデーECU20dとを
備える。
FIG. 1 shows an electronic control unit 20 as an embodiment.
FIG. 1 is a diagram showing a body system 90 including (hereinafter, referred to as an ECU 20). The body system 90 includes an ECU
The D seat door ECU 20a and the P seat door ECU 2 as 20
0b, an instrument panel ECU 20c, and a body ECU 20d.

【0018】これらのECU20は、CPU、ROM、
RAM、I/O、タイマ等を備えるマイコンを備えたコ
ンピュータシステムであり、ROMまたはRAMに書き
込まれたプログラムをCPUが読み込んで実行すること
で、I/Oに接続された装置を制御する。また、I/O
には入力装置30や出力装置40や車内LAN50が接
続されている。
These ECUs 20 include a CPU, a ROM,
This is a computer system including a microcomputer including a RAM, an I / O, a timer, and the like. The CPU reads and executes a program written in the ROM or the RAM, thereby controlling a device connected to the I / O. Also, I / O
Is connected to the input device 30, the output device 40, and the in-vehicle LAN 50.

【0019】そしてD席ドアECU20aとP席ドアE
CU20bは、入力装置30の状態を読み取ってパケッ
トを生成し車内LAN50を介してボデーECU20d
へ送信する機能を備える。また、D席ドアECU20a
とP席ドアECU20bとインパネECU20cは、車
内LAN50を介して入力されるボデーECU20dか
らのパケットの制御情報に基づいて出力装置40を制御
する機能を備える。
The D-seat door ECU 20a and the P-seat door E
The CU 20b reads the state of the input device 30 to generate a packet, and sends the packet to the body ECU 20d via the in-vehicle LAN 50.
It has a function to send to. Also, the D seat door ECU 20a
The P-seat door ECU 20b and the instrument panel ECU 20c have a function of controlling the output device 40 based on packet control information from the body ECU 20d input via the in-vehicle LAN 50.

【0020】D席ドアECU20aはドライバ側のドア
に設置されたECUであり、入力装置30としてD席コ
ントロールスイッチ30aなどが接続されており、出力
装置40としてD席ドアロックモータ40aやD席パワ
ーウインドウモータなどが接続されている。
The D-seat door ECU 20a is an ECU installed on the door on the driver side. The D-seat control switch 30a and the like are connected as the input device 30, and the D-seat door lock motor 40a and the D-seat power as the output device 40. A window motor and the like are connected.

【0021】P席ドアECU20bは補助席側のドアに
設置されたECUであり、入力装置30としてP席コン
トロールスイッチ30b等が接続され、出力装置40と
してP席ドアロックモータ40bやP席パワーウインド
ウモータなどが接続されている。
The P-seat door ECU 20b is an ECU installed in the door on the side of the auxiliary seat. The P-seat control switch 30b or the like is connected as the input device 30, and the P-seat door lock motor 40b or the P-seat power window as the output device 40. A motor or the like is connected.

【0022】また、インパネECU20cは、インパネ
に設置されたECUであり、例えば、出力装置40とし
てブザー40cやランプ40d等が接続されている。な
お、上述したD席コントロールスイッチ30a及びP席
コントロールスイッチ30bには、ドアの施錠または解
錠の指示を入力するためのドアロックスイッチやパワー
ウィンドウの開閉の指示を入力するためのパワーウイン
ドウスイッチ等が含まれる。
The instrument panel ECU 20c is an ECU installed in the instrument panel. For example, a buzzer 40c and a lamp 40d are connected as the output device 40. The D-seat control switch 30a and the P-seat control switch 30b include a door lock switch for inputting an instruction for locking or unlocking a door, a power window switch for inputting an instruction for opening and closing a power window, and the like. Is included.

【0023】ボデーECU20dは、D席ドアECU2
0aとP席ドアECU20bから車内LAN50に送信
されるパケットを所定時間毎に受信して、I/Oを介し
て取り込み、取り込んだパケットの内容に応じたアプリ
ケーションソフトを実行して出力装置40の制御が必要
な場合には制御対象のD席ドアECU20aとP席ドア
ECU20bとインパネECU20c等への制御情報を
含むパケットを生成して送信する制御処理を行う。
The body ECU 20d is a D-seat door ECU 2
0a and a packet transmitted from the P seat door ECU 20b to the in-vehicle LAN 50 at predetermined time intervals, received via I / O, and executes application software according to the content of the captured packet to control the output device 40. Is required, a control process of generating and transmitting a packet including control information to the D-seat door ECU 20a, the P-seat door ECU 20b, the instrument panel ECU 20c, and the like to be controlled is performed.

【0024】次に、図2は、ECU20(以下では、一
例としてボデーECU20dにつ9いて説明するが、他
のECU20a〜20cでも同様である)内の通信モデ
ルを示す概念図である。なお、以下の説明において、例
えば「共有メモリ部210が…する。」や「物理値変換
部220によって、…される。」といったプログラムを
動作主体とした表現は、CPUが当該プログラム部分に
従って動作することを示している。
Next, FIG. 2 is a conceptual diagram showing a communication model in the ECU 20 (hereinafter, the body ECU 20d will be described as an example, but the same applies to the other ECUs 20a to 20c). In the following description, for example, expressions such as “the shared memory unit 210 does ...” and “the physical value conversion unit 220 performs the program” operate the CPU in accordance with the program portion. It is shown that.

【0025】図3に示すように、ボデーECU20dを
動作させるプログラムは、制御対象を制御するための処
理(即ち、制御処理)を行うアプリケーション部100
と、他のECU20a〜20c等とデータの送受信を行
う通信ドライバ部300と、アプリケーションソフトへ
の制御データの入出力の管理や、その制御データの記憶
領域での記憶、制御データの記憶領域への書き込み・読
み出し、更に通信ドライバ部300を使って他のECU
20a〜20cとの制御データの送受信を行うなど、制
御データの管理を行うデータ管理部200とからなる。
As shown in FIG. 3, a program for operating the body ECU 20d includes an application unit 100 that performs processing for controlling a control target (ie, control processing).
And a communication driver unit 300 for transmitting and receiving data to and from the other ECUs 20a to 20c, management of input / output of control data to / from application software, storage of the control data in a storage area, storage of the control data in the storage area Writing / reading, and further using the communication driver unit 300 for other ECUs
The data management unit 200 manages control data, such as transmitting and receiving control data to and from 20a to 20c.

【0026】これらアプリケーション部100とデータ
管理部200と通信ドライバ部300は、別個のプログ
ラムとして設けられている。そして、データ管理部20
0は、アプリケーション部100によって算出される制
御データから、通信ドライバ部300が送信すべき通信
データ列を生成すると共に、通信ドライバ部300によ
って受信された通信データ列を、アプリケーション部1
00が使用可能な制御データに変換するするために、階
層化された共有メモリ部210、物理値変換部220、
共通パケットデータ部230、通信データ変換部240
を備えている。
The application section 100, the data management section 200, and the communication driver section 300 are provided as separate programs. Then, the data management unit 20
0 generates the communication data sequence to be transmitted by the communication driver unit 300 from the control data calculated by the application unit 100, and converts the communication data sequence received by the communication driver unit 300 into the application unit 1
00 is converted into control data that can be used by a hierarchical shared memory unit 210, a physical value conversion unit 220,
Common packet data section 230, communication data conversion section 240
It has.

【0027】そして、アプリケーション部100から他
のECU20a〜20cに対して、直接データ転送され
ることはなく、アプリケーション部100から下位の階
層に対して順々にデータを渡し、通信ドライバ部300
にて、外部(通信対象)との物理的な通信が実現され
る。また、この通信モデルでの各階層は、その下の階層
に対してサービスを要求し、その上の階層にサービスを
提供するというものであり、各階層の目的は、上位階層
でのサービスに対して実際の通信仕様等の詳細情報を隠
蔽することである。
The data is not transferred directly from the application unit 100 to the other ECUs 20a to 20c, but is sequentially transferred from the application unit 100 to the lower layers.
, Physical communication with the outside (communication target) is realized. In addition, each layer in this communication model requests a service to a layer below it and provides a service to a layer above it. The purpose of each layer is to To hide detailed information such as actual communication specifications.

【0028】ここで、アプリケーション部100は、制
御対象及び制御内容毎に更に細分化された複数のアプリ
ケーションソフト(請求項の「制御プログラム」に相当
する)からなる。そして各アプリケーションソフトは、
自分以外のアプリケーションソフトによって算出された
制御データも、自己の演算処理に用いる。つまり、各ア
プリケーションソフトは、制御データを共有している。
Here, the application section 100 is composed of a plurality of application software (corresponding to a “control program” in the claims) further subdivided for each control target and control contents. And each application software,
The control data calculated by other application software is also used for its own arithmetic processing. That is, each application software shares control data.

【0029】共有メモリ部210は、当該ボデーECU
20dに備えられたRAMにおいて、アプリケーション
部100の各アプリケーションソフトが制御対象を制御
するために用いる全ての制御データを一時格納するため
の記憶領域(以下、制御データ記憶領域という)とは異
なる特定の記憶領域として設定された共有メモリに、各
アプリケーションソフト間で共通使用される制御データ
や、当該ボデーECU20d以外の他のECU20a〜
20cでも共通使用される制御データ(以下、外部共有
データという)を書き込み、また、上記共有メモリから
制御データを読み出して提供する。
The shared memory unit 210 is provided in the body ECU.
A specific area different from a storage area (hereinafter referred to as a control data storage area) for temporarily storing all control data used by each application software of the application unit 100 to control the control target in the RAM provided in the application unit 100d. In the shared memory set as a storage area, control data commonly used between application software and ECUs 20a to 20b other than the body ECU 20d are used.
20c also writes control data commonly used (hereinafter referred to as external shared data), and reads and provides control data from the shared memory.

【0030】物理値変換部220は、当該ボデーECU
20dから外部(他のECU20a〜20c)へのデー
タ送信時には、上記共有メモリに格納されている制御デ
ータのうち、送信すべき制御データに対して、そのデー
タ長(延いては、そのデータのLSB当たりによって示
される物理値であり、データ精度である)を送信先(他
のECU20a〜20c)で採用されているデータ長に
変換するLSB変換を行う。
The physical value conversion section 220 is connected to the body ECU.
At the time of data transmission from 20d to the outside (the other ECUs 20a to 20c), among the control data stored in the shared memory, the control data to be transmitted has the data length (therefore, LSB of the data). LSB conversion for converting a physical value indicated by a hit and data accuracy) into a data length adopted by the transmission destination (the other ECUs 20a to 20c) is performed.

【0031】また、物理値変換部220は、外部(他の
ECU20a〜20c)からのデータ受信時には、受信
された制御データに対して、そのデータ長をアプリケー
ション部100の各アプリケーションソフトで採用され
ているデータ長に変換するLSB変換を行う。
When receiving data from the outside (the other ECUs 20a to 20c), the physical value conversion unit 220 uses the data length of the received control data in each application software of the application unit 100. LSB conversion is performed to convert the data into a data length.

【0032】共通パケットデータ部230は、当該ボデ
ーECU20dから外部へのデータ送信時には、物理値
変換部220によってLSB変換された送信対象の制御
データを集めて直列に並べることにより、多重通信,シ
リアル通信,DMA通信といった通信プロトコルに依存
しない各通信プロトコルに共通のパケットデータ(以
下、共通パケットデータという)を作成する。
When data is transmitted from the body ECU 20d to the outside, the common packet data unit 230 collects control data to be transmitted subjected to LSB conversion by the physical value conversion unit 220 and arranges the control data in series, thereby performing multiplex communication and serial communication. , And creates packet data common to each communication protocol independent of the communication protocol such as DMA communication (hereinafter, referred to as common packet data).

【0033】通信データ変換部240は、当該ボデーE
CU20dから外部へのデータ送信時には、共通パケッ
トデータ部230によって作成された共通パケットデー
タを、通信対象(通信相手)との通信プロトコルに対応
した通信データ列に変換する。
The communication data conversion unit 240
When transmitting data from the CU 20d to the outside, the common packet data created by the common packet data unit 230 is converted into a communication data string corresponding to a communication protocol with a communication target (communication partner).

【0034】通信ドライバ部300は、当該ボデーEC
U20dから外部へのデータ送信時には、通信データ変
換部240によって作成された通信データ列を、通信対
象との通信プロトコルで定められた転送データ量、ボー
レート、及び転送タイミングで、実際に通信データとし
て出力する。
The communication driver unit 300 is provided for the body EC.
When transmitting data from the U20d to the outside, the communication data sequence created by the communication data conversion unit 240 is actually output as communication data with the transfer data amount, baud rate, and transfer timing determined by the communication protocol with the communication target. I do.

【0035】通信が好適なタイミングで実行されるよ
う、通信データ列の作成及びLSB変換の実施タイミン
グは、内部タイマにより決定される。通信ドライバ部3
00は、他のECU20a〜20cから送信されて来た
データを受信し取得して、通信データ変換部240に提
供する機能も有している。
The timing of creating the communication data string and performing the LSB conversion is determined by an internal timer so that communication is performed at a suitable timing. Communication driver 3
00 also has a function of receiving and acquiring data transmitted from the other ECUs 20a to 20c and providing the data to the communication data conversion unit 240.

【0036】そして、通信データ変換部240は、通信
ドライバ部300によって取得された通信データ列を、
共通パケットデータに変換する機能も有している。そし
て更に、共通パケットデータ部230は、外部からのデ
ータ受信時には、通信データ変換部240によって作成
された共通パケットデータを分解して、その共通パケッ
トデータを構成していた各制御データを抽出し、更に、
その各制御データに対し物理値変換部220にLSB変
換を行わせて、共有メモリ部210に、そのLSB変換
後の各制御データを共有メモリへ更新して書き込ませる
機能も有している。
The communication data converter 240 converts the communication data sequence acquired by the communication driver 300 into
It also has a function of converting to common packet data. Further, at the time of receiving data from the outside, the common packet data unit 230 decomposes the common packet data created by the communication data conversion unit 240, and extracts each control data constituting the common packet data, Furthermore,
It also has a function of causing the physical value conversion unit 220 to perform LSB conversion on each of the control data, and updating and writing the control data after the LSB conversion to the shared memory in the shared memory unit 210.

【0037】以上の様に、データ管理部200は制御デ
ータの管理を行うが、更に、制御データ記憶領域の制御
データが、何れかのアプリケーションソフトで使用中か
であるとか、通信ドライバ部300によって他のECU
20a〜20cに対して送信中であるかなどというよう
に、制御データの使用状態の監視も行う。その監視中、
制御データが使用中であると判断されると、その使用中
である制御データの更新を禁止すべき旨の情報を、当該
制御データに対応する属性データの1つとする。
As described above, the data management unit 200 manages the control data. Further, the control data in the control data storage area is used by any application software, and the communication driver unit 300 Other ECU
It also monitors the use state of the control data, such as whether transmission is being performed to 20a to 20c. During that monitoring,
When it is determined that the control data is being used, the information indicating that the update of the used control data should be prohibited is set as one of the attribute data corresponding to the control data.

【0038】また、データ管理部200は、制御データ
記憶領域内の制御データが、予め定められた所定期間に
亘って変更されていないかどうか(即ち、その制御デー
タが異なる値に最後に変更されてから所定時間以上経過
したかどうか)といった判断も行う。そして、その判断
結果を示す情報を、当該制御データに対応する属性デー
タの1つとする。
The data management section 200 determines whether the control data in the control data storage area has been changed for a predetermined period (that is, whether the control data has been changed to a different value last). (Eg, whether or not a predetermined time has elapsed after the completion of the determination). Then, information indicating the determination result is set as one of the attribute data corresponding to the control data.

【0039】そして、データ管理部200は、制御デー
タをアプリケーションソフトに渡す際、その制御データ
に対応する属性データもアプリケーションソフトに渡
す。その渡し方としては、図3(a)に示す様に、制御
データとは別個の変数として引数或いは戻り値として渡
す態様、同図(b)に示す様に、制御データと属性デー
タとを1つの変数とし、その内の一部(例えば数バイ
ト)に属性データを格納して渡す態様、同図(c)に示
す様に、所定の記憶領域に属性データを書き込み、それ
をアプリケーションソフトに参照させる態様など、様々
な方法を採ることができるが、いずれでもよい。
When transferring the control data to the application software, the data management unit 200 also transfers the attribute data corresponding to the control data to the application software. As shown in FIG. 3 (a), the data is passed as an argument or a return value as a variable separate from the control data, and as shown in FIG. A mode in which attribute data is stored and passed in a part (for example, several bytes) of the variables, as shown in FIG. 3C, the attribute data is written in a predetermined storage area, and is referred to the application software. Various methods can be adopted, such as a mode of causing the image to be made, but any of them may be used.

【0040】こうした属性データは、それに対応する制
御データを用いた制御処理の実行を行うかどうかを各ア
プリケーションソフトが判断するため情報であり、上に
挙げた以外にも、制御データに関する各種の情報が属性
データとして取り扱われ、制御データと共にアプリケー
ションソフトに従う処理に渡される。
Such attribute data is information for each application software to determine whether or not to execute a control process using the corresponding control data. In addition to the above, various information related to the control data is provided. Is handled as attribute data, and is passed along with control data to a process according to the application software.

【0041】そして、各アプリケーションソフトは、デ
ータ管理部200から制御データ及び属性データが渡さ
れると、制御処理を実行するかどうかを判断し、実行す
ると判断したときにのみ当該処理を実行に移す。例え
ば、図4は、ボデーECU20dのアプリケーションソ
フトから「D席ドアロックを解除すべき旨の制御データ
(即ち、D席ドアを開錠する方向へD席ドアロックモー
タ40aを駆動する制御データ)が出されると()、
その情報は、車内LAN50を介してD席ドアECU2
0aに送信され()、その結果、D席ドアECU20
aのアプリケーションソフトに渡される。
When each application software receives the control data and the attribute data from the data management unit 200, it determines whether or not to execute the control process, and shifts the process to execution only when it is determined that the control process is to be executed. For example, FIG. 4 shows that from the application software of the body ECU 20d, "control data indicating that the D-seat door should be unlocked (that is, control data for driving the D-seat door lock motor 40a in the direction to unlock the D-seat door)" When issued (),
The information is transmitted to the D-seat door ECU 2 via the in-vehicle LAN 50.
0a (), and as a result, the D-seat door ECU 20
a is passed to the application software.

【0042】D席ドアECU20aにおいては、データ
管理部が、現在のD席ドアの鍵の状況(ロック状態かロ
ック解除状態か。即ち請求項にいう「制御対象の状態」
に相当する。)を検出している。そして、D席ドアロッ
クモータ40aを駆動するための制御データには、D席
ドアの鍵の状況を示す情報が属性データとして対応づけ
られており、上記制御データがD席ドアECU20aの
アプリケーションソフトに渡される際、この属性データ
も共に渡される。
In the D-seat door ECU 20a, the data management unit determines the current state of the key of the D-seat door (locked state or unlocked state.
Is equivalent to ) Is detected. The control data for driving the D-seat door lock motor 40a is associated with information indicating the key status of the D-seat door as attribute data, and the control data is transmitted to the application software of the D-seat door ECU 20a. When passed, this attribute data is also passed.

【0043】すると、D席ドアECU20aの当該アプ
リケーションソフトは、上記渡された属性データに基づ
いて、「D席ドアを開錠する方向へD席ドアロックモー
タ40aを駆動する制御処理を行うかどうかを判断す
る。その結果、実行すると判断した場合(具体的には、
D席ドアの鍵が施錠されている場合)に、D席ドアロッ
クモータ40aを駆動する制御処理を実行することによ
り()、当該ドアの鍵を開く()。一方、既にD席
ドアの鍵が開かれている場合には、必要がないため、D
席ドアロックモータ40aを駆動する処理は行われな
い。
Then, the application software of the D-seat door ECU 20a determines whether or not to perform the control processing for driving the D-seat door lock motor 40a in the direction to unlock the D-seat door based on the passed attribute data. As a result, if it is determined to execute (specifically,
When the key of the D seat door is locked), by executing the control processing for driving the D seat door lock motor 40a (), the key of the door is opened (). On the other hand, if the door of the D seat is already unlocked, there is no need to
The process of driving the seat door lock motor 40a is not performed.

【0044】以上の様に、本実施例の電子制御装置20
では、制御データをアプリケーションソフトによる処理
に渡す際、その制御データを用いた制御処理を実行する
かどうかを判断するための属性データも、当該制御デー
タと対応づけて渡される。そして、アプリケーションソ
フトに従う処理の中で、当該制御データを用いた制御処
理を実行するか否かが判断され、実行しないと判断した
場合には、制御データが既に渡されているにもかかわら
ず、当該制御処理を実行しない。従って、制御処理の不
必要な実行を省くことができるため、制御対象に対して
効率的な制御を行うことができ、延いてはシステムの誤
動作防止も期待できる。
As described above, the electronic control unit 20 of this embodiment
Then, when the control data is passed to the processing by the application software, the attribute data for determining whether or not to execute the control processing using the control data is also passed in association with the control data. Then, in the process according to the application software, it is determined whether or not to execute the control process using the control data. If it is determined that the control process is not to be performed, the control data is already passed, Do not execute the control process. Therefore, unnecessary execution of the control process can be omitted, so that efficient control can be performed on the control target, and prevention of malfunction of the system can be expected.

【0045】以上、本発明の一実施例について説明した
が、本発明は上記実施例に限定されるものではなく、種
々の態様をとることができる。例えば、上記実施例で
は、制御対象の状態を示す情報として、D席ドアのロッ
ク状態を示す情報を例に挙げ、これを属性データとする
ものとして説明したが、これに限られるものではない。
As described above, one embodiment of the present invention has been described. However, the present invention is not limited to the above-described embodiment, and can take various forms. For example, in the above-described embodiment, the information indicating the control target state is exemplified by the information indicating the locked state of the D seat door, and the information is described as the attribute data. However, the present invention is not limited to this.

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

【図1】 一実施例の電子制御装置(ECU)を含むボ
デー系システムの構成を示す説明図である。
FIG. 1 is an explanatory diagram illustrating a configuration of a body system including an electronic control unit (ECU) according to an embodiment.

【図2】 ECU内の通信モデルを示す概念図である。FIG. 2 is a conceptual diagram showing a communication model in an ECU.

【図3】 データ管理部からアプリケーションソフトに
対する制御データ及び属性データの渡し方の態様を示す
説明図である。
FIG. 3 is an explanatory diagram showing an aspect of how control data and attribute data are passed from a data management unit to application software.

【図4】 ボデーECUからD席ドアECUに対して制
御データが送られる様子を示す説明図である。
FIG. 4 is an explanatory diagram showing how control data is sent from a body ECU to a D-seat door ECU.

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

20…電子制御装置 20a…D席ドアECU 20b…P席ドアECU 20c…インパネECU 20d…ボデーECU 30…入力装置 30a…D席コントロールスイッチ 30b…P席コントロールスイッチ 40…出力装置 40a…D席ドアロックモータ 40b…P席ドアロックモータ 40c…ブザー 50…車内LAN 90…ボデー系システム 100…アプリケーション部 200…データ管理部 300…通信ドライバ部 Reference Signs List 20 electronic control unit 20a D seat door ECU 20b P seat door ECU 20c instrument panel ECU 20d body ECU 30 input device 30a D seat control switch 30b P seat control switch 40 output device 40a D seat door Lock motor 40b P seat door lock motor 40c Buzzer 50 Vehicle LAN 90 Body system 100 Application unit 200 Data management unit 300 Communication driver unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 古田 克彦 愛知県刈谷市昭和町1丁目1番地 株式会 社デンソー内 (72)発明者 岡田 稔 愛知県刈谷市昭和町1丁目1番地 株式会 社デンソー内 Fターム(参考) 5H215 AA10 BB07 CC07 CX03 GG04 GG17 5K033 BA06 BA08 DB12 5K048 BA42 CA08 DA05 DC04 EA11 EB02 FC01  ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Katsuhiko Furuta 1-1-1, Showa-cho, Kariya-shi, Aichi Pref. F term (reference) 5H215 AA10 BB07 CC07 CX03 GG04 GG17 5K033 BA06 BA08 DB12 5K048 BA42 CA08 DA05 DC04 EA11 EB02 FC01

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 制御対象に対する制御処理を実行する機
能をコンピュータに実現させるための制御プログラム
と、 前記制御プログラムとは別個に設けられたプログラムで
あって、前記制御処理で用いられる制御データを制御デ
ータ記憶領域に記憶する機能、および、前記制御プログ
ラムに従う処理への制御データの入出力を管理する機能
をコンピュータに実現させるデータ管理プログラムと、 を有するプログラムであって、 前記データ管理プログラムは、制御データを前記制御プ
ログラムに従う処理に渡す際、該制御データを用いた前
記制御処理を実行するか否かを判断するための属性デー
タを該制御データと対応づけて該制御プログラムに従う
処理に渡す機能を、コンピュータに実現させるよう構成
されており、 前記制御プログラムは、制御データを用いた前記制御処
理を実行するか否かを、該制御データと対応づけて渡さ
れる属性データに基づいて判断する機能をコンピュータ
に実現させるよう構成されていることを特徴とするプロ
グラム。
1. A control program for realizing a function of executing a control process on a control target in a computer, and a program provided separately from the control program, the control program controlling control data used in the control process. A data management program that causes a computer to realize a function of storing the data in a data storage area and a function of managing input and output of control data to processing according to the control program. When passing data to a process according to the control program, a function of associating attribute data for determining whether to execute the control process using the control data with the control data and passing the attribute data to a process according to the control program is provided. The control program is configured to be realized by a computer. Program whether to execute the control process using the control data, characterized in that it is configured to realize a function of determining on the computer based on the attribute data passed in association with the control data.
【請求項2】 請求項1に記載のプログラムにおいて、 前記制御処理は、前記渡される制御データの加工処理を
行うものであり、 前記データ管理プログラムは、前記処理にて加工された
制御データで、前記制御データ記憶領域の制御データを
更新する機能をコンピュータに実現させるよう構成され
ており、 前記属性データは、前記制御データ記憶領域の制御デー
タの更新が禁止されている状態かどうかを示すものであ
ることを特徴とするプログラム。
2. The program according to claim 1, wherein the control process is a process of processing the passed control data, and the data management program is a control data processed by the process. The computer is configured to realize a function of updating the control data of the control data storage area, and the attribute data indicates whether or not the update of the control data of the control data storage area is prohibited. A program characterized by the following.
【請求項3】 請求項1に記載のプログラムにおいて、 前記属性データは、前記制御データ記憶領域の制御デー
タの値が、予め定められた所定期間に変更されたかどう
かを示すものであることを特徴とするプログラム。
3. The program according to claim 1, wherein the attribute data indicates whether a value of the control data in the control data storage area has been changed during a predetermined period. And the program.
【請求項4】 請求項1に記載のプログラムにおいて、 前記属性データは、前記渡される制御データを用いた制
御処理により制御される制御対象の状態を示すものであ
ることを特徴とするプログラム。
4. The program according to claim 1, wherein the attribute data indicates a state of a control target controlled by a control process using the passed control data.
【請求項5】 制御対象を制御するためのコンピュータ
を備え、請求項1〜4の何れかに記載のプログラムに従
って前記コンピュータが動作することにより、前記制御
対象を制御することを特徴とする電子制御装置。
5. An electronic control, comprising: a computer for controlling an object to be controlled, wherein the computer operates according to the program according to claim 1 to control the object to be controlled. apparatus.
JP2001066691A 2001-03-09 2001-03-09 Program and electronic controller Pending JP2002271333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001066691A JP2002271333A (en) 2001-03-09 2001-03-09 Program and electronic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001066691A JP2002271333A (en) 2001-03-09 2001-03-09 Program and electronic controller

Publications (1)

Publication Number Publication Date
JP2002271333A true JP2002271333A (en) 2002-09-20

Family

ID=18925151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001066691A Pending JP2002271333A (en) 2001-03-09 2001-03-09 Program and electronic controller

Country Status (1)

Country Link
JP (1) JP2002271333A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011150739A (en) * 2011-05-13 2011-08-04 Hitachi Automotive Systems Ltd Controller for vehicle
US8347282B2 (en) 2002-12-20 2013-01-01 Hitachi, Ltd. Embedded controllers and development tool for embedded controllers

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347282B2 (en) 2002-12-20 2013-01-01 Hitachi, Ltd. Embedded controllers and development tool for embedded controllers
JP2011150739A (en) * 2011-05-13 2011-08-04 Hitachi Automotive Systems Ltd Controller for vehicle

Similar Documents

Publication Publication Date Title
US20220391273A1 (en) System, method and computer program product for sharing information in a distributed framework
US8060285B2 (en) System and method of intelligent agent management using an overseer agent for use in vehicle diagnostics
JP2000257501A (en) Controller for automobile
JP5138760B2 (en) Information recording device
JP3928505B2 (en) Vehicle communication system
JP2010285001A (en) Electronic control system and functional agency method
JP5487691B2 (en) Vehicle control apparatus and vehicle control program
CN114684185A (en) Vehicle safety response control hierarchy for automated vehicle safety control and corresponding method
JP3801088B2 (en) Vehicle communication device
JP2002271333A (en) Program and electronic controller
US7729825B2 (en) System and method of intelligent agent management using an agent interface for use in vehicle diagnostics
JP5966697B2 (en) Information processing device
JP2007001420A (en) Control unit for vehicle
JP4427899B2 (en) Electronic control device and recording medium
JP3918710B2 (en) Electronic control device for vehicle, electronic control unit, program and recording medium
US20210065478A1 (en) Electronic control unit and non-transitory computer readable medium storing session establishment program
JPH10253502A (en) Vehicle diagnostic apparatus
JP2000310153A (en) Automotive control device
WO2022163312A1 (en) In-vehicle communication system, in-vehicle control device, control method, and computer program
JP7371527B2 (en) Vehicle electronic control system
JPH0746676A (en) Communication system for vehicle diagnosis
JP2018152743A (en) Transmission device and communication system
US20240126937A1 (en) Center, management system, management method, and storage medium
JP3005956B1 (en) Distributed processing method, network system, and information processing device
JP2021190839A (en) Electronic control device