JP2018161904A - Electronic control device for vehicle, and port setting method - Google Patents

Electronic control device for vehicle, and port setting method Download PDF

Info

Publication number
JP2018161904A
JP2018161904A JP2017058573A JP2017058573A JP2018161904A JP 2018161904 A JP2018161904 A JP 2018161904A JP 2017058573 A JP2017058573 A JP 2017058573A JP 2017058573 A JP2017058573 A JP 2017058573A JP 2018161904 A JP2018161904 A JP 2018161904A
Authority
JP
Japan
Prior art keywords
identification data
port
input
output state
abnormality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017058573A
Other languages
Japanese (ja)
Other versions
JP6802100B2 (en
Inventor
謙二 吉田
Kenji Yoshida
謙二 吉田
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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
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 Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2017058573A priority Critical patent/JP6802100B2/en
Publication of JP2018161904A publication Critical patent/JP2018161904A/en
Application granted granted Critical
Publication of JP6802100B2 publication Critical patent/JP6802100B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent an equipment configuration depending on a vehicle type from being uncontrollable when an abnormality occurs in identification data unique to the equipment configuration.SOLUTION: An electronic control device for a vehicle includes a nonvolatile memory storing identification data unique to an equipment configuration depending on a vehicle type, an abnormality detection unit detecting whether an abnormality in the identification data is present or absent, a first setting unit that sets, when the identification data is normal, the I/O state of a port as an I/O state corresponding to the identification data in plural specifications, and a second setting unit that sets, when the identification data is abnormal, the I/O state of the port as one I/O state (the latest version) for an abnormal state of the identification data, which is specified out of the plural specifications.SELECTED DRAWING: Figure 2

Description

本発明は、車両用電子制御装置及びポート設定方法に関し、詳しくは、車種に応じた機器構成に固有の識別データに基づきポートの入出力状態を設定する技術に関する。   The present invention relates to a vehicular electronic control device and a port setting method, and more particularly to a technology for setting an input / output state of a port based on identification data unique to a device configuration corresponding to a vehicle type.

特許文献1に開示される車両用電子制御装置は、電源投入直後の初期化処理において、ROM上に格納されているハードウェア識別データと、第1の記憶手段に格納されているハードウェア識別データとを比較し、また、ROM内の制御プログラムが書き込まれている領域のチェックサムデータを演算した結果と、ROM上に格納されているチェックサムデータと比較し、識別データが一致しかつチェックサムデータが一致する場合に、入出力ポート設定を行う。   The vehicle electronic control device disclosed in Patent Document 1 includes hardware identification data stored in the ROM and hardware identification data stored in the first storage means in the initialization process immediately after power-on. And the checksum data of the area in the ROM where the control program is written are compared with the checksum data stored in the ROM. If the data matches, set the I / O port.

特開2013−220764号公報JP 2013-220964 A

ところで、車両用電子制御装置において、車種に応じた機器構成に固有の識別データに異常が発生したときに、複数仕様のポート入出力状態の中からの選択が不能であるとして、ポートの入出力状態をデフォルト状態にすると、制御動作が行えなくなり、車両の走行性能を低下させる場合があった。   By the way, in the vehicle electronic control device, when an abnormality occurs in identification data unique to the device configuration corresponding to the vehicle type, it is determined that selection from a plurality of port input / output states is impossible, and port input / output When the state is set to the default state, the control operation cannot be performed, and the traveling performance of the vehicle may be deteriorated.

本発明は上記問題点に鑑みなされたものであり、識別データに異常が発生したときに制御不能になることを抑制できる、車両用電子制御装置及びポート設定方法を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a vehicular electronic control device and a port setting method that can prevent control from being disabled when an abnormality occurs in identification data.

本発明によれば、その1つの態様において、識別データが正常であるときに、ポートの入出力状態を、複数仕様の中の前記識別データに対応する入出力状態に設定し、前記識別データが異常であるときに、前記ポートの入出力状態を、前記複数仕様の中の1つに定めた識別データ異常時用の入出力状態に設定する。   According to the present invention, in one aspect thereof, when the identification data is normal, an input / output state of the port is set to an input / output state corresponding to the identification data in a plurality of specifications, and the identification data is When there is an abnormality, the input / output state of the port is set to the input / output state for when the identification data is abnormal defined in one of the plurality of specifications.

上記発明によると、識別データに異常が発生しても制御不能になることを抑制できる。   According to the said invention, it can suppress that it becomes uncontrollable even if abnormality arises in identification data.

本発明の実施形態における制御システムを示すブロック図である。It is a block diagram which shows the control system in embodiment of this invention. 本発明の実施形態におけるポートの初期設定処理を示すフローチャートである。It is a flowchart which shows the initial setting process of the port in embodiment of this invention. 本発明の実施形態における反転値を用いて識別データの異常検出を行う例を説明するための図である。It is a figure for demonstrating the example which performs abnormality detection of identification data using the inversion value in embodiment of this invention. 本発明の実施形態における誤り検出符号を用いて識別データの異常検出を行う例を説明するための図である。It is a figure for demonstrating the example which performs abnormality detection of identification data using the error detection code in embodiment of this invention. 本発明の実施形態における機器構成及び制御ソフトウェアの変遷を例示する図である。It is a figure which illustrates the transition of the apparatus structure and control software in embodiment of this invention.

以下に本発明の実施の形態を説明する。
図1は、車両用内燃機関の制御システム100を示すブロック図であり、制御システム100は、メイン制御ユニットであるECM200(Engine Control Module)とサブ制御ユニットであるVTCコントローラ300とを含んで構成される。
なお、VTCコントローラ300は、本発明に係る車両用電子制御装置の一態様であり、また、本発明に係るポート設定方法を適用する車両用電子制御装置の一態様である。
Embodiments of the present invention will be described below.
FIG. 1 is a block diagram showing a control system 100 for a vehicle internal combustion engine. The control system 100 includes an ECM 200 (Engine Control Module) as a main control unit and a VTC controller 300 as a sub control unit. The
The VTC controller 300 is an aspect of the vehicle electronic control device according to the present invention, and is an aspect of the vehicle electronic control device to which the port setting method according to the present invention is applied.

ECM200は、図示を省略した車両用内燃機関に備えられた燃料噴射弁、電制スロットル弁などのアクチュエータを制御する電子制御装置である。
ECM200は、CPU(Central Processing Unit)211,ROM(Read Only Memory)212,RAM(Random Access Memory)213などを含むマイクロコンピュータ210、VTCコントローラ300とCAN(Controller Area Network)400を介して通信するためのCAN通信回路220などを備える。
The ECM 200 is an electronic control unit that controls actuators such as a fuel injection valve and an electric throttle valve that are provided in a vehicle internal combustion engine (not shown).
The ECM 200 communicates via a microcomputer 210 including a CPU (Central Processing Unit) 211, a ROM (Read Only Memory) 212, a RAM (Random Access Memory) 213, etc., a VTC controller 300 and a CAN (Controller Area Network) 400. The CAN communication circuit 220 is provided.

また、VTCコントローラ300は、車両用内燃機関に備えられたアクチュエータであるバルブタイミング制御システム(Valve Timing Control system)500の動力源であるモータ510を制御する電子制御装置である。
バルブタイミング制御システム500は、車両用内燃機関のクランクシャフトに対するカムシャフトの回転位相をモータ510によって連続的に変化させることで、エンジンバルブ(吸排気バルブ)のバルブタイミングを連続的に変化させる、電動式のバルブタイミング制御システムである。
The VTC controller 300 is an electronic control device that controls a motor 510 that is a power source of a valve timing control system 500 that is an actuator provided in an internal combustion engine for a vehicle.
The valve timing control system 500 continuously changes the valve timing of the engine valve (intake / exhaust valve) by continuously changing the rotational phase of the camshaft with respect to the crankshaft of the vehicle internal combustion engine by the motor 510. This is a valve timing control system of the type.

VTCコントローラ300は、CPU311,ROM312,RAM313などを含むマイクロコンピュータ310、マイクロコンピュータ310の外部に設けられる書き換え可能な不揮発性メモリであるEEPROM(Electrically Erasable Programmable Read-Only Memory)320、ECM200とCAN400を介して通信するためのCAN通信回路330、モータ510の駆動回路340、バルブタイミング制御システム500で調整される回転位相を検出するためのセンサ信号S1、センサ信号S2を入力するための入力回路350a,350bなどを備える。   The VTC controller 300 includes a microcomputer 310 including a CPU 311, a ROM 312, a RAM 313, an EEPROM (Electrically Erasable Programmable Read-Only Memory) 320 that is a rewritable nonvolatile memory provided outside the microcomputer 310, an ECM 200, and a CAN 400. Input circuit 350a, 350b for inputting sensor signal S1, sensor signal S2 for detecting rotation phase adjusted by CAN communication circuit 330, motor 510 drive circuit 340, valve timing control system 500 Etc.

なお、マイクロコンピュータ310は、書き換え可能な不揮発性メモリであるEEPROMを内蔵することができる。
また、上記のセンサ信号S1,S2は、例えば、センサ信号S1がクランクシャフトの所定回転角毎のパルス信号であり、センサ信号S2がカムシャフトの所定回転角毎のパルス信号である。
The microcomputer 310 can incorporate an EEPROM which is a rewritable nonvolatile memory.
The sensor signals S1 and S2 are, for example, the sensor signal S1 is a pulse signal for each predetermined rotation angle of the crankshaft, and the sensor signal S2 is a pulse signal for each predetermined rotation angle of the camshaft.

そして、ECM200は、各種のセンサ信号を入力して演算処理を行い、燃料噴射弁、電制スロットル弁などの各種アクチュエータに操作信号を出力する機能をソフトウェアとして備える。
また、ECM200は、各種のセンサ信号に基づきバルブタイミング制御システム500で調整される回転位相RPの目標値を演算し、演算した目標値のデータをVTCコントローラ300にCAN400を介して送信する。
The ECM 200 has a function of inputting various sensor signals to perform arithmetic processing and outputting operation signals to various actuators such as a fuel injection valve and an electric throttle valve as software.
Further, the ECM 200 calculates a target value of the rotational phase RP adjusted by the valve timing control system 500 based on various sensor signals, and transmits the calculated target value data to the VTC controller 300 via the CAN 400.

VTCコントローラ300は、センサ信号S1,S2に基づきバルブタイミング制御システム500で調整される回転位相RPを検出し、回転位相RPの検出値が目標値に近づくようにモータ510の操作信号を決定して出力する機能をソフトウェアとして備える。
更に、VTCコントローラ300のマイクロコンピュータ310は、電源投入時の初期化処理において、入出力ポートの入出力状態の切り替え(ポートの入出力状態の初期設定)を行う機能をソフトウェアとして備える。
The VTC controller 300 detects the rotational phase RP adjusted by the valve timing control system 500 based on the sensor signals S1 and S2, and determines the operation signal of the motor 510 so that the detected value of the rotational phase RP approaches the target value. The function to output is provided as software.
Further, the microcomputer 310 of the VTC controller 300 has a function as software for switching the input / output state of the input / output port (initial setting of the input / output state of the port) in the initialization process when the power is turned on.

図1に示した例では、マイクロコンピュータ310は、11個の入出力ポート314a−314kを有する。
そして、図1に例示する車種の仕様では、各ポート314a−314kの入出力状態は以下のように設定される。
ポート314aはCAN通信用の出力ポート、ポート314bはCAN通信用の入力ポート、ポート314cはセンサ信号S1用の入力ポート、ポート314dはセンサ信号S2用の入力ポート、ポート314e−314gは駆動回路340用の出力ポート、ポート314h−ポート314jはEEPROM320用の出力ポート、ポート314kはEEPROM320用の入力ポートである。
なお、本発明に係るポート設定方法を適用するポートには、装置の外部に接続する機器との情報の入出力に使用するインタフェースのポート(I/Oポート)の他、タイマ入出力・通信等のマイクロコンピュータの入出力ポートを含めることができる。
In the example shown in FIG. 1, the microcomputer 310 has 11 input / output ports 314 a to 314 k.
And in the specification of the vehicle model illustrated in FIG. 1, the input / output state of each port 314a-314k is set as follows.
The port 314a is an output port for CAN communication, the port 314b is an input port for CAN communication, the port 314c is an input port for the sensor signal S1, the port 314d is an input port for the sensor signal S2, and the ports 314e to 314g are drive circuits 340 Port 314h-port 314j is an output port for the EEPROM 320, and port 314k is an input port for the EEPROM 320.
The port to which the port setting method according to the present invention is applied includes an interface port (I / O port) used for input / output of information with a device connected to the outside of the apparatus, timer input / output, communication, and the like. Microcomputer I / O ports can be included.

ところで、車両の設計/開発段階で、制御対象であるバルブタイミング制御システム500の機器構成(ハードウェア)が車種毎に変更され、新旧の機器構成でマイクロコンピュータ310のポートの入出力状態が異なる仕様に設定される場合がある。
そこで、車種に応じた機器構成に固有の識別データをプログラム内にROM定数として設定しておき、マイクロコンピュータ310が、前記識別データに応じてポートの入出力状態の初期設定を切り替える構成としてある。
なお、車種に応じた機器構成に固有の識別データを、プログラム内にROM定数として設定する構成の他、EEPROM320(外部EEPROM)やマイクロコンピュータ310内部のEEPROMに設定(格納)することができ、更に、プログラム内にROM定数として設定するとともに、内部又は外部のEEPROMに設定することができる。つまり、VTCコントローラ300は、車種に応じた機器構成に固有の識別データを記憶する不揮発性メモリを備えればよい。
By the way, at the vehicle design / development stage, the device configuration (hardware) of the valve timing control system 500 to be controlled is changed for each vehicle type, and the input / output state of the port of the microcomputer 310 differs between the old and new device configurations. May be set.
Therefore, identification data unique to the device configuration according to the vehicle type is set as a ROM constant in the program, and the microcomputer 310 switches the initial setting of the input / output state of the port according to the identification data.
The identification data specific to the device configuration corresponding to the vehicle type can be set (stored) in the EEPROM 320 (external EEPROM) or the EEPROM in the microcomputer 310 in addition to the configuration in which the program is set as a ROM constant. In addition to being set as a ROM constant in the program, it can be set in an internal or external EEPROM. That is, the VTC controller 300 may include a nonvolatile memory that stores identification data unique to the device configuration corresponding to the vehicle type.

係る構成であれば、識別データの設定によって新旧の機器構成それぞれに適合する仕様に入出力ポートを切り替えて開発実験などを実行できる。つまり、識別データは、複数仕様のポート入出力状態の中から1つを指定するデータである。
そして、製品となる際は最終仕様に対応する識別データを設定することになるが、何等かの理由で識別データが正しくない値になっていると、マイクロコンピュータ310のポートが本来とは異なる入出力状態に初期設定されることで、過電流などによって制御装置の損傷を招く可能性がある。
With such a configuration, a development experiment or the like can be performed by switching the input / output port to a specification suitable for the old and new device configurations by setting the identification data. That is, the identification data is data that designates one of the plurality of port input / output states.
When the product becomes a product, identification data corresponding to the final specification is set. If the identification data has an incorrect value for some reason, the port of the microcomputer 310 is different from the original one. By initializing the output state, the control device may be damaged due to overcurrent or the like.

識別データが正しくない値になっている場合の対策として、マイクロコンピュータ310が識別データの正常・異常を判断し、異常時にはポートをデフォルトに設定する構成とすれば、ポートが誤った入出力状態に設定されることに因って、VTCコントローラ300が損傷することを抑制できる。
但し、マイクロコンピュータ310のポートがデフォルトに初期設定されると、マイクロコンピュータ310は、ポートを介した入出力が行えない状態、つまり、バルブタイミング制御システム500によってバルブタイミングを適切に制御することができない状態になり、内燃機関の性能を低下させる場合がある。
As a countermeasure when the identification data has an incorrect value, if the microcomputer 310 determines whether the identification data is normal or abnormal, and sets the port to the default when there is an abnormality, the port is put into an incorrect input / output state. Due to the setting, the VTC controller 300 can be prevented from being damaged.
However, when the port of the microcomputer 310 is initialized to the default, the microcomputer 310 cannot perform input / output through the port, that is, the valve timing control system 500 cannot appropriately control the valve timing. This may result in a decrease in the performance of the internal combustion engine.

そこで、VTCコントローラ300のマイクロコンピュータ310は、後で詳細に説明するように、識別データが正常であるか異常であるかを検出する異常検出部、識別データが正常であるときに、マイクロコンピュータ310のポート314a−314kの入出力状態を、複数仕様の中の識別データに対応する入出力状態に設定する第1設定部、識別データが異常であるときに、マイクロコンピュータ310のポート314a−314kの入出力状態を、前記複数仕様の中の1つに定めた識別データ異常時用の入出力状態に設定する第2設定部としての機能をソフトウェアとして備える。   Therefore, as will be described in detail later, the microcomputer 310 of the VTC controller 300 is an abnormality detection unit that detects whether the identification data is normal or abnormal. When the identification data is normal, the microcomputer 310 The first setting unit for setting the input / output state of the ports 314a to 314k to the input / output state corresponding to the identification data in the plurality of specifications, when the identification data is abnormal, the ports 314a to 314k of the microcomputer 310 The software includes a function as a second setting unit that sets the input / output state to an input / output state for an abnormal identification data set in one of the plurality of specifications.

図2のフローチャートは、マイクロコンピュータ310が実施する、識別データに応じたポート314a−314kの入出力状態の初期設定処理の一態様を示す。
なお、図2のフローチャートに示した設定処理の一態様では、バルブタイミング制御システム500の機器構成として、新旧3つの仕様(バージョン)が存在する場合の例を示すが、機器構成として2つ以上の仕様が存在すれば、同様な処理を適用できることは明らかである。
The flowchart of FIG. 2 shows an aspect of the initial setting process of the input / output state of the ports 314a to 314k according to the identification data, which is executed by the microcomputer 310.
In the aspect of the setting process shown in the flowchart of FIG. 2, an example in which three new and old specifications (versions) exist as the device configuration of the valve timing control system 500 is shown. Obviously, if a specification exists, a similar process can be applied.

VTCコントローラ300のマイクロコンピュータ310は、図2のフローチャートに示す処理を、VTCコントローラ300に電源投入されたときの初期化処理として実施し、まず、ステップS810(異常検出部)で、識別データが正常であるか異常であるかを判断する。   The microcomputer 310 of the VTC controller 300 performs the process shown in the flowchart of FIG. 2 as an initialization process when the power is turned on to the VTC controller 300. First, in step S810 (abnormality detection unit), the identification data is normal. It is judged whether or not it is abnormal.

例えば、図3に示すように、識別データと共に当該識別データの反転値が設定される場合、マイクロコンピュータ310は、ステップS810で、識別データと反転値とが整合している場合に識別データが正常であると判断し、識別データと反転値とが整合しない場合に識別データが異常であると判断することができる。
また、マイクロコンピュータ310は、識別データを含むデータ領域(図4参照)について誤り検出符号を演算し、演算した誤り検出符号と予め設定された誤り検出符号とを比較し、誤り検出符号が一致している場合に識別データが正常であると判断し、誤り検出符号が一致しない場合に識別データが異常であると判断することができる。
For example, as shown in FIG. 3, when the inverted value of the identification data is set together with the identification data, the microcomputer 310 determines that the identification data is normal when the identification data and the inverted value match in step S810. If the identification data does not match the inverted value, it can be determined that the identification data is abnormal.
Further, the microcomputer 310 calculates an error detection code for a data area including the identification data (see FIG. 4), compares the calculated error detection code with a preset error detection code, and the error detection code matches. If the error detection code does not match, it can be determined that the identification data is abnormal.

図4に示した例では、識別データ及び当該識別データが対応するバルブタイミング制御システム500の機器構成の情報や車種情報などが記憶されて、この識別データ及び機器構成の情報を含むデータ領域(メモリ領域)を、誤り検出符号の演算を行う領域に設定した例を示す。
また、マイクロコンピュータ310は、誤り検出符号として例えばチェックサム及びパリティを演算する。
In the example shown in FIG. 4, identification data and device configuration information and vehicle type information of the valve timing control system 500 corresponding to the identification data are stored, and a data area (memory) including the identification data and device configuration information is stored. An example is shown in which (region) is set to a region where an error detection code is calculated.
Further, the microcomputer 310 calculates, for example, a checksum and parity as an error detection code.

識別データを含む部分的なメモリ領域について誤り検出符号を演算する構成であれば、メモリ全体の診断を行う場合に比べて診断に要する時間が短く、ポート初期設定に要する時間を短くできる。
なお、識別データの異常検出の方法は上記の方法に限定されない。例えば、マイクロコンピュータ310は、識別データを、プログラム内にROM定数として設定するとともに、内部又は外部のEEPROMに設定し、ROM定数としての識別データとEEPROMに設定された識別データとを比較し、両識別データが一致するときに識別データは正常であると判断し、両識別データが一致しないときに識別データは異常であると判断することができる。
If the configuration is such that an error detection code is calculated for a partial memory area including identification data, the time required for diagnosis can be shortened compared to the case where the entire memory is diagnosed, and the time required for port initialization can be shortened.
Note that the method for detecting abnormality in the identification data is not limited to the above method. For example, the microcomputer 310 sets the identification data as a ROM constant in the program and sets it in an internal or external EEPROM, compares the identification data as the ROM constant with the identification data set in the EEPROM, When the identification data matches, it can be determined that the identification data is normal, and when both identification data do not match, it can be determined that the identification data is abnormal.

マイクロコンピュータ310は、識別データが正常であると判断した場合、ステップS820に進み、識別データが3仕様の機器構成A−Cの中の機器構成Aを指定するデータであるか否かを判断する。
図5は、設計開発に伴うバルブタイミング制御システム500の機器構成及び制御ソフトウェアの変遷を例示する。
If the microcomputer 310 determines that the identification data is normal, the microcomputer 310 proceeds to step S820, and determines whether the identification data is data specifying the device configuration A in the three-specification device configuration AC. .
FIG. 5 exemplifies the transition of the device configuration and control software of the valve timing control system 500 accompanying design development.

まず、最初の機器構成として機器構成Aが制御対象とされ、当該機器構成Aでの制御ソフトウェアが第1仕様(第1バージョン)として開発された後、同じ機器構成Aで制御ソフトウェアが改良されて第2仕様(第2バージョン)として設定された。
次いで、機器構成が機器構成Aから機器構成Bに変更され、係る機器構成Bに適合する制御ソフトウェアが第3仕様(第3バージョン)として設定され、同じ機器構成Bで制御ソフトウェアが改良されて第4仕様(第4バージョン)として設定された。
更に、機器構成が機器構成Bから機器構成Cに変更され、係る変更に合わせて制御ソフトウェアが第5仕様(第5バージョン)として設定された。
First, the device configuration A is set as the control target as the first device configuration, and the control software in the device configuration A is developed as the first specification (first version), and then the control software is improved in the same device configuration A. Set as second specification (second version).
Next, the device configuration is changed from the device configuration A to the device configuration B, control software conforming to the device configuration B is set as the third specification (third version), and the control software is improved with the same device configuration B. It was set as 4 specifications (4th version).
Furthermore, the device configuration is changed from the device configuration B to the device configuration C, and the control software is set as the fifth specification (fifth version) in accordance with the change.

係る仕様変更がなされた一態様において、マイクロコンピュータ310は、ステップS820で、識別データが機器構成Aを指定するデータであると判断すると、ステップS830に進み、機器構成Aに対応する入出力状態(A仕様)にポート314a−314kを初期設定する(第1設定部)。
また、マイクロコンピュータ310は、ステップS820で、識別データが機器構成Aを指定するデータではないと判断すると、ステップS840に進み、識別データが機器構成Bを指定するデータであるか否かを判断する。
In one aspect in which the specification change has been made, when the microcomputer 310 determines in step S820 that the identification data is data designating the device configuration A, the microcomputer 310 proceeds to step S830, and the input / output state corresponding to the device configuration A ( Ports 314a to 314k are initially set to (A specification) (first setting unit).
If the microcomputer 310 determines in step S820 that the identification data is not data specifying the device configuration A, the microcomputer 310 proceeds to step S840 and determines whether the identification data is data specifying the device configuration B. .

そして、識別データが機器構成Bを指定するデータである場合、マイクロコンピュータ310は、ステップS850に進み、機器構成Bに対応する入出力状態(B仕様)にポート314a−314kを初期設定する(第1設定部)。
一方、識別データが機器構成Bを指定するデータでない場合、機器構成A−Cの3仕様の中の残る機器構成Cが指定されていることになるので、マイクロコンピュータ310は、ステップS860に進み、機器構成Cに対応する入出力状態(C仕様)にポート314a−314kを初期設定する(第1設定部)。
If the identification data is data specifying the device configuration B, the microcomputer 310 proceeds to step S850, and initializes the ports 314a-314k to the input / output state (B specification) corresponding to the device configuration B (first). 1 setting section).
On the other hand, if the identification data is not data specifying the device configuration B, the remaining device configuration C in the three specifications of the device configuration A-C is specified, so the microcomputer 310 proceeds to step S860. The ports 314a to 314k are initially set to an input / output state (C specification) corresponding to the device configuration C (first setting unit).

このように、開発段階において、作業者は、プログラム内にROM定数として設定する識別データ(及び/又は、外部又は内部のEEPROMに設定する識別データ)の選択によって、旧の機器構成である機器構成A又は機器構成B(旧仕様)に対応する入出力状態にポート314a−314kを初期設定させることができ、また、最新の機器構成である機器構成C(最新仕様)に対応する入出力状態にポート314a−314kを初期設定させることもでき、識別データの設定に応じて3仕様のうちの任意の仕様にポート314a−314kを初期設定できる。
また、VTCコントローラ300の市場返却品を解析する際に、旧の機器構成(機器構成A又はB)で解析したい場合であって、プログラム内のROM定数として識別データが設定される場合、作業者は、ソフトウェアの大幅な変更を行うことなく、最新のソフトウェアのROM定数(識別データ)を旧仕様にすることのみで、旧の機器構成での解析を行える。
In this way, at the development stage, the worker selects the identification data to be set as a ROM constant in the program (and / or identification data to be set in the external or internal EEPROM), thereby selecting the device configuration that is the old device configuration. Ports 314a to 314k can be initialized to an input / output state corresponding to A or device configuration B (old specification), and an input / output state corresponding to device configuration C (latest specification), which is the latest device configuration. The ports 314a to 314k can be initialized, and the ports 314a to 314k can be initialized to any of the three specifications according to the identification data setting.
In addition, when analyzing products returned to the market of the VTC controller 300, if it is desired to analyze with the old device configuration (device configuration A or B), and identification data is set as a ROM constant in the program, the worker Can be analyzed with the old device configuration only by making the ROM constant (identification data) of the latest software the old specification without making any significant software changes.

上記のポート初期設定は、識別データが正常であるときの処理(第1設定部)であり、マイクロコンピュータ310は、ステップS810で識別データが異常であると判断した場合、ステップS860に進み、機器構成Cに対応する入出力状態にポート314a−314kを初期設定する(第2設定部)。
つまり、マイクロコンピュータ310は、識別データ異常時用の入出力状態として、機器構成Cに対応する入出力状態を選択し、ポート314a−314kの入出力状態を設定する。
The port initial setting is a process (first setting unit) when the identification data is normal. If the microcomputer 310 determines that the identification data is abnormal in step S810, the process proceeds to step S860. The ports 314a to 314k are initialized to the input / output state corresponding to the configuration C (second setting unit).
That is, the microcomputer 310 selects the input / output state corresponding to the device configuration C as the input / output state for when the identification data is abnormal, and sets the input / output state of the ports 314a to 314k.

一般に、設計開発に伴いバルブタイミング制御システム500の機器構成を変更した場合(換言すれば、順次改良を加えていった場合)、最新仕様(最新バージョン)が量産仕様(製品仕様)になる。
したがって、識別データが異常であるときに、最新仕様である機器構成Cに対応する入出力状態にポート314a−314kを初期設定すれば、少なくとも量産仕様(量産車)で識別データが異常になった場合は、組み合わされているバルブタイミング制御システム500の機器構成に適合する入出力状態にポート314a−314kが初期設定されることになる。
Generally, when the device configuration of the valve timing control system 500 is changed with design and development (in other words, when improvements are made sequentially), the latest specification (latest version) becomes the mass production specification (product specification).
Therefore, when the identification data is abnormal, if the ports 314a to 314k are initially set to the input / output state corresponding to the device configuration C which is the latest specification, the identification data becomes abnormal at least in the mass production specification (mass production vehicle). In this case, the ports 314a to 314k are initialized to an input / output state suitable for the device configuration of the combined valve timing control system 500.

この場合、ポート314a−314kの入出力状態が適切に設定され、例えば、入力ポートに設定すべきポートを出力ポートに誤って設定してしまうことが抑止されるから、ポートの入出力状態が誤って設定されることに因り制御装置が損傷することを抑制できる。
また、識別データに異常が発生しても、ポート314a−314kをデフォルトに設定せず、最新仕様(量産仕様)である機器構成Cに対応する入出力状態にポート314a−314kを初期設定するから、識別データに異常が発生することで、バルブタイミング制御システム500の制御が不能になってしまうことを抑制でき、内燃機関の運転性能を維持できる。
In this case, since the input / output states of the ports 314a to 314k are appropriately set, for example, it is suppressed that the port to be set as the input port is erroneously set as the output port. It is possible to prevent the control device from being damaged due to the setting.
Further, even if an abnormality occurs in the identification data, the ports 314a to 314k are not set to defaults, but the ports 314a to 314k are initialized to the input / output state corresponding to the device configuration C that is the latest specification (mass production specification). When the identification data is abnormal, it is possible to suppress the control of the valve timing control system 500 from being disabled, and the operation performance of the internal combustion engine can be maintained.

なお、VTCコントローラ300は、駆動回路340や入力回路350a,350b、EEPROM320、更には、CPU311などの内部装置について異常の有無を診断する公知の自己診断機能(自己診断部)を有し、係る自己診断機能によって識別データ以外の異常を検出していない場合に、バルブタイミング制御システム500についての制御動作を維持する。
つまり、VTCコントローラ300は、識別データに異常が生じてもポート314a−314kの初期設定を実施し、ポート314a−314kを介した入出力が可能な状態にするが、自己診断によって識別データ以外に異常が見つかると、バルブタイミング制御システム500の制御動作(モータ510への通電)を停止させたり、バルブタイミングをデフォルト位置に向けて制御したりするフェイルセール処理を実施する。
The VTC controller 300 has a known self-diagnosis function (self-diagnosis unit) for diagnosing the presence or absence of an abnormality in the drive circuit 340, the input circuits 350a and 350b, the EEPROM 320, and the internal device such as the CPU 311. When no abnormality other than identification data is detected by the diagnostic function, the control operation for the valve timing control system 500 is maintained.
That is, the VTC controller 300 initializes the ports 314a to 314k even if the identification data has an abnormality, and enables input / output via the ports 314a to 314k. If an abnormality is found, a fail sale process is performed to stop the control operation of the valve timing control system 500 (energization to the motor 510) or to control the valve timing toward the default position.

また、VTCコントローラ300のマイクロコンピュータ310は、CAN400を介してECM200に対して識別データの異常情報を通信し、識別データの異常情報を受けたECM200は、運転者に対して、識別データの異常(或いは、バルブタイミング制御システム500の制御系の異常、内燃機関の制御系の異常)を、警告灯の点灯などによって通知する構成とすることができる。   The microcomputer 310 of the VTC controller 300 communicates identification data abnormality information to the ECM 200 via the CAN 400, and the ECM 200 receiving the identification data abnormality information notifies the driver of the identification data abnormality ( Alternatively, the control system of the valve timing control system 500 or the abnormality of the control system of the internal combustion engine may be notified by lighting a warning lamp or the like.

また、量産車において、バルブタイミング制御システム500の機器構成が異なる複数仕様が存在する場合、VTCコントローラ300の不揮発性メモリ(ROM、外部EEPROM、内部EEPROM)に、適用するバルブタイミング制御システム500の機器構成の仕様を識別する情報を書き込んでおき、リプログラミングする際には、前記情報に基づきバルブタイミング制御システム500の機器構成が互換性のあるものか否かを判断し、互換性を確認したときにリプログラミングを実行する構成とすることができる。
これにより、異なる仕様のバルブタイミング制御システム500を制御対象とするVTCコントローラ300に対して、互換性のないプログラムが誤って書き込まれることを抑止できる。
Further, in a mass-produced vehicle, when there are multiple specifications having different device configurations of the valve timing control system 500, the devices of the valve timing control system 500 to be applied to the nonvolatile memory (ROM, external EEPROM, internal EEPROM) of the VTC controller 300 When information for identifying the configuration specification is written and reprogramming is performed, it is determined whether the device configuration of the valve timing control system 500 is compatible based on the information, and the compatibility is confirmed. In this configuration, reprogramming is executed.
As a result, it is possible to prevent an incompatible program from being erroneously written to the VTC controller 300 that controls the valve timing control system 500 having different specifications.

上記実施形態で説明した各技術的思想は、矛盾が生じない限りにおいて、適宜組み合わせて使用することができる。
また、好ましい実施形態を参照して本発明の内容を具体的に説明したが、本発明の基本的技術思想及び教示に基づいて、当業者であれば、種々の変形態様を採り得ることは自明である。
上記実施形態では、識別データに基づきポートの入出力状態の初期設定を行うマイクロコンピュータ310は、バルブタイミング制御システム500を制御する制御ユニットを構成するが、バルブタイミング制御システム500に代えて可変圧縮比機構を制御する制御ユニットを構成するマイクロコンピュータのポート初期設定を同様にして行わせることができ、この場合も、上記同様の作用効果を得ることができる。つまり、本発明に係る車両用電子制御装置の制御対象機器は、バルブタイミング制御システム500に限定されない。
The technical ideas described in the above embodiments can be used in appropriate combination as long as no contradiction arises.
Although the contents of the present invention have been specifically described with reference to preferred embodiments, it is obvious that those skilled in the art can take various modifications based on the basic technical idea and teachings of the present invention. It is.
In the above embodiment, the microcomputer 310 that performs the initial setting of the input / output state of the port based on the identification data constitutes a control unit that controls the valve timing control system 500, but instead of the valve timing control system 500, the variable compression ratio The port initial setting of the microcomputer constituting the control unit for controlling the mechanism can be performed in the same manner, and in this case, the same operation and effect as described above can be obtained. That is, the control target device of the vehicle electronic control device according to the present invention is not limited to the valve timing control system 500.

ここで、上述した実施形態から把握し得る技術的思想について、以下に記載する。
車両用電子制御装置は、その一態様として、マイクロコンピュータを備え、外部装置から受けた目標値に基づきアクチュエータを制御する車両用電子制御装置であり、前記アクチュエータの機器構成に固有の識別データを記憶する不揮発性メモリと、前記識別データの異常の有無を検出する異常検出部と、前記識別データが正常であるときに、前記マイクロコンピュータのポートの入出力状態を、複数仕様の中の前記識別データに対応する入出力状態に設定する第1設定部と、前記識別データが異常であるときに、前記マイクロコンピュータのポートの入出力状態を、前記複数仕様の中の最新バージョンに設定する第2設定部と、を含む。
Here, the technical idea that can be understood from the above-described embodiment will be described below.
As one aspect, the vehicle electronic control device is a vehicle electronic control device that includes a microcomputer and controls an actuator based on a target value received from an external device, and stores identification data specific to the device configuration of the actuator. A non-volatile memory that detects the presence or absence of an abnormality in the identification data, and an input / output state of a port of the microcomputer when the identification data is normal, the identification data in a plurality of specifications A first setting unit for setting an input / output state corresponding to the second setting, and a second setting for setting the input / output state of the port of the microcomputer to the latest version of the plurality of specifications when the identification data is abnormal Part.

前記車両用電子制御装置の好ましい態様において、前記アクチュエータは、内燃機関の吸排気バルブのバルブタイミングをモータによって可変とするバルブタイミング制御システムである。
別の好ましい態様では、前記外部装置は、前記内燃機関への燃料噴射を制御する制御ユニットである。
In a preferred aspect of the vehicle electronic control device, the actuator is a valve timing control system in which a valve timing of an intake / exhaust valve of an internal combustion engine is variable by a motor.
In another preferred embodiment, the external device is a control unit that controls fuel injection to the internal combustion engine.

200…ECM、300…VTCコントローラ(車両用電子制御装置)、310…マイクロコンピュータ、311…CPU、312…ROM、313…RAM、320…EEPROM(不揮発性メモリ)、330…CAN通信回路、340…駆動回路、350a,350b…入力回路、500…バルブタイミング制御システム、510…モータ
200 ... ECM, 300 ... VTC controller (electronic controller for vehicle), 310 ... microcomputer, 311 ... CPU, 312 ... ROM, 313 ... RAM, 320 ... EEPROM (nonvolatile memory), 330 ... CAN communication circuit, 340 ... Drive circuit, 350a, 350b ... input circuit, 500 ... valve timing control system, 510 ... motor

Claims (4)

車種に応じた機器構成に固有の識別データを記憶する不揮発性メモリと、
前記識別データの異常の有無を検出する異常検出部と、
前記識別データが正常であるときに、ポートの入出力状態を、複数仕様の中の前記識別データに対応する入出力状態に設定する第1設定部と、
前記識別データが異常であるときに、前記ポートの入出力状態を、前記複数仕様の中の1つに定めた識別データ異常時用の入出力状態に設定する第2設定部と、
を含む、車両用電子制御装置。
A non-volatile memory for storing identification data unique to the device configuration according to the vehicle type;
An abnormality detection unit for detecting the presence or absence of an abnormality in the identification data;
A first setting unit that sets an input / output state of a port to an input / output state corresponding to the identification data in a plurality of specifications when the identification data is normal;
A second setting unit that sets the input / output state of the port to an input / output state for abnormal identification data defined in one of the plurality of specifications when the identification data is abnormal;
An electronic control device for a vehicle.
前記識別データ異常時用の入出力状態は、前記複数仕様の中の最新バージョンである、請求項1記載の車両用電子制御装置。   The vehicle electronic control device according to claim 1, wherein the input / output state for when the identification data is abnormal is a latest version of the plurality of specifications. 前記車両用電子制御装置内の異常の有無を診断する自己診断部を備え、
前記自己診断部が前記識別データ以外の異常を検出していないときに制御動作を維持する、請求項1又は請求項2記載の車両用電子制御装置。
A self-diagnosis unit for diagnosing the presence or absence of abnormality in the vehicle electronic control device;
The vehicle electronic control device according to claim 1 or 2, wherein the self-diagnosis unit maintains a control operation when no abnormality other than the identification data is detected.
車種に応じた機器構成に固有の識別データを記憶する不揮発性メモリを備えた車両用電子制御装置のポート設定方法であって、
前記識別データの異常の有無を検出するステップと、
前記識別データが正常であるときに、ポートの入出力状態を、複数仕様の中の前記識別データに対応する入出力状態に設定するステップと、
前記識別データが異常であるときに、前記ポートの入出力状態を、前記複数仕様の中の最新バージョンに設定するステップと、
を含む、車両用電子制御装置のポート設定方法。
A method for setting a port of a vehicle electronic control device including a nonvolatile memory that stores identification data specific to a device configuration according to a vehicle type,
Detecting the presence or absence of abnormality of the identification data;
When the identification data is normal, setting the input / output state of the port to an input / output state corresponding to the identification data in a plurality of specifications;
When the identification data is abnormal, setting the input / output state of the port to the latest version in the plurality of specifications;
A method for setting a port of a vehicle electronic control device.
JP2017058573A 2017-03-24 2017-03-24 Vehicle electronic control device and port setting method Active JP6802100B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017058573A JP6802100B2 (en) 2017-03-24 2017-03-24 Vehicle electronic control device and port setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017058573A JP6802100B2 (en) 2017-03-24 2017-03-24 Vehicle electronic control device and port setting method

Publications (2)

Publication Number Publication Date
JP2018161904A true JP2018161904A (en) 2018-10-18
JP6802100B2 JP6802100B2 (en) 2020-12-16

Family

ID=63859644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017058573A Active JP6802100B2 (en) 2017-03-24 2017-03-24 Vehicle electronic control device and port setting method

Country Status (1)

Country Link
JP (1) JP6802100B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799941A (en) * 2021-01-27 2021-05-14 上海淇玥信息技术有限公司 Equipment information calling method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0633828A (en) * 1992-07-17 1994-02-08 Nippondenso Co Ltd On-vehicle electronic control
JP2001290510A (en) * 2001-02-05 2001-10-19 Hitachi Ltd Control unit for automobile
JP2003345842A (en) * 2002-05-22 2003-12-05 Fujitsu Ten Ltd Port allocation design support system for electronic control unit
JP2005238950A (en) * 2004-02-25 2005-09-08 Mitsubishi Motors Corp Vehicular control device
JP2008118400A (en) * 2006-11-02 2008-05-22 Hitachi Ltd Controller for automobile
JP2013220764A (en) * 2012-04-18 2013-10-28 Mitsubishi Electric Corp Electronic controller for vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0633828A (en) * 1992-07-17 1994-02-08 Nippondenso Co Ltd On-vehicle electronic control
JP2001290510A (en) * 2001-02-05 2001-10-19 Hitachi Ltd Control unit for automobile
JP2003345842A (en) * 2002-05-22 2003-12-05 Fujitsu Ten Ltd Port allocation design support system for electronic control unit
JP2005238950A (en) * 2004-02-25 2005-09-08 Mitsubishi Motors Corp Vehicular control device
JP2008118400A (en) * 2006-11-02 2008-05-22 Hitachi Ltd Controller for automobile
JP2013220764A (en) * 2012-04-18 2013-10-28 Mitsubishi Electric Corp Electronic controller for vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799941A (en) * 2021-01-27 2021-05-14 上海淇玥信息技术有限公司 Equipment information calling method and device and electronic equipment

Also Published As

Publication number Publication date
JP6802100B2 (en) 2020-12-16

Similar Documents

Publication Publication Date Title
JP6754743B2 (en) In-vehicle electronic control unit and its abnormal processing method
US7437218B2 (en) Method and device for controlling the functional unit of a motor vehicle
JP2018161904A (en) Electronic control device for vehicle, and port setting method
CN110872998B (en) Method for verifying CVVD position learning result and CVVD system for verifying CVVD position learning result
JP5662181B2 (en) Electronic control device for moving body
JP2003262154A (en) Electronic control device for vehicle
JP4321472B2 (en) Control device
JP5842783B2 (en) Vehicle control device
JP4833417B2 (en) Microcomputer system protection method, memory device, and microcomputer system
JP6428537B2 (en) Electronic control device and computer program
JP2002323902A (en) Electronic controller
JP2005023923A (en) Electronic system
JP6663371B2 (en) Electronic control unit
JP6708596B2 (en) Electronic control device and control program verification method
JP2002091834A (en) Rom diagnostic device
JP4643268B2 (en) Method for reliably checking the memory area of a microcontroller in a control device and control device with a protected microcontroller
JP5432315B2 (en) Electronic control device for vehicle
JP7169218B2 (en) Actuator controller
JP6660902B2 (en) Automotive electronic control unit
US6671565B1 (en) Electronic control apparatus having mode check function
JP2020035503A (en) Automobile electronic control device
US7016769B2 (en) Control device for controlling/regulating the operational sequences in a motor vehicle, and a method of starting such a control device
JP2001182607A (en) Vehicle controlling device
JP2020072431A (en) Control device
JP6138735B2 (en) Electronic control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190906

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200804

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201001

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201126

R150 Certificate of patent or registration of utility model

Ref document number: 6802100

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250