JP2001094498A - Wireless communication apparatus - Google Patents

Wireless communication apparatus

Info

Publication number
JP2001094498A
JP2001094498A JP26457399A JP26457399A JP2001094498A JP 2001094498 A JP2001094498 A JP 2001094498A JP 26457399 A JP26457399 A JP 26457399A JP 26457399 A JP26457399 A JP 26457399A JP 2001094498 A JP2001094498 A JP 2001094498A
Authority
JP
Japan
Prior art keywords
area
program
data
interrupt
wireless communication
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.)
Withdrawn
Application number
JP26457399A
Other languages
Japanese (ja)
Inventor
Koichi Miyasaka
浩一 宮坂
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP26457399A priority Critical patent/JP2001094498A/en
Publication of JP2001094498A publication Critical patent/JP2001094498A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To update data in a nonvolatile memory built in a wireless communication apparatus with a simple method. SOLUTION: A data transfer program to be updated that is stored in the nonvolatile memory words on a RAM and data transmitted from a wireless communication means are used for update data to apply erasure, update processing to the nonvolatile memory.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、書き換え可能な不
揮発性メモリを具備する無線通信機器に関し、そのメモ
リ内容の更新方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a wireless communication device having a rewritable nonvolatile memory, and to a method for updating the contents of the memory.

【0002】[0002]

【従来の技術】近年、無線通信機器、取り分け携帯電話
等に関してはそのデータを格納、保持する手段としてフ
ラッシュメモリー、EEPROMなどの不揮発性メモリ
を具備することが常である。携帯電話に限らず無線通信
機能を有する機器は多岐に渡り、小型化が進むなかでそ
のデータの書き換え方式に関してより簡易な方式、付属
回路が少ない方式が求められている。
2. Description of the Related Art In recent years, non-volatile memories such as flash memories and EEPROMs are usually provided as means for storing and holding data of wireless communication devices, especially mobile phones. Not only mobile phones but also a wide variety of devices having a wireless communication function, and as miniaturization progresses, a simpler method for rewriting data and a method with fewer attached circuits are required.

【0003】このフラッシュメモリー、EEPROM等
の書き換え可能な不揮発性メモリの書き換え方式は無線
通信機器に限らず必要とされ、実際に各種提案されてお
り特開平7−193860及び特開平9−305395
にフラッシュメモリのデータを更新する場合のプリント
基板に装着したまま行う方式が記載されている。
A rewriting method for a rewritable non-volatile memory such as a flash memory and an EEPROM is required not only for wireless communication equipment, but actually various proposals have been made.
Describes a method of updating data in a flash memory while the flash memory is attached to a printed circuit board.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前記特
開平9−305395の従来の電子機器にあっては、不
揮発性メモリをプリント基板に装着したまま書き換えを
するためにパソコン等の外部機器とRS232Cやパラ
レルポート等のインターフェース回路を経由する必要が
ありその為のコネクト手段を設置しなければならないと
いう問題点を有していた。
However, in the conventional electronic device disclosed in Japanese Patent Laid-Open No. 9-305395, an external device such as a personal computer and an RS232C or the like are used in order to rewrite data while the nonvolatile memory is mounted on a printed circuit board. There is a problem that it is necessary to go through an interface circuit such as a parallel port or the like, and a connecting means for that must be provided.

【0005】また、特開平7−193860の従来のプ
ログラムメモリを有した携帯端末装置にあっては、プロ
グラム変更用の書き換えプログラムを搭載したメモリ手
段あるいはそれに変わるハードウエアを準備しなくては
ならないという問題点を有していた。
Further, in the portable terminal device having a conventional program memory disclosed in Japanese Patent Application Laid-Open No. 7-193860, it is necessary to prepare a memory means on which a rewrite program for changing a program is mounted or hardware for replacing the memory means. Had problems.

【0006】そこで、本発明は、プログラムの更新性を
向上させた通信機器を提供することを目的とする。
Accordingly, an object of the present invention is to provide a communication device with improved program updateability.

【0007】また、本発明は、プログラム書き換え用の
不揮発性メモリをプログラムメモリと別途準備すること
を解消した書き換え方式を提供することを目的とする。
Another object of the present invention is to provide a rewriting method in which a nonvolatile memory for rewriting a program is not separately prepared from a program memory.

【0008】[0008]

【課題を解決するための手段】請求項1記載の無線通信
機器は、アンテナ手段および無線信号受信手段、キー入
力手段、表示手段、リセット手段を有し、データの書き
換え可能な不揮発性メモリにアクセス、更新を行うCP
Uを具備する無線通信機器において、前記不揮発性メモ
リに、初期始動用プログラムであるブートプログラム及
びデータ転送用プログラムであるプログラムローダーを
格納する第1の領域、割り込み処理用の飛び先アドレス
を示す第1の割り込みテーブルを格納する第2の領域、
逐次書き換え可能なアプリケーションプログラムを格納
する第3の領域、前記アプリケーションプログラムの実
行時に割り込み処理を行うための第2の割り込みテーブ
ルを格納する第4の領域を有し、揮発性メモリであるR
AMに前記第1の領域のプログラムローダーを転送およ
び実行することで前記第3の領域のアプリケーションプ
ログラム及び前記第4の領域の前記第2の割り込みテー
ブルの書き換えを行う制御手段を備え、前記アンテナ手
段および無線信号受信手段を介し所定のデータを含む無
線信号発生装置から出力された信号に重畳された前記ア
プリケーションプログラム及び第2の割り込みテーブル
のデータをもって、前記書き換え可能な不揮発性メモリ
の消去、更新を行う機能を備えることを特徴とする。
According to a first aspect of the present invention, there is provided a wireless communication apparatus having an antenna unit, a wireless signal receiving unit, a key input unit, a display unit, and a reset unit, and accessing a data rewritable nonvolatile memory. , CP to update
U, a first area for storing a boot program as an initial start program and a program loader as a data transfer program in the nonvolatile memory, and a first area indicating a jump destination address for interrupt processing. A second area for storing one interrupt table,
R is a volatile memory having a third area for storing a sequentially rewritable application program and a fourth area for storing a second interrupt table for performing interrupt processing when executing the application program.
Control means for rewriting the application program in the third area and the second interrupt table in the fourth area by transferring and executing a program loader in the first area to an AM; And erasing and updating the rewritable nonvolatile memory by using the application program and the data of the second interrupt table superimposed on a signal output from the wireless signal generator including predetermined data via the wireless signal receiving means. It is characterized by having a function to perform.

【0009】前記構成によれば、前記アプリケーション
プログラムの更新の際にフラッシュメモリー等の不揮発
性メモリを物理的に交換、あるいはプリント基板から外
す必要がないばかりでなく、データのやり取りを行うた
めのパソコン等の外部機器とのインターフェース手段を
設ける必要がないため、容易かつ周辺回路機能の追加な
しにプログラムの更新ができるという効果を有する。
According to the above configuration, it is not necessary to physically exchange a nonvolatile memory such as a flash memory or to remove the nonvolatile memory from a printed circuit board when updating the application program, and it is also necessary to provide a personal computer for exchanging data. Since there is no need to provide an interface unit with an external device such as the above, there is an effect that the program can be updated easily and without adding a peripheral circuit function.

【0010】請求項2記載の無線通信機器は、前記アプ
リケーションプログラムを格納する前記第3の領域及び
前記第2の割り込みテーブルを格納する前記第4の領域
を消去、更新する機能に加え、前記プログラムローダー
を前記RAM領域において動作させることにより、前記
ブートプログラム及びプログラムローダーを格納する前
記第1の領域及び前記割り込み処理用の飛び先アドレス
を示す第1の割り込みテーブルを格納する前記第2の領
域も第3の領域、第4の領域と同時あるいは前記第1の
領域、前記第2の領域のみ個別に消去、更新する機能を
有することを特徴とする。
The wireless communication device according to claim 2, wherein the program further comprises a function of deleting and updating the third area for storing the application program and the fourth area for storing the second interrupt table. By operating a loader in the RAM area, the first area for storing the boot program and the program loader and the second area for storing a first interrupt table indicating a jump destination address for the interrupt processing are also provided. It has a function of erasing and updating simultaneously with the third area and the fourth area or individually only in the first area and the second area.

【0011】前記構成によれば、前記ブートプログラ
ム、プログラムローダー及び第2の割り込みテーブルも
更新することが可能となり更新プログラム自体に発生し
た障害も容易に排除することができるという効果を有す
る。
According to the above configuration, the boot program, the program loader, and the second interrupt table can be updated, so that an effect that occurs in the update program itself can be easily eliminated.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施形態を図面に
基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0013】図1は、請求項1記載の発明に係る無線通
信機器の実施例の要部を示す図である。その構成を説明
すると、アンテナ手段となるアンテナ1、無線信号受信
手段となる受信回路2、キー入力手段となるキー入力回
路3、表示手段となる表示パネル4、リセット手段とな
るリセット回路6、CPU7、書き換え可能な不揮発性
メモリーとなるフラッシュメモリ9、揮発性メモリとな
るRAM8から構成される。
FIG. 1 is a diagram showing a main part of an embodiment of a wireless communication device according to the present invention. The configuration will be described. An antenna 1 serving as an antenna means, a receiving circuit 2 serving as a wireless signal receiving means, a key input circuit 3 serving as a key input means, a display panel 4 serving as a display means, a reset circuit 6 serving as a reset means, and a CPU 7 And a flash memory 9 as a rewritable nonvolatile memory and a RAM 8 as a volatile memory.

【0014】図2はCPU7のメモリマップである。総
メモリー空間10は0000HからFFFFHまで64
Kバイトのメモリ空間を実施例として説明する。近年フ
ラッシュメモリ等のサイズが大きくなりメガバイト単位
のデバイスも珍しくないが簡単の為メモリ空間を限っ
た。実施例の一つとして0000Hから07FFHの2
KバイトをRAM11,0800HからFFFFHをフ
ラッシュメモリ12として割り当てた。ここで、RAM
11内の0500Hから07FFHの領域13はフラッ
シュメモリ16に格納されているプログラムがコピーさ
れる領域として割り付けた。
FIG. 2 is a memory map of the CPU 7. Total memory space 10 is 64 from 0000H to FFFFH
A K-byte memory space will be described as an example. In recent years, the size of a flash memory and the like has increased, and a device of a megabyte unit is not uncommon. As one of the embodiments, 2 of 0000H to 07FFH
K bytes were allocated from RAM 11,0800H to FFFFH as flash memory 12. Where RAM
The area 13 from 0500H to 07FFH in 11 is allocated as an area where the program stored in the flash memory 16 is copied.

【0015】またフラッシュメモリ内の割り当てとして
は、0800HからBFE1Hにアプリケーションプロ
グラムを格納する領域14として割り当てる。BFE2
HからBFFFHに前記アプリケーションプログラムの
実行時に割り込み処理を行うための割り込みテーブル2
を領域15として割り当てる。更にC000HからFF
EBHを初期始動用プログラムであるブートプログラム
及びデータ転送用プログラムであるプログラムローダー
用領域16として割り当てる。FFECHからFFFF
Hに割り込み処理用の飛び先アドレスを示す割り込みテ
ーブル1を領域17として割り当てる。
As the allocation in the flash memory, the area from 0800H to BFE1H is allocated as the area 14 for storing the application program. BFE2
H to BFFFH, an interrupt table 2 for performing interrupt processing when executing the application program
Is assigned as the area 15. FF from C000H
The EBH is allocated as a boot program as an initial startup program and a program loader area 16 as a data transfer program. FFECH to FFFF
H is assigned as an area 17 an interrupt table 1 indicating a jump destination address for interrupt processing.

【0016】フラッシュメモリの常として、ブロックご
とに消去書き込みの機能を有している。ここで領域1
4,15,16,17、はフラッシュメモリ消去時に一
括して消去されるブロックに割り当て、アプリケーショ
ンプログラム、割り込みテーブル2、ブートプログラ
ム、プログラムローダー、割り込みテーブル1、をすべ
て更新することも可能である。また、領域14,15と
領域16,17を別々のブロックに割り当てることでア
プリケーションと割り込みテーブル2のみの消去、更
新、あるいはブートプログラム、プログラムローダー、
割り込みテーブル1のみの消去、更新を行うことができ
る。この詳細手順は図4のフローチャートを用いて追っ
て説明を加える。
A flash memory always has an erase / write function for each block. Where region 1
Nos. 4, 15, 16, and 17 can be assigned to blocks to be erased collectively when erasing the flash memory, and the application program, interrupt table 2, boot program, program loader, and interrupt table 1 can all be updated. Also, by allocating the areas 14 and 15 and the areas 16 and 17 to different blocks, only the application and the interrupt table 2 can be erased or updated, or a boot program, a program loader,
Only the interrupt table 1 can be erased and updated. This detailed procedure will be described later with reference to the flowchart of FIG.

【0017】フラッシュメモリを書き換え可能な不揮発
性メモリとして用いる代わりにEEPROM,あるいは
電池等でバックアップされたSRAM等を用いることが
可能である。この場合通常ブロックごとの消去の手法は
取らないため領域14,15,16,17を任意にかつ
個別に書き換えることが可能になるが、その為の手順は
以下図4を用いて説明する手順と同一である。
Instead of using a flash memory as a rewritable nonvolatile memory, an EEPROM or an SRAM backed up by a battery or the like can be used. In this case, since the erasing method for each block is not usually employed, the areas 14, 15, 16, and 17 can be arbitrarily and individually rewritten. The procedure for this is the same as the procedure described below with reference to FIG. Are identical.

【0018】以下、図1及び図4を用いてフラッシュメ
モリへの書き換え手順を説明する。28において図1の
表示パネル4にプログラムスタートの表示を行う。29
のスタートキー入力は図1のキー入力手段3から入力さ
れる。既にアプリケーションプログラムがフラッシュメ
モリ9、図2の14の領域に格納済みである場合は“Y
ES”を選択し既に更新されたアプリケーションを実行
できる。まだ、格納していない場合あるいは消去、更新
したい場合は“NO”を選択し次の処理へ進む。書き換
えコマンドは、所定のデータ信号を重畳した無線信号を
用いて発信されアンテナ1、受信回路2、シリアル通信
5を経由してCPU7で処理される。書き換えコマンド
が受信されたのであれば、図4の31において、図2の
領域16に書き込まれているプログラムローダーが図2
の領域13のRAMにコピーされる。32ではコピーさ
れたプログラムローダーへ処理を移行する。具体的には
割り込み禁止状態にし、ジャンプ命令で処理を移行す
る。本実施例ではプログラムローダーへ処理を移行し無
線通信信号を用いてアプリケーションプログラムをダウ
ンロード中はその他の処理を平行に行うことを考慮して
いないが、以下図3を用いて説明する割り込みテーブル
を移動する方式を採用することにより、必要であるのな
らばマルチタスク処理を実現することも可能である。3
2においてプログラムローダーに処理を移行した後続け
て33においてアプリケーションプログラムを受信す
る。34において図2の14、15の領域のアプリケー
ション及び割り込みテーブル2の消去を行う。ここで処
理は既にRAM11の領域13へ移行しているため、フ
ラッシュメモリ12の領域16、17も同時に消去が可
能である。ブートプログラム、プログラムローダー更に
割り込みテーブル1の書き換えの頻度はアプリケーショ
ンプログラムに比較して少ないことが常であるが、プロ
グラム開発時あるいは製品化後においても容易に変更が
可能であるため開発及び市場サポートが効率的になる。
35において前記受信したアプリケーションプログラム
を領域14へコピーする。全データを受信変更後、本実
施例におけるアプリケーションの消去、更新は終了し以
下図1のリセット回路6により28のスタート状態へ復
帰することができる。ここでリセット回路6を用いるた
めに外部からの信号入力を行っても良いが、本実施例で
説明した書き換えコマンドと同様にリセットコマンドを
所定の無線信号発生装置により送信することで一切の外
部機器との物理的な接続なしで一連の作業を終了させる
ことができる。
The procedure for rewriting the flash memory will be described below with reference to FIGS. At 28, a program start is displayed on the display panel 4 of FIG. 29
Is input from the key input means 3 of FIG. If the application program has already been stored in the flash memory 9 and the area 14 in FIG.
By selecting "ES", the already updated application can be executed. If it is not stored yet, or if it is desired to delete or update, select "NO" and proceed to the next processing. The signal is transmitted using the transmitted wireless signal, and is processed by the CPU 7 via the antenna 1, the receiving circuit 2, and the serial communication 5. If the rewrite command is received, at 31 in FIG. Figure 2 shows the loaded program loader
Is copied to the RAM in the area 13 of FIG. At 32, the process is shifted to the copied program loader. Specifically, the interrupt is disabled and the processing is shifted by a jump instruction. This embodiment does not consider shifting processing to the program loader and performing other processing in parallel while downloading the application program using the wireless communication signal. However, the interruption table described with reference to FIG. By adopting such a method, multitask processing can be realized if necessary. Three
After shifting the processing to the program loader in 2, the application program is received in 33. At 34, the application and the interrupt table 2 in the areas 14 and 15 in FIG. Since the processing has already been shifted to the area 13 of the RAM 11, the areas 16 and 17 of the flash memory 12 can be erased at the same time. The frequency of rewriting the boot program, the program loader, and the interrupt table 1 is usually less than that of the application program, but the development and market support can be easily changed during program development or after commercialization. Be more efficient.
At 35, the received application program is copied to the area 14. After the reception of all data is changed, the erasing and updating of the application in this embodiment are completed, and the reset circuit 6 shown in FIG. Here, an external signal may be input in order to use the reset circuit 6. However, as in the case of the rewrite command described in the present embodiment, a reset command is transmitted by a predetermined wireless signal generator so that any external device can be used. A series of operations can be completed without a physical connection with the server.

【0019】図5において図1の5のシリアル通信手段
の説明を加える。図1を構成するアンテナ1により受信
された無線信号は受信回路2により復号されCPU7に
送られる。受信回路2及びCPU7の通信方法は通常シ
リアル通信とパラレル通信に大別されるが本実施例では
シリアル通信の通信方式を紹介する。図5はその要部を
示す。47は受信回路2からCPU7へ送信されるデー
タを示すSIN,48はCPU7から受信回路2へ送信
されるデータを示すSOUT,49はシリアル通信に用
いる基準クロックとなるSCLKである。CPU7を信
号元とするSCLK49と同期してSIN47によりデ
ータが受信回路2からCPU7へ送信される。この時S
OUT48はグランドレベルとなる。逆にCPU7から
受信回路2へ制御信号等を送る場合はSOUT48を用
いて伝送される。
In FIG. 5, the explanation of the serial communication means 5 in FIG. 1 will be added. The radio signal received by the antenna 1 constituting FIG. 1 is decoded by the receiving circuit 2 and sent to the CPU 7. The communication method of the receiving circuit 2 and the CPU 7 is generally roughly classified into serial communication and parallel communication. In this embodiment, a communication method of serial communication will be introduced. FIG. 5 shows the main part. 47 is an SIN indicating data transmitted from the receiving circuit 2 to the CPU 7, 48 is an SOUT indicating data transmitted from the CPU 7 to the receiving circuit 2, and 49 is an SCLK serving as a reference clock used for serial communication. Data is transmitted from the receiving circuit 2 to the CPU 7 by the SIN 47 in synchronization with the SCLK 49 having the CPU 7 as a signal source. At this time
OUT 48 is at the ground level. Conversely, when a control signal or the like is sent from the CPU 7 to the receiving circuit 2, it is transmitted using SOUT48.

【0020】アンテナ1で受信した無線信号は受信回路
2により復号されCPU7で処理された後フラッシュメ
モリ9へ格納される。フラッシュメモリのアプリケーシ
ョン14を更新する場合も全アプリケーションデータを
受信するまでこの手順を繰り返す。
The radio signal received by the antenna 1 is decoded by the receiving circuit 2, processed by the CPU 7, and stored in the flash memory 9. When updating the application 14 of the flash memory, this procedure is repeated until all the application data is received.

【0021】図3において図2に示した17の割り込み
テーブル1及び15の割り込みテーブル2の説明を加え
る。18は割り込みテーブル1の内容の一部である。2
3は同様に割り込みテーブル2の内容の一部を示す。本
実施例ではキー割り込み21を例に取り説明を行う。C
PU7にキー入力手段3からの割り込みが生じた場合割
り込みテーブル1の21のキー割り込みに格納されてい
る飛び先アドレスに処理が移行される。本発明において
は適宜にアプリケーション14の更新が可能な為、この
キー割り込みで生じる割り込み処理プログラム自体も更
新され、その格納されるアドレス自体も一意には決定さ
れない。その為、各アプリケーションプログラムごとに
固有の割り込みテーブル2を合わせて設ける必要があ
る。本実施例では、キー割り込みが生じた場合の領域2
1の飛び先アドレスは常に23の割り込みテーブル2の
26の領域を指すように設定されている。この26に実
際に各アプリケーションで用いられるキー処理プログラ
ムへのジャンプ命令を格納する。アプリケーションを更
新する毎にこの図2の26のアドレスも同時に更新する
ことで、アプリケーションが更新され割り込み処理ルー
チンの内容や割り付けられているアドレスが変更になっ
ても問題なくアプリケーションプログラムは実行され
る。
Referring to FIG. 3, description will be given of the 17 interrupt tables 1 and 15 shown in FIG. 18 is a part of the contents of the interrupt table 1. 2
Reference numeral 3 similarly indicates a part of the contents of the interrupt table 2. In the present embodiment, the key interrupt 21 will be described as an example. C
When an interrupt from the key input means 3 occurs in the PU 7, the processing is shifted to the jump destination address stored in the key interrupt of 21 in the interrupt table 1. In the present invention, since the application 14 can be appropriately updated, the interrupt processing program itself generated by the key interrupt is also updated, and the stored address itself is not uniquely determined. Therefore, it is necessary to provide a unique interrupt table 2 for each application program. In the present embodiment, the area 2 when a key interrupt occurs
The jump destination address of 1 is set so as to always point to 26 areas of 23 interrupt tables 2. A jump instruction to the key processing program actually used in each application is stored in the memory 26. Each time the application is updated, the address 26 in FIG. 2 is updated at the same time, so that the application is executed without any problem even if the application is updated and the contents of the interrupt processing routine or the assigned address are changed.

【0022】図6に本実施例の無線通信で用いたコマン
ドの一例を示す。38はアプリケーション書き換え開始
コマンド、39はリセットコマンドである。それぞれ2
バイトで構成した。40にはアプリケーションのデータ
更新データフォーマットを示す。データ通信にはデータ
量n+1バイトのフォーマットを使用した。これらのコ
マンドはアプリケーション動作中は排除され、有効なコ
マンドとは認識されない。アプリケーション書き換え開
始コマンドの待ち受け時のみ有効となる。これはアプリ
ケーション実行時に前記コマンドが何らかの理由で送信
されてしまった場合にフラッシュメモリに格納されてい
るプログラムの誤書き込み、誤消去をさける為である。
更に、無線通信機器であるがゆえに通信中のデータ落
ち、通信切断等の考慮が別途必要となる。この為に再送
要求、受信完了、保留コマンド等を準備する必要があ
る。更にエラー補正、チェックサム等のデータ保全処理
用の冗長データを付加する必要も通信条件により考慮す
る必要がある。本実施例において示した例は所定のコマ
ンドを発生する無線信号発生器を用いて1台の無線通信
機器のアプリケーションあるいは書き換えプログラム部
を更新する手段だが、本発明の手段を組み込んだ複数の
無線通信機器のデータを同時に更新することも容易であ
る。
FIG. 6 shows an example of a command used in the wireless communication of this embodiment. 38 is an application rewriting start command, and 39 is a reset command. 2 each
It consisted of bytes. 40 shows a data update data format of the application. The data communication used a data amount of n + 1 byte format. These commands are rejected during the operation of the application and are not recognized as valid commands. Only valid when waiting for an application rewrite start command. This is to prevent the program stored in the flash memory from being erroneously written or erased when the command is transmitted for some reason during the execution of the application.
Furthermore, since the device is a wireless communication device, it is necessary to separately consider data loss during communication, disconnection of communication, and the like. For this purpose, it is necessary to prepare a retransmission request, reception completion, hold command, and the like. Further, the need to add redundant data for data security processing, such as error correction and checksum, also needs to be considered depending on communication conditions. The example shown in this embodiment is a means for updating an application or a rewriting program unit of one wireless communication device using a wireless signal generator for generating a predetermined command. It is also easy to update the device data at the same time.

【0023】図7に本実施例の無線通信手段によるコマ
ンド送信手順を説明する。ここで送信されるコマンドは
前記アプリケーション書き換え開始コマンドあるいはリ
セットコマンド、あるいはアプリケーションデータ等の
ことである。50において無線通信が開始される。コマ
ンドの送受信はパケット通信を基本とする。51におい
てパケットの有り無しを無線信号受信回路が判断する。
もしパケットを検出できないときは受信回路は待ち受け
状態となり次にパケットを検出するまで待ち受け状態に
ある。ここでパケットを検出すると52のパケットデコ
ード処理を行う。受信回路に含まれるデコード回路が所
定のデコード処理を行い受信したパケットを復号する。
各パケットは誤り補正のための冗長ビットを含み、デー
タの誤り補正処理を53にて行う。その後54にてCR
Cチェックを行うことでこのパケットが有効であるかの
確認をする。56にて、もしこのパケットが有効でない
と判断された場合は55の再送要求を外部無線信号発信
装置に対して行う。この双方向通信を行うためには無線
信号送信機能を具備する必要がある。十分信頼性の置け
る電波環境にあるときはこの送信機能は必要とされず、
その為再送要求処理も省くことが可能である。57にお
いてすべてのパケットの受信が完了するまで前記の受信
手順を繰り返す。全パケット受信が終了した場合、58
のコマンド構成処理を行い送信されたコマンドが有効で
あるか確認する。59においてもし有効なコマンドでは
ないと判断された場合は55の再送要求を行う。もし有
効なコマンドであるときには60のコマンド処理を開始
する。以上61までの処理を通じて本実施例の無線通信
手段によりコマンドを受信する。この受信されたコマン
ドを用いて本発明の不揮発性メモリの消去、更新手続き
の開始、更に同様の手段により更新するためのアプリケ
ーションデータの送信を行うことができる。
FIG. 7 illustrates a command transmission procedure by the wireless communication means of this embodiment. The command transmitted here is the application rewrite start command or reset command, application data, or the like. At 50, wireless communication is started. Command transmission and reception are based on packet communication. At 51, the wireless signal receiving circuit determines whether or not there is a packet.
If a packet cannot be detected, the receiving circuit goes into a standby state until the next packet is detected. Here, when a packet is detected, 52 packet decoding processing is performed. A decoding circuit included in the receiving circuit performs a predetermined decoding process to decode the received packet.
Each packet includes redundant bits for error correction, and performs data error correction processing at 53. Then at 54 CR
By performing a C check, it is confirmed whether this packet is valid. At 56, if it is determined that this packet is not valid, a retransmission request of 55 is made to the external wireless signal transmission device. In order to perform this two-way communication, it is necessary to have a wireless signal transmission function. This transmission function is not required when there is a sufficiently reliable radio wave environment.
Therefore, the retransmission request processing can be omitted. At 57, the above reception procedure is repeated until all the packets have been received. When all packets have been received, 58
And confirms whether the transmitted command is valid. If it is determined in 59 that the command is not a valid command, a retransmission request of 55 is made. If the command is a valid command, 60 command processing is started. Through the processes up to 61, the command is received by the wireless communication unit of this embodiment. By using the received command, the non-volatile memory of the present invention can be erased, an update procedure can be started, and application data for updating can be transmitted by the same means.

【0024】[0024]

【発明の効果】以上述べたように、本発明の無線通信機
器によれば、不揮発性メモリに格納されているアプリケ
ーション及び書き換えプログラムを変更する方式を提案
し無線通信によりデータを転送することにより容易に不
揮発性メモリの内容を消去、更新することができる。
As described above, according to the wireless communication device of the present invention, a method for changing the application and the rewriting program stored in the nonvolatile memory is proposed, and the data can be easily transferred by wireless communication. The contents of the nonvolatile memory can be erased and updated.

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

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】図1におけるCPUのメモリーマップ。FIG. 2 is a memory map of a CPU in FIG. 1;

【図3】図2における割り込みテーブル。FIG. 3 is an interrupt table in FIG. 2;

【図4】本発明の一実施例のフラッシュメモリ更新を行
うフローチャート。
FIG. 4 is a flowchart for updating a flash memory according to an embodiment of the present invention.

【図5】本発明の無線信号受信手段とCPUの一通信
例。
FIG. 5 is a communication example of a wireless signal receiving unit and a CPU according to the present invention.

【図6】本発明の無線信号受信手段とCPUの通信コマ
ンドの一例。
FIG. 6 shows an example of a communication command between the wireless signal receiving means and the CPU according to the present invention.

【図7】本発明の無線信号受信手順を示すフローチャー
ト。
FIG. 7 is a flowchart showing a wireless signal receiving procedure according to the present invention.

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

1.アンテナ 2.受信回路 3.キー入力回路 4.表示パネル 5.シリアル通信ポート 6.リセット回路 7.CPU 8.RAM 9.フラッシュメモリ 10.メモリマップ 11.RAM領域 12.フラッシュメモリ領域 13.プログラムローダー領域 14.アプリケーション領域 15.割り込みテーブル2 16.ブートプログラム及びプログラムローダー格納領
域 17.割り込みテーブル1 18.割り込みテーブル1の内容の一部 19.外部割り込み飛び先アドレス 20.タイマー割り込み飛び先アドレス 21. キー割り込み飛び先アドレス 22.NMI割り込み飛び先アドレス 23.割り込みテーブル2の内容の一部 24.外部割り込み処理ルーチンへのジャンプ命令 25.タイマー割り込み処理ルーチンへのジャンプ命令 26.キー割り込み処理ルーチンへのジャンプ命令 27.NMI割り込み処理ルーチンへのジャンプ命令 28.処理開始 29.スタートキー入力判定 30.書き換えコマンド受信判定 31.プログラムローダーのRAMへのコピー処理 32.プログラムローダーへの処理の移行 33.アプリケーションデータ受信判定 34.フラッシュメモリの消去処理 35.アプリケーション及び割り込みテーブル2のコピ
ー処理 36.アプリケーションプログラムの開始処理 37.フラッシュメモリのデータ消去、更新処理終了 38.アプリケーション書き換えコマンド 39.リセットコマンド 40.アプリケーションデータ通信フォーマット 47.シリアル通信のデータ入力信号 48.シリアル通信のデータ出力信号 49.シリアル通信の通信クロック信号 50.無線信号受信開始 51.パケットの受信有無判断 52.パケットデコード処理 53.エラーコレクション処理 54.CRCチェック 55.コマンド再送要求 56.受信したパケットが有効かの判断 57.全パケット受信終了判断 58.コマンド構成処理 59.有効コマンドかの判断 60.コマンド処理開始 61.無線信号受信終了
1. Antenna 2. 2. Receiving circuit Key input circuit 4. Display panel 5. 5. Serial communication port Reset circuit 7. CPU8. RAM 9. Flash memory 10. Memory map 11. RAM area 12. Flash memory area 13. Program loader area 14. Application area 15. Interrupt table 2 16. Boot program and program loader storage area 17. Interrupt table 1 18 Part of the contents of the interrupt table 119. External interrupt jump destination address 20. Timer interrupt destination address 21. Key interrupt destination address 22. 23. NMI interrupt jump destination address Part of the contents of the interrupt table 2 24. Jump instruction to external interrupt processing routine 25. Jump instruction to timer interrupt processing routine 26. Jump instruction to key interrupt processing routine 27. 28. Jump instruction to NMI interrupt processing routine Processing start 29. Start key input determination 30. Rewrite command reception determination 31. Copy process to RAM of program loader 32. Shift processing to program loader 33. Application data reception determination 34. Flash memory erasing processing 35. 36. Copy processing of application and interrupt table 2 Processing to start application program 37. End of flash memory data erase / update processing 38. Application rewrite command 39. Reset command 40. Application data communication format 47. Data input signal for serial communication 48. Data output signal of serial communication 49. Communication clock signal for serial communication 50. Radio signal reception start 51. Judgment of reception of packet 52. Packet decoding processing 53. Error correction processing 54. CRC check 55. Command retransmission request 56. Determining Whether Received Packet is Valid 57. Judgment of termination of reception of all packets 58. Command configuration processing 59. Determination of valid command Command processing start 61. End of wireless signal reception

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】アンテナ手段および無線信号受信手段、キ
ー入力手段、表示手段、リセット手段を有し、データの
書き換え可能な不揮発性メモリにアクセス、更新を行う
CPUを具備する無線通信機器において、 前記不揮発性メモリに、初期始動用プログラムであるブ
ートプログラム及びデータ転送用プログラムであるプロ
グラムローダーを格納する第1の領域、 割り込み処理用の飛び先アドレスを示す第1の割り込み
テーブルを格納する第2の領域、 逐次書き換え可能なアプリケーションプログラムを格納
する第3の領域、 前記アプリケーションプログラムの実行時に割り込み処
理を行うための第2の割り込みテーブルを格納する第4
の領域を有し、 揮発性メモリであるRAMに前記第1の領域のプログラ
ムローダーを転送および実行することで前記第3の領域
のアプリケーションプログラム及び前記第4の領域の前
記第2の割り込みテーブルの書き換えを行う制御手段を
備え、 前記アンテナ手段および無線信号受信手段を介し所定の
データを含む無線信号発生装置から出力された信号に重
畳された前記アプリケーションプログラム及び第2の割
り込みテーブルのデータをもって、前記書き換え可能な
不揮発性メモリの消去、更新を行う機能を備えることを
特徴とする無線通信機器。
1. A wireless communication device comprising: an antenna unit, a wireless signal receiving unit, a key input unit, a display unit, and a reset unit, and a CPU that accesses and updates a data rewritable nonvolatile memory. A first area for storing a boot program as an initial start program and a program loader as a data transfer program in a nonvolatile memory, and a second interrupt table for storing a jump destination address for interrupt processing. An area, a third area for storing a sequentially rewritable application program, a fourth area for storing a second interrupt table for performing interrupt processing when the application program is executed
By transferring and executing the program loader of the first area to the RAM which is a volatile memory, the application program of the third area and the second interrupt table of the fourth area are transferred. Rewriting control means, the application program and data of a second interrupt table superimposed on a signal output from a wireless signal generator including predetermined data via the antenna means and the wireless signal receiving means, A wireless communication device having a function of erasing and updating a rewritable nonvolatile memory.
【請求項2】前記第3の領域及び前記第4の領域を消
去、更新する機能に加え、前記プログラムローダーを前
記RAM領域において動作させることにより、前記第1
の領域及び前記第2の領域も第3の領域、第4の領域と
同時あるいは第1の領域、第2の領域のみ個別に消去、
更新する機能を有することを特徴とする請求項1記載の
無線通信機器。
2. The method according to claim 1, wherein the program loader operates in the RAM area in addition to a function of erasing and updating the third area and the fourth area.
Area and the second area are also erased simultaneously with the third area and the fourth area or individually only in the first area and the second area.
The wireless communication device according to claim 1, further comprising a function of updating.
JP26457399A 1999-09-17 1999-09-17 Wireless communication apparatus Withdrawn JP2001094498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26457399A JP2001094498A (en) 1999-09-17 1999-09-17 Wireless communication apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26457399A JP2001094498A (en) 1999-09-17 1999-09-17 Wireless communication apparatus

Publications (1)

Publication Number Publication Date
JP2001094498A true JP2001094498A (en) 2001-04-06

Family

ID=17405176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26457399A Withdrawn JP2001094498A (en) 1999-09-17 1999-09-17 Wireless communication apparatus

Country Status (1)

Country Link
JP (1) JP2001094498A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007511816A (en) * 2003-10-23 2007-05-10 イノパス・ソフトウェアー・インコーポレーテッド Dynamic addressing (DA) using centralized DA manager

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007511816A (en) * 2003-10-23 2007-05-10 イノパス・ソフトウェアー・インコーポレーテッド Dynamic addressing (DA) using centralized DA manager

Similar Documents

Publication Publication Date Title
US7664923B2 (en) Method and system for updating software
US7502813B2 (en) Software update process using an extra memory block
US7698698B2 (en) Method for over-the-air firmware update of NAND flash memory based mobile devices
US8539471B2 (en) Updating firmware of an electronic device
JP5173818B2 (en) Initializing flash storage via embedded controller
US5925140A (en) Apparatus and method for error free loading of a programmable non-volatile memory over a datalink
JP2006040301A (en) Method of organizing information stored in non-volatile re-programmable semiconductor memory
JP2007219883A (en) Mobile terminal device and software update method
JPWO2008117520A1 (en) MEMORY CONTROLLER, NONVOLATILE MEMORY SYSTEM, AND HOST DEVICE
JPH113224A (en) Program updating method for portable information terminal equipment
JP2002099441A (en) Communication terminal apparatus and its operating method
CN102004657B (en) A kind of electronic equipment and upgrade method thereof
CN112947977A (en) Software online upgrading method and system
JP2000222292A (en) Data managing method utilizing flash memory
EP1607834A2 (en) A mobile communication terminal including NAND flash memory and method for booting the same
JP2002207599A (en) Communication terminal and software update system thereof
RU2375769C2 (en) Automatic back up saving in modifications of embedded software
JP3376331B2 (en) Storage method using flash memory and storage medium storing storage control program
JP2001094498A (en) Wireless communication apparatus
JP2009134672A (en) Memory management method and portable terminal equipment
JP2002007152A (en) Download method and download device
JP4478298B2 (en) Data transfer system
JPH08204792A (en) Terminal equipment for communication
KR100743253B1 (en) Method and apparatus for correcting code data error
JPH09305395A (en) Electronic equipment

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051220

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060801

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060929

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070123

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20070221