JP2005063039A - Data processor, its method, and its program - Google Patents

Data processor, its method, and its program Download PDF

Info

Publication number
JP2005063039A
JP2005063039A JP2003290375A JP2003290375A JP2005063039A JP 2005063039 A JP2005063039 A JP 2005063039A JP 2003290375 A JP2003290375 A JP 2003290375A JP 2003290375 A JP2003290375 A JP 2003290375A JP 2005063039 A JP2005063039 A JP 2005063039A
Authority
JP
Japan
Prior art keywords
data
recording
recording medium
file
area
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.)
Granted
Application number
JP2003290375A
Other languages
Japanese (ja)
Other versions
JP4590842B2 (en
Inventor
Masatoshi Ueno
正俊 上野
Akihiro Kikuchi
章浩 菊地
Takatsuna Sasaki
隆綱 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2003290375A priority Critical patent/JP4590842B2/en
Publication of JP2005063039A publication Critical patent/JP2005063039A/en
Application granted granted Critical
Publication of JP4590842B2 publication Critical patent/JP4590842B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data processor capable of preventing record data written by a third party into a recording medium from being read as legitimate record data and used mistakenly, regardless of whether or not the recording medium has a write protection function. <P>SOLUTION: When writing file data or the like into a wireless tag 10 with a write protection function, a writing device 11 sets the wireless tag 10 in a write protection state after writing the file data or the like in the wireless tag 10. When writing file data or the like in a wireless tag 10a without the write protection function, the writing device 11 generates the file data's signature data and writes both the signature data and the file data or the like in the wireless tag 10a. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、記録媒体に対してデータの書き込みおよび読み出しを行うデータ処理装置、その方法およびそのプログラムに関する。   The present invention relates to a data processing apparatus for writing and reading data on a recording medium, a method thereof, and a program thereof.

近年、RFID(Radio Frequency IDentification)技術の進歩により、無線でデータ授受が可能で電源が不要なRFIDタグ(無線タグ)を物流のみならず様々な情報提供手段として利用する手法が提案されている。
例えば、無線タグをポスターなどに貼り付け、無線タグに記録されたファイルデータを携帯電話やPDAなどの端末装置によって無線で読み取るシステムが提案されている。
このようなシステムでは、ポスターに貼り付けられた無線タグにファイルデータを第三者が不正に書き込まないようにする必要がある。
特開2003−85494号公報
2. Description of the Related Art In recent years, with the progress of RFID (Radio Frequency IDentification) technology, a method of using an RFID tag (wireless tag) that can exchange data wirelessly and does not require a power source as a variety of information providing means as well as physical distribution has been proposed.
For example, a system has been proposed in which a wireless tag is attached to a poster or the like, and file data recorded on the wireless tag is wirelessly read by a terminal device such as a mobile phone or a PDA.
In such a system, it is necessary to prevent a third party from illegally writing file data on a wireless tag attached to a poster.
JP 2003-85494 A

ところで、無線タグのメモリには、書き換え禁止機能を備えているものと、そうでないものとがあるが、いずれの場合であっても、第三者が不正に無線タグに書き込んだファイルデータが正当なファイルデータとして読み出されて誤って利用されることがないようにする必要がある。   By the way, there are wireless tag memory that has a rewrite prohibition function and that that does not, but in any case, the file data illegally written by the third party to the wireless tag is valid. It is necessary to prevent the file data from being read and used by mistake.

本発明は上述した従来技術に鑑みて成され、書き換え禁止機能を備えている記録媒体と、当該書き込み禁止機能を備えていない記録媒体との何れに記録データを書き込む場合でも、第三者が不正に記録媒体に書き込んだ記録データが読み出されて正当な記録データとして誤って利用されることを回避できるデータ処理装置、その方法およびそのプログラムを提供することを目的とする。   The present invention has been made in view of the above-described prior art, and a third party can illegally write recording data to either a recording medium having a rewrite prohibiting function or a recording medium not having the writing prohibiting function. Another object of the present invention is to provide a data processing apparatus, a method thereof, and a program thereof that can prevent the recording data written on the recording medium from being read and erroneously used as valid recording data.

上述した従来技術の問題点を解決するために、第1の発明のデータ処理装置は、記録媒体に記録データを書き込むデータ処理装置であって、前記記録データに対しての署名データを生成する署名生成手段と、前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体に記録データを書き込む第1の動作を行い、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記署名生成手段が生成した前記署名データと前記記録データとを前記記録媒体に書き込む第2の動作を行う書き込み手段とを有する。   In order to solve the above-described problems of the prior art, a data processing apparatus according to a first aspect of the present invention is a data processing apparatus that writes recording data to a recording medium, and generates a signature data for the recording data. When it is determined that the generation unit and the recording medium have a write prohibition function, a first operation of writing record data to the recording medium is performed, and it is determined that the recording medium does not have a write prohibition function A writing unit that performs a second operation of writing the signature data and the recording data generated by the signature generation unit to the recording medium.

第1の発明のデータ処理装置の作用は以下のようになる。
書き込み手段が、前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体に記録データを書き込む第1の動作を行う。
前記書き込み手段が、前記記録媒体が書き込み禁止機能を備えていないと判断した場合には、前記署名生成手段が当該記録データに対しての署名データを生成する。
そして、前記書き込み手段が、前記署名生成手段が生成した前記署名データと前記記録データとを前記記録媒体に書き込む第2の動作を行う。
The operation of the data processing apparatus of the first invention is as follows.
When the writing unit determines that the recording medium has a write prohibiting function, a first operation of writing recording data to the recording medium is performed.
When the writing unit determines that the recording medium does not have a write prohibition function, the signature generation unit generates signature data for the recording data.
Then, the writing unit performs a second operation of writing the signature data and the recording data generated by the signature generation unit to the recording medium.

第2の発明のデータ処理方法は、書き込み禁止機能を備えた記録媒体であるか否かを判断する第1の工程と、前記第1の工程において前記記録媒体が書き込み禁止を備えていると判断した場合に、前記記録媒体に記録データを書き込む第2の工程と、前記第1の工程において前記記録媒体が書き込み禁止を備えていないと判断した場合に、前記記録データに対しての署名データを生成する第3の工程と、前記第3の工程で生成した前記署名データと前記記録データとを前記記録媒体に書き込む第4の工程とを有する。   According to a second aspect of the present invention, there is provided a data processing method comprising: a first step for determining whether or not the recording medium has a write-inhibiting function; In this case, if it is determined in the first step that the recording data is written to the recording medium and the recording medium is not write-protected in the first step, the signature data for the recording data is A third step of generating, and a fourth step of writing the signature data and the recording data generated in the third step into the recording medium.

第3の発明のプログラムは、書き込み禁止機能を備えた記録媒体であるか否かを判断する第1の手順と、前記第1の手順において前記記録媒体が書き込み禁止を備えていると判断した場合に、前記記録媒体に記録データを書き込む第2の手順と、前記第1の手順において前記記録媒体が書き込み禁止を備えていないと判断した場合に、前記記録データに対しての署名データを生成する第3の手順と、前記第3の手順で生成した前記署名データと前記記録データとを前記記録媒体に書き込む第4の手順とをデータ処理装置に実行させる。   The program of the third invention is a first procedure for determining whether or not the recording medium has a write prohibition function, and when it is determined in the first procedure that the recording medium has a write prohibition And generating a signature data for the recording data when it is determined in the first procedure that the recording medium is not write-protected in the second procedure for writing the recording data to the recording medium. The data processing apparatus is caused to execute a third procedure and a fourth procedure for writing the signature data and the recording data generated in the third procedure to the recording medium.

第4の発明のデータ処理装置は、記録媒体から記録データを読み出すデータ処理装置であって、前記記録データの署名データを検証する署名検証手段と、前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する第1の動作を行い、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証させ、前記署名検証手段が前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する第2の動作を行う読み出し手段とを有する。   According to a fourth aspect of the present invention, there is provided a data processing device for reading recorded data from a recording medium, wherein the recording medium has a signature verification means for verifying signature data of the recorded data, and the recording medium has a write prohibiting function. When it is determined, the first operation of reading and using the recording data from the recording medium is performed, and when it is determined that the recording medium does not have a write prohibition function, the signature data read from the recording medium is Reading means for performing a second operation using the recording data read from the recording medium on the condition that the signature verification means verifies and the signature verification means determines that the signature data is valid .

第4の発明のデータ処理装置の作用は以下のようになる。
前記読み出し手段が、前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する。
一方、前記読み出し手段が、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証させ、前記署名検証手段が前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する。
The operation of the data processing apparatus of the fourth invention is as follows.
When the reading means determines that the recording medium has a write prohibiting function, it reads the recording data from the recording medium and uses it.
On the other hand, when the reading unit determines that the recording medium does not have a write prohibition function, the signature verifying unit verifies the signature data read from the recording medium, and the signature verifying unit The recording data read from the recording medium is used on the condition that it is determined to be valid.

第5の発明のデータ処理方法は、記録媒体から記録データを読み出すデータ処理方法であって、前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する第1の工程と、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証する第2の工程と、前記第2の工程で前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する第3の工程とを有する。   According to a fifth aspect of the present invention, there is provided a data processing method for reading recorded data from a recording medium, wherein the recording data is read from the recording medium when it is determined that the recording medium has a write prohibiting function. A first step of using, a second step of verifying signature data read from the recording medium by the signature verification means when it is determined that the recording medium does not have a write prohibition function, and the second step And a third step of using the recording data read from the recording medium on the condition that the signature data is determined to be valid in the step.

第6の発明のプログラムは、記録媒体から記録データを読み出すデータ処理装置が実行するプログラムであって、前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する第1の手順と、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証する第2の手順と、前記第2の手順で前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する第3の手順とを前記データ処理装置に実行させる。   A program according to a sixth aspect of the invention is a program executed by a data processing apparatus that reads recorded data from a recording medium, and when it is determined that the recording medium has a write prohibiting function, the recorded data is read from the recording medium. A first procedure for reading and using, a second procedure for verifying signature data read from the recording medium by the signature verification means when it is determined that the recording medium does not have a write prohibition function, On the condition that it is determined that the signature data is valid in the second procedure, the data processing apparatus is caused to execute a third procedure using the recording data read from the recording medium.

本発明によれば、書き換え禁止機能を備えている記録媒体と、当該書き込み禁止機能を備えていない記録媒体との何れに記録データを書き込む場合でも、第三者が不正に記録媒体に書き込んだ記録データが読み出されて正当な記録データとして誤って利用されることを回避できるデータ処理装置、その方法およびそのプログラムを提供することができる。   According to the present invention, regardless of whether recording data is written to either a recording medium having a rewrite prohibition function or a recording medium not having the write prohibition function, a recording that is illegally written on the recording medium by a third party. It is possible to provide a data processing device, a method thereof, and a program thereof that can prevent data from being read and erroneously used as valid recording data.

以下、図1〜図19を参照して本発明の実施形態について説明する。
図1は、本発明の実施形態に係わるデータ配信システム1の全体構成図である。
図1に示すように、データ配信システム1では、例えば、コンピュータ12が生成したHTML(Hypertext Markup Language) などの複数の可変サイズのファイルデータを書込装置11を介して無線で無線タグ10に書き込む。
そして、無線タグ10をポスター18などに貼り付ける。
そして、携帯型の端末装置15が、無線タグ10から上記ファイルデータを無線で読み出し、例えば、端末装置15のディスプレイに当該ファイルデータに応じた画像を表示する。
端末装置15は、例えば、携帯電話やPDA(Personal Digital Assistant)などである。
Hereinafter, embodiments of the present invention will be described with reference to FIGS.
FIG. 1 is an overall configuration diagram of a data distribution system 1 according to an embodiment of the present invention.
As shown in FIG. 1, in the data distribution system 1, for example, a plurality of variable-size file data such as HTML (Hypertext Markup Language) generated by the computer 12 is wirelessly written to the wireless tag 10 via the writing device 11. .
Then, the wireless tag 10 is attached to the poster 18 or the like.
Then, the portable terminal device 15 wirelessly reads out the file data from the wireless tag 10 and displays an image corresponding to the file data on the display of the terminal device 15, for example.
The terminal device 15 is, for example, a mobile phone or a PDA (Personal Digital Assistant).

先ず、本発明の各構成と本実施形態の構成との対応関係を説明する。
図1に示す無線タグ10,10aのメモリ35が本発明の記録媒体に対応し、図4に示すメモリ35の記録領域が本発明の記録領域に対応している。
ここで、図2に示す無線タグ10が書き込み禁止機能を備えた記録媒体であり、図3に示す無線タグ10aが書き込み禁止機能を備えていない記録媒体である。
また、本実施形態の図5に示す上記記録領域内のファイル領域142に記録されるファイルデータが本発明の記録データに対応している。
図6および図8に示す署名領域143,150に記録される署名データが本発明の署名データに対応している。
また、図9に示すファイル属性領域120_n(nは1以上の整数)に記録されるファイル属性データが、本発明の属性データに対応している。
また、図10に示すファイル位置指定領域121に記録されるアドレスが、本発明の記録アドレスに対応している。
First, the correspondence between each configuration of the present invention and the configuration of the present embodiment will be described.
The memory 35 of the wireless tags 10 and 10a shown in FIG. 1 corresponds to the recording medium of the present invention, and the recording area of the memory 35 shown in FIG. 4 corresponds to the recording area of the present invention.
Here, the wireless tag 10 shown in FIG. 2 is a recording medium having a write-inhibiting function, and the wireless tag 10a shown in FIG. 3 is a recording medium having no writing-inhibiting function.
Further, the file data recorded in the file area 142 in the recording area shown in FIG. 5 of the present embodiment corresponds to the recording data of the present invention.
The signature data recorded in the signature areas 143 and 150 shown in FIGS. 6 and 8 correspond to the signature data of the present invention.
Also, the file attribute data recorded in the file attribute area 120_n (n is an integer of 1 or more) shown in FIG. 9 corresponds to the attribute data of the present invention.
Further, the address recorded in the file position designation area 121 shown in FIG. 10 corresponds to the recording address of the present invention.

また、図9に示す第1のアドレスAが本発明の第1のアドレスに対応し、第2のアドレスBが本発明の第2のアドレスに対応している。
本実施形態において、第1のアドレスAは図9に示す上記記録領域において、その先頭アドレスから規定されたタグ管理領域101に続くファイルデータ領域102の先頭アドレスを示している。
また、第2のアドレスBは、図9に示す上記記録領域において、その末尾アドレスから順に規定されたパリティ領域114、予約領域113、空き領域指示領域112、ファイル個数領域111および分類種別領域115に続く領域の上記末尾アドレス側のアドレスを示している。
Further, the first address A shown in FIG. 9 corresponds to the first address of the present invention, and the second address B corresponds to the second address of the present invention.
In the present embodiment, the first address A indicates the head address of the file data area 102 following the tag management area 101 defined from the head address in the recording area shown in FIG.
Further, the second address B is stored in the parity area 114, reserved area 113, free area instruction area 112, file number area 111, and classification type area 115 defined in order from the end address in the recording area shown in FIG. The address on the end address side of the subsequent area is shown.

また、図11に示す処理部25が第1の発明の書き込み手段に対応し、署名生成部26が第1の発明の署名生成手段に対応している。また、図11に示すプログラムPRG1が第3の発明のプログラムに対応している。
図16に示す処理部45が第4の発明の読み出し手段に対応し、署名検証部46が第4の発明の署名検証手段に対応している。また、図16に示すプログラムPRG2が第6の発明のプログラムに対応している。
Further, the processing unit 25 shown in FIG. 11 corresponds to the writing unit of the first invention, and the signature generation unit 26 corresponds to the signature generation unit of the first invention. A program PRG1 shown in FIG. 11 corresponds to the program of the third invention.
The processing unit 45 shown in FIG. 16 corresponds to the reading unit of the fourth invention, and the signature verification unit 46 corresponds to the signature verification unit of the fourth invention. A program PRG2 shown in FIG. 16 corresponds to the program of the sixth invention.

次に、データ配信システム1の概要を説明する。
データ配信システム1の書込装置11は、書き込み禁止機能を備えた無線タグ10にファイルデータ等を書き込む場合に、無線タグ10にファイルデータ等を書き込んだ後に、無線タグ10を書き込み禁止状態に設定する。
また、書込装置11は、書き込み禁止機能を備えていない無線タグ10aにファイルデータ等を書き込む場合に、当該ファイルデータの署名データを生成し、当該署名データをファイルデータ等と共に無線タグ10aに書き込む。
書込装置11は、上記ファイルデータの書き込みにおいて、図9に示す記録領域内のファイルデータ領域102内の第1のアドレスAから、第2のアドレスBに向けて複数の可変サイズのファイルデータを順に書き込む。
また、書込装置11が、上記複数のファイルデータの各々に対応して規定され対応するファイルデータのファイルデータ領域102内の記録アドレスをそれぞれ示し固定サイズの複数のファイル属性データを第2のアドレスBから第1のアドレスAに向けて規定されたファイル属性領域120_nに順に書き込む。
Next, an outline of the data distribution system 1 will be described.
When the writing device 11 of the data distribution system 1 writes file data or the like to the wireless tag 10 having a write prohibiting function, the wireless tag 10 is set in a write prohibited state after writing the file data or the like to the wireless tag 10. To do.
Further, when writing file data or the like to the wireless tag 10a that does not have a write prohibition function, the writing device 11 generates signature data of the file data and writes the signature data together with the file data or the like to the wireless tag 10a. .
The writing device 11 writes a plurality of variable-size file data from the first address A in the file data area 102 in the recording area shown in FIG. Write in order.
In addition, the writing device 11 indicates a recording address in the file data area 102 of the file data defined and corresponding to each of the plurality of file data, and indicates a plurality of file attribute data having a fixed size as a second address. Data are sequentially written in the file attribute area 120_n defined from B to the first address A.

端末装置15は、無線タグ10からファイルデータおよびファイル属性データ等を読み出し、署名データの検証を行わない。
すなわち、無線タグ10は、書き込み禁止状態に設定されているため、第三者は無線タグ10に不正にファイルデータを書き込めない。
また、端末装置15は、無線タグ10aから、ファイルデータおよびファイル属性データに加えて署名データを読み出す。そして、端末装置15は、署名データの正当性を検証した後に、上記読み出したファイルデータおよびファイル属性データ等を有効なものとして利用する。
無線タグ10aには書き込み禁止機能がないため、第三者は無線タグ10aに不正にファイルデータを書き込めるが、端末装置15は署名データの検証を行うため、当該不正な書き込みを適切に検出でき、誤って当該ファイルデータを利用することを回避できる。
The terminal device 15 reads file data, file attribute data, and the like from the wireless tag 10 and does not verify the signature data.
That is, since the wireless tag 10 is set in a write-inhibited state, a third party cannot write file data to the wireless tag 10 illegally.
In addition to the file data and the file attribute data, the terminal device 15 reads the signature data from the wireless tag 10a. Then, after verifying the validity of the signature data, the terminal device 15 uses the read file data and file attribute data as valid ones.
Since the wireless tag 10a does not have a write prohibition function, a third party can illegally write file data to the wireless tag 10a. However, since the terminal device 15 verifies the signature data, the unauthorized write can be detected appropriately. It is possible to avoid using the file data by mistake.

〔無線タグ10,10a〕
無線タグ10は、書き込み禁止機能を備えており、無線タグ10aは書き込み禁止機能を備えていない。
図2は、図1に示す無線タグ10の構成図である。
図2に示すように、無線タグ10は、例えば、アンテナ31、RF(Radiop Freqency)
部32、電力制御部33、メモリアクセス部34およびメモリ35を有する。
RF部32は、アンテナ31を介して受信したファイルデータやファイル属性データなどの信号に復調などの処理を施してメモリアクセス部34に出力する。
また、RF部32は、メモリ35から読み出したファイルデータや属性データなどの信号に変調などの処理を施してアンテナ31に出力する。
電力制御部33は、アンテナ31を介して受信した信号による電磁結合などによって得られた電力(エネルギ)をメモリアクセス部34等に供給する。
メモリアクセス部34は、電力制御部33から受けた電力によって駆動され、メモリ35に対してのデータ書き込み動作および読み出し動作を行う。
メモリアクセス部34は、書き込み禁止機能を備え、例えば、書込装置11および端末装置15によって制御される。
メモリ35は、後述するファイルデータおよびファイル属性データなどのデータを記録する。
メモリ35は、記録データの消去を記録領域全体に対しての一括消去によって行われる例えば、スマートラベルやEEPROMなどの記録媒体である。
[Wireless tags 10, 10a]
The wireless tag 10 has a write prohibiting function, and the wireless tag 10a does not have a write prohibiting function.
FIG. 2 is a configuration diagram of the wireless tag 10 shown in FIG.
As shown in FIG. 2, the wireless tag 10 includes, for example, an antenna 31 and an RF (Radiop Freqency).
Unit 32, power control unit 33, memory access unit 34, and memory 35.
The RF unit 32 performs processing such as demodulation on a signal such as file data or file attribute data received via the antenna 31 and outputs the result to the memory access unit 34.
In addition, the RF unit 32 performs processing such as modulation on signals such as file data and attribute data read from the memory 35 and outputs the processed signals to the antenna 31.
The power control unit 33 supplies power (energy) obtained by electromagnetic coupling or the like by a signal received via the antenna 31 to the memory access unit 34 or the like.
The memory access unit 34 is driven by the power received from the power control unit 33, and performs a data write operation and a read operation with respect to the memory 35.
The memory access unit 34 has a write prohibiting function, and is controlled by the writing device 11 and the terminal device 15, for example.
The memory 35 records data such as file data and file attribute data described later.
The memory 35 is a recording medium such as a smart label or an EEPROM in which recording data is erased by batch erasure of the entire recording area.

図3は、図1に示す無線タグ10aの構成図である。
図3に示すように、無線タグ10aは、例えば、アンテナ31、RF(Radiop Freqency) 部32、電力制御部33、メモリアクセス部34aおよびメモリ35を有する。
図3において、図2と同じ符号を付した構成は、上述した構成と同じである。
無線タグ10aは、メモリアクセス部34aが書き込み禁止機能を備えていない点が、無線タグ10と異なる。
FIG. 3 is a configuration diagram of the wireless tag 10a shown in FIG.
As illustrated in FIG. 3, the wireless tag 10 a includes, for example, an antenna 31, an RF (Radiop Freqency) unit 32, a power control unit 33, a memory access unit 34 a, and a memory 35.
In FIG. 3, the configuration denoted by the same reference numerals as in FIG. 2 is the same as the configuration described above.
The wireless tag 10a is different from the wireless tag 10 in that the memory access unit 34a does not have a write prohibiting function.

図4は、図2および図3に示す無線タグ10,10aのメモリ35のメモリマップの構成を説明するための図である。
メモリ35は、OS(Operating System)や、無線タグ10,10aに関して、書き込み禁止機能の有無、製造コード、バージョン、メモリ35の記録領域のサイズ、当該記録領域へのアクセス単位などの情報が記録されている一部の記録領域を除き、外部からのアクセスが許可されている。
図4に示すように、メモリ35の記録領域は、例えば、タグ管理領域101、ファイルデータ領域102およびファイルテーブル領域103を有する。
FIG. 4 is a diagram for explaining the configuration of the memory map of the memory 35 of the wireless tags 10 and 10a shown in FIGS.
The memory 35 records information on the OS (Operating System) and the wireless tags 10 and 10a, such as the presence / absence of a write prohibition function, the manufacturing code, the version, the size of the recording area of the memory 35, and the access unit to the recording area. External access is permitted except for some recording areas.
As shown in FIG. 4, the recording area of the memory 35 includes, for example, a tag management area 101, a file data area 102, and a file table area 103.

タグ管理領域101は、例えば、図4に示すメモリ35の記録領域のアドレス空間の始端(先頭)アドレスから所定のアドレスにわたって規定されている。
タグ管理領域101は、無線タグ10,10aに固有のデータが記録されている。
ファイルデータ領域102は、上記アドレス空間において、タグ管理領域101とファイルテーブル領域103との間に規定されている。
ファイルデータ領域102は、タグ管理領域101に続く前述した図9に示す第1のアドレスAから、メモリ35のアドレス空間の第2のアドレスBに向けて規定されている。 無線タグ10のファイルデータ領域102には、書込装置11によって、第1のアドレスAから第2のアドレスBに向けて連続したアドレスに、図5に示すように、HTMLの複数のファイルデータのファイル名データおよびファイルデータの実体が順に書き込まれる。
すなわち、ファイルデータ領域102内のファイル名領域141にファイル名データが記録され、ファイル領域142にファイルデータが記録される。
ここで、個々のファイル名データおよびファイルデータは、可変サイズのデータである。
ファイルデータ領域102のサイズは、記録されるファイルデータの数およびデータ量によって変動する。
また、無線タグ10aのファイルデータ領域102には、図6に示すように、書込装置11によって、第1のアドレスAから第2のアドレスBに向けて連続したアドレスに、HTMLの複数のファイルデータのファイル名データ、署名データおよびファイルデータの実体が順に書き込まれる。
すなわち、ファイルデータ領域102内のファイル名領域141にファイル名データが記録され、署名領域143に署名データが記録され、ファイル領域142にファイルデータが記録される。
The tag management area 101 is defined, for example, over a predetermined address from the start (head) address of the address space of the recording area of the memory 35 shown in FIG.
In the tag management area 101, data unique to the wireless tags 10 and 10a is recorded.
The file data area 102 is defined between the tag management area 101 and the file table area 103 in the address space.
The file data area 102 is defined from the first address A shown in FIG. 9 described above following the tag management area 101 to the second address B in the address space of the memory 35. In the file data area 102 of the wireless tag 10, as shown in FIG. 5, a plurality of HTML file data are stored in a continuous address from the first address A to the second address B by the writing device 11. File name data and file data entities are written in order.
That is, file name data is recorded in the file name area 141 in the file data area 102, and file data is recorded in the file area 142.
Here, the individual file name data and file data are variable-size data.
The size of the file data area 102 varies depending on the number and amount of file data to be recorded.
In the file data area 102 of the wireless tag 10a, as shown in FIG. 6, a plurality of HTML files are written by the writing device 11 to consecutive addresses from the first address A to the second address B. Data file name data, signature data, and file data entities are sequentially written.
That is, file name data is recorded in the file name area 141 in the file data area 102, signature data is recorded in the signature area 143, and file data is recorded in the file area 142.

無線タグ10のファイルデータ領域102は、ファイルデータを圧縮して得られた圧縮ファイルデータを記録する場合には、図7に示すように、圧縮ファイル領域153に当該圧縮ファイルデータを記録する。
この場合に、ファイル名領域141と圧縮ファイル領域153との間に記録サイズ領域151および圧縮種別領域152が規定される。
記録サイズ領域151には、圧縮ファイル領域153に記録された圧縮ファイルデータのサイズ(データ長)が記録される。
圧縮種別領域152には、上記圧縮ファイルデータの生成に用いられた圧縮方法の識別データが記録される。
圧縮手法としては、ランレングス法、ハフマン法、LZ77法、LZ78法、ブロックソート法、MTF法、算術圧縮法、レンジコーダー法などが用いられる。
一方、無線タグ10aのファイルデータ領域102には、図8に示すように、署名領域150に署名データが記録される。
また、無線タグ10aのファイルデータ領域102は、ファイルデータを圧縮して得られた圧縮ファイルデータを記録する場合には、図8に示すように、圧縮ファイル領域153に当該圧縮ファイルデータを記録する。
When recording the compressed file data obtained by compressing the file data, the file data area 102 of the wireless tag 10 records the compressed file data in the compressed file area 153 as shown in FIG.
In this case, a recording size area 151 and a compression type area 152 are defined between the file name area 141 and the compressed file area 153.
In the recording size area 151, the size (data length) of the compressed file data recorded in the compressed file area 153 is recorded.
In the compression type area 152, identification data of the compression method used for generating the compressed file data is recorded.
As a compression method, a run length method, a Huffman method, an LZ77 method, an LZ78 method, a block sort method, an MTF method, an arithmetic compression method, a range coder method, or the like is used.
On the other hand, signature data is recorded in the signature area 150 in the file data area 102 of the wireless tag 10a as shown in FIG.
Further, when recording the compressed file data obtained by compressing the file data, the file data area 102 of the wireless tag 10a records the compressed file data in the compressed file area 153 as shown in FIG. .

ファイルテーブル領域103は、上記アドレス空間の第2のアドレスBから第1のアドレスAに向けて規定されている。
ファイルテーブル領域103には、ファイルテーブルが記録される。
図9は、図4に示すファイルテーブル領域103の詳細な構成を説明するための図である。
図9に示すように、ファイルテーブル領域103は、例えば、ファイル個数領域111、空き領域指示領域112、予約領域113、パリティ領域114、分類種別領域115、並びに単数または複数のファイル属性領域120_n(nは1以上の整数)を有する。 ファイルテーブル領域103では、例えば、メモリ35のメモリ空間の末尾アドレスから順にパリティ領域114、予約領域113、空き領域指示領域112、ファイル個数領域111、分類種別領域115が規定されている。
また、第2のアドレスBから第1のアドレスAに向けて複数のファイル属性領域120_nが順に規定されている。
なお、ファイルテーブル領域103内の領域111〜115および120_nの各々は、固定サイズである。
すなわち、メモリ35には、タグ管理領域101に続く第1のアドレスAから第2のアドレスBに向けて複数のファイルデータ等が順に記録され、当該複数のファイルデータにそれぞれ対応する複数のファイル属性データが第2のアドレスBから第1のアドレスAに向けて複数のファイル属性領域120_nに順に記録される。
The file table area 103 is defined from the second address B to the first address A in the address space.
A file table is recorded in the file table area 103.
FIG. 9 is a diagram for explaining a detailed configuration of the file table area 103 shown in FIG.
As shown in FIG. 9, the file table area 103 includes, for example, a file number area 111, a free area instruction area 112, a reserved area 113, a parity area 114, a classification type area 115, and one or a plurality of file attribute areas 120_n (n Is an integer of 1 or more. In the file table area 103, for example, a parity area 114, a reserved area 113, a free area instruction area 112, a file number area 111, and a classification type area 115 are defined in order from the end address of the memory space of the memory 35.
A plurality of file attribute areas 120_n are defined in order from the second address B to the first address A.
Each of the areas 111 to 115 and 120_n in the file table area 103 has a fixed size.
That is, a plurality of file data and the like are sequentially recorded in the memory 35 from the first address A to the second address B following the tag management area 101, and a plurality of file attributes respectively corresponding to the plurality of file data. Data is recorded in order from the second address B to the first address A in the plurality of file attribute areas 120_n.

ファイル個数領域111は、ファイルデータ領域102に記録されているファイルデータの個数を示す。
なお、ファイルデータの実体ではなく、ファイル名データなどのファイルデータに関する情報をファイルデータ領域102に記録する場合にも、ファイル個数にカウントする。 空き領域指示領域112は、ファイルデータ領域102において、次に新たなファイルデータを書き込む先頭アドレスを示す。
予約領域113は、将来的に何らかのデータを記録するために予約された領域である。 パリティ領域114は、ファイル個数領域111、空き領域指示領域112および予約領域113の正当性を検証するためのパリティデータを記録する。
分類種別領域115は、個々の無線タグ10に用途がある場合に、その用途に応じた分類を示すデータを記録する。
The file number area 111 indicates the number of file data recorded in the file data area 102.
It should be noted that even when information related to file data such as file name data is recorded in the file data area 102 instead of the actual file data, it is counted as the number of files. The free area instruction area 112 indicates a head address at which new file data is written next in the file data area 102.
The reserved area 113 is an area reserved for recording some data in the future. The parity area 114 records parity data for verifying the validity of the file number area 111, the free area instruction area 112, and the reserved area 113.
The classification type area 115 records data indicating a classification according to the use when each wireless tag 10 has a use.

ファイル属性領域120_nは、ファイルデータ領域102に記録された個々のファイルデータのそれぞれに対応したファイル属性データを記録する。
なお、ファイル属性領域120_nは、ショートカットに関するものである場合には、ファイルデータ領域102に記録されているファイル名データに対応したファイル属性データを記録する。
図10は、図9に示すファイル属性領域120_nの構成図である。
図10に示すように、ファイル属性領域120_nは、例えば、ファイル位置指定領域121、ファイル種別領域122、ファイル作成時刻領域123、ファイル名サイズ領域124、ファイルサイズ・参照領域125、予約領域126およびパリティ領域127を有する。
ファイル位置指示領域121は、ファイル属性領域120_nに対応するファイルデータ、あるいはファイル名データがファイルデータ領域102に記録されているアドレス(本発明の記録アドレス)を記録する。
The file attribute area 120_n records file attribute data corresponding to each individual file data recorded in the file data area 102.
When the file attribute area 120_n relates to a shortcut, file attribute data corresponding to the file name data recorded in the file data area 102 is recorded.
FIG. 10 is a configuration diagram of the file attribute area 120_n shown in FIG.
As shown in FIG. 10, the file attribute area 120_n includes, for example, a file position designation area 121, a file type area 122, a file creation time area 123, a file name size area 124, a file size / reference area 125, a reserved area 126, and a parity. A region 127 is included.
The file position instruction area 121 records the address (recording address of the present invention) where the file data corresponding to the file attribute area 120_n or the file name data is recorded in the file data area 102.

ファイル種別領域122は、ファイルデータ領域102に記録されている対応するファイルデータの圧縮の有無、署名データの有無などの種別を示す種別データを記録する。
ファイル作成時刻領域123は、ファイル属性領域120_nに対応するファイルデータあるいはファイル名データがファイルデータ領域102に記録された時刻を示す時刻データを記録する。
ファイル名サイズ領域124は、ファイルデータ領域102に記録されているファイル名データのサイズ(データ長)を記録する。
ファイルサイズ・参照領域125は、ファイルデータ領域102に対応するファイルデータが記録されている場合には当該ファイルデータのサイズを記録する。
ファイルサイズ・参照領域125は、図6および図8に示すように圧縮ファイル領域153に圧縮ファイルデータが記録されている場合には、圧縮前のファイルデータのサイズを記録する。
パリティ領域127は、ファイル位置指定領域121、ファイル種別領域122、ファイル作成時刻領域123、ファイル名サイズ領域124、ファイルサイズ・参照領域125および予約領域126のデータを正当性を検証するためのパリティデータを記録する。
The file type area 122 records type data indicating the type such as the presence / absence of compression of the corresponding file data recorded in the file data area 102 and the presence / absence of signature data.
The file creation time area 123 records time data indicating the time when file data or file name data corresponding to the file attribute area 120 — n is recorded in the file data area 102.
The file name size area 124 records the size (data length) of the file name data recorded in the file data area 102.
The file size / reference area 125 records the size of the file data when the file data corresponding to the file data area 102 is recorded.
The file size / reference area 125 records the size of the file data before compression when the compressed file data is recorded in the compressed file area 153 as shown in FIGS.
The parity area 127 is parity data for verifying the validity of the data in the file location specification area 121, the file type area 122, the file creation time area 123, the file name size area 124, the file size / reference area 125, and the reserved area 126. Record.

〔書込装置11〕
書込装置11は、図4〜図10を基に上述したフォーマットで無線タグ10,10aのメモリ35にデータを書き込む。
すなわち、書込装置11は、書き込み禁止機能を備えた無線タグ10にファイルデータ等を書き込む場合に、無線タグ10にファイルデータ等を書き込んだ後に、無線タグ10を書き込み禁止状態に設定する。
また、書込装置11は、書き込み禁止機能を備えていない無線タグ10aにファイルデータ等を書き込む場合に、当該ファイルデータの署名データを生成し、当該署名データをファイルデータ等と共に無線タグ10aに書き込む。
これにより、書込装置11は、無線タグ10,10aに記録されたファイルデータ等が第三者によって不正に書き換えられることを防止できる。
また、書込装置11は、図2および図3に示す無線タグ10,10aのメモリ35の図9に示す記録領域内のファイルデータ領域102内の第1のアドレスAから、第2のアドレスBに向けて複数の可変サイズのファイルデータおよびファイル名データを順に書き込む。
また、書込装置11は、上記複数のファイルデータの各々に対応して規定され対応するファイルデータのファイルデータ領域102内の記録アドレスをそれぞれ示し固定サイズの複数のファイル属性データを第2のアドレスBから第1のアドレスAに向けて規定されたファイル属性領域120_nに順に書き込む。
これにより、端末装置15は、メモリ35の記録領域内のファイル属性データが記録されているアドレスを、可変サイズのファイルデータ等の影響を受けずに特定できる。
また、上記記録領域内のファイルデータ等が記録されているアドレスは、図10に示すファイル位置指定領域121に記録されたアドレスから特定できる。
また、書込装置11は図9に示すように、ファイルテーブル領域103内のファイル個数領域111にファイル個数データを記録し、ファイル属性領域120_nのサイズは固定であるため、端末装置15はファイルテーブル領域103を構成するアドレスを容易に特定できる。
また、書込装置11は、ファイル名サイズ領域124にファイル名データのサイズを指定し、図4および図5に示すファイルデータ領域102内でのファイル名領域141のサイズを可変にすることで、ファイル名データのサイズをファイル名サイズ領域124のビット数によって規定される範囲内で自由に設定できる。例えば、書込装置11は、ファイル名サイズ領域124を8ビットとした場合に、最大255バイトまでのファイル名データをファイルデータ領域102に書き込める。
そのため、書込装置11は、例えば、端末装置15の機種に応じて異なる「/HTML4.0/index.html 」や「 /cHTML/index.html」といった木構造のファイル名データをファイルデータ領域102に書き込むことができる。
また、上述したショートカットを用いることで、異なる複数のファイル名データに対して単数のファイルデータをファイルデータ領域102に書き込めばよく、メモリ35の記録領域を効率的に利用できる。
[Writing device 11]
The writing device 11 writes data into the memory 35 of the wireless tags 10 and 10a in the format described above with reference to FIGS.
That is, when writing file data or the like to the wireless tag 10 having the write prohibiting function, the writing device 11 sets the wireless tag 10 in a write prohibited state after writing the file data or the like to the wireless tag 10.
Further, when writing file data or the like to the wireless tag 10a that does not have a write prohibition function, the writing device 11 generates signature data of the file data and writes the signature data together with the file data or the like to the wireless tag 10a. .
Thereby, the writing device 11 can prevent the file data and the like recorded in the wireless tags 10 and 10a from being illegally rewritten by a third party.
Further, the writing device 11 starts from the first address A in the file data area 102 in the recording area shown in FIG. 9 of the memory 35 of the wireless tags 10 and 10a shown in FIGS. A plurality of variable-size file data and file name data are sequentially written toward the.
Further, the writing device 11 indicates a recording address in the file data area 102 of the file data defined and corresponding to each of the plurality of file data, and indicates a plurality of file attribute data having a fixed size as a second address. Data are sequentially written in the file attribute area 120_n defined from B to the first address A.
Thereby, the terminal device 15 can specify the address where the file attribute data in the recording area of the memory 35 is recorded without being affected by the variable-size file data or the like.
Further, the address where the file data or the like in the recording area is recorded can be specified from the address recorded in the file position designation area 121 shown in FIG.
Further, as shown in FIG. 9, the writing device 11 records the file number data in the file number region 111 in the file table region 103, and the size of the file attribute region 120_n is fixed. The address constituting the area 103 can be easily specified.
Further, the writing device 11 designates the size of the file name data in the file name size area 124 and makes the size of the file name area 141 in the file data area 102 shown in FIGS. 4 and 5 variable. The size of the file name data can be freely set within a range defined by the number of bits in the file name size area 124. For example, the writing device 11 can write file name data up to 255 bytes in the file data area 102 when the file name size area 124 is 8 bits.
Therefore, for example, the writing device 11 stores tree-structured file name data such as “/HTML4.0/index.html” or “/cHTML/index.html” that differs depending on the model of the terminal device 15 in the file data area 102. Can be written on.
Further, by using the above-described shortcut, a single file data may be written into the file data area 102 for a plurality of different file name data, and the recording area of the memory 35 can be used efficiently.

図11は、図1に示す書込装置11のハードウェア構成図である。
図11に示すように、書込装置11は、例えば、インタフェース21、RF部22、アンテナ23、メモリ24、処理部25および署名生成部26を有し、これらがデータ線20を介して接続されている。
インタフェース21は、図1に示すコンピュータ12との間でデータ授受を行う。
RF部22は、アンテナ23を介して無線タグ10との間で無線によるデータ授受を行う。
メモリ24は、処理部25の処理を規定するプログラムPRG1、並びに処理部25の処理に用いられる種々のデータを記録する。
処理部25は、プログラムPRG1を基に、上述あるいは後述する書込装置11の処理を統括的に制御する。
署名生成部26は、例えば、書込装置11の秘密鍵データを用いて、無線タグ10aに書き込むファイルデータに対しての署名データを生成する。
FIG. 11 is a hardware configuration diagram of the writing device 11 shown in FIG.
As illustrated in FIG. 11, the writing device 11 includes, for example, an interface 21, an RF unit 22, an antenna 23, a memory 24, a processing unit 25, and a signature generation unit 26, which are connected via a data line 20. ing.
The interface 21 exchanges data with the computer 12 shown in FIG.
The RF unit 22 exchanges data wirelessly with the wireless tag 10 via the antenna 23.
The memory 24 records a program PRG1 that defines the processing of the processing unit 25 and various data used for the processing of the processing unit 25.
The processing unit 25 comprehensively controls the processing of the writing device 11 described above or later, based on the program PRG1.
For example, the signature generation unit 26 uses the secret key data of the writing device 11 to generate signature data for file data to be written to the wireless tag 10a.

以下、書込装置11の動作例を説明する。
なお、以下の動作例において、処理部25と無線タグ10,10aとの通信は、図11に示すRF部22およびアンテナ23を介して行う。
また、処理部25による無線タグ10,10aのメモリ35への書き込みおよび読み出しは、処理部25が無線タグ10,10aのメモリアクセス部34に指示を出すことで行われる。
Hereinafter, an operation example of the writing device 11 will be described.
In the following operation example, communication between the processing unit 25 and the wireless tags 10 and 10a is performed via the RF unit 22 and the antenna 23 shown in FIG.
The processing unit 25 writes and reads the wireless tags 10 and 10a to and from the memory 35 when the processing unit 25 issues an instruction to the memory access unit 34 of the wireless tags 10 and 10a.

〔無線タグ10の初期化動作〕
図12は、書込装置11による無線タグ10,10aの初期化動作を説明するためのフローチャートである。
ステップST1:
書込装置11の処理部25は、RF部22およびアンテナ23を介して、無線タグ10,10aと無線通信が可能か否かを判断し、可能であると判断するとステップST2に進み、そうでない場合にはエラー処理を行う。
ステップST2:
処理部25は、メモリ35に記録されたタグデータを読み出す。
当該タグデータは、例えば、無線タグ10,10aの書き換え禁止機能の有無、製造コード、バージョン、メモリ35の記録領域のサイズ、当該記録領域へのアクセス単位などの情報を含んでいる。
[Initialization operation of wireless tag 10]
FIG. 12 is a flowchart for explaining the initialization operation of the wireless tags 10 and 10a by the writing device 11.
Step ST1:
The processing unit 25 of the writing device 11 determines whether or not wireless communication with the wireless tags 10 and 10a is possible via the RF unit 22 and the antenna 23. If it is determined that the wireless tag is possible, the process proceeds to step ST2. In some cases, error handling is performed.
Step ST2:
The processing unit 25 reads tag data recorded in the memory 35.
The tag data includes, for example, information such as the presence / absence of a rewrite prohibition function of the wireless tags 10 and 10a, a manufacturing code, a version, a size of a recording area of the memory 35, and an access unit to the recording area.

ステップST3:
処理部25は、ステップST2で入力したタグデータを基に、図9に示すタグ管理領域101のサイズおよびフォーマットを決定する。
これにより、無線タグ10の特性に応じてタグ管理領域101を規定できる。
そして、処理部25は、無線タグ10,10aの図9に示すタグ管理領域101に所定のタグ管理データを書き込む。
ステップST4:
処理部25は、図9に示す記録領域内の第2のアドレスBから所定のサイズのファイルテーブル領域103を規定する。
ステップST5:
処理部25は、ステップST4で規定したファイルテーブル領域103内の図9に示すファイル個数領域111、空き領域指示領域112、予約領域113、パリティ領域114および分類種別領域115の各々に初期データを書き込む。
Step ST3:
The processing unit 25 determines the size and format of the tag management area 101 shown in FIG. 9 based on the tag data input in step ST2.
Thereby, the tag management area 101 can be defined according to the characteristics of the wireless tag 10.
Then, the processing unit 25 writes predetermined tag management data in the tag management area 101 shown in FIG. 9 of the wireless tags 10 and 10a.
Step ST4:
The processing unit 25 defines the file table area 103 having a predetermined size from the second address B in the recording area shown in FIG.
Step ST5:
The processing unit 25 writes initial data to each of the file number area 111, the free area instruction area 112, the reserved area 113, the parity area 114, and the classification type area 115 shown in FIG. 9 in the file table area 103 defined in step ST4. .

ステップST6:
処理部25は、ステップST5の書き込みが成功したか否かを判断し、成功した場合には処理を終了し、不成功の場合にはステップST7に進む。
ステップST7:
処理部25は、ステップST5の書き込みが所定の再処理回数以下であるか否かを判断し、所定の再処理回数以下であると判断するとステップST5に戻り、そうでない場合にはエラー処理を行う。
Step ST6:
The processing unit 25 determines whether or not the writing in step ST5 is successful. If the writing is successful, the processing unit 25 ends the processing. If the writing is not successful, the processing unit 25 proceeds to step ST7.
Step ST7:
The processing unit 25 determines whether or not the writing in step ST5 is less than or equal to a predetermined number of reprocessing times. If it is determined that the writing is less than or equal to the predetermined number of reprocessing times, the processing unit 25 returns to step ST5. .

〔ファイルデータ等の書き込み動作〕
図13は、書込装置11によるファイルデータ等の無線タグ10,10aへの書き込み動作の全体を説明するためのフローチャートである。
ステップST11:
書込装置11の処理部25は、インタフェース21をコンピュータ12から書き込み指示を入力すると、RF部22およびアンテナ23を介して、無線タグ10,10aのメモリ35から、タグデータ内の書き込み禁止機能の有無を示すデータを読み出す。
ステップST12:
処理部25は、ステップST11で読み出したデータを基に、無線タグ10,10aが書き込み禁止機能を備えているか否かを判断し、書き込み禁止機能を備えていると判断するとステップST13に進み、そうでない場合にはステップST17に進む。
具体的には、書込装置11が無線タグ10に書き込みを行う場合にはステップST13に進み、無線タグ10aに書き込みを行う場合にはステップST17に進む。
[File data write operation]
FIG. 13 is a flowchart for explaining the entire operation of writing file data or the like to the wireless tags 10 and 10a by the writing device 11.
Step ST11:
When the processing unit 25 of the writing device 11 inputs a write instruction to the interface 21 from the computer 12, the function of prohibiting writing in the tag data from the memory 35 of the wireless tags 10 and 10 a is received from the RF unit 22 and the antenna 23. Read data indicating presence / absence.
Step ST12:
Based on the data read in step ST11, the processing unit 25 determines whether or not the wireless tags 10 and 10a have a write prohibition function. If the processing unit 25 determines that the write prohibition function is provided, the processing unit 25 proceeds to step ST13. If not, the process proceeds to step ST17.
Specifically, when the writing device 11 writes to the wireless tag 10, the process proceeds to step ST13, and when writing to the wireless tag 10a, the process proceeds to step ST17.

ステップST13:
処理部25は、無線タグ10のメモリ35にファイルデータ等を書き込む。この場合に、処理部25は、署名データをメモリ35に書き込まない。
当該動作については、後に詳細に説明する。
ステップST14:
処理部25は、ステップST13の書き込みが成功したか否かを判断し、成功したと判断するとステップST15に進み、そうでない場合にはエラー処理を行う。
ステップST15:
処理部25は、図2に示す無線タグ10のメモリアクセス部34に書き込み禁止指示を出力する。
これにより、メモリアクセス部34は、以後、メモリ35への書き込みを禁止状態にする。
ステップST16:
処理部25は、ステップST15の書き込み禁止処理が成功したか否かを判断し、成功したと判断すると処理を終了し、そうでない場合にはエラー処理を行う。
Step ST13:
The processing unit 25 writes file data and the like in the memory 35 of the wireless tag 10. In this case, the processing unit 25 does not write the signature data in the memory 35.
This operation will be described in detail later.
Step ST14:
The processing unit 25 determines whether or not the writing in step ST13 is successful. If the processing unit 25 determines that the writing is successful, the processing unit 25 proceeds to step ST15, and otherwise performs error processing.
Step ST15:
The processing unit 25 outputs a write prohibition instruction to the memory access unit 34 of the wireless tag 10 shown in FIG.
As a result, the memory access unit 34 thereafter disables writing to the memory 35.
Step ST16:
The processing unit 25 determines whether or not the write prohibition process in step ST15 is successful. If it is determined that the process is successful, the processing unit 25 ends the process. If not, the processing unit 25 performs an error process.

ステップST17:
処理部25は、無線タグ10aに書き込みを行う場合には、例えば、署名生成部26に署名生成指示を出力する。
署名生成部26は、当該署名生成指示に応じて、書込装置11の秘密鍵データを用いて、無線タグ10aに書き込むファイルデータに対しての署名データを生成する。
ステップST18:
処理部25は、無線タグ10aのメモリ35の図6あるいは図8に示す署名領域143にステップST17で生成した署名データを書き込む。
また、処理部25は、後述するように、ファイルデータ等をメモリ35に書き込む。
ステップST19:
処理部25は、ステップST18の書き込みが成功したか否かを判断し、成功したと判断すると処理を終了し、そうでない場合にはエラー処理を行う。
Step ST17:
For example, the processing unit 25 outputs a signature generation instruction to the signature generation unit 26 when writing to the wireless tag 10a.
In response to the signature generation instruction, the signature generation unit 26 uses the secret key data of the writing device 11 to generate signature data for the file data to be written to the wireless tag 10a.
Step ST18:
The processing unit 25 writes the signature data generated in step ST17 in the signature area 143 shown in FIG. 6 or 8 of the memory 35 of the wireless tag 10a.
Further, the processing unit 25 writes file data or the like in the memory 35 as will be described later.
Step ST19:
The processing unit 25 determines whether or not the writing in step ST18 is successful. If it is determined that the writing is successful, the processing unit 25 ends the process. If not, an error process is performed.

以下、書込装置11による図13に示すステップST13,ST18におけるファイルデータの無線タグ10あるいは10aへの書き込み動作の詳細を説明する。
図14および図15は、当該動作を説明するためのフローチャートである。
ステップST21:
書込装置11の処理部25は、インタフェース21を介してコンピュータ12から書き込み指示と共に入力したファイル名データが有効であるか否かを判断し、有効であると判断するとステップST22に進み、そうでない場合にはエラー処理を行う。
処理部25は、例えば、識別子として「.html」が付されていないファイル名を受けると、それを有効ではないと判断する。
The details of the operation of writing the file data to the wireless tag 10 or 10a in steps ST13 and ST18 shown in FIG.
14 and 15 are flowcharts for explaining the operation.
Step ST21:
The processing unit 25 of the writing device 11 determines whether or not the file name data input together with the write instruction from the computer 12 via the interface 21 is valid. If it is determined that the file name data is valid, the process proceeds to step ST22; In some cases, error handling is performed.
For example, when the processing unit 25 receives a file name without “.html” as an identifier, it determines that it is not valid.

ステップST22:
処理部25は、無線タグ10,10aのメモリ35のファイルテーブル領域103の全ての図10に示すファイル属性領域120_nのファイル位置指定領域121に記録されたアドレスを基に、図4〜図8に示すファイルデータ領域102内のファイル名領域141に記録されたファイル名データを読み出す。
このとき、処理部25は、図9に示す第2のアドレスBと、ファイル個数領域111が示すファイル数と、ファイル属性領域120_nのサイズ等を基に、ファイル属性領域120_n内のファイル位置指定領域121を特定する。
ステップST23:
処理部25は、ステップST22で読み出したファイル名データのなかに、ステップST21で指定されたファイル名データと同じものがあるか否かを判断し、同じものがないと判断するとステップST24に進み、同じものがあると判断するとエラー処理を行う。
Step ST22:
Based on the addresses recorded in the file location designation areas 121 of the file attribute areas 120_n shown in FIG. 10 in the file table area 103 of the memory 35 of the wireless tags 10 and 10a, the processing unit 25 performs the processing shown in FIGS. The file name data recorded in the file name area 141 in the file data area 102 shown is read.
At this time, the processing unit 25 uses the second address B shown in FIG. 9, the number of files indicated by the file number area 111, the size of the file attribute area 120_n, and the like to determine the file position designation area in the file attribute area 120_n. 121 is specified.
Step ST23:
The processing unit 25 determines whether the file name data read in step ST22 is the same as the file name data specified in step ST21. If it is determined that there is no same, the process proceeds to step ST24. If it is determined that there is the same, error processing is performed.

ステップST24:
処理部25は、無線タグ10,10aのメモリ35の図9に示すファイル個数領域111に記録されたファイル数データが、例えば、図13に示す処理で得たタグデータによって規定される最多ファイル数未満であるか否かを判断し、最多ファイル数未満であると判断するとステップST25に進み、そうでない場合にはエラー処理を行う。
ステップST25:
処理部25は、図11に示すインタフェース21を介してコンピュータ12から入力したファイルデータを、所定の圧縮手法で圧縮して圧縮ファイルデータを生成する。
ステップST26:
処理部25は、ステップST25において生成した圧縮ファイルデータが、圧縮前のファイルデータよりサイズが小さいか否かを判断し、サイズが小さいと判断するとステップST27に進み、そうでない場合にはステップST28に進む。
Step ST24:
The processing unit 25 is configured so that the file number data recorded in the file number area 111 shown in FIG. 9 of the memory 35 of the wireless tags 10 and 10a is, for example, the maximum number of files specified by the tag data obtained in the process shown in FIG. If it is determined that the number of files is less than the maximum number of files, the process proceeds to step ST25. If not, error processing is performed.
Step ST25:
The processing unit 25 generates compressed file data by compressing file data input from the computer 12 via the interface 21 shown in FIG. 11 using a predetermined compression method.
Step ST26:
The processing unit 25 determines whether or not the compressed file data generated in step ST25 is smaller in size than the file data before compression. If the processing unit 25 determines that the size is small, the processing unit 25 proceeds to step ST27. If not, the processing unit 25 proceeds to step ST28. move on.

ステップST27:
処理部25は、無線タグ10,10aのメモリ35のファイルデータ領域102に記録するデータとしてステップST25で生成した圧縮ファイルデータを選択する。
ステップST28:
処理部25は、無線タグ10,10aのメモリ35のファイルデータ領域102に記録するデータとしてステップST25の圧縮前のファイルデータを選択する。
Step ST27:
The processing unit 25 selects the compressed file data generated in step ST25 as data to be recorded in the file data area 102 of the memory 35 of the wireless tag 10 or 10a.
Step ST28:
The processing unit 25 selects the file data before compression in step ST25 as data to be recorded in the file data area 102 of the memory 35 of the wireless tag 10 or 10a.

ステップST29:
処理部25は、ステップST27あるいはST28で選択した圧縮ファイルデータあるいはファイルデータを無線タグ10,10aのファイルデータ領域102に記録する場合に必要な記録容量を計算する。
ステップST30:
処理部25は、無線タグ10のメモリ35の例えば図9に示すファイル個数領域111および空き領域指示領域112から読み出したファイル個数データおよびアドレスから、メモリ35の空き容量を特定する。
ステップST31:
処理部25は、ステップST19で計算した記録容量が、ステップST30で特定した空き容量以下であるか否かを判断し、そうであると判断するとステップST32に進み、そうでないと判断するとエラー処理を行う。
ステップST32:
処理部25は、圧縮前のファイルデータあるいは圧縮後のファイルデータ等を無線タグ10,10aのメモリ35に書き込む。
処理部25は、例えば、圧縮前のファイルデータをメモリ35に書き込む場合に、メモリ35の図9に示す空き領域指示領域112から読み出したアドレスから第2のアドレスBに向けて、図5および図6に示すように、先ずステップST21で入力したファイル名データを書き込み、続いて圧縮前のファイルデータを書き込む。
一方、処理部25は、例えば、圧縮ファイルデータを無線タグ10,10aのメモリ35に書き込む場合に、メモリ35の図9に示す空き領域指示領域112から読み出したアドレスから第2のアドレスBに向けて、図7および図8に示すように、先ずステップST21で入力したファイル名データを書き込み、続いて記録サイズ領域151に圧縮ファイルデータのサイズを書き込み、続いて圧縮種別領域152に圧縮手法を書き込み、続いて圧縮ファイル領域153に圧縮ファイルデータを書き込む。
Step ST29:
The processing unit 25 calculates a recording capacity necessary for recording the compressed file data or file data selected in step ST27 or ST28 in the file data area 102 of the wireless tags 10 and 10a.
Step ST30:
The processing unit 25 specifies the free capacity of the memory 35 from the file number data and the address read from, for example, the file number area 111 and the free area instruction area 112 shown in FIG. 9 in the memory 35 of the wireless tag 10.
Step ST31:
The processing unit 25 determines whether or not the recording capacity calculated in step ST19 is equal to or less than the free capacity specified in step ST30. If so, the process proceeds to step ST32. If not, error processing is performed. Do.
Step ST32:
The processing unit 25 writes file data before compression or file data after compression into the memory 35 of the wireless tags 10 and 10a.
For example, when writing the uncompressed file data in the memory 35, the processing unit 25 proceeds from the address read from the free space instruction area 112 shown in FIG. 9 of the memory 35 toward the second address B in FIGS. As shown in FIG. 6, first, the file name data input in step ST21 is written, and then the file data before compression is written.
On the other hand, for example, when the compressed file data is written in the memory 35 of the wireless tags 10 and 10a, the processing unit 25 is directed from the address read from the free space instruction area 112 shown in FIG. 7 and 8, first, the file name data input in step ST21 is written, then the size of the compressed file data is written in the recording size area 151, and then the compression method is written in the compression type area 152. Subsequently, the compressed file data is written in the compressed file area 153.

ステップST33:
処理部25は、ステップST32の書き込みが成功したか否かを判断し、成功した場合にはステップST35に進み、不成功の場合にはステップST34に進む。
ステップST34:
処理部25は、ステップST32の書き込みが所定の再処理回数以下であるか否かを判断し、所定の再処理回数以下であると判断するとステップST32に戻り、そうでない場合にはエラー処理を行う。
Step ST33:
The processing unit 25 determines whether or not the writing in step ST32 is successful. If the writing is successful, the processing unit 25 proceeds to step ST35. If the writing is unsuccessful, the processing unit 25 proceeds to step ST34.
Step ST34:
The processing unit 25 determines whether or not the writing in step ST32 is less than or equal to the predetermined number of reprocessing, and returns to step ST32 when determining that the writing is equal to or less than the predetermined number of reprocessing, and otherwise performs error processing. .

ステップST35:
処理部25は、ステップST32でファイルデータ領域102に書き込んだファイルデータに対応するファイル属性データを図9に示すファイル属性領域120_nに書き込む。
このとき、処理部25は、図9に示す第2のアドレスBと、ファイル個数領域111から読み出したファイル個数データと、ファイル属性領域120_nのサイズ等とを基に、メモリ35内の次にファイル属性領域120_nを書き込むアドレスを計算する。
Step ST35:
The processing unit 25 writes the file attribute data corresponding to the file data written in the file data area 102 in step ST32 in the file attribute area 120_n shown in FIG.
At this time, the processing unit 25 selects the next file in the memory 35 based on the second address B shown in FIG. 9, the file number data read from the file number area 111, the size of the file attribute area 120_n, and the like. An address for writing the attribute area 120_n is calculated.

ステップST36:
処理部25は、ステップST35の書き込みが成功したか否かを判断し、成功した場合には処理を終了し、不成功の場合にはステップST37に進む。
ステップST37:
処理部25は、ステップST35の書き込みが所定の再処理回数以下であるか否かを判断し、所定の再処理回数以下であると判断するとステップST25に戻り、そうでない場合にはエラー処理を行う。
Step ST36:
The processing unit 25 determines whether or not the writing in Step ST35 is successful. If the writing is successful, the processing unit 25 ends the process. If the writing is not successful, the process proceeds to Step ST37.
Step ST37:
The processing unit 25 determines whether or not the writing in step ST35 is equal to or smaller than the predetermined number of reprocessing. When it is determined that the writing is equal to or smaller than the predetermined number of reprocessing, the processing unit 25 returns to step ST25. .

以上説明したように、書込装置11によれば、書き換え禁止機能を備えている無線タグ10にファイルデータ等を書き込む場合には、無線タグ10を書き換え禁止状態に設定することで、第三者が無線タグ10に不正にファイルデータ等を書き込むことを回避できる。
また、書込装置11によれば、書き換え禁止機能を備えていない無線タグ10aにファイルデータ等を書き込む場合に、当該ファイルデータ等の署名データをさらに無線タグ10aに書き込む。
そのため、端末装置15は、無線タグ10aに記録されている署名データを基に、ファイルデータの正当性を検証でき、第三者が不正に無線タグ10aに書き込んだファイルデータ等を正当なものとして誤って利用することを回避できる。
また、データ配信システム1によれば、可変サイズのファイル名データおよびファイルデータの組を図9に示す第1のアドレスから第2のアドレスに向けて順に書き込み、それに対応する固定サイズのファイル属性データを第2のアドレスから第1のアドレスに順に記録する。
そのため、無線タグ10,10aのメモリ35の記録領域を、ファイルデータ等の不確定な可変サイズの影響を受けずに、常に効率的に利用できる。これにより、無線タグ10,10aのメモリ35に記録するファイルデータのデータ量を大きくできる。
また、ファイル属性データは第2のアドレスBから第1のアドレスAに向けて記録され、しかも固定サイズであるため、後述する端末装置15は、コンピュータなどに採用される複雑なファイルシステムを使用しなくても、第2のアドレスBおよびファイル属性データの固定サイズとを基に、ファイル属性データのアドレスを簡単な処理で特定し、当該特定したファイル属性データを基にファイルデータのアドレスを簡単な処理で特定できる。
そのため、データ配信システム1によれば、従来に比べて、ファイル管理に伴う処理量、並びにそれに必要なデータ量を削減できる。
また、上述した実施形態では、図5〜図8に示すファイル名領域141を可変サイズにしたことで、複数の端末装置15のそれぞれが規定する固有のファイル名データに容易に対応できる。
また、データ配信システム1によれば、書込装置11が、ファイルデータを圧縮して無線タグ10,10aのメモリ35に書き込むことで、端末装置15がメモリ35からファイルデータ短時間で読み出すことができる。
As described above, according to the writing device 11, when writing file data or the like to the wireless tag 10 having the rewrite prohibiting function, the wireless tag 10 is set to a rewrite prohibiting state, thereby enabling a third party. Can avoid illegally writing file data or the like to the wireless tag 10.
Further, according to the writing device 11, when writing file data or the like to the wireless tag 10a that does not have the rewrite prohibition function, signature data such as the file data is further written to the wireless tag 10a.
Therefore, the terminal device 15 can verify the legitimacy of the file data based on the signature data recorded in the radio tag 10a, and the file data etc. that the third party has illegally written in the radio tag 10a is regarded as legitimate. You can avoid using it by mistake.
Further, according to the data distribution system 1, a set of variable-size file name data and file data is sequentially written from the first address to the second address shown in FIG. 9, and corresponding fixed-size file attribute data. Are recorded in order from the second address to the first address.
Therefore, the recording area of the memory 35 of the wireless tags 10 and 10a can always be efficiently used without being affected by an uncertain variable size such as file data. Thereby, the data amount of the file data recorded on the memory 35 of the wireless tags 10 and 10a can be increased.
Further, since the file attribute data is recorded from the second address B to the first address A and has a fixed size, the terminal device 15 described later uses a complicated file system employed in a computer or the like. Even if not, the address of the file attribute data is specified by a simple process based on the second address B and the fixed size of the file attribute data, and the address of the file data is easily determined based on the specified file attribute data. Can be identified by processing.
Therefore, according to the data distribution system 1, it is possible to reduce the amount of processing associated with file management and the amount of data required for the file management as compared with the conventional case.
Further, in the above-described embodiment, the file name area 141 shown in FIGS. 5 to 8 has a variable size, so that it is possible to easily deal with unique file name data defined by each of the plurality of terminal devices 15.
Further, according to the data distribution system 1, the writing device 11 compresses the file data and writes it in the memory 35 of the wireless tags 10 and 10a, so that the terminal device 15 reads the file data from the memory 35 in a short time. it can.

〔端末装置15〕
端末装置15は、図4〜図10を基に上述したフォーマットで無線タグ10,10aのメモリ35に書き込まれたデータを読み出す。
すなわち、端末装置15は、無線タグ10からファイルデータおよびファイル属性データ等を読み出す。
また、端末装置15は、無線タグ10aから、ファイルデータおよびファイル属性データに加えて署名データを読み出す。端末装置15は、署名データの正当性を検証した後に、上記読み出したファイルデータおよびファイル属性データ等を有効なものとして利用する。
無線タグ10aには書き込み禁止機能がないため、第三者は無線タグ10aに不正にファイルデータを書き込めるが、端末装置15は署名データの検証を行うため、当該不正な書き込みを適切に検出でき、誤って当該ファイルデータを利用することを回避できる。
[Terminal device 15]
The terminal device 15 reads the data written in the memory 35 of the wireless tags 10 and 10a in the format described above with reference to FIGS.
That is, the terminal device 15 reads file data, file attribute data, and the like from the wireless tag 10.
In addition to the file data and the file attribute data, the terminal device 15 reads the signature data from the wireless tag 10a. After verifying the validity of the signature data, the terminal device 15 uses the read file data and file attribute data as valid ones.
Since the wireless tag 10a does not have a write prohibition function, a third party can illegally write file data to the wireless tag 10a. However, since the terminal device 15 verifies the signature data, the unauthorized write can be detected appropriately. It is possible to avoid using the file data by mistake.

また、端末装置15は、上記読み出し動作において、無線タグ10,10aのメモリ35の図9に示すファイル属性領域120_nに記録された固定サイズのファイル属性データを、当該固定サイズおよび図9に示す第2のアドレスB等を基に読み出す。
続いて、端末装置15は、上記読み出したファイル属性データ内に規定されたアドレスを基に、ファイルデータ領域102に記録されたファイルデータあるいは圧縮ファイルデータを読み出す。
これにより、端末装置15は、メモリ35の記録領域内のファイル属性データが記録されているアドレスを、可変サイズのファイルデータ等の影響を受けずに特定できる。
また、上記記録領域内のファイルデータ等が記録されているアドレスは、図10に示すファイル位置指定領域121に記録されたファイル属性データを構成するアドレスから特定できる。
Further, in the reading operation, the terminal device 15 uses the fixed size file attribute data recorded in the file attribute area 120_n shown in FIG. 9 of the memory 35 of the wireless tags 10 and 10a as the fixed size and the first size shown in FIG. 2 is read based on the address B of 2 and the like.
Subsequently, the terminal device 15 reads the file data or the compressed file data recorded in the file data area 102 based on the address defined in the read file attribute data.
Thereby, the terminal device 15 can specify the address where the file attribute data in the recording area of the memory 35 is recorded without being affected by the variable-size file data or the like.
Further, the address where the file data or the like in the recording area is recorded can be specified from the address constituting the file attribute data recorded in the file position designation area 121 shown in FIG.

図16は、図1に示す端末装置15のハードウェア構成図である。
図16に示すように、端末装置15は、例えば、ディスプレイ41、RF部42、アンテナ43、メモリ44、処理部45および署名検証部46を有し、これらがデータ線40を介して接続されている。
ディスプレイ41は、処理部45からの表示信号を基に、無線タグ10aに記録されたファイルデータに応じた画像(例えば、広告画像)を表示する。
RF部42は、アンテナ43を介して無線タグ10,10aとの間で無線によるデータ授受を行う。
メモリ44は、処理部45の処理を規定するプログラムPRG2、並びに処理部45の処理に用いられる種々のデータを記録する。
処理部45は、プログラムPRG2を基に、上述あるいは後述する端末装置15の処理を統括的に制御する。
署名検証部46は、無線タグ10aの図6あるいは図8に示す署名領域143から読み出された署名データの正当性を、書込装置11の公開鍵データを用いて検証する。
FIG. 16 is a hardware configuration diagram of the terminal device 15 shown in FIG.
As illustrated in FIG. 16, the terminal device 15 includes, for example, a display 41, an RF unit 42, an antenna 43, a memory 44, a processing unit 45, and a signature verification unit 46, which are connected via a data line 40. Yes.
The display 41 displays an image (for example, an advertisement image) according to the file data recorded in the wireless tag 10a based on the display signal from the processing unit 45.
The RF unit 42 performs wireless data exchange with the wireless tags 10 and 10 a via the antenna 43.
The memory 44 records the program PRG2 that defines the processing of the processing unit 45 and various data used for the processing of the processing unit 45.
The processing unit 45 comprehensively controls the processing of the terminal device 15 described above or later, based on the program PRG2.
The signature verification unit 46 verifies the validity of the signature data read from the signature area 143 shown in FIG. 6 or 8 of the wireless tag 10 a using the public key data of the writing device 11.

以下、端末装置15による無線タグ10,10aからの読み出し動作例を説明する。
図17は、図1および図16に示す端末装置15による無線タグ10,10aからの読み出し動作例の全体を説明する。
なお、以下に示す動作例において、図16に示す端末装置15の処理部45は、RF部42およびメモリ44を介して、無線タグ10,10aのメモリ35からデータを読み出す。
また、処理部45は、無線タグ10,10aのメモリアクセス部34に対して読み出し指示を出す。
ステップST41:
書込装置11の処理部25は、インタフェース21を介してコンピュータ12から書き込み指示を入力すると、RF部22およびアンテナ23を介して、無線タグ10,10aのメモリ35から、タグデータ内の書き込み禁止機能の有無を示すデータを読み出す。
ステップST42:
処理部45は、ステップST41で読み出したデータを基に、無線タグ10,10aが書き込み禁止機能を備えているか否かを判断し、書き込み禁止機能を備えていると判断するとステップST43に進み、そうでない場合にはステップST45に進む。
具体的には、書込装置11が無線タグ10の読み出しを行う場合にはステップST43に進み、無線タグ10aの読み出しを行う場合にはステップST45に進む。
Hereinafter, an example of an operation of reading from the wireless tags 10 and 10a by the terminal device 15 will be described.
FIG. 17 illustrates an entire operation example of reading from the wireless tags 10 and 10a by the terminal device 15 illustrated in FIGS.
In the operation example described below, the processing unit 45 of the terminal device 15 illustrated in FIG. 16 reads data from the memory 35 of the wireless tags 10 and 10a via the RF unit 42 and the memory 44.
In addition, the processing unit 45 issues a read instruction to the memory access unit 34 of the wireless tags 10 and 10a.
Step ST41:
When the processing unit 25 of the writing device 11 inputs a write instruction from the computer 12 via the interface 21, writing in the tag data is prohibited from the memory 35 of the wireless tags 10 and 10 a via the RF unit 22 and the antenna 23. Reads data indicating presence or absence of function.
Step ST42:
Based on the data read in step ST41, the processing unit 45 determines whether or not the wireless tags 10 and 10a have a write prohibition function. If the processing unit 45 determines that the write prohibition function is provided, the processing unit 45 proceeds to step ST43. If not, the process proceeds to step ST45.
Specifically, when the writing device 11 reads the wireless tag 10, the process proceeds to step ST43, and when reading the wireless tag 10a, the process proceeds to step ST45.

スップST43:
処理部45は、無線タグ10のメモリ35の図5に示すファイル領域142あるいは図7に示す圧縮ファイル領域153から、ファイルデータあるいは圧縮ファイルデータを読み出す。
当該読み出し動作については、後に詳細に説明する。
ステップST44:
処理部45は、ステップST43の読み出しが成功したか否かを判断し、成功したと判断すると処理を終了し、そうでない場合にはエラー処理を行う。
SUP ST43:
The processing unit 45 reads file data or compressed file data from the file area 142 shown in FIG. 5 or the compressed file area 153 shown in FIG. 7 of the memory 35 of the wireless tag 10.
The read operation will be described later in detail.
Step ST44:
The processing unit 45 determines whether or not the reading in step ST43 is successful. If the processing unit 45 determines that the reading is successful, the processing unit 45 ends the processing. If not, the processing unit 45 performs error processing.

ステップST45:
処理部45は、無線タグ10aのメモリ35から、ファイルデータおよびファイル属性データ等を読み出す。当該読み出し動作については、後に詳細に説明する。
また、処理部45は、無線タグ10aのメモリ35の図6あるいは図8に示す署名領域143から署名データを読み出す。
ステップST46:
処理部45は、署名検証部46に対して署名検証指示を出す。
署名検証部46は、当該署名検証指示に応じて、ステップST45で読み出された署名データの正当性を、書込装置11の公開鍵データを用いて検証する。
ステップST47:
処理部45は、ステップST45の読み出しが成功し、かつ、ステップST46で署名データが正当であると判断されたという条件が満たされたか否かを判断し、満たされたと判断すると処理を終了し、そうでない場合にはエラー処理を行う。
Step ST45:
The processing unit 45 reads file data, file attribute data, and the like from the memory 35 of the wireless tag 10a. The read operation will be described later in detail.
Further, the processing unit 45 reads the signature data from the signature area 143 shown in FIG. 6 or 8 of the memory 35 of the wireless tag 10a.
Step ST46:
The processing unit 45 issues a signature verification instruction to the signature verification unit 46.
In response to the signature verification instruction, the signature verification unit 46 verifies the validity of the signature data read in step ST45 using the public key data of the writing device 11.
Step ST47:
The processing unit 45 determines whether or not the condition that the reading in step ST45 is successful and the signature data is determined to be valid in step ST46 is satisfied. Otherwise, error handling is performed.

以下、図17に示すステップST43,ST45におけるファイルデータおよびファイル属性データ等の読み出し動作の詳細を説明する。
図18および図19は、当該動作を説明するためのフローチャートである。
ステップST51:
図16に示す端末装置15の処理部45は、例えば、プログラムPRG2の実行に応じて、予め決められたファイル名データと共に読み出し指示を受ける。
処理部45は、当該ファイル名データが有効であるか否かを判断し、有効であると判断するとステップST52に進み、そうでない場合にはエラー処理を行う。
処理部45は、例えば、識別子として「.html」が付されていないファイル名を受けると、それを有効ではないと判断する。
Hereinafter, details of the reading operation of the file data and the file attribute data in steps ST43 and ST45 shown in FIG. 17 will be described.
18 and 19 are flowcharts for explaining the operation.
Step ST51:
The processing unit 45 of the terminal device 15 illustrated in FIG. 16 receives a read instruction together with predetermined file name data, for example, in accordance with the execution of the program PRG2.
The processing unit 45 determines whether or not the file name data is valid. If it is determined that the file name data is valid, the processing unit 45 proceeds to step ST52, and if not, performs error processing.
For example, when the processing unit 45 receives a file name without “.html” as an identifier, it determines that it is not valid.

ステップST52:
処理部45は、無線タグ10,10aのメモリ35のファイルテーブル領域103の全ての図10に示すファイル属性領域120_nのファイル位置指定領域121に記録されたアドレスを基に、図4および図5に示すファイルデータ領域102内のファイル名領域141に記録されたファイル名データを読み出す。
このとき、処理部45は、図9に示すファイル個数領域111が示すファイル数と、ファイル属性領域120_nのサイズとを基に、ファイル属性領域120_n内のファイル位置指定領域121を特定する。
ステップST53:
処理部45は、ステップST52で読み出したファイル名データのなかに、ステップST51で受けたファイル名データと同じものがあるか否かを判断し、同じものがあると判断するとステップST54に進み、同じものがないと判断するとエラー処理を行う。
Step ST52:
4 and 5 based on the addresses recorded in the file location designation area 121 of the file attribute area 120_n shown in FIG. 10 in all the file table areas 103 of the memory 35 of the wireless tags 10 and 10a. The file name data recorded in the file name area 141 in the file data area 102 shown is read.
At this time, the processing unit 45 specifies the file position designation area 121 in the file attribute area 120_n based on the number of files indicated by the file number area 111 shown in FIG. 9 and the size of the file attribute area 120_n.
Step ST53:
The processing unit 45 determines whether or not the file name data read in step ST52 is the same as the file name data received in step ST51. If it is determined that there is the same file name data, the processing unit 45 proceeds to step ST54. If it is determined that there is nothing, error processing is performed.

ステップST54:
処理部45は、ステップST51で受けたファイル名データに対応するファイル属性データを、無線タグ10のメモリ35の図9に示すファイル属性領域120_nから読み出す。
ステップST55:
処理部45は、ステップST54の読み出しが成功したか否かを判断し、成功した場合にはステップST58に進み、不成功の場合にはステップST56に進む。
ステップST56:
処理部45は、ステップST54の読み出しが所定の再処理回数以下であるか否かを判断し、所定の再処理回数以下であると判断するとステップST54に戻り、そうでない場合にはエラー処理を行う。
Step ST54:
The processing unit 45 reads the file attribute data corresponding to the file name data received in step ST51 from the file attribute area 120_n shown in FIG. 9 of the memory 35 of the wireless tag 10.
Step ST55:
The processing unit 45 determines whether or not the reading in step ST54 is successful. If the reading is successful, the processing unit 45 proceeds to step ST58. If the reading is unsuccessful, the processing unit 45 proceeds to step ST56.
Step ST56:
The processing unit 45 determines whether or not the reading in step ST54 is less than or equal to a predetermined number of reprocessing times. If the processing unit 45 determines that the reading is less than or equal to the predetermined number of reprocessing times, the processing unit 45 returns to step ST54. .

ステップST58:
処理部45は、図16示すメモリ44の一部を構成するバッファメモリに、ファイルデータを無線タグ10,10aから読み出すための記録容量を確保する。
ステップST59:
処理部45は、ステップST58においてバッファメモリに記録容量を確保できたか否かを判断し、確保できたと判断するとステップST60に進み、そうでない場合にはエラー処理を行う。
Step ST58:
The processing unit 45 secures a recording capacity for reading file data from the wireless tags 10 and 10a in a buffer memory constituting a part of the memory 44 shown in FIG.
Step ST59:
In step ST58, the processing unit 45 determines whether or not the recording capacity has been secured in the buffer memory. If it is determined that the recording capacity has been secured, the processing unit 45 proceeds to step ST60, and otherwise performs error processing.

ステップST60:
処理部45は、ステップST54で読み出したファイル属性データにおける図10に示すファイル位置指定領域121から読み出されたファイルデータ領域102内のアドレスからファイルデータを読み出してメモリ44に記録する。
ステップST61:
処理部45は、ステップST60の読み出しが成功したか否かを判断し、成功したと判断するとステップST63に進み、そうでない場合にはステップST62に進む。
ステップST62:
処理部45は、ステップST60の読み出しが行われた回数が所定の再処理回数以下であるか否かを判断し、所定の再処理回数以下であると判断するとステップST60に進み、そうでない場合にはエラー処理を行う。
Step ST60:
The processing unit 45 reads the file data from the address in the file data area 102 read from the file position designation area 121 shown in FIG. 10 in the file attribute data read in step ST54 and records it in the memory 44.
Step ST61:
The processing unit 45 determines whether or not the reading in step ST60 is successful. If it is determined that the reading is successful, the processing unit 45 proceeds to step ST63, and if not, proceeds to step ST62.
Step ST62:
The processing unit 45 determines whether or not the number of times of reading in step ST60 is equal to or less than the predetermined number of reprocessing, and proceeds to step ST60 when determining that it is equal to or less than the predetermined number of reprocessing. Does error handling.

ステップST63:
処理部45は、ステップST60で無線タグ10のメモリ35から読み出したファイルデータが圧縮ファイルデータであるか否かを判断し、圧縮ファイルデータであると判断するとステップST64に進み、そうでない場合には処理を終了する。その後、処理部45は、ユーザからの指示に応じて、メモリ44から読み出したファイルデータを再生し、それに応じた画像をディスプレイ41に表示する。
ステップST64:
処理部45は、ステップST60において圧縮ファイルデータと共に図7および図8に示す圧縮種別領域152から読み出した圧縮種別が示す圧縮方法に対応する伸張方法で、ステップST60で読み出した圧縮データを伸張する。
ステップST65:
処理部45は、ステップST64の伸張処理が成功したか否かを判断し、成功したと判断すると処理を終了し、そうでない場合にはエラー処理を行う。
Step ST63:
The processing unit 45 determines whether or not the file data read from the memory 35 of the wireless tag 10 in step ST60 is compressed file data. If the processing unit 45 determines that the file data is compressed file data, the processing unit 45 proceeds to step ST64. End the process. Thereafter, the processing unit 45 reproduces the file data read from the memory 44 in accordance with an instruction from the user, and displays an image corresponding to the file data on the display 41.
Step ST64:
The processing unit 45 decompresses the compressed data read in step ST60 with a decompression method corresponding to the compression method indicated by the compression type read from the compression type area 152 shown in FIGS. 7 and 8 together with the compressed file data in step ST60.
Step ST65:
The processing unit 45 determines whether or not the expansion process of step ST64 is successful. If it is determined that the expansion process is successful, the processing unit 45 ends the process. If not, the processing unit 45 performs an error process.

以上説明したように、端末装置15によれば、無線タグ10からファイルデータ等を読み出す場合には、無線タグ10が書き込み禁止機能を備えているため、当該読み出したファイルデータ等を信頼して利用できる。
また、端末装置15によれば、無線タグ10aからファイルデータ等を読み出す場合には、無線タグ10aに記録されている署名データを基に、ファイルデータの正当性を検証でき、第三者が不正に無線タグ10aに書き込んだファイルデータ等を正当なものとして誤って利用することを回避できる。
As described above, according to the terminal device 15, when reading file data or the like from the wireless tag 10, since the wireless tag 10 has a write prohibition function, the read file data or the like is used reliably. it can.
Further, according to the terminal device 15, when reading out file data or the like from the wireless tag 10a, the validity of the file data can be verified based on the signature data recorded in the wireless tag 10a, and a third party can illegally In addition, it is possible to avoid erroneously using file data or the like written in the wireless tag 10a as valid.

また、データ配信システム1では、無線タグ10のメモリ35では、ファイル属性データは第2のアドレスBから第1のアドレスAに向けて記録され、しかも固定サイズである。
そのため、端末装置15は、コンピュータなどに採用される複雑なファイルシステムを使用しなくても、第2のアドレスBおよびファイル属性データの固定サイズとを基に、ファイル属性データのアドレスを簡単な処理で特定し、当該特定したファイル属性データを基にファイルデータのアドレスを簡単な処理で特定できる。これにより、メモリ35からのデータ読み出しに伴う端末装置15の処理量を少なくできる。
また、端末装置15によれば、メモリ35からファイルデータを読み出した後に、それに対応するファイル属性データを読み出すので、ファイルデータの読み出し中に当該読み出しが失敗した場合でも、ファイル属性データは読み出されていないため、ファイル属性データを基にファイルデータが不適切に処理されることを回避できる。
また、端末装置15によれば、読み出し要求で用いるファイル名データが無線タグ10,10aのメモリ35においてショートカットとして規定されている場合でも、それに対応するファイルデータを適切に読み出すことができる。
In the data distribution system 1, the file attribute data is recorded from the second address B to the first address A in the memory 35 of the wireless tag 10 and has a fixed size.
Therefore, the terminal device 15 can easily process the address of the file attribute data based on the second address B and the fixed size of the file attribute data without using a complicated file system employed in a computer or the like. The address of the file data can be specified by simple processing based on the specified file attribute data. Thereby, the processing amount of the terminal device 15 accompanying the data reading from the memory 35 can be reduced.
Further, according to the terminal device 15, since the file attribute data corresponding to the file data is read after reading the file data from the memory 35, the file attribute data is read even if the reading fails during the reading of the file data. Therefore, inappropriate processing of file data based on file attribute data can be avoided.
Further, according to the terminal device 15, even when the file name data used in the read request is defined as a shortcut in the memory 35 of the wireless tags 10 and 10a, the corresponding file data can be read appropriately.

本発明は上述した実施形態には限定されない。
例えば、上述した実施形態では、本発明の記録データとして、HTMLのファイルデータを例示したが、当該記録データは、HTMLのファイルデータ以外のデータであってもよい。
また、上述した実施形態では、書込装置11および端末装置15と、無線タグ10,10aとの間のデータ授受を無線で行う場合を例示したが、当該データ授受を有線で行ってもよい。
また、上述した実施形態では、書込装置11および端末装置15が書き込みおよび読み出しを行う記録媒体として、無線タグ10,10aのメモリ35を例示したが、それ以外のコンピュータや通信機器で使用されるメモリに対する書き込みおよび読み出しに対して本発明を適用してもよい。
The present invention is not limited to the embodiment described above.
For example, in the embodiment described above, HTML file data is exemplified as the recording data of the present invention. However, the recording data may be data other than HTML file data.
In the above-described embodiment, the case where the data exchange between the writing device 11 and the terminal device 15 and the wireless tags 10 and 10a is performed wirelessly is exemplified, but the data transmission / reception may be performed by wire.
In the above-described embodiment, the memory 35 of the wireless tags 10 and 10a is exemplified as a recording medium on which the writing device 11 and the terminal device 15 perform writing and reading. However, the recording device 11 and the terminal device 15 are used in other computers and communication devices. The present invention may be applied to writing to and reading from a memory.

また、上述した実施形態では、図9に示す無線タグ10.10aのメモリ35内の先頭アドレス側に第1のアドレスAを規定し、末尾アドレス側に第2のアドレスBを規定したが、本発明では、メモリ35内の先頭アドレス側に第2のアドレスBを規定し、末尾アドレス側に第1のアドレスAを規定してもよい。   In the above-described embodiment, the first address A is defined on the head address side and the second address B is defined on the tail address side in the memory 35 of the wireless tag 10.10a shown in FIG. In the present invention, the second address B may be defined on the head address side in the memory 35 and the first address A may be defined on the tail address side.

本発明は、書き換え禁止機能を備えた記録媒体と上記書き換え禁止機能を備えていない記録媒体に対しての記録データの書き込みおよび読み出しを行うシステムに適用可能である。   The present invention is applicable to a recording medium having a rewrite prohibition function and a system for writing and reading record data to and from a recording medium not having the rewrite prohibition function.

図1は、本発明の実施形態に係わるデータ配信システムの全体構成図である。FIG. 1 is an overall configuration diagram of a data distribution system according to an embodiment of the present invention. 図2は、図1に示す書き込み禁止機能を備えた無線タグの構成図である。FIG. 2 is a configuration diagram of a wireless tag having the write prohibition function shown in FIG. 図3は、図1に示す書き込み禁止機能を備えていない無線タグの構成図である。FIG. 3 is a configuration diagram of a wireless tag that does not have the write prohibition function shown in FIG. 図4は、図2および図3に示す無線タグのメモリのメモリマップ構成を説明するための図である。FIG. 4 is a diagram for explaining the memory map configuration of the memory of the wireless tag shown in FIGS. 2 and 3. 図5は、図2に示す無線タグに圧縮されていないファイルデータを記録する場合の図4に示すファイルデータ領域を説明するための図である。FIG. 5 is a diagram for explaining the file data area shown in FIG. 4 in the case where uncompressed file data is recorded in the wireless tag shown in FIG. 図6は、図3に示す無線タグに圧縮されていないファイルデータを記録する場合の図4に示すファイルデータ領域を説明するための図である。6 is a diagram for explaining the file data area shown in FIG. 4 in the case where uncompressed file data is recorded in the wireless tag shown in FIG. 図7は、図2に示す無線タグに圧縮ファイルデータを記録する場合の図4に示すファイルデータ領域を説明するための図である。FIG. 7 is a diagram for explaining the file data area shown in FIG. 4 when the compressed file data is recorded in the wireless tag shown in FIG. 図8は、図3に示す無線タグに圧縮ファイルデータを記録する場合の図4に示すファイルデータ領域を説明するための図である。FIG. 8 is a diagram for explaining the file data area shown in FIG. 4 when the compressed file data is recorded in the wireless tag shown in FIG. 図9は、図4に示すファイルテーブル領域を説明するための図である。FIG. 9 is a diagram for explaining the file table area shown in FIG. 図10は、図9に示すファイル属性領域を説明するための図である。FIG. 10 is a diagram for explaining the file attribute area shown in FIG. 図11は、図1に示す書込装置のハードウェア構成図である。FIG. 11 is a hardware configuration diagram of the writing device shown in FIG. 図12は、図1および図11に示す書込装置による無線タグの初期化動作を説明するためのフローチャートである。FIG. 12 is a flowchart for explaining the initialization operation of the wireless tag by the writing device shown in FIGS. 1 and 11. 図13は、図1および図11に示す書込装置による無線タグへのファイルデータ等の書き込み動作の全体を説明するためのフローチャートである。FIG. 13 is a flowchart for explaining the entire operation of writing file data or the like to the wireless tag by the writing device shown in FIGS. 1 and 11. 図14は、図13に示すステップST13,ST18におけるファイルデータ等の無線タグ10への書き込み動作の詳細を説明するためのフローチャートである。FIG. 14 is a flowchart for explaining details of an operation of writing file data or the like to the wireless tag 10 in steps ST13 and ST18 shown in FIG. 図15は、図13に示すステップST13,ST18におけるファイルデータ等の無線タグ10への書き込み動作の詳細を説明するための図14の続きのフローチャートである。FIG. 15 is a continuation flowchart of FIG. 14 for explaining details of an operation of writing file data or the like to the wireless tag 10 in steps ST13 and ST18 shown in FIG. 図16は、図1に示す端末装置のハードウェア構成図である。FIG. 16 is a hardware configuration diagram of the terminal device shown in FIG. 図17は、図1および図16に示す端末装置による無線タグからの読み出し動作の全体を説明するためのフローチャートである。FIG. 17 is a flowchart for explaining the entire operation of reading from the wireless tag by the terminal device shown in FIGS. 図18は、図17に示すステップST43,ST45におけるファイルデータおよびファイル属性データ等の読み出し動作の詳細を説明するためのフローチャートである。FIG. 18 is a flowchart for explaining the details of the read operation of file data, file attribute data, and the like in steps ST43 and ST45 shown in FIG. 図19は、図17に示すステップST43,ST45におけるファイルデータおよびファイル属性データ等の読み出し動作の詳細を説明するための図18の続きのフローチャートである。FIG. 19 is a flowchart continued from FIG. 18 for explaining the details of the read operation of file data, file attribute data, and the like in steps ST43 and ST45 shown in FIG.

符号の説明Explanation of symbols

1…データ配信システム、10…無線タグ、11…書込装置、12…コンピュータ、15…端末装置、31…アンテナ、32…RF部、33…電力制御部、34,34a…メモリアクセス部、35…メモリ、21…インタフェース、22…RF部、23…アンテナ、24…メモリ、25…処理部、26…署名生成部、41…ディスプレイ、42…RF部、43…アンテナ、44…メモリ、45…処理部、46…署名検証部


DESCRIPTION OF SYMBOLS 1 ... Data delivery system, 10 ... Wireless tag, 11 ... Writing apparatus, 12 ... Computer, 15 ... Terminal device, 31 ... Antenna, 32 ... RF part, 33 ... Power control part, 34, 34a ... Memory access part, 35 ... Memory, 21 ... Interface, 22 ... RF part, 23 ... Antenna, 24 ... Memory, 25 ... Processing part, 26 ... Signature generation part, 41 ... Display, 42 ... RF part, 43 ... Antenna, 44 ... Memory, 45 ... Processing unit, 46 ... signature verification unit


Claims (11)

記録媒体に記録データを書き込むデータ処理装置であって、
前記記録データに対しての署名データを生成する署名生成手段と、
前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体に記録データを書き込む第1の動作を行い、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記署名生成手段が生成した前記署名データと前記記録データとを前記記録媒体に書き込む第2の動作を行う書き込み手段と
を有するデータ処理装置。
A data processing apparatus for writing recording data to a recording medium,
Signature generating means for generating signature data for the recorded data;
When it is determined that the recording medium has a write prohibition function, a first operation of writing record data to the recording medium is performed, and when it is determined that the recording medium does not have a write prohibition function, A data processing apparatus comprising: writing means for performing a second operation of writing the signature data generated by the signature generation means and the recording data to the recording medium.
前記書き込み手段は、前記第1の動作において、前記記録媒体に記録データを記録した後に、当該記録媒体を書き込み禁止状態にする
請求項1に記載のデータ処理装置。
The data processing apparatus according to claim 1, wherein the writing unit sets the recording medium in a write-inhibited state after recording the recording data on the recording medium in the first operation.
前記書き込み手段は、前記第1の動作および前記第2の動作の各々において、前記記録媒体の記録領域の第1のアドレスから第2のアドレスに向けて複数の可変サイズの前記記録データを順に書き込み、前記複数の記録データの各々に対応して規定され前記対応する記録データの前記記録領域内の記録アドレスをそれぞれ示し固定サイズの複数の属性データを、前記第2のアドレスから前記第1のアドレスに向けて順に書き込む
請求項1に記載のデータ処理装置。
The writing means sequentially writes the recording data of a plurality of variable sizes from the first address to the second address in the recording area of the recording medium in each of the first operation and the second operation. A plurality of fixed-size attribute data from the second address to the first address, each of which is defined in correspondence with each of the plurality of recording data and indicates a recording address in the recording area of the corresponding recording data. The data processor according to claim 1.
前記書き込み手段は、前記記録媒体の記録領域内の連続した前記アドレスに順に前記複数の記録データを書き込み、
前記記録媒体は、前記書き込まれた記録データの消去を前記録領域全体に対しての一括消去によって行われる記録媒体である
請求項1に記載のデータ処理装置。
The writing means writes the plurality of recording data in order to the continuous addresses in the recording area of the recording medium,
The data processing apparatus according to claim 1, wherein the recording medium is a recording medium in which erasure of the written recording data is performed by batch erasure of the entire previous recording area.
書き込み禁止機能を備えた記録媒体であるか否かを判断する第1の工程と、
前記第1の工程において前記記録媒体が書き込み禁止を備えていると判断した場合に、前記記録媒体に記録データを書き込む第2の工程と、
前記第1の工程において前記記録媒体が書き込み禁止を備えていないと判断した場合に、前記記録データに対しての署名データを生成する第3の工程と、
前記第3の工程で生成した前記署名データと前記記録データとを前記記録媒体に書き込む第4の工程と
を有するデータ処理方法。
A first step of determining whether or not the recording medium has a write prohibiting function;
A second step of writing record data to the recording medium when it is determined in the first step that the recording medium has write prohibition;
A third step of generating signature data for the recording data when it is determined in the first step that the recording medium does not have write prohibition;
A data processing method comprising: a fourth step of writing the signature data and the recording data generated in the third step into the recording medium.
前記第2の工程および前記第4の工程の各々において、前記記録媒体の記録領域の第1のアドレスから第2のアドレスに向けて複数の可変サイズの前記記録データを順に書き込み、前記複数の記録データの各々に対応して規定され前記対応する記録データの前記記録領域内の記録アドレスをそれぞれ示し固定サイズの複数の属性データを、前記第2のアドレスから前記第1のアドレスに向けて順に書き込む
請求項5に記載のデータ処理方法。
In each of the second step and the fourth step, a plurality of variable-size recording data are sequentially written from a first address to a second address in a recording area of the recording medium, and the plurality of recordings are recorded. A plurality of fixed-size attribute data is written in order from the second address to the first address, each of which is defined corresponding to each data and indicates a recording address in the recording area of the corresponding recording data. The data processing method according to claim 5.
書き込み禁止機能を備えた記録媒体であるか否かを判断する第1の手順と、
前記第1の手順において前記記録媒体が書き込み禁止を備えていると判断した場合に、前記記録媒体に記録データを書き込む第2の手順と、
前記第1の手順において前記記録媒体が書き込み禁止を備えていないと判断した場合に、前記記録データに対しての署名データを生成する第3の手順と、
前記第3の手順で生成した前記署名データと前記記録データとを前記記録媒体に書き込む第4の手順と
をデータ処理装置に実行させるプログラム。
A first procedure for determining whether the recording medium has a write-inhibiting function;
A second procedure for writing record data to the recording medium when it is determined in the first procedure that the recording medium has write prohibition;
A third procedure for generating signature data for the recording data when it is determined in the first procedure that the recording medium does not have write prohibition;
A program that causes a data processing apparatus to execute a fourth procedure for writing the signature data and the recording data generated in the third procedure to the recording medium.
記録媒体から記録データを読み出すデータ処理装置であって、
前記記録データの署名データを検証する署名検証手段と、
前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する第1の動作を行い、前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証させ、前記署名検証手段が前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する第2の動作を行う読み出し手段と
を有するデータ処理装置。
A data processing device for reading recorded data from a recording medium,
Signature verification means for verifying signature data of the recorded data;
When it is determined that the recording medium has a write-inhibiting function, a first operation for reading and using recording data from the recording medium is performed, and when it is determined that the recording medium does not have a write-inhibiting function The signature data read from the recording medium is verified by the signature verification unit, and the recording data read from the recording medium is used on condition that the signature verification unit determines that the signature data is valid. A data processing apparatus comprising: a reading unit that performs the second operation.
第1のアドレスから第2のアドレスに向けて複数の可変サイズの記録データが順に記録され、前記複数の記録データの各々に対応して規定され前記対応する記録データの前記記録領域内の記録アドレスをそれぞれ示し固定サイズの複数の属性データが前記第2のアドレスから前記第1のアドレスに向けて順に記録された前記記録媒体の前記記録データを読み出す場合に、
前記読み出し手段は、前記第2のアドレスと前記固定サイズとを基に読み出し要求に係わる前記属性データを前記記録領域から読み出し、当該読み出した前記属性データが示す前記記録アドレスを基に前記読み出し要求に係わる前記記録データを前記記録領域から読み出す
請求項8に記載のデータ処理装置。
A plurality of variable-size recording data is recorded in order from the first address to the second address, and is defined in correspondence with each of the plurality of recording data, and the recording address in the recording area of the corresponding recording data When reading the recording data of the recording medium in which a plurality of fixed-size attribute data respectively recorded in order from the second address toward the first address,
The reading means reads the attribute data related to a read request from the recording area based on the second address and the fixed size, and makes the read request based on the recording address indicated by the read attribute data. The data processing apparatus according to claim 8, wherein the related recording data is read from the recording area.
記録媒体から記録データを読み出すデータ処理方法であって、
前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する第1の工程と、
前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証する第2の工程と、
前記第2の工程で前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する第3の工程と
を有するデータ処理方法。
A data processing method for reading recorded data from a recording medium,
A first step of reading and using recorded data from the recording medium when it is determined that the recording medium has a write prohibition function;
A second step of verifying signature data read from the recording medium by the signature verification means when it is determined that the recording medium does not have a write prohibition function;
And a third step of using the recording data read from the recording medium on the condition that the signature data is determined to be valid in the second step.
記録媒体から記録データを読み出すデータ処理装置が実行するプログラムであって、
前記記録媒体が書き込み禁止機能を備えていると判断した場合に、前記記録媒体から記録データを読み出して利用する第1の手順と、
前記記録媒体が書き込み禁止機能を備えていないと判断した場合に、前記記録媒体から読み出した署名データを前記署名検証手段で検証する第2の手順と、
前記第2の手順で前記署名データが正当であると判断したことを条件に、前記記録媒体から読み出した前記記録データを利用する第3の手順と
を有する前記データ処理装置に実行させるプログラム。

A program executed by a data processing device that reads recorded data from a recording medium,
A first procedure for reading out and using recording data from the recording medium when it is determined that the recording medium has a write-inhibiting function;
A second procedure for verifying signature data read from the recording medium by the signature verification means when it is determined that the recording medium does not have a write prohibition function;
A program executed by the data processing apparatus, comprising: a third procedure that uses the recording data read from the recording medium on the condition that the signature data is determined to be valid in the second procedure.

JP2003290375A 2003-08-08 2003-08-08 Data writing apparatus, data writing method, data reading apparatus, data reading method, and program Expired - Fee Related JP4590842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003290375A JP4590842B2 (en) 2003-08-08 2003-08-08 Data writing apparatus, data writing method, data reading apparatus, data reading method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003290375A JP4590842B2 (en) 2003-08-08 2003-08-08 Data writing apparatus, data writing method, data reading apparatus, data reading method, and program

Publications (2)

Publication Number Publication Date
JP2005063039A true JP2005063039A (en) 2005-03-10
JP4590842B2 JP4590842B2 (en) 2010-12-01

Family

ID=34368428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003290375A Expired - Fee Related JP4590842B2 (en) 2003-08-08 2003-08-08 Data writing apparatus, data writing method, data reading apparatus, data reading method, and program

Country Status (1)

Country Link
JP (1) JP4590842B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005352600A (en) * 2004-06-08 2005-12-22 Fujitsu Ltd Information alteration detection system, noncontact type recording medium, information alteration detection method, and computer program
US8405849B2 (en) 2007-03-30 2013-03-26 Brother Kogyo Kabushiki Kaisha Communication apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62167695A (en) * 1986-01-20 1987-07-24 Shinko Electric Co Ltd Memory writing method
JPH05266681A (en) * 1992-03-18 1993-10-15 Sharp Corp Eeprom
JPH09231329A (en) * 1996-02-28 1997-09-05 Dainippon Printing Co Ltd Memory card
JP2000056810A (en) * 1998-08-10 2000-02-25 Mazda Motor Corp Control unit for production facility and its data managing method
JP2000132459A (en) * 1998-10-26 2000-05-12 Olympus Optical Co Ltd Data storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62167695A (en) * 1986-01-20 1987-07-24 Shinko Electric Co Ltd Memory writing method
JPH05266681A (en) * 1992-03-18 1993-10-15 Sharp Corp Eeprom
JPH09231329A (en) * 1996-02-28 1997-09-05 Dainippon Printing Co Ltd Memory card
JP2000056810A (en) * 1998-08-10 2000-02-25 Mazda Motor Corp Control unit for production facility and its data managing method
JP2000132459A (en) * 1998-10-26 2000-05-12 Olympus Optical Co Ltd Data storage system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005352600A (en) * 2004-06-08 2005-12-22 Fujitsu Ltd Information alteration detection system, noncontact type recording medium, information alteration detection method, and computer program
JP4651310B2 (en) * 2004-06-08 2011-03-16 富士通株式会社 Information falsification detection system, non-contact type recording medium, information falsification detection method, and computer program
US8405849B2 (en) 2007-03-30 2013-03-26 Brother Kogyo Kabushiki Kaisha Communication apparatus

Also Published As

Publication number Publication date
JP4590842B2 (en) 2010-12-01

Similar Documents

Publication Publication Date Title
TWI417732B (en) Memory device with near field communications, method of communicating wireless network settings between devices, and universal serial bus flash drive related therewith
US20060253620A1 (en) Data structure of flash memory having system area with variable size in which data can be updated, USB memory device having the flash memory, and method of controlling the system area
US9514063B2 (en) Secure compact flash
US7873956B2 (en) Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor
WO2006120938A1 (en) Memory card, application program holding method, and holding program
CN101958732B (en) System, method, and apparatus for data communication
KR100586063B1 (en) Data structure of flash memory with variable size system field which can be updated, usb memory therewith and a control method of the system field
JPH0822516A (en) Method for safety of access operation to removable card for computer
JP2006127528A (en) Content playback system and content playback method
US7509179B2 (en) Distribution system
JP4590842B2 (en) Data writing apparatus, data writing method, data reading apparatus, data reading method, and program
US20100050166A1 (en) Updating system and method of portable executable programs
US6811089B2 (en) Portable electronic medium issuing system and issuing method and portable electronic medium
US20130292466A1 (en) Remote code reader system
JP5471904B2 (en) IC card reader / writer and SAM built in it
US20040003166A1 (en) Portable electronic medium issuing system and issuing method and portable electronic medium
JP4080079B2 (en) IC card
KR101089864B1 (en) Data processing apparatus and method and program therefor
JP2005063038A (en) Data processing device, method thereof, program thereof, and recording medium
JP2000227946A (en) Portable electronic device
JP2004259265A (en) Semiconductor memory card and computer-readable program
CN100359526C (en) Data processing equipment and method and program thereof
US20090328146A1 (en) Method of generating authentication code in digital device
JP2011060136A (en) Portable electronic apparatus, and data management method in the same
JP3655475B2 (en) IC card

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091027

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091211

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100302

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100622

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100727

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100817

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100830

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

Free format text: PAYMENT UNTIL: 20130924

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130924

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees