JPH10254694A - Data rewrite device and method - Google Patents

Data rewrite device and method

Info

Publication number
JPH10254694A
JPH10254694A JP5803697A JP5803697A JPH10254694A JP H10254694 A JPH10254694 A JP H10254694A JP 5803697 A JP5803697 A JP 5803697A JP 5803697 A JP5803697 A JP 5803697A JP H10254694 A JPH10254694 A JP H10254694A
Authority
JP
Japan
Prior art keywords
program
data rewriting
control information
data
firmware
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.)
Abandoned
Application number
JP5803697A
Other languages
Japanese (ja)
Inventor
Takahiro Mine
貴宏 嶺
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP5803697A priority Critical patent/JPH10254694A/en
Publication of JPH10254694A publication Critical patent/JPH10254694A/en
Abandoned legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make the change of a firmware be on-line. SOLUTION: At the time of changing the firmware recorded in the nonvolatile flash memory 12 of a microcomputer system 10, a host computer 30 controls an MPU 11 by a series of control information through a transmission cable 41 and a driver 13 and makes a transmitted program be written to the flash memory 12 as a new firmware.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、電子機器の動作
を制御するプログラムを書き換えるデータ書き換え装置
及び方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a data rewriting apparatus and method for rewriting a program for controlling the operation of an electronic device.

【0002】[0002]

【従来の技術】従来、電子機器等の制御に、少なくとも
MPUとRAM等の周辺回路を備えて独立してプログラ
ムを実行するいわゆるマイコンシステムが提供されてい
る。このようなマイコンシステムにおいては、一定の手
順を繰り返すことが多いので、外部記憶装置からプログ
ラムを読み込まずに、予めROM等にプログラムを組み
込んでハードウエア化したいわゆるファームウエアが用
いられることがある。
2. Description of the Related Art Conventionally, there has been provided a so-called microcomputer system which includes at least peripheral circuits such as an MPU and a RAM for independently executing a program for controlling an electronic device or the like. In such a microcomputer system, since a certain procedure is often repeated, so-called firmware in which a program is previously incorporated in a ROM or the like to be implemented as hardware without reading the program from an external storage device is used.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述のよう
なファームウエアを変更するには、次のような手順を踏
む必要があった。すなわち、ファームウエアを備える装
置のカバーを外して基板を取り出し、この基板からファ
ームウエアが入ったROM等のメモリを外し、この基板
に新しいファームウエアが入ったメモリを実装し、上記
装置に基板を戻してカバーを取り付ける。また、ファー
ムウエアを備える装置の設置されている場所まで作業者
が移動する必要があった。
However, in order to change the firmware as described above, it was necessary to take the following procedure. That is, the cover of the device having the firmware is removed, the substrate is taken out, the memory such as the ROM containing the firmware is removed from the substrate, the memory containing the new firmware is mounted on the substrate, and the substrate is mounted on the device. Put it back and attach the cover. Further, the operator has to move to a place where the device having the firmware is installed.

【0004】ここで、例えばファームウエアを備える装
置1台のファームウエアの交換に10分、ファームウエ
アを備える装置の設置場所へ移動する時間を5分とする
と、300台の装置のファームウエアの変更の所用時間
は75時間にも達する。実際には、この所用時間は対称
物の状況により大きく変化するので、予測は困難であ
る。
[0004] For example, if it is assumed that 10 minutes are required to replace the firmware of one device having firmware and 5 minutes are required to move to the installation location of the device having firmware, the firmware of 300 devices is changed. It can take up to 75 hours. In practice, the required time varies greatly depending on the situation of the symmetrical object, and is difficult to predict.

【0005】この発明は、上述の課題を解決するために
なされるもので、作業者がファームウエアを備える装置
の設置場所に赴く必要がなく、ファームウエアの変更を
容易に行うことができるデータ書き換え装置及び方法を
提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and does not require an operator to go to a place where an apparatus having firmware is installed, so that data rewriting can be easily performed. It is an object to provide an apparatus and a method.

【0006】[0006]

【発明を解決するための手段】上述の目的を達成するた
めに、この発明に係るデータ書き換え装置は、電子機器
の動作を制御するプログラムを記憶する記憶手段と、上
記記憶手段に対して外部から伝送されてくるプログラム
及び制御情報を入出力する入出力手段と、上記入出力手
段を介して外部から伝送されて来た上記制御情報により
上記記憶手段を制御して、上記プログラムを記憶させる
制御手段とを備えるものである。
In order to achieve the above object, a data rewriting device according to the present invention comprises a storage unit for storing a program for controlling the operation of an electronic device, and an external storage unit for the storage unit. Input / output means for inputting / outputting a transmitted program and control information, and control means for controlling the storage means with the control information transmitted from the outside via the input / output means to store the program Is provided.

【0007】上記データ書き換え装置においては、上記
記憶手段は、電気的な書き込みと消去ができる不揮発性
メモリであるものである。
In the data rewriting device, the storage means is a nonvolatile memory capable of electrically writing and erasing.

【0008】上記データ書き換え装置においては、上記
入出力手段は、有線通信により伝送されて来た上記プロ
グラム及び制御情報を入出力するものである。また、上
記データ書き換え装置においては、上記入出力手段は、
無線通信により伝送されて来た上記プログラム及び制御
情報を入出力するものである。
In the data rewriting device, the input / output means inputs / outputs the program and control information transmitted by wire communication. Further, in the data rewriting device, the input / output means includes:
It is for inputting and outputting the program and control information transmitted by wireless communication.

【0009】また、上記データ書き換え装置において
は、上記入出力手段は、ホストマシーンとリアルタイム
で通信路が確立したオンラインにより上記プログラム及
び制御情報を入出力するものである。
In the data rewriting device, the input / output means inputs and outputs the program and the control information online with a communication path established with the host machine in real time.

【0010】さらに、上記データ書き換え装置におい
て、上記電子機器は、バッテリー充電装置であるもので
ある。
Further, in the data rewriting device, the electronic device is a battery charging device.

【0011】上述の目的を達成するために、この発明に
係るデータ書き換え方法は、電子機器の動作を制御する
プログラムを記憶する記憶手段に対して外部から伝送さ
れて来るプログラム及び制御情報を入出力し、上記制御
情報により上記記憶手段を制御して、上記データを記憶
させるものである。
[0011] In order to achieve the above object, a data rewriting method according to the present invention provides a method for inputting / outputting a program and control information transmitted from outside to a storage means for storing a program for controlling the operation of an electronic device. Then, the storage means is controlled by the control information to store the data.

【0012】上記データ書き換え方法においては、上記
記憶手段は、電気的な書き込みと消去ができる不揮発性
メモリであるものである。
In the data rewriting method, the storage means is a nonvolatile memory capable of electrically writing and erasing.

【0013】上記データ書き換え方法においては、上記
プログラム及び制御情報は有線通信により伝送されて来
るものである。また、上記データ書き換え方法において
は、上記プログラム及び制御情報は無線通信により伝送
されて来るものである。
In the data rewriting method, the program and the control information are transmitted by wire communication. In the data rewriting method, the program and the control information are transmitted by wireless communication.

【0014】また、上記データ書き換え方法は、上記プ
ログラム及び制御情報はホストマシーンとリアルタイム
で通信路が確立したオンラインにより伝送されて来るも
のである。
In the above data rewriting method, the program and the control information are transmitted on-line with a communication path established in real time with the host machine.

【0015】さらに、上記データ書き換え方法におい
て、上記電子機器は、バッテリー充電装置であるもので
ある。
Further, in the data rewriting method, the electronic device is a battery charger.

【0016】[0016]

【発明の実施の形態】以下、図面を参照しながら、この
発明に係るデータ書き換え装置及び方法を説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a data rewriting apparatus and method according to the present invention will be described with reference to the drawings.

【0017】この発明に係るデータ書き換え装置は、図
1に示すように、マイクロコンピュータ(以下、マイコ
ンという。)システム10と、ホストコンピュータ30
とから構成され、これらは、通信ケーブル41によって
互いに接続されている。
As shown in FIG. 1, a data rewriting device according to the present invention includes a microcomputer (hereinafter referred to as a microcomputer) system 10 and a host computer 30.
These are connected to each other by a communication cable 41.

【0018】上記マイコンシステム10は、一連の制御
情報に基づいてこのマイコンシステム10の各部の制御
を行うマイクロプロセッサーユニット(Microprocessor
unit; MPU)11と、マイコンシステム10を制御する
ためのプログラムであるファームウエアを保持するフラ
ッシュメモリ12と、通信ケーブル41を介してホスト
コンピュータ30とプログラム用のデータ及び制御情報
の受け渡しをするドライバ13と、フラッシュメモリ1
2に格納されたプログラムを一時的に記憶するRAM1
4とから構成される。
The microcomputer system 10 controls each part of the microcomputer system 10 based on a series of control information.
unit; MPU) 11, a flash memory 12 for holding firmware as a program for controlling the microcomputer system 10, and a driver for transferring program data and control information to and from the host computer 30 via a communication cable 41. 13 and flash memory 1
RAM1 for temporarily storing a program stored in the RAM 2
And 4.

【0019】上記MPU11は、CPU及び周辺ICを
含み、一連の制御コードによって記述されるプログラム
に従ってこのマイコンシステム10全体を制御する。
The MPU 11 includes a CPU and peripheral ICs, and controls the entire microcomputer system 10 according to a program described by a series of control codes.

【0020】そして、必要な場合にはマイコンシステム
10によって制御される電子機器のデータを上記RAM
14に格納し、また、上記ドライバ13を介してホスト
コンピュータ30に伝送する。このMPU11は、バス
ラインにて上記フラッシュメモリ12、ドライバ13及
びRAM14と接続されている。
If necessary, the data of the electronic device controlled by the microcomputer system 10 is stored in the RAM.
14 and transmitted to the host computer 30 via the driver 13. The MPU 11 is connected to the flash memory 12, the driver 13, and the RAM 14 via a bus line.

【0021】上記フラッシュメモリ12は、電気的に書
き込み及び消去ができ、記憶した内容を電源電圧の有無
に関わらず保持する不揮発性メモリである。このフラッ
シュメモリ12は、このマイコンシステム10を制御す
るプログラムであるファームウエアを格納する。このフ
ラッシュメモリは、上記MPU11と、ドライバ13
と、RAM14とバスラインにて接続されている。
The flash memory 12 is a non-volatile memory that can be electrically written and erased and retains stored contents regardless of the presence or absence of a power supply voltage. The flash memory 12 stores firmware which is a program for controlling the microcomputer system 10. The flash memory includes the MPU 11 and the driver 13
And the RAM 14 via a bus line.

【0022】ここで、図2に示すように、このフラッシ
ュメモリ12のメモリマップにおいては、リセットによ
りプログラムが新たに開始された際の一連の手順を示す
スタートアッププログラム12aと、上記RAM14に
コピーされて実行されるダウンロードプログラム12c
と、このダウンロードプログラム12bと同一の予備プ
ログラム12bとが記憶されている。
Here, as shown in FIG. 2, in the memory map of the flash memory 12, a start-up program 12a showing a series of procedures when a program is newly started by a reset, and copied to the RAM 14 Download program 12c to be executed
And a preliminary program 12b that is the same as the download program 12b.

【0023】上記ドライバ13は、マイコンシステム1
0から通信ケーブル41を介してホストコンピュータ3
0へこのマイコンシステム10が制御する電子機器のデ
ータの伝送、逆に、ホストコンピュータ30から通信ケ
ーブル41を介してこのマイコンシステム10へ伝送さ
れるプログラム用データ及び制御情報の受け取りを行
う。例えば、上記通信ケーブル41から各種形式にて伝
送されて来る信号をこのマイコンシステム10の内部の
表現に変換し、また、この逆も行う。このドライバ13
は、上記MPU11、フラッシュメモリ12及びRAM
14とはバスラインで、上記ホストコンピュータ30と
は通信ケーブル41で接続されている。
The driver 13 includes the microcomputer system 1
0 through the communication cable 41 to the host computer 3
0, transmission of data of the electronic device controlled by the microcomputer system 10 and, conversely, reception of program data and control information transmitted from the host computer 30 to the microcomputer system 10 via the communication cable 41. For example, a signal transmitted from the communication cable 41 in various formats is converted into a representation inside the microcomputer system 10, and vice versa. This driver 13
Are the MPU 11, the flash memory 12, and the RAM
Reference numeral 14 denotes a bus line, which is connected to the host computer 30 via a communication cable 41.

【0024】上記RAM14は、図3に示すように、プ
ログラムの実行時にフラッシュメモリ12からダウンロ
ードプログラム12cまたは予備プログラム12bが実
行プログラム14aとして読み込まれ、他の領域は変数
を格納する変数領域14bとなる。このRAM14は、
上記MPU11と、フラッシュメモリ12と、ドライバ
13とバスラインにて接続されている。
As shown in FIG. 3, the RAM 14 reads a download program 12c or a preliminary program 12b from the flash memory 12 as an execution program 14a when a program is executed, and the other area becomes a variable area 14b for storing variables. . This RAM 14
The MPU 11, the flash memory 12, and the driver 13 are connected by a bus line.

【0025】上記ホストコンピュータ30は、上記マイ
コンシステム10に通信ケーブル41を介してプログラ
ム用データ及び制御情報を与える。また、所定の場合に
は、上記通信ケーブルを介してマイコンシステム10か
ら伝送されるこのマイコンシステム10が制御する電子
機器のデータを受け取る。
The host computer 30 provides program data and control information to the microcomputer system 10 via a communication cable 41. Further, in a predetermined case, data of an electronic device controlled by the microcomputer system 10 transmitted from the microcomputer system 10 via the communication cable is received.

【0026】上記通信ケーブル41は、上記ホストコン
ピュータ30からマイコンシステム10に伝送されるプ
ログラム用データ及び制御情報を伝送し、逆に、上記マ
イコンシステム10からホストコンピュータ30にこの
マイコンシステム10の制御する電子機器のデータを伝
送する。
The communication cable 41 transmits program data and control information transmitted from the host computer 30 to the microcomputer system 10, and conversely controls the microcomputer system 10 from the microcomputer system 10 to the host computer 30. Transmits electronic device data.

【0027】以上述べたように、この発明に係るデータ
書き換え装置は、被制御対象である電子機器の動作を制
御するプログラムを記憶するフラッシュメモリ12と、
上記フラッシュメモリ12に対してホストコンピュータ
30から供給されるプログラム用のデータ及び制御コー
ドを伝送する通信ケーブル41とドライバ13と、ホス
トコンピュータ30から転送されてきた上記制御コード
によりフラッシュメモリ12を制御して、上記データを
記憶させるMPU11とを備えるものである。
As described above, the data rewriting device according to the present invention comprises: a flash memory 12 for storing a program for controlling the operation of an electronic device to be controlled;
The flash memory 12 is controlled by the communication cable 41 for transmitting program data and control code supplied from the host computer 30 to the flash memory 12 and the driver 13, and the control code transferred from the host computer 30. And an MPU 11 for storing the data.

【0028】また、この発明に係るデータ書き換え方法
は、被制御対象である電子機器の動作を制御するプログ
ラムを記憶するフラッシュメモリ12に対してホストコ
ンピュータ30から伝送されてくるプログラム用のデー
タ及び制御コードを伝送ケーブル41とドライバ13を
介して受け取り、MPU11はホストコンピュータ30
から転送されてきた上記制御コードにより上記フラッシ
ュメモリ12を制御して、上記プログラム用データを記
憶させるものである。
Further, the data rewriting method according to the present invention provides a method for controlling data and program data transmitted from a host computer 30 to a flash memory 12 for storing a program for controlling the operation of an electronic device to be controlled. The MPU 11 receives the code via the transmission cable 41 and the driver 13, and the MPU 11
The flash memory 12 is controlled by the control code transferred from the flash memory 12 to store the program data.

【0029】次に、この発明に係るデータ書き換え装置
及び方法をフローチャートによって説明する。
Next, a data rewriting apparatus and method according to the present invention will be described with reference to flowcharts.

【0030】上記データ書き換え装置は、例えば電源立
ち上げ時のリセットの際に、図4に示すように、フラッ
シュメモリ12に記録されているスタートアッププログ
ラム12aの手順に従って作業を実行する。
The above-mentioned data rewriting device performs an operation in accordance with the procedure of the start-up program 12a recorded in the flash memory 12, as shown in FIG.

【0031】即ち、ステップS201においては、上記
フラッシュメモリ12に記録されているダウンロードプ
ログラム12cが破壊されていないか、正常であるかど
うかを確認する。確認の結果、ダウンロードプログラム
12cが正常な場合には“YES”として、ステップS
202に進み、そうでない場合には“NO”として、ス
テップS203に進む。
That is, in step S201, it is checked whether the download program 12c recorded in the flash memory 12 has been destroyed or is normal. As a result of the confirmation, if the download program 12c is normal, the determination is “YES” and the step S
The process proceeds to step 202, otherwise, “NO” is determined and the process proceeds to step S203.

【0032】ステップS202においては、フラッシュ
メモリに記憶されたダウンロードプログラム12cをR
AM14に実行プログラム14aとしてコピーする。こ
のコピーが完了すると、ステップS204に進む。
In step S202, the download program 12c stored in the flash memory is
It is copied to the AM 14 as an execution program 14a. When this copy is completed, the process proceeds to step S204.

【0033】ステップS203においては、ステップS
201における確認の結果、フラッシュメモリ12上の
ダウンロードプログラム12cが破壊されていることが
判明したので、フラッシュメモリ12上に記憶されてい
るダウンロードプログラム12cの予備プログラム12
bをRAM14にコピーする。このコピーが完了する
と、ステップS204に進む。
In step S203, step S203
As a result of the confirmation at 201, it has been found that the download program 12c on the flash memory 12 has been destroyed.
b is copied to the RAM 14. When this copy is completed, the process proceeds to step S204.

【0034】ステップS204においては、RAM14
上に転送されたダウンロードプログラム12cまたは予
備プログラム12bが実行プログラム14aとなり、こ
の実行プログラムの先頭にポインタが設定される。
In step S204, the RAM 14
The download program 12c or the preliminary program 12b transferred above becomes the execution program 14a, and a pointer is set at the head of the execution program.

【0035】続いて、RAM14の実行プログラム14
aに係る一連の手順を説明する。この実行プログラム
は、フラッシュメモリ12からRAM14にコピーされ
たダウンロードプログラム12c又は予備プログラム1
2bである。
Subsequently, the execution program 14 of the RAM 14
A series of procedures according to a will be described. The execution program is the download program 12c copied from the flash memory 12 to the RAM 14 or the preliminary program 1
2b.

【0036】図5に示されているように、ステップS1
01においては、ホストコンピュータ30からプログラ
ム用の制御情報の伝送を所定時間内に受信した場合には
“YES”としてステップS103に進み、受信しなか
った場合には“NO”としてステップS102に進む。
As shown in FIG. 5, step S1
In step 01, if the transmission of the control information for the program from the host computer 30 is received within a predetermined time, the process proceeds to step S103 as “YES”, and if not, the process proceeds to step S102 as “NO”.

【0037】ステップS102においては、マイコンシ
ステム10の通常処理、例えばこのマイコンシステム1
0の被制御対象である電子機器に対して一定の手順の処
理を施し、その後ポインタは実行プログラム14aの先
頭アドレスに飛ぶ。
In step S102, normal processing of the microcomputer system 10, for example, the microcomputer system 1
The electronic device which is the controlled object of 0 is subjected to a process of a certain procedure, and then the pointer jumps to the start address of the execution program 14a.

【0038】ステップS103においては、フラッシュ
メモリ12上のダウンロードプログラム12aを消去す
る。そして、ステップS104に進む。
In step S103, the download program 12a on the flash memory 12 is erased. Then, the process proceeds to step S104.

【0039】ステップS104としては、フラッシュメ
モリ12のダウンロード領域にホストコンピュータ30
から受信したプログラム用の受信データを書き込む。そ
して、先に図4でスタートアッププログラムのステップ
S201からS204までを実行し、プログラム用の受
信データをRAM14に書き込み、新たに書き込まれた
実行プログラムを実行する。これらの作業が完了する
と、ステップS102に進む。
In step S104, the host computer 30 is stored in the download area of the flash memory 12.
Write the received data for the program received from. Then, steps S201 to S204 of the start-up program are executed first in FIG. 4, the received data for the program is written into the RAM 14, and the newly written execution program is executed. When these operations are completed, the process advances to step S102.

【0040】このようにして、フラッシュメモリ12に
記憶されているダウンロードプログラム12cのような
ファームウエアを、ホストコンピュータ30からオンラ
インによって変更することができる。
In this way, the firmware such as the download program 12c stored in the flash memory 12 can be changed online from the host computer 30.

【0041】これによって、作業者がファームウエアを
備える装置の設置場所に赴いてファームウエアの入った
ROMの交換を行う必要がなくなった。従って、ファー
ムウエアの書き換えの迅速化と経費の削減を図ることが
できる。
This eliminates the need for the operator to go to the installation location of the apparatus having the firmware and replace the ROM containing the firmware. Therefore, it is possible to speed up the rewriting of the firmware and reduce the cost.

【0042】次に、この発明に係るデータ書き換え装置
の変形例を示す。
Next, a modification of the data rewriting device according to the present invention will be described.

【0043】第1の変形例は、図6に示すように、上述
のマイコンシステム10に、プロトコルコントローラ1
5を加えたものである。このプロトコルコントローラ1
5は、各種通信プロトコルに準拠したコントロールIC
を搭載したものである。
In the first modification, as shown in FIG. 6, a protocol controller 1 is added to the microcomputer system 10 described above.
5 is added. This protocol controller 1
5 is a control IC conforming to various communication protocols
It is equipped with.

【0044】この第1の変形例においては、上記マイコ
ンシステム10のドライバ13に直列にプロトコルコン
トローラ15を挿入しただけであるので他の部分の説明
は省略する。
In the first modified example, the protocol controller 15 is simply inserted in series with the driver 13 of the microcomputer system 10, and the description of the other parts is omitted.

【0045】この第1の変形例は、各種プロトコルを用
いることができるので、マイコンシステム10とホスト
コンピュータ30との間の伝送手段としては専用の線路
に限らず各種LAN、ISDN等の既存の回線を利用す
ることができるので応用の幅が広い。
In the first modified example, since various protocols can be used, the transmission means between the microcomputer system 10 and the host computer 30 is not limited to a dedicated line, but may be an existing line such as various LANs and ISDN. It can be used for a wide range of applications.

【0046】第2の変形例は、図7に示すホストコンピ
ュータ30と、図8に示す第1の充電装置501から第
nの充電装置50nまでのn個の充電装置とからなるも
のである。
The second modification is made of a host computer 30 shown in FIG. 7, the n-number of the charging device from the first charging device 50 1 shown in FIG. 8 to the charging device 50 n of the n is there.

【0047】上記ホストコンピュータ30は、このホス
トコンピュータ30各部を制御するパーソナルコンピュ
ータ(以下、パソコンという。)31と、このパソコン
31から与えられるプログラム用データ及び制御情報を
変調し、また、上記充電装置501、・・・、50nから
送信されるアンテナ34で受信した無線信号を復調する
無線通信装置33と、無線信号の送信及び受信を行うア
ンテナ34とから構成される。
The host computer 30 modulates a personal computer (hereinafter, referred to as a personal computer) 31 for controlling each section of the host computer 30, program data and control information supplied from the personal computer 31. The radio communication device 33 demodulates a radio signal received by the antenna 34 transmitted from 50 1 ,..., 50 n and an antenna 34 for transmitting and receiving a radio signal.

【0048】上記第1の充電装置501は、上述のマイ
コンシステム10において、ドライバ13がアンテナ2
1を備える無線通信装置221に置き換えられた他に、
所定のバッテリーに所定の手順にて充電を行う機能を有
している。
[0048] The first charging device 50 1, the microcomputer system 10 described above, the driver 13 Antenna 2
Besides replaced with the radio communication device 22 1 comprises a 3 1,
It has a function of charging a predetermined battery in a predetermined procedure.

【0049】第2の充電装置502から第nの充電装置
50nまでは、上記第1の充電装置501と構造及び動作
は同じであるので、説明を省略する。
[0049] From the second charging device 50 2 to the charging equipment terminal 50 n of the n, since the first charging device 50 1 and the structure and operation are the same, the description thereof is omitted.

【0050】この第2の変形例においては、ホストコン
ピュータ30から各充電装置501〜50nへの通信手段
として無線通信を用いているので、1回の送信にて各充
電装置501〜50nにプログラム及び制御情報を伝送す
ることができ、充電装置501〜50nが多数個ある場合
には特に実益がある。すなわち、ホストコンピュータ3
0からの制御コード及びデータ等の1回の無線通信によ
る送信にて各充電装置501〜50nのフラッシュメモリ
121〜12nに記録されているファームウエアを書き換
えることができる。
In the second modification, wireless communication is used as a communication means from the host computer 30 to each of the charging devices 50 1 to 50 n . Therefore, each of the charging devices 50 1 to 50 is transmitted by one transmission. can transmit programs and control information to the n, there is a particularly practical benefits in the case of the charging device 50 1 to 50 n is a large number. That is, the host computer 3
Can be rewritten firmware stored in the flash memory 12 1 to 12 n of the charging device 50 1 to 50 n by the transmission by one of the wireless communication such as a control code and data from the 0.

【0051】第3の変形例は、図9に示すように、充電
装置50と、ホストコンピュータ30と、これらを互い
に結ぶ通信ケーブル41とから構成される。
As shown in FIG. 9, the third modification includes a charging device 50, a host computer 30, and a communication cable 41 connecting these components to each other.

【0052】上記充電装置10は、MPU11と、フラ
ッシュメモリ12と、RAM14と、A/D変換部15
と、マルチプレックス16と、第1の電流検出部171
から第256の電流検出部17256までの256個の電
流検出部171〜17256と、第1の電圧検出部181
ら第256の電圧検出部18256までの256個の電圧
検出部181〜18256と、第1の電流制御部191から
第256の電流制御部19256までの256個の電流制
御部191〜19256と、第1のバッテリー保持機構20
1から第256のバッテリー保持機構20256までの25
6個のバッテリー保持機構201〜20256と、充電用電
源21と、ネットワークコントローラ22とから構成さ
れる。
The charging device 10 includes an MPU 11, a flash memory 12, a RAM 14, an A / D converter 15
Multiplex 16 and first current detector 17 1
From the 256 current detecting portion and 256 of the current detector 17 1-17 256 up to 17 256, the first voltage detecting unit 18 1 from the first 256 of the voltage detection unit 18 256 up to 256 of the voltage detection unit 18 and 1-18 256, and 256 of the current control section 19 1 to 19 256 from the first current control section 19 1 to # 256 of the current control unit 19 256, the first battery retaining mechanism 20
25 from 1 to 256th battery holding mechanism 20 256
And six battery retaining mechanism 20 1 to 20 256, a charging power supply 21, and a network controller 22..

【0053】上記第1のバッテリー保持機構201は、
所定のバッテリーを保持する。このバッテリーは、第1
の電流検出部171と電圧検出部181とによってそれぞ
れ供給される電流と印加される電圧とが検出され、これ
ら検出された値はマルチプレクス16及びA/D変換部
15を介してマイコン部11に与えられ、このマイコン
11による制御の下に充電用電源21から第1の電流制
御部191及び第1のバッテリー保持機構201を介して
電流が供給される。
[0053] battery holding mechanism 20 1 of the first is,
Holds a given battery. This battery is the first
The current supplied and the applied voltage are detected by the current detection unit 17 1 and the voltage detection unit 18 1 , respectively, and these detected values are transmitted to the microcomputer unit via the multiplex 16 and the A / D conversion unit 15. given 11, current is supplied via this from the charging power source 21 under the control of the microcomputer 11 first current control section 19 1 and the first battery retaining mechanism 20 1.

【0054】他の部分については全く同様であるので説
明を省略する。
The other parts are completely the same and will not be described.

【0055】このようなバッテリーの充電の制御をする
一連の手順は、上記フラッシュメモリ12に記憶されて
いるファームウエアに基づいて実行される。このファー
ムウエアは、上記ホストコンピュータ30から通信ケー
ブル41を介してネットワークコントローラ22に伝送
されるプログラム用データ及び制御情報によってオンラ
インで書き換えられることができる。
A series of procedures for controlling the charging of the battery is executed based on the firmware stored in the flash memory 12. This firmware can be rewritten online by program data and control information transmitted from the host computer 30 to the network controller 22 via the communication cable 41.

【0056】上記ホストコンピュータ30は、パソコン
31と、ネットワークコントローラ32とから構成され
る。上記パソコン31は、必要な場合にはネットワーク
コントローラ32及び通信ケーブル41を介して上記充
電装置50に制御コード及びデータを伝送し、この充電
装置50の備えるファームウエアを書き換えることがで
きる。
The host computer 30 comprises a personal computer 31 and a network controller 32. When necessary, the personal computer 31 transmits a control code and data to the charging device 50 via the network controller 32 and the communication cable 41, and can rewrite the firmware included in the charging device 50.

【0057】以上述べたように、充電装置50とホスト
コンピュータ30と、これらを互いに結ぶ通信ケーブル
41とからなるこのデータ書き換え装置においては、バ
ッテリーの充電状況の各種情報をA/D変換して制御す
るファームウェアを、ホストコンピュータの備えるパソ
コン31から通信ケーブル41を介してオンラインにて
書き換えることができる。このため、充電装置の設置場
所に赴かずに迅速にファームウエアの交換を行うことが
できる。
As described above, in this data rewriting device composed of the charging device 50, the host computer 30, and the communication cable 41 connecting these components to each other, A / D conversion of various information on the state of charge of the battery is controlled. The firmware to be updated can be rewritten online from the personal computer 31 of the host computer via the communication cable 41. Therefore, the firmware can be quickly replaced without going to the place where the charging device is installed.

【0058】また、上述の実施の形態は、MPUにフラ
ッシュメモリを内蔵したマイコンシステム、MPUをD
SPに置き換えたDSPシステムにおいても全く同様に
実施することができる。
In the above embodiment, the microcomputer system in which the flash memory is built in the MPU,
The same can be implemented in a DSP system replaced with an SP.

【0059】なお、この実施の形態においては、被制御
対称の電子機器としては充電装置を例示したが、この発
明の対称は充電装置に限定されない。
In this embodiment, the charging device is exemplified as the electronic device to be controlled, but the present invention is not limited to the charging device.

【0060】[0060]

【発明の効果】以上説明したように、この発明に係るデ
ータ書き換え装置及び方法は、ホストコンピュータから
マイコンシステム等のファームウエアの書き換えをする
ことができる。従って、例えばプログラム欠陥によるフ
ァームウェアのバージョンアップが必要になった場合に
も、ファームウエアを容易に変更することができる。
As described above, the data rewriting apparatus and method according to the present invention can rewrite firmware such as a microcomputer system from a host computer. Therefore, even when the firmware needs to be upgraded due to a program defect, the firmware can be easily changed.

【0061】また、ファームウエアの変更はROMの取
り替えではなく、例えばフラッシュメモリを書き換える
ことにより行いROMを使い捨てることがないので、メ
モリを節約することができる。
The firmware is not changed by replacing the ROM, but by rewriting the flash memory, for example, and the ROM is not disposable. Therefore, the memory can be saved.

【0062】また、利用するデータを更新する場合に、
ファームウエアの書き換えによって容易に変更すること
ができる。
When updating data to be used,
It can be easily changed by rewriting the firmware.

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

【図1】この発明に係るデータ書き換え装置の概略の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a data rewriting device according to the present invention.

【図2】上記データ書き換え装置の備えるフラッシュメ
モリのメモリマップを示す図である。
FIG. 2 is a diagram showing a memory map of a flash memory provided in the data rewriting device.

【図3】上記データ書き換え装置の備えるRAMのメモ
リマップを示す図である。
FIG. 3 is a diagram showing a memory map of a RAM included in the data rewriting device.

【図4】この発明に係るデータ書き換え装置及び方法の
スタートアッププログラムのフローチャートである。
FIG. 4 is a flowchart of a start-up program of the data rewriting apparatus and method according to the present invention.

【図5】上記データ書き換え装置及び方法の実行プログ
ラムのフローチャートである。
FIG. 5 is a flowchart of an execution program of the data rewriting apparatus and method.

【図6】上記データ書き換え装置のマイコンシステムの
概略の構成の他の例を示すブロック図である。
FIG. 6 is a block diagram showing another example of the schematic configuration of the microcomputer system of the data rewriting device.

【図7】上記データ書き換え装置のホストコンピュータ
の概略の構成の他の例を示すブロック図である。
FIG. 7 is a block diagram showing another example of a schematic configuration of a host computer of the data rewriting device.

【図8】上記データ書き換え装置の被制御対象としての
充電装置の概略の構成を示すブロック図である。
FIG. 8 is a block diagram showing a schematic configuration of a charging device as a controlled object of the data rewriting device.

【図9】上記データ書き換え装置のホストコンピュータ
及び充電装置の他の例の概略の構成を示すブロック図で
ある。
FIG. 9 is a block diagram showing a schematic configuration of another example of the host computer and the charging device of the data rewriting device.

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

10 マイコンシステム、11 MPU、12 フラッ
シュメモリ、14 RAM、30 ホストコンピュー
タ、41 通信ケーブル、50 充電装置
10 microcomputer system, 11 MPU, 12 flash memory, 14 RAM, 30 host computer, 41 communication cable, 50 charging device

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 電子機器の動作を制御するプログラムを
記憶する記憶手段と、 上記記憶手段に対して外部から伝送されて来るプログラ
ム及び制御情報を入出力する入出力手段と、 上記入出力手段を介して外部から伝送されて来た上記制
御情報により上記記憶手段を制御して、上記プログラム
を記憶させる制御手段とを備えることを特徴とするデー
タ書き換え装置。
A storage unit for storing a program for controlling an operation of an electronic device; an input / output unit for inputting / outputting a program and control information transmitted from outside to the storage unit; Control means for controlling the storage means by the control information transmitted from the outside via the control means to store the program.
【請求項2】 上記記憶手段は、電気的な書き込みと消
去ができる不揮発性メモリであることを特徴とする請求
項1記載のデータ書き換え装置。
2. The data rewriting device according to claim 1, wherein said storage means is a nonvolatile memory capable of electrically writing and erasing.
【請求項3】 上記入出力手段は、有線通信により伝送
されて来た上記プログラム及び制御情報を入出力するこ
とを特徴とする請求項1記載のデータ書き換え装置。
3. The data rewriting apparatus according to claim 1, wherein said input / output means inputs and outputs said program and control information transmitted by wire communication.
【請求項4】 上記入出力手段は、無線通信により伝送
されて来た上記プログラム及び制御情報を入出力するこ
とを特徴とする請求項1記載のデータ書き換え装置。
4. The data rewriting apparatus according to claim 1, wherein said input / output means inputs and outputs said program and control information transmitted by wireless communication.
【請求項5】 上記入出力手段は、ホストマシーンとリ
アルタイムで通信路が確立したオンラインにより上記プ
ログラム及び制御情報を入出力することを特徴とする請
求項1記載のデータ書き換え装置。
5. The data rewriting apparatus according to claim 1, wherein said input / output means inputs and outputs said program and control information on-line with a communication path established in real time with a host machine.
【請求項6】 上記電子機器は、バッテリー充電装置で
あることを特徴とする請求項1記載のデータ書き換え装
置。
6. The data rewriting device according to claim 1, wherein the electronic device is a battery charging device.
【請求項7】 電子機器の動作を制御するプログラムを
記憶する記憶手段に対して外部から伝送されて来るプロ
グラム及び制御情報を入出力し、上記制御情報により上
記記憶手段を制御して、上記データを記憶させることを
特徴とするデータ書き換え方法。
7. A storage unit for storing a program for controlling the operation of an electronic device, inputs and outputs a program and control information transmitted from the outside, controls the storage unit with the control information, and A data rewriting method characterized by storing
【請求項8】 上記記憶手段は、電気的な書き込みと消
去ができる不揮発性メモリであることを特徴とする請求
項7記載のデータ書き換え方法。
8. The data rewriting method according to claim 7, wherein said storage means is a nonvolatile memory capable of electrically writing and erasing.
【請求項9】 上記プログラム及び制御情報は有線通信
により伝送されて来ることを特徴とする請求項7記載の
データ書き換え方法。
9. The data rewriting method according to claim 7, wherein said program and control information are transmitted by wire communication.
【請求項10】 上記プログラム及び制御情報は無線通
信により伝送されて来ることを特徴とする請求項7記載
のデータ書き換え方法。
10. The data rewriting method according to claim 7, wherein said program and control information are transmitted by wireless communication.
【請求項11】 上記プログラム及び制御情報はホスト
マシーンとリアルタイムで通信路が確立したオンライン
により伝送されて来ることを特徴とする請求項7記載の
データ書き換え方法。
11. The data rewriting method according to claim 7, wherein the program and the control information are transmitted on-line with a communication path established in real time with the host machine.
【請求項12】 上記電子機器は、バッテリー充電装置
であることを特徴とする請求項7記載のデータ書き換え
方法。
12. The data rewriting method according to claim 7, wherein the electronic device is a battery charger.
JP5803697A 1997-03-12 1997-03-12 Data rewrite device and method Abandoned JPH10254694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5803697A JPH10254694A (en) 1997-03-12 1997-03-12 Data rewrite device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5803697A JPH10254694A (en) 1997-03-12 1997-03-12 Data rewrite device and method

Publications (1)

Publication Number Publication Date
JPH10254694A true JPH10254694A (en) 1998-09-25

Family

ID=13072718

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5803697A Abandoned JPH10254694A (en) 1997-03-12 1997-03-12 Data rewrite device and method

Country Status (1)

Country Link
JP (1) JPH10254694A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000105694A (en) * 1998-09-28 2000-04-11 Nec Ic Microcomput Syst Ltd Flash memory, microcomputer equipped with flash memory, and method for storing program in flash memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000105694A (en) * 1998-09-28 2000-04-11 Nec Ic Microcomput Syst Ltd Flash memory, microcomputer equipped with flash memory, and method for storing program in flash memory
US6883060B1 (en) 1998-09-28 2005-04-19 Nec Electronics Corporation Microcomputer provided with flash memory and method of storing program into flash memory

Similar Documents

Publication Publication Date Title
US7099750B2 (en) Data access method and data access apparatus for accessing data at on-vehicle information device
JP3770905B2 (en) Full reprogramming method for erasable non-volatile memory
EP0583077A1 (en) Reprogramming methods and apparatus
JP2018037059A (en) On-vehicle update device and on-vehicle update system
CN108279916B (en) Electronic control unit program updating method and device
JP2017157004A (en) System, method, and computer program for updating programs
JPH09288573A (en) On-vehicle controller
JPH113224A (en) Program updating method for portable information terminal equipment
US8036786B2 (en) On-vehicle control apparatus
JP2002099441A (en) Communication terminal apparatus and its operating method
JP5144409B2 (en) Inverter control system, peripheral equipment of inverter device
WO2018043107A1 (en) On-board update device and on-board update system
JP4411953B2 (en) Memory update system for field devices
KR20000029372A (en) Method and device for programming a controller of a motor vehicle
KR20020036717A (en) Microcomputer and method for controlling the same
JP3633406B2 (en) EEPROM writing device
JPH10254694A (en) Data rewrite device and method
JPH10161941A (en) Flash memory rewriting device of controller for vehicle
CN111796839B (en) Controller program management method and device
CN113050969A (en) Display parameter updating method, driving chip and display device
JP4478298B2 (en) Data transfer system
JPH0562485A (en) Rewriting device for eeprom of controller
JP3130312B2 (en) Storage device programming device
JP2019185398A (en) On-vehicle device
JP4695872B2 (en) In-vehicle information equipment

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Effective date: 20060502

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060630

A131 Notification of reasons for refusal

Effective date: 20060725

Free format text: JAPANESE INTERMEDIATE CODE: A131

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20060925