JPH0658627B2 - Electronics - Google Patents

Electronics

Info

Publication number
JPH0658627B2
JPH0658627B2 JP62019340A JP1934087A JPH0658627B2 JP H0658627 B2 JPH0658627 B2 JP H0658627B2 JP 62019340 A JP62019340 A JP 62019340A JP 1934087 A JP1934087 A JP 1934087A JP H0658627 B2 JPH0658627 B2 JP H0658627B2
Authority
JP
Japan
Prior art keywords
program
stored
ram
data
device operating
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
JP62019340A
Other languages
Japanese (ja)
Other versions
JPS63186330A (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.)
Anritsu Corp
Nippon Telegraph and Telephone Corp
Original Assignee
Anritsu Corp
Nippon Telegraph and Telephone 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 Anritsu Corp, Nippon Telegraph and Telephone Corp filed Critical Anritsu Corp
Priority to JP62019340A priority Critical patent/JPH0658627B2/en
Publication of JPS63186330A publication Critical patent/JPS63186330A/en
Publication of JPH0658627B2 publication Critical patent/JPH0658627B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Description

【発明の詳細な説明】 <本発明の産業上の利用分野> 本発明は、記憶装置に記憶された装置作動用プログラム
に基づいて、駆動部の制御を行なう電子機器に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field of the Present Invention> The present invention relates to an electronic device that controls a drive unit based on a device operating program stored in a storage device.

<従来技術と問題点> 近年マイクロコンピュータの発達に伴って、各種機器の
作動制御をマイクロコンピュータで行なうものが増えて
いる。
<Prior Art and Problems> With the recent development of microcomputers, an increasing number of microcomputers control the operation of various devices.

この種の電子機器は、第4図に示すように、メモリ1に
予めに記憶された装置作動用プログラムに従って演算処
理装置2(以下、CPUと記す)が、駆動部3を制御す
るように構成されている。
As shown in FIG. 4, this type of electronic device is configured such that an arithmetic processing unit 2 (hereinafter, referred to as a CPU) controls a drive unit 3 in accordance with a device operating program stored in advance in a memory 1. Has been done.

このメモリ1は、不揮発性で読み出し専用のメモリに、
予め装置作動用プログラムが固定記憶されたものが従来
から用いられている。
This memory 1 is a non-volatile, read-only memory,
A device in which a program for operating the device is fixedly stored in advance has been used conventionally.

しかしながら、この種のメモリは、装置から取りはずさ
れても記憶内容が保持されているため、記憶内容を容易
に知られる危険がある。装置作動用プログラムが漏洩す
ると、その装置の製造販売等に携っている者に重大な損
害を与える可能性がある。
However, since the memory contents of this type of memory are retained even after being removed from the device, there is a risk that the memory contents are easily known. If the program for operating the device is leaked, it may cause serious damage to a person engaged in the manufacture and sale of the device.

即ち、メモリ1に記憶されている装置作動用プログラム
がコピーされて、全く同等の装置が製造販売されたり、
装置作動プログラムが悪用されて、装置の不正利用が行
なわれている可能性がある。
That is, the device operating program stored in the memory 1 is copied to manufacture and sell a completely equivalent device,
There is a possibility that the device operating program has been misused to misuse the device.

このため、従来では、メモリ1やCPU2を樹脂4で覆
って、外部からCPU2やメモリ1の名称や端子等が見
えないようにして、メモリ1に記憶された装置作動用プ
ログラムの漏洩を防止している。
Therefore, conventionally, the memory 1 and the CPU 2 are covered with the resin 4 so that the names and terminals of the CPU 2 and the memory 1 cannot be seen from the outside to prevent leakage of the device operating program stored in the memory 1. ing.

しかしながら、上記のように、樹脂4でメモリ1が覆わ
れていると、装置作動用プログラムを変更することがで
きず、CPU2をも含めた制御部を全て交換しなければ
ならないため、非常に不経済であった。
However, as described above, if the memory 1 is covered with the resin 4, the device operating program cannot be changed, and all the control units including the CPU 2 must be replaced, which is extremely inconvenient. It was an economy.

このため、第5図に示すように、メモリ1をコネクタ5
(あるいはソケット)を介してCPU2と接続して、メ
モリ1の交換を可能にしたものがあるが、これでは、メ
モリ1の装置作動用プログラムが容易に読み出されてし
まうことになる。
For this reason, as shown in FIG.
There is a memory device that allows the memory 1 to be replaced by connecting it to the CPU 2 via a socket (or a socket), but this causes the device operating program of the memory 1 to be easily read.

また、この場合でも、交換された古いメモリ1が無駄に
なり、装置作動用プログラムの交換を要する装置が多数
あると、多数の交換用メモリを携帯してメモリの交換作
業を行なわなければならず、煩雑で作業効率が低下する
という問題があった。
Even in this case, if the old memory 1 that has been replaced is wasted and there are many devices that need to exchange device operating programs, a large number of exchange memories must be carried to perform the memory exchange operation. However, there is a problem that the work efficiency is reduced due to complexity.

これを解決するために、例えば、特開昭61−2535
39号に示されているミサイルの誘導装置のように、外
部装置から入力されるプログラムデータを読み書き可能
なメモリ(RAM)に格納して、このメモリに記憶され
たプログラムデータに基づいて装置の制御を行なうよう
に構成することも考えられる。
In order to solve this, for example, JP-A-61-2535
Like the missile guidance device shown in No. 39, program data input from an external device is stored in a readable / writable memory (RAM), and the device is controlled based on the program data stored in this memory. It is also conceivable to configure so that.

この技術によれば、外部から入力したプログラムで機器
の制御を変更することができるので、プログラムの変更
時にメモリの交換が不要となり、変更作業が楽になる
が、逆に、外部からの不正なプログラムの変更によっ
て、機器が不正利用される危険性が非常に高くなってし
まう。
According to this technology, the control of the device can be changed by a program input from the outside, which eliminates the need to replace the memory when changing the program and facilitates the change work. By changing the above, there is a very high risk that the device will be illegally used.

また、データの保持のためにに常時電源の供給が必要な
読み書き可能なメモリの場合、電源の異常な変化等で保
持データが変化してしまうことがあり、この変化によっ
て機器自身も異常な動作状態になってしまうこともあ
る。
Also, in the case of a readable / writable memory that requires constant power supply to retain data, the retained data may change due to an abnormal change in the power supply, etc. It may be in a state.

<本発明の目的> 本発明は、上記の問題点を解決するためになされたもの
で、装置作動用プログラムの内容が外部から容易に知ら
れたり、不正に変更されたりする危険が極めて少なく、
しかも、正規なプログラムの変更が容易に且つ安価に行
なえるとともに、記憶されているプログラムの変化にと
もなう機器の異常な動作も防止できるようにした電子機
器を提供することを目的としている。
<Object of the present invention> The present invention has been made in order to solve the above problems, there is very little risk that the contents of the device operating program is easily known from outside, or is illegally changed,
Moreover, it is an object of the present invention to provide an electronic device capable of easily and inexpensively changing a regular program and preventing an abnormal operation of the device due to a change in a stored program.

<本発明の一実施例> 以下、図面に基づいて、本発明の一実施例を説明する。<One Embodiment of the Present Invention> One embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明を適用した電子機器とプログラム送信
装置の一例を示すプログラム図である。
FIG. 1 is a program diagram showing an example of an electronic device and a program transmission device to which the present invention is applied.

図において、21は電子機器を示し、22は電子機器2
1の駆動部、23は駆動部22を制御する制御部であ
る。
In the figure, 21 indicates an electronic device and 22 indicates an electronic device 2.
The drive unit 1 and the control unit 23 control the drive unit 22.

24は、この電子機器21を制御するための装置作動用
プログラムを記憶するために、充分なアドレス空間をも
つRAMであり、25は、この電子機器21の外部から
入力されるプログラムデータをRAM24の所定アドレ
スに順次記憶させるための受信用プログラムが予め記憶
された第1のROMである。
Reference numeral 24 is a RAM having a sufficient address space for storing a device operating program for controlling the electronic device 21, and 25 is program data input from the outside of the electronic device 21 to the RAM 24. This is a first ROM in which a reception program for sequentially storing at a predetermined address is stored in advance.

なお、RAM24は、電子機器21の電源がOFFして
も、その記憶内容を保持するために電池(図示せず)に
よってバックアップされている。
The RAM 24 is backed up by a battery (not shown) to retain the stored contents even when the electronic device 21 is powered off.

26は、入力されるプログラムデータを、第1のROM
25に記憶された受信用プログラムに従って、順次RA
M24の所定アドレスに記憶させ、RAM24に記憶さ
れたプログラムデータからなる装置作動用プログラムに
従って、駆動部22の制御を行なう第1のCPUであ
る。
26 is a first ROM for inputting program data
RA sequentially according to the receiving program stored in 25.
It is a first CPU that controls the drive unit 22 in accordance with a device operating program that is stored in a predetermined address of M24 and is stored in the RAM 24.

27は、電子機器21の外部からのプログラムデータを
受信するためのデータ受入れ部であり、電子機器21の
外部から接続可能な受信コネクタ28と、受信コネクタ
28から直列に入力される外部からのプログラムデータ
を、第1のCPU26に対応するビット数の並列のプロ
グラムデータに変換するシフトレジスタ等からなるシリ
アル・パラレル変換器29とから構成されている。
Reference numeral 27 denotes a data receiving unit for receiving program data from the outside of the electronic device 21, and a reception connector 28 connectable from the outside of the electronic device 21 and a program from the outside input in series from the reception connector 28. The serial / parallel converter 29 is composed of a shift register or the like for converting data into parallel program data having a bit number corresponding to the first CPU 26.

なお、この制御部23は、受信コネクタ28を除いて、
樹脂によって覆われており、外部からの各回路の識別及
び電気接触が不可能な状態になっていので、不正な目的
からこの樹脂を取除こうとする強引な力で電源ライン等
が切断されると、RAM24の記憶内容が揮発されるこ
とになる。
It should be noted that this control unit 23, except for the receiving connector 28,
Since it is covered with resin and it is impossible to identify and electrically contact each circuit from the outside, the power line etc. is disconnected by the brute force to remove this resin for illegal purposes. Then, the contents stored in the RAM 24 are volatilized.

一方、31は、電子機器21側に装置作動用プログラム
を送信するためのプログラム送信装置であり、32は、
電子機器21側に記憶させるための装置作動用プログラ
ムが所定のアドレス空間に記憶され、この装置作動用プ
ログラムのプログラムデータを電子機器21側へ順次出
力するための送信用プログラムが初期アドレスから記憶
された第2のROMである。
On the other hand, 31 is a program transmission device for transmitting the device operating program to the electronic device 21 side, and 32 is
A device operating program to be stored on the electronic device 21 side is stored in a predetermined address space, and a transmitting program for sequentially outputting the program data of the device operating program to the electronic device 21 side is stored from an initial address. It is the second ROM.

なお、この装置作動用プログラムは、この全てのプログ
ラムデータを2進加算した結果が“0”になるように予
め構成されている。
The device operating program is preconfigured so that the result of binary addition of all the program data becomes "0".

33は、第2のROM32に記憶された送信用プログラ
ムに従って、装置作動用プログラムのプログラムデータ
を、順次並列出力する2のCPUであり、34は、第2
のCPU33から並列出力されるプログラムデータを直
列なプログラムデータに変換して、電子機器21側に送
出するためのデータ送出部である。
Reference numeral 33 denotes a second CPU that sequentially outputs the program data of the apparatus operating program in parallel according to the transmission program stored in the second ROM 32, and 34 denotes the second CPU.
Is a data transmission unit for converting program data output in parallel from the CPU 33 into serial program data and transmitting the serial program data to the electronic device 21 side.

データ送出部34は、第2のCPU33から出力される
並列なプログラムデータを直列列なプログラムデータに
変換するシフトレジスタ等からなるパラレル・シリアル
変換器35と、パラレル・シリアル変換器35からの直
列なプログラムデータを電子機器21のデータ受入れ部
27に送出するために、データ受入れ部27の受信コネ
クタ28に接続可能に形成された送信コネクタ36によ
って構成されている。
The data sending unit 34 includes a parallel / serial converter 35 including a shift register for converting parallel program data output from the second CPU 33 into serial series program data, and a serial / serial converter 35. In order to send the program data to the data receiving section 27 of the electronic device 21, the transmission connector 36 is formed so as to be connectable to the receiving connector 28 of the data receiving section 27.

なお、この送信コネクタ36及び受信コネクタ28に
は、プログラム送信装置1からプログラムデータを送信
するための直列回線Sの他に、直回線Sから入力される
プログラムデータの全てが、電子機器21側のRAM2
4に記憶されたことをプログラム送信装置31側に知ら
せるために、電子機器11側からプログラ送信装置31
側へストア終了信号Eを送出するための制御回線Cと、
プログラム送信装置31の電源を電子機器21側から供
給するための電源回線Bとが設けられている。
In addition to the serial line S for transmitting the program data from the program transmission device 1, all of the program data input from the direct line S is sent to the electronic connector 21 through the transmission connector 36 and the reception connector 28. RAM2
In order to inform the program transmission device 31 side that the data is stored in No. 4, from the electronic device 11 side to the program transmission device 31 side.
A control line C for sending a store end signal E to the side,
A power supply line B for supplying power to the program transmission device 31 from the electronic device 21 side is provided.

また、プログラム送信装置31には、表示器37が設け
られており、表示器37は、装置作動用プログラムが電
子機器21側へ送信されている間は“送信中”を示す表
示を、装置作動用プログラムの送信が終了した時は“送
信終了”を示す表示を、また、電子機器21側におい
て、プログラム送信機器31からのプログラムデータが
確実に記憶された時は、ストア終了を示す“ストア終
了”の表示を、あるいは、プログラムデータの記憶が確
実に行なわれなかった時は、アラーム表示を第1のCP
U33から表示信号に従って、表示する。
Further, the program transmitting device 31 is provided with a display 37, and the display 37 displays a display indicating "transmitting" while the device operating program is being transmitted to the electronic device 21 side. When the transmission of the application program is completed, a display indicating "end of transmission" is displayed, and when the program data from the program transmission device 31 is securely stored on the electronic device 21 side, "store completed" is displayed. Is displayed, or when the program data is not stored securely, the alarm is displayed on the first CP.
Display according to the display signal from U33.

次に、プログラム送信装置31のプログラム送信の処理
手順と、電子機器21のプログラム受信の処理手順とを
2図及び第3図のフローチャートに従って説明する。
Next, a program transmission processing procedure of the program transmission device 31 and a program reception processing procedure of the electronic device 21 will be described with reference to the flowcharts of FIGS. 2 and 3.

第2図は、プログラム送信機器31の送信用プログラム
の制御手順を示すフローチャートであり、先づ、プログ
ラム送信装置31の送信コネクタ36を電子機器21側
の受信コネクタ28に接続すると、電子機器21側から
プログラム送信装置31に電源回線Bを介して、電源が
供給される(a)。
FIG. 2 is a flow chart showing the control procedure of the transmission program of the program transmission device 31, and when the transmission connector 36 of the program transmission device 31 is first connected to the reception connector 28 of the electronic device 21, the electronic device 21 side is connected. The power is supplied to the program transmission device 31 from the power transmission line B (a).

電源が供給されたプログラム送信装置31の第2のCP
U33は、第2のROM32の送信用プログラムを実行
するために初期設定される(b)。
The second CP of the program transmitter 31 to which power is supplied
U33 is initialized to execute the transmission program of the second ROM 32 (b).

次に、第2のCPU33から送信用プログラムに従っ
て、スタートコードがデータ送出部34及び直列回線S
を介して、電子機器21側に送出される(c)。
Next, according to the transmission program from the second CPU 33, the start code is the data transmission unit 34 and the serial line S.
Is sent to the electronic device 21 side via (c).

次に、第2のROM32の装置作動用プログラムの最終
アドレス値Lが読み出されて、電子機器21側に送出さ
れ(d)、装置作動用プログラムの初期アドレス値がA
に代入される(e)。
Next, the final address value L of the device operating program in the second ROM 32 is read and sent to the electronic device 21 side (d), and the initial address value of the device operating program is A.
(E).

次に、“プログラム送出中”を示す表示が表示器37に
表示され(f)、アドレス値Aの装置作動用プログラム
のプログラムデータが、データ送出部34及び直列回線
Sを介して、電子機器21側に送出される(g)。
Next, a display indicating "program is being sent" is displayed on the display 37 (f), and the program data of the device operating program having the address value A is sent to the electronic device 21 via the data sending unit 34 and the serial line S. Sent to the side (g).

アドレス値Aは、装置作動用プログラムの最終アドレス
値Lと比較され(h)、このアドレス値Aと最終アドレ
ス値Lが等しくなるまでアドレス値Aを1ずつ増加させ
て(i)、装置作動用プログラムが、アドレス順にプロ
グラムデータとして順次送出される。
The address value A is compared with the final address value L of the device operating program (h), the address value A is incremented by 1 until the final address value L and the final address value L become equal (i), and the device operating program is operated. The program is sequentially transmitted as program data in the order of addresses.

なお、この装置作動用プログラムのアドレス値Aが最終
アドレス値Lと等しくなると(即ち、装置作動用プログ
ラムの全てのプログラムデータが電子機器11側に送出
されると)、装置作動用プログラムの送信終了を示す表
示器37に表示され(j)、所定時間Tにセットされた
タイマーがスタートする(k)。
When the address value A of the device operating program becomes equal to the final address value L (that is, when all the program data of the device operating program is sent to the electronic device 11 side), the transmission of the device operating program ends. Is displayed on the display 37 (j), and the timer set to the predetermined time T is started (k).

この所定時間T内に、電子機器11側からストア終了信
号Eが制御回線Cを介して入力されると(l)、“スト
ア終了”を示す表示が表示器37に表示され(m)、プ
ログラム送信動作が終了する。
When the store end signal E is input from the electronic device 11 side through the control line C within this predetermined time T (l), a display indicating "store end" is displayed on the display 37 (m), and the program The transmission operation ends.

また、電子機器21側からストア終了信号Eが入力され
ないで、所定時間Tが経過すると(n)、電子機器21
側において、装置作動用プログラムが確実に記憶されな
かめたことを示すアラーム表示が表示器37に表示され
る(o)。
When the store end signal E is not input from the electronic device 21 side and the predetermined time T has passed (n), the electronic device 21
On the side, an alarm display indicating that the device operating program has not been reliably stored is displayed on the display 37 (o).

次に、電子機器21側の制御部23の第1のROM25
に記憶された受信用プログラムの制御手段を第3図にし
たがって説明する。
Next, the first ROM 25 of the control unit 23 on the electronic device 21 side
The control means of the reception program stored in FIG. 3 will be described with reference to FIG.

先づ、電子機器21に電源が供給されると、第1のCP
U26は、第1のROM25に記憶された受信用プログ
ラムを実行するために初期設定される(a′)。
First, when power is supplied to the electronic device 21, the first CP
U26 is initialized to execute the reception program stored in the first ROM 25 (a ').

受信用プログラムが実行されると、所定時間T′にセッ
トされたタイマーがスタートする(b′)。
When the receiving program is executed, the timer set at the predetermined time T'starts (b ').

この所定時間T′内に、プログラム送信装置31のデー
タ送出部34の送信コネクタ36と、電子機器21側の
受信コネクタ28が接続されて、プログラム送信装置3
1からのスタートコードが入力されると(c′)、続い
て入力される装置作動用プログラムの最終アドレス値L
を受信して、このアドレス値Lを、RAM24の装置作
動用プログラムが記憶されていない所定のアドレスに一
時記憶させる(d′)。
Within this predetermined time T ′, the transmission connector 36 of the data transmission unit 34 of the program transmission device 31 and the reception connector 28 of the electronic device 21 side are connected, and the program transmission device 3
When the start code from 1 is input (c '), the final address value L of the device operation program that is subsequently input is L.
Is received and the address value L is temporarily stored in a predetermined address of the RAM 24 where the device operating program is not stored (d ').

次に、RAM24の新たに記憶すべき装置作動用プログ
ラムの初期アドレス値がDに代入され(e′)、プログ
ラム送信装置31から初めに送られてくるプログラムデ
ータを、Dのアドレスに記憶させる(f′)。
Next, the initial address value of the device operating program to be newly stored in the RAM 24 is substituted into D (e '), and the program data initially sent from the program transmitting device 31 is stored in the address of D ( f ').

以下、プログラム送信装置31からのプログラムデータ
を受けるごとに、アドレス値Dに1ずつ加算し
(h′)、アドレス値Dが最終アドレス値Lに等しくな
るまで(g′)、プログラムデータを所定のアドレスに
順次記憶させる。
Every time the program data is received from the program transmission device 31, the address value D is incremented by 1 (h ') until the address value D becomes equal to the final address value L (g'). The addresses are sequentially stored.

このようにして、プログラム送信装置31からのプログ
ラムデータの全てが、新たな装置作動用プログラムとし
てRAM24の所定アドレス空間に記憶されると、RA
M24の所定アドレス(装置作動用プログラムの記憶さ
れていないアドレス)に書き込み終了コードが記憶され
る(i′)。
In this way, when all the program data from the program transmitting device 31 is stored in the predetermined address space of the RAM 24 as a new device operating program, RA
The write end code is stored in a predetermined address of M24 (address where the device operating program is not stored) (i ').

次に、RAM24に記憶されたプログラムのチェックの
ために、RAM24の所定アドレス空間に記憶された全
てのプログラムデータが2進加算され(k′)、その加
算結果が“0”であると(l′)、RAM24の所定ア
ドレスに書込み終了コードが正しく記憶されているかが
判定される(m′)。
Next, in order to check the program stored in the RAM 24, all program data stored in a predetermined address space of the RAM 24 are binary-added (k '), and if the addition result is "0" (l ′), It is determined whether the write end code is correctly stored in the predetermined address of the RAM 24 (m ′).

書込み終了コードが正しく記憶されていると、電子機器
21からストア終了信号Eが制御回路Cを介してプログ
ラム送信装置31へ送出される(n′)。
When the write end code is correctly stored, the store end signal E is sent from the electronic device 21 to the program transmission device 31 via the control circuit C (n ').

ストア終了信号Eを送出した後、第1のROM25に記
憶されている受信用プログラムは、RAM24に新たに
記憶された装置作動用プログラムの初期アドレスにジャ
ンプして(q′)、RAM24に記憶された新たな装置
作動用プログラムに従って、駆動部22の動作が制御さ
れる(p′)。
After sending the store end signal E, the receiving program stored in the first ROM 25 jumps to the initial address of the device operating program newly stored in the RAM 24 (q ') and is stored in the RAM 24. The operation of the drive unit 22 is controlled in accordance with the new device operating program (p ').

なお、タイマがスタート(b′)して、所定時間T′内
にプログラム送信装置31からのスタートコードを受信
できない場合(j′)には、RAM24に以前から記憶
されている装置作動用プログラムが前記同様にチェック
され(l′、m′)、以前に記憶されていた装置作動用
プログラムに従って、電子機器21の駆動部22が駆動
制御される(o′、p′)。
When the timer starts (b ') and the start code from the program transmitting device 31 cannot be received within the predetermined time T' (j '), the device operating program previously stored in the RAM 24 is detected. It is checked in the same manner as described above (l ', m'), and the drive unit 22 of the electronic device 21 is drive-controlled (o ', p') according to the previously stored device operating program.

また、RAM24に記憶されている装置作動用プログラ
ムの全てのプログラムデータの2進加算値が“0”でな
い場合、またはRAM24の所定アドレスに書込み終了
コードが記憶されていない場合は、電子機器21の制御
動作が停止される(q′)ため、再度、装置作動用プロ
グラムをプログラム送信装置31から入力させるか、電
子機器21の制御部のチェックを行なう必要がある。
If the binary addition values of all the program data of the device operating program stored in the RAM 24 are not “0”, or if the write end code is not stored in the predetermined address of the RAM 24, the electronic device 21 Since the control operation is stopped (q '), it is necessary to input the device operating program again from the program transmitting device 31 or check the control unit of the electronic device 21.

以上のようにして、新たな装置作動用プログラムがプロ
グラム送信装置31から電子機器21のRAM24に記
憶され、電子機器21側からのストア終了信号Eがプロ
グラム送信装置31で確認された後、このプログラム送
信装置31のデータ送出部34の送信コネクタ36と電
子機器21の受信コネクタ28との接続を解除して、装
置作動用プログラムの変更作業が終了する。
As described above, the new device operating program is stored in the RAM 24 of the electronic device 21 from the program transmitting device 31, and after the store end signal E from the electronic device 21 side is confirmed by the program transmitting device 31, this program is executed. The connection between the transmission connector 36 of the data transmission unit 34 of the transmission device 31 and the reception connector 28 of the electronic device 21 is released, and the work of changing the device operating program is completed.

この実施例では、電子機器21側の電源投入時に、プロ
グラム送信装置31から新たな装置作動用プログラムを
送信して、電子機器21の装置作動用のプログラムを変
更するようにしていたが、電子機器21の作動中(第3
(p′))、プログラム送信装置31からのスタートコ
ードを受けた時は、第2のCPU26に割り込み制御を
して、第4図のフローチャートの(p′)から(d′)
にジャンプさせて、装置作動用プログラムを変更するこ
とも可能である。
In this embodiment, when the power of the electronic device 21 is turned on, the program transmitting device 31 transmits a new device operating program to change the device operating program of the electronic device 21. 21 in operation (3rd
(P ')), when the start code from the program transmission device 31 is received, the second CPU 26 is interrupt-controlled and (p') to (d ') in the flowchart of FIG.
It is also possible to jump to and change the program for operating the device.

<本発明の他の実施例> なお、上記実施例では、データ送出部34にパラレル・
シリアル変換器35を設け、直列なプログラムデータを
送信し、電子機器21側のシリアル・パラレル変換器2
9において、並列なプログラムデータに変換していた
が、これらの変換器18、35の代りに並列バッファ等
を用いて、プログラムデータを並列データのまま送受信
するようにしてもよい。
<Other Embodiments of the Present Invention> In the above embodiment, the data sending unit 34 is connected in parallel
A serial converter 35 is provided to transmit serial program data, and the serial / parallel converter 2 on the electronic device 21 side is provided.
In FIG. 9, the program data is converted into parallel program data, but a parallel buffer or the like may be used instead of the converters 18 and 35 to transmit and receive the program data as parallel data.

<本発明の効果> 以上説明したように、本発明の電子機器は、少なくとも
RAM、ROM及びCPUを一体化させて制御部とする
ように樹脂からなる密封手段によって密封されており、
この制御部がタイマ手段、スタートコード判定手段、デ
ータ格納手段、プログラムチェック手段、プログラム実
行手段および制御禁止手段を備えていので、RAMに装
置作動用プログラムを格納した後にあっては、CPUは
電源投入動作によって自動的に格納された装置作動用プ
ログラムに基づいて駆動部を制御し、樹脂で密封された
制御部以外には、プログラムデータを出力しないので、
電子機器動作中に装置作動用プログラムの内容を知られ
る恐れがなく、それでいながら、装置作動用プログラム
の内容を変更しようというときには、コネクタを介して
専用のプログラム送信部から新たな装置作動用プログラ
ムのプログラムデータを送信することによって容易にプ
ログラムを変更できるという利点がある。
<Effects of the Present Invention> As described above, the electronic device of the present invention is hermetically sealed by the sealing means made of resin so that at least the RAM, the ROM, and the CPU are integrated into a control unit.
Since this control unit is provided with the timer means, the start code judging means, the data storing means, the program checking means, the program executing means and the control prohibiting means, the CPU powers on after the device operating program is stored in the RAM. The drive unit is controlled based on the program for operating the device, which is automatically stored by the operation, and the program data is not output to the control unit other than the resin-sealed control unit.
When there is no fear that the contents of the device operating program will be known while the electronic device is operating, and when it is desired to change the contents of the device operating program, a new program for operating the device will be sent from the dedicated program transmitter via the connector. There is an advantage that the program can be easily changed by transmitting the program data of.

また、不正を目的として偽のプログラムデータを外部か
らコネクタを介して入力するなどして、装置作動用プロ
グラムを書換えようとしたり、プログラム自身の内容を
知ろうとしても、タイマ手段の所定時間、スタートコー
ドおよびプログラムチェック手段のチェック項目それぞ
れの内容とそれらの組合せを知らなければ、所定時間以
内にRAMにアクセスすることは不可能であり、これら
の手段が充分に鍵の役目をなし、機密保持の上で極めて
高い信頼性を有している。
In addition, even if an attempt is made to rewrite the device operating program by inputting fake program data from the outside through a connector for the purpose of fraudulent operation or to know the contents of the program itself, the timer means starts for a predetermined time. Without knowing the contents of each of the check items of the code and program checking means and their combination, it is impossible to access the RAM within a predetermined time, and these means can sufficiently function as a key and keep confidentiality. It has extremely high reliability above.

また、RAMへの電源供給が切断されるような無理な力
で、制御部を密封している樹脂等を取除こうとした場
合、その者が気付かないちに、RAMに記憶されている
装置作動用プログラムが揮発してしまい、装置作動用プ
ログラムの内容が知られる恐れはない。
Further, when an attempt is made to remove the resin or the like that seals the control unit with an unreasonable force that cuts off the power supply to the RAM, the device stored in the RAM without the person being aware of it. There is no danger that the operating program will be volatilized and the contents of the device operating program will be known.

また、たとえ樹脂が旨く取除かれて、正規のRAMの代
りに、不正正なプログラムが記録されたメモリが取付け
られたり、あるいは、電源の異常等によってRAMに記
憶されているプログラムが変化してしまったような場合
でも、本発明の電子機器では電源が供給される都度、タ
イマ手段およびプログラムチェック手段によってRAM
に格納された装置作動用プログラムが正常か否かがチェ
ックされた後に、プログラムを実行するようになってい
るので、このような不正なあるいは異常なプログラムに
よる制御は禁止され、機器が異常動作する恐れはまった
くない。
Further, even if the resin is removed properly, a memory in which an incorrect program is recorded is attached instead of the regular RAM, or the program stored in the RAM is changed due to an abnormality in the power supply or the like. Even if it happens, in the electronic device of the present invention, the RAM is provided by the timer means and the program check means each time power is supplied.
Since the program is executed after it is checked whether or not the device operating program stored in is normal, the control by such an illegal or abnormal program is prohibited, and the device abnormally operates. There is no fear.

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

第1図は、本発明の一実施例を示すブロック図、第2図
及び第3図は一実施例の制御部の制御手順を示すフロー
チャートである。第4図及び第5図は従来の電子機器の
構成を示すブロック図である。 21……電子機器、22……駆動部、23……制御部、
24……RAM、25……第1のROM、26……第1
のCPU、27……データ受入れ部、28……受信コネ
クタ、29……シリアル・パラレル変換器、31……プ
ログラム送信装置、32……第2のROM、33……第
2のCPU、34……データ送出部、35……パラレル
・シリアル変換器、36……送信コネクタ。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIGS. 2 and 3 are flowcharts showing a control procedure of a control unit of the embodiment. 4 and 5 are block diagrams showing the configuration of a conventional electronic device. 21 ... Electronic device, 22 ... Drive unit, 23 ... Control unit,
24 ... RAM, 25 ... first ROM, 26 ... first
CPU, 27 ... Data receiving part, 28 ... Receiving connector, 29 ... Serial / parallel converter, 31 ... Program transmitting device, 32 ... Second ROM, 33 ... Second CPU, 34 ... ... Data transmission unit, 35 ... Parallel / serial converter, 36 ... Transmission connector.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 奥川 守文 神奈川県横須賀市武1丁目2356番地 日本 電信電話株式会社複合通信研究所内 (72)発明者 川北 達次郎 神奈川県横須賀市武1丁目2356番地 日本 電信電話株式会社複合通信研究所内 (56)参考文献 特開 昭61−253539(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Morifumi Okugawa 1-2356 Takeshi, Yokosuka City, Kanagawa Prefecture NTT Communications Corp. (72) Inventor Tatsujiro Kawakita 1-2356 Takeshi Yokosuka City, Kanagawa Japan Telegraph and Telephone Corporation, Complex Communication Laboratory (56) References JP-A-61-253539 (JP, A)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】装置作動用プログラムに基づいて制御され
る駆動部と、前記装置作動用プログラムを格納するため
のRAMと、コネクタを介して入力されるプログラムデ
ータを受信するための受信用プログラムを記憶している
ROMと、該ROMに記憶された受信用フログラムに基
づいてプログラムデータを受信し、装置作動用プログラ
ムとして前記RAMに格納し、かつ、該RAMに格納さ
れた装置作動用プログラムに基づいて前記駆動部を制御
するためのCPUと、少なくとも前記RAM、ROM、
及びCPUを一体化させて制御部とするように密封する
樹脂等からなる密封手段とを備えた電子機器であって、 前記制御部が前記受信用プログラムに基づいて、以下の
a〜fの手段を有するように動作することを特徴とする
電子機器。 a.電源供給後所定時間作動するタイマ手段 b.該タイマ手段が作動しているうちに、受信したプロ
グラムデータにプログラム変更用のスタートコードが有
るか否かを判定するスタートコード判定手段 c.該スタートコード判定手段によってスタートコード
が有ると判定された場合、受信したプログラムデータを
前記RAMの所定アドレス領域に順次記憶させるデータ
格納手段 d.前記タイマ手段の作動完了後、前記RAMに記憶さ
れているプログラムデータが正常であるか否かを判定す
るプログラムチェック手段 e.該プログラムチェック手段によって正常であると判
定されたとき、前記RAMに記憶されているプログラム
データを装置作動用プログラムとみなして、該装置作動
用プログラムに基づいて前記駆動部を制御するプログラ
ム実行手段 f.前記プログラムチェック手段によって、前記RAM
に記憶されている装置作動用プログラムが正常でないと
判定されたとき、該装置作動用プログラムによる前記駆
動部の制御を禁止する制御禁止手段
1. A drive unit controlled based on an apparatus operating program, a RAM for storing the apparatus operating program, and a receiving program for receiving program data input via a connector. A ROM stored therein and program data based on the reception program stored in the ROM are received, stored in the RAM as a device operating program, and based on the device operating program stored in the RAM. A CPU for controlling the drive unit, and at least the RAM, ROM,
And a sealing unit made of resin or the like that seals a CPU into a control unit and seals the control unit, wherein the control unit has the following means a to f based on the reception program. An electronic device which operates so as to have. a. Timer means that operates for a predetermined time after power is supplied b. Start code determination means for determining whether or not the received program data has a start code for changing the program while the timer means is operating. C. Data storing means for sequentially storing the received program data in a predetermined address area of the RAM when the start code determining means determines that there is a start code. D. Program check means for determining whether or not the program data stored in the RAM is normal after the operation of the timer means is completed. E. When the program check means determines that the program is normal, the program data stored in the RAM is regarded as a device operating program, and the program executing means f controls the drive unit based on the device operating program. . By the program check means, the RAM
When it is determined that the device operating program stored in the device is not normal, a control inhibiting means for inhibiting the control of the drive unit by the device operating program.
JP62019340A 1987-01-28 1987-01-28 Electronics Expired - Fee Related JPH0658627B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62019340A JPH0658627B2 (en) 1987-01-28 1987-01-28 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62019340A JPH0658627B2 (en) 1987-01-28 1987-01-28 Electronics

Publications (2)

Publication Number Publication Date
JPS63186330A JPS63186330A (en) 1988-08-01
JPH0658627B2 true JPH0658627B2 (en) 1994-08-03

Family

ID=11996670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62019340A Expired - Fee Related JPH0658627B2 (en) 1987-01-28 1987-01-28 Electronics

Country Status (1)

Country Link
JP (1) JPH0658627B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050223241A1 (en) * 2002-06-14 2005-10-06 Matsushita Electric Industrial Co. Ltd Semiconductor intergrated circuit device, data storage verification device, and data storage verification method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4660170A (en) * 1985-04-29 1987-04-21 General Dynamics, Pomona Division System for providing reprogramming data to an embedded processor

Also Published As

Publication number Publication date
JPS63186330A (en) 1988-08-01

Similar Documents

Publication Publication Date Title
US4523271A (en) Software protection method and apparatus
JPS59139200A (en) Protector for solid memory
US5796092A (en) IC card and IC card system
JPS63187353A (en) Data protection circuit for blocking transmission of signal through bus
EP1014251A1 (en) Data processor and method of processing data
JPH04219823A (en) Method and apparatus for protecting rom data
JPH0658627B2 (en) Electronics
JP2003172199A (en) Program rewriting system for vehicular electronic control unit
CN101175268A (en) Method and device for controlling operation authority of communication terminal chip
US4555591A (en) Integrated circuit devices for secure data encryption
US5835706A (en) Method of controlling data writing into on-board microcomputer
KR970004473A (en) Wireless device and illegal access storage system and method to said wireless device
US5657444A (en) Microprocessor with secure programmable read only memory circuit
JP2002150246A (en) Portable electronic device
JPH056310A (en) Electronic device
JP2765486B2 (en) Communication device
EP4206966A1 (en) Computer system for failing a secure boot in a case tampering event
JPH0793254A (en) Method and device for preventing unauthorized use of network system
US6714999B2 (en) Portable electronic apparatus and communication method for protocol selection processing of a portable electronic apparatus
JPH07336480A (en) Facsimile
JP2000099656A (en) Radio card and its reader/writer
JPH05233036A (en) Control sequence program reader for programmable controller
JPH03145253A (en) Data communication equipment
JPH04142164A (en) Facsimile equipment
JPH02219185A (en) Terminal controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees