JPH113106A - Control constant reloading system for electronic control unit - Google Patents

Control constant reloading system for electronic control unit

Info

Publication number
JPH113106A
JPH113106A JP15472297A JP15472297A JPH113106A JP H113106 A JPH113106 A JP H113106A JP 15472297 A JP15472297 A JP 15472297A JP 15472297 A JP15472297 A JP 15472297A JP H113106 A JPH113106 A JP H113106A
Authority
JP
Japan
Prior art keywords
control
control unit
external device
electronic control
ecu
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
JP15472297A
Other languages
Japanese (ja)
Inventor
Kazunari Mori
一功 森
Kazuyori Katayama
和頼 片山
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP15472297A priority Critical patent/JPH113106A/en
Publication of JPH113106A publication Critical patent/JPH113106A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide high-reliability communication concerning a reloading system for control constants stored in a non-volatile memory (EEPROM or flash memory) provided at an electronic control unit(ECU) such as a traveling controller for vehicle. SOLUTION: A control line 7 is provided for transmitting a control signal for communication mode switch from an external device 2 to an ECU 1 in order to reload the control constant temporarily stored in the EEPROM inside the ECU 1 and when this control signal for communication mode switch shows a control constant reloading mode, the control constant in the EEPROM inside the ECU 1 can be reloaded by the external device 2.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、例えば車両用走
行制御装置の電子制御ユニット(ECU)に設けられた
不揮発性メモリ(EEPROM,フラッシュメモリ)に
記憶している制御定数の書換システムに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for rewriting control constants stored in a non-volatile memory (EEPROM, flash memory) provided in, for example, an electronic control unit (ECU) of a vehicle drive control device. is there.

【0002】[0002]

【従来の技術】図6は、例えば特開平8−227359
号公報に示された従来のフラッシュメモリ書換え機能を
備えた電子システム装置の構成を示したものである。図
において、電子システム装置であるカメラ本体20に内
蔵されているマイコン21は、シリアルラインの外部通
信コネクタ24を介して外部書換装置であるパーソナル
コンピュータ25に接続されている。カメラ本体20内
のマイコン21にはフラッシュメモリ22、CPU(中
央演算処理ユニット)3、シリアル通信インターフェー
ス回路4がバス23を介して配設され、相互にアクセス
可能に接続されている。このCPU3は信号データの送
受に関する所定の制御を行うと共に、フラッシュメモリ
22内に予め記憶されているプログラムをCPU3中の
主記憶領域にロードして実行する役割を果す。このフラ
ッシュメモリ22は複数のブロックに分割されており、
各々のブロック毎にその内容の消去及び書換えが可能で
ある。
2. Description of the Related Art FIG.
1 shows a configuration of a conventional electronic system device having a flash memory rewriting function shown in Japanese Patent Application Laid-Open Publication No. H11-209,036. In the figure, a microcomputer 21 built in a camera body 20 as an electronic system device is connected to a personal computer 25 as an external rewriting device via an external communication connector 24 of a serial line. A flash memory 22, a CPU (Central Processing Unit) 3, and a serial communication interface circuit 4 are provided to a microcomputer 21 in the camera body 20 via a bus 23, and are connected to each other so as to be mutually accessible. The CPU 3 performs predetermined control relating to transmission and reception of signal data, and plays a role of loading a program stored in advance in the flash memory 22 into a main storage area in the CPU 3 and executing the program. This flash memory 22 is divided into a plurality of blocks,
The contents can be erased and rewritten for each block.

【0003】次に、上記電子システム装置と外部装置と
の通信動作について説明する。従来の書換方式では、外
部に接続されたパーソナルコンピータ25からシリアル
通信手段を使用してアップロードされたデータを、フラ
ッシュメモリ22の特定ブロックへ書き込むことによ
り、制御情報を変更することを特徴としている。
Next, a communication operation between the electronic system device and an external device will be described. The conventional rewriting method is characterized in that control information is changed by writing data uploaded from an externally connected personal computer 25 using serial communication means to a specific block of the flash memory 22.

【0004】[0004]

【発明が解決しようとする課題】従来の電子システム装
置は以上のように構成されているため、電子システム装
置と外部装置との通信用途をメモリ情報の書換以外に制
御情報のRAMモニタとして使用し、故障診断等を行う
場合には、特殊な通信手段を必要とする。
Since the conventional electronic system device is configured as described above, the communication purpose between the electronic system device and the external device is used as a RAM monitor of control information other than rewriting of memory information. When performing a failure diagnosis or the like, a special communication means is required.

【0005】また、シリアル通信ラインを複数の電子制
御ユニット(ECU)と共用している場合には、他の電
子制御ユニット(ECU)が通信を行っている場合に、
特殊な通信手順を実行し、誤ってデータを書換えないよ
うにすることを必要とする。
When a serial communication line is shared with a plurality of electronic control units (ECUs), when another electronic control unit (ECU) is communicating,
It is necessary to execute a special communication procedure so as not to rewrite data by mistake.

【0006】この発明は上記のような問題点を解消する
ためになされたもので、フラッシュメモリやEEPRO
Mのような書換可能な不揮発性メモリのデータの書換を
行うモードと、RAMデータの読み出しを実行するモー
ドとを通信以外の外部手段によって切り換えることによ
り信頼性の高い通信を実現することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has been made in consideration of a flash memory or an EEPROM.
An object is to realize highly reliable communication by switching between a mode for rewriting data in a rewritable nonvolatile memory such as M and a mode for executing reading of RAM data by external means other than communication. I have.

【0007】[0007]

【課題を解決するための手段】この発明に係る電子制御
ユニットの制御定数を書換えるシステムは、各種演算を
行い送信用信号を演算・生成しまた受信データをコード
化するCPUと、制御定数を格納する不揮発性メモリ
(EEPROM,フラッシュメモリ)を備えた電子制御
ユニットと、電子制御ユニットの制御(CPU内のRA
Mデータ読み出し等)又は不揮発性メモリの制御定数の
書換えを行うための外部装置とを備え、外部装置と電子
制御ユニットとを制御用の通信ラインで接続するととも
に、外部装置から電子制御ユニットへ通信モード切換用
コントロール信号を送信するコントロールラインを配設
し、通信モード切換用コントロール信号が制御定数書換
モードの場合に、外部装置により電子制御ユニット内の
不揮発性メモリの制御定数を書換え可能としたことを特
徴とする。
A system for rewriting control constants of an electronic control unit according to the present invention comprises: a CPU for performing various operations to calculate and generate a transmission signal and encoding received data; An electronic control unit provided with a nonvolatile memory (EEPROM, flash memory) for storing, and control of the electronic control unit (RA in the CPU)
An external device for rewriting the control constants of the nonvolatile memory, and connecting the external device and the electronic control unit via a control communication line, and communicating from the external device to the electronic control unit. A control line for transmitting the mode switching control signal is provided, and when the communication mode switching control signal is in the control constant rewriting mode, the control constants of the nonvolatile memory in the electronic control unit can be rewritten by an external device. It is characterized by.

【0008】更に詳細には、通信モード切換用コントロ
ール信号は、外部装置からの電子制御ユニット内部のE
EPROMデータ書換モードと、CPU内のRAMデー
タ読み出しモードを備え、電子制御ユニットのコントロ
ール信号入力インターフェース回路は、外部装置から出
力された切換用コントロール信号を識別し、その信号レ
ベル、信号周波数、又は信号のデューティ比によって、
EEPROMデータ書換モードの要求であるか、RAM
データ読み出しモードの要求であるかをCPUが判断で
きるようにした。
More specifically, a communication mode switching control signal is transmitted from an external device to an electronic control unit inside the electronic control unit.
It has an EPROM data rewriting mode and a RAM data reading mode in the CPU. The control signal input interface circuit of the electronic control unit identifies a switching control signal output from an external device, and its signal level, signal frequency, or signal Depending on the duty ratio of
Whether the request is for the EEPROM data rewrite mode or the RAM
The CPU can determine whether the request is the data read mode.

【0009】また、通信モード切換用コントロール信号
は多段階の信号レベルを有し、各段階に応じて複数の電
子制御ユニット内の不揮発性メモリの制御定数を書換え
可能としたことを特徴とする。
Further, the communication mode switching control signal has a multi-level signal level, and the control constants of the nonvolatile memories in the plurality of electronic control units can be rewritten according to each level.

【0010】[0010]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

実施の形態1.以下、この発明の実施の形態1を図につ
いて説明する。図1は実施の形態1による電子制御ユニ
ットの制御定数書換システムを示す構成図であり、制御
定数書換のための外部装置(パーソナルコンピュータ
等)と電子制御ユニット(ECU)との間のシリアル通
信ライン及びコントロールラインの接続図を示す。
Embodiment 1 FIG. Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing a control constant rewriting system of an electronic control unit according to a first embodiment, and a serial communication line between an external device (such as a personal computer) for rewriting the control constant and an electronic control unit (ECU). And connection diagrams of control lines.

【0011】図1において、この電子制御ユニットの制
御定数書換システムは、例えば車両用走行制御用の電子
制御ユニット(ECU)1と、この電子制御ユニット
(ECU)1の制御定数の格納されているEEPROM
データ書換え及びRAMデータ読み出しを行うための通
信機能を有する外部装置(パーソナルコンピュータ等)
2から構成される。電子制御ユニット(ECU)1には
中央演算処理装置である1チップCPU3が内蔵され、
このCPU3は電子制御ユニット(ECU)1を機能さ
せるために各種演算を行い、送信用信号を演算生成し、
また受信データをディジタルコード化する役割を果す。
そして、CPU3は、送信用ポート(TXポート)、受
信用ポート(RXポート)、通信モード切換用コントロ
ール信号の入力ポート(PIOポート)を備え、また、
制御及び通信を実行するためのプログラムを格納するR
OMと、制御情報及び演算情報を一時的に格納するRA
Mと、制御定数を格納するEEPROMを内蔵してい
る。
In FIG. 1, the control constant rewriting system of the electronic control unit stores, for example, an electronic control unit (ECU) 1 for vehicle traveling control and control constants of the electronic control unit (ECU) 1. EEPROM
An external device (such as a personal computer) having a communication function for performing data rewriting and RAM data reading
2 The electronic control unit (ECU) 1 has a built-in one-chip CPU 3 as a central processing unit,
The CPU 3 performs various calculations to make the electronic control unit (ECU) 1 function, generates a transmission signal, and generates a signal for transmission.
It also plays the role of digitally encoding the received data.
The CPU 3 includes a transmission port (TX port), a reception port (RX port), and an input port (PIO port) for a communication mode switching control signal.
R storing a program for executing control and communication
OM and RA for temporarily storing control information and calculation information
M and an EEPROM for storing control constants are incorporated.

【0012】CPU3と外部装置2の間には、シリアル
通信インターフェース回路4とコントロール信号入力イ
ンターフェース回路5が接続されており、シリアル通信
インターフェース回路4は外部装置2と電子制御ユニッ
ト(ECU)1が通信を行う際の電気的信号レベルを整
合する役割を果し、コントロール信号入力インターフェ
ース回路5は外部装置2からのコントロール信号をCP
U3の入力信号レベルに変換する役割を果す。シリアル
通信ライン6は、外部装置2と電子制御ユニット(EC
U)1の間でシリアル通信を行う場合にシリアル通信情
報を伝達する。また、コントロールライン7は外部装置
2から通信モードを切換えるためのコントロール信号を
伝達する。なお、GNDライン8は、外部装置2と電子
制御ユニット(ECU)1との間で信号の授受を行う際
の基準信号となる。
A serial communication interface circuit 4 and a control signal input interface circuit 5 are connected between the CPU 3 and the external device 2, and the serial communication interface circuit 4 communicates between the external device 2 and the electronic control unit (ECU) 1. The control signal input interface circuit 5 serves to match the electric signal level when performing the control.
It serves to convert the input signal level of U3. The serial communication line 6 is connected to the external device 2 and an electronic control unit (EC
U) Transmit serial communication information when serial communication is performed between 1. The control line 7 transmits a control signal for switching the communication mode from the external device 2. The GND line 8 serves as a reference signal when a signal is exchanged between the external device 2 and the electronic control unit (ECU) 1.

【0013】電子制御ユニット(ECU)1には、当該
装置1を駆動するのに必要とする定電圧を生成するため
の電源回路9が内蔵されており、バッテリに接続されて
いる。また、電子制御ユニット(ECU)1のCPU3
には、制御入力インターフェース回路10と制御出力イ
ンターフェース回路11が接続され、制御入力インター
フェース回路10はECU1が走行制御等を行う際に入
力情報として各種センサ、スイッチ情報から得られる電
気的信号をCPU3の入力信号レベルに変換する役割を
果し、制御出力インターフェース回路11はECU1が
走行制御等の演算結果である各種アクチュエータを駆動
するための出力信号をアクチュエータ駆動信号レベルに
変換する。
The electronic control unit (ECU) 1 has a built-in power supply circuit 9 for generating a constant voltage required for driving the device 1, and is connected to a battery. The CPU 3 of the electronic control unit (ECU) 1
, A control input interface circuit 10 and a control output interface circuit 11 are connected, and the control input interface circuit 10 transmits an electric signal obtained from various sensors and switch information as input information when the ECU 1 performs travel control or the like to the CPU 3. The control output interface circuit 11 converts an output signal for driving various actuators, which is a calculation result of the traveling control or the like, by the ECU 1 into an actuator drive signal level.

【0014】次に、実施の形態1の電子制御ユニットの
制御定数書換システムの通信動作の詳細について図2の
回路ブロック図と、図3の通信データ時系列図を用いて
説明する。
Next, the details of the communication operation of the control constant rewriting system of the electronic control unit according to the first embodiment will be described with reference to the circuit block diagram of FIG. 2 and the communication data time series diagram of FIG.

【0015】外部装置2が電子制御ユニット(ECU)
1に接続されていない場合においては、電子制御ユニッ
ト(ECU)1のコントロール信号入力インターフェー
ス回路5内部において5V状態に固定されており、EE
PROMデータ書換モードは禁止状態となり、RAMモ
ニターモードに設定されている。外部装置2を電子制御
ユニット(ECU)1に接続し、外部装置2がコントロ
ール出力信号を0V状態とすると、電子制御ユニット
(ECU)1内部のCPU3のPIOポートの入力信号
が0Vとなり、EEPROMデータ書換モードの状態と
なる。
The external device 2 is an electronic control unit (ECU)
1 is fixed to 5 V inside the control signal input interface circuit 5 of the electronic control unit (ECU) 1 and is not connected to the EE.
The PROM data rewrite mode is disabled and set to the RAM monitor mode. When the external device 2 is connected to the electronic control unit (ECU) 1 and the external device 2 sets the control output signal to 0 V, the input signal of the PIO port of the CPU 3 inside the electronic control unit (ECU) 1 becomes 0 V, and the EEPROM data is The rewrite mode is set.

【0016】その後、あらかじめ外部装置2と電子制御
ユニット(ECU)1との間で定められた一定の通信速
度を使用し、外部装置2のTXポートからデータA:1
00が電子制御ユニット(ECU)1へ送信されてくる
と、CPU3内部のEEPROMの定められたアドレス
にデータA:100を書き込み、実行済み信号ACK
(1):101を外部装置2へ送信する。このようにして
引き続き、電子制御ユニット(ECU)1内部のCPU
3が外部装置2からデータB:102を受信すると、同
様にEEPROMのあらかじめ定められたアドレスにデ
ータB:102を書き込み、実行済み信号ACK(2):
103を外部装置2へ送信する。その後、電子制御ユニ
ット(ECU)1のCPU3のPIOポート入力が5V
状態となるまでEEPROMデータ書換モードを継続す
る。
Thereafter, using a fixed communication speed determined in advance between the external device 2 and the electronic control unit (ECU) 1, data A: 1 is transmitted from the TX port of the external device 2.
When 00 is transmitted to the electronic control unit (ECU) 1, the data A: 100 is written to a predetermined address of the EEPROM in the CPU 3, and the executed signal ACK is output.
(1): 101 is transmitted to the external device 2. In this way, the CPU inside the electronic control unit (ECU) 1 continues.
3 receives the data B: 102 from the external device 2, similarly writes the data B: 102 to a predetermined address of the EEPROM, and executes the executed signal ACK (2):
103 is transmitted to the external device 2. After that, the PIO port input of the CPU 3 of the electronic control unit (ECU) 1
The EEPROM data rewriting mode is continued until the state is reached.

【0017】外部装置2のコントロール信号出力が5V
状態となった場合は、電子制御ユニット(ECU)1の
CPU3のPIOポート入力が5Vとなり、RAMデー
タ読み出しモードの状態となる。この状態において外部
装置2のTXポートからアドレス(1):104が電子制
御ユニット(ECU)1へ送信されてくると、CPU3
内部のRAMのアドレス(1):104に対応するデータ
(1):105を外部装置2へ送信する。このようにして
引き続き、ECU1内部のCPU3が外部装置2からア
ドレス(2):106を受信すると、同様にCPU3内部
のRAMのアドレス(2):106に対応するデータ
(2):107を外部装置2へ送信する。
The control signal output of the external device 2 is 5 V
When the state is reached, the PIO port input of the CPU 3 of the electronic control unit (ECU) 1 becomes 5 V, and the state is the RAM data read mode. In this state, when an address (1): 104 is transmitted from the TX port of the external device 2 to the electronic control unit (ECU) 1, the CPU 3
Internal RAM address (1): Data corresponding to 104
(1): 105 is transmitted to the external device 2. When the CPU 3 in the ECU 1 receives the address (2): 106 from the external device 2 in this manner, similarly, the data corresponding to the address (2): 106 in the RAM in the CPU 3
(2): 107 is transmitted to the external device 2.

【0018】以上のような通信手順を進めることによ
り、確実にEEPROMデータ書換モードと、RAMデ
ータ読み出しモードの切換が可能となり、通信データ異
常による誤ったデータ書換を確実に防止できる。
By proceeding with the above communication procedure, it is possible to reliably switch between the EEPROM data rewriting mode and the RAM data reading mode, and erroneous data rewriting due to abnormal communication data can be reliably prevented.

【0019】実施の形態2.上記実施の形態1では、コ
ントロール出力信号として0Vと5Vの2つのデジタル
信号レベルを使用し、EEPROMデータ書換モード又
はRAMデータ読み出しモードの切換を行う場合につい
て説明したが、図4に示すように、コントロール信号入
力インターフェース回路をアナログ入力回路とすること
で、任意の閾値判定が可能となり、外部装置の同一シリ
アル通信ラインに複数個の電子制御ユニット(ECU)
が接続されている場合においては、EEPROMデータ
書換モードの実行対象ECUをコントロール信号の電圧
値を変化させることにより指定することが可能となる。
Embodiment 2 In the first embodiment, a case has been described in which two digital signal levels of 0 V and 5 V are used as the control output signal to switch between the EEPROM data rewriting mode and the RAM data reading mode, but as shown in FIG. By making the control signal input interface circuit an analog input circuit, any threshold value can be determined, and a plurality of electronic control units (ECUs) can be connected to the same serial communication line of an external device.
Is connected, the ECU to be executed in the EEPROM data rewriting mode can be designated by changing the voltage value of the control signal.

【0020】図4はこの発明の実施の形態2による電子
制御ユニットの制御定数書換システムを示す構成図であ
り、外部装置30のシリアル通信インターフェース回路
4はシリアル通信ライン6、通信用コネクタ46を介し
て複数の電子制御ユニット(ECU)40,42,43
のシリアル通信インターフェース回路4と接続されてお
り、外部装置30のコントロール信号出力インターフェ
ース12は通信用コネクタ46、コントロールライン7
を介して同じく複数の電子制御ユニット(ECU)4
0,42,43のコントロール通信インターフェース回
路5と接続されている。なお、41,43,45は電子
制御ユニット(ECU)40,42,43に内蔵されて
いるCPUを示す。
FIG. 4 is a block diagram showing a control constant rewriting system for an electronic control unit according to a second embodiment of the present invention. And a plurality of electronic control units (ECUs) 40, 42, 43
The control signal output interface 12 of the external device 30 includes a communication connector 46 and a control line 7.
Via a plurality of electronic control units (ECUs) 4
0, 42, and 43 are connected to the control communication interface circuit 5. Reference numerals 41, 43, and 45 denote CPUs incorporated in electronic control units (ECUs) 40, 42, and 43, respectively.

【0021】次に、実施の形態2の電子制御ユニットの
制御定数書換システムの通信動作の詳細を図5の時系列
図を使用して説明する。
Next, the communication operation of the control constant rewriting system of the electronic control unit according to the second embodiment will be described in detail with reference to the time series diagram of FIG.

【0022】電子制御ユニット(ECU)40内部のC
PU41のポートAD0に入力されるEEPROMデー
タ書換モード判定電圧を0V以上1.25V未満とし、
電子制御ユニット(ECU)42内部のCPU43のポ
ートAD0に入力されるEEPROMデータ書換モード
判定電圧を1.25V以上2.5V未満とし、電子制御
ユニット(ECU)44内部のCPU45のポートAD
0に入力されるEEPROMデータ書換モード判定電圧
を2.5V以上3.75V未満とする。また、電子制御
ユニット(ECU)40,42,44のRAMデータ読
み出しモード判定電圧を3.75V以上とする。
C in the electronic control unit (ECU) 40
The EEPROM data rewrite mode determination voltage input to the port AD0 of the PU 41 is set to 0 V or more and less than 1.25 V,
The EEPROM data rewrite mode determination voltage input to the port AD0 of the CPU 43 in the electronic control unit (ECU) 42 is set to 1.25 V or more and less than 2.5 V, and the port AD of the CPU 45 in the electronic control unit (ECU) 44 is set.
The EEPROM data rewrite mode determination voltage input to 0 is set to 2.5 V or more and less than 3.75 V. The RAM data read mode determination voltage of the electronic control units (ECUs) 40, 42, and 44 is set to 3.75 V or more.

【0023】まず、外部装置30がコントロール出力信
号206を出力し、データC:200を送信すると、E
CU40、42、44のCPU41、43、45のRX
ポートにデータC:200が入力されるが、外部装置3
0のコントロール出力信号206が0.625Vであ
り、ECU40のEEPROM書換モード判定電圧内に
あることをECU40内部のCPU41が認識し、デー
タC:200はECU40のCPU41内部にあるEE
PROMの定められたアドレスに書き込まれ、実行済み
信号ACK40:201をECU40から外部装置30
へ返信する。
First, when the external device 30 outputs the control output signal 206 and transmits data C: 200, E
RX of CPU41,43,45 of CU40,42,44
Although data C: 200 is input to the port, the external device 3
The CPU 41 inside the ECU 40 recognizes that the control output signal 206 of 0 is 0.625 V and is within the EEPROM rewrite mode determination voltage of the ECU 40, and the data C: 200 is stored in the EEPROM 41 inside the CPU 41 of the ECU 40.
The executed signal ACK40: 201 written at a predetermined address of the PROM is transmitted from the ECU 40 to the external device 30.
Reply to

【0024】その後、外部装置30がコントロール出力
信号207を出力し、データD:202を送信すると、
ECU40、42、44のCPU41、43、45のR
XポートにデータD:202が入力されるが、外部装置
30のコントロール出力信号207が1.875Vであ
り、ECU42のEEPROM書換モード判定電圧内に
あることをECU42内部のCPU43が認識し、デー
タD:202はECU42のCPU43内部にあるEE
PROMの定められたアドレスに書き込まれ、実行済み
信号ACK42:203をECU42から外部装置30
へ返信する。
Thereafter, when the external device 30 outputs the control output signal 207 and transmits the data D: 202,
R of the CPUs 41, 43, 45 of the ECUs 40, 42, 44
The data D: 202 is input to the X port. The CPU 43 inside the ECU 42 recognizes that the control output signal 207 of the external device 30 is 1.875 V and is within the EEPROM rewrite mode determination voltage of the ECU 42, : 202 is the EE inside the CPU 43 of the ECU 42
The executed signal ACK42: 203 written to a predetermined address of the PROM is transmitted from the ECU 42 to the external device 30.
Reply to

【0025】また、外部装置30がコントロール出力信
号208を出力し、データE:204を送信すると、E
CU40、42、44のCPU41、43、45のRX
ポートにデータE:204が入力されるが、コントロー
ル出力信号208が3.125Vであり、ECU44の
EEPROM書換モード判定電圧内にあることをECU
44内部のCPU45が認識し、データE:204はE
CU44のCPU45内部にあるEEPROMの定めら
れたアドレスに書き込まれ、実行済み信号ACK44:
205をECU44から外部装置30へ返信する。
When the external device 30 outputs the control output signal 208 and transmits the data E: 204,
RX of CPU41,43,45 of CU40,42,44
The data E: 204 is input to the port, but the control output signal 208 is 3.125V and the ECU 44 determines that the voltage is within the EEPROM rewrite mode determination voltage of the ECU 44.
44, the data E: 204 is recognized as E.
The executed signal ACK44 is written to a predetermined address of the EEPROM in the CPU 45 of the CU 44 and executed.
205 is returned from the ECU 44 to the external device 30.

【0026】さらに、外部装置30がコントロール出力
信号209を出力すると、コントロール出力信号209
は5Vであるため、ECU40、42、44は全てEE
PROMデータ書換モードからRAMデータ読み出しモ
ードに移行する。
Further, when the external device 30 outputs the control output signal 209, the control output signal 209
Is 5V, so that ECUs 40, 42 and 44 are all EE
The mode shifts from the PROM data rewrite mode to the RAM data read mode.

【0027】以上の手順を実行することで、同一シリア
ル通信ライン6に接続された複数の電子制御ユニット
(ECU)に対して、個別にEEPROMデータ書換を
確実に実行可能となる。
By executing the above procedure, EEPROM data rewriting can be reliably executed for a plurality of electronic control units (ECUs) connected to the same serial communication line 6 individually.

【0028】実施の形態3.上記実施の形態では、EE
PROMデータ書換モード及びRAMデータ読み出しモ
ードの通信モードの切換を、コントロール信号の電圧レ
ベルの違いにより判定していたが、通信モードの切換を
行うコントロール信号として一定周波数のデューティ信
号を使用しても良く、デューティ信号のLOWレベル時
間、又は、HIGHレベル時間の長さの違いにより、E
EPROMデータ書換対象モードの切換を行うことが可
能である。
Embodiment 3 In the above embodiment, EE
The switching of the communication mode between the PROM data rewriting mode and the RAM data reading mode is determined based on the voltage level of the control signal. However, a duty signal having a constant frequency may be used as the control signal for switching the communication mode. Due to the difference in the length of the LOW level time or HIGH level time of the duty signal,
It is possible to switch the EPROM data rewrite target mode.

【0029】その他の実施の形態.上記実施の形態で
は、電子制御ユニット(ECU)を機能させるために各
種演算を行い、送信用信号を演算生成し、また受信デー
タをデジタルコード化するCPUとして、送信用ポート
(TXポート)、受信用ポート(RXポート)、通信モ
ード切換用コントロール信号の入力ポート、及びRO
M、RAM、EEPROMを内蔵した形式のものについ
て説明したが、ROM、RAM、EEPROMは外部か
ら接続して使用する形態のCPU、または、ROM、R
AMを内蔵し、EEPROMは外部から接続して使用す
る形態のCPUを有する電子制御ユニット(ECU)に
対しても同様に適用できる。
Other Embodiments In the above embodiment, various operations are performed to make the electronic control unit (ECU) function, a signal for transmission is calculated and generated, and a transmission port (TX port), a reception port, and a reception port are digitally coded. Port (RX port), input port for communication mode switching control signal, and RO
The M, RAM, and EEPROM have been described as having a built-in type. However, the ROM, RAM, and EEPROM may be connected to an externally used CPU, or may be a ROM, an R,
The present invention can be similarly applied to an electronic control unit (ECU) having a built-in AM and an EEPROM connected to an external device and having a CPU.

【0030】[0030]

【発明の効果】以上のようにこの発明によれば、電子制
御ユニット(ECU)内部の不揮発性メモリ(EEPR
OM)データ書換モードと、一般制御(RAMデータ読
み出し)モードとを一般制御通信(シリアル通信)以外
のコントロール信号を用いて切り換えることにより、信
頼性の高いシリアル通信制御を実行することが可能とな
る。
As described above, according to the present invention, the nonvolatile memory (EEPR) inside the electronic control unit (ECU) is provided.
By switching between the OM) data rewriting mode and the general control (RAM data reading) mode using control signals other than the general control communication (serial communication), highly reliable serial communication control can be performed. .

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

【図1】 この発明の実施の形態1による外部装置とE
CU間のシリアル通信ライン、コントロールライン接続
図である。
FIG. 1 shows an external device and an external device according to a first embodiment of the present invention.
FIG. 3 is a connection diagram of serial communication lines and control lines between CUs.

【図2】 この発明の実施の形態1による外部装置のシ
リアル通信インターフェース回路とECUのシリアル通
信インターフェース回路の接続詳細と、外部装置のコン
トロール信号出力インターフェースとECUのコントロ
ール信号入力インターフェースの接続詳細を示す接続図
である。
FIG. 2 shows connection details of a serial communication interface circuit of an external device and a serial communication interface circuit of an ECU according to Embodiment 1 of the present invention, and connection details of a control signal output interface of the external device and a control signal input interface of the ECU. FIG.

【図3】 この発明の実施の形態1によるEEPROM
データ書換、及びRAMデータ読み出しを行う場合の通
信データ時系列図である。
FIG. 3 is an EEPROM according to the first embodiment of the present invention;
FIG. 9 is a time series diagram of communication data when performing data rewriting and RAM data reading.

【図4】 この発明の実施の形態2による外部装置のシ
リアル通信インターフェース回路と複数のECUのシリ
アル通信インターフェース回路の接続詳細と、外部装置
のコントロール信号出力インターフェースと複数のEC
Uのコントロール信号入力インターフェースの接続詳細
を示す接続図である。
FIG. 4 shows connection details of a serial communication interface circuit of an external device and a serial communication interface circuit of a plurality of ECUs, a control signal output interface of an external device, and a plurality of ECs according to Embodiment 2 of the present invention;
FIG. 9 is a connection diagram showing connection details of a control signal input interface of U.

【図5】 この発明の実施の形態2によるEEPROM
データ書換、及びRAMデータ読み出しを行う場合の通
信データ時系列図である。
FIG. 5 is an EEPROM according to a second embodiment of the present invention;
FIG. 9 is a time series diagram of communication data when performing data rewriting and RAM data reading.

【図6】 従来のデータ書換用通信システム接続図であ
る。
FIG. 6 is a connection diagram of a conventional data rewriting communication system.

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

1 電子制御ユニット(ECU)、2 外部装置、3
CPU、4 シリアル通信インターフェース回路、5
コントロール信号入力インターフェース回路、6 シリ
アル通信ライン、7 コントロールライン、8 通信用
GNDライン、9 電源回路、10 制御入力インター
フェース回路、11 制御出力インターフェース回路、
12 コントロール信号出力インターフェース回路、3
0 外部装置、40,42,44 ECU、41,4
3,45 CPU、46 通信用コネクタ。
1 electronic control unit (ECU), 2 external device, 3
CPU, 4 serial communication interface circuit, 5
Control signal input interface circuit, 6 serial communication line, 7 control line, 8 GND line for communication, 9 power supply circuit, 10 control input interface circuit, 11 control output interface circuit,
12 control signal output interface circuit, 3
0 external device, 40, 42, 44 ECU, 41, 4
3,45 CPU, 46 Communication connector.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 電子制御ユニットの制御定数を書換える
システムにおいて、 少なくとも制御定数を格納する不揮発性メモリを内蔵し
た中央演算処理装置(CPU)を備えた電子制御ユニッ
トと、 上記電子制御ユニットの一般制御又は制御定数の書換え
を行うための外部装置と、 上記外部装置と上記電子制御ユニットとを接続する一般
制御用の通信ラインと、 上記外部装置から上記電子制御ユニットへ通信モード切
換用コントロール信号を送信するコントロールラインと
を備え、 上記通信モード切換用コントロール信号が制御定数書換
モードの場合に、上記外部装置により上記電子制御ユニ
ット内の不揮発性メモリの制御定数を書換え可能とした
ことを特徴とする電子制御ユニットの制御定数書換シス
テム。
1. A system for rewriting control constants of an electronic control unit, comprising: a central processing unit (CPU) having a built-in nonvolatile memory for storing at least the control constants; An external device for performing control or rewriting of control constants, a communication line for general control connecting the external device and the electronic control unit, and a communication mode switching control signal from the external device to the electronic control unit. And a control line for transmitting, wherein when the communication mode switching control signal is in a control constant rewriting mode, the control constant of the nonvolatile memory in the electronic control unit can be rewritten by the external device. Control constant rewriting system for electronic control unit.
【請求項2】 通信モード切換用のコントロール信号と
してその信号レベル、信号周波数、又は信号のデューテ
ィ比によって、制御定数書換モードか、または一般制御
モードかを判定できる請求項1記載の電子制御ユニット
の制御定数書換システム。
2. The electronic control unit according to claim 1, wherein the control signal for switching the communication mode can be determined to be a control constant rewriting mode or a general control mode by a signal level, a signal frequency, or a signal duty ratio. Control constant rewriting system.
【請求項3】 通信モード切換用コントロール信号は多
段階の信号レベルを有し、各段階に応じて複数の電子制
御ユニット内の不揮発性メモリの制御定数を書換え可能
としたことを特徴とする請求項1又は請求項2記載の電
子制御ユニットの制御定数書換システム。
3. The communication mode switching control signal has a multi-step signal level, and a control constant of a nonvolatile memory in a plurality of electronic control units can be rewritten according to each step. 3. The control constant rewriting system for an electronic control unit according to claim 1 or 2.
JP15472297A 1997-06-12 1997-06-12 Control constant reloading system for electronic control unit Pending JPH113106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15472297A JPH113106A (en) 1997-06-12 1997-06-12 Control constant reloading system for electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15472297A JPH113106A (en) 1997-06-12 1997-06-12 Control constant reloading system for electronic control unit

Publications (1)

Publication Number Publication Date
JPH113106A true JPH113106A (en) 1999-01-06

Family

ID=15590540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15472297A Pending JPH113106A (en) 1997-06-12 1997-06-12 Control constant reloading system for electronic control unit

Country Status (1)

Country Link
JP (1) JPH113106A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001290513A (en) * 2000-04-10 2001-10-19 Toyota Motor Corp Method for providing control parameter, server device, and vehicle control system
JP2005304695A (en) * 2004-04-20 2005-11-04 Sanyo Product Co Ltd Game machine
SG129334A1 (en) * 2005-07-21 2007-02-26 Sin Etke Technology Co Ltd Serial data transmission method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001290513A (en) * 2000-04-10 2001-10-19 Toyota Motor Corp Method for providing control parameter, server device, and vehicle control system
JP2005304695A (en) * 2004-04-20 2005-11-04 Sanyo Product Co Ltd Game machine
SG129334A1 (en) * 2005-07-21 2007-02-26 Sin Etke Technology Co Ltd Serial data transmission method and system

Similar Documents

Publication Publication Date Title
US5826211A (en) Electronic controller having excellent control program and control data overwriting capabilities
US6275911B1 (en) Memory writing device for an electronic device
US6907329B2 (en) Method and device for activating and/or deactivating distributed control units
JP5091219B2 (en) Battery management system
US5608490A (en) Apparatus for and a method of communicating between a camera and external equipment
US5479347A (en) Vehicle diagnosis system
US8036786B2 (en) On-vehicle control apparatus
JPH11238005A (en) Electronic controller and control system
CN110809755A (en) Electronic control system
US6640259B2 (en) Vehicle-mounted electronic control apparatus
CN107111575B (en) Method and storage management device for transmitting data in computer system, storage system and computer system
JP2008254484A (en) On-vehicle communication system
JPH113106A (en) Control constant reloading system for electronic control unit
JP6895373B2 (en) Electronic control device for automobiles
JP2001135089A (en) Eeprom write-in device
JP2004040649A (en) On-vehicle communication equipment
JP7112527B2 (en) Method for operating sensor arrangement in motor vehicle based on DSI protocol
JP4042234B2 (en) FA network and robot controller
US20220399894A1 (en) Control device and input-output interface unit
JPH1097419A (en) Memory write device for electronic device
JP3794081B2 (en) Communication method of bus line communication encoder
US20220348213A1 (en) Apparatus and method for controlling power of vehicle
JPH06259982A (en) Method and device for rewriting flash rom
JP4048442B2 (en) Redundant CPU device
JP2003261018A (en) Diagnostic mechanism for vehicle