JP2968728B2 - ID data backup method and portable terminal using the same - Google Patents

ID data backup method and portable terminal using the same

Info

Publication number
JP2968728B2
JP2968728B2 JP8199346A JP19934696A JP2968728B2 JP 2968728 B2 JP2968728 B2 JP 2968728B2 JP 8199346 A JP8199346 A JP 8199346A JP 19934696 A JP19934696 A JP 19934696A JP 2968728 B2 JP2968728 B2 JP 2968728B2
Authority
JP
Japan
Prior art keywords
data
ram
read
normal
destroyed
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
JP8199346A
Other languages
Japanese (ja)
Other versions
JPH1049445A (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.)
NEC Saitama Ltd
Original Assignee
NEC Saitama 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 NEC Saitama Ltd filed Critical NEC Saitama Ltd
Priority to JP8199346A priority Critical patent/JP2968728B2/en
Publication of JPH1049445A publication Critical patent/JPH1049445A/en
Application granted granted Critical
Publication of JP2968728B2 publication Critical patent/JP2968728B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はIDデータバックア
ップ方法および同方法を用いた携帯端末に関し、特に端
末の識別番号を含む端末固有のIDデータを書き換え可
能な不揮発性メモリに記憶し、電源投入時にRAMに読
み込み使用する携帯端末のIDデータバックアップ方法
および同方法を用いた携帯端末に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an ID data backup method and a portable terminal using the method, and more particularly to a method of storing terminal-specific ID data including a terminal identification number in a rewritable nonvolatile memory, and The present invention relates to a method for backing up ID data of a portable terminal read into a RAM and used, and a portable terminal using the method.

【0002】[0002]

【従来の技術】携帯電話,PHS,ディジタルコードレ
スホーンなどの携帯端末では、動作に必要な端末固有の
IDデータ(電話番号や制御チャネル番号などの通信を
行う上で必要なパラメータ情報)は、通常、EEPRO
Mなどの書き換え可能な不揮発性メモリに記憶されてい
る。
2. Description of the Related Art In portable terminals such as portable telephones, PHSs, and digital cordless horns, terminal-specific ID data (parameter information necessary for communication such as telephone numbers and control channel numbers) required for operation is usually included in the data. , EEPRO
It is stored in a rewritable nonvolatile memory such as M.

【0003】IDデータは、端末1台ごとにそれぞれ異
なるものであり、端末が製造された後に個別に書き込む
必要がある。又、通信を行う上で必須なデータであり、
電池がなくなった場合や電源オフの状態でも記憶して置
く必要がある。このため、短縮ダイヤル番号や電子電話
帳などの電源オフ時にも記憶させて置きたい他のユーザ
個有情報と共に、EEPROMに書き込み記憶するよう
に構成されている。
[0003] The ID data is different for each terminal, and needs to be individually written after the terminal is manufactured. It is also essential data for communication,
It is necessary to memorize even when the battery is exhausted or the power is off. For this reason, it is configured to be written and stored in the EEPROM together with other user-specific information that should be stored even when the power is turned off, such as a speed dial number or an electronic telephone directory.

【0004】図4は、この種の携帯端末の一般的な構成
を示したブロック図である。無線部1,ベースバンド部
2,音声コーデック3,スピーカ4,マイク5から成る
通信系と、キー13,LCD14から成る表示操作系
と、主として通信系を制御するメインCPU9と、キー
入力,LCD表示などを制御するサブCPU12とで構
成されている。又、メインCPU9,サブCPU12に
は、それぞれROM6,10及びRAM8,11が接続
されており、メインCPU9にはIDデータ等を記憶す
るEEPROM7が接続されている。
FIG. 4 is a block diagram showing a general configuration of this type of portable terminal. A communication system including a radio unit 1, a baseband unit 2, an audio codec 3, a speaker 4, and a microphone 5, a display operation system including a key 13 and an LCD 14, a main CPU 9 mainly controlling a communication system, key input, and an LCD display And the like, and a sub CPU 12 for controlling the operation. The main CPU 9 and the sub CPU 12 are connected to ROMs 6 and 10 and the RAMs 8 and 11, respectively, and the main CPU 9 is connected to an EEPROM 7 for storing ID data and the like.

【0005】従来の携帯端末では、IDデータはEEP
ROM7内の1箇所にのみ記憶されており、電源投入時
に他のユーザ個有情報と共にRAM8に書き込まれ、チ
ェックサムによるIDデータの確認を行った後、位置登
録を初めとし、着信信号の検出処理および発信時,ゾー
ン間移動時の処理などがすべてこのIDデータに従って
行われる。
In a conventional portable terminal, ID data is EEP
It is stored in only one place in the ROM 7 and is written into the RAM 8 together with other user-specific information when the power is turned on. After confirming the ID data by the checksum, the incoming signal detection processing including location registration and the like is performed. In addition, all processes at the time of transmission and movement between zones are performed in accordance with the ID data.

【0006】図5は、従来の携帯端末における電源投入
時のIDデータの確認過程を示すフローチャートであ
る。携帯端末に電源が投入されると、EEPROMのI
DデータはRAMに読み出され(ステップS41)、チ
ェックサムによるIDデータの確認が行われる(ステッ
プS42)。この結果IDデータに異常がなければ(ス
テップS43)、読み出されたIDデータの内容に従っ
た正常動作が開始される(ステップS44)。ステップ
S43で異常が検出された場合は、警報を発し動作は不
能となる(ステップS45)。この場合、サービス店に
持参して登録時に書き込んだIDデータを再書き込みし
てもらうか、EEPROMを交換するなどハードウェア
の修理が必要となる。
FIG. 5 is a flowchart showing a process of confirming ID data at the time of power-on in a conventional portable terminal. When the portable terminal is powered on, the I
The D data is read out to the RAM (step S41), and the ID data is confirmed by a checksum (step S42). As a result, if there is no abnormality in the ID data (step S43), a normal operation according to the content of the read ID data is started (step S44). If an abnormality is detected in step S43, an alarm is issued and the operation is disabled (step S45). In this case, it is necessary to repair the hardware by bringing it to a service shop and rewriting the ID data written at the time of registration, or by replacing the EEPROM.

【0007】[0007]

【発明が解決しようとする課題】EEPROMに記憶さ
れているIDデータは、その装置が動作するために重要
な情報であるため、他のユーザ固有情報の書き込み時に
誤って書き換えられないよう書き込みプロテクトが施さ
れており、プログラムが暴走してもIDデータが容易に
破壊されないように配慮されている。
The ID data stored in the EEPROM is important information for the operation of the device. Therefore, write protection is required to prevent the ID data from being accidentally rewritten when other user-specific information is written. The ID data is designed so that even if the program runs away, the ID data is not easily destroyed.

【0008】しかしながら、外部から加わる静電気やハ
ードウェアの障害に伴うパルス電圧の状態や、プログラ
ムの暴走の状況によっては、メモリハードウェア(RO
M,RAM,EEPROM)の障害には至らないが、R
AMに読み込まれたIDデータのみならずEEPROM
のIDデータも破壊されてしまうことがある。
However, depending on the state of pulse voltage due to static electricity applied from the outside or hardware failure, or the state of program runaway, the memory hardware (RO)
(M, RAM, EEPROM)
EEPROM as well as ID data read into AM
ID data may also be destroyed.

【0009】RAMに読み込まれたIDデータのみが破
壊された場合には、EEPROMのIDデータが正常で
り、RAMにハードウェア障害がなければ、いったん電
源を切って再投入することにより復旧が可能であるが、
EEPROMのIDデータが破壊された場合には、電源
を再投入しても復旧せず、以降、通常動作が行えなくな
る。なお、EEPROMのIDデータが破壊されても、
メモリハードウェアには障害がなく、RAMのIDデー
タが破壊されなかった場合には、電源を切るまでは通常
動作が可能であるが、一度電源を切ると、以後、電源を
再投入しても通常動作が行えなくなる。
If only the ID data read into the RAM is destroyed, the ID data in the EEPROM is normal, and if there is no hardware failure in the RAM, the power can be restored by turning the power off and on again. In Although,
If the ID data in the EEPROM is destroyed, it will not be restored even if the power is turned on again, and the normal operation cannot be performed thereafter. Even if the EEPROM ID data is destroyed,
If there is no failure in the memory hardware and the ID data in the RAM is not destroyed, normal operation is possible until the power is turned off. However, once the power is turned off, even if the power is turned on again, Normal operation cannot be performed.

【0010】この問題を解決することができる一つの方
法として、特開平7―74796号公報には、EEPR
OMに記憶する通信パラメータに有効性を識別できる判
定符号を付加すると共に、同じ通信パラメータをROM
にも記憶し、EEPROMのデータが正常でない場合に
はROMのデータを読み込んで使用するデータ処理装置
が提案されている。しかし、この方法はROMに装置ご
とに異なるデータを記憶させる必要があり、ROMの製
作に工数がかかるほか端末固有情報の変更が困難とな
り、経済性にも問題がある。
[0010] One method that can solve this problem is disclosed in Japanese Patent Application Laid-Open No. Hei 7-74796, which discloses an EEPR.
A determination code for identifying validity is added to the communication parameters stored in the OM, and the same communication parameters are stored in the ROM.
There has been proposed a data processing device which stores the data in the EEPROM and reads and uses the data in the ROM when the data in the EEPROM is not normal. However, in this method, it is necessary to store different data in the ROM for each device, which requires a lot of man-hours in manufacturing the ROM, makes it difficult to change terminal-specific information, and has a problem in economy.

【0011】本発明の目的は、ROMには共通データの
みを記憶させ、IDデータのバックアップをEEPRO
M内に保有することにより、端末固有情報の変更も容易
で上述した問題点を解決できるIDデータバックアップ
方法および同方法を用いた携帯端末を提供することであ
る。
An object of the present invention is to store only common data in a ROM and to back up ID data by EEPROM.
An object of the present invention is to provide an ID data backup method capable of easily changing the terminal-specific information and solving the above-mentioned problems by holding the ID data in the M, and a portable terminal using the method.

【0012】[0012]

【課題を解決するための手段】請求項1のIDデータバ
ックアップ方法は、端末の識別番号を含む端末固有のI
Dデータを書き換え可能な不揮発性メモリに記憶し、電
源投入時にRAMに読み込み使用する携帯端末のIDデ
ータバックアップ方法であって、前記不揮発性メモリ内
の離れたエリアにチェック情報を付加した同一内容のI
Dデータを複数記憶し、電源投入時RAMに読み込まれ
たあるエリアのIDデータが破壊されていたとき、前記
不揮発性メモリの他のエリアに記憶されているIDデー
タを使用すると共にこのIDデータで前記不揮発性メモ
リの破壊されたIDデータの書き換え修復を行うことを
特徴としている。
According to a first aspect of the present invention, there is provided an ID data backup method, comprising:
An ID data backup method for a portable terminal in which D data is stored in a rewritable non-volatile memory and read into the RAM when the power is turned on, wherein the check information is added to a remote area in the non-volatile memory. I
When a plurality of D data are stored and the ID data of a certain area read into the RAM at power-on is destroyed, the ID data stored in another area of the non-volatile memory is used and the ID data is used. It is characterized in that rewriting and repair of the destroyed ID data in the nonvolatile memory are performed.

【0013】請求項2のIDデータバックアップ方法
は、請求項1記載のIDデータバックアップ方法におい
て、前記不揮発性メモリに第1のIDデータと第2のI
Dデータとの2個のIDデータを記憶し、RAMに読み
込まれた前記第1のIDデータが正常であればそのID
データで前記不揮発性メモリの第2のIDデータを書き
換えてから使用を開始し、RAMに読み込まれた前記第
1のIDデータが破壊されていたときには、前記第2の
IDデータをRAMに読み込んで正常であればそのID
データで前記不揮発性メモリの第1のIDデータを書き
換えてから使用を開始することを特徴としている。
According to a second aspect of the present invention, there is provided the ID data backup method according to the first aspect, wherein the first ID data and the second ID data are stored in the nonvolatile memory.
D data and two ID data, and if the first ID data read into the RAM is normal, the ID
When the second ID data of the nonvolatile memory is rewritten with the data and use is started, and when the first ID data read into the RAM has been destroyed, the second ID data is read into the RAM. If normal, its ID
The method is characterized in that the use is started after rewriting the first ID data of the nonvolatile memory with data.

【0014】請求項3のIDデータバックアップ方法
は、請求項1記載のIDデータバックアップ方法におい
て、前記不揮発性メモリに第1のIDデータと第2のI
Dデータとの2個のIDデータを記憶し、電源投入時に
前記第1のIDデータ及び第2のIDデータをRAMに
読み込み、RAMに読み込まれた前記第1のIDデータ
及び第2のIDデータの双方が共に正常なときは、RA
Mに読み込まれた前記第1のIDデータを使用し、RA
Mに読み込まれた前記第1のIDデータのみが破壊され
ていたときには、RAMに読み込まれた正常な前記第2
のIDデータで前記不揮発性メモリの第1のIDデータ
を修復すると共にRAMに読み込まれた前記第1のID
データを修復後に再度確認して使用し、RAMに読み込
まれた前記第1のIDデータが修復不能の場合はRAM
に読み込まれた前記第2のIDデータを使用し、RAM
に読み込まれた前記第2のIDデータのみが破壊されて
いたときは、RAMに読み込まれた正常な前記第1のI
Dデータで前記不揮発性メモリの第2のIDデータを修
復することを特徴としている。
According to a third aspect of the present invention, there is provided the ID data backup method according to the first aspect, wherein the first ID data and the second I / O are stored in the nonvolatile memory.
D data and two ID data, and when the power is turned on, the first ID data and the second ID data are read into a RAM, and the first ID data and the second ID data read into the RAM are stored. If both are normal, RA
M, using the first ID data read into M
When only the first ID data read into the M is destroyed, the normal second ID data read into the RAM
The first ID data in the nonvolatile memory is restored with the ID data of
If the first ID data read into the RAM cannot be restored, the data is used again after the data has been restored.
Using the second ID data read into the RAM
If only the second ID data read into the RAM has been destroyed, the normal first I
The method is characterized in that the second ID data in the nonvolatile memory is restored with D data.

【0015】請求項4の携帯端末は、請求項1,請求項
2又は請求項3に記載したIDデータバックアップ方法
を使用し、IDデータ破壊時の動作不良を低減したこと
を特徴としている。
According to a fourth aspect of the present invention, there is provided a portable terminal using the ID data backup method according to the first, second, or third aspect, and reducing malfunctions when the ID data is destroyed.

【0016】[0016]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0017】図1は本発明の第1の実施形態のメモリ構
成を示す説明図である。
FIG. 1 is an explanatory diagram showing a memory configuration according to the first embodiment of the present invention.

【0018】本実施形態のIDデータバックアップ方法
におけるメモリ構成は、図1に示すように、プログラム
等の各装置に共通の情報を記憶するROM6と、IDデ
ータを記憶する書き込み可能な不揮発性メモリであるE
EPROM7と、電源印加時のみリフレッシュ動作によ
り記憶を保持するRAM8とから成り、EEPROM7
を通常使用エリアAとバックアップ用として使用するバ
ックアップ用エリアBとに分け、IDデータは通常使用
エリアAとバックアップ用エリアBとの2箇所に同一の
データが記憶されている。通常使用エリアAのIDデー
タ(第1のIDデータ)をIDデータAe、バックアッ
プ用エリアBのIDデータ(第2のIDデータ)をID
データBeで表してあり、各IDデータにはチェックサ
ムによるデータの良否判定が行えるように、データ部に
加えチェックサム値が格納される参照部が付加されてい
る。
As shown in FIG. 1, the memory configuration in the ID data backup method according to the present embodiment includes a ROM 6 for storing information such as a program common to each device, and a writable nonvolatile memory for storing ID data. An E
The EEPROM 7 includes an EPROM 7 and a RAM 8 that retains data by a refresh operation only when power is applied.
Is divided into a normal use area A and a backup area B used for backup, and the same ID data is stored in two places of the normal use area A and the backup area B. The ID data (first ID data) of the normal use area A is ID data Ae, and the ID data of the backup area B (second ID data) is ID.
Each ID data is provided with a reference portion in which a checksum value is stored in addition to a data portion so that data can be determined based on a checksum.

【0019】電源が投入されると、EEPROM7のデ
ータはRAM8のEEPROM領域Rに読み込まれ、E
EPROM7のIDデータAe及びIDデータBeは、
それぞれIDデータAr及びIDデータBrとして記憶
される。IDデータAr及びIDデータBrは、それぞ
れチェックサムによる良否判定を受け、共に異常がない
場合はIDデータArを使用してそのまま通常動作に入
る。判定の結果、一方に異常があった場合には次のよう
に処理される。まず、IDデータArのみが異常の場合
には、正常なIDデータBrを書き込んでEEPROM
7のIDデータAeを修復した後に、IDデータBrを
IDデータArの位置にコピーして修復してから再度確
認し、異常がなければ修復されたIDデータArを使用
して通常動作に入るが、修復不能の場合はRAM8に読
み込まれた正常なIDデータBrを使用して通常動作に
入る。逆に、IDデータBrのみが異常の場合は、正常
なIDデータArを書き込みEEPROM7のIDデー
タBeを修復した後、正常なIDデータArを使用して
通常動作に入る。これにより、電源投入時にRAMに読
み込んだIDデータArとIDデータBrとの双方が破
壊されていない限り通常動作を行うことができ、不揮発
性メモリにハードウェア障害がなければ破壊されたID
データの復旧が行われる。更に、RAMのメモリハード
ウェア障害に対してもバックアップ効果を発揮すること
ができ、装置の信頼性を大きく向上させることができ
る。
When the power is turned on, the data in the EEPROM 7 is read into the EEPROM area R of the RAM 8 and
The ID data Ae and the ID data Be of the EPROM 7 are
They are stored as ID data Ar and ID data Br, respectively. Each of the ID data Ar and the ID data Br is judged to be good or bad by a checksum. If there is no abnormality, the normal operation is started using the ID data Ar. If the result of the determination indicates that one of the two is abnormal, the following process is performed. First, when only the ID data Ar is abnormal, the normal ID data Br is written to the EEPROM.
After the ID data Ae of No. 7 is restored, the ID data Br is copied to the position of the ID data Ar and restored, and then checked again. If there is no abnormality, the normal operation is started using the restored ID data Ar. If the data cannot be repaired, normal operation is started using the normal ID data Br read into the RAM 8. Conversely, if only the ID data Br is abnormal, the normal operation is started using the normal ID data Ar after writing the normal ID data Ar and restoring the ID data Be in the EEPROM 7. As a result, the normal operation can be performed as long as both the ID data Ar and the ID data Br read into the RAM when the power is turned on are not destroyed.
Data recovery is performed. Further, a backup effect can be exerted against a memory hardware failure of the RAM, and the reliability of the device can be greatly improved.

【0020】図2は、電源投入時にIDデータを確認す
る際のフローチャートである。電源が投入されると、最
初に、EEPROMのデータがRAMのEEPROM領
域Rにコピーされる(ステップS1)。通常使用エリア
AのIDデータArが破壊されていないか、データ部の
チェックサムを演算して参照部と比較し確認する(ステ
ップS2)。IDデータArが正常な場合には(ステッ
プS3)、続いてバックアップ用エリアBのIDデータ
Brを確認する(ステップS4)。IDデータBrも正
常ならば(ステップS5)、ここで確認動作を終了し、
以後、RAMのIDデータArを使用しその内容に従っ
た通常動作を行う(ステップS6)。
FIG. 2 is a flowchart for confirming the ID data when the power is turned on. When the power is turned on, first, the data of the EEPROM is copied to the EEPROM area R of the RAM (step S1). The checksum of the data part is calculated and compared with the reference part to check whether the ID data Ar of the normal use area A has been destroyed (step S2). If the ID data Ar is normal (step S3), the ID data Br of the backup area B is checked (step S4). If the ID data Br is also normal (step S5), the confirmation operation is terminated here.
Thereafter, normal operation is performed according to the contents using the ID data Ar of the RAM (step S6).

【0021】ステップS4でIDデータBrが破壊され
ていた場合には、正常が確認されたRAM上のIDデー
タArをEEPROMのバックアップ用エリアBのID
データBeにコピーして修正し(ステップS7)、確認
動作を終了しIDデータArを使用して通常動作を行う
(ステップS6)。
If the ID data Br has been destroyed in step S4, the ID data Ar on the RAM for which normality has been confirmed is stored in the backup area B of the EEPROM.
The data Be is copied and corrected (Step S7), the confirmation operation is completed, and the normal operation is performed using the ID data Ar (Step S6).

【0022】又、ステップS3における最初の確認時に
IDデータArが破壊されていた場合にも、続いてID
データBrを確認する(ステップS8)。IDデータB
rが正常であれば(ステップS9)、正常なIDデータ
BrをEEPROMの通常使用エリアAのIDデータA
eにコピーして修正すると共に(ステップS10)、I
DデータBrをRAM上のIDデータArの位置にコピ
ーして修正し(ステップS11)、修正後のIDデータ
Arの再確認を行う(ステップS12)。その結果、修
正後のIDデータArが正常であれば(ステップS1
3)、確認動作を終了し修正したIDデータArを使用
して通常動作を行う(ステップS6)。
If the ID data Ar is destroyed at the time of the first confirmation in step S3,
The data Br is confirmed (step S8). ID data B
If r is normal (step S9), the normal ID data Br is transferred to the ID data A in the normal use area A of the EEPROM.
e and corrected (step S10).
The D data Br is copied to the position of the ID data Ar on the RAM and corrected (step S11), and the corrected ID data Ar is checked again (step S12). As a result, if the corrected ID data Ar is normal (step S1)
3) After the confirmation operation is completed, the normal operation is performed using the corrected ID data Ar (step S6).

【0023】コピー修正後のIDデータArが破壊され
ていた場合には(ステップS9)、RAMのIDデータ
Arの格納位置にメモリハードウェア障害が発生したと
判断し、RAM上の正常なIDデータBrを使用して通
常動作を行うようにIDデータのアドレス先を変更する
(ステップS11)。
If the ID data Ar after the copy correction has been destroyed (step S9), it is determined that a memory hardware failure has occurred in the storage location of the ID data Ar in the RAM, and the normal ID data The address destination of the ID data is changed to perform the normal operation using Br (step S11).

【0024】なお、ステップS9における確認時、ID
データBrが破壊されていた場合には、通常使用エリア
A及びバックアップ用エリアBの双方のIDデータが破
壊されているので、IDデータ異常通知を行う(ステッ
プS15)。
At the time of confirmation in step S9, the ID
If the data Br has been destroyed, since the ID data in both the normal use area A and the backup area B has been destroyed, an ID data abnormality notification is performed (step S15).

【0025】上述の説明においては、電源投入時に通常
使用エリア及びバックアップ用エリアのIDデータをR
AMの異なる箇所に同時に読み出し、通常使用エリアの
IDデータを読み込んだRAMの箇所(アドレス)を優
先使用し、ここに読み込んだIDデータArのみが異常
の場合に、正常なIDデータBrをここにコピーして修
復し、再度確認して異常がなければ修復されたIDデー
タArを使用して通常動作に入るが、修復不能の場合に
はRAMの他の箇所に読み込まれた正常なIDデータB
rを使用するためIDデータのアドレス変更を行うもの
とした。これにより、RAMのハードウェア障害にも対
応できるが、これを省略しても不揮発性メモリに格納さ
れたIDデータの破壊に対しては十分のバックアップ効
果を発揮することができる。
In the above description, when the power is turned on, the ID data of the normal use area and the backup area
Simultaneously read to different locations of the AM, preferentially use the location (address) of the RAM where the ID data of the normally used area is read, and if only the read ID data Ar is abnormal, place the normal ID data Br here. Copying and restoring, and confirming again, if there is no abnormality, the normal operation is started using the restored ID data Ar, but if the restoration is not possible, the normal ID data B read into another part of the RAM is used.
In order to use r, the address of the ID data is changed. Although this can cope with a hardware failure of the RAM, even if it is omitted, a sufficient backup effect can be exerted against destruction of ID data stored in the nonvolatile memory.

【0026】上述した第1の実施形態は、電源投入時に
EEPROMの2箇所に記憶されているIDデータをR
AM上の異なる場所に読み込み、それぞれチェックサム
を演算して確認を行う方法であり、RAM上にIDデー
タ用の領域を2箇所確保し、電源投入の都度2回のチェ
ックサム演算を行う必要があるが、異常が検出された場
合のみ修復のために正常なIDデータを書き込めばよ
く、EEPROMに対する書き込みの回数が少なく、R
AMハードウェアの一部の部分障害に対してバックアッ
プの効果が得られる利点がある。
In the first embodiment, when the power is turned on, the ID data stored in
This is a method in which data is read into different locations on the AM, and checksums are calculated for each of them, and confirmation is performed. It is necessary to secure two ID data areas on the RAM and perform checksum calculation twice each time the power is turned on. However, it is sufficient to write normal ID data for restoration only when an abnormality is detected, and the number of times of writing to the EEPROM is small.
There is an advantage that a backup effect can be obtained for a partial failure of the AM hardware.

【0027】これに対し、以下に説明する第2の実施形
態は、電源投入時にEEPROMの通常使用エリアAの
データのみをRAMにロードするもので、読み込まれた
IDデータArに異常がなければバックアップ用エリア
BのIDデータBeは読み込まず、チェックサムの演算
も1回でよい方法である。
On the other hand, in the second embodiment described below, only the data in the normal use area A of the EEPROM is loaded into the RAM when the power is turned on. This is a method in which the ID data Be of the service area B is not read, and the calculation of the checksum only needs to be performed once.

【0028】図3は、第2の実施形態における電源投入
時のIDデータの確認動作のフローチャートである。電
源が投入されると、EEPROMの通常使用エリアAの
データのみがRAMにコピーされ(ステップS21)、
RAM上に読み込まれたIDデータArが破壊されてい
ないか、チェックサムを演算して確認する(ステップS
22)。IDデータArが正常な場合には(ステップS
23)、確認された正常なIDデータArでEEPRO
Mのバックアップ用エリアBのIDデータBeを書き換
え(ステップS24)、以後、IDデータArを使用し
て通常動作を行う(ステップS25)。
FIG. 3 is a flowchart of an operation of confirming ID data at the time of power-on according to the second embodiment. When the power is turned on, only the data in the normal use area A of the EEPROM is copied to the RAM (step S21),
The checksum is calculated to check whether the ID data Ar read in the RAM is destroyed (step S).
22). If the ID data Ar is normal (step S
23), EEPRO with confirmed normal ID data Ar
The ID data Be of the M backup area B is rewritten (step S24), and thereafter, the normal operation is performed using the ID data Ar (step S25).

【0029】ステップS24でIDデータArが破壊さ
れていた場合には、EEPROMのバックアップ用エリ
アBのIDデータBeを読み出してIDデータArを書
き換えてIDデータBrとし(ステップS26)、チェ
ックサムを演算して確認する(ステップS27)。この
確認の結果、IDデータBrが正常であれば(ステップ
S28)、IDデータBrでEEPROMの通常使用エ
リアA内のIDデータAeを書き換えて復旧し(ステッ
プS29)、以後、IDデータBrを使用して通常動作
を行う(ステップS30)。
If the ID data Ar has been destroyed in step S24, the ID data Be in the backup area B of the EEPROM is read out, the ID data Ar is rewritten into ID data Br (step S26), and the checksum is calculated. Confirmation (step S27). As a result of this confirmation, if the ID data Br is normal (step S28), the ID data Ae in the normal use area A of the EEPROM is rewritten with the ID data Br and restored (step S29), and thereafter, the ID data Br is used. Then, the normal operation is performed (step S30).

【0030】なお、ステップS28における判定が異常
の場合には、通常使用エリアA及びバックアップ用エリ
アBの双方のIDデータが破壊されているので、IDデ
ータ異常通知を行い(ステップS31)、処理を終了す
る。
If the determination in step S28 is abnormal, since the ID data in both the normal use area A and the backup area B has been destroyed, an ID data abnormality notification is performed (step S31), and the processing is terminated. finish.

【0031】上述した第2の実施形態では、電源投入時
に常に通常使用エリアのIDデータをRAMに読み出
し、正常時はバックアップ用エリアのIDデータを読み
出さず異常のときのみ読み出すものとし、バックアップ
用エリアのIDデータの正当性の保証のため、電源投入
の都度、正常なIDデータで書き換えを行うようにした
ものである。この書き換え回数を減らすためには、例え
ば、電源投入の都度でなく数度に1回の割で書き換えを
行う方法などが考えられるが、電源投入の際に通常使用
エリアとバックアップ用エリアのIDデータを交互に読
み出すものとすれば、正常時の正当性保証のための書き
換えを行わなくても十分バックアップ効果を期待するこ
とができる。
In the second embodiment described above, the ID data in the normal use area is always read out to the RAM when the power is turned on, and the ID data in the backup area is not read out when the power supply is normal, but only when there is an abnormality. In order to guarantee the validity of the ID data, the data is rewritten with normal ID data every time the power is turned on. In order to reduce the number of times of rewriting, for example, a method of rewriting once every several times instead of every time when power is turned on can be considered. However, when the power is turned on, the ID data of the normal use area and the backup area are considered. Are read alternately, a sufficient backup effect can be expected without performing rewriting for guaranteeing correctness in a normal state.

【0032】なお、上述の第1及び第2の実施形態で
は、共に同一内容のIDデーダを書き換え可能な不揮発
性メモリ上の2箇所に記憶させるものとしたが、2箇所
で十分にバックアップ効果を発揮できるが、3箇所以上
に記憶させてもよい。
In the above-described first and second embodiments, ID data having the same content is stored in two locations on a rewritable nonvolatile memory. However, two locations can sufficiently provide a backup effect. It can be demonstrated, but it may be stored in three or more places.

【0033】[0033]

【発明の効果】以上説明したように、本発明のIDデー
タバックアップ方法および同方法を用いた携帯端末は、
装置固有のIDデータを書き換え可能な不揮発性メモリ
内の少なくとも2箇所にチェック情報と共に格納し、電
源投入時にRAMに読み込んだときにチェック情報を用
いて異常の有無をチェックし、正常なIDデータを使用
して通常動作を行うと共に、不揮発性メモリ内の異常な
IDデータの書き換え修復を行うため、電源投入時に複
数のIDデータが同時に破壊されている場合を除き通常
動作を行わせることができ、装置の信頼性を向上させる
ことができる。
As described above, the ID data backup method of the present invention and the portable terminal using the same are:
The ID data unique to the device is stored together with the check information in at least two locations in the rewritable nonvolatile memory, and when read into the RAM at power-on, the presence or absence of an abnormality is checked using the check information, and the normal ID data is checked. In addition to performing normal operation by using, and rewriting and restoring abnormal ID data in the non-volatile memory, normal operation can be performed unless a plurality of ID data are simultaneously destroyed at power-on, The reliability of the device can be improved.

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

【図1】本発明の第1の実施形態のメモリ構成を示す説
明図である。
FIG. 1 is an explanatory diagram showing a memory configuration according to a first embodiment of the present invention.

【図2】第1の実施形態の電源投入時のIDデータ確認
動作のフローチャートである。
FIG. 2 is a flowchart of an ID data confirmation operation at power-on according to the first embodiment.

【図3】第2の実施形態の電源投入時のIDデータ確認
動作のフローチャートである。
FIG. 3 is a flowchart of an ID data confirmation operation at power-on according to the second embodiment.

【図4】携帯端末の一般的構成を示すブロック図であ
る。
FIG. 4 is a block diagram showing a general configuration of a mobile terminal.

【図5】従来例のIDデータ確認動作のフローチャート
である。
FIG. 5 is a flowchart of an ID data confirmation operation according to a conventional example.

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

1 無線部 2 ベースバンド部 3 音声コーデック 4 スピーカ 5 マイク 6,10 ROM 7 EEPROM 8,11 RAM 9 メインCPU 12 サブCPU 13 キー 14 LCD A 通常使用エリア B バックアップ用エリア R EEPROM領域 DESCRIPTION OF SYMBOLS 1 Radio part 2 Baseband part 3 Audio codec 4 Speaker 5 Microphone 6,10 ROM 7 EEPROM 8,11 RAM 9 Main CPU 12 Sub CPU 13 Key 14 LCD A Normal use area B Backup area R EEPROM area

フロントページの続き (56)参考文献 特開 平7−74796(JP,A) 特開 昭57−36352(JP,A) 特開 平2−228747(JP,A) 特開 平7−28707(JP,A) 特開 昭62−137651(JP,A) 特開 平4−364551(JP,A) 特開 平9−282237(JP,A) 特開 平5−225073(JP,A) 特開 平7−287672(JP,A) 特開 平2−245953(JP,A) 実開 昭62−147043(JP,U) (58)調査した分野(Int.Cl.6,DB名) G06F 12/16 H04B 7/26 H04Q 7/38 Continuation of front page (56) References JP-A-7-74796 (JP, A) JP-A-57-36352 (JP, A) JP-A-2-228747 (JP, A) JP-A-7-28707 (JP) JP-A-62-137651 (JP, A) JP-A-4-364551 (JP, A) JP-A-9-282237 (JP, A) JP-A-5-225073 (JP, A) 7-287672 (JP, A) JP-A-2-245953 (JP, A) JP-A-62-147043 (JP, U) (58) Fields investigated (Int. Cl. 6 , DB name) G06F 12/16 H04B 7/26 H04Q 7/38

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 端末の識別番号を含む端末固有のIDデ
ータを書き換え可能な不揮発性メモリに記憶し、電源投
入時にRAMに読み込み使用する携帯端末のIDデータ
バックアップ方法であって、前記不揮発性メモリ内の離
れたエリアにチェック情報を付加した同一内容のIDデ
ータを複数記憶し、電源投入時RAMに読み込まれたあ
るエリアのIDデータが破壊されていたとき、前記不揮
発性メモリの他のエリアに記憶されているIDデータを
使用すると共にこのIDデータで前記不揮発性メモリの
破壊されたIDデータの書き換え修復を行うことを特徴
とするIDデータバックアップ方法。
1. A portable terminal ID data backup method for storing terminal-specific ID data including a terminal identification number in a rewritable non-volatile memory and reading the data into a RAM when power is turned on. A plurality of pieces of ID data having the same contents with check information added are stored in distant areas within the area, and when the ID data of an area read into the RAM at power-on is destroyed, the ID data is stored in another area of the nonvolatile memory. An ID data backup method, wherein stored ID data is used, and the ID data is used to rewrite and repair the destroyed ID data in the nonvolatile memory.
【請求項2】 前記不揮発性メモリに第1のIDデータ
と第2のIDデータとの2個のIDデータを記憶し、R
AMに読み込まれた前記第1のIDデータが正常であれ
ばそのIDデータで前記不揮発性メモリの第2のIDデ
ータを書き換えてから使用を開始し、RAMに読み込ま
れた前記第1のIDデータが破壊されていたときには、
前記第2のIDデータをRAMに読み込んで正常であれ
ばそのIDデータで前記不揮発性メモリの第1のIDデ
ータを書き換えてから使用を開始することを特徴とする
請求項1記載のIDデータバックアップ方法。
2. The nonvolatile memory according to claim 1, wherein two pieces of ID data of a first ID data and a second ID data are stored in said non-volatile memory.
If the first ID data read into the AM is normal, the second ID data in the non-volatile memory is rewritten with the ID data and then use is started, and the first ID data read into the RAM is started. Was destroyed,
2. The ID data backup according to claim 1, wherein the second ID data is read into a RAM, and if normal, the first ID data in the nonvolatile memory is rewritten with the ID data before use is started. Method.
【請求項3】 前記不揮発性メモリに第1のIDデータ
と第2のIDデータとの2個のIDデータを記憶し、電
源投入時に前記第1のIDデータ及び第2のIDデータ
をRAMに読み込み、RAMに読み込まれた前記第1の
IDデータ及び第2のIDデータの双方が共に正常なと
きは、RAMに読み込まれた前記第1のIDデータを使
用し、RAMに読み込まれた前記第1のIDデータのみ
が破壊されていたときには、RAMに読み込まれた正常
な前記第2のIDデータで前記不揮発性メモリの第1の
IDデータを修復すると共にRAMに読み込まれた前記
第1のIDデータを修復後に再度確認して使用し、RA
Mに読み込まれた前記第1のIDデータが修復不能の場
合はRAMに読み込まれた前記第2のIDデータを使用
し、RAMに読み込まれた前記第2のIDデータのみが
破壊されていたときは、RAMに読み込まれた正常な前
記第1のIDデータで前記不揮発性メモリの第2のID
データを修復することを特徴とする請求項1記載のID
データバックアップ方法。
3. The non-volatile memory stores two pieces of ID data of a first ID data and a second ID data, and stores the first ID data and the second ID data in a RAM when power is turned on. When both the first ID data and the second ID data read into the RAM are normal, the first ID data read into the RAM is used by using the first ID data read into the RAM. When only the first ID data has been destroyed, the first ID data in the nonvolatile memory is restored with the normal second ID data read into the RAM, and the first ID read into the RAM is restored. After repairing the data, check it again and use it.
When the first ID data read into M cannot be recovered, the second ID data read into RAM is used, and only the second ID data read into RAM is destroyed. Is the normal first ID data read into the RAM and the second ID in the nonvolatile memory.
2. The ID according to claim 1, wherein the data is restored.
Data backup method.
【請求項4】 請求項1,請求項2又は請求項3に記載
したIDデータバックアップ方法を使用し、IDデータ
破壊時の動作不良を低減したことを特徴とする携帯端
末。
4. A portable terminal using the ID data backup method according to claim 1, wherein the operation failure at the time of ID data destruction is reduced.
JP8199346A 1996-07-29 1996-07-29 ID data backup method and portable terminal using the same Expired - Fee Related JP2968728B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8199346A JP2968728B2 (en) 1996-07-29 1996-07-29 ID data backup method and portable terminal using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8199346A JP2968728B2 (en) 1996-07-29 1996-07-29 ID data backup method and portable terminal using the same

Publications (2)

Publication Number Publication Date
JPH1049445A JPH1049445A (en) 1998-02-20
JP2968728B2 true JP2968728B2 (en) 1999-11-02

Family

ID=16406247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8199346A Expired - Fee Related JP2968728B2 (en) 1996-07-29 1996-07-29 ID data backup method and portable terminal using the same

Country Status (1)

Country Link
JP (1) JP2968728B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100831372B1 (en) * 2001-07-28 2008-05-21 삼성전자주식회사 Portable device having the function file deletion/restoration and a method using the same
JP4812278B2 (en) * 2004-10-18 2011-11-09 日産自動車株式会社 Data rewriting method for electronic control unit
JP4648097B2 (en) * 2005-06-06 2011-03-09 シャープ株式会社 Registry information repair method and information processing apparatus
JP2007072695A (en) * 2005-09-06 2007-03-22 Of Networks:Kk Redundancy storage method and program to flash memory
JP2008176487A (en) * 2007-01-17 2008-07-31 Mitsubishi Electric Corp Data storage unit, and theft prevention unit having the same

Also Published As

Publication number Publication date
JPH1049445A (en) 1998-02-20

Similar Documents

Publication Publication Date Title
JP2002351685A (en) Data updating method and controller for nonvolatile memory
KR100378224B1 (en) Ic card
JP2968728B2 (en) ID data backup method and portable terminal using the same
US20010046157A1 (en) Electronic apparatus
JP2009271737A (en) Information processor
JP2002062956A (en) Service interruption processing method and service interruption processing device
JP3376331B2 (en) Storage method using flash memory and storage medium storing storage control program
JPH0918942A (en) Radio equipment with theft protection function
JP2004021520A (en) Electronic controller for vehicle
JP2004078847A (en) Equipment with memory-switching means
JP2007148684A (en) Memory checking apparatus, mobile terminal, cellphone, and method for checking its memory
JP3136996B2 (en) Storage device
JP2954173B1 (en) Method for preventing unauthorized use of pager device and pager device with unauthorized use prevention
KR100628176B1 (en) Method for upgrading program stored in information terminal
JP2701591B2 (en) Self-diagnosis method for car telephone equipment
JP3011116B2 (en) Station data update circuit
JPH10177527A (en) Method for writing and reading-out data in and from flash memory, and storage device using the memory
JP2738991B2 (en) Communication device
JPH06303658A (en) Electronic exchange
JPH06290112A (en) Bit data storage device using eeprom
CN114911508A (en) Update processing method and system for application program of vehicle ECU
JPH10133958A (en) Communication device control circuit
JP2001101079A (en) Portable terminal and user data protecting method
KR19990075542A (en) How to recover ID of wireless telephone
JPH04293139A (en) Data holding method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990721

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20070820

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20080820

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees