Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5120010B2 - Method of writing control data to on-vehicle control device and on-vehicle control device - Google Patents
[go: Go Back, main page]

JP5120010B2 - Method of writing control data to on-vehicle control device and on-vehicle control device - Google Patents

Method of writing control data to on-vehicle control device and on-vehicle control device Download PDF

Info

Publication number
JP5120010B2
JP5120010B2 JP2008078682A JP2008078682A JP5120010B2 JP 5120010 B2 JP5120010 B2 JP 5120010B2 JP 2008078682 A JP2008078682 A JP 2008078682A JP 2008078682 A JP2008078682 A JP 2008078682A JP 5120010 B2 JP5120010 B2 JP 5120010B2
Authority
JP
Japan
Prior art keywords
data
control
transfer frame
compression
data transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008078682A
Other languages
Japanese (ja)
Other versions
JP2009227248A (en
Inventor
雅敏 田口
泰幸 松田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisin AW Co Ltd
Original Assignee
Aisin AW Co 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 Aisin AW Co Ltd filed Critical Aisin AW Co Ltd
Priority to JP2008078682A priority Critical patent/JP5120010B2/en
Priority to PCT/JP2009/053248 priority patent/WO2009119224A1/en
Priority to CN200980101033.2A priority patent/CN101868378B/en
Priority to DE112009000047.9T priority patent/DE112009000047B4/en
Priority to US12/409,152 priority patent/US7987300B2/en
Publication of JP2009227248A publication Critical patent/JP2009227248A/en
Application granted granted Critical
Publication of JP5120010B2 publication Critical patent/JP5120010B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、車上自動機器の動作を制御する車上制御装置ならびに、該車上制御装置に制御プログラムおよび/又は該プログラムの実行において使用する参照データを書込む方法に関する。本発明は、これに限定する意図ではないが、車両上の自動変速機の動作を制御する変速制御装置およびその他の、車上自動機器の動作を制御するコンピュータ,コントローラに用いることができる。   The present invention relates to an on-board control device that controls the operation of an on-board automatic device, and a method of writing a control program and / or reference data used in execution of the program to the on-board control device. The present invention is not intended to be limited to this, but can be used for a shift control device that controls the operation of an automatic transmission on a vehicle and other computers and controllers that control the operation of an on-vehicle automatic device.

特開2003−202072号公報JP 2003-202072 A 特開2006−283832号公報JP 2006-238332 A 特開2001−034601号公報JP 2001-034601 A

特許文献1には、道路情報および走行状態に基づいて目標速度を算出し、車両速度を該目標速度とするように、車両上自動変速機の変速をコンピュータによって制御する車両用制御装置が記載されている。特許文献2には、RAM内蔵のCPUおよびEEPROMを用いて、シフトレバーポジションおよびエンジン作動状態に基づいて自動変速機を制御する車両制御装置を記載している。   Patent Document 1 describes a vehicle control device that calculates a target speed based on road information and a traveling state, and controls a shift of an on-vehicle automatic transmission by a computer so that the vehicle speed is the target speed. ing. Patent Document 2 describes a vehicle control apparatus that controls an automatic transmission based on a shift lever position and an engine operating state using a CPU and an EEPROM with built-in RAM.

特許文献3は、多くの車上制御装置に採用される1チップマイクロコンピュータ(マイコン)の不揮発メモリに制御プログラムを書き込む方法を記載している。マイコンは、CPU,RAMおよび不揮発メモリ(EPROM,EEPROM)を主体とし、RAMの記憶容量は不揮発メモリよりも小さい。特許文献3の図1に示される第1実施例は、外部のPROMライタからマイコン(の不揮発メモリ)に格納する制御プログラムの転送時間を短くするために、制御プログラムを圧縮して転送するが、制御プログラムは、RAMの空きエリアに入りきる単位でブロック化されて、ブロック単位で圧縮されて転送される。しかし、転送しながら書込みを行うので高圧縮は不向きで圧縮率が低く、また、圧縮データを解凍すなわち伸張したとき、RAMの空きエリアに入りきる単位で圧縮して転送するので、1ブロックの圧縮データ量すなわち転送データ量は少なく、転送時間節減効果が比較的に低い。そこで第2実施例では、制御プログラムのブロック単位の圧縮データを受信してRAMに順次書込んでから不揮発メモリに書込み、全制御プログラムの圧縮データを不揮発メモリに格納すると、該不揮発メモリから圧縮データを順次RAMに読み出して解凍し、解凍したデータを不揮発メモリに書き込む。これによれば、PROMライタから制御装置である1チップマイコンへの制御プログラムの転送時間は短く、しかも高圧縮率の圧縮方式を採用できるので、更に転送時間を短縮することができる。   Patent Document 3 describes a method of writing a control program in a nonvolatile memory of a one-chip microcomputer (microcomputer) employed in many on-vehicle control devices. The microcomputer mainly includes a CPU, RAM, and nonvolatile memory (EPROM, EEPROM), and the storage capacity of the RAM is smaller than that of the nonvolatile memory. In the first embodiment shown in FIG. 1 of Patent Document 3, the control program is compressed and transferred in order to shorten the transfer time of the control program stored in the microcomputer (nonvolatile memory) from the external PROM writer. The control program is blocked in units that can fit in the free area of the RAM, and is compressed and transferred in units of blocks. However, since writing is performed while transferring, high compression is not suitable and the compression rate is low, and when compressed data is decompressed or expanded, it is compressed and transferred in units that can fit in the free area of RAM, so one block compression The amount of data, that is, the amount of transfer data is small, and the transfer time saving effect is relatively low. Therefore, in the second embodiment, when compressed data in block units of the control program is received and sequentially written in the RAM and then written in the nonvolatile memory, and the compressed data of all the control programs is stored in the nonvolatile memory, the compressed data is read from the nonvolatile memory. Are sequentially read into the RAM and decompressed, and the decompressed data is written into the nonvolatile memory. According to this, since the transfer time of the control program from the PROM writer to the one-chip microcomputer as the control device is short and the compression method with a high compression rate can be adopted, the transfer time can be further shortened.

しかし、不揮発メモリに、制御プログラムの圧縮データと伸張データを並行して保持する必要があるので、圧縮データを保持する分、不揮発メモリの記憶容量を増やさなければならない。また、制御プログラムの書込み時に、RAMには同一の圧縮データを2回書込むことになり、しかも不揮発メモリに、圧縮データの書込みと読み出しを行わなければならず、RAMおよび不揮発メモリに対するデータ読み書き処理が増える。   However, since it is necessary to hold the compressed data and decompressed data of the control program in the nonvolatile memory in parallel, the storage capacity of the nonvolatile memory must be increased by the amount of holding the compressed data. Also, when writing the control program, the same compressed data is written twice in the RAM, and the compressed data must be written to and read from the nonvolatile memory. Will increase.

ところで、制御プログラムおよび又は該制御プログラムで用いる参照データの書込みは、非圧縮データの転送による場合と、圧縮データの転送の場合で、PROMライタあるいはその他の転送ツールで生成するデータ転送フレームが異なり、また、1チップマイコンなど車上制御装置での受信データの、不揮発メモリへの格納処理が異なる。しかし、全データを非圧縮データで転送したい場合や、圧縮データと非圧縮データの混在で転送したい場合がある。特に、制御プログラムで用いる参照データは、設計の都合上、変更する頻度が高いため、非圧縮データで処理したい場合がある。また、特定の識別品番書込みを実施する際には、テキストデータとして認識可能な非圧縮データを用いたい場合も存在する。   By the way, the writing of the control program and the reference data used in the control program is different in the case of transferring non-compressed data and the case of transferring compressed data, and the data transfer frame generated by a PROM writer or other transfer tool is different. Also, storage processing of received data in a non-volatile memory by an on-board control device such as a one-chip microcomputer is different. However, there are cases where it is desired to transfer all the data as uncompressed data, or there are cases where it is desired to transfer the compressed data and uncompressed data together. In particular, since the reference data used in the control program is frequently changed for the sake of design, there are cases where it is desired to process the reference data with uncompressed data. In addition, there is a case where uncompressed data that can be recognized as text data is used when a specific identification product number is written.

本発明は、車上制御装置への制御プログラム,制御参照データの書込み,追加書込みあるいは一部更新書込みを、圧縮データと非圧縮データが混在したデータの転送可能にすることを第1の目的とし、これをRAMおよび不揮発メモリの記憶容量を格別に増やすことなく実現することを第2の目的とし、RAMおよび不揮発メモリのデータ読み書き処理を格別に増やすことなく実現することを第3の目的とする。   The first object of the present invention is to enable transfer of data in which compressed data and non-compressed data are mixed in the control program, control reference data write, additional write or partial update write to the on-board controller. The second object is to realize this without significantly increasing the storage capacities of the RAM and the nonvolatile memory, and the third object is to realize the data read / write processing of the RAM and the nonvolatile memory without significantly increasing. .

上記目的を達成するために本発明においては、車上自動機器(1)の動作を制御するプログラムおよび該プログラムの実行において使用する参照データを含む制御用データを非圧縮で転送するための第1種データ転送フレームと、圧縮して転送するための第2種データ転送フレームとを、同一固定サイズとし、各データ転送フレームは、非圧縮/圧縮を表す圧縮識別情報を含むものとする。そして車両上制御装置において、受信したデータフレームの圧縮識別情報が非圧縮を表すときは、該データ転送フレームの制御用データを不揮発メモリ(27)に格納するが、圧縮を表すときは、該データ転送フレームの制御用データをRAM(26)に書込んで解凍処理を開始し、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリ(27)に格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返す。これを実現する本発明の、車両上制御装置への制御用データの書込み方法は、下記(1)以下の通りである。 In order to achieve the above object, the present invention provides a first program for transferring uncompressed control data including a program for controlling the operation of the on-board automatic device (1) and reference data used in the execution of the program. It is assumed that the seed data transfer frame and the second kind data transfer frame to be compressed and transferred have the same fixed size, and each data transfer frame includes compression identification information indicating non-compression / compression. In the on-vehicle control device, when the compression identification information of the received data frame indicates non-compression, the control data of the data transfer frame is stored in the nonvolatile memory (27). the control data transfer frame starts decompression processing is written to the RAM (26), interrupted amount write and the control amount of data in the RAM of the control data decompressed set, reaches a decompression process The decompressed control data is stored in the nonvolatile memory (27), and the decompression process is resumed from where it was interrupted. This decompression and storage in the nonvolatile memory are all decompressed for the data transfer frame compression control data. The process is repeated until the data is stored in the nonvolatile memory. The method for writing control data to the on-vehicle control device of the present invention for realizing this is as follows (1).

(1)データを一時書込むためのRAM(26)、ならびに、車上自動機器(1)の動作を制御するプログラムおよび該プログラムの実行において使用する参照データを含む制御用データ、を格納するための不揮発メモリ(27)を持ち、該不揮発メモリの制御用データを用いて、車上自動機器の状態を表す状態データを前記RAMに保持し該状態データに基づいて出力データを生成し該出力データにより該車上自動機器の動作を制御する車両上制御装置(22)の、前記不揮発メモリに前記制御用データを格納する、制御用データ書込み方法において、
前記不揮発メモリ(27)に格納するための非圧縮の前記制御用データおよび該制御用データの前記不揮発メモリ上の格納アドレスを指定するアドレスデータであって非圧縮を表す圧縮識別情報を含む固定サイズの第1種データ転送フレーム、又は、前記不揮発メモリ(27)に格納するための圧縮した前記制御用データおよび前記不揮発メモリのアドレス範囲の外を表すアドレスデータであって圧縮を表す圧縮識別情報を含む、前記固定サイズと同一サイズの第2種データ転送フレーム、を受信し、
受信したデータ転送フレームの圧縮識別情報が非圧縮を表すときは、該データ転送フレームの制御用データを前記不揮発メモリ(27)に格納し、
受信したデータ転送フレームの圧縮識別情報が圧縮を表すときは、該データ転送フレームの制御用データを前記RAM(26)に書込んで解凍処理を開始し、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリ(27)に格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返す、
ことを特徴とする、車両上制御装置への制御用データの書込み方法。
(1) To store a RAM (26) for temporarily writing data, and a control data including a program for controlling the operation of the on-board automatic device (1) and reference data used in the execution of the program. A non-volatile memory (27), and using the control data of the non-volatile memory, the state data representing the state of the on-board automatic device is held in the RAM, and output data is generated based on the state data. In the control data writing method for storing the control data in the nonvolatile memory of the on-vehicle control device (22) for controlling the operation of the on-board automatic device by:
Non-compressed control data to be stored in the non-volatile memory (27), and address data for specifying a storage address of the control data on the non-volatile memory , including a fixed size including compression identification information representing non-compression The first type data transfer frame, or the compressed control data for storing in the nonvolatile memory (27) and the address data representing the outside of the address range of the nonvolatile memory, and compression identification information representing compression Including a second type data transfer frame having the same size as the fixed size,
When the compression identification information of the received data transfer frame represents non-compression, the control data of the data transfer frame is stored in the nonvolatile memory (27),
When the compression identification information of the received data transfer frame indicates compression, the control data of the data transfer frame is written into the RAM (26) and the decompression process is started, and the decompressed control data is written into the RAM. and said control data amount set amount reaches the interrupted decompression processing, and stores the control data and thawed the non-volatile memory (27), and resumes decompression processing from the interrupted position, and the thawing The storage in the nonvolatile memory is repeated until all the compression control data of the data transfer frame is decompressed and stored in the nonvolatile memory.
A method of writing control data to the on-vehicle control device.

なお、理解を容易にするために括弧内には、図面に示し後述する実施例の対応要素又は対応事項の符号を、例示として参考までに付記した。以下も同様である。   In addition, in order to make an understanding easy, the code | symbol of the corresponding element or the corresponding matter of the Example which is shown in drawing and mentions later in a parenthesis was added as an example for reference. The same applies to the following.

これによれば、非圧縮で転送するための第1種データ転送フレームと、圧縮して転送するための第2種データ転送フレームとが、同一固定サイズであるので、同一のフレーム構成で、車両上制御装置に転送できる。第1種データ転送フレームの非圧縮の制御データの量を、RAM書込みが可能な設定量に固定しておくことにより、RAMの記憶容量を増やすことなく、第1種データ転送フレームの転送およびその中の制御データの不揮発メモリへの格納が可能である。 According to this, since the first type data transfer frame for non-compressed transfer and the second type data transfer frame for compressed transfer are the same fixed size, the vehicle has the same frame configuration. Can be transferred to the upper control device. The amount of control data uncompressed first type data transfer frame, by fixing the set amount capable RAM write, without increasing the storage capacity of the RAM, transfer and first type data transfer frame it is possible to store in the nonvolatile memory of the control data therein.

第2種データ転送フレームが第1種データ転送フレームと同一サイズであるので、第2種データ転送フレームの圧縮制御データのデータ量は上記設定量となるので、RAM書込みが可能である。データ転送フレームに圧縮識別情報があるので、これに基づいて解凍処理の要否を容易に選択できる。RAMに設定量の圧縮データと、解凍した設定量の制御データを記憶する空き容量があれば、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリ(27)に格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返すので、RAMオーバフローを生じない。この空き容量が保証されない場合には、該設定量は、RAMの空き容量の1/2以下に設定する。こうすると、RAMの記憶容量を格別に増やすことなく、第1種データ転送フレームを用いる非圧縮制御データの転送と不揮発メモリへの格納は勿論、第2種データ転送フレームを用いる圧縮した制御データの転送と不揮発メモリへの格納が可能である。RAMおよび不揮発メモリのデータ読み書き処理は格別に増えない。 Since the two data transfer frame is the same size as the first type data transfer frame, the data amount of the compressed control data of the second type data transfer frame since the above set amount, it is possible to RAM write. Since there is compression identification information in the data transfer frame, the necessity of decompression processing can be easily selected based on this. And the compressed data set amount in RAM, if there is free space for storing control data decompressed set amount, the writing and the control amount of data in the RAM of the control data decompression set amount, to reach thawing The processing is interrupted, the decompressed control data is stored in the nonvolatile memory (27), and the decompression process is resumed from the interrupted location, and the decompression and storage in the nonvolatile memory are controlled by compressing the data transfer frame. Since all the data is decompressed and stored in the non-volatile memory, no RAM overflow occurs. If this free space is not guaranteed, the set amount is set to ½ or less of the free space of the RAM. In this way, without increasing exceptionally the storage capacity of RAM, storage of the transfer and non-volatile memory of the non-compressed control data using a first type data transfer frame, of course, control compressed using the second type data transfer frame Data can be transferred and stored in non-volatile memory. The data read / write processing of the RAM and the nonvolatile memory is not particularly increased.

本発明の後述の実施例では、不揮発メモリのアドレスデータは3バイトであり、その最上位バイト(先頭バイト)の最上位2ビット(先頭ビット)の「01」が「圧縮」を表し、「00」が非圧縮を表す。なおこの場合、不揮発メモリの記憶領域の最大アドレスは、該ビットが「00」にとどまるものである。データ転送フレームの先頭部(プロトコル)の転送先アドレスデータを圧縮識別情報に兼用するので、第1種データ転送フレームと第2種データ転送フレームは見かけ上同一構成であり、これも、非圧縮制御用データ転送と圧縮制御用データ転送の併用を容易にしている。In the later-described embodiment of the present invention, the address data of the nonvolatile memory is 3 bytes, and the most significant 2 bits (first bit) of the most significant byte (first byte) represents “compression”. "Represents uncompressed. In this case, the maximum address of the storage area of the nonvolatile memory is such that the bit remains at “00”. Since the transfer destination address data at the head part (protocol) of the data transfer frame is also used as the compression identification information, the first type data transfer frame and the second type data transfer frame are apparently identical in configuration, and this is also uncompressed control. Data transfer and compression control data transfer are easily used together.

(2)前記第1種データ転送フレームの非圧縮の制御用データ量は固定値であり、前記設定量は、該固定値である、上記(1)に記載の、車両上制御装置への制御用データの書込み方法。   (2) The control to the on-vehicle control device according to (1), wherein the uncompressed control data amount of the first type data transfer frame is a fixed value, and the set amount is the fixed value. Data writing method.

)前記第2種データ転送フレームは、前記不揮発メモリ(27)に格納するための前記制御用データを複数(n)に分割した格納用データと該格納用データが圧縮データか否を表す圧縮識別情報とを含む、各データ転送フレームであり、1つのデータ転送フレームの格納用データが圧縮データであって前記解凍した制御用データを前記不揮発メモリ(27)に格納すると解凍処理を中断し、次のデータ転送フレームを受信すると、該データ転送フレームの圧縮識別情報が圧縮を表すものであったときは、該データ転送フレームの格納用データを前記RAM(26)に書込んで中断した箇所から解凍処理を再開する、上記(1)又は(2)に記載の、車両上制御装置への制御用データの書込み方法。 ( 3 ) The second type data transfer frame indicates storage data obtained by dividing the control data to be stored in the nonvolatile memory (27) into a plurality (n) and whether the storage data is compressed data. Each data transfer frame including compression identification information. When the storage data of one data transfer frame is compressed data and the decompressed control data is stored in the nonvolatile memory (27), the decompression process is interrupted. When the next data transfer frame is received, if the compression identification information of the data transfer frame indicates compression, the storage location of the data transfer frame is written in the RAM (26), and The method for writing control data to the on-vehicle control device according to (1) or (2) above, wherein the decompression process is restarted.

これによれば、圧縮しても前記設定量を超える、サイズが大きい制御データでも、圧縮データを設定量に分割して各分割をデータ転送フレームとして車両上制御装置に転送して格納することができる。 According to this, be compressed more than the set amount, in the control data size is large, storing and transfer to the vehicle the control device divided and the divided compressed data in setting the amount of the data transfer frame Can do.

)データを一時書込むためのRAM(26)、ならびに、車上自動機器(1)の動作を制御するプログラムおよび該プログラムの実行において使用する参照データを含む制御用データ、を格納するための不揮発メモリ(27)を持ち、該不揮発メモリの制御用データを用いて、車上自動機器の状態を表す状態データを前記RAMに保持し該状態データに基づいて出力データを生成し該出力データにより該車上自動機器の動作を制御する、車両上制御装置(22)において、
前記不揮発メモリ(27)に格納するための前記制御用データおよび該制御用データの前記不揮発メモリ上の格納アドレスを指定するアドレスデータであって、非圧縮を表すものは該アドレスデータそのもの、圧縮をあらわすものは、前記不揮発メモリのアドレス範囲の外を表すものである圧縮識別情報を含む、前記制御用データが圧縮か非圧縮かに関わらず同一の固定サイズのデータ転送フレームを受信し、
該圧縮識別情報が圧縮を表すものでないと、該データ転送フレームの制御用データを前記不揮発メモリ(27)に格納し、
前記圧縮識別情報が圧縮を表すものであったときは、該データ転送フレームの制御用データを前記RAM(26)に書込んで解凍処理を開始し、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリ(27)に格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返す、ことを特徴とする車両上制御装置。
( 4 ) To store the RAM (26) for temporarily writing data, and the control data including the program for controlling the operation of the on-board automatic device (1) and the reference data used in the execution of the program A non-volatile memory (27), and using the control data of the non-volatile memory, the state data representing the state of the on-board automatic device is held in the RAM, and output data is generated based on the state data. In the on-vehicle control device (22) for controlling the operation of the on-vehicle automatic device by
The control data to be stored in the non-volatile memory (27) and the address data designating the storage address of the control data on the non-volatile memory, which represents non-compression are the address data itself and the compression to represent, the non compressed identification information is representative of the outside of the address range of the memory, including the control data receives the same data transfer frame of fixed size regardless of whether the compressed or non-compressed,
If the compression identification information does not represent compression, the control data of the data transfer frame is stored in the nonvolatile memory (27),
When the compression identification information represents compression, the control data of the data transfer frame is written into the RAM (26) to start the decompression process, and the decompressed control data is written into the RAM. the control data volume set amount reaches the interrupted decompression processing, and stores the control data and thawed the non-volatile memory (27), and resumes decompression processing from the interrupted position, the decompression and non The on-vehicle control device characterized in that the storage in the memory is repeated until all the compression control data of the data transfer frame is decompressed and stored in the nonvolatile memory.

これによれば、データ転送フレームが非圧縮制御データ転送用のものか圧縮制御データ転送用のものかに関わらず同一サイズであるので、同一の受信機能で受信してRAMに制御データを書込むことができる。データ転送フレームに圧縮識別情報があるので、これに基づいて解凍処理の要否を容易に選択できる。RAMに設定量の圧縮データと、解凍した設定量の制御データを記憶する空き容量があれば、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリ(27)に格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返すので、RAMオーバフローを生じない。この空き容量が保証されない場合には、該設定量は、RAMの空き容量の1/2以下に設定する。こうすると、RAMの記憶容量を格別に増やすことなく、第1種データ転送フレームを用いる非圧縮制御データの転送と不揮発メモリへの格納は勿論、第2種データ転送フレームを用いる圧縮した制御データの転送と不揮発メモリへの格納が可能である。RAMおよび不揮発メモリのデータ読み書き処理は格別に増えない。 According to this, since the data transfer frame is the same size regardless of whether those for compressed control data transfer or not for uncompressed control data transfer, control data in the RAM is received by the same receiving function Can be written. Since there is compression identification information in the data transfer frame, the necessity of decompression processing can be easily selected based on this. And the compressed data set amount in RAM, if there is free space for storing control data decompressed set amount, the writing and the control amount of data in the RAM of the control data decompression set amount, to reach thawing The processing is interrupted, the decompressed control data is stored in the nonvolatile memory (27), and the decompression process is resumed from the interrupted location, and the decompression and storage in the nonvolatile memory are controlled by compressing the data transfer frame. Since all the data is decompressed and stored in the non-volatile memory, no RAM overflow occurs. If this free space is not guaranteed, the set amount is set to ½ or less of the free space of the RAM. In this way, without increasing exceptionally the storage capacity of RAM, storage of the transfer and non-volatile memory of the non-compressed control data using a first type data transfer frame, of course, control compressed using the second type data transfer frame Data can be transferred and stored in non-volatile memory. The data read / write processing of the RAM and the nonvolatile memory is not particularly increased.

)前記第1種データ転送フレームの非圧縮の制御用データ量は固定値であり、前記設定量は、該固定値である、上記()に記載の、車両上制御装置への制御用データの書込み方法。 ( 5 ) The control to the on-vehicle control device according to ( 4 ), wherein the uncompressed control data amount of the first type data transfer frame is a fixed value, and the set amount is the fixed value. Data writing method.

)前記制御データの圧縮データを転送するためのデータ転送フレームは、前記不揮発メモリ(27)に格納するための前記制御用データの圧縮データを複数に分割した格納用データと該格納用データが圧縮データか否を表す圧縮識別情報とを含む、各データ転送フレームであって、1つのデータ転送フレームの格納用データが圧縮データであって前記解凍した制御用データを前記不揮発メモリ(27)に格納すると解凍処理を中断し、次のデータ転送フレームを受信すると、該データ転送フレームの圧縮識別情報が圧縮を表すものであったときは、該データ転送フレームの格納用データを前記RAM(26)に書込んで中断した箇所から解凍処理を再開する、上記(4)又は(6)に記載の車両上制御装置。 (6) the data transfer frame for transferring the compressed data of the control data, the nonvolatile memory (27) said control for storing data and said storage divided into a plurality of compressed data of the data to be stored in Each data transfer frame including compression identification information indicating whether or not the data is compressed data. The storage data of one data transfer frame is compressed data, and the decompressed control data is stored in the nonvolatile memory (27 When the next data transfer frame is received, if the compression identification information of the data transfer frame indicates compression, the storage data of the data transfer frame is stored in the RAM ( The on-vehicle control device according to ( 4) or (6 ), wherein the decompression process is restarted from the point where the writing was interrupted in 26).

本発明の他の目的および特徴は、図面を参照した以下の実施例の説明より明らかになろう。   Other objects and features of the present invention will become apparent from the following description of embodiments with reference to the drawings.

図1に、本発明の一実施例の車上制御装置を装備した変速制御システムの概要を示す。自動変速機1は、変速機構,該変速機構を駆動する油圧回路、および、該油圧回路の油圧の通流を制御するソレノイドバルブ群、を備える。変速機構は、エンジン3の回転動力を、車輪駆動軸回転駆動用の回転動力に変速しまた方向転換するものであって、トルクコンバータ、および、複数段の変速を行うための遊星歯車機構,クラッチおよびブレーキを含む。油圧回路は、オイルポンプ,多くの機械式バルブ,オリフィス,流体流路を含む。該流体流路に介挿されたソレノイドバルブ群の各ソレノイドバルブのオン(開)/オフ(閉)あるいは油圧切換えにより、油圧回路が、変速機構のクラッチ,ブレーキに油圧をオン(印加)/オフ(解放)する。これにより、自動変速機1のレンジ(パーキングP,後進R,ニュートラルN,前進D,S,L)が定まり、また、前,後進の速度段(第1速〜第6速)が定まる。ソレノイドバルブ群の中には、前進設定用のソレノイドバルブ,後進設定用のソレノイドバルブ,速度段およびロックアップ設定用のソレノイドバルブがある。   FIG. 1 shows an outline of a shift control system equipped with an on-vehicle control device according to an embodiment of the present invention. The automatic transmission 1 includes a speed change mechanism, a hydraulic circuit that drives the speed change mechanism, and a solenoid valve group that controls the flow of hydraulic pressure in the hydraulic circuit. The speed change mechanism changes the rotational power of the engine 3 to the rotational power for driving the wheel drive shaft and changes the direction, and includes a torque converter, and a planetary gear mechanism and a clutch for performing a multi-stage speed change. Including brakes. The hydraulic circuit includes an oil pump, many mechanical valves, an orifice, and a fluid flow path. When each solenoid valve of the solenoid valve group inserted in the fluid flow path is turned on (opened) / off (closed) or switched to hydraulic pressure, the hydraulic circuit turns on (applies) / offs hydraulic pressure to the clutch and brake of the transmission mechanism. (release. As a result, the range (parking P, reverse R, neutral N, forward D, S, L) of the automatic transmission 1 is determined, and forward and reverse speed stages (first speed to sixth speed) are determined. Among the solenoid valve group, there are a solenoid valve for forward setting, a solenoid valve for reverse setting, and a solenoid valve for setting the speed stage and lockup.

電子制御装置(ECU)2には、ブレーキ信号,スロットル開度信号,エンジン回転速度信号,車速信号、等の状態信号およびその他の、レンジおよび速度段決定に参照すべき状態信号が入力されると共に、レンジ選択キー群(電気スイッチ群)4の、運転者が操作したキーを表すレンジ指示信号が与えられる。ECU2は、状態信号およびレンジ指示信号に対応して、設定すべきレンジを決定しかつ速度段を決定して、決定したレンジおよび速度段に自動変速機1を設定するための、ソレノイドバルブ群の各ソレノイドバルブのオン(ソレノイドに通電)/オフ(非通電)を指示するソレノイド操作信号を生成して、自動変速機1に内蔵の、各ソレノイドに通電するソレノイドドライバ(通電回路)に出力する。これによって各ソレノイドバルブに通電が行われ、あるいは通電が停止される。   The electronic control unit (ECU) 2 receives a state signal such as a brake signal, a throttle opening signal, an engine speed signal, a vehicle speed signal, and other state signals to be referred to for determining the range and speed stage. A range instruction signal representing a key operated by the driver of the range selection key group (electric switch group) 4 is given. In response to the status signal and the range instruction signal, the ECU 2 determines a range to be set and a speed stage, and sets a solenoid valve group for setting the automatic transmission 1 to the determined range and speed stage. A solenoid operation signal for instructing on / off (non-energization) of each solenoid valve is generated and output to a solenoid driver (energization circuit) that energizes each solenoid built in the automatic transmission 1. This energizes each solenoid valve or stops energization.

ECU2は、エンジン3および自動変速機1から、エンジンの動作状態および自動変速機の動作状態を表す状態信号を受け、また、レンジ選択キー群4のレンジ選択信号を受け、自動変速機1の油圧回路の各種ソレノイドバルブのオン/オフ,油圧切換え等の指示信号(操作信号)を自動変速機1に出力する入出力インターフェース(I/F)21,車上コンピュータシステムの主コントローラである車上システムコントローラVSCCから車両の運転状態,走行状態を表す状態信号を受信し、自動変速機1の動作状態を表す変速機状態信号を車上システムコントローラVSCCに出力する入出力インターフェース(I/F)23、および、変速制御プログラムを用いて、入力状態信号に対応して操作出力データを生成してI/F21に出力する、本発明の一実施例の車上制御装置である、変速機コントローラ22で構成されている。   The ECU 2 receives from the engine 3 and the automatic transmission 1 a state signal indicating the operation state of the engine and the operation state of the automatic transmission, and also receives a range selection signal from the range selection key group 4 and receives the hydraulic pressure of the automatic transmission 1. Input / output interface (I / F) 21 for outputting instruction signals (operation signals) such as ON / OFF of various solenoid valves of the circuit and hydraulic pressure switching to the automatic transmission 1, and the on-board system which is the main controller of the on-board computer system An input / output interface (I / F) 23 for receiving a state signal indicating a driving state and a traveling state of the vehicle from the controller VSCC and outputting a transmission state signal indicating an operation state of the automatic transmission 1 to the on-board system controller VSCC; And, using the shift control program, operation output data is generated corresponding to the input state signal and output to the I / F 21 That a train control device according to one embodiment of the present invention, and a transmission controller 22.

操作出力データはI/F21において変速機操作信号にデコードされて自動変速機1のソレノイドドライバに出力される。本実施例では、変速機コントローラ22には、1チップマイクロコンピュータ(マイコン)を用いており、マイコン22の内部のプログラムメモリである不揮発メモリ(本実施例ではEEPROM27)に格納した変速制御プログラムに従って、入力状態信号に対応して制御出力データを生成してI/F21に出力する。   The operation output data is decoded into a transmission operation signal in the I / F 21 and output to the solenoid driver of the automatic transmission 1. In this embodiment, a one-chip microcomputer (microcomputer) is used for the transmission controller 22, and according to a shift control program stored in a nonvolatile memory (an EEPROM 27 in this embodiment) that is a program memory inside the microcomputer 22. Control output data is generated corresponding to the input state signal and output to the I / F 21.

図2に、マイコン22の主要な構成要素を示す。マイコン22には、CPU24,共通バス25,RAM26,不揮発メモリであるEEPROMおよび入出力ポート28がある。RAM26は、変速制御において、状態信号(入力信号)をI/F21が1バイト単位に集成した状態データを保持し、自動変速機1に出力する操作データおよび車上システムコントローラVSCCに出力する状態データ、等入出力データ、ならびに、演算処理,論理処理の中間過程のデータ、などのデータを一時保持するためのものである。   FIG. 2 shows main components of the microcomputer 22. The microcomputer 22 includes a CPU 24, a common bus 25, a RAM 26, a nonvolatile memory EEPROM and an input / output port 28. The RAM 26 holds state data in which the I / F 21 is aggregated in units of 1 byte in state control (input signal) in shift control, operation data output to the automatic transmission 1, and state data output to the on-board system controller VSCC. , And the like for temporarily storing data such as input / output data and intermediate process data of arithmetic processing and logic processing.

EEPROM27は、CPU24の動作プログラムおよび参照データを不揮発保持するものであり、本実施例では、上述の変速制御プログラムおよび該プログラムが利用する参照データ(変速特性を定める速度段境界データ,ロックアップ境界データ他)を格納(インストール)する「制御データ」書込み領域273の他に、ブートプログラム書込み領域271を、EEPROM27に設定している。以下において、変速制御プログラムおよび参照データを総括して「制御用データ」と表現する。図2上の表示は、CPU24がブートプログラムに従ってマイコン22の内部の不揮発メモリであるEEPROM27に、「制御用データ」をインストールするときのデータ書込み状態を示す。 The EEPROM 27 holds the operation program and reference data of the CPU 24 in a non-volatile manner. In this embodiment, the above-described shift control program and reference data used by the program (speed stage boundary data, lockup boundary data for determining shift characteristics) The boot program writing area 271 is set in the EEPROM 27 in addition to the “control data” writing area 273 for storing (installing) the others. Hereinafter, the shift control program and the reference data are collectively expressed as “control data”. The display on FIG. 2 shows a data writing state when the CPU 24 installs “control data” in the EEPROM 27 which is a nonvolatile memory inside the microcomputer 22 in accordance with the boot program.

マイコン22に「制御用データ」をインストールするときには、図2に示す「制御用データ」を組み込んだデータ転送フレームを格納した書込みツール29を、I/F23を介して入出力ポート28に接続する。本実施例では、書込みツール29からマイコン22にインストールする「制御用データ」を転送するためのデータ転送フレームに、第1種と第2種の2種類がある。   When the “control data” is installed in the microcomputer 22, the writing tool 29 storing the data transfer frame incorporating the “control data” shown in FIG. 2 is connected to the input / output port 28 via the I / F 23. In this embodiment, there are two types of data transfer frames for transferring “control data” to be installed in the microcomputer 22 from the writing tool 29, the first type and the second type.

第1種データ転送フレームは、本実施例では、該インストールを開始するときのRAM26の空き容量の1/2以下の固定量である、データを転送するサイズの「第1設定量」の非圧縮「制御用データ」の書込み領域の先頭に、EEPROM27の書込みアドレスデータ(3バイト)を含むプロトコルを付加したものである。   In the present embodiment, the first type data transfer frame is a non-compressed “first set amount” of a size for transferring data, which is a fixed amount of ½ or less of the free capacity of the RAM 26 when the installation is started. A protocol including write address data (3 bytes) of the EEPROM 27 is added to the head of the write area of “control data”.

第2種データ転送フレームは、「制御用データ」の圧縮データの「第1設定量」分の書込み領域の先頭に、EEPROM27の書込みアドレスデータ(3バイト)を含むプロトコルを付加し、しかも、3バイトアドレスデータの最上位バイトの最上位2ビットを「01」としたものである。このアドレスデータは、EEPROM27の書込み領域の最大アドレスを超えるアドレスすなわち記憶領域を外れるアドレスを表す。この場合の実アドレスは、圧縮データ内に格納されており、圧縮データを解凍して取得する。   In the second type data transfer frame, a protocol including the write address data (3 bytes) of the EEPROM 27 is added to the head of the write area for “first set amount” of the compressed data of “control data”. The most significant 2 bits of the most significant byte of the byte address data are set to “01”. This address data represents an address exceeding the maximum address of the writing area of the EEPROM 27, that is, an address outside the storage area. The real address in this case is stored in the compressed data, and is obtained by decompressing the compressed data.

第1種データ転送フレームで非圧縮の「制御データ」をマイコンに転送する場合は、書込みツール29において、非圧縮の「制御データ」の全体量が前記「設定量」を超える場合、全体量を「第2設定量」単位で分割し、各分割の非圧縮の第1種データ転送フレームを生成して書込みツール29で保持する。 When transferring "control data" uncompressed to the microcomputer in the first-type data transfer frame, in the writing tool 29, if the total amount of "control data" uncompressed exceeds the "set amount", the entire The amount is divided in units of “second set amount”, an uncompressed first type data transfer frame of each division is generated, and held by the writing tool 29.

第2種データ転送フレームで圧縮した「制御データ」をマイコンに転送する場合は、書込みツール29において、「制御データ」を圧縮して、圧縮データの全体量が「第1設定量」を超える場合、圧縮データを「第1設定量」単位で分割し、各分割の圧縮データの第2種データ転送フレームを生成して書込みツール29で保持する。図2は、このように第2種データ転送フレームを生成して書込みツール29で保持した状態を表す。 When transferring "control data" compressed by the second-type data transfer frame to the microcomputer, in the writing tool 29, to compress the "control data", the total amount of the compressed data is the "first set amount" When exceeding, the compressed data is divided in units of “first set amount”, the second type data transfer frame of the compressed data of each division is generated, and held by the writing tool 29. FIG. 2 shows a state in which the second type data transfer frame is generated and held by the writing tool 29 in this way.

電源オン直後に起動するブートプログラム271には、本実施例では、上述の第2種データ転送フレームの圧縮(凍結,符号化)した「制御データ」を解凍(伸張,復号)するプログラム272が含まれており、該解凍プログラム272を用いて圧縮「制御データ」を解凍する。すなわち、非圧縮の「制御データ」を復元する。 The boot program 271 to start power-on immediately after, in the present embodiment, the second type data transfer frame compression (freezing, encoding) of the above-mentioned thawed "control data" (decompression, decoding) program 272 which is included are, decompresses the compressed "control data" using the decompression program 272. That is, to restore the "control data" uncompressed.

図3に、CPU24の、「制御データ」インストール処理の概要を示す。電源オンにより動作電圧が印加されるとCPU24は、ブートプログラム271を起動し(ステップs1)、該ブートプログラムに従って、書込み接続ポート(I/O28の通信ポート)に書込みツールの接続があるか判定する(ステップs2)。なお、以下においては、括弧内には、ステップという語を省略してステップ識別符号のみを記す。 3 shows the CPU 24, the outline of the "control data" installation process. When the operating voltage is applied when the power is turned on, the CPU 24 activates the boot program 271 (step s1), and determines whether the writing tool is connected to the writing connection port (I / O 28 communication port) according to the boot program. (Step s2). In the following description, only the step identification code is described in parentheses without the word step.

書込みツール29が接続されていないと、CPU24は、制御プログラム書込み領域273の制御プログラムを起動し、該制御プログラムに従って変速制御を開始する(s2−s11−s12)。   If the writing tool 29 is not connected, the CPU 24 activates the control program in the control program writing area 273 and starts the shift control according to the control program (s2-s11-s12).

しかし、書込みツール29が接続されていた場合には、書込みツール29と通信して、第1番のデータ転送フレームを受信してRAM26に書込む(s2〜s4)。次に、受信フレームの3バイトの書込みアドレスデータの最上位バイトの最上位2ビットのデータ(圧縮識別情報)に応じて、それが「00」であると、第1番のデータ転送フレームの「制御データ」(非圧縮)をそのまま、EEPROM27の、該3バイトのアドレスデータが表すアドレス(始端アドレス)以降に書込む(s5,s6)。 However, if the writing tool 29 is connected, it communicates with the writing tool 29 to receive the first data transfer frame and write it into the RAM 26 (s2 to s4). Next, according to the most significant 2 bits data (compression identification information) of the most significant byte of the 3-byte write address data of the received frame, if it is “00”, the “ control data "a (non-compressed) as it is, the EEPROM 27, written after the address (start address) to which the 3-byte address data represents (s5, s6).

圧縮識別情報が「01」であった場合には、第1番のデータ転送フレームの「制御データ」(圧縮)を、解凍プログラムを用いて解凍してRAM26に解凍した「制御データ」を蓄積していき、蓄積量が前述の「設定量」以上になると、そこで解凍を中断して、EEPROM27の、該3バイトのアドレスデータの最上位2ビット(圧縮識別情報)を「00」と読み替えたデータが表すアドレス(始端アドレス)以降に書込む(s5−s7〜s9)。そして中断した次の圧縮データから解凍を再開し(s10−s7)、また、解凍した「制御データ」量が、「制御データ」を書込む単位のサイズの「第2設定量」以上になると、そこで解凍を中断して、EEPROM27の、先の制御データを書き込んだ最終アドレスの次のアドレス以降に書込む。このように、解凍した「制御データ」量が「第2設定量」以上になるごとに解凍を中断して解凍した「制御データ」のEEPROM27への書込みを行い、書込みを終えると解凍を再開する。



なお、第1設定量と第2設定量とは異なり、第1設定量は、データを転送するサイズであり、第2設定量は解凍した「制御データ」を書込む単位のサイズである。
If the compression identification information is "01", the "control data" in the data transfer frame of the No. 1 (compression), the "control data" thawed RAM26 unzip with decompression program When the accumulated amount exceeds the above-mentioned “set amount”, the decompression is interrupted and the most significant 2 bits (compression identification information) of the 3-byte address data in the EEPROM 27 are read as “00”. Is written after the address (starting address) indicated by the data (s5-s7-s9). Then resumes thawed from interrupted next compressed data (s10-s7), also the amount of thawed "control data" is "second setting amount" of the size of the unit writing the "control data" above made and, where it interrupts the thaw, of EEPROM27, written after the next address to the final address is written to control data. Thus, to write to EEPROM27 of thawed "control data" weight "control data" thawing to suspend decompression each time becomes "second set amount" or more, the thawing and finish writing Resume.



Unlike the first set amount and the second set amount, the first set amount is sized to transfer the data, the second set amount is the size of a unit of writing the "control data" thawing.

第1番のデータ転送フレームの圧縮「制御データ」の解凍を完了すると、そこで解凍を中断し、解凍済の制御データをEEPROM27に書込む。 Upon completion of the decompression of the compressed "control data" in the data transfer frame of No. 1, where it interrupts the thawed, writes the control data unzipped the EEPROM 27.

第1番のデータ転送フレームの「制御データ」の、EEPROM27への書込みを終了するとCPU24は、レディを書込みツール29に転送し、これに応答して書込みツール29が第2番のデータ転送フレームをマイコン22に送信する(s3,s4)。 Of the "control data" of the data transfer frame of No. 1, CPU24 Upon completion of the writing to the EEPROM27 transfers the ready to write tool 29, data transfer frame of the writing tool 29 in response No. 2 to this Is transmitted to the microcomputer 22 (s3, s4).

この第2番のデータ転送フレームの転送データが非圧縮である場合の、CPU24のデータ処理は、上述の第1番のデータ転送フレームを受信した場合の処理と同一である(s5,s6)。   The data processing of the CPU 24 when the transfer data of the second data transfer frame is uncompressed is the same as the processing when the first data transfer frame is received (s5, s6).

第2番のデータ転送フレームの「制御データ」が圧縮データであった場合は、中断していた解凍を、第2番のデータ転送フレームの「制御データ」を用いて再開し、解凍した「制御データ」は、第1番の(直前に受信した)データ転送フレームの「制御データ」のEEPROM27の書込み終了アドレスの次のアドレス以降に書込む。その他の処理は上述の第1番のデータ転送フレームを受信した場合の処理と同様である(s5−s7〜s10。 If "control data" in the No. 2 data transfer frame was compressed data, the decompression that has been suspended, and resumed with the "control data" in the data transfer frame of the No. 2, thawed "control data" is written on the following address of EEPROM27 writing end address of the "control data" of the (received immediately before) the data transfer frame of No. 1. The other processes are the same as those when the first data transfer frame is received (s5-s7 to s10).

第3番以降のデータ転送フレームの受信処理は上述の第2番のデータ転送フレームの受信処理と同一である。最後のデータ転送フレームの「制御データ」収納領域には、「制御データ」の後にエンド(終了)情報が書込まれている。CPU24は、この終了情報を検知すると、そこでRAMに蓄積している最後のデータ転送フレームの「制御データ」をEEPROM27へ書込み、書込み終了の後処理をしてから、制御プログラム書込み領域273の制御プログラムを起動し、該制御プログラムに従って変速制御を開始する(s10−s3−s11−s12)。 The reception process for the third and subsequent data transfer frames is the same as the reception process for the second data transfer frame. The "control data" storage area of the last data transfer frame, end (end) information after the "control data" is written. CPU24, upon detecting this end information, where writing the "control data" in the last data transfer frame which is stored in RAM to EEPROM 27, after the post-write end, the control of the control program writing area 273 The program is started and shift control is started according to the control program (s10-s3-s11-s12).

この実施例によれば、非圧縮で転送する第1種データ転送フレームと、圧縮して転送する第2種データ転送フレームとが、同一固定サイズであるので、同一のフレーム構成で、車両上制御装置に転送できる。データ転送フレームに圧縮識別情報があるので、これに基づいて解凍処理の要否を容易に選択できる。サイズが大きい制御データでも、n分割して各分割を第1番から第n番までのデータ転送フレームとしてマイコン22に転送して不揮発プログラムメモリであるEEPROM27に格納するので、RAM26には、1つのデータ転送フレームを書込み保持し、かつ、EEPROM27への書込み単位である設定量の、解凍した制御用データを保持する容量があればよく、全制御用データ(1〜n)の圧縮データと該圧縮データを解凍した全制御用データとを同時に保持するほどの、大きな記憶容量を要しない。RAM26およびEEPROM2727への同一データの読み書き処理は格別に増えない。 According to this embodiment, since the first type data transfer frame transferred uncompressed and the second type data transfer frame transferred after compression have the same fixed size, the on-vehicle control is performed with the same frame configuration. Can be transferred to the device. Since there is compression identification information in the data transfer frame, the necessity of decompression processing can be easily selected based on this. Sizes in large control data, because to transfer each divided by n divided to the microcomputer 22 as the data transfer frame from No. 1 to the n-th stored in EEPROM27 is a nonvolatile program memory, the RAM26 is 1 It is only necessary to have a capacity for writing and holding one data transfer frame and holding the decompressed control data in a set amount that is a unit for writing to the EEPROM 27. The compressed data of all control data (1 to n) and the data It does not require a large storage capacity to hold all the control data obtained by decompressing the compressed data at the same time. The read / write processing of the same data to the RAM 26 and the EEPROM 2727 does not increase significantly.

この実施例ではさらに、1つのデータ転送フレームの圧縮「制御データ」の解凍中でも、解凍した制御用データをRAM26に書込みかつ解凍した制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データをEEPROM27に格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該1つのデータ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返すので、RAMオーバフローを生じない。この実施例では該設定量を、RAM26の空き容量の1/2以下に設定しているので、RAM26の記憶容量を格別に増やすことなく、第1種データ転送フレームを用いる非圧縮制御データの転送とEEPROM27への格納は勿論、第2種データ転送フレームを用いる圧縮した制御データの転送とEEPROM27への解凍格納が可能である。 Moreover, in this embodiment, even during decompression of compressed "control data" of a data transfer frame, interrupted quantity control amount of data writing and decompress the control data thawed RAM26 is set, it reaches a decompression process Then, the decompressed control data is stored in the EEPROM 27, and the decompression process is restarted from the point where it was interrupted. This decompression and storage in the nonvolatile memory are performed by decompressing all the compression control data of the one data transfer frame. Since the process is repeated until the data is stored in the nonvolatile memory, no RAM overflow occurs. In this embodiment, since the set amount is set to ½ or less of the free capacity of the RAM 26, the data for the non-compression control data using the first type data transfer frame is not increased without particularly increasing the storage capacity of the RAM 26. storage to the transfer and EEPROM27 is of course possible thaw storage in transfer and EEPROM27 of the control data compressed using the second type data transfer frame.

本発明の1実施例の車上制御装置(22)を装備した変速制御システムの概要を示すブロック図である。It is a block diagram which shows the outline | summary of the transmission control system equipped with the on-vehicle control apparatus (22) of one Example of this invention. 図1に示すマイコン22の主要な構成要素を示すブロック図である。It is a block diagram which shows the main components of the microcomputer 22 shown in FIG. 図2に示すCPU24の、EEPROM27に格納されたプログラムに従って実施する制御の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the control implemented according to the program stored in EEPROM27 of CPU24 shown in FIG.

25:共通バス 25: Common bus

Claims (6)

データを一時書込むためのRAM、ならびに、車上自動機器の動作を制御するプログラムおよび該プログラムの実行において使用する参照データを含む制御用データ、を格納するための不揮発メモリを持ち、該不揮発メモリの制御用データを用いて、車上自動機器の状態を表す状態データを前記RAMに保持し該状態データに基づいて出力データを生成し該出力データにより該車上自動機器の動作を制御する車両上制御装置の、前記不揮発メモリに前記制御用データを格納する、制御用データ書込み方法において、
前記不揮発メモリに格納するための非圧縮の前記制御用データおよび該制御用データの前記不揮発メモリ上の格納アドレスを指定するアドレスデータであって非圧縮を表す圧縮識別情報を含む固定サイズの第1種データ転送フレーム、又は、前記不揮発メモリに格納するための圧縮した前記制御用データおよび前記不揮発メモリのアドレス範囲の外を表すアドレスデータであって圧縮を表す圧縮識別情報を含む、前記固定サイズと同一サイズの第2種データ転送フレーム、を受信し、
受信したデータ転送フレームの圧縮識別情報が非圧縮を表すときは、該データ転送フレームの制御用データを前記不揮発メモリに格納し、
受信したデータ転送フレームの圧縮識別情報が圧縮を表すときは、該データ転送フレームの制御用データを前記RAMに書込んで解凍処理を開始し、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリに格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返す、
ことを特徴とする、車両上制御装置への制御用データの書込み方法。
A RAM for temporarily writing data, and a non-volatile memory for storing control data including a program for controlling the operation of the on-board automatic device and reference data used in the execution of the program. A vehicle that holds state data representing the state of an on-board automatic device in the RAM, generates output data based on the state data, and controls the operation of the on-board automatic device using the output data. In the control data writing method of storing the control data in the nonvolatile memory of the upper control device,
Non-compressed control data to be stored in the non-volatile memory, and address data for specifying a storage address of the control data on the non-volatile memory , the first having a fixed size including compression identification information representing non-compression The fixed size including a seed data transfer frame, or compressed control data to be stored in the non-volatile memory, and address data that represents outside the address range of the non-volatile memory and includes compression identification information representing compression Receiving the second type data transfer frame of the same size,
When the compression identification information of the received data transfer frame represents non-compression, the control data of the data transfer frame is stored in the nonvolatile memory,
When the compression identification information of the received data transfer frame indicates compression, the control data of the data transfer frame is written into the RAM, the decompression process is started, the decompressed control data is written into the RAM, and the control is performed. When the amount of data reaches the set amount, the decompression process is interrupted, the decompressed control data is stored in the nonvolatile memory, and the decompression process is restarted from the interrupted location. Repeat until all data for compression control of the data transfer frame is decompressed and stored in the nonvolatile memory,
A method of writing control data to the on-vehicle control device.
前記第1種データ転送フレームの非圧縮の制御用データ量は固定値であり、前記設定量は、該固定値である、請求項1に記載の、車両上制御装置への制御用データの書込み方法。   2. The control data write to the on-vehicle controller according to claim 1, wherein the uncompressed control data amount of the first type data transfer frame is a fixed value, and the set amount is the fixed value. Method. 前記第2種データ転送フレームは、前記不揮発メモリに格納するための前記制御用データを圧縮したデータを複数に分割した格納用データと前記圧縮識別情報とを含む、各データ転送フレームであり、1つのデータ転送フレームの格納用データが圧縮データであって前記解凍した制御用データを前記不揮発メモリに格納すると解凍処理を中断し、次のデータ転送フレームを受信すると、該データ転送フレームの圧縮識別情報が圧縮を表すものであったときは、該データ転送フレームの格納用データを前記RAMに書込んで中断した箇所から解凍処理を再開する、請求項1又は2に記載の、車両上制御装置への制御用データの書込み方法。 The second type data transfer frame comprising said compressed the control data to be stored in non-volatile memory data and storage data divided into a plurality of said compression identification information is the data transfer frame, 1 When the storage data of one data transfer frame is compressed data and the decompressed control data is stored in the nonvolatile memory, the decompression process is interrupted, and when the next data transfer frame is received, the compression identification information of the data transfer frame When the data represents compression, the storage data of the data transfer frame is written in the RAM, and the decompression process is resumed from the point where it was interrupted, to the on-vehicle control device according to claim 1 or 2 . Method of writing control data. データを一時書込むためのRAM、ならびに、車上自動機器の動作を制御するプログラムおよび該プログラムの実行において使用する参照データを含む制御用データ、を格納するための不揮発メモリを持ち、該不揮発メモリの制御用データを用いて、車上自動機器の状態を表す状態データを前記RAMに保持し該状態データに基づいて出力データを生成し該出力データにより該車上自動機器の動作を制御する、車両上制御装置において、
前記不揮発メモリに格納するための前記制御用データおよび該制御用データの前記不揮発メモリ上の格納アドレスを指定するアドレスデータであって、非圧縮を表すものは該アドレスデータそのもの、圧縮をあらわすものは、前記不揮発メモリのアドレス範囲の外を表すものである圧縮識別情報を含む、前記制御用データが圧縮か非圧縮かに関わらず同一の固定サイズのデータ転送フレームを受信し、
該圧縮識別情報が圧縮を表すものでないと、該データ転送フレームの制御用データを前記不揮発メモリに格納し、
前記圧縮識別情報が圧縮を表すものであったときは、該データ転送フレームの制御用データを前記RAMに書込んで解凍処理を開始し、解凍した制御用データを前記RAMに書込みかつ該制御データ量が設定量、に達すると解凍処理を中断して、解凍した制御用データを前記不揮発メモリに格納し、そして中断した箇所から解凍処理を再開し、この解凍と不揮発メモリへの格納を、該データ転送フレームの圧縮制御用データを全て解凍して前記不揮発メモリに格納するまで繰り返す、ことを特徴とする車両上制御装置。
A RAM for temporarily writing data, and a non-volatile memory for storing control data including a program for controlling the operation of the on-board automatic device and reference data used in the execution of the program. Using the control data, the state data representing the state of the on-board automatic device is held in the RAM, output data is generated based on the state data, and the operation of the on-board automatic device is controlled by the output data. In the on-vehicle control device,
The control data to be stored in the non-volatile memory and the address data for specifying the storage address of the control data on the non-volatile memory, the data representing non-compression are the address data itself, and the one representing compression , the non-compression identifier information is representative of the outside of the address range of the memory, including the control data receives the data transfer frame of the same fixed size regardless of whether the compressed or non-compressed,
If the compression identification information does not represent compression, the control data of the data transfer frame is stored in the nonvolatile memory,
When said compression identification information is a representative of a compression, the data control data transfer frame starts decompression processing is written to the RAM, the write and the control in the RAM of the control data thawed When the data amount reaches the set amount, the decompression process is interrupted, the decompressed control data is stored in the nonvolatile memory, and the decompression process is restarted from the interrupted location. An on-vehicle control device characterized by repeating until all the compression control data of the data transfer frame is decompressed and stored in the nonvolatile memory.
前記第1種データ転送フレームの非圧縮の制御用データ量は固定値であり、前記設定量は、該固定値である、請求項に記載の車両上制御装置。 The on-vehicle control device according to claim 4 , wherein an uncompressed control data amount of the first type data transfer frame is a fixed value, and the set amount is the fixed value. 前記制御データの圧縮データを転送するためのデータ転送フレームは、前記不揮発メモリに格納するための前記制御用データの圧縮データを複数に分割した格納用データと該格納用データが圧縮データか否を表す圧縮識別情報とを含む、各データ転送フレームであって、1つのデータ転送フレームの格納用データが圧縮データであって前記解凍した制御用データを前記不揮発メモリに格納すると解凍処理を中断し、次のデータ転送フレームを受信すると、該データ転送フレームの圧縮識別情報が圧縮を表すものであったときは、該データ転送フレームの格納用データを前記RAMに書込んで中断した箇所から解凍処理を再開する、請求項4又は5に記載の車両上制御装置。 Wherein the data transfer frame for transferring the compressed data of the control data, the absence nonvolatile storage data compressed data of the control data is divided into a plurality for storage in memory and said storage data or compressed data Each of the data transfer frames including the compression identification information representing the data, and when the storage data of one data transfer frame is the compressed data and the decompressed control data is stored in the nonvolatile memory, the decompression process is interrupted. When the next data transfer frame is received, if the compression identification information of the data transfer frame indicates compression, the storage data of the data transfer frame is written in the RAM and decompressed from the interrupted point. The on-vehicle control device according to claim 4 , wherein the control is resumed.
JP2008078682A 2008-03-25 2008-03-25 Method of writing control data to on-vehicle control device and on-vehicle control device Expired - Fee Related JP5120010B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2008078682A JP5120010B2 (en) 2008-03-25 2008-03-25 Method of writing control data to on-vehicle control device and on-vehicle control device
PCT/JP2009/053248 WO2009119224A1 (en) 2008-03-25 2009-02-24 Method for writing control data into on-vehicle controller and on-vehicle controller
CN200980101033.2A CN101868378B (en) 2008-03-25 2009-02-24 Method for writing control data to on-vehicle control device and on-vehicle control device
DE112009000047.9T DE112009000047B4 (en) 2008-03-25 2009-02-24 A method for writing control data in an on-vehicle control unit, and the on-vehicle control unit
US12/409,152 US7987300B2 (en) 2008-03-25 2009-03-23 Method of writing control data into on-board vehicle control unit and the control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008078682A JP5120010B2 (en) 2008-03-25 2008-03-25 Method of writing control data to on-vehicle control device and on-vehicle control device

Publications (2)

Publication Number Publication Date
JP2009227248A JP2009227248A (en) 2009-10-08
JP5120010B2 true JP5120010B2 (en) 2013-01-16

Family

ID=41243147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008078682A Expired - Fee Related JP5120010B2 (en) 2008-03-25 2008-03-25 Method of writing control data to on-vehicle control device and on-vehicle control device

Country Status (1)

Country Link
JP (1) JP5120010B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5585941B2 (en) * 2011-05-10 2014-09-10 株式会社デンソー program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129079A (en) * 1993-11-04 1995-05-19 Fuji Electric Co Ltd How to install the programming loader
JP2001034601A (en) * 1999-07-21 2001-02-09 Nec Ic Microcomput Syst Ltd Method of writing data to nonvolatile memory built into one-chip microcomputer
JP2008056193A (en) * 2006-09-04 2008-03-13 Nippon Seiki Co Ltd Vehicular display unit

Also Published As

Publication number Publication date
JP2009227248A (en) 2009-10-08

Similar Documents

Publication Publication Date Title
WO2009119224A1 (en) Method for writing control data into on-vehicle controller and on-vehicle controller
US9792044B2 (en) Decompression history buffer read/write pipelines
US8928681B1 (en) Coalescing to avoid read-modify-write during compressed data operations
US20140108704A1 (en) Data decompression method for a controller equipped with limited ram
US6915413B2 (en) Micro-controller for reading out compressed instruction code and program memory for compressing instruction code and storing therein
CN110494845A (en) Control device, program update system, program update method
CN101266585B (en) Direct storage access controller data-transmission system and method
JP5120009B2 (en) Method of writing control data to on-vehicle control device and on-vehicle control device
JP5120010B2 (en) Method of writing control data to on-vehicle control device and on-vehicle control device
CN101452371B (en) Method for managing data from host to optical disk and its optical storage system
CN103678200A (en) Data processing apparatus, method for processing data, and computer readable recording medium
JP3201716B2 (en) Computer equipment
US6647480B1 (en) Data block update utilizing flash memory having unused memory size smaller than the data block size
US6621428B1 (en) Entropy codec for fast data compression and decompression
JP4549396B2 (en) Vehicle control device
JP2006190132A (en) Control program download device
JP5226341B2 (en) Channel device, information processing system, and data transfer method
CN106030531A (en) Increase in available flash memory for microcontrollers
KR100502455B1 (en) Progammable controller
US20080250167A1 (en) Input/Output Device For Memory Card and Control Method Therefor
US8823717B2 (en) Software constants file
JP5079027B2 (en) Electronic control unit
JP2010086321A (en) Memory control system
EP2287732A1 (en) Method, apparatus and computer program for memory retention
US8427495B1 (en) Coalescing to avoid read-modify-write during compressed data operations

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120417

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120618

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121008

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

Free format text: PAYMENT UNTIL: 20151102

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees