JP2020021117A - Rfid reader/writer, reading control method and reading method control program - Google Patents

Rfid reader/writer, reading control method and reading method control program Download PDF

Info

Publication number
JP2020021117A
JP2020021117A JP2018142181A JP2018142181A JP2020021117A JP 2020021117 A JP2020021117 A JP 2020021117A JP 2018142181 A JP2018142181 A JP 2018142181A JP 2018142181 A JP2018142181 A JP 2018142181A JP 2020021117 A JP2020021117 A JP 2020021117A
Authority
JP
Japan
Prior art keywords
command
rfid tag
reading
writer
rfid
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
JP2018142181A
Other languages
Japanese (ja)
Other versions
JP6993306B2 (en
Inventor
宮澤 秀夫
Hideo Miyazawa
秀夫 宮澤
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.)
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Frontech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Frontech Ltd filed Critical Fujitsu Frontech Ltd
Priority to JP2018142181A priority Critical patent/JP6993306B2/en
Publication of JP2020021117A publication Critical patent/JP2020021117A/en
Application granted granted Critical
Publication of JP6993306B2 publication Critical patent/JP6993306B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To prevent an RFID reader/writer from getting into a loop when reading an RFID tag by anti-collision processing.SOLUTION: An RFID reader/writer 38 that reads an RFID tag 400 by anti-collision processing identifying the plurality of RFID tags 400 with each other using random number includes a command transmission and reception unit 201 that transmits QueryAdjust command to the RFID tag 400 as a specified control command when reading the RFID tag 400, a transmission number counting unit 202 that counts a transmission number of the QueryAdjust command transmitted by the command transmission and reception unit 201, and a reading end unit 203 that ends reading the RFID tag 400 according to the transmission number of the QueryAdjust command counted by the transmission number counting unit 202.SELECTED DRAWING: Figure 4

Description

本発明は、RFIDリーダライタ、読取制御方法および読取方法制御プログラムに関する。   The present invention relates to an RFID reader / writer, a reading control method, and a reading method control program.

近年、スーパーマーケット、コンビニエンスストア等の小売店では、RFID(radio frequency identifier)リーダライタを備えたPOS(Point Of Sale)端末が普及し始めている。このようなPOS端末は、商品に付されたRFIDタグに含まれるEPC(Electric Product Code)を一括で読み取り商品の登録を行う。   In recent years, POS (Point Of Sale) terminals provided with RFID (radio frequency identifier) reader / writers have begun to spread in retail stores such as supermarkets and convenience stores. Such a POS terminal collectively reads an EPC (Electric Product Code) included in an RFID tag attached to a product and registers the product.

POS端末において、RFIDタグとの交信制御にアンチコリジョン方式を用いることで複数のRFIDタグからデータを一括読取可能な制御装置の技術の一例が開示されている(例えば、特許文献1参照)。   In a POS terminal, an example of a control device technology capable of collectively reading data from a plurality of RFID tags by using an anti-collision method for controlling communication with the RFID tags is disclosed (for example, see Patent Document 1).

特開2007−72681号公報JP 2007-72681 A

しかしながら、アンチコリジョン処理においては、RFIDリーダライタは、RFIDタグの読み取りの際にRFIDタグへRFIDタグの制御コマンドを送信するが、ノイズが多く通信環境が悪い場合には、RFIDリーダライタは、RFIDタグへ送信した制御コマンドに対する応答を正常に受信できない場合がある。この場合、RFIDリーダライタは、制御コマンドを再度送信する処理と、RFIDタグからの制御コマンドに対する応答処理とが繰り返し実行される。その結果、RFIDリーダライタは制御コマンド送信と、制御コマンドに対する応答処理のループに嵌まりRFIDタグの読み取りが終了しなくなる場合がある。このような場合には、RFIDリーダライタのオペレータは電源を落としたり、強制終了したりする必要があり、リスタートするのに時間がかかり不便を生じていた。   However, in the anti-collision process, the RFID reader / writer transmits a control command of the RFID tag to the RFID tag when reading the RFID tag. In some cases, a response to the control command sent to the tag cannot be received normally. In this case, the RFID reader / writer repeatedly executes the process of transmitting the control command again and the process of responding to the control command from the RFID tag. As a result, the RFID reader / writer may enter a control command transmission and response processing loop to the control command, and the reading of the RFID tag may not be completed. In such a case, it is necessary for the operator of the RFID reader / writer to turn off the power or forcibly terminate the operation, and it takes a long time to restart the operation, which causes inconvenience.

本発明は、上記課題に鑑み、アンチコリジョン処理によりRFIDタグの読み取りを行う際に、RFIDリーダライタがループに嵌まることを未然に防ぐことを目的とする。   The present invention has been made in view of the above problems, and has as its object to prevent an RFID reader / writer from being fitted into a loop when reading an RFID tag by anti-collision processing.

本発明の一態様によれば、乱数を用いて複数のRFIDタグを互いに識別するアンチコリジョン処理によりRFIDタグの読み取りを行うRFIDリーダライタであって、前記RFIDタグの読み取りの際に前記RFIDタグへ前記RFIDタグの制御コマンドを送信するコマンド送受信部と、前記コマンド送受信部により送信された前記制御コマンドのうち、特定の制御コマンドの送信回数を計数する送信回数計数部と、前記送信回数計数部により計数された前記特定の制御コマンドの送信回数に応じて、前記RFIDタグの読み取りを終了する読取終了部と、を備えることを特徴とする。   According to one embodiment of the present invention, there is provided an RFID reader / writer that reads an RFID tag by an anti-collision process for identifying a plurality of RFID tags from each other by using a random number, and reads the RFID tag when reading the RFID tag. A command transmission / reception unit that transmits the control command of the RFID tag, a transmission frequency counting unit that counts the number of transmissions of a specific control command among the control commands transmitted by the command transmission / reception unit, and a transmission frequency counting unit. A reading end unit that ends reading of the RFID tag in accordance with the counted number of transmissions of the specific control command.

また、本発明の一態様によれば、乱数を用いて複数のRFIDタグを互いに識別するアンチコリジョン処理によりRFIDタグの読み取りを行うRFIDリーダライタの読取制御方法であって、前記RFIDリーダライタが、前記RFIDタグの読み取りの際に前記RFIDタグへ特定の制御コマンドを送信し、前記送信された前記特定の制御コマンドの送信回数を計数し、前記計数された前記特定の制御コマンドの送信回数に応じて、前記RFIDタグの読み取りを終了することを特徴とする。   According to one aspect of the present invention, there is provided a reading control method for an RFID reader / writer that reads an RFID tag by anti-collision processing for identifying a plurality of RFID tags from each other using a random number, wherein the RFID reader / writer includes: At the time of reading the RFID tag, transmitting a specific control command to the RFID tag, counting the number of transmissions of the transmitted specific control command, according to the counted number of transmissions of the specific control command Reading of the RFID tag is terminated.

また、本発明の一態様によれば、乱数を用いて複数のRFIDタグを互いに識別するアンチコリジョン処理によりRFIDタグの読み取りを行うRFIDリーダライタに実行させるための読取方法制御プログラムであって、コンピュータに、前記RFIDタグの読み取りの際に前記RFIDタグへ特定の制御コマンドを送信する処理、前記送信された前記特定の制御コマンドの送信回数を計数する処理、前記計数された前記特定の制御コマンドの送信回数に応じて、前記RFIDタグの読み取りを終了する処理、を実行させることを特徴とする。   According to one embodiment of the present invention, there is provided a reading method control program for causing an RFID reader / writer that reads an RFID tag by anti-collision processing to identify a plurality of RFID tags from each other using a random number, the computer comprising: A process of transmitting a specific control command to the RFID tag when reading the RFID tag, a process of counting the number of times the specific control command is transmitted, and a process of transmitting the counted specific control command. Terminating the reading of the RFID tag according to the number of transmissions.

本発明の一態様によれば、アンチコリジョン処理によりRFIDタグの読み取りを行う際に、RFIDリーダライタがループに嵌まることを未然に防ぐことができる。   According to one embodiment of the present invention, when reading an RFID tag by anti-collision processing, it is possible to prevent an RFID reader / writer from being fitted into a loop.

本発明の第1の実施形態に係るRFIDリーダライタ38を有するPOS端末10のハードウェア構成の一例を示す図である。FIG. 2 is a diagram illustrating an example of a hardware configuration of a POS terminal 10 having an RFID reader / writer 38 according to the first embodiment of the present invention. RFIDタグ400に書き込まれたEPCの一例を示す図である。FIG. 4 is a diagram illustrating an example of EPC written on an RFID tag 400. 本発明の実施形態のRFIDリーダライタのハードウェア構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of a hardware configuration of an RFID reader / writer according to an embodiment of the present invention. 第1の実施形態に係るRFIDリーダライタ38の機能構成の一例を示す図である。FIG. 2 is a diagram illustrating an example of a functional configuration of an RFID reader / writer 38 according to the first embodiment. 第1の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の概要を示す図である。FIG. 4 is a diagram illustrating an outline of an anti-collision process executed by the RFID reader / writer 38 according to the first embodiment. 第1の実施形態に係るRFIDリーダライタ38が正常にEPCを受信できない場合のアンチコリジョン処理の概要を示す図である。FIG. 4 is a diagram illustrating an outline of an anti-collision process when the RFID reader / writer 38 according to the first embodiment cannot normally receive EPC. 第1の実施形態に係るRFIDリーダライタを有するPOS端末が実行する商品読取処理のフローチャートである。5 is a flowchart of a merchandise reading process executed by the POS terminal having the RFID reader / writer according to the first embodiment. 第1の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の動作の一例を示すフローチャートである。6 is a flowchart illustrating an example of an operation of an anti-collision process performed by the RFID reader / writer 38 according to the first embodiment. 第2の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の動作の一例を示すフローチャートである。9 is a flowchart illustrating an example of an operation of an anti-collision process performed by an RFID reader / writer 38 according to a second embodiment. 第3の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の動作の一例を示すフローチャートである。15 is a flowchart illustrating an example of an operation of an anti-collision process performed by an RFID reader / writer 38 according to a third embodiment.

<第1の実施形態>
以下に本発明の第1の実施形態について図面を参照しながら詳細に説明する。図1は、本発明の第1の実施形態に係るRFIDリーダライタ38を有するPOS端末10のハードウェア構成の一例を示す図である。
<First embodiment>
Hereinafter, a first embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram illustrating an example of a hardware configuration of a POS terminal 10 having an RFID reader / writer 38 according to the first embodiment of the present invention.

POS端末10は、制御ユニット31、自動釣銭機32、自動釣札機33、キャッシュドロア34、キーボード35、タッチパネル37、ディスプレイ36、RFIDリーダライタ38、可搬型記録媒体39を有する。   The POS terminal 10 includes a control unit 31, an automatic change machine 32, an automatic change machine 33, a cash drawer 34, a keyboard 35, a touch panel 37, a display 36, an RFID reader / writer 38, and a portable recording medium 39.

制御ユニット31は、POS端末10を統括的に制御するコンピュータである。自動釣銭機32は、顧客から受け取った硬貨の入金と、釣銭の出金とを行う。自動釣札機33は、顧客から受け取った紙幣の入金と、釣札の出金とを行う。キャッシュドロア34は、硬貨および紙幣を収納する収納庫である。   The control unit 31 is a computer that controls the POS terminal 10 overall. The automatic change machine 32 deposits coins received from customers and dispenses change. The automatic bill machine 33 deposits bills received from customers and dispenses bills. The cash drawer 34 is a storage for storing coins and bills.

キーボード35は、ディスプレイ36に表示されたGUIを操作するための入力装置である。ディスプレイ36は、取引作業を行うための所定のGUI(Graphical User Interface)を表示する。ディスプレイ36は、例えば、液晶ディスプレイである。ディスプレイ36は、タッチパネル37の下層に位置している。ディスプレイ36の表示する画像は、タッチパネル37を透過して、オペレータから視認可能である。オペレータは、ディスプレイ36によって表示された画像を見ながら、タッチパネル37に対するタッチ操作を行うことができる。商品コードの入力結果は、ディスプレイ36に表示されて、オペレータが商品コードの入力結果を確認することができる。   The keyboard 35 is an input device for operating a GUI displayed on the display 36. The display 36 displays a predetermined GUI (Graphical User Interface) for performing a transaction operation. The display 36 is, for example, a liquid crystal display. The display 36 is located below the touch panel 37. The image displayed on the display 36 is visible through the touch panel 37 and visible to the operator. The operator can perform a touch operation on the touch panel 37 while viewing the image displayed on the display 36. The input result of the product code is displayed on the display 36 so that the operator can confirm the input result of the product code.

RFIDリーダライタ38は、商品に付されたRFIDタグ400から無線通信によってRFIDタグ400内のバーコード(商品アイテムコード)を含む情報を読み取る装置である。RFIDリーダライタ38は、RFIDタグ400に情報を記録可能なRFIDリーダライタ装置であってもよい。RFIDタグ400はRFIDタグ情報を記憶するICタグであり、EPC(Electronic Product Code)が記憶されている。EPCには、バーコードデータが含まれる。RFIDタグ情報はRFIDタグ400に記録された情報である。RFIDリーダライタ38は据え置きタイプであってもよいし、ハンディタイプであってもよい。RFIDリーダライタ38は、読み取ったバーコード(商品アイテムコード)を上位装置であるPOS端末10の制御ユニット31へ通知する。   The RFID reader / writer 38 is a device that reads information including a barcode (product item code) in the RFID tag 400 from the RFID tag 400 attached to the product by wireless communication. The RFID reader / writer 38 may be an RFID reader / writer capable of recording information on the RFID tag 400. The RFID tag 400 is an IC tag that stores RFID tag information, and stores an EPC (Electronic Product Code). The EPC includes barcode data. The RFID tag information is information recorded on the RFID tag 400. The RFID reader / writer 38 may be a stationary type or a handy type. The RFID reader / writer 38 notifies the read barcode (commodity item code) to the control unit 31 of the POS terminal 10 which is a host device.

POS端末10では、制御ユニット31に各種入出力装置が接続される。制御ユニット31は、POS制御部51、記憶部52、グラフィック処理装置53、入出力インタフェース54、通信インタフェース55を有する。   In the POS terminal 10, various input / output devices are connected to the control unit 31. The control unit 31 has a POS control unit 51, a storage unit 52, a graphic processing device 53, an input / output interface 54, and a communication interface 55.

POS制御部51は、POS端末10全体を統括的に制御するもので、プログラムを読込んで制御処理を実行するCPU(Central Processing Unit)(不図示)を有する。POS制御部51には、バス56を介して記憶部52、グラフィック処理装置53、入出力インタフェース54、通信インタフェース55が接続されている。   The POS control unit 51 controls the entire POS terminal 10 and has a CPU (Central Processing Unit) (not shown) that reads a program and executes a control process. The storage unit 52, the graphic processing device 53, the input / output interface 54, and the communication interface 55 are connected to the POS control unit 51 via a bus 56.

記憶部52は、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)などを有する。記憶部52は、POS制御部51が実行するプログラム、表示画面データ、その他各種データを記憶する。また、記憶部52は、POS制御部51がプログラムを実行する際の作業領域を提供する。   The storage unit 52 includes a random access memory (RAM), a read only memory (ROM), a hard disk drive (HDD), and the like. The storage unit 52 stores a program executed by the POS control unit 51, display screen data, and other various data. The storage unit 52 provides a work area when the POS control unit 51 executes a program.

グラフィック処理装置53には、ディスプレイ36が接続されている。グラフィック処理装置53はPOS制御部51からの命令に応じて、画像をディスプレイ36の画面に表示させる。   The display 36 is connected to the graphic processing device 53. The graphic processing device 53 displays an image on the screen of the display 36 in response to a command from the POS control unit 51.

入出力インタフェース54には、自動釣銭機32、自動釣札機33、キャッシュドロア34、キーボード35、タッチパネル37、RFIDリーダライタ38、可搬型記録媒体39が接続されている。また、入出力インタフェース54は、可搬型記録媒体39への情報の書込み、並びに、可搬型記録媒体39からの情報の読出しが可能な可搬型記録媒体インタフェース(不図示)と接続可能になっている。入出力インタフェース54は、自動釣銭機32、自動釣札機33、キャッシュドロア34、キーボード35、タッチパネル37、RFIDリーダライタ38、可搬型記録媒体39からそれぞれ送られてくる信号をバス56を介してPOS制御部51に送信する。   The input / output interface 54 is connected to the automatic change machine 32, the automatic change machine 33, the cash drawer 34, the keyboard 35, the touch panel 37, the RFID reader / writer 38, and the portable recording medium 39. Further, the input / output interface 54 is connectable to a portable recording medium interface (not shown) capable of writing information to the portable recording medium 39 and reading information from the portable recording medium 39. . The input / output interface 54 receives signals transmitted from the automatic change machine 32, the automatic change machine 33, the cash drawer 34, the keyboard 35, the touch panel 37, the RFID reader / writer 38, and the portable recording medium 39 via the bus 56. The data is transmitted to the POS control unit 51.

通信インタフェース55は、例えば、有線または無線LAN(Local Area Network)により外部サーバ300と接続されている。通信インタフェース55は、商品マスタ等が格納された外部サーバ300との間でデータの送受信を行う。   The communication interface 55 is connected to the external server 300 via a wired or wireless LAN (Local Area Network), for example. The communication interface 55 transmits and receives data to and from the external server 300 in which a product master or the like is stored.

RFIDタグ400に書き込まれたEPCの一例を図2に示す。EPCは、RFIDタグ400に書き込まれた情報であり、図2に示すEPCは96ビットの場合のものである。EPCには、ヘッダ、フィルタ、パーティション、GS1事業者コード、商品アイテムコード、シリアル番号の情報が含まれる。   FIG. 2 shows an example of the EPC written on the RFID tag 400. The EPC is information written on the RFID tag 400, and the EPC shown in FIG. 2 is for 96 bits. The EPC includes information on a header, a filter, a partition, a GS1 carrier code, a product item code, and a serial number.

また、図示しないが、RFIDタグ400は、POS端末10のRFIDリーダライタ38との無線通信で使用される4つの機能の異なるセッション(番号S0,S1,S2,S3)を備え、各セッションには、それぞれ1つの独立したインベントリ済フラグを有している。各インベントリ済フラグは公知の技術を採用することができるため詳細な説明については省略するが、1回のインベントリラウンドと呼ばれるコマンドシーケンスのやりとりでは、4つのセッションのうち1つのみが機能する。インベントリ済フラグは、AおよびBの2つの値をとることができ、Aの値は、RFIDリーダライタ38によるQueryコマンド(タグ探索信号)に応答していない未検出の状態を表し、Bの値は、Queryコマンド(タグ探索信号)に応答して反応したときの検出済の状態を表している。なお、第1の実施形態においては、Aの値は、RFIDリーダライタ38によるQueryコマンド(タグ探索信号)に応答していない未検出の状態を表し、Bの値は、Queryコマンド(タグ探索信号)に応答して反応したときの検出済の状態を表しているがこの限りではなく、その逆の状態を表したものであってもよい。   Although not shown, the RFID tag 400 includes four sessions (numbers S0, S1, S2, and S3) having four different functions used for wireless communication with the RFID reader / writer 38 of the POS terminal 10. , Each having one independent inventory flag. Since a well-known technique can be employed for each of the inventoried flags, a detailed description thereof will be omitted, but only one of the four sessions functions in the exchange of a command sequence called one inventory round. The inventoried flag can take two values, A and B, where the value of A represents an undetected state that has not responded to the Query command (tag search signal) by the RFID reader / writer 38, and the value of B Indicates a detected state when a response is made in response to a Query command (tag search signal). In the first embodiment, the value of A indicates an undetected state in which the RFID reader / writer 38 has not responded to the Query command (tag search signal), and the value of B indicates the Query command (tag search signal). ) Indicates the detected state when a reaction has been made in response to (3), but the present invention is not limited to this, and may represent the opposite state.

次に、本発明の実施形態のRFIDリーダライタ38のハードウェア構成の一例について図3を参照して説明する。RFIDリーダライタ38は、RFIDリーダライタ制御部101、記憶部102、通信インタフェース103を有する。RFIDリーダライタ38は図3に記載の構成以外の回路構成を備えていてもよい。   Next, an example of a hardware configuration of the RFID reader / writer 38 according to the embodiment of the present invention will be described with reference to FIG. The RFID reader / writer 38 has an RFID reader / writer control unit 101, a storage unit 102, and a communication interface 103. The RFID reader / writer 38 may have a circuit configuration other than the configuration illustrated in FIG.

RFIDリーダライタ制御部101は、RFIDリーダライタ38全体を統括的に制御するもので、プログラムを読込んで制御処理を実行するCPU(不図示)を有する。   The RFID reader / writer control unit 101 controls the entire RFID reader / writer 38 and has a CPU (not shown) that reads a program and executes a control process.

RFIDリーダライタ制御部101には、バス104を介して記憶部102と、通信インタフェース103が接続されている。記憶部102は、RAM、ROM、HDDなどを有する。記憶部102は、RFIDリーダライタ制御部101が実行するプログラム、その他各種データを記憶する。また、記憶部102は、RFIDリーダライタ制御部101がプログラムを実行する際の作業領域を提供する。通信インタフェース103は、アンテナを通じてRFIDタグ400とデータやコマンドの送受信を行うものである。   The storage unit 102 and the communication interface 103 are connected to the RFID reader / writer control unit 101 via the bus 104. The storage unit 102 has a RAM, a ROM, an HDD, and the like. The storage unit 102 stores a program executed by the RFID reader / writer control unit 101 and other various data. The storage unit 102 provides a work area when the RFID reader / writer control unit 101 executes a program. The communication interface 103 transmits and receives data and commands to and from the RFID tag 400 via an antenna.

次に、第1の実施形態に係るRFIDリーダライタ38の機能構成の一例について図4を参照して説明する。RFIDリーダライタ38のRFIDリーダライタ制御部101は、コマンド送受信部201、送信回数計数部202、読取終了部203、終了通知部204を有する。RFIDリーダライタ制御部101は、図4に示していない機能構成を備えていてもよい。   Next, an example of a functional configuration of the RFID reader / writer 38 according to the first embodiment will be described with reference to FIG. The RFID reader / writer control unit 101 of the RFID reader / writer 38 includes a command transmission / reception unit 201, a transmission count unit 202, a reading end unit 203, and an end notification unit 204. The RFID reader / writer control unit 101 may have a functional configuration not shown in FIG.

コマンド送受信部201は、アンチコリジョン処理の実施に伴って発生するRFIDタグ400の読み取りの際にRFIDタグ400へRFIDタグ400の制御コマンドを送信する。具体的には、コマンド送受信部201は、RFIDタグ400にQueryコマンドを送信後、特定の制御コマンドとしてQueryAdjustコマンドを繰り返し送信する。   The command transmission / reception unit 201 transmits a control command of the RFID tag 400 to the RFID tag 400 when reading the RFID tag 400 that occurs with the execution of the anti-collision process. Specifically, after transmitting the Query command to the RFID tag 400, the command transmitting / receiving unit 201 repeatedly transmits a QueryAdjust command as a specific control command.

Queryコマンドは、後述のアンチコリジョン処理の開始時にRFIDリーダライタ38がRFIDタグ400へ送信するタグ探索信号である。QueryAdjustコマンドは、RFIDリーダライタ38との間ですでに通信を終えたRFIDタグ400以外のRFIDタグ400へのQueryコマンドとして送信される信号である。   The Query command is a tag search signal transmitted from the RFID reader / writer 38 to the RFID tag 400 at the start of an anti-collision process described later. The QueryAdjust command is a signal transmitted as a Query command to the RFID tags 400 other than the RFID tag 400 that has already completed communication with the RFID reader / writer 38.

送信回数計数部202は、コマンド送受信部201により送信された制御コマンドのうち、特定の制御コマンドの送信回数を計数する。具体的には、送信回数計数部202は、コマンド送受信部201により送信されたQueryAdjustコマンドの送信回数を計数する。   The transmission number counting unit 202 counts the number of transmissions of a specific control command among the control commands transmitted by the command transmission / reception unit 201. Specifically, the transmission number counting unit 202 counts the number of times the QueryAdjust command transmitted by the command transmission / reception unit 201 is transmitted.

読取終了部203は、送信回数計数部202により計数された特定の制御コマンドの送信回数に応じて、RFIDタグ400の読み取りを終了する。具体的には、読取終了部は、送信回数計数部202により計数されたQueryAdjustコマンドの送信回数に応じてRFIDタグ400の読み取りを終了する。   The reading end unit 203 ends reading of the RFID tag 400 according to the number of transmissions of the specific control command counted by the transmission number counting unit 202. Specifically, the reading end unit ends reading of the RFID tag 400 according to the number of times of transmission of the QueryAdjust command counted by the transmission number counting unit 202.

終了通知部204は、読取終了部203によりRFIDタグ400の読み取りを終了する場合には、上位装置であるPOS端末10にRFIDタグ400の読み取りを終了することを通知する。   When the reading of the RFID tag 400 is ended by the reading end unit 203, the end notifying unit 204 notifies the POS terminal 10, which is the host device, that the reading of the RFID tag 400 is ended.

次に、第1の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の概要について図5を参照して説明する。   Next, an outline of an anti-collision process executed by the RFID reader / writer 38 according to the first embodiment will be described with reference to FIG.

POS端末10から商品読取開始の指示を受けると、RFIDリーダライタ38は、RFIDタグ400に対し読み取り対象のタグIDを識別するSelectコマンドを送信する(ステップS11)。また、RFIDリーダライタ38は、RFIDタグ400を探索するためのQueryコマンド(タグ探索信号)を送信する(ステップS12)。   Upon receiving an instruction to start reading a product from the POS terminal 10, the RFID reader / writer 38 transmits a Select command for identifying the tag ID to be read to the RFID tag 400 (step S11). Further, the RFID reader / writer 38 transmits a Query command (tag search signal) for searching for the RFID tag 400 (step S12).

RFIDリーダライタ38からQueryコマンドを受信したRFIDタグ400は、RN16をRFIDリーダライタ38に送信する(ステップS13)。このRN16は、RFIDタグ400がRFIDリーダライタ38との間で通信を行う際にRFIDタグ400自身を識別するのに使用する16ビットの乱数である。   The RFID tag 400 that has received the Query command from the RFID reader / writer 38 transmits the RN 16 to the RFID reader / writer 38 (step S13). The RN 16 is a 16-bit random number used to identify the RFID tag 400 itself when the RFID tag 400 communicates with the RFID reader / writer 38.

RFIDリーダライタ38は、RFIDタグ400からRN16を受信すると、応答としてそのRN16を含むACKをRFIDタグ400へ送信する(ステップS14)。RFIDタグ400は、RFIDリーダライタ38からACKを受信すると、PC(Protocol Control)、EPC、CRC16(エラー検出信号:Cyclic Redundancy Check 16)をRFIDリーダライタ38へ送信する(ステップS15)。CRC16は、データ伝送の誤りを検出するために付加する符号である。   Upon receiving the RN 16 from the RFID tag 400, the RFID reader / writer 38 transmits an ACK including the RN 16 to the RFID tag 400 as a response (step S14). Upon receiving the ACK from the RFID reader / writer 38, the RFID tag 400 transmits a PC (Protocol Control), EPC, and CRC 16 (error detection signal: Cyclic Redundancy Check 16) to the RFID reader / writer 38 (step S15). The CRC 16 is a code added to detect an error in data transmission.

そして、RFIDリーダライタ38は、ステップS14でACKを送信してから所定時間内にEPCを受信できた場合には、受信したEPCの応答信号として、QueryAdjustコマンドをRFIDタグ400へ送信し(ステップS16)、RN16を送信したRFIDタグ400以外のRFIDタグ400との間で再び通信を開始し、反応するRFIDタグ400がなくなるまでステップS13〜S16の処理を繰り返し実行する。   If the RFID reader / writer 38 can receive the EPC within a predetermined time after transmitting the ACK in step S14, the RFID reader / writer 38 transmits a QueryAdjust command to the RFID tag 400 as a response signal of the received EPC (step S16). ), The communication with the RFID tags 400 other than the RFID tag 400 that transmitted the RN 16 is started again, and the processing of steps S13 to S16 is repeatedly executed until there is no RFID tag 400 that reacts.

この場合、ステップS15においてEPCを送信し再びQueryAdjustコマンドを受信したRFIDタグ400は、インベントリ済フラグを「検出済」に設定しているので、その後RFIDリーダライタ38からQueryAdjustコマンドを繰り返し送信されても、反応することはない。検出済のRFIDタグ400が反応しなくなることにより、RFIDリーダライタ38は、検出済のRFIDタグの二度読みが防止されることになり、RFIDタグ400の読み取りを簡素化することができる。この結果、POS端末10における商品の登録を効率よく高速に行うことができるようになる。   In this case, since the RFID tag 400 that has transmitted the EPC in step S15 and received the QueryAdjust command again sets the inventory flag to “detected”, even if the RFID reader / writer 38 repeatedly transmits the QueryAdjust command thereafter, Will not react. Since the detected RFID tag 400 stops responding, the RFID reader / writer 38 is prevented from reading the detected RFID tag twice, and the reading of the RFID tag 400 can be simplified. As a result, it is possible to efficiently register goods at the POS terminal 10 at high speed.

通常は、このようにして、RFIDリーダライタ38とRFIDタグ400との間で通信が行われるが、ノイズが多く、通信環境が悪い場合には、図6に示すように、正常にRFIDタグからEPCを受信できない場合がある。図6は、第1の実施形態に係るRFIDリーダライタ38が正常にEPCを受信できない場合のアンチコリジョン処理の概要を示す図である。図6のステップS21〜ステップS24の処理については、図5のステップS11〜ステップS14の処理と同様であるため説明を省略する。   Normally, communication is performed between the RFID reader / writer 38 and the RFID tag 400 in this way. However, when there is much noise and the communication environment is poor, as shown in FIG. In some cases, EPC cannot be received. FIG. 6 is a diagram illustrating an outline of an anti-collision process when the RFID reader / writer 38 according to the first embodiment cannot normally receive EPC. The processing in steps S21 to S24 in FIG. 6 is the same as the processing in steps S11 to S14 in FIG.

ステップS24においてACKを送信してから所定時間待機しても、正常にRFIDタグ400からEPCを受信できない場合(ステップS25)には、RFIDリーダライタ38は、図5のステップS16で送信するQueryAdjustコマンドに代えて、NAKコマンドをRFIDタグ400へ送信する(ステップS26)。NAKコマンドは、EPCを正常に受信できないためRFIDリーダライタ38とRFIDタグ400との間でアンチコリジョン処理を継続して維持することをRFIDタグ400に指示するコマンドである。   If the EPC cannot be normally received from the RFID tag 400 even after waiting for a predetermined time after transmitting the ACK in step S24 (step S25), the RFID reader / writer 38 transmits the QueryAdjust command transmitted in step S16 in FIG. Is transmitted to the RFID tag 400 (step S26). The NAK command is a command for instructing the RFID tag 400 to continuously maintain the anti-collision process between the RFID reader / writer 38 and the RFID tag 400 because the EPC cannot be normally received.

NAKコマンドの送信後、RFIDリーダライタ38は、QueryAdjustコマンドを送信する(ステップS27)。RFIDリーダライタ38からQueryAdjustコマンドを受信したRFIDタグ400は、再びRN16をRFIDリーダライタ38に送信する(ステップS28)。RFIDリーダライタ38は、RFIDタグ400からRN16を受信すると、その応答としてのACKをRFIDタグ400へ送信する(ステップS29)。RFIDリーダライタ38からACKを受信すると、RFIDタグ400は、再度、PC、EPC、CRC16をRFIDリーダライタ38へ送信する(ステップS30)。   After transmitting the NAK command, the RFID reader / writer 38 transmits a QueryAdjust command (Step S27). The RFID tag 400 that has received the QueryAdjust command from the RFID reader / writer 38 transmits the RN 16 to the RFID reader / writer 38 again (step S28). Upon receiving the RN 16 from the RFID tag 400, the RFID reader / writer 38 transmits an ACK as a response to the RN 16 to the RFID tag 400 (step S29). Upon receiving the ACK from the RFID reader / writer 38, the RFID tag 400 transmits PC, EPC, and CRC16 to the RFID reader / writer 38 again (step S30).

そして、RFIDリーダライタ38は、ステップS29でACKを送信してから所定時間内に正常にEPCを受信できた場合には、受信したEPCの応答信号として、QueryAdjustコマンドをRFIDタグ400へ送信し(ステップS31)、ステップS28においてRN16を送信したRFIDタグ400以外のRFIDタグ400との間で再び通信を開始し、反応するRFIDタグ400がなくなるまでステップS28〜S31の処理を繰り返し実行する。   If the RFID reader / writer 38 has successfully received the EPC within a predetermined time after transmitting the ACK in step S29, the RFID reader / writer 38 transmits a QueryAdjust command to the RFID tag 400 as a response signal of the received EPC ( Step S31), the communication with the RFID tags 400 other than the RFID tag 400 that transmitted the RN 16 in step S28 is started again, and the processes of steps S28 to S31 are repeatedly executed until there is no RFID tag 400 that reacts.

次に、第1の実施形態に係るRFIDリーダライタ38を有するPOS端末10が実行する商品読取処理の動作の一例について図7を参照して説明する。図7は、第1の実施形態に係るRFIDリーダライタ38を有するPOS端末10が実行する商品読取処理のフローチャートである。   Next, an example of an operation of a commodity reading process performed by the POS terminal 10 having the RFID reader / writer 38 according to the first embodiment will be described with reference to FIG. FIG. 7 is a flowchart of the commodity reading process executed by the POS terminal 10 having the RFID reader / writer 38 according to the first embodiment.

はじめに、POS制御部51は、RFIDタグ400を付した商品をRFIDリーダライタ38上にセットするメッセージをディスプレイ36に表示する(ステップS101)。   First, the POS control unit 51 displays on the display 36 a message for setting a product to which the RFID tag 400 has been attached on the RFID reader / writer 38 (step S101).

POS制御部51は、POS端末10のオペレータのキーボード35の操作を通じて商品読取開始ボタンが押下されたか否かを判定する(ステップS102)。商品読取開始ボタンが押下されていない場合(ステップS102のNO)には、商品読取開始ボタンが押下されるまで処理は待機状態となる。   The POS control unit 51 determines whether or not the commodity reading start button has been pressed through the operation of the keyboard 35 by the operator of the POS terminal 10 (Step S102). If the commodity reading start button has not been pressed (NO in step S102), the process is in a standby state until the commodity reading start button is pressed.

商品読取開始ボタンが押下された場合(ステップS102のYES)には、RFIDリーダライタ制御部101は、後述のアンチコリジョン処理を行う(ステップS103)。POS制御部51は、アンチコリジョン処理において強制終了の通知があったか否かを判定する(ステップS104)。強制終了の通知があった場合(ステップS104のYES)には、POS制御部51は、商品の配置変更を促すメッセージをディスプレイ36に表示する(ステップS105)。強制終了の通知があった場合には、RFIDタグ400がRFIDリーダライタ38から離れた位置に置かれたりしていて、RFIDタグ400の読み取りがうまくできない場合があるので、その対処方法をメッセージとして表示する。そして、処理はステップS102に戻り、全ての商品のRFIDタグ400の読み取りが終わるまで、ステップS102〜ステップS105の処理が繰り返し実行される。強制終了の通知がなかった場合(ステップS104のNO)には、POS制御部51は、会計処理を行い(ステップS106)、商品読取処理を終了する。   When the commodity reading start button is pressed (YES in step S102), the RFID reader / writer control unit 101 performs an anti-collision process described later (step S103). The POS control unit 51 determines whether or not there has been a notice of forced termination in the anti-collision process (Step S104). If there is a notification of the forced termination (YES in step S104), the POS control unit 51 displays a message prompting a change in the arrangement of the products on the display 36 (step S105). When the forced termination notification is received, the RFID tag 400 may be placed at a position distant from the RFID reader / writer 38, and reading of the RFID tag 400 may not be performed properly. indicate. Then, the process returns to step S102, and the processes of steps S102 to S105 are repeatedly executed until the reading of the RFID tags 400 of all the commodities is completed. If there is no notification of the forced termination (NO in step S104), the POS control unit 51 performs an accounting process (step S106) and ends the product reading process.

次に、第1の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の動作の一例について、図8のフローチャートを参照して説明する。   Next, an example of the operation of the anti-collision process executed by the RFID reader / writer 38 according to the first embodiment will be described with reference to the flowchart in FIG.

はじめに、RFIDリーダライタ制御部101は、初期値としてQ=4、C=0.3、QueryAdjustコマンドの送信回数(以下、「QA回数」とも呼ぶ)=0にセットする(ステップS201)。Qは、RFIDタグ400が発生する乱数の範囲を指定するパラメータである。EPCの仕様により、乱数の範囲は、0〜2−1で表される。したがって、例えばQ=4にセットした場合、RFIDタグ400が発生する乱数の範囲は、0〜2−1=0〜2−1=0〜15となる。RFIDタグ400は、Queryコマンド、QueryAdjustコマンドを受信するとQにより指定された範囲で乱数を発生し、乱数が0となったRFIDタグはRN16を送信する。Cは、Qを増減するための定数である。上述の実施形態においては、Cは、0.3にセットされているがこれに限られず、標準的に0.1<C<〜0.5の範囲でセットされる。 First, the RFID reader / writer control unit 101 sets Q = 4, C = 0.3, and the number of times of sending a QueryAdjust command (hereinafter, also referred to as “QA number”) = 0 as initial values (step S201). Q is a parameter that specifies the range of random numbers generated by the RFID tag 400. According to the EPC specification, the range of random numbers is represented by 0 to 2 Q −1. Therefore, for example, when Q = 4, the range of random numbers generated by the RFID tag 400 is 0 to 2 Q −1 = 0 to 2 4 −1 = 0 to 15. Upon receiving the Query command and the QueryAdjust command, the RFID tag 400 generates a random number in the range specified by Q, and the RFID tag whose random number becomes 0 transmits RN16. C is a constant for increasing or decreasing Q. In the above embodiment, C is set to 0.3, but is not limited to this, and is typically set in the range of 0.1 <C <C0.5.

コマンド送受信部201は、アンチコリジョン処理で使用したいセッション(番号S0,S1,S2,S3)のうち1つを選択し、インベントリ済フラグにAを設定してSelectコマンド(ステップS202)をRFIDタグ400へ送信する。また、コマンド送受信部201は、ステップ201でセットしたQの値と、ステップS202で選択したセッションを指定してQueryコマンドをRFIDタグ400へ送信する(ステップS203)。   The command transmitting / receiving unit 201 selects one of the sessions (numbers S0, S1, S2, S3) that the user wants to use in the anti-collision processing, sets A to the inventory completion flag, and transmits the Select command (step S202) to the RFID tag 400. Send to The command transmitting / receiving unit 201 transmits a Query command to the RFID tag 400 by designating the value of Q set in step 201 and the session selected in step S202 (step S203).

コマンド送受信部201は、Queryコマンドに対しRFIDタグ400から送信されたRN16を正常に受信したか否かを判定する(ステップS204)。RN16を正常に受信した場合(ステップS204のYES)には、コマンド送受信部201は、ACKコマンドをRFIDタグ400へ送信する(ステップS205)。   The command transmitting / receiving unit 201 determines whether the RN 16 transmitted from the RFID tag 400 has been normally received in response to the Query command (step S204). If the RN 16 has been normally received (YES in step S204), the command transmitting / receiving unit 201 transmits an ACK command to the RFID tag 400 (step S205).

コマンド送受信部201は、ステップS205でACKコマンドを送信してから所定の時間内にRFIDタグ400から送信されたPC、EPC、CRC16を正常に受信したか否かを判定する(ステップS206)。ステップS205でACKコマンドを送信してから所定の時間内にRFIDタグ400から送信されたPC、EPC、CRC16を正常に受信した場合(ステップS206のYES)には、RFIDリーダライタ制御部101はEPCを上位装置であるPOS端末10に通知し、処理はステップS208に進む。   The command transmitting / receiving unit 201 determines whether the PC, EPC, and CRC 16 transmitted from the RFID tag 400 have been normally received within a predetermined time after transmitting the ACK command in step S205 (step S206). If the PC, the EPC, and the CRC 16 transmitted from the RFID tag 400 are normally received within a predetermined time after transmitting the ACK command in step S205 (YES in step S206), the RFID reader / writer control unit 101 sets the EPC Is notified to the POS terminal 10 which is a host device, and the process proceeds to step S208.

ステップS205でACKコマンドを送信してから所定の時間内にRFIDタグ400から送信されたPC、EPC、CRC16を正常に受信できない場合(ステップS206のNO)には、コマンド送受信部201は、NAKコマンドをRFIDタグ400に対し送信する(ステップS207)。   If the PC, EPC, and CRC 16 transmitted from the RFID tag 400 cannot be normally received within a predetermined time after transmitting the ACK command in step S205 (NO in step S206), the command transmitting / receiving unit 201 sends the NAK command Is transmitted to the RFID tag 400 (step S207).

NAKコマンドの送信後、コマンド送受信部201は、QueryAdjustコマンドを送信する(ステップS208)。なお、QueryAdjustコマンドを受信したRFIDタグ400は、再び乱数を発生し乱数が0となったRFIDタグ400はRN16を送信する。送信回数計数部202は、ステップS208で送信したQueryAdjustコマンドの送信回数であるQA回数を1加算する(ステップS209)。   After transmitting the NAK command, the command transmitting / receiving unit 201 transmits a QueryAdjust command (Step S208). Note that the RFID tag 400 that has received the QueryAdjust command generates a random number again, and the RFID tag 400 whose random number becomes 0 transmits RN16. The transmission number counting unit 202 adds 1 to the QA number, which is the number of transmissions of the QueryAdjust command transmitted in step S208 (step S209).

送信回数計数部202は、ステップS209においてQA回数に1加算した結果、QA回数が第1の規定回数以上となったか否かを判定する(ステップS210)。QA回数が第1の規定回数以上となっていない場合(ステップS210のNO)には、ステップS204の処理に戻り、QA回数が第1の規定回数以上となるまで、ステップS204〜ステップS210の処理が繰り返し実行される。第1の規定回数は、読取対象のRFIDタグ400の総数に対して、余裕のある回数が設定される。QA回数が第1の規定回数以上となった場合(ステップS210のYES)には、上位装置であるPOS端末10に強制終了を通知する(ステップS211)。この処理が終了すると、アンチコリジョン処理は終了となる。   The transmission number counting section 202 determines whether or not the QA number has become equal to or greater than a first specified number as a result of adding 1 to the QA number in step S209 (step S210). If the QA count is not equal to or greater than the first specified count (NO in step S210), the process returns to step S204, and the processing in steps S204 to S210 is performed until the QA count is equal to or greater than the first specified count. Is repeatedly executed. The first specified number is set to a sufficient number of times with respect to the total number of RFID tags 400 to be read. If the QA count is equal to or greater than the first specified count (YES in step S210), the POS terminal 10 as the higher-level device is notified of the forced termination (step S211). When this process ends, the anti-collision process ends.

以上のように、アンチコリジョン処理においてノイズが多くて通信環境が悪い場合には、RN16を正常に受信することができても、RFIDタグ400からのEPCの応答を正常に受信できない場合がある。この場合、QueryAdjustコマンド送信処理と、RFIDタグ400からのRN16の応答処理とが実行されるステップS204〜S208の処理が繰り返し実行され、ループに嵌まりアンチコリジョン処理が終了しなくなってしまうおそれがある。これに対し、第1の実施形態では、ステップS209〜S211の処理を行うことにより、QueryAdjustコマンドの送信回数であるQA回数が第1の規定回数以上となった場合には、上位装置であるPOS端末10に強制終了の通知が行われるとともに、アンチコリジョン処理が終了する。これにより、アンチコリジョン処理がループに嵌まることを未然に防ぐとともに、RFIDリーダライタ38に強制終了が行われたことを通知することで、POS端末10のオペレータに強制終了が行われたことを報知することができる。   As described above, when the communication environment is poor due to a large amount of noise in the anti-collision process, the EPC response from the RFID tag 400 may not be normally received even if the RN 16 can be normally received. In this case, the processing of steps S204 to S208, in which the QueryAdjust command transmission processing and the response processing of the RN 16 from the RFID tag 400 are executed, is repeatedly executed, and there is a possibility that the anti-collision processing may not be terminated due to the loop. . On the other hand, in the first embodiment, by performing the processing of steps S209 to S211, when the number of times of sending the QueryAdjust command, which is the number of times of QA, is equal to or more than the first specified number, the POS as the higher-level device is determined. The terminal 10 is notified of the forced termination, and the anti-collision process ends. This prevents the anti-collision process from being inserted into the loop, and notifies the RFID reader / writer 38 that the forced termination has been performed, thereby notifying the operator of the POS terminal 10 that the forced termination has been performed. Can be informed.

また、RN16を正常に受信できない場合(ステップS204のNO)には、コマンド送受信部201は、ステップS203でQueryコマンドまたはステップS208でQueryAdjustコマンドを送信してから所定の時間内にRFIDタグ400からQueryコマンドまたはQueryAdjustコマンドに対する何らかの応答があったか否かを判定する(ステップS212)。何らかの応答とは、例えば、RFIDタグ400からRN16の応答が複数あったため、RN16の信号同士がぶつかり合い正常に受信できない場合やノイズを受信した等である。   If the RN 16 cannot be normally received (NO in step S204), the command transmitting / receiving unit 201 transmits the Query command in step S203 or the QueryAdjust command in step S208, and transmits the query from the RFID tag 400 to the query within a predetermined time. It is determined whether there is any response to the command or the QueryAdjust command (step S212). The response of some kind is, for example, a case where a plurality of responses from the RN 16 are received from the RFID tag 400, and the signals of the RN 16 collide with each other and cannot be received normally, or a noise is received.

ステップS203でQueryコマンドまたはステップS208でQueryAdjustコマンドを送信してから所定の時間内にRFIDタグ400からQueryコマンドまたはQueryAdjustコマンドに対する何らかの応答があった場合(ステップS212のYES)には、RFIDリーダライタ制御部101は、QにCの値を加算する(ステップS213)。RFIDリーダライタ制御部101は、QにCの値を加算した結果Qが15より大きくなったか否か判定する(ステップS214)。なお、小数点以下のQの値は省略する。QにCの値を加算した結果Qが15より大きくなった場合(ステップS214のYES)には、RFIDリーダライタ制御部101は、Qの最大値である15をセットし(ステップS215)、ステップS208の処理に進む。   If there is any response to the Query command or the QueryAdjust command from the RFID tag 400 within a predetermined time after transmitting the Query command in Step S203 or the QueryAdjust command in Step S208 (YES in Step S212), the RFID reader / writer control is performed. The unit 101 adds the value of C to Q (step S213). The RFID reader / writer control unit 101 determines whether the result of adding the value of C to Q is larger than 15 (step S214). The value of Q after the decimal point is omitted. If the result of adding the value of C to Q becomes larger than 15 (YES in step S214), the RFID reader / writer control unit 101 sets 15 which is the maximum value of Q (step S215), and proceeds to step S215. The process proceeds to S208.

QにCの値を加算した結果Qが15以下の場合(ステップS214のNO)には、RFIDリーダライタ制御部101は、ステップS215の処理を省略し、ステップS208の処理に進む。ステップS213においてQにCを加算した場合、コマンド送受信部201は、Qの整数部が繰り上がったときはQ+1の指示を、Qの整数部が変化なしのときはQ変化なしの指示を含むQueryAdjustコマンドを送信する(ステップS208)。なお、QueryAdjustコマンドを受信したRFIDタグ400は、再び乱数を発生して乱数が0となったRFIDタグ400はRN16を送信する。例えばRFIDタグ400は、Q+1の指示を含むQueryAdjustコマンドを受信した結果Q=4がQ=5になった場合、RFIDタグ400が発生する乱数の範囲は、0〜2−1=0〜2−1=0〜31となる。 If the result Q obtained by adding the value of C to Q is 15 or less (NO in step S214), the RFID reader / writer control unit 101 skips the processing in step S215 and proceeds to the processing in step S208. When C is added to Q in step S213, the command transmitting / receiving unit 201 sends a QueryAdjust instruction including an instruction of Q + 1 when the integer part of Q is raised, and an instruction of no Q change when the integer part of Q is unchanged. A command is transmitted (step S208). The RFID tag 400 that has received the QueryAdjust command generates a random number again, and the RFID tag 400 whose random number becomes 0 transmits RN16. For example, when the result of receiving the QueryAdjust command including the instruction of Q + 1 is that Q = 4 becomes Q = 5, the range of the random number generated by the RFID tag 400 is 0 to 2 Q −1 = 0 to 2 5 −1 = 0 to 31.

以上のように、アンチコリジョン処理においてRFIDタグ400の総数と比較して、乱数の範囲が小さいと、乱数が0となったRFIDタグ400が複数発生し、RN16の信号同士がぶつかり合うおそれがある。この場合、RFIDリーダライタ38は、RFIDタグ400からのRN16を正常に受信できないためノイズとしてしか受信できない場合がある。これに対し、第1の実施形態では、ステップS213の処理が行われることにより、Cを加算することで、乱数の範囲を大きくしてRFIDタグ400からのRN16の応答を減少させることができる。その結果、RN16の信号同士がぶつかり合い、RN16を正常に受信できなくなることを防ぐことができる。   As described above, if the range of the random number is smaller than the total number of the RFID tags 400 in the anti-collision processing, a plurality of the RFID tags 400 having the random number of 0 are generated, and the signals of the RN 16 may collide with each other. . In this case, since the RFID reader / writer 38 cannot normally receive the RN 16 from the RFID tag 400, it may only be able to receive the RN 16 as noise. In contrast, in the first embodiment, by performing the process of step S213, by adding C, the range of random numbers can be increased and the response of the RN 16 from the RFID tag 400 can be reduced. As a result, it is possible to prevent the signals of the RN 16 from colliding with each other and preventing the RN 16 from being normally received.

また、ステップS203でQueryコマンドまたはステップS208でQueryAdjustコマンドを送信してから所定の時間内にRFIDタグ400からQueryコマンドまたはQueryAdjustコマンドに対する何らかの応答がなかった場合(ステップS212のNO)には、RFIDリーダライタ制御部101は、Qは0であるか否かを判定する(ステップS216)。Qは0でない場合(ステップS216のNO)には、RFIDリーダライタ制御部101は、QからCの値を減算する(ステップS217)。QからCの値を減算した結果Qが0より小さくなったか否か判定する(ステップS218)。   In addition, if there is no response from the RFID tag 400 to the Query command or the QueryAdjust command within a predetermined time after transmitting the Query command in Step S203 or the QueryAdjust command in Step S208 (NO in Step S212), the RFID reader The writer control unit 101 determines whether or not Q is 0 (step S216). If Q is not 0 (NO in step S216), the RFID reader / writer control unit 101 subtracts the value of C from Q (step S217). It is determined whether or not the result of subtracting the value of C from Q is smaller than 0 (step S218).

QからCの値を減算した結果Qが0より小さくなった場合(ステップS218のYES)にはRFIDリーダライタ制御部101は、Qに0をセットし(ステップS219)、ステップS208の処理に進む。ステップS217においてQからCの値を減算した結果、Qが0以上である場合(ステップS218のNO)には、RFIDリーダライタ制御部101は、ステップS219の処理を省略し、ステップS208の処理に進む。   If the result of subtracting the value of C from Q becomes smaller than 0 (YES in step S218), the RFID reader / writer control unit 101 sets 0 to Q (step S219), and proceeds to the process in step S208. . If the result of subtracting the value of C from Q in step S217 is that Q is greater than or equal to 0 (NO in step S218), the RFID reader / writer control unit 101 skips step S219 and proceeds to step S208. move on.

ステップS217においてQからCを減算した場合、コマンド送受信部201は、Qの整数部が繰り上がったときはQ−1の指示を、Qの整数部が変化なしのときはQ変化なしの指示を含むQueryAdjustコマンドを送信する(ステップ208)。なお、QueryAdjustコマンドを受信したRFIDタグ400は、再び乱数を発生して乱数が0となったRFIDタグ400はRN16を送信する。例えばRFIDタグ400は、Q−1の指示を含むQueryAdjustコマンドを受信した結果Q=4がQ=3になった場合、RFIDタグ400が発生する乱数の範囲は、0〜2−1=0〜2−1=0〜7となる。 When C is subtracted from Q in step S217, the command transmission / reception unit 201 gives an instruction of Q-1 when the integer part of Q is raised, and gives an instruction of no Q change when the integer part of Q is unchanged. A QueryAdjust command is transmitted (step 208). The RFID tag 400 that has received the QueryAdjust command generates a random number again, and the RFID tag 400 whose random number becomes 0 transmits RN16. For example, if the result of receiving the QueryAdjust command including the instruction of Q-1 is that Q = 4 becomes Q = 3, the range of the random number generated by the RFID tag 400 is 0 to 2 Q −1 = 0. 22 3 −1 = 0 to 7.

そして、Qからの減算を繰り返した結果、Qは0となった場合(ステップS216のYES)、好ましくは、Qは0となった判定が所定回数連続した場合には、アンチコリジョン処理は終了となる。   Then, as a result of repeating the subtraction from Q, when Q becomes 0 (YES in step S216), preferably, when the determination that Q becomes 0 continues for a predetermined number of times, the anti-collision processing is terminated. Become.

以上のように、アンチコリジョン処理においてRFIDタグ400の総数と比較して乱数の範囲が大きい場合には、例えば、RFIDタグ400からRN16の応答がほとんどないため、RN16の信号を受信できない場合がある。これに対し、第1の実施形態では、ステップS217の処理を行うことにより、Cを減算することで、乱数の範囲を小さくしてRFIDタグ400からのRN16の応答を増加させることができる。その結果、RN16を受信する機会を増加させ、アンチコリジョン処理を迅速に終了することができ、RFIDタグ400の読み取りを早く終わらせることができる。   As described above, when the range of the random number is large compared to the total number of the RFID tags 400 in the anti-collision processing, for example, since there is almost no response from the RFID tag 400 to the RN 16, the signal of the RN 16 may not be received. . In contrast, in the first embodiment, by performing the process of step S217, by subtracting C, the range of random numbers can be reduced and the response of the RN 16 from the RFID tag 400 can be increased. As a result, the chance of receiving the RN 16 is increased, the anti-collision processing can be quickly completed, and the reading of the RFID tag 400 can be completed early.

なお、第1の実施形態においては、RFIDリーダライタ38は、POS端末10に使用されるものとして説明したがこれに限られるものではない。例えば、ベルトコンベア上を搬送される商品箱に付されたRFIDタグ400の読み取りを行うPC(Personal Computer)に使用されてもよい。   In the first embodiment, the RFID reader / writer 38 has been described as being used for the POS terminal 10, but the present invention is not limited to this. For example, it may be used for a PC (Personal Computer) that reads an RFID tag 400 attached to a product box conveyed on a belt conveyor.

また、第1の実施形態においては、コマンド送受信部201は、特定の制御コマンドとしてQueryAdjustコマンドを送信しているが、QueryAdjustコマンドの代わりにQueryRepコマンドを送信してもよい。QueryRepコマンドは、発生した乱数の値を「1」減算させ、減算した結果「0」となったRFIDタグ400に応答する旨の指示を与えるコマンドである。この場合、コマンド送受信部201は、ステップS208においてQueryAdjustコマンドの代わりにQueryRepコマンドを送信する。そして、ステップS209において、送信回数計数部202は、QueryAdjustコマンドの代わりにQueryRepコマンドの送信回数を1加算する。ステップS210において、送信回数計数部202は、QueryRepコマンドの送信回数を1加算した結果、QueryRepコマンドの送信回数が第1の規定回数以上となったか否かを判定する。   Further, in the first embodiment, the command transmitting / receiving unit 201 transmits the QueryAdjust command as a specific control command, but may transmit a QueryRep command instead of the QueryAdjust command. The QueryRep command is a command for decrementing the value of the generated random number by “1” and giving an instruction to respond to the RFID tag 400 that is “0” as a result of the subtraction. In this case, the command transmitting / receiving unit 201 transmits a QueryRep command instead of the QueryAdjust command in step S208. Then, in step S209, the transmission count counting unit 202 adds 1 to the transmission count of the QueryRep command instead of the QueryAdjust command. In step S210, the transmission number counting unit 202 determines whether the number of transmissions of the QueryRep command is equal to or more than a first specified number as a result of adding 1 to the number of transmissions of the QueryRep command.

QueryRepコマンドの送信回数が第1の規定回数以上となっていない場合(ステップS210のNO)には、ステップS204の処理に戻り、QueryRepコマンドの送信回数が第1の規定回数以上となるまで、ステップS204〜ステップS210の処理が繰り返し実行される。QueryRepコマンドの送信回数が第1の規定回数以上となった場合(ステップS210のYES)には、上位装置であるPOS端末10に強制終了を通知する(ステップS211)。この処理が終了すると、アンチコリジョン処理は終了となる。   If the number of times of sending the QueryRep command is not equal to or more than the first specified number of times (NO in step S210), the process returns to step S204, and the process returns to step S204 until the number of times of sending the QueryRep command is equal to or more than the first specified number of times. Steps S204 to S210 are repeatedly executed. If the number of transmissions of the QueryRep command is equal to or greater than the first specified number (YES in step S210), the POS terminal 10 as the upper-level device is notified of the forced termination (step S211). When this process ends, the anti-collision process ends.

<第2の実施形態>
第1の実施形態においては、QueryAdjustコマンドの送信回数であるQA回数が第1の規定回数以上となった場合には、RFIDリーダライタ38は、上位装置であるPOS端末10に強制終了の通知を行うとともに、アンチコリジョン処理を終了した。これに対し、第2の実施形態においては、NAKコマンドの送信回数であるNAK回数が第2の規定回数以上となった場合には、RFIDリーダライタ38は、上位装置であるPOS端末10に強制終了の通知を行うとともに、アンチコリジョン処理を終了する。
<Second embodiment>
In the first embodiment, when the QA count, which is the number of times the QueryAdjust command is transmitted, is equal to or greater than the first specified count, the RFID reader / writer 38 sends a notification of the forced termination to the POS terminal 10 as the higher-level device. At the same time, the anti-collision processing was completed. On the other hand, in the second embodiment, when the number of NAKs, which is the number of times the NAK command is transmitted, is equal to or greater than the second specified number, the RFID reader / writer 38 is forcibly issued to the POS terminal 10 as the higher-level device. At the same time, the end of the anti-collision process is notified.

第2の実施形態のRFIDリーダライタ38は、第1の実施形態のRFIDリーダライタ38のハードウェア構成と略同じであるため説明を省略する。また、第2の実施形態のRFIDリーダライタ38は、第1の実施形態の機能構成と略同じであるため説明を省略する。但し、第2の実施形態の送信回数計数部202は、コマンド送受信部201により送信されたNAKコマンドの送信回数を計数する。そして、第2の実施形態の読取終了部203は、送信回数計数部202により計数されたNAKコマンドの送信回数に応じてRFIDタグ400の読み取りを終了する。また、第2の実施形態の終了通知部204は、送信回数計数部202により計数されたNAKコマンドの送信回数が所定の第2の規定回数以上である場合には、上位装置であるPOS端末10にRFIDタグ400の読み取りを終了することを通知する。また、第2の実施形態に係るRFIDリーダライタ38を有するPOS端末10が実行する商品読取処理のフローチャートは、第1の実施形態に係るRFIDリーダライタ38を有するPOS端末10が実行する商品読取処理のフローチャートと略同様であるため説明を省略する。   The RFID reader / writer 38 according to the second embodiment has substantially the same hardware configuration as that of the RFID reader / writer 38 according to the first embodiment, and a description thereof will be omitted. Further, the RFID reader / writer 38 of the second embodiment is substantially the same as the functional configuration of the first embodiment, and thus the description is omitted. However, the transmission number counting unit 202 of the second embodiment counts the number of transmissions of the NAK command transmitted by the command transmission / reception unit 201. Then, the reading end unit 203 of the second embodiment ends reading of the RFID tag 400 according to the number of transmissions of the NAK command counted by the transmission number counting unit 202. In addition, when the number of times of transmission of the NAK command counted by the number-of-times-of-transmission counting unit 202 is equal to or more than the second predetermined number of times, the end notification unit 204 of the second embodiment sets the POS terminal 10 as a higher-level device. To end the reading of the RFID tag 400. The flowchart of the commodity reading process executed by the POS terminal 10 having the RFID reader / writer 38 according to the second embodiment is the same as the commodity reading processing executed by the POS terminal 10 having the RFID reader / writer 38 according to the first embodiment. The description is omitted because it is substantially the same as the flowchart of FIG.

以下、第2の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の動作の一例について、図9のフローチャートを参照して説明する。なお、第2の実施形態のステップS302〜S307、S312〜S319の処理は、第1の実施形態のステップS202〜S207、S212〜S219の処理と略同様であるため説明を省略する。   Hereinafter, an example of the operation of the anti-collision process performed by the RFID reader / writer 38 according to the second embodiment will be described with reference to the flowchart in FIG. The processing in steps S302 to S307 and S312 to S319 in the second embodiment is substantially the same as the processing in steps S202 to S207 and S212 to S219 in the first embodiment, and a description thereof will be omitted.

はじめに、RFIDリーダライタ制御部101は、初期値としてQ=4、C=0.3、NAKコマンドの送信回数(以下、「NAK回数」とも呼ぶ)=0にセットする(ステップS301)。   First, the RFID reader / writer control unit 101 sets Q = 4, C = 0.3, and the number of NAK command transmissions (hereinafter also referred to as “NAK number”) = 0 as initial values (step S301).

ステップS308において、送信回数計数部202は、ステップS307で送信したNAKコマンドの送信回数であるNAK回数を1加算する。送信回数計数部202は、ステップS308においてNAK回数に1加算した結果、NAK回数が第2の規定回数以上となったか否かを判定する(ステップS309)。NAK回数が第2の規定回数以上となっていない場合(ステップS309のNO)には、コマンド送受信部201は、QueryAdjustコマンドを送信する(ステップS310)。第2の規定回数は、読取対象のRFIDタグ400の総数に対して、余裕のある回数が設定される。QueryAdjustコマンドの送信後、ステップS304の処理に戻り、NAK回数が第2の規定回数以上となるまで、ステップS304〜ステップS310の処理が繰り返し実行される。NAK回数が第2の規定回数以上となった場合(ステップS309のYES)には、上位装置であるPOS端末10に強制終了を通知する(ステップS311)。この処理が終了すると、アンチコリジョン処理は終了となる。   In step S308, the number-of-times-of-transmission counting unit 202 adds one to the number of NAKs, which is the number of times of transmission of the NAK command transmitted in step S307. The transmission number counting unit 202 determines whether the result of adding 1 to the number of NAKs in step S308 is that the number of NAKs is equal to or greater than a second specified number of times (step S309). If the number of NAKs is not equal to or greater than the second specified number (NO in step S309), the command transmitting / receiving unit 201 transmits a QueryAdjust command (step S310). As the second specified number, a sufficient number of times is set for the total number of RFID tags 400 to be read. After transmitting the QueryAdjust command, the process returns to step S304, and the processes of steps S304 to S310 are repeatedly performed until the number of NAKs becomes equal to or greater than the second specified number. If the number of NAKs is equal to or greater than the second specified number (YES in step S309), the POS terminal 10 that is a higher-level device is notified of forced termination (step S311). When this process ends, the anti-collision process ends.

以上のように、アンチコリジョン処理においてノイズが多くて通信環境が悪い場合には、RN16を正常に受信することができても、RFIDタグ400からのEPCの応答を正常に受信できない場合がある。この場合、QueryAdjustコマンド送信処理と、RFIDタグ400からのRN16の応答処理とが実行されるステップS304〜S310の処理が繰り返し実行され、ループに嵌まりアンチコリジョン処理が終了しなくなってしまうおそれがある。これに対し、第2の実施形態では、ステップS308〜S311の処理を行うことにより、NAKコマンドの送信回数であるNAK回数が第2の規定回数以上となった場合には、上位装置であるPOS端末10に強制終了の通知が行われるとともに、アンチコリジョン処理が終了する。これにより、アンチコリジョン処理がループに嵌まることを未然に防ぐとともに、RFIDリーダライタ38に強制終了が行われたことを通知することで、POS端末10のオペレータに強制終了が行われたことを報知することができる。   As described above, when the communication environment is poor due to a large amount of noise in the anti-collision process, the EPC response from the RFID tag 400 may not be normally received even if the RN 16 can be normally received. In this case, the processes of steps S304 to S310 in which the QueryAdjust command transmission process and the response process of the RN 16 from the RFID tag 400 are executed are repeatedly executed, and there is a possibility that the anti-collision process may not be terminated due to the loop. . On the other hand, in the second embodiment, by performing the processing of steps S308 to S311, if the number of NAKs, which is the number of times the NAK command is transmitted, becomes equal to or more than the second specified number, the POS, which is the higher-level device, The terminal 10 is notified of the forced termination, and the anti-collision process ends. This prevents the anti-collision process from being inserted into the loop, and notifies the RFID reader / writer 38 that the forced termination has been performed, thereby notifying the operator of the POS terminal 10 that the forced termination has been performed. Can be informed.

<第3の実施形態>
第1の実施形態においては、QueryAdjustコマンドの送信回数であるQA回数が第1の規定回数以上となった場合には、RFIDリーダライタ38は、上位装置であるPOS端末10に強制終了の通知を行うとともに、アンチコリジョン処理を終了した。これに対し、第3の実施形態においては、QueryAdjustコマンドの送信回数であるQA回数が第1の規定回数以上となるか、NAKコマンドの送信回数であるNAK回数が第2の規定回数以上となった場合には、RFIDリーダライタ38は、上位装置であるPOS端末10に強制終了の通知を行うとともに、アンチコリジョン処理を終了する。
<Third embodiment>
In the first embodiment, when the QA count, which is the number of times the QueryAdjust command is transmitted, is equal to or greater than the first specified count, the RFID reader / writer 38 sends a notification of the forced termination to the POS terminal 10 as the higher-level device. At the same time, the anti-collision processing was completed. On the other hand, in the third embodiment, the number of QA, which is the number of times the QueryAdjust command is transmitted, is equal to or greater than the first specified number, or the number of NAKs, which is the number of times transmission of the NAK command, is equal to or greater than the second specified number. In such a case, the RFID reader / writer 38 notifies the POS terminal 10 as the upper-level device of the forced termination and ends the anti-collision processing.

第3の実施形態のRFIDリーダライタ38は、第1の実施形態のRFIDリーダライタ38のハードウェア構成と略同じであるため説明を省略する。また、第3の実施形態のRFIDリーダライタ38は、第1の実施形態の機能構成と略同じであるため説明を省略する。但し、第3の実施形態の送信回数計数部202は、コマンド送受信部201により送信されたQueryAdjustコマンドおよびNAKコマンドの送信回数をそれぞれ計数する。そして、第3の実施形態の読取終了部203は、送信回数計数部202によりそれぞれ計数されたQueryAdjustコマンドまたはNAKコマンドの送信回数に応じてRFIDタグ400の読み取りを終了する。また、第3の実施形態の終了通知部204は、送信回数計数部202によりそれぞれ計数されたQueryAdjustコマンドの送信回数が所定の第1の規定回数以上となるか、NAKコマンドの送信回数が所定の第2の規定回数以上となる場合には、上位装置であるPOS端末10にRFIDタグ400の読み取りを終了することを通知する。また、第3の実施形態に係るRFIDリーダライタ38を有するPOS端末10が実行する商品読取処理のフローチャートは、第1の実施形態に係るRFIDリーダライタ38を有するPOS端末10が実行する商品読取処理のフローチャートと略同様であるため説明を省略する。   The RFID reader / writer 38 according to the third embodiment has substantially the same hardware configuration as that of the RFID reader / writer 38 according to the first embodiment, and a description thereof will not be repeated. Further, the RFID reader / writer 38 of the third embodiment has substantially the same functional configuration as that of the first embodiment, and a description thereof will be omitted. However, the transmission number counting unit 202 of the third embodiment counts the number of transmissions of the QueryAdjust command and the NAK command transmitted by the command transmission / reception unit 201, respectively. Then, the reading end unit 203 of the third embodiment ends reading of the RFID tag 400 according to the number of times of sending the QueryAdjust command or the NAK command counted by the sending number counting unit 202. In addition, the end notification unit 204 of the third embodiment determines whether the number of transmissions of the QueryAdjust command counted by the number-of-transmissions counting unit 202 is equal to or greater than a predetermined first predetermined number or the number of transmissions of the NAK command is a predetermined number. If the number of times is equal to or more than the second specified number, the POS terminal 10 that is the higher-level device is notified that the reading of the RFID tag 400 is finished. The flowchart of the commodity reading process executed by the POS terminal 10 having the RFID reader / writer 38 according to the third embodiment is the same as the commodity reading processing executed by the POS terminal 10 having the RFID reader / writer 38 according to the first embodiment. The description is omitted because it is substantially the same as the flowchart of FIG.

以下、第3の実施形態に係るRFIDリーダライタ38が実行するアンチコリジョン処理の動作の一例について、図10のフローチャートを参照して説明する。なお、第3の実施形態のステップS402〜S407、S414〜S421の処理は、第1の実施形態のステップS202〜S207、S212〜S219の処理と略同様であるため説明を省略する。   Hereinafter, an example of the operation of the anti-collision process performed by the RFID reader / writer 38 according to the third embodiment will be described with reference to the flowchart in FIG. The processing in steps S402 to S407 and S414 to S421 in the third embodiment is substantially the same as the processing in steps S202 to S207 and S212 to S219 in the first embodiment, and a description thereof will not be repeated.

はじめに、RFIDリーダライタ制御部101は、初期値としてQ=4、C=0.3、QA回数=0、NAK回数=0にセットする(ステップS401)。   First, the RFID reader / writer control unit 101 sets Q = 4, C = 0.3, QA count = 0, and NAK count = 0 as initial values (step S401).

ステップS408において、送信回数計数部202は、ステップS407で送信したNAKコマンドの送信回数であるNAK回数を1加算する。送信回数計数部202は、ステップS408においてNAK回数に1加算した結果、NAK回数が第2の規定回数以上となったか否かを判定する(ステップS409)。   In step S408, the transmission number counting unit 202 adds one to the NAK number, which is the transmission number of the NAK command transmitted in step S407. The transmission number counting unit 202 determines whether the result of adding 1 to the number of NAKs in step S408 is that the number of NAKs is equal to or greater than a second specified number of times (step S409).

NAK回数が第2の規定回数以上となっていない場合(ステップS409のNO)には、コマンド送受信部201は、QueryAdjustコマンドを送信する(ステップS410)。QueryAdjustコマンドの送信後、送信回数計数部202は、ステップS410で送信したQueryAdjustコマンドの送信回数であるQA回数を1加算する(ステップS411)。   If the number of NAKs is not equal to or greater than the second specified number (NO in step S409), the command transmitting / receiving unit 201 transmits a QueryAdjust command (step S410). After transmitting the QueryAdjust command, the transmission count counting unit 202 adds 1 to the QA count, which is the transmission count of the QueryAdjust command transmitted in step S410 (step S411).

送信回数計数部202は、ステップS411においてQA回数に1加算した結果、QA回数が第1の規定回数以上とならない場合(ステップS412のNO)には、ステップS404の処理に戻り、QA回数が第1の規定回数以上となるか、NAK回数が第2の規定回数以上となるまで、ステップS404〜ステップS412の処理が繰り返し実行される。第1の規定回数および第2の規定回数は、読取対象のRFIDタグ400の総数に対して、余裕のある回数が設定される。   If the QA count is not equal to or greater than the first specified count as a result of adding 1 to the QA count in step S411 (NO in step S412), the transmission count counting unit 202 returns to the process in step S404 and sets the QA count to the first count. The processes of steps S404 to S412 are repeatedly executed until the number of times exceeds the predetermined number of 1 or the number of NAKs becomes equal to or more than the second predetermined number of times. As the first specified number and the second specified number, a sufficient number of times is set for the total number of RFID tags 400 to be read.

NAK回数が第2の規定回数以上(ステップS409のYES)となるか、QA回数が第1の規定回数以上(ステップS412のYES)となった場合には、上位装置であるPOS端末10に強制終了を通知する(ステップS413)。この処理が終了すると、アンチコリジョン処理は終了となる。   If the number of NAKs is equal to or greater than the second specified number (YES in step S409) or the number of QAs is equal to or greater than the first specified number (YES in step S412), the POS terminal 10 as a higher-level device is forcibly applied. The end is notified (step S413). When this process ends, the anti-collision process ends.

以上のように、アンチコリジョン処理においてノイズが多くて通信環境が悪い場合には、RN16を正常に受信することができても、RFIDタグ400からのEPCの応答を正常に受信できない場合がある。この場合、QueryAdjustコマンド送信処理と、RFIDタグ400からのRN16の応答処理とが実行されるステップS404〜S410の処理が繰り返し実行され、ループに嵌まりアンチコリジョン処理が終了しなくなってしまうおそれがある。これに対し、第3の実施形態では、ステップS408、S409、S411〜S413の処理を行うことにより、QueryAdjustコマンドの送信回数であるQA回数が第1の規定回数以上となるか、NAKコマンドの送信回数であるNAK回数が第2の規定回数以上となった場合には、上位装置であるPOS端末10に強制終了の通知が行われるとともに、アンチコリジョン処理が終了する。これにより、アンチコリジョン処理がループに嵌まることを未然に防ぐとともに、RFIDリーダライタ38に強制終了が行われたことを通知することで、POS端末10のオペレータに強制終了が行われたことを報知することができる。   As described above, when the communication environment is poor due to a large amount of noise in the anti-collision process, the EPC response from the RFID tag 400 may not be normally received even if the RN 16 can be normally received. In this case, the processing of steps S404 to S410 in which the QueryAdjust command transmission processing and the processing of responding to the RN 16 from the RFID tag 400 are repeatedly executed, there is a possibility that the anti-collision processing will not end due to the loop. . On the other hand, in the third embodiment, by performing the processing of steps S408, S409, and S411 to S413, the number of QA times, which is the number of times of sending the QueryAdjust command, becomes equal to or more than the first specified number of times, When the number of NAKs, which is the number of times, becomes equal to or more than the second specified number, a notification of the forced termination is sent to the POS terminal 10 as the host device, and the anti-collision process ends. This prevents the anti-collision process from being inserted into the loop, and notifies the RFID reader / writer 38 that the forced termination has been performed, thereby notifying the operator of the POS terminal 10 that the forced termination has been performed. Can be informed.

なお、第3の実施形態においては、コマンド送受信部201は、特定の制御コマンドとしてQueryAdjustコマンドを送信しているが、QueryAdjustコマンドの代わりにQueryRepコマンドを送信してもよい。この場合、コマンド送受信部201は、ステップS410においてQueryAdjustコマンドの代わりにQueryRepコマンドを送信する。そして、ステップS411において、送信回数計数部202は、QueryAdjustコマンドの代わりにQueryRepコマンドの送信回数を1加算する。ステップS412において、送信回数計数部202は、QueryRepコマンドの送信回数を1加算した結果、QueryRepコマンドの送信回数が第1の規定回数以上となったか否かを判定する。   In the third embodiment, the command transmitting / receiving unit 201 transmits a QueryAdjust command as a specific control command, but may transmit a QueryRep command instead of the QueryAdjust command. In this case, the command transmitting / receiving unit 201 transmits a QueryRep command instead of the QueryAdjust command in step S410. Then, in step S411, the transmission count counting unit 202 adds 1 to the transmission count of the QueryRep command instead of the QueryAdjust command. In step S412, the transmission number counting unit 202 determines whether the number of transmissions of the QueryRep command is equal to or greater than the first specified number as a result of adding 1 to the number of transmissions of the QueryRep command.

QueryRepコマンドの送信回数が第1の規定回数以上とならない場合(ステップS412のNO)には、ステップS404の処理に戻り、QueryRepコマンドの送信回数が第1の規定回数以上となるか、NAK回数が第2の規定回数以上となるまで、ステップS404〜ステップS412の処理が繰り返し実行される。NAK回数が第2の規定回数以上(ステップS409のYES)となるか、QueryRepコマンドの送信回数が第1の規定回数以上(ステップS412のYES)となった場合には、上位装置であるPOS端末10に強制終了を通知する(ステップS413)。この処理が終了すると、アンチコリジョン処理は終了となる。   If the number of times of sending the QueryRep command does not exceed the first specified number of times (NO in step S412), the process returns to step S404, and the number of times of sending the QueryRep command becomes equal to or more than the first specified number of times, or the number of NAKs is increased. The processes of steps S404 to S412 are repeatedly executed until the number of times becomes equal to or more than the second specified number. If the number of NAKs is equal to or more than the second specified number (YES in step S409), or if the number of times of sending the QueryRep command is equal to or more than the first specified number (YES in step S412), the POS terminal, which is a higher-level device, 10 is notified of the forced termination (step S413). When this processing ends, the anti-collision processing ends.

なお、本発明は上述した実施形態そのままに限定されるものではなく、実施段階でのその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成することができる。例えば、実施形態に示される全構成要素を適宜組み合わせても良い。更に、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。このような、発明の趣旨を逸脱しない範囲内において種々の変形や応用が可能であることはもちろんである。   Note that the present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying the constituent elements without departing from the gist of the embodiment. Various inventions can be formed by appropriately combining a plurality of components disclosed in the above embodiments. For example, all the components shown in the embodiments may be appropriately combined. Further, constituent elements of different embodiments may be appropriately combined. Of course, various modifications and applications are possible without departing from the spirit of the invention.

10 POS端末
31 制御ユニット
32 自動釣銭機
33 自動釣札機
34 キャッシュドロア
35 キーボード
36 ディスプレイ
37 タッチパネル
38 RFIDリーダライタ
39 可搬型記録媒体
51 POS制御部
52 記憶部
53 グラフィック処理装置
54 入出力インタフェース
55 通信インタフェース
56 バス
101 RFIDリーダライタ制御部
102 記憶部
103 通信インタフェース
104 バス
201 コマンド送受信部
202 送信回数計数部
203 読取終了部
204 終了通知部
300 外部サーバ
400 RFIDタグ
Reference Signs List 10 POS terminal 31 Control unit 32 Automatic change machine 33 Automatic change machine 34 Cash drawer 35 Keyboard 36 Display 37 Touch panel 38 RFID reader / writer 39 Portable recording medium 51 POS control unit 52 Storage unit 53 Graphic processing unit 54 Input / output interface 55 Communication Interface 56 bus 101 RFID reader / writer control unit 102 storage unit 103 communication interface 104 bus 201 command transmission / reception unit 202 transmission count unit 203 read end unit 204 end notification unit 300 external server 400 RFID tag

Claims (7)

乱数を用いて複数のRFIDタグを互いに識別するアンチコリジョン処理によりRFIDタグの読み取りを行うRFIDリーダライタであって、
前記RFIDタグの読み取りの際に前記RFIDタグへ前記RFIDタグの制御コマンドを送信するコマンド送受信部と、
前記コマンド送受信部により送信された前記制御コマンドのうち、特定の制御コマンドの送信回数を計数する送信回数計数部と、
前記送信回数計数部により計数された前記特定の制御コマンドの送信回数に応じて、前記RFIDタグの読み取りを終了する読取終了部と、
を備えることを特徴とするRFIDリーダライタ。
An RFID reader / writer that reads an RFID tag by anti-collision processing for identifying a plurality of RFID tags from each other using a random number,
A command transmitting / receiving unit that transmits a control command of the RFID tag to the RFID tag when reading the RFID tag;
Among the control commands transmitted by the command transmitting and receiving unit, a transmission count counting unit that counts the number of transmissions of a specific control command,
A reading end unit that ends reading of the RFID tag according to the number of transmissions of the specific control command counted by the transmission number counting unit,
An RFID reader / writer, comprising:
前記読取終了部により前記RFIDタグの読み取りを終了する場合には、上位装置に前記RFIDタグの読み取りを終了することを通知する終了通知部
をさらに備えることを特徴とする請求項1に記載のRFIDリーダライタ。
2. The RFID according to claim 1, further comprising an end notification unit that notifies a host device that the reading of the RFID tag is ended when the reading of the RFID tag is ended by the reading end unit. Reader / writer.
前記コマンド送受信部は、前記特定の制御コマンドとして前記RFIDタグにQueryAdjustコマンドまたはQueryRepコマンドを送信し、
前記送信回数計数部は、前記コマンド送受信部により送信された前記QueryAdjustコマンドまたはQueryRepコマンドの送信回数を計数し、
前記読取終了部は、前記送信回数計数部により計数された前記QueryAdjustコマンドまたはQueryRepコマンドの送信回数に応じて前記RFIDタグの読み取りを終了する
ことを特徴とする請求項1または2に記載のRFIDリーダライタ。
The command transmitting / receiving unit transmits a QueryAdjust command or a QueryRep command to the RFID tag as the specific control command,
The transmission number counting unit counts the number of transmissions of the QueryAdjust command or the QueryRep command transmitted by the command transmission / reception unit,
The RFID reader according to claim 1, wherein the reading end unit ends reading of the RFID tag in accordance with the number of transmissions of the QueryAdjust command or the QueryRep command counted by the transmission number counting unit. 4. lighter.
前記コマンド送受信部は、前記RFIDタグからEPCを正常に受信できなかった場合には、前記特定の制御コマンドとして前記RFIDタグにNAKコマンドを送信し、
前記送信回数計数部は、前記コマンド送受信部により送信された前記NAKコマンドの送信回数を計数し、
前記読取終了部は、前記送信回数計数部により計数された前記NAKコマンドの送信回数に応じて前記RFIDタグの読み取りを終了する
ことを特徴とする請求項1または2に記載のRFIDリーダライタ。
The command transmitting / receiving unit, when the EPC cannot be normally received from the RFID tag, transmits a NAK command to the RFID tag as the specific control command,
The transmission number counting unit counts the number of transmissions of the NAK command transmitted by the command transmission / reception unit,
The RFID reader / writer according to claim 1, wherein the reading end unit ends reading of the RFID tag according to the number of transmissions of the NAK command counted by the transmission number counting unit.
前記コマンド送受信部は、
前記特定の制御コマンドとして前記RFIDタグにQueryAdjustコマンドまたはQueryRepコマンドを送信し、
前記RFIDタグからEPCを正常に受信できなかった場合には、前記制御コマンドとして前記RFIDタグにNAKコマンドを送信し、
前記送信回数計数部は、前記コマンド送受信部により送信された前記QueryAdjustコマンドまたはQueryRepコマンドおよびNAKコマンドの送信回数をそれぞれ計数し、
前記読取終了部は、前記送信回数計数部によりそれぞれ計数された前記QueryAdjustコマンドまたはQueryRepコマンドの送信回数が所定の第1の規定回数以上または前記送信回数計数部により計数された前記NAKコマンドの送信回数が所定の第2の規定回数以上である場合には、前記RFIDタグの読み取りを終了する
ことを特徴とする請求項1または2に記載のRFIDリーダライタ。
The command transmission / reception unit,
Transmitting a QueryAdjust command or a QueryRep command to the RFID tag as the specific control command,
When the EPC cannot be normally received from the RFID tag, a NAK command is transmitted to the RFID tag as the control command,
The transmission number counting unit counts the number of transmissions of the QueryAdjust command or the QueryRep command and the NAK command transmitted by the command transmission / reception unit, respectively.
The reading end unit is configured such that the number of transmissions of the QueryAdjust command or the QueryRep command counted by the number-of-transmissions counting unit is equal to or more than a predetermined first specified number or the number of transmissions of the NAK command counted by the transmission number counting unit. The RFID reader / writer according to claim 1 or 2, wherein the reading of the RFID tag is terminated when is greater than or equal to a second predetermined number of times.
乱数を用いて複数のRFIDタグを互いに識別するアンチコリジョン処理によりRFIDタグの読み取りを行うRFIDリーダライタの読取制御方法であって、
前記RFIDリーダライタが、
前記RFIDタグの読み取りの際に前記RFIDタグへ特定の制御コマンドを送信し、
前記送信された前記特定の制御コマンドの送信回数を計数し、
前記計数された前記特定の制御コマンドの送信回数に応じて、前記RFIDタグの読み取りを終了する
ことを特徴とするRFIDリーダライタの読取制御方法。
A reading control method for an RFID reader / writer that reads an RFID tag by anti-collision processing for identifying a plurality of RFID tags from each other using a random number,
The RFID reader / writer,
Transmitting a specific control command to the RFID tag when reading the RFID tag,
Count the number of times the specific control command is transmitted,
A reading control method for an RFID reader / writer, wherein reading of the RFID tag is terminated according to the counted number of times of transmission of the specific control command.
乱数を用いて複数のRFIDタグを互いに識別するアンチコリジョン処理によりRFIDタグの読み取りを行うRFIDリーダライタに実行させるための読取方法制御プログラムであって、
コンピュータに、
前記RFIDタグの読み取りの際に前記RFIDタグへ特定の制御コマンドを送信する処理、
前記送信された前記特定の制御コマンドの送信回数を計数する処理、
前記計数された前記特定の制御コマンドの送信回数に応じて、前記RFIDタグの読み取りを終了する処理、
を実行させることを特徴とするRFIDリーダライタの読取方法制御プログラム。
A reading method control program for causing an RFID reader / writer that reads an RFID tag by anti-collision processing to identify a plurality of RFID tags from each other using a random number to execute the method,
On the computer,
A process of transmitting a specific control command to the RFID tag when reading the RFID tag;
A process of counting the number of times the specific control command is transmitted,
A process of ending the reading of the RFID tag according to the counted number of transmissions of the specific control command;
And a reading method control program for an RFID reader / writer.
JP2018142181A 2018-07-30 2018-07-30 RFID reader / writer, read control method and read method control program Active JP6993306B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018142181A JP6993306B2 (en) 2018-07-30 2018-07-30 RFID reader / writer, read control method and read method control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018142181A JP6993306B2 (en) 2018-07-30 2018-07-30 RFID reader / writer, read control method and read method control program

Publications (2)

Publication Number Publication Date
JP2020021117A true JP2020021117A (en) 2020-02-06
JP6993306B2 JP6993306B2 (en) 2022-01-13

Family

ID=69588561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018142181A Active JP6993306B2 (en) 2018-07-30 2018-07-30 RFID reader / writer, read control method and read method control program

Country Status (1)

Country Link
JP (1) JP6993306B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7426857B2 (en) 2020-03-09 2024-02-02 東芝テック株式会社 Wireless tag reader and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001060255A (en) * 1999-08-20 2001-03-06 Yoshikawa Rf System Kk Data carrier, reader-writer, and system and method for retrieval and reading data carrier
US20050263591A1 (en) * 2003-08-09 2005-12-01 Smith John S Methods and apparatuses to identify devices
JP2010086147A (en) * 2008-09-30 2010-04-15 Brother Ind Ltd Wireless tag management system
JP2011514116A (en) * 2008-03-12 2011-04-28 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュート RFID reader device for retransmitting command according to collision situation and control method thereof
JP2011166619A (en) * 2010-02-12 2011-08-25 Toshiba Tec Corp Rf tag reader and writer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001060255A (en) * 1999-08-20 2001-03-06 Yoshikawa Rf System Kk Data carrier, reader-writer, and system and method for retrieval and reading data carrier
US20050263591A1 (en) * 2003-08-09 2005-12-01 Smith John S Methods and apparatuses to identify devices
JP2011514116A (en) * 2008-03-12 2011-04-28 エレクトロニクス アンド テレコミュニケーションズ リサーチ インスチチュート RFID reader device for retransmitting command according to collision situation and control method thereof
JP2010086147A (en) * 2008-09-30 2010-04-15 Brother Ind Ltd Wireless tag management system
JP2011166619A (en) * 2010-02-12 2011-08-25 Toshiba Tec Corp Rf tag reader and writer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7426857B2 (en) 2020-03-09 2024-02-02 東芝テック株式会社 Wireless tag reader and program

Also Published As

Publication number Publication date
JP6993306B2 (en) 2022-01-13

Similar Documents

Publication Publication Date Title
CN107688762B (en) RFID tag reading device, control method and terminal equipment
JP4831979B2 (en) Electronic shelf label system
US20110218870A1 (en) Communication method for a roaming point-of-sale system
EP3040904A1 (en) Portable rfid reading terminal with visual indication of scan trace
CN103548046A (en) Electronic transactions with mobile communication devices via encoded graphical representations
WO2014155205A2 (en) Systems and methods for communicating to a computing device information associated with the replenishment status of a retail item
US20200111108A1 (en) Information processing system, information processing method and non-transitory computer-readable medium for executing the method
JP2007048140A (en) Shelf tag management apparatus, shelf tag management method and program
JP6993306B2 (en) RFID reader / writer, read control method and read method control program
US11760572B2 (en) Apparatus for conveying product and operating method thereof
JP2023171419A (en) Checkout system, portable pos terminal, peripheral device presentation method, and control program
KR101265574B1 (en) Rf card apparatus with tag function and control method thereof
WO2019096201A1 (en) Self-service method and device based on active tags and passive tags
US20220270028A1 (en) Information processing apparatus and information processing system
JP2023067923A (en) Commodity registration device, control method, and program
JP2007058657A (en) Card processor
US10628226B2 (en) Device control device, communication system, and control method of a device control device
JP2021101380A (en) Commodity sales data processing device and data processing program
JP4800797B2 (en) Product price detection device and product price detection system
US20220261868A1 (en) Mobile terminal, information processing device, and control program
US20240013186A1 (en) Settlement device, settlement method, and recording medium
CN112132516B (en) Commodity inventory management method, device, terminal and storage medium
JP2011077656A (en) Wireless lan access point, wireless lan system, and merchandise information presentation system
US20230186272A1 (en) Information processing apparatus and server apparatus for store system with peripheral device brokering
JP2019095917A (en) Registration settlement device and information processing program for controlling the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200910

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20200910

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210720

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211005

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211122

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211209

R150 Certificate of patent or registration of utility model

Ref document number: 6993306

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150