JP2008250426A - Read/write processing method, read/write processing apparatus and rfid tag - Google Patents

Read/write processing method, read/write processing apparatus and rfid tag Download PDF

Info

Publication number
JP2008250426A
JP2008250426A JP2007087947A JP2007087947A JP2008250426A JP 2008250426 A JP2008250426 A JP 2008250426A JP 2007087947 A JP2007087947 A JP 2007087947A JP 2007087947 A JP2007087947 A JP 2007087947A JP 2008250426 A JP2008250426 A JP 2008250426A
Authority
JP
Japan
Prior art keywords
data
error
read
correction
check code
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
JP2007087947A
Other languages
Japanese (ja)
Other versions
JP5092495B2 (en
Inventor
Koyo Ozaki
公洋 尾崎
Akishi Hasegawa
陽史 長谷川
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2007087947A priority Critical patent/JP5092495B2/en
Publication of JP2008250426A publication Critical patent/JP2008250426A/en
Application granted granted Critical
Publication of JP5092495B2 publication Critical patent/JP5092495B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To enable a user to recognize that memory is garbled, and to acquire correct data. <P>SOLUTION: In writing of data in an RFID tag, data and a corresponding check code are written, and in the reading of data, the error of read data is detected by a CRC by using a check code, and when any error is detected, error correction by ECC is made, and the error of the corrected data is detected by CRC, and when the error of the corrected data is detected, a user is notified that the data are abnormal, and when any error is not detected, the user is notified that the error of data has been corrected. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、半導体メモリを内蔵するRFIDタグ、このRFIDタグと非接触の交信を行って、前記半導体メモリに対する情報の読み出し、書き込むを行う読み書き処理装置および読み書き処理方法に関する。   The present invention relates to an RFID tag having a built-in semiconductor memory, a read / write processing apparatus and a read / write processing method for reading and writing information to and from the semiconductor memory by performing non-contact communication with the RFID tag.

近年、荷物の管理現場や工場の組立ラインなどには、搬送される物品に種々の情報が書き込まれた記憶媒体を取り付け、この記憶媒体との無線通信により情報を非接触で読み取るシステムが導入されている。   In recent years, a storage system in which various kinds of information are written is attached to goods to be transported, and a system that reads information in a non-contact manner by wireless communication with the storage medium has been introduced in the baggage management site and factory assembly lines. ing.

このシステムは、RFIDシステム(Radio Frequency Identification System)と呼ばれる。前記物品に取り付けられる記憶媒体は、半導体メモリを含むICチップや通信用のアンテナコイルなどが内蔵されたもので、RFIDタグまたは非接触ICタグなどと呼ばれる。   This system is called an RFID system (Radio Frequency Identification System). The storage medium attached to the article contains an IC chip including a semiconductor memory, an antenna coil for communication, and the like, and is called an RFID tag or a non-contact IC tag.

このようなRFIDシステムにおいて、RFIDタグ内のメモリに書き込まれたデータが、何らかの要因により異常となった場合、すなわち、データが変化して、いわゆる、メモリ化けを起こした場合に、それを、CRC(巡回冗長符号:Cyclic Redundancy Check)を用いて検知する技術が知られている(例えば、特許文献1参照)。
特許第3007926号公報
In such an RFID system, when the data written in the memory in the RFID tag becomes abnormal due to some factor, that is, when the data changes to cause a so-called memory corruption, There is known a technique of detecting using (Cyclic Redundancy Check) (see, for example, Patent Document 1).
Japanese Patent No. 3007926

上記特許文献1では、メモリのデータが変化した、いわゆるメモリ化けが生じたとき、すなわち、データの異常が生じたときに、それを検知してユーザに認識させるだけである。   In the above-mentioned Patent Document 1, when so-called memory corruption occurs, that is, when data in the memory changes, that is, when a data abnormality occurs, it is only detected and recognized by the user.

したがって、ユーザは、例えば、RFIDタグの寿命によって、或る日突然に、読み出したデータに異常が生じたことを知ることになり、急遽、新しいRFIDタグに交換せざるを得ないといったように、使い勝手の悪いものであった。   Therefore, for example, the user knows that an abnormality has occurred in the read data suddenly one day due to the life of the RFID tag, and suddenly has to replace it with a new RFID tag. It was inconvenient.

ユーザとしては、正しいデータが得られている状態で、異常が生じつあることを把握できれば、RFIDタグの交換の時期が到来している、あるいは、使用環境が、高温などのためにメモリ化けが生じやすい環境であるといった判断をすることができ、事前にRFIDタグを交換したり、使用環境を変更するといった対策を取ることが可能となる。   As a user, if correct data is obtained and it is possible to grasp that an abnormality is occurring, it is time to replace the RFID tag, or the memory environment is injured due to the use environment being hot, etc. It is possible to determine that the environment is likely to occur, and it is possible to take measures such as exchanging RFID tags in advance or changing the usage environment.

本発明は、上述のような点に鑑みてなされたものであって、メモリ化けが生じたときに、ユーザがそれを認識できるとともに、正しいデータを得られるようにすることを目的とする。   The present invention has been made in view of the above-described points, and an object of the present invention is to enable a user to recognize when memory corruption occurs and to obtain correct data.

(1)本発明の読み書き処理方法は、RFIDタグのメモリへのデータの読み出しおよび書き込みを行う読み書き処理方法であって、前記メモリに、データおよび対応するチェックコードを書き込む書き込みステップと、前記メモリからデータおよび対応するチェックコードを読み出す読み出しステップと、前記メモリから読み出されたチェックコードを用いて、前記メモリから読み出されたデータの誤りを検出する第1の誤り検出ステップと、前記第1の誤り検出ステップで、データの誤りが検出されたときに、データの誤りを訂正する誤り訂正ステップと、前記誤り訂正ステップで訂正された誤り訂正後のデータの誤りを検出する第2の誤り検出ステップと、前記第2の誤り検出ステップで、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、また、誤り訂正後のデータの誤りが検出されなかったときには、誤りを訂正したことを、通知する通知ステップとを含むものである。  (1) A read / write processing method of the present invention is a read / write processing method for reading and writing data to and from a memory of an RFID tag, wherein a write step of writing data and a corresponding check code into the memory, A read step of reading data and a corresponding check code; a first error detection step of detecting an error in the data read from the memory using the check code read from the memory; and the first An error correction step for correcting an error in the data when an error in the data is detected in the error detection step, and a second error detection step for detecting an error in the data after the error correction corrected in the error correction step And an error in the data after error correction is detected in the second error detection step. It is that the data is abnormal, and when an error of the data after the error correction is not detected are those comprising a notifying step for that corrects errors, informs.

書き込みステップでは、メモリに、データおよび対応するチェックコードを書き込み、読み出しステップでは、前記メモリからデータおよび対応するチェックコードを読み出すのであるが、このデータとしては、RFIDタグにユーザが格納するユーザのデータ、いわゆるユーザデータであるのが好ましく、このユーザデータは、ユーザにとって意味のある情報、例えば、RFIDタグが取り付けられる物品に関連する識別や作業指示といった各種情報などのユーザが作成したデータであるのが好ましい。   In the writing step, the data and the corresponding check code are written in the memory, and in the reading step, the data and the corresponding check code are read from the memory. This data includes user data stored in the RFID tag by the user. The user data is preferably so-called user data, which is data created by the user such as information meaningful to the user, for example, various information such as identification and work instructions related to the article to which the RFID tag is attached. Is preferred.

誤り検出は、例えば、パリティ、CRC(巡回冗長符号)、チェックサムなどの手法を用いることができる。   For error detection, techniques such as parity, CRC (Cyclic Redundancy Code), checksum, etc. can be used, for example.

誤り訂正は、例えば、ECC(誤り訂正符号)、多数決などの手法を用いることができる。   For error correction, for example, a technique such as ECC (Error Correction Code) or majority decision can be used.

通知は、RFIDタグへの読み出し、書き込みを指令する上位装置に対して行うのが好ましい。   The notification is preferably sent to a host device that commands reading and writing to the RFID tag.

本発明の読み書き処理方法によると、データの書き込み時には、RFIDタグのメモリに、データおよび対応するチェックコードを書き込んでおき、データの読み出し時には、読み出したチェックコードを用いて、読み出したデータの誤りを検出し、誤りが検出されると、誤り訂正を行い、更に、訂正後のデータの誤りを検出し、訂正後のデータの誤りが検出されたときには、データが異常であることを通知し、訂正後のデータの誤りが検出されなかったときには、データの誤りを訂正したことを通知するので、ユーザは、RFIDタグのメモリから読み出したデータに、メモリ化け等の異常があった場合に、誤り訂正によって正しいデータに復元されたこと、あるいは、誤り訂正によって正しいデータが復元できなかったことを把握できることになる。   According to the read / write processing method of the present invention, when writing data, the data and the corresponding check code are written in the RFID tag memory, and when reading the data, the read check code is used to check for errors in the read data. If an error is detected, error correction is performed, and further, an error in the corrected data is detected. When an error in the corrected data is detected, the fact that the data is abnormal is notified and corrected. When no later data error is detected, the user is notified that the data error has been corrected, so the user can correct the error if the data read from the memory of the RFID tag has an abnormality such as memory corruption. It can be understood that the data was restored to the correct data by the error or that the correct data could not be restored by error correction. It becomes door.

したがって、ユーザは、データに異常が発生して誤り訂正によって正しいデータが復元されているときに、RFIDタグを交換したり、使用環境を変更するといった対策を取ることが可能となる。   Therefore, the user can take measures such as exchanging the RFID tag or changing the use environment when abnormality occurs in the data and correct data is restored by error correction.

なお、本発明の他の実施形態として、誤り訂正ステップでは、データに限らず、チェックコードの誤りも訂正するようにしてもよい。   As another embodiment of the present invention, in the error correction step, not only data but also check code errors may be corrected.

(2)本発明の読み書き処理方法の一つの実施形態では、前記チェックコードは、CRCチェックコードおよびECCチェックコードであり、前記第1,第2の誤り検出ステップでは、CRCによって誤りを検出し、前記誤り訂正ステップでは、ECCによって1ビットのデータの誤りを訂正するものである。   (2) In one embodiment of the read / write processing method of the present invention, the check code is a CRC check code and an ECC check code, and in the first and second error detection steps, an error is detected by CRC, In the error correction step, an error of 1-bit data is corrected by ECC.

RFIDタグでは、通常、メモリ化けは、先ず、1ビットのデータ化けから始まるので、この実施形態によると、ECCによって、メモリ化けした1ビットのデータを訂正して正しいデータを復元することができる。   In the RFID tag, the memory corruption usually starts with 1-bit data corruption. According to this embodiment, the ECC-corrected 1-bit data can be corrected to restore correct data.

また、ECCによって誤り訂正をした訂正後のデータについて、ECCに比べて誤り検出の検出率が高いCRCによって誤り検出を行うので、誤り訂正後のデータに誤りがある場合には、高い精度でそれを検出することができるので、信頼性の高いものとなる。   In addition, since error detection is performed on CRC after error correction by ECC, which has a higher detection rate of error detection than ECC, if there is an error in data after error correction, it is performed with high accuracy. Can be detected, so that the reliability is high.

更に、ECCによる誤り訂正ステップよりも先にCRCによる第1の誤り検出ステップを行うので、処理の大半を占める正常なデータに対して、不必要にECCによる誤り訂正を行う必要がなく、処理速度の向上を図ることができる。   Furthermore, since the first error detection step by CRC is performed prior to the error correction step by ECC, it is not necessary to perform error correction by ECC unnecessarily for normal data occupying most of the processing, and the processing speed Can be improved.

本発明の他の実施形態として、ECCによる誤り訂正では、データに限らず、CRCチェックコードの1ビットの誤りを訂正するようにしてもよい。   As another embodiment of the present invention, error correction by ECC is not limited to data, and a 1-bit error in a CRC check code may be corrected.

(3)上記(2)の実施形態では、前記メモリは、ユーザ領域および複数のミラー領域を有し、前記書き込みステップでは、同一の前記データを、前記ユーザ領域および前記複数のミラー領域にそれぞれ書き込み、前記通知ステップを第1の通知ステップとし、該第1の通知ステップでは、前記第2の誤り検出ステップで、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを通知せず、前記第2の誤り検出ステップで、誤り訂正後のデータの誤りが検出されたときに、前記ユーザ領域から読み出されたデータと、前記複数のミラー領域からそれぞれ読み出されたミラーデータとに基づいて、ビット毎の多数決一致によって新たなデータを作成するステップと、作成された新たなデータの誤りを検出する第3の誤り検出ステップと、前記第3の誤り検出ステップで、前記新たなデータの誤りが検出されたときには、データが異常であることを、また、前記新たなデータの誤りが検出されなかったときには、誤りを訂正したことを、通知する第2の通知ステップとを更に含むものである。   (3) In the embodiment of (2), the memory has a user area and a plurality of mirror areas, and in the writing step, the same data is written in the user area and the plurality of mirror areas, respectively. The notification step is a first notification step. In the first notification step, when an error in the data after error correction is detected in the second error detection step, the fact that the data is abnormal is notified. Without any error, in the second error detection step, when an error in the data after error correction is detected, the data read from the user area and the mirror data respectively read from the plurality of mirror areas Based on the above, a step of creating new data by the majority match for each bit, and a third error detection for detecting an error of the created new data When the error of the new data is detected in step 3 and the third error detection step, the data is abnormal. If the error of the new data is not detected, the error is corrected. And a second notification step for notifying that the above has been performed.

この実施形態によると、複数のミラー領域から読み出されたミラーデータを用いて、ビット毎の多数決一致によってデータの誤りを訂正して新たなデータを作成するので、2ビット以上のデータの誤りを訂正することができ、しかも、新たなデータについてもCRCによる誤り検出を行うので、作成した新たなデータに誤りがあった場合には、それを通知することができるので、信頼性の高いものとなる。   According to this embodiment, using the mirror data read from the plurality of mirror areas, the data error is corrected by the majority match for each bit to create new data. It can be corrected, and error detection by CRC is also performed for new data. If there is an error in the created new data, it can be notified, so that it is highly reliable. Become.

(4)本発明の読み書き処理装置は、RFIDタグに対するデータの読み出しおよび書き込みを非接触で行う読み書き処理装置であって、前記RFIDタグに書き込むべきデータおよび対応するチェックコードを、前記RFIDタグに送信する送信部と、前記RFIDタグから読み出されたデータおよび対応するチェックコードを受信する受信部と、データの誤りを検出する誤り検出部と、データの誤りを訂正する誤り訂正部と、上位装置に対してデータを送出する送出部とを備え、前記誤り検出部は、前記チェックコードを用いて、前記読み出されたデータの誤りを検出する一方、前記誤り訂正部で訂正された誤り訂正後のデータの誤りを検出し、前記誤り訂正部は、前記誤り検出部で、前記読み出されたデータの誤りが検出されたときに、データの誤りを訂正し、前記送出部は、前記誤り検出部で、前記読み出されたデータの誤りが検出されなかったときには、該データを上位装置に送出し、前記誤り検出部で、誤り訂正後のデータの誤りが検出されなかったときには、誤り訂正後のデータと共に誤りを訂正したことを、前記上位装置に送出する一方、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出するものである。   (4) The read / write processing device of the present invention is a read / write processing device that reads and writes data to and from an RFID tag in a contactless manner, and transmits data to be written to the RFID tag and a corresponding check code to the RFID tag. Transmitting unit, receiving unit receiving data read from the RFID tag and corresponding check code, error detecting unit detecting data error, error correcting unit correcting data error, and host device The error detection unit detects an error in the read data using the check code, and after the error correction corrected by the error correction unit. And when the error detecting unit detects an error in the read data, the error correcting unit detects When the error detecting unit detects no error in the read data, the sending unit sends the data to a host device, and the error detecting unit When no error in the corrected data is detected, the fact that the error has been corrected together with the data after error correction is sent to the host device, while the error detection unit detects an error in the data after error correction. If the data is abnormal, the fact that the data is abnormal is sent to the host device.

上位装置は、当該読み書き処理装置に対して、RFIDタグのデータの読み出し、書き込みを指令する、例えば、パーソナルコンピュータやPLCなどである。   The host device is, for example, a personal computer or a PLC that instructs the read / write processing device to read and write data of the RFID tag.

本発明の読み書き処理装置によると、データの書き込み時には、RFIDタグのメモリに、データおよび対応するチェックコードを書き込んでおき、データの読み出し時には、読み出したチェックコードを用いて、読み出したデータの誤りを検出し、誤りが検出されると、誤り訂正を行い、更に、訂正後のデータの誤りを検出し、訂正後のデータの誤りが検出されたときには、データが異常であることを上位装置に送出し、訂正後のデータの誤りが検出されなかったときには、訂正後のデータと共に、データの誤りを訂正したことを、上位装置に送出するので、上位装置を介して、ユーザは、RFIDタグのから読み出したデータに異常があった場合に、異常なデータが誤り訂正によって正しいデータに復元されたこと、あるいは、誤り訂正によって正しいデータに復元できなかったことを把握できることになる。   According to the read / write processing device of the present invention, when data is written, the data and the corresponding check code are written in the RFID tag memory, and when the data is read, the read check code is used to check for errors in the read data. If an error is detected, error correction is performed. Further, an error in the corrected data is detected, and when an error in the corrected data is detected, the fact that the data is abnormal is sent to the host device. However, when no error in the corrected data is detected, the fact that the data error has been corrected is sent to the host device together with the corrected data, so that the user can use the RFID tag through the host device. If there is an abnormality in the read data, the abnormal data was restored to the correct data by error correction, or error correction Therefore it becomes possible to grasp that that could not be restored to the correct data.

したがって、ユーザは、データに異常が発生して誤り訂正によって正しいデータが復元されているときに、RFIDタグを交換したり、使用環境を変更するといった対策を取ることが可能となる。   Therefore, the user can take measures such as exchanging the RFID tag or changing the use environment when abnormality occurs in the data and correct data is restored by error correction.

(5)本発明の読み書き処理装置の一つの実施形態では、前記チェックコードは、CRCチェックコードおよびECCチェックコードであり、前記誤り検出部は、CRCによって誤りを検出し、前記誤り訂正部は、ECCによって1ビットのデータの誤りを訂正するものである。   (5) In one embodiment of the read / write processing device of the present invention, the check code is a CRC check code and an ECC check code, the error detection unit detects an error by CRC, and the error correction unit includes: The error of 1-bit data is corrected by ECC.

RFIDタグでは、通常、メモリ化けは、先ず、1ビットのデータ化けから始まるので、この実施形態によると、ECCによって、メモリ化けした1ビットのデータを訂正して正しいデータを復元することができる。   In the RFID tag, the memory corruption usually starts with 1-bit data corruption. According to this embodiment, the ECC-corrected 1-bit data can be corrected to restore correct data.

また、ECCによって誤り訂正をした訂正後のデータについて、ECCに比べて誤り検出の検出率が高いCRCによって誤り検出を行うので、誤り訂正後のデータに誤りがある場合には、高い精度でそれを検出できるので、信頼性の高いものとなる。   In addition, since error detection is performed on CRC after error correction by ECC, which has a higher detection rate of error detection than ECC, if there is an error in data after error correction, it is performed with high accuracy. Can be detected, so that it becomes highly reliable.

更に、ECCによる誤り訂正よりも先にCRCによる誤り検出を行うので、処理の大半を占める正常なデータに対して、不必要にECCによる誤り訂正を行う必要がなく、処理速度の向上を図ることができる。   Furthermore, since error detection by CRC is performed before error correction by ECC, it is not necessary to perform error correction by ECC unnecessarily for normal data occupying most of the processing, and the processing speed is improved. Can do.

(6)上記(5)の実施形態では、前記RFIDタグのメモリは、ユーザ領域、複数のミラー領域およびチェックコード領域を有し、前記送信部からの、同一の前記書き込むべきデータが、前記ユーザ領域および複数のミラー領域にそれぞれ書き込まれるとともに、前記チェックコードが、前記チェックコード領域に書き込まれ、前記送出部は、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出せず、 前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときに、前記ユーザ領域から読み出されたデータと、前記複数のミラー領域からそれぞれ読み出されたミラーデータとに基づいて、ビット毎の多数決一致によって新たなデータを作成する多数決一致部を更に備え、前記誤り検出部は、前記多数決一致部で作成したデータの誤りを検出し、前記送出部は、前記誤り検出部で、前記作成したデータの誤りが検出されなかったときには、前記作成したデータと共に誤りを訂正したことを、上位装置に送出し、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出するものである。   (6) In the embodiment of the above (5), the memory of the RFID tag has a user area, a plurality of mirror areas, and a check code area, and the same data to be written from the transmitter is the user And the check code is written to the check code area, and the sending unit detects data error after error correction by the error detection unit. Is not sent to the host device, and when the error detection unit detects an error in the data after error correction, the data read from the user area and the plurality of mirrors A majority decision matching unit that creates new data by majority decision for each bit based on mirror data read from each area is further provided. The error detection unit detects an error in the data created by the majority match unit, and the sending unit, together with the created data, when the error detection unit detects no error in the created data The fact that the error has been corrected is sent to the host device, and when the error detection unit detects an error in the created data, the fact that the data is abnormal is sent to the host device.

この実施形態によると、複数のミラー領域から読み出されたミラーデータを用いて、ビット毎の多数決一致によってデータの誤りを訂正して新たなデータを作成するので、2ビット以上のデータの誤りを訂正することができ、しかも、新たなデータについてもCRCによる誤り検出を行うので、作成した新たなデータに誤りがあった場合には、それを上位装置に通知することができるので、信頼性の高いものとなる。   According to this embodiment, using the mirror data read from the plurality of mirror areas, the data error is corrected by the majority match for each bit to create new data. Since the error can be corrected by CRC for new data as well, if there is an error in the created new data, it can be notified to the host device. It will be expensive.

(7)上記(6)の実施形態では、前記送出部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出せず、前記誤り訂正部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときに、データの誤りを訂正し、前記誤り検出部は、前記誤り訂正部で訂正された訂正後の前記作成したデータの誤りを検出し、前記送出部は、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されなかったときには、前記訂正後の前記作成したデータと共に誤りを訂正したことを、上位装置に送出し、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出するものである。   (7) In the embodiment of the above (6), the sending unit does not send the fact that the data is abnormal to the host device when the error detecting unit detects an error in the created data. The error correction unit corrects an error in the data when the error detection unit detects an error in the created data, and the error detection unit corrects the error after correction corrected by the error correction unit. An error in the created data is detected, and the sending unit corrects the error together with the created data after the correction when the error detecting unit does not detect an error in the created data after the correction. When the error detection unit detects an error in the created data after correction, the fact that the data is abnormal is sent to the host device.

この実施形態によると、多数決一致によって作成された新たなデータに誤りがあったときには、ECCによって誤りの訂正を行い、更に、訂正後の新たなデータについてもCRCによる誤り検出を行うので、訂正後の新たなデータに誤りがあった場合には、それを上位装置に通知することができるので、信頼性の高いものとなる。   According to this embodiment, when there is an error in the new data created by the majority match, the error is corrected by the ECC, and the error is also detected by the CRC for the corrected new data. If there is an error in the new data, it can be notified to the host device, so that the reliability is high.

(8)本発明のRFIDタグは、データを格納するメモリを有し、かつ、読み書き処理装置との間で無線によってデータの伝送を行うRFIDタグであって、前記メモリに、データおよび対応するチェックコードを書き込む書き込み部と、前記メモリからデータおよび対応するチェックコードを読み出す読み出し部と、データの誤りを検出する誤り検出部と、データの誤りを訂正する誤り訂正部と、前記読み書き処理装置に対してデータを送信する送信部とを備え、前記誤り検出部は、前記チェックコードを用いて、前記読み出したデータの誤りを検出する一方、前記誤り訂正部で訂正された誤り訂正後のデータの誤りを検出し、前記誤り訂正部は、前記誤り検出部で、前記読み出したデータの誤りが検出されたときに、データの誤りを訂正し、前記送信部は、前記誤り検出部で、前記読み出したデータの誤りが検出されなかったときには、該データを前記読み書き処理装置に送信し、前記誤り検出部で、誤り訂正後のデータの誤りが検出されなかったときには、誤り訂正後のデータと共に誤りを訂正したことを、前記読み書き処理装置に送信する一方、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信するものである。   (8) An RFID tag according to the present invention is an RFID tag that has a memory for storing data, and wirelessly transmits data to and from a read / write processing device. A writing unit for writing a code, a reading unit for reading data and a corresponding check code from the memory, an error detecting unit for detecting an error in the data, an error correcting unit for correcting an error in the data, and the read / write processing device A transmission unit for transmitting data, wherein the error detection unit detects an error in the read data using the check code, while an error in the data after error correction corrected by the error correction unit is detected. The error correction unit corrects the data error when the error detection unit detects an error in the read data. When the error detection unit does not detect an error in the read data, the transmission unit transmits the data to the read / write processing device, and the error detection unit detects an error in the data after error correction. If not, the error correction data is transmitted together with the corrected data to the read / write processing device. On the other hand, when the error detection unit detects an error in the corrected data, the data is abnormal. This is transmitted to the read / write processing device.

本発明のRFIDタグによると、データの書き込み時には、RFIDタグのメモリに、データおよび対応するチェックコードを書き込んでおき、データの読み出し時には、読み出したチェックコードを用いて、読み出したデータの誤りを検出し、誤りが検出されると、誤り訂正を行い、更に、訂正後のデータの誤りを検出し、訂正後のデータの誤りが検出されたときには、データが異常であることを読み書き処理装置に送出し、訂正後のデータの誤りが検出されなかったときには、訂正後のデータと共に、データの誤りを訂正したことを、読み書き処理装置するので、読み書き処理装置を介して、ユーザは、RFIDタグのから読み出したデータに異常があった場合に、誤り訂正によって正しいデータが復元されたこと、あるいは、誤り訂正によって正しいデータが復元できなかったことを把握できることになる。   According to the RFID tag of the present invention, when data is written, the data and the corresponding check code are written in the RFID tag memory, and when the data is read, the read check code is used to detect an error in the read data. If an error is detected, error correction is performed, and further, an error in the corrected data is detected. When an error in the corrected data is detected, the fact that the data is abnormal is sent to the read / write processor. However, when no error in the corrected data is detected, the correction of the data error is performed together with the corrected data in the read / write processing device, so that the user can use the RFID tag through the read / write processing device. If there is an error in the read data, correct data was restored by error correction, or error correction Therefore, the correct data will be able to grasp that that could not be restored.

したがって、ユーザは、データに異常が発生して誤り訂正によって正しいデータが復元されているときに、RFIDタグを交換したり、使用環境を変更するといった対策を取ることが可能となる。   Therefore, the user can take measures such as exchanging the RFID tag or changing the use environment when abnormality occurs in the data and correct data is restored by error correction.

(9)本発明のRFIDタグの一つの実施形態では、前記チェックコードは、CRCチェックコードおよびECCチェックコードであり、前記誤り検出部は、CRCによって誤りを検出し、前記誤り訂正部は、ECCによって1ビットのデータの誤りを訂正するものである。   (9) In one embodiment of the RFID tag of the present invention, the check code is a CRC check code and an ECC check code, the error detection unit detects an error by CRC, and the error correction unit is an ECC. This corrects an error in 1-bit data.

RFIDタグでは、通常、メモリ化けは、先ず、1ビットのデータ化けから始まるので、この実施形態によると、ECCによって、メモリ化けした1ビットのデータを訂正して正しいデータを復元することができる。   In the RFID tag, the memory corruption usually starts with 1-bit data corruption. According to this embodiment, the ECC-corrected 1-bit data can be corrected to restore correct data.

また、ECCによって誤り訂正をした訂正後のデータについて、ECCに比べて誤り検出の検出率が高いCRCによって誤り検出を行うので、誤り訂正後のデータに誤りがある場合には、高い精度で誤りを検出することができる。   In addition, since error detection is performed on CRC after error correction by ECC, which has a higher error detection rate than ECC, if there is an error in the data after error correction, the error is detected with high accuracy. Can be detected.

更に、ECCによる誤り訂正よりも先にCRCによる誤り検出を行うので、処理の大半を占める正常なデータに対して、不必要にECCによる誤り訂正を行う必要がなく、処理速度の向上を図ることができる。   Furthermore, since error detection by CRC is performed before error correction by ECC, it is not necessary to perform error correction by ECC unnecessarily for normal data occupying most of the processing, and the processing speed is improved. Can do.

(10)上記(9)の実施形態では、前記メモリは、ユーザ領域、複数のミラー領域およびチェックコード領域を有し、前記書き込み部は、同一の前記データを、前記ユーザ領域および複数のミラー領域にそれぞれ書き込むとともに、前記チェックコードを、前記チェックコード領域に書き込み、前記送信部は、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信せず、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときに、前記ユーザ領域から読み出されたデータと、前記複数のミラー領域からそれぞれ読み出されたミラーデータとに基づいて、ビット毎の多数決一致によって新たなデータを作成する多数決一致部を更に備え、前記誤り検出部は、前記多数決一致部で作成したデータの誤りを検出し、前記送信部は、前記誤り検出部で、前記作成したデータの誤りが検出されなかったときには、前記作成したデータと共に誤りを訂正したことを、前記読み書き処理装置に送信し、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信するものである。  (10) In the embodiment of the above (9), the memory has a user area, a plurality of mirror areas, and a check code area, and the writing unit stores the same data in the user area and the plurality of mirror areas. And the check code is written to the check code area, and when the error detection unit detects an error in the data after error correction, the transmitter detects that the data is abnormal. Data is read from the user area and read from the plurality of mirror areas when an error in the data after error correction is detected by the error detection unit without being transmitted to the read / write processing device. A majority decision matching unit that creates new data based on a majority decision for each bit based on mirror data; and the error detection unit includes: Detecting an error in the data created by the majority decision matching unit, and when the error detection unit detects no error in the created data, the transmitting unit corrects the error together with the created data. The data is transmitted to the read / write processor, and when the error detection unit detects an error in the created data, the fact that the data is abnormal is transmitted to the read / write processor.

この実施形態によると、複数のミラー領域から読み出されたミラーデータを用いて、ビット毎の多数決一致によってデータの誤りを訂正して新たなデータを作成するので、2ビット以上のデータの誤りを訂正することができ、しかも、新たなデータについてもCRCによる誤り検出を行うので、作成した新たなデータに誤りがあった場合には、それを読み書き処理装置に通知することができるので、信頼性の高いものとなる。   According to this embodiment, using the mirror data read from the plurality of mirror areas, the data error is corrected by the majority match for each bit to create new data. Since the error can be corrected by CRC for new data as well, if there is an error in the created new data, it can be notified to the read / write processing device. Will be expensive.

(11)上記(10)の実施形態では、前記送信部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信せず、前記誤り訂正部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときに、データの誤りを訂正し、前記誤り検出部は、前記誤り訂正部で訂正された訂正後の前記作成したデータの誤りを検出し、前記送出部は、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されなかったときには、前記訂正後の前記作成したデータと共に誤りを訂正したことを、前記読み書き処理装置に送信し、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信するものである。  (11) In the embodiment of (10), when the error detection unit detects an error in the created data, the transmission unit transmits to the read / write processing device that the data is abnormal. The error correction unit corrects a data error when the error detection unit detects an error in the created data, and the error detection unit corrects the error after the correction is performed by the error correction unit. When the error is not detected in the corrected data by the error detecting unit, the sending unit detects an error together with the generated data after the correction. The correction is transmitted to the read / write processing device, and when the error detection unit detects an error in the created data after correction, the read / write processing device indicates that the data is abnormal. It is intended to be sent.

この実施形態によると、多数決一致によって作成された新たなデータに誤りがあったときには、ECCによって誤りの訂正を行い、更に、訂正後の新たなデータについてもCRCによる誤り検出を行うので、訂正後の新たなデータに誤りがあった場合には、それを読み書き処理装置に通知することができるので、信頼性の高いものとなる。   According to this embodiment, when there is an error in the new data created by the majority match, the error is corrected by the ECC, and the error is also detected by the CRC for the corrected new data. If there is an error in the new data, it can be notified to the read / write processing device, so that the reliability is high.

本発明によれば、RFIDタグから読み出したデータにメモリ化け等の異常が発生し、データの誤り訂正によって正しいデータが復元されているときに、ユーザは、そのことを把握することができるので、RFIDタグを交換したり、使用環境を変更するといった対策を取ることが可能となり、或る日突然に、異常なデータしか得られなくなる従来例に比べて、使い勝手が向上する。   According to the present invention, when an abnormality such as memory corruption occurs in data read from the RFID tag, and the correct data is restored by error correction of the data, the user can grasp that, It becomes possible to take measures such as replacing the RFID tag or changing the use environment, and the usability is improved as compared with the conventional example in which only abnormal data can be obtained suddenly on a certain day.

以下、本発明の実施の形態について、図面に基づいて詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

(実施形態1)
図1は、RFIDシステムの構成図であり、このRFIDシステムは、パーソナルコンピュータ1やPLCなどの上位装置と、本発明の係るRFIDタグ用の読み書き処理装置(リーダライタ)2と、送受信用のアンテナ3と、RFIDタグ4とを備えている。
(Embodiment 1)
FIG. 1 is a configuration diagram of an RFID system. This RFID system includes a host device such as a personal computer 1 and a PLC, a read / write processing device (reader / writer) 2 for an RFID tag according to the present invention, and an antenna for transmission and reception. 3 and an RFID tag 4.

上位装置であるパーソナルコンピュータ1と読み書き処理装置2とは、シリアル通信ケーブル5、または、USBケーブルで接続されている。パーソナルコンピュータ1は、読み書き処理装置2に対して、RFIDタグ4のデータを読み取るためのコマンド、書き込むためのコマンドを送信し、読み書き処理装置2から処理結果を受信する。   The personal computer 1 which is a host device and the read / write processing device 2 are connected by a serial communication cable 5 or a USB cable. The personal computer 1 transmits a command for reading data of the RFID tag 4 and a command for writing to the read / write processing device 2 and receives a processing result from the read / write processing device 2.

読み書き処理装置2とアンテナ3とは、ケーブル6で接続され、アンテナ3とRFIDタグ4とは、無線接続される。読み書き処理装置2は、RFIDタグ4のデータの読み取り、書き込みを行う。   The read / write processing device 2 and the antenna 3 are connected by a cable 6, and the antenna 3 and the RFID tag 4 are wirelessly connected. The read / write processing device 2 reads and writes data from the RFID tag 4.

図2は、読み書き処理装置2およびRFIDタグ4のブロック図である。   FIG. 2 is a block diagram of the read / write processing device 2 and the RFID tag 4.

読み書き処理装置2は、制御部7、送信部8、受信部9、表示部10、インターフェース(I/F)回路11などを備え、1つの筐体内に組み込まれて構成される。   The read / write processing device 2 includes a control unit 7, a transmission unit 8, a reception unit 9, a display unit 10, an interface (I / F) circuit 11, and the like, and is configured to be incorporated in one housing.

読み書き処理装置2の制御部7は、マイクロコンピュータで構成され、内部メモリに組み込まれたプログラムに基づき、RFIDタグ4との交信処理、後述する誤り検出、誤り訂正処理、および、パーソナルコンピュータ1との通信処理などを実行するものである。また、この制御部7は、発振回路(図示せず)からのパルス信号に基づき、搬送波(キャリア)の元となる高周波パルスを出力する。また、RFIDタグ4との交信時には、コマンドの内容を表すデータをパルス信号(コマンド信号)として出力する。   The control unit 7 of the read / write processing device 2 is constituted by a microcomputer, and based on a program incorporated in the internal memory, communication processing with the RFID tag 4, error detection, error correction processing described later, and personal computer 1 Communication processing is executed. In addition, the control unit 7 outputs a high-frequency pulse that is a source of a carrier wave based on a pulse signal from an oscillation circuit (not shown). Further, when communicating with the RFID tag 4, data representing the contents of the command is output as a pulse signal (command signal).

送信部8および受信部9は、変調回路および復調回路をそれぞれ備えている。   The transmission unit 8 and the reception unit 9 are each provided with a modulation circuit and a demodulation circuit.

インターフェース回路11は、パーソナルコンピュータ1などの上位装置との通信に用いられる。   The interface circuit 11 is used for communication with a host device such as the personal computer 1.

この読み書き処理装置2は、パーソナルコンピュータ1などの上位装置からRFIDタグ4のメモリへの書き込み、読み取りの指令を受信し、受信したコマンドの種類に応じて、アンテナ3を介して、RFIDタグ4へデータの書き込み、データの読み取りを行う。   The read / write processing device 2 receives commands for writing to and reading from the memory of the RFID tag 4 from a host device such as the personal computer 1 and sends the command to the RFID tag 4 via the antenna 3 according to the type of the received command. Write data and read data.

一方、RFIDタグ4は、電源を内蔵せず、読み書き処理装置2からの送信波により生じた誘導起電力によって動作するタイプのもので、アンテナ12と、制御回路13と、メモリ14とを備えており、制御回路13は、制御用ロジック回路又はマイクロコンピュータ、変調回路および復調回路などを備えている。   On the other hand, the RFID tag 4 is of a type that does not have a built-in power supply and operates by induced electromotive force generated by a transmission wave from the read / write processing device 2, and includes an antenna 12, a control circuit 13, and a memory 14. The control circuit 13 includes a control logic circuit or microcomputer, a modulation circuit, a demodulation circuit, and the like.

このRFIDタグ4は、例えば、製造現場において、ユーザが、各種情報を格納している。RFIDタグ4のメモリ14には重要なデータが入っているため、データが破壊されると重大なトラブルが発生する可能性がある。   In the RFID tag 4, for example, a user stores various types of information at a manufacturing site. Since important data is stored in the memory 14 of the RFID tag 4, there is a possibility that a serious trouble occurs when the data is destroyed.

この実施形態では、かかるトラブルの発生を抑止できるように、読み書き処理装置2は、RFIDタグ4のメモリの破壊検査と誤り訂正を行うものである。   In this embodiment, the read / write processing device 2 performs a destructive inspection and error correction of the memory of the RFID tag 4 so that the occurrence of such trouble can be suppressed.

すなわち、読み書き処理装置2は、何らかの要因によって、RFIDタグ4のデータにメモリ化けが生じたときに、ユーザがそれを認識できるとともに、復元した正しいデータを得られるようにしている。   In other words, the read / write processing device 2 allows the user to recognize when the data of the RFID tag 4 is garbled for some reason and to obtain the restored correct data.

図3および図4は、読み書き処理装置2の動作説明に供するフローチャートであり、図3は、RFIDタグ4へのデータの書き込み時の動作を、図4は、RFIDタグ4からのデータの読み出し時の動作をそれぞれ示している。   3 and 4 are flowcharts for explaining the operation of the read / write processing device 2. FIG. 3 shows an operation when data is written to the RFID tag 4, and FIG. 4 shows a time when data is read from the RFID tag 4. The operation of each is shown.

RFIDタグ4へのデータの書き込み時には、図3に示すように、RFIDタグ4に、ユーザから指定されたユーザデータを、メモリの指定されたアドレスに書き込むための書き込みコマンドを送信し(ステップn1)、更に、書き込むべきユーザデータを送信するとともに(ステップn2)、内部で計算したそのユーザデータのチェックコードを送信する(ステップn3)。   When writing data to the RFID tag 4, as shown in FIG. 3, a write command for writing user data designated by the user to a designated address in the memory is transmitted to the RFID tag 4 (step n1). Further, user data to be written is transmitted (step n2), and a check code of the user data calculated internally is transmitted (step n3).

この実施形態では、指定バイト数のユーザデータに対して、チェックコードとして、CRC2バイト、ECC3バイトの計算結果を用いている。   In this embodiment, a calculation result of CRC 2 bytes and ECC 3 bytes is used as a check code for user data of a specified number of bytes.

RFIDタグ4は、読み書き処理装置2からの書き込みコマンド、ユーザデータおよびチェックコードを受信して、メモリ14の指定されたアドレスに、ユーザデータおよびチェックコードを書き込む。   The RFID tag 4 receives a write command, user data, and check code from the read / write processing device 2 and writes the user data and check code to a specified address in the memory 14.

図5は、RFIDタグ4のメモリマップであり、この図5に示すように、ユーザが指定したアドレスから、指定バイト数のユーザデータに対して、データの終了アドレスの次の番地から、チェックコードとして、CRC2バイト、ECC3バイトの計算結果を書き込むようにしている。   FIG. 5 is a memory map of the RFID tag 4. As shown in FIG. 5, for the user data of the specified number of bytes from the address specified by the user, the check code from the address next to the end address of the data As described above, calculation results of CRC 2 bytes and ECC 3 bytes are written.

なお、読み書き処理装置2におけるCRCの計算範囲はユーザデータのみであり、ECCの計算範囲は、ユーザデータおよびCRCデータである。   Note that the CRC calculation range in the read / write processing device 2 is only user data, and the ECC calculation range is user data and CRC data.

次に、RFIDタグ4からのデータの読み出し時には、読み書き処理装置2は、図4に示すように、RFIDタグ4に対して、指定したアドレスから指定バイト数分のユーザデータおよび5バイトのチェックコードを読み出すための読み出しコマンドを送信する(ステップn1)。   Next, when reading data from the RFID tag 4, the read / write processing device 2 sends the user data and the 5-byte check code for the specified number of bytes from the specified address to the RFID tag 4 as shown in FIG. 4. A read command for reading is transmitted (step n1).

読み出しコマンドを受信したRFIDタグ4は、メモリ14から指定されたユーザデータおよびチェックコードを読み出して、読み書き処理装置2に送信する。   The RFID tag 4 that has received the read command reads the specified user data and check code from the memory 14 and transmits them to the read / write processing device 2.

読み書き処理装置2は、図4に示すように、RFIDタグ4から読み出されて送信されるユーザデータを受信するとともに(ステップn2)、対応するチェックコードを受信する(ステップn3)。   As shown in FIG. 4, the read / write processing device 2 receives user data read from the RFID tag 4 and transmitted (step n2) and also receives a corresponding check code (step n3).

次に、読み出されたユーザデータのCRC検査を行う(ステップn4)。このCRC検査では、読み出されたユーザデータを、公知のCRC計算ロジックをに従って計算し、その計算結果と、RFIDタグ4から読み出されたCRC計算結果とを比較し、一致していた場合は、データは正常であると判断する。   Next, a CRC check is performed on the read user data (step n4). In this CRC check, the read user data is calculated according to a known CRC calculation logic, and the calculation result is compared with the CRC calculation result read from the RFID tag 4. Judge that the data is normal.

ステップn5では、このCRC検査結果が正常であるか否かを判断し、正常であるときには、ユーザデータを、上位装置であるパーソナルコンピュータ1に送出して正常終了とする。   In step n5, it is determined whether or not the CRC test result is normal. If the CRC test result is normal, the user data is sent to the personal computer 1 which is the host device, and the process ends normally.

ステップn5において、検査結果が異常であったときには、ユーザデータおよびCRCデータの1ビットの誤り訂正を公知のECCロジックによって行う(ステップn6)。   If the inspection result is abnormal in step n5, 1-bit error correction of user data and CRC data is performed by a known ECC logic (step n6).

次に、1ビットデータの誤り訂正ができたか否かを判断し(ステップn7)、訂正できなかったときには、読み取ったユーザデータが異常であって、訂正できなかった旨を、上位装置であるパーソナルコンピュータ1に送出して異常終了とする。   Next, it is determined whether or not the error correction of the 1-bit data has been performed (step n7). If the error cannot be corrected, the fact that the read user data is abnormal and could not be corrected indicates that the personal device, which is the host device. Send to computer 1 and end abnormally.

ECCの誤り検出率は、CRCの誤り検出率に比べて低く、ECCでは、誤りを検出できなくても、CRCでは、誤りを検出できる場合がある。例えば、
ECCでは、2ビットの誤りが生じた場合には、訂正不可能として検知できても、3ビットの誤りが生じた場合には、1ビットの誤りを正しく訂正できたと誤検知する虞がある。
The error detection rate of ECC is lower than the error detection rate of CRC, and even if an error cannot be detected by ECC, an error may be detected by CRC. For example,
In ECC, when a 2-bit error occurs, it can be detected that correction is impossible, but if a 3-bit error occurs, it may be erroneously detected that the 1-bit error has been correctly corrected.

そこで、ステップn7において、1ビットのデータの誤り訂正ができた場合には、誤り訂正後のユーザデータのCRC検査を再び行う(ステップn8)。   Therefore, when error correction of 1-bit data is completed in step n7, CRC check of user data after error correction is performed again (step n8).

このCRC検査結果が正常であるか否かを判断し(ステップn9)、正常であるときには、誤り訂正後のユーザデータと共に、誤り訂正を行った旨を、上位装置であるパーソナルコンピュータ1に送出して正常終了とする。   It is determined whether or not the CRC check result is normal (step n9). When the CRC check result is normal, the fact that the error correction has been performed is sent to the personal computer 1 as the host device together with the user data after the error correction. And terminate normally.

また、ステップn9において、検査結果が異常であったときには、読み取ったユーザデータが異常であって、訂正できなかった旨を、上位装置であるパーソナルコンピュータ1に送出して異常終了とする。   In step n9, if the inspection result is abnormal, the fact that the read user data is abnormal and cannot be corrected is sent to the personal computer 1 which is the host device to end abnormally.

パーソナルコンピュータ1では、読み書き処理装置2からのデータを表示することができ、誤り訂正をすることなくデータを正しく読み取れたこと、データを正しく読み取れなかったけれども、誤り訂正によって正しいデータを復元できたこと、あるいは、データを正しく読み取れず、誤り訂正ができなかったことを表示することができる。   The personal computer 1 can display the data from the read / write processing device 2 and can read the data correctly without performing error correction, or can restore the correct data by error correction even though the data could not be read correctly. Alternatively, it is possible to display that data could not be read correctly and error correction could not be performed.

一般に、RFIDタグ4では、通常、メモリ化けは、先ず、1ビットのデータ化けから始まるので、ECCによる1ビットのデータの誤り訂正によって、データを復元することができ、したがって、ユーザは、1ビットのデータの誤り訂正によって、正しいデータが復元されているときに、そのことを認識できるので、正しいデータが復元されている期間を利用して、RFIDタグ4を交換したり、あるいは、使用環境を変更してメモリ化けが生じないようにするといった措置をとることができる。したがって、或る日突然に異常なデータしか得られなくなる従来例に比べて、信頼性および使い勝手が向上する。   In general, in the RFID tag 4, since the memory corruption usually starts with 1-bit data corruption, the data can be restored by error correction of 1-bit data by ECC. When correct data is restored by error correction of the data, it can be recognized, so that the RFID tag 4 can be replaced or the use environment can be changed using the period during which the correct data is restored. It is possible to take measures such as changing the memory so that it will not be garbled. Therefore, reliability and usability are improved as compared with the conventional example in which only abnormal data can be obtained suddenly on a certain day.

また、ECCでは、上述のように誤検知する虞があるが、誤り訂正を行って復元されたデータについて、ECCよりも誤り検出率が高いCRCによって、再度誤り検出を行うので、復元されたデータが正しいか否かを高い精度で判定することができ、信頼性の高いものとなる。   In addition, in ECC, there is a risk of erroneous detection as described above. However, since data that has been restored by performing error correction is subjected to error detection again by CRC having a higher error detection rate than ECC, the restored data Whether or not is correct can be determined with high accuracy, and the reliability is high.

また、ECCよりも先にCRCによる誤り検出を行うので、処理の大半を占める正常なデータに対して、不必要にECCによる誤り訂正を行う必要がなく、処理速度の向上を図ることができる。   Further, since error detection by CRC is performed before ECC, it is not necessary to perform error correction by ECC unnecessarily for normal data occupying most of the processing, and the processing speed can be improved.

更に、ECCの計算範囲には、ユーザデータのみならず、CRCデータを含むので、誤り検出の判定領域を全域にすることができる。   In addition, since the ECC calculation range includes not only user data but also CRC data, the error detection determination area can be extended.

(実施形態2)
上述の実施形態では、1ビットのデータの誤りを訂正したけれども、この実施形態では、2ビット以上のデータの誤りを訂正できるものである。
(Embodiment 2)
In the above-described embodiment, an error in 1-bit data is corrected. However, in this embodiment, an error in 2-bit or more data can be corrected.

図6は、この実施形態のRFIDタグ4のメモリマップである。   FIG. 6 is a memory map of the RFID tag 4 of this embodiment.

この実施形態では、RFIDタグ4のメモリ14の記憶領域を、ユーザ領域、第1のミラー領域、第2のミラー領域、および、チェックコード領域に4分割しており、この例では、1ページが8バイト構成となっており、ページ単位で書き込み、読み出しを行うものである。   In this embodiment, the storage area of the memory 14 of the RFID tag 4 is divided into a user area, a first mirror area, a second mirror area, and a check code area. In this example, one page includes It has an 8-byte configuration, and performs writing and reading in page units.

このRFIDタグ4のメモリ14へのデータの書き込み時には、ユーザが指定したアドレスから指定バイト数分のユーザデータを、ユーザ領域に書き込むとともに、同一のユーザデータを、第1,第2のミラー領域にそれぞれ書き込み、更に、対応するチェックコードを、チェックコード領域に書き込むものである。   When writing data to the memory 14 of the RFID tag 4, user data for a specified number of bytes from the address specified by the user is written to the user area, and the same user data is written to the first and second mirror areas. Each is written, and a corresponding check code is written in the check code area.

上述の実施形態では、ユーザデータに引き続いて、CRC2バイト、ECC3バイトのチェックコードを書き込むので、チェックコードの領域に、ユーザデータを書き込まないように、ユーザが管理する必要があるのに対して、この実施形態では、ミラーデータおよびチェックコードは、それぞれ専用の領域に書き込まれるので、ユーザはユーザデータ以外のデータについて一切考慮する必要がない。   In the above-described embodiment, a check code of CRC 2 bytes and ECC 3 bytes is written following the user data. Therefore, the user needs to manage so that user data is not written in the check code area. In this embodiment, since the mirror data and the check code are written in dedicated areas, the user need not consider any data other than the user data.

この図6では、1ページが8バイト構成となっているので、例えば、ユーザデータの000E番地から0019番地まで使用する場合には、使用する領域は、ユーザ領域が000E〜0019、第1のミラー領域が200E〜2019、第2のミラー領域が400E〜4019、チェックコード領域が6008〜601Fとなる。   In FIG. 6, since one page has an 8-byte configuration, for example, when the user data is used from address 000E to address 0019, the user area is the user area 000E to 0019, the first mirror. The area is 200E to 2019, the second mirror area is 400E to 4019, and the check code area is 6008 to 601F.

チェックコード1−1は、0008〜000Fのチェックコード、チェックコード1−2は、0010〜0017のチェックコード、チェックコード1−3は、0018〜001Fのチェックコードとなっている。   The check code 1-1 is a check code of 0008 to 000F, the check code 1-2 is a check code of 0010 to 0017, and the check code 1-3 is a check code of 0018 to 001F.

次に、この実施形態の読み出し時の動作を、図7に基づいて説明する。   Next, the reading operation of this embodiment will be described with reference to FIG.

先ず、RFIDタグ4に対して、指定したアドレスから、指定バイト数分のユーザデータおよび対応するチェックコードを読み出すための読み出しコマンドを送信し(ステップn1)、RFIDタグ4から読み出されて送信されるユーザデータを受信するとともに(ステップn2)、対応するチェックコードを受信する(ステップn3)。   First, a read command for reading the user data and the corresponding check code for the specified number of bytes from the specified address is transmitted to the RFID tag 4 (step n1), and read and transmitted from the RFID tag 4. User data (step n2) and a corresponding check code (step n3).

次に、上述の図4の処理において、破線で囲まれた検査処理Aを実行する(ステップn4〜n9)。   Next, in the process of FIG. 4 described above, the inspection process A surrounded by a broken line is executed (steps n4 to n9).

すなわち、図4に示すように、ユーザデータのCRC検査を行い(ステップn4)、検査結果が正常であるか否かを判断し(ステップn5)、正常であるときには、ユーザデータを、上位装置であるパーソナルコンピュータ1に送出して正常終了とする。   That is, as shown in FIG. 4, a CRC check is performed on the user data (step n4), and it is determined whether or not the check result is normal (step n5). The data is sent to a personal computer 1 and the process ends normally.

検査結果が異常であったときには、ユーザデータおよびCRCデータの1ビットの誤り訂正を行い(ステップn6)、誤り訂正ができたか否かを判断し(ステップn7)、誤り訂正ができたときには、誤り訂正後のユーザデータのCRC検査を再び行い(ステップn8)、このCRC検査結果が正常であるか否かを判断し(ステップn9)、正常であるときには、誤り訂正後のユーザデータと共に、誤り訂正を行った旨を、上位装置であるパーソナルコンピュータ1に送出して正常終了とする。   When the inspection result is abnormal, 1-bit error correction of user data and CRC data is performed (step n6), and it is determined whether or not error correction has been performed (step n7). The CRC check of the corrected user data is performed again (step n8), and it is determined whether or not the CRC check result is normal (step n9). When the CRC check result is normal, the error correction is performed together with the user data after error correction. Is sent to the personal computer 1, which is the host device, and the process ends normally.

ステップn7で誤り訂正ができなかったとき、あるいは、ステップn9において、検査結果が異常であったとき、すなわち、異常終了と判断されるときに、図7のステップn10の処理に移行する。   When error correction cannot be performed in step n7, or when the inspection result is abnormal in step n9, that is, when it is determined that the process has ended abnormally, the process proceeds to step n10 in FIG.

図7のステップn10では、RFIDタグ4に、ユーザデータに対応する第1,第2のミラー領域の第1,第2のミラーデータを読み出す読み出しコマンドを送信し、RFIDタグ4から読み出されて送信される第1,第2のミラー領域のミラーデータを受信する(ステップn11)。   In step n10 in FIG. 7, a read command for reading the first and second mirror data in the first and second mirror areas corresponding to the user data is transmitted to the RFID tag 4 and read from the RFID tag 4. The transmitted mirror data of the first and second mirror areas is received (step n11).

次に、既に読み出しているユーザデータと、対応する第1,第2のミラー領域の第1,第2のミラーデータとによって、ビット単位で多数決検査を行い、新しいユーザデータを作成する(ステップn12)。すなわち、対応するビット単位で、ユーザデータと、第1のミラーデータと、第2のミラーデータとで多数決を取ったデータを、新しいユーザデータとするものである。   Next, a majority check is performed in bit units based on the user data that has already been read and the first and second mirror data in the corresponding first and second mirror areas to create new user data (step n12). ). In other words, the data obtained by voting the user data, the first mirror data, and the second mirror data in the corresponding bit unit is used as new user data.

このように、ユーザデータと第1,第2のミラーデータとを用いて、ビット単位での多数決一致によって、誤りを訂正して新しいユーザデータを作成するので、2ビット以上のデータの誤りも訂正することができる。   In this way, the user data and the first and second mirror data are used to correct the error and create new user data by the majority match in bit units, so that the error of data of 2 bits or more is also corrected. can do.

次に、信頼性を高めるために、この新しいユーザデータに対して、上述の図4と同様の検査処理Aを実行する。   Next, in order to improve the reliability, the same inspection process A as in FIG. 4 is executed on the new user data.

すなわち、図4に示すように、新しいユーザデータのCRC検査を行い(ステップn4)、検査結果が正常であるか否かを判断し(ステップn5)、正常であるときには、新しいユーザデータを、上位装置であるパーソナルコンピュータ1に送出するとともに、誤り訂正を行った旨を送出して正常終了とする。   That is, as shown in FIG. 4, a CRC check of new user data is performed (step n4), and it is determined whether or not the check result is normal (step n5). The data is sent to the personal computer 1 which is a device, and the fact that error correction has been performed is sent and the process ends normally.

検査結果が異常であったときには、新しいユーザデータおよびCRCデータの1ビットの誤り訂正を行い(ステップn6)、誤り訂正ができたか否かを判断し(ステップn7)、誤り訂正ができたときには、誤り訂正後の新しいユーザデータのCRC検査を再び行い(ステップn8)、このCRC検査結果が正常であるか否かを判断し(ステップn9)、正常であるときには、誤り訂正後の新しいユーザデータと共に、誤り訂正を行った旨を、上位装置であるパーソナルコンピュータ1に送出して正常終了とする。   When the inspection result is abnormal, 1-bit error correction of new user data and CRC data is performed (step n6), it is determined whether or not error correction has been performed (step n7). CRC check of the new user data after error correction is performed again (step n8), and it is determined whether or not the CRC check result is normal (step n9). The fact that the error correction has been performed is sent to the personal computer 1 which is the host device, and the process ends normally.

ステップn7で誤り訂正ができなかったとき、あるいは、ステップn9において、検査結果が異常であったとき、すなわち、異常終了と判断されるときには、読み取ったユーザデータが異常であって、訂正できなかった旨を、上位装置であるパーソナルコンピュータ1に送出して異常終了とする。   When error correction could not be performed in step n7, or when the test result was abnormal in step n9, that is, when it was determined that the process ended abnormally, the read user data was abnormal and could not be corrected. A message to that effect is sent to the personal computer 1, which is the host device, and the process ends abnormally.

この実施形態では、新しいユーザデータのCRC検査を行って、検査結果が異常であったときには、1ビットの誤り訂正を行ったけれども、本発明の他の実施形態として、検査結果が異常であったときには、1ビットの誤り訂正を行うことなく、データが異常であって、訂正できなかった旨を、上位装置であるパーソナルコンピュータ1に送出して異常終了としてもよい。   In this embodiment, when a CRC check of new user data is performed and the inspection result is abnormal, 1-bit error correction is performed. However, as another embodiment of the present invention, the inspection result is abnormal. In some cases, the fact that the data is abnormal and could not be corrected without performing 1-bit error correction may be sent to the personal computer 1, which is the host device, to terminate abnormally.

また、上述の実施形態では、ページ単位で書き込み読み出しを行ったけれども、本発明の他の実施形態として、図8に示すように、ユーザデータ単位で書き込み読み出しを行うようにしてもよい。   In the above-described embodiment, writing / reading is performed in units of pages. However, as another embodiment of the present invention, writing / reading may be performed in units of user data as shown in FIG.

(実施形態3)
上述の各実施形態では、読み書き処理装置2によって、誤り検出、誤り訂正を行ったけれども、本発明の他の実施形態として、読み書き処理装置2では、誤り検出、誤り訂正を行なうことなく、RFIDタグ4において、誤り検出、誤り訂正を行うようにしてもよい。
(Embodiment 3)
In each of the above-described embodiments, error detection and error correction are performed by the read / write processing device 2, but as another embodiment of the present invention, the read / write processing device 2 does not perform error detection and error correction, and does not perform error detection and error correction. In step 4, error detection and error correction may be performed.

図9および図10は、RFIDタグ4によって、誤り検出、誤り訂正を行う場合の動作説明に供するフローチャートであり、図9は、RFIDタグ4の書き込み時の動作を、図10は、RFIDタグ4の読み出し時の動作をそれぞれ示しており、上述の図3および図4にそれぞれ対応する図である。   FIG. 9 and FIG. 10 are flowcharts for explaining the operation when error detection and error correction are performed by the RFID tag 4. FIG. 9 shows the operation at the time of writing to the RFID tag 4, and FIG. FIG. 5 is a diagram corresponding to FIG. 3 and FIG. 4 described above, respectively.

データの書き込み時には、図9に示すように、読み書き処理装置2からの書き込むべきユーザデータを、メモリ14の指定されたアドレスに書き込むとともに(ステップn1)、内部で計算したそのユーザデータのチェックコードであるCRC2バイト、ECC3バイトを書き込む(ステップn2)。   At the time of data writing, as shown in FIG. 9, user data to be written from the read / write processing device 2 is written to a specified address in the memory 14 (step n1), and the check code of the user data calculated internally is used. A certain CRC2 byte and ECC3 byte are written (step n2).

次に、データの読み出し時には、図10に示すように、メモリ14から指定バイト数分のユーザデータおよび5バイトのチェックコードを読み出し(ステップn1,n2)、ユーザデータのCRC検査を行う(ステップn3)。ステップn4では、このCRC検査結果が正常であるか否かを判断し、CRC検査結果が正常であるときには、ユーザデータを、読み書き処理装置2に送信して正常終了とする。   Next, at the time of data reading, as shown in FIG. 10, user data and a 5-byte check code for the specified number of bytes are read from the memory 14 (steps n1 and n2), and a CRC check of the user data is performed (step n3 ). In step n4, it is determined whether or not the CRC check result is normal. When the CRC check result is normal, the user data is transmitted to the read / write processing device 2 to complete the normal end.

ステップn4において、検査結果が異常であったときには、ユーザデータおよびCRCデータの1ビットの誤り訂正をECCによって行う(ステップn5)。   If the inspection result is abnormal in step n4, 1-bit error correction of user data and CRC data is performed by ECC (step n5).

次に、1ビットデータの誤り訂正ができたか否かを判断し(ステップn6)、訂正できなかつたときには、読み取ったユーザデータが異常であって、訂正できなかった旨を、読み書き処理装置2に送信して異常終了とする。   Next, it is determined whether or not the 1-bit data has been corrected (step n6). If the 1-bit data cannot be corrected, the read / write processing device 2 is informed that the read user data is abnormal and cannot be corrected. Send and terminate abnormally.

ステップn6において、1ビットのデータの誤り訂正ができた場合には、誤り訂正後のユーザデータのCRC検査を再び行う(ステップn7)。   If error correction of 1-bit data has been completed in step n6, CRC check of user data after error correction is performed again (step n7).

このCRC検査結果が正常であるか否かを判断し(ステップn8)、正常であるときには、誤り訂正後のユーザデータと共に、誤り訂正を行った旨を、読み書き処理装置2に送信して正常終了とする。   It is determined whether or not the CRC check result is normal (step n8). When the CRC check result is normal, the fact that error correction has been performed is transmitted to the read / write processing device 2 together with the user data after error correction, and the processing ends normally. And

また、ステップn8において、検査結果が異常であったときには、読み取ったユーザデータが異常であって、訂正できなかった旨を、読み書き処理装置2に送信して異常終了とする。   In step n8, when the inspection result is abnormal, the fact that the read user data is abnormal and cannot be corrected is transmitted to the read / write processing device 2 to end abnormally.

なお、上述の図7と同様の処理を、RFIDタグ4で行なってもよいのは勿論である。   Of course, the RFID tag 4 may perform the same processing as in FIG.

本発明は、RFIDシステムなどに有用である。   The present invention is useful for RFID systems and the like.

本発明の一つの実施の形態に係るRFIDシステムの構成を示す図である。It is a figure which shows the structure of the RFID system which concerns on one embodiment of this invention. 図1の読み書き処理装置およびRFIDタグのブロック図である。FIG. 2 is a block diagram of the read / write processing device and RFID tag of FIG. 1. 書き込み時の動作説明に供するフローチャートである。It is a flowchart with which it uses for description of operation | movement at the time of writing. 読み出し時の動作説明に供するフローチャートである。It is a flowchart with which it uses for description of operation | movement at the time of read-out. RFIDタグのメモリマップである。It is a memory map of an RFID tag. 本発明の他の実施形態のRFIDタグのメモリマップである。It is a memory map of the RFID tag of other embodiment of this invention. 読み出し時の動作説明に供するフローチャートである。It is a flowchart with which it uses for description of operation | movement at the time of read-out. RFIDタグのメモリマップの他の例を示す図である。It is a figure which shows the other example of the memory map of a RFID tag. 本発明に係るRFIDタグの書き込み時の動作説明に供するフローチャートである。It is a flowchart with which it uses for description of operation | movement at the time of writing of the RFID tag which concerns on this invention. 本発明に係るRFIDタグの読み出し時の動作説明に供するフローチャートである。It is a flowchart with which it uses for operation | movement description at the time of reading of the RFID tag which concerns on this invention.

符号の説明Explanation of symbols

1 パーソナルコンピュータ
2 読み書き処理装置(リーダライタ)
3 アンテナ
4 RFIDタグ
7 制御部
8 送信部
9 受信部
1 Personal Computer 2 Read / Write Processing Device (Reader / Writer)
3 Antenna 4 RFID tag 7 Control unit 8 Transmitting unit 9 Receiving unit

Claims (11)

RFIDタグのメモリへのデータの読み出しおよび書き込みを行う読み書き処理方法であって、
前記メモリに、データおよび対応するチェックコードを書き込む書き込みステップと、
前記メモリからデータおよび対応するチェックコードを読み出す読み出しステップと、
前記メモリから読み出されたチェックコードを用いて、前記メモリから読み出されたデータの誤りを検出する第1の誤り検出ステップと、
前記第1の誤り検出ステップで、データの誤りが検出されたときに、データの誤りを訂正する誤り訂正ステップと、
前記誤り訂正ステップで訂正された誤り訂正後のデータの誤りを検出する第2の誤り検出ステップと、
前記第2の誤り検出ステップで、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、また、誤り訂正後のデータの誤りが検出されなかったときには、誤りを訂正したことを、通知する通知ステップと、
を含むことを特徴とする読み書き処理方法。
A read / write processing method for reading and writing data to a memory of an RFID tag,
A writing step of writing data and a corresponding check code into the memory;
A reading step of reading data and corresponding check codes from the memory;
A first error detection step for detecting an error in data read from the memory using a check code read from the memory;
An error correction step for correcting an error in the data when an error in the data is detected in the first error detection step;
A second error detection step of detecting an error in the data after error correction corrected in the error correction step;
When an error in the data after error correction is detected in the second error detection step, the data is abnormal. When no error in the data after error correction is detected, the error is corrected. A notification step for notifying
A read / write processing method comprising:
前記チェックコードは、CRCチェックコードおよびECCチェックコードであり、
前記第1,第2の誤り検出ステップでは、CRCによって誤りを検出し、
前記誤り訂正ステップでは、ECCによって1ビットのデータの誤りを訂正する請求項1に記載の読み書き処理方法。
The check code is a CRC check code and an ECC check code,
In the first and second error detection steps, an error is detected by CRC;
The read / write processing method according to claim 1, wherein in the error correction step, an error of 1-bit data is corrected by ECC.
前記メモリは、ユーザ領域および複数のミラー領域を有し、
前記書き込みステップでは、同一の前記データを、前記ユーザ領域および前記複数のミラー領域にそれぞれ書き込み、
前記通知ステップを第1の通知ステップとし、該第1の通知ステップでは、前記第2の誤り検出ステップで、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを通知せず、
前記第2の誤り検出ステップで、誤り訂正後のデータの誤りが検出されたときに、前記ユーザ領域から読み出されたデータと、前記複数のミラー領域からそれぞれ読み出されたミラーデータとに基づいて、ビット毎の多数決一致によって新たなデータを作成するステップと、
作成された新たなデータの誤りを検出する第3の誤り検出ステップと、
前記第3の誤り検出ステップで、前記新たなデータの誤りが検出されたときには、データが異常であることを、また、前記新たなデータの誤りが検出されなかったときには、誤りを訂正したことを、通知する第2の通知ステップと、
を更に含む請求項2に記載の読み書き処理方法。
The memory has a user area and a plurality of mirror areas,
In the writing step, the same data is written to the user area and the plurality of mirror areas,
The notification step is a first notification step. In the first notification step, when an error in data after error correction is detected in the second error detection step, it is notified that the data is abnormal. Without
Based on the data read from the user area and the mirror data respectively read from the plurality of mirror areas when an error in the data after error correction is detected in the second error detection step. A step of creating new data by the majority match for each bit,
A third error detection step for detecting an error in the created new data;
If an error in the new data is detected in the third error detection step, the data is abnormal. If no error in the new data is detected, the error is corrected. A second notification step to notify;
The read / write processing method according to claim 2, further comprising:
RFIDタグに対するデータの読み出しおよび書き込みを非接触で行う読み書き処理装置であって、
前記RFIDタグに書き込むべきデータおよび対応するチェックコードを、前記RFIDタグに送信する送信部と、
前記RFIDタグから読み出されたデータおよび対応するチェックコードを受信する受信部と、
データの誤りを検出する誤り検出部と、
データの誤りを訂正する誤り訂正部と、
上位装置に対してデータを送出する送出部とを備え、
前記誤り検出部は、前記チェックコードを用いて、前記読み出されたデータの誤りを検出する一方、前記誤り訂正部で訂正された誤り訂正後のデータの誤りを検出し、
前記誤り訂正部は、前記誤り検出部で、前記読み出されたデータの誤りが検出されたときに、データの誤りを訂正し、
前記送出部は、前記誤り検出部で、前記読み出されたデータの誤りが検出されなかったときには、該データを上位装置に送出し、前記誤り検出部で、誤り訂正後のデータの誤りが検出されなかったときには、誤り訂正後のデータと共に誤りを訂正したことを、前記上位装置に送出する一方、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出することを特徴とする読み書き処理装置。
A read / write processing device that reads and writes data to and from an RFID tag in a contactless manner,
A transmitter that transmits data to be written to the RFID tag and a corresponding check code to the RFID tag;
A receiving unit for receiving data read from the RFID tag and a corresponding check code;
An error detector for detecting data errors;
An error correction unit for correcting data errors;
A sending unit for sending data to the host device,
The error detection unit detects an error in the read data using the check code, while detecting an error in the data after error correction corrected by the error correction unit,
The error correction unit corrects an error in the data when the error detection unit detects an error in the read data;
The sending unit sends the data to a host device when the error detecting unit does not detect an error in the read data, and the error detecting unit detects an error in the data after error correction. If not, the fact that the error has been corrected together with the data after error correction is sent to the higher-level device. On the other hand, when the error detection unit detects an error in the data after error correction, the data is abnormal. Is sent to the host device.
前記チェックコードは、CRCチェックコードおよびECCチェックコードであり、
前記誤り検出部は、CRCによって誤りを検出し、
前記誤り訂正部は、ECCによって1ビットのデータの誤りを訂正する請求項4に記載の読み書き処理装置。
The check code is a CRC check code and an ECC check code,
The error detection unit detects an error by CRC,
The read / write processing device according to claim 4, wherein the error correction unit corrects an error of 1-bit data by ECC.
前記RFIDタグのメモリは、ユーザ領域、複数のミラー領域およびチェックコード領域を有し、前記送信部からの、同一の前記書き込むべきデータが、前記ユーザ領域および複数のミラー領域にそれぞれ書き込まれるとともに、前記チェックコードが、前記チェックコード領域に書き込まれ、
前記送出部は、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出せず、
前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときに、前記ユーザ領域から読み出されたデータと、前記複数のミラー領域からそれぞれ読み出されたミラーデータとに基づいて、ビット毎の多数決一致によって新たなデータを作成する多数決一致部を更に備え、
前記誤り検出部は、前記多数決一致部で作成したデータの誤りを検出し、
前記送出部は、前記誤り検出部で、前記作成したデータの誤りが検出されなかったときには、前記作成したデータと共に誤りを訂正したことを、上位装置に送出し、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出する請求項5に記載の読み書き処理装置。
The RFID tag memory has a user area, a plurality of mirror areas and a check code area, and the same data to be written from the transmission unit is written to the user area and the plurality of mirror areas, respectively. The check code is written in the check code area;
When the error detection unit detects an error in the data after error correction, the sending unit does not send the fact that the data is abnormal to the host device,
When an error in data after error correction is detected by the error detection unit, a bit is determined based on the data read from the user area and the mirror data read from the plurality of mirror areas, respectively. It further includes a majority decision matching unit that creates new data by majority match for each.
The error detection unit detects an error in the data created by the majority match unit,
When the error detecting unit does not detect an error in the created data, the sending unit sends out to the host device that the error has been corrected together with the created data, and the error detecting unit 6. The read / write processing device according to claim 5, wherein when a data error is detected, the fact that the data is abnormal is transmitted to the host device.
前記送出部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出せず、
前記誤り訂正部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときに、データの誤りを訂正し、
前記誤り検出部は、前記誤り訂正部で訂正された訂正後の前記作成したデータの誤りを検出し、
前記送出部は、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されなかったときには、前記訂正後の前記作成したデータと共に誤りを訂正したことを、上位装置に送出し、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されたときには、データが異常であることを、前記上位装置に送出する請求項6に記載の読み書き処理装置。
When the error detecting unit detects an error in the created data, the sending unit does not send the fact that the data is abnormal to the host device,
The error correction unit corrects a data error when the error detection unit detects an error in the created data,
The error detection unit detects an error in the created data after correction corrected by the error correction unit,
When the error detection unit does not detect an error in the created data after the correction, the sending unit sends the fact that the error is corrected together with the created data after the correction to the host device, The read / write processing device according to claim 6, wherein when the error detection unit detects an error in the created data after correction, the read / write processing device transmits that the data is abnormal to the host device.
データを格納するメモリを有し、かつ、読み書き処理装置との間で無線によってデータの伝送を行うRFIDタグであって、
前記メモリに、データおよび対応するチェックコードを書き込む書き込み部と、
前記メモリからデータおよび対応するチェックコードを読み出す読み出し部と、
データの誤りを検出する誤り検出部と、
データの誤りを訂正する誤り訂正部と、
前記読み書き処理装置に対してデータを送信する送信部とを備え、
前記誤り検出部は、前記チェックコードを用いて、前記読み出したデータの誤りを検出する一方、前記誤り訂正部で訂正された誤り訂正後のデータの誤りを検出し、
前記誤り訂正部は、前記誤り検出部で、前記読み出したデータの誤りが検出されたときに、データの誤りを訂正し、
前記送信部は、前記誤り検出部で、前記読み出したデータの誤りが検出されなかったときには、該データを前記読み書き処理装置に送信し、前記誤り検出部で、誤り訂正後のデータの誤りが検出されなかったときには、誤り訂正後のデータと共に誤りを訂正したことを、前記読み書き処理装置に送信する一方、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信することを特徴とするRFIDタグ。
An RFID tag having a memory for storing data and wirelessly transmitting data to and from a read / write processing device,
A writing unit for writing data and a corresponding check code in the memory;
A reading unit for reading data and a corresponding check code from the memory;
An error detector for detecting data errors;
An error correction unit for correcting data errors;
A transmission unit for transmitting data to the read / write processing device,
The error detection unit detects an error in the read data using the check code, while detecting an error in the data after error correction corrected by the error correction unit,
The error correction unit corrects a data error when the error detection unit detects an error in the read data;
When the error detection unit does not detect an error in the read data, the transmission unit transmits the data to the read / write processing device, and the error detection unit detects an error in the data after error correction. If not, the error correction data is transmitted to the read / write processing device together with the error corrected data. An RFID tag that transmits a message to the read / write processing device.
前記チェックコードは、CRCチェックコードおよびECCチェックコードであり、
前記誤り検出部は、CRCによって誤りを検出し、
前記誤り訂正部は、ECCによって1ビットのデータの誤りを訂正する請求項8に記載のRFIDタグ。
The check code is a CRC check code and an ECC check code,
The error detection unit detects an error by CRC,
The RFID tag according to claim 8, wherein the error correction unit corrects an error of 1-bit data by ECC.
前記メモリは、ユーザ領域、複数のミラー領域およびチェックコード領域を有し、
前記書き込み部は、同一の前記データを、前記ユーザ領域および複数のミラー領域にそれぞれ書き込むとともに、前記チェックコードを、前記チェックコード領域に書き込み、
前記送信部は、前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信せず、
前記誤り検出部で、誤り訂正後のデータの誤りが検出されたときに、前記ユーザ領域から読み出されたデータと、前記複数のミラー領域からそれぞれ読み出されたミラーデータとに基づいて、ビット毎の多数決一致によって新たなデータを作成する多数決一致部を更に備え、
前記誤り検出部は、前記多数決一致部で作成したデータの誤りを検出し、
前記送信部は、前記誤り検出部で、前記作成したデータの誤りが検出されなかったときには、前記作成したデータと共に誤りを訂正したことを、前記読み書き処理装置に送信し、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信する請求項9に記載のRFIDタグ。
The memory has a user area, a plurality of mirror areas and a check code area,
The writing unit writes the same data to the user area and a plurality of mirror areas, and writes the check code to the check code area.
When the error detection unit detects an error in the data after error correction, the transmission unit does not transmit that the data is abnormal to the read / write processing device,
When an error in data after error correction is detected by the error detection unit, a bit is determined based on the data read from the user area and the mirror data read from the plurality of mirror areas, respectively. It further comprises a majority decision matching unit that creates new data by majority decision for each.
The error detection unit detects an error in the data created by the majority match unit;
When the error detection unit does not detect an error in the created data, the transmission unit transmits an error correction together with the created data to the read / write processing device, and the error detection unit The RFID tag according to claim 9, wherein when an error in the created data is detected, the fact that the data is abnormal is transmitted to the read / write processing device.
前記送信部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信せず、
前記誤り訂正部は、前記誤り検出部で、前記作成したデータの誤りが検出されたときに、データの誤りを訂正し、
前記誤り検出部は、前記誤り訂正部で訂正された訂正後の前記作成したデータの誤りを検出し、
前記送出部は、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されなかったときには、前記訂正後の前記作成したデータと共に誤りを訂正したことを、前記読み書き処理装置に送信し、前記誤り検出部で、前記訂正後の前記作成したデータの誤りが検出されたときには、データが異常であることを、前記読み書き処理装置に送信する請求項10に記載のRFIDタグ。
When the error detection unit detects an error in the created data, the transmission unit does not transmit that the data is abnormal to the read / write processing device,
The error correction unit corrects a data error when the error detection unit detects an error in the created data,
The error detection unit detects an error in the created data after correction corrected by the error correction unit,
When the error detection unit does not detect an error in the created data after the correction, the sending unit transmits to the read / write processing device that the error is corrected together with the created data after the correction. The RFID tag according to claim 10, wherein when the error detection unit detects an error in the created data after correction, the RFID tag transmits to the read / write processing device that the data is abnormal.
JP2007087947A 2007-03-29 2007-03-29 Read / write processing method, read / write processing device, and RFID tag Active JP5092495B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007087947A JP5092495B2 (en) 2007-03-29 2007-03-29 Read / write processing method, read / write processing device, and RFID tag

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007087947A JP5092495B2 (en) 2007-03-29 2007-03-29 Read / write processing method, read / write processing device, and RFID tag

Publications (2)

Publication Number Publication Date
JP2008250426A true JP2008250426A (en) 2008-10-16
JP5092495B2 JP5092495B2 (en) 2012-12-05

Family

ID=39975339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007087947A Active JP5092495B2 (en) 2007-03-29 2007-03-29 Read / write processing method, read / write processing device, and RFID tag

Country Status (1)

Country Link
JP (1) JP5092495B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011037191A1 (en) * 2009-09-24 2011-03-31 株式会社テララコード研究所 Rfid tag, tag reader/writer, data management system and data management method
JP2012068927A (en) * 2010-09-24 2012-04-05 Terrara Code Research Institute Inc Data management system, data management method, rfid tag, and tag reader/writer
JP2015026211A (en) * 2013-07-25 2015-02-05 任天堂株式会社 Information processing device, information processing system, information processing method, and computer program
JP2017215637A (en) * 2016-05-30 2017-12-07 ローム株式会社 Data holding device and data holding system
US10380475B2 (en) 2017-04-14 2019-08-13 Nxp B.V. RFID integrated circuit
CN112101050A (en) * 2020-08-28 2020-12-18 智汇芯联(厦门)微电子有限公司 RFID tag chip write-in verification method and tag state machine

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63298777A (en) * 1987-05-28 1988-12-06 Nippon Telegr & Teleph Corp <Ntt> Correction system for error detection
JP2006072426A (en) * 2004-08-31 2006-03-16 Nec Corp Wireless ic tag, information processing system, wireless ic tag control method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63298777A (en) * 1987-05-28 1988-12-06 Nippon Telegr & Teleph Corp <Ntt> Correction system for error detection
JP2006072426A (en) * 2004-08-31 2006-03-16 Nec Corp Wireless ic tag, information processing system, wireless ic tag control method, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011037191A1 (en) * 2009-09-24 2011-03-31 株式会社テララコード研究所 Rfid tag, tag reader/writer, data management system and data management method
JP2011090670A (en) * 2009-09-24 2011-05-06 Terrara Code Research Institute Inc Rfid tag, tag reader/writer, data management system and data management method
JP2012068927A (en) * 2010-09-24 2012-04-05 Terrara Code Research Institute Inc Data management system, data management method, rfid tag, and tag reader/writer
JP2015026211A (en) * 2013-07-25 2015-02-05 任天堂株式会社 Information processing device, information processing system, information processing method, and computer program
US10052553B2 (en) 2013-07-25 2018-08-21 Nintendo Co., Ltd. Information processing apparatus, information processing system, information processing method, and recording medium
JP2017215637A (en) * 2016-05-30 2017-12-07 ローム株式会社 Data holding device and data holding system
US10380475B2 (en) 2017-04-14 2019-08-13 Nxp B.V. RFID integrated circuit
CN112101050A (en) * 2020-08-28 2020-12-18 智汇芯联(厦门)微电子有限公司 RFID tag chip write-in verification method and tag state machine

Also Published As

Publication number Publication date
JP5092495B2 (en) 2012-12-05

Similar Documents

Publication Publication Date Title
JP5092495B2 (en) Read / write processing method, read / write processing device, and RFID tag
JP4873868B2 (en) Passive RFID semiconductor device, IC tag, IC tag control method, and communication method
TWI332632B (en) Radio frequency identification tags capable of embedding receiver signal strength indications
US7717349B2 (en) Semiconductor device for IC tag, IC tag and control method for IC tag for detecting and executing command from radio wave
US7468668B2 (en) Semiconductor device for IC tag, IC tag, and control method for IC tag for detecting and executing command from radio wave
WO2011009768A2 (en) A method and reader for reading tag data a radio frequency identification system
US20070237087A1 (en) Communication medium, communication medium processing apparatus, and communication medium processing system
US9940489B2 (en) Radiofrequency transponder circuit
US20120068831A1 (en) Wireless tag writing/reading apparatus and method by the same
CN116935940A (en) Error correction code verification
JP2015060409A (en) Ic card, portable electronic device, and ic card processing device
US8063748B2 (en) Radio IC tag communication system
JP3568772B2 (en) Non-contact data transmission / reception device
JP2008310596A (en) Portable electronic equipment and control method for potable electronic equipment
CN110083478B (en) Data recovery method, data recovery system and solid state disk
JP6835689B2 (en) RFID reader / writer device, error detection program and error detection method
JPH09148971A (en) Moving body discriminating device
US10360415B2 (en) Semiconductor memory having radio communication function and application control method
JP2007310590A (en) Radio tag system, radio tag data writing method, radio tag reader/writer device and radio tag
US20180270089A1 (en) Ic card, portable electronic device, program, processing apparatus, and processing system
JP2008276572A (en) Non-contact ic card
JP2006280029A (en) Cable obstruct specifying circuit
US10055281B2 (en) Semiconductor communication device, communication system, and communication method
JP2016066337A (en) Information processor, storage device, and information processing system
CN115148274A (en) Semiconductor device and semiconductor system for testing error correction circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120329

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120403

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120619

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120801

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: 20120821

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: 20120903

R150 Certificate of patent or registration of utility model

Ref document number: 5092495

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150928

Year of fee payment: 3