JP2010061367A - Reader/writer, program update method, communication system and communication method - Google Patents

Reader/writer, program update method, communication system and communication method Download PDF

Info

Publication number
JP2010061367A
JP2010061367A JP2008226028A JP2008226028A JP2010061367A JP 2010061367 A JP2010061367 A JP 2010061367A JP 2008226028 A JP2008226028 A JP 2008226028A JP 2008226028 A JP2008226028 A JP 2008226028A JP 2010061367 A JP2010061367 A JP 2010061367A
Authority
JP
Japan
Prior art keywords
update
response
reader
writer
update program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2008226028A
Other languages
Japanese (ja)
Inventor
Fumiaki Takabatake
郁昌 高畠
Kazuyuki Sakamoto
和之 坂本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2008226028A priority Critical patent/JP2010061367A/en
Publication of JP2010061367A publication Critical patent/JP2010061367A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a new and improved technique capable of reducing the trouble of software development for a controller and reducing the risk that an update program will be tampeling. <P>SOLUTION: A control part 26 of a reader/writer 20 transmits via an antenna 21 a polling command inquiring whether or not radio communication is possible, and if receiving via the antenna 21 a polling response indicating that radio communication is possible from a communication device 30 having an update program in response to the polling command, transmits via the antenna 21 an update command requesting that the update program be transmitted to the communication device 30 and, on receiving via the antenna 21 an update response including the update program from the communication device 30 in response to the update command, stores the update program in a storage part 25. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、リーダライタ、プログラム更新方法、通信システムおよび通信方法に関する。詳しくは、リーダライタのプログラムを更新する技術に関する。   The present invention relates to a reader / writer, a program update method, a communication system, and a communication method. Specifically, the present invention relates to a technique for updating a reader / writer program.

ナビゲーション装置の更新用プログラムをICカードに格納しておき、ナビゲーション装置の電源が投入されると、ICカードから更新用プログラムを読み込み、読み込んだプログラムで更新を行う技術が開示されている(例えば、特許文献1参照)。   A technology for storing an update program for a navigation device in an IC card, reading the update program from the IC card when the navigation device is turned on, and updating with the read program is disclosed (for example, Patent Document 1).

従来、リーダライタを管理するコントローラが有線経路を介して更新用プログラムを含むコマンドを送信し、リーダライタが更新用プログラムを受信し、不揮発性メモリ内のプログラムを更新用プログラムで書き換えることによりプログラムの更新を行っていた。   Conventionally, a controller that manages a reader / writer sends a command including an update program via a wired path, the reader / writer receives the update program, and rewrites the program in the nonvolatile memory with the update program. We were updating.

特開2004−13299号公報JP 2004-13299 A

しかしながら、コントローラが更新用プログラムを送信する技術では、リーダライタに更新用プログラムをコマンドとして送信するソフトウェアをコントローラ側に用意する必要があった。そのために、リーダライタを別のものに置き換える度にコントローラ側のソフトウェアをリーダライタのプログラム更新方法に合わせて開発する必要があった。また、更新用プログラムをコントローラ内に格納する必要があるため、コントローラ内で更新用プログラムが改竄される可能性があった。   However, in the technology in which the controller transmits the update program, software for transmitting the update program as a command to the reader / writer needs to be prepared on the controller side. Therefore, every time the reader / writer is replaced with another one, it is necessary to develop the software on the controller side in accordance with the program update method of the reader / writer. Further, since it is necessary to store the update program in the controller, the update program may be tampered with in the controller.

本発明は、上記問題に鑑みてなされたものであり、本発明の目的とするところは、コントローラ側のソフトウェア開発の手間を低減し、更新用プログラムが改竄される可能性を低減することが可能な、新規かつ改良された技術を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to reduce the effort of software development on the controller side and to reduce the possibility of falsification of the update program. It is to provide a new and improved technique.

上記目的を達成するために、本発明のある観点によれば、無線による通信が可能にされたアンテナ部と、コントローラとの有線による通信が可能にされた通信インタフェース部と、情報を記憶することが可能にされた記憶部と、無線による通信が可能か否かを問い合わせる旨を示すポーリングコマンドを、アンテナ部を介して送信し、ポーリングコマンドに対する応答として更新用プログラムを保持する通信装置から無線による通信が可能である旨を示すポーリングレスポンスを、アンテナ部を介して受信すると、アンテナ部を介して更新用プログラムの送信を要求する旨を示す更新コマンドを通信装置に送信し、通信装置からアンテナ部を介して更新コマンドに対する応答として更新用プログラムを含む更新レスポンスを受信すると、更新用プログラムを記憶部に格納する制御部と、を備える、リーダライタが提供される。   In order to achieve the above object, according to an aspect of the present invention, an antenna unit capable of wireless communication, a communication interface unit capable of wired communication with a controller, and information are stored. A polling command indicating that it is inquired whether or not wireless communication is possible with the storage unit that is enabled is transmitted via the antenna unit, and wirelessly from a communication device that holds an update program as a response to the polling command When a polling response indicating that communication is possible is received via the antenna unit, an update command indicating that transmission of the update program is requested is transmitted to the communication device via the antenna unit. When an update response containing an update program is received as a response to an update command via And a control unit for storing a program in a storage unit, the reader-writer is provided.

上記した制御部は、アンテナ部を介して受信したレスポンスに更新用プログラムを保持する通信装置を識別できる情報が含まれる場合に、レスポンスがポーリングレスポンスであると判断することとしてもよい。   The control unit described above may determine that the response is a polling response when the response received via the antenna unit includes information that can identify the communication device that holds the update program.

上記した記憶部は、リーダライタを識別できる番号である機器番号を記憶し、上記した制御部は、ポーリングレスポンスを、アンテナ部を介して受信すると、アンテナ部を介して更新コマンドを通信装置に送信する前に、アンテナ部を介して機器番号を含む機器番号通知コマンドを通信装置に送信することとしてもよい。   The storage unit described above stores a device number that is a number that can identify the reader / writer, and when the control unit receives a polling response via the antenna unit, it transmits an update command to the communication device via the antenna unit. Before doing so, a device number notification command including a device number may be transmitted to the communication device via the antenna unit.

上記した制御部は、更新用プログラムの最後の部分を含む更新レスポンスを受信するまで、1または複数の通信装置との間で、更新コマンドを送信する処理、更新コマンドに対する応答として更新用プログラムの一部を含む更新レスポンスを受信する処理および更新用プログラムの一部を記憶部に格納する処理を、この順序で実行することとしてもよい。   The control unit described above is a process for transmitting an update command to one or a plurality of communication devices until an update response including the last part of the update program is received, and one of the update programs as a response to the update command. The process of receiving the update response including the part and the process of storing a part of the update program in the storage part may be executed in this order.

上記した制御部は、ポーリングレスポンスまたは更新レスポンスに、更新用プログラムが分割された数を示す分割数が含まれている場合に、分割数回目に受信する更新レスポンスを更新用プログラムの最後の部分を含む更新レスポンスであると判断することとしてもよい。   When the polling response or the update response includes the number of divisions indicating the number of divided update programs, the control unit described above receives the update response received for the number of divisions as the last part of the update program. It is good also as judging that it is an update response containing.

上記した制御部は、更新レスポンスに、更新用プログラムの一部の順番を示す値が含まれている場合に、更新用プログラムの一部を記憶部に格納した後、格納した更新用プログラムの順番を示す値を分割数で除算した結果をステータスとして含むステータス通知コマンドを、アンテナ部を介して通信装置に送信することとしてもよい。   When the update response includes a value indicating the order of a part of the update program in the update response, the control part stores the part of the update program in the storage unit and then stores the order of the stored update program. A status notification command including a result obtained by dividing the value indicating the value by the number of divisions as a status may be transmitted to the communication device via the antenna unit.

上記した制御部は、更新レスポンスに、更新用プログラムの最後の部分である旨を示す情報が含まれている場合に、更新用プログラムの最後の部分を含む更新レスポンスであると判断することとしてもよい。   The control unit described above may determine that the update response includes the last part of the update program when the update response includes information indicating that it is the last part of the update program. Good.

上記した記憶部は、揮発性メモリと、不揮発性メモリとを含んで構成され、上記した制御部は、更新用プログラムの一部を含む更新レスポンスを受信すると、更新用プログラムの一部を揮発性メモリに格納し、更新用プログラムの最後の部分を揮発性メモリに格納すると、揮発性メモリに格納された更新用プログラムの全部を不揮発性メモリに格納することとしてもよい。   The storage unit described above includes a volatile memory and a nonvolatile memory. When the control unit receives an update response including a part of the update program, the part of the update program is volatile. If the last part of the update program is stored in the volatile memory and stored in the memory, the entire update program stored in the volatile memory may be stored in the nonvolatile memory.

上記した制御部は、更新レスポンスに、更新用プログラムが分割されている場合における更新用プログラムの順番を示す値が含まれている場合に、順番通りに更新レスポンスを受信しているか否かを判断し、順番通りに更新レスポンスを受信していないと判断した場合には、その旨を出力することとしてもよい。   The control unit described above determines whether or not the update response is received in order when the update response includes a value indicating the order of the update program when the update program is divided. However, when it is determined that the update response has not been received in order, it may be output to that effect.

上記した制御部は、更新用プログラムを含む更新レスポンスを受信すると、更新用プログラムが暗号化されている場合に、更新用プログラムを復号化して記憶部に格納することとしてもよい。   When receiving the update response including the update program, the control unit described above may decrypt the update program and store it in the storage unit when the update program is encrypted.

上記した制御部は、通信装置からポーリングレスポンスを、アンテナ部を介して受信すると、コントローラに対するレスポンス信号の返信を制限することとしてもよい。   The control unit described above may limit the response signal response to the controller when receiving a polling response from the communication device via the antenna unit.

本発明によれば、コントローラ側のソフトウェア開発の手間を低減し、更新用プログラムが改竄される可能性を低減することが可能となる。   According to the present invention, it is possible to reduce time and effort for software development on the controller side and to reduce the possibility of falsification of the update program.

以下に添付図面を参照しながら、本発明の好適な実施の形態について詳細に説明する。なお、本明細書および図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付することにより重複説明を省略する。なお、説明は以下の順序で行う。   Exemplary embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In the present specification and drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and redundant description is omitted. The description will be given in the following order.

1. 本実施形態の概要
2. 情報処理システムの構成
3 リーダライタの構成
4. 通信装置の構成
5. データ構成例
6. 運用時の処理の流れ
7. 一般的な情報処理システムにおけるプログラム更新時の処理の流れ
8. 本実施形態に係る情報処理システムにおけるプログラム更新時の処理の流れ
9. 通信装置の表示部に表示される画面例(その1)
10. 通信装置の表示部に表示される画面例(その2)
11. 通信装置の表示部に表示される画面例(その3)
12. 本実施形態による効果
13.本実施形態の変形例
1. 1. Outline of the present embodiment Configuration of information processing system 3 Configuration of reader / writer 4. Configuration of communication device Data configuration example 6. 6. Process flow during operation 7. Process flow when updating a program in a general information processing system 8. Process flow at the time of program update in the information processing system according to the present embodiment Example of a screen displayed on the display unit of the communication device (part 1)
10. Screen example displayed on the display unit of the communication device (part 2)
11. Screen example (part 3) displayed on the display unit of the communication device
12 Effects of the present embodiment 13. Modification of this embodiment

本実施形態の概要]
リーダライタと、通信装置(無線通信機)と、コントローラとを備える情報処理システムを提供する。リーダライタは、アンテナを持ち電子機器との無線通信が可能である。コントローラは、このリーダライタと有線で通信することによりリーダライタを制御可能である。通信装置は、無線を介して送信されてくるコマンドに応じて処理を行う。通信装置は、例えば、IC(Integrated Circuit)カードによって構成され、内部メモリにリーダライタの更新用プログラムを格納している。リーダライタは、この通信装置と無線通信を行うことでプログラムを更新する。
Overview of this embodiment]
An information processing system including a reader / writer, a communication device (wireless communication device), and a controller is provided. The reader / writer has an antenna and can wirelessly communicate with an electronic device. The controller can control the reader / writer by communicating with the reader / writer in a wired manner. The communication device performs processing according to a command transmitted via radio. The communication device is configured by, for example, an IC (Integrated Circuit) card, and stores a reader / writer update program in an internal memory. The reader / writer updates the program by performing wireless communication with the communication device.

また、リーダライタにおいて通常運用時に使用しているカード検出コマンドを実行中に、リーダライタに通信装置をかざすことにより、コントローラからの特別なコマンドで指示することなく、リーダライタ内のプログラムの更新を開始する。   In addition, while executing the card detection command used in normal operation in the reader / writer, by holding the communication device over the reader / writer, it is possible to update the program in the reader / writer without giving a special command from the controller. Start.

情報処理システムの構成]
図1は、本実施形態に係る情報処理システムの構成例を示す図である。図1を参照して、本実施形態に係る情報処理システムについて説明する。
Configuration of information processing system]
FIG. 1 is a diagram illustrating a configuration example of an information processing system according to the present embodiment. With reference to FIG. 1, an information processing system according to the present embodiment will be described.

図1に示すように、本実施形態に係る情報処理システムは、コントローラ10と、リーダライタ20と、通信装置30と、運用カード40とを含んで構成される。本実施形態においては、リーダライタ20と通信装置30とを含んだシステムを通信システム1とする。また、本実施形態においては、コントローラ10と、リーダライタ20とが改札機2に組み込まれている場合について説明するが、これに限定されるものではない。   As shown in FIG. 1, the information processing system according to the present embodiment includes a controller 10, a reader / writer 20, a communication device 30, and an operation card 40. In the present embodiment, a system including the reader / writer 20 and the communication device 30 is referred to as a communication system 1. In the present embodiment, the case where the controller 10 and the reader / writer 20 are incorporated in the ticket gate 2 will be described, but the present invention is not limited to this.

コントローラ10は、リーダライタ20を管理または制御するものであり、リーダライタ20と有線による通信が可能にされている。コントローラ10は、例えば、コントローラ10内のCPU(Central Processing Unit)(不図示)がコントローラ10内のメモリ(不図示)に記憶されているプログラムを実行することによってその機能が実現される。   The controller 10 manages or controls the reader / writer 20, and can communicate with the reader / writer 20 by wire. The function of the controller 10 is realized by, for example, a CPU (Central Processing Unit) (not shown) in the controller 10 executing a program stored in a memory (not shown) in the controller 10.

リーダライタ20は、アンテナ21を有しており、アンテナ21を介して通信装置30と無線による通信(非接触通信)を行うことが可能にされている。また、リーダライタ20は、アンテナ21を介して運用カード40と無線による通信を行うことが可能にされている。リーダライタ20は、内部にメモリを有し、通信装置30から受信した情報をメモリに保持することができる。リーダライタ20は、内部の不揮発性メモリにプログラムを持ち、プログラムを書き換えることで処理内容を変更することができる。リーダライタ20の詳細については、後述する。   The reader / writer 20 includes an antenna 21, and can perform wireless communication (non-contact communication) with the communication device 30 via the antenna 21. In addition, the reader / writer 20 can perform wireless communication with the operation card 40 via the antenna 21. The reader / writer 20 has a memory inside, and can store information received from the communication device 30 in the memory. The reader / writer 20 has a program in an internal nonvolatile memory, and can change the processing content by rewriting the program. Details of the reader / writer 20 will be described later.

通信装置30は、アンテナ31を有しており、アンテナ31を介してリーダライタ20と無線による通信を行うことが可能にされている。また、通信装置30は、管理者からの操作の入力を受け付ける操作入力部32を備えることとしてもよく、表示部33を備えることとしてもよい。図1においては、操作入力部32が3つのボタンとして示されているが、ボタン以外のもの(タッチパネル等)であってもよいし、3つでなく、いくつであってもよい。   The communication device 30 includes an antenna 31 and can perform wireless communication with the reader / writer 20 via the antenna 31. In addition, the communication device 30 may include an operation input unit 32 that receives an operation input from an administrator, or may include a display unit 33. In FIG. 1, the operation input unit 32 is shown as three buttons. However, the operation input unit 32 may be other than a button (such as a touch panel), or may be any number instead of three.

通信装置30は、内部にメモリを有し、メモリにリーダライタ20の更新用プログラムを格納することができる。通信装置30は、更新用プログラムを格納していることをリーダライタ20に通知する機能を有する。通信装置30は、リーダライタ20と相互認証を行い、セキュアな通信路を確立する機能を有する。通信装置30は、リーダライタ20からの更新用プログラム読出コマンドに対応して、プログラムデータを送信する機能を有する。通信装置30の詳細については、後述する。   The communication device 30 has a memory inside, and can store an update program for the reader / writer 20 in the memory. The communication device 30 has a function of notifying the reader / writer 20 that an update program is stored. The communication device 30 has a function of performing mutual authentication with the reader / writer 20 and establishing a secure communication path. The communication device 30 has a function of transmitting program data in response to an update program read command from the reader / writer 20. Details of the communication device 30 will be described later.

運用カード40は、改札機2を利用するユーザが保持するものである。運用カード40は、ユーザが改札機2を通過する際にリーダライタ20に読み取られ、運用カード40に記録されている残高の更新等の処理が実行される。   The operation card 40 is held by a user who uses the ticket gate 2. The operation card 40 is read by the reader / writer 20 when the user passes the ticket gate 2, and processing such as updating the balance recorded in the operation card 40 is executed.

リーダライタの構成]
図2は、本実施形態に係るリーダライタの構成例を示す図である。図2を参照して(適宜図1参照)、本実施形態に係るリーダライタについて説明する。
Configuration of Reader / Writer]
FIG. 2 is a diagram illustrating a configuration example of the reader / writer according to the present embodiment. The reader / writer according to the present embodiment will be described with reference to FIG. 2 (see FIG. 1 as appropriate).

図2に示すように、本実施形態に係るリーダライタ20は、アンテナ(アンテナ部)21と、発振回路22と、変調部23と、復調部24と、記憶部25と、制御部26と、通信インタフェース部27とを備える。   As shown in FIG. 2, the reader / writer 20 according to the present embodiment includes an antenna (antenna unit) 21, an oscillation circuit 22, a modulation unit 23, a demodulation unit 24, a storage unit 25, a control unit 26, And a communication interface unit 27.

アンテナ21は、無線による通信が可能にされた通信インタフェースである。アンテナ21は、高周波エネルギーを電波として空間に放射し、空間の電波を高周波エネルギーへ変換することによって無線による通信を実現する。アンテナ21は、変調部23から供給された要求信号を、無線通信により送信する。すなわち、例えば、アンテナ21は、変調部23から供給された要求信号を伝送するための電波を輻射(放射)する。また、アンテナ21は、送信されてきた応答信号を受信し、受信した応答信号を復調部24に供給する。   The antenna 21 is a communication interface that enables wireless communication. The antenna 21 radiates high-frequency energy as radio waves to space, and realizes radio communication by converting the radio waves in space into high-frequency energy. The antenna 21 transmits the request signal supplied from the modulation unit 23 by wireless communication. That is, for example, the antenna 21 radiates (radiates) a radio wave for transmitting the request signal supplied from the modulation unit 23. The antenna 21 receives the transmitted response signal and supplies the received response signal to the demodulator 24.

発振回路22は、所定の周波数の、基準となるクロック信号を生成し、生成したクロック信号を変調部23に供給する。   The oscillation circuit 22 generates a reference clock signal having a predetermined frequency, and supplies the generated clock signal to the modulation unit 23.

変調部23は、発振回路22から供給された所定の周波数のクロック信号を基に、搬送波を生成する。変調部23は、搬送波に基づいて、制御部26から供給された要求信号を所定の方式により変調し、変調した要求信号をアンテナ21に供給する。例えば、変調部23は、制御部26から供給された要求信号に基づいて、搬送波の位相、振幅、周波数などを変化させることにより変調した要求信号を生成する。   The modulation unit 23 generates a carrier wave based on a clock signal having a predetermined frequency supplied from the oscillation circuit 22. The modulation unit 23 modulates the request signal supplied from the control unit 26 based on a carrier wave by a predetermined method, and supplies the modulated request signal to the antenna 21. For example, the modulation unit 23 generates a modulated request signal by changing the phase, amplitude, frequency, etc. of the carrier wave based on the request signal supplied from the control unit 26.

より具体的には、例えば、変調部23は、発振回路22から供給される13.56MHzの周波数のクロック信号を搬送波として、制御部26から供給されるデータをASK(Amplitude Shift Keying)変調する。変調部23は、生成された変調波を、電磁波としてアンテナ21から出力させる。   More specifically, for example, the modulation unit 23 performs ASK (Amplitude Shift Keying) modulation of data supplied from the control unit 26 using a clock signal having a frequency of 13.56 MHz supplied from the oscillation circuit 22 as a carrier wave. The modulator 23 outputs the generated modulated wave from the antenna 21 as an electromagnetic wave.

復調部24は、アンテナ21から供給された応答信号を、変調部35(図3)の変調方式に対応する復調方式により復調し、復調した応答信号を制御部26に供給する。例えば、復調部24は、アンテナ21を介して取得した変調波(ASK変調波)を復調し、復調した応答信号を制御部26に出力する。   The demodulation unit 24 demodulates the response signal supplied from the antenna 21 by a demodulation method corresponding to the modulation method of the modulation unit 35 (FIG. 3), and supplies the demodulated response signal to the control unit 26. For example, the demodulator 24 demodulates the modulated wave (ASK modulated wave) acquired via the antenna 21 and outputs the demodulated response signal to the controller 26.

記憶部25は、情報を記憶することが可能にされたものである。記憶部25は、例えば、RAM(Random Access Memory)251と、不揮発性メモリ252とを備えるものである。記憶部25は、リーダライタ20を識別できる番号である機器番号を記憶していることとしてもよい。不揮発性メモリ252は、書き換え可能で、電源が遮断されても記録内容を保持できる、いわゆる不揮発性の記憶媒体または記録媒体からなり、例えば、ハードディスクまたはフラッシュメモリなどにより構成される。記憶部25は、記録しているデータを、必要に応じて制御部26に供給する。   The storage unit 25 is capable of storing information. The storage unit 25 includes, for example, a RAM (Random Access Memory) 251 and a nonvolatile memory 252. The storage unit 25 may store a device number that is a number by which the reader / writer 20 can be identified. The non-volatile memory 252 is a rewritable, so-called non-volatile storage medium or recording medium that can retain recorded contents even when the power is turned off, and is configured by, for example, a hard disk or a flash memory. The storage unit 25 supplies the recorded data to the control unit 26 as necessary.

制御部26は、例えば、CPUによって構成され、不揮発性メモリ252に記憶されたプログラムをRAM251に展開し、実行することで、その機能を実現する。   The control unit 26 is configured by, for example, a CPU, and implements its function by developing and executing a program stored in the nonvolatile memory 252 in the RAM 251.

制御部26は、無線による通信が可能か否かを問い合わせる旨を示すポーリングコマンドを、アンテナ21を介して送信する。   The control unit 26 transmits, via the antenna 21, a polling command indicating that an inquiry is made as to whether or not wireless communication is possible.

制御部26は、ポーリングコマンドに対する応答として更新用プログラムを保持する通信装置30から無線による通信が可能である旨を示すポーリングレスポンスを、アンテナ21を介して受信する。制御部26は、ポーリングレスポンスを受信すると、アンテナ21を介して更新用プログラムの送信を要求する旨を示す更新コマンド((FW:Firmware)更新コマンド)(図5(a)参照)を通信装置30に送信する。また、制御部26は、ポーリングレスポンスを受信した際に、コントローラ10(図1参照)に対してレスポンス信号を返信しない(レスポンス信号の返信を制限する)。   The control unit 26 receives, via the antenna 21, a polling response indicating that wireless communication is possible from the communication device 30 that holds the update program as a response to the polling command. When receiving the polling response, the control unit 26 sends an update command ((FW: Firmware) update command) (see FIG. 5A) indicating that the transmission of the update program is requested via the antenna 21 to the communication device 30. Send to. Further, when receiving the polling response, the control unit 26 does not return a response signal to the controller 10 (see FIG. 1) (restricts response signal response).

制御部26は、通信装置30からアンテナ21を介して更新コマンドに対する応答として更新用プログラムを含む更新レスポンス(FW更新レスポンス)(図5(b)参照)を受信すると、更新用プログラムを記憶部25に格納する。   When the control unit 26 receives an update response (FW update response) (see FIG. 5B) including an update program as a response to the update command from the communication device 30 via the antenna 21, the control unit 26 stores the update program in the storage unit 25. To store.

制御部26は、例えば、アンテナ21を介して受信したレスポンスに更新用プログラムを保持する通信装置30を識別できる情報が含まれる場合に、レスポンスが更新用プログラムを保持する通信装置30からのポーリングレスポンスであると判断する。更新用プログラムを保持する通信装置30を識別できる情報は、例えば、更新用プログラムを保持する通信装置30に特有の機器IDがレスポンス内の所定の位置(送信元の機器IDが設定される位置等)に設定される場合が想定される。また、例えば、特定のビット列がレスポンスに付加される場合等が想定される。   For example, when the response received via the antenna 21 includes information that can identify the communication device 30 that holds the update program, the control unit 26 receives a polling response from the communication device 30 that holds the update program. It is judged that. The information that can identify the communication device 30 that holds the update program is, for example, a device ID unique to the communication device 30 that holds the update program in a predetermined position in the response (a position where the transmission source device ID is set, etc.) ) Is assumed. Further, for example, a case where a specific bit string is added to the response is assumed.

制御部26は、ポーリングレスポンスを、アンテナ21を介して受信すると、アンテナ21を介して更新コマンドを通信装置30に送信する前に、アンテナ21を介して機器番号通知コマンド(図4(a)参照)を通信装置30に送信することとしてもよい。機器番号通知コマンドはリーダライタ20の機器番号を含むものである。これによって、リーダライタ20の管理者は、プログラムの更新を行ったリーダライタ20を、リーダライタ20の機器番号で管理することができる。   When the control unit 26 receives the polling response via the antenna 21, the control unit 26 transmits a device number notification command via the antenna 21 (see FIG. 4A) before transmitting the update command to the communication device 30 via the antenna 21. ) May be transmitted to the communication device 30. The device number notification command includes the device number of the reader / writer 20. Accordingly, the administrator of the reader / writer 20 can manage the reader / writer 20 that has updated the program with the device number of the reader / writer 20.

また、通信装置30のメモリ容量等の関係により、更新用プログラムが複数に分割されている場合も想定される。この場合、制御部26は、更新コマンドを送信する処理、更新コマンドに対する応答として更新用プログラムの一部を含む更新レスポンスを受信する処理および更新用プログラムの一部を記憶部25に格納する処理を、この順序で繰り返し実行する。これらの処理は、1または複数の通信装置30との間で、更新用プログラムの最後の部分を含む更新レスポンスを受信するまで実行される。   In addition, the update program may be divided into a plurality of programs depending on the memory capacity of the communication device 30 and the like. In this case, the control unit 26 performs a process of transmitting an update command, a process of receiving an update response including a part of the update program as a response to the update command, and a process of storing a part of the update program in the storage unit 25. , Repeatedly in this order. These processes are executed until an update response including the last part of the update program is received with one or a plurality of communication devices 30.

制御部26は、例えば、ポーリングレスポンスまたは更新レスポンスに、更新用プログラムが分割された数を示す分割数が含まれている場合に、分割数回目に受信する更新レスポンスを更新用プログラムの最後の部分を含む更新レスポンスであると判断することができる。   For example, when the polling response or the update response includes the number of divisions indicating the number of divisions of the update program, the control unit 26 sends the update response received at the number of divisions the last part of the update program. It can be determined that the update response includes.

更新レスポンスには、更新用プログラムの一部の順番を示す値が含まれている場合がある。その場合には、制御部26は、更新用プログラムの一部を記憶部25に格納した後、格納した更新用プログラムの順番を示す値を分割数で除算した結果をステータスとして含むステータス通知コマンドを、アンテナ21を介して通信装置30に送信することとしてもよい。これによれば、管理者は、このステータスを把握することにより、リーダライタ20のプログラムの更新がどの程度まで完了したかについて把握することができるという効果を奏する。   The update response may include a value indicating a partial order of the update program. In that case, after storing a part of the update program in the storage unit 25, the control unit 26 outputs a status notification command including a result obtained by dividing the value indicating the order of the stored update program by the number of divisions as a status. Alternatively, the data may be transmitted to the communication device 30 via the antenna 21. According to this, there is an effect that the administrator can grasp to what extent the update of the program of the reader / writer 20 is completed by grasping this status.

また、制御部26は、例えば、更新レスポンスに、更新用プログラムの最後の部分である旨を示す情報が含まれている場合に、更新用プログラムの最後の部分を含む更新レスポンスであると判断することができる。   For example, when the update response includes information indicating that it is the last part of the update program, the control unit 26 determines that the update response includes the last part of the update program. be able to.

制御部26は、更新用プログラムの一部を含む更新レスポンスを受信すると、更新用プログラムの一部をRAM251に格納していく。その場合には、制御部26は、更新用プログラムの最後の部分をRAM251に格納すると、RAM251に格納された更新用プログラムの全部を不揮発性メモリ252に格納することとしてもよい。これによれば、制御部26は、更新用プログラムの一部を含む更新レスポンスを受信するたびに、不揮発性メモリ252に格納する必要がなくなるので、受信時の処理が速くなるという効果を奏する。   When receiving an update response including a part of the update program, the control unit 26 stores a part of the update program in the RAM 251. In that case, the control unit 26 may store the entire update program stored in the RAM 251 in the nonvolatile memory 252 when the last part of the update program is stored in the RAM 251. According to this, since the control unit 26 does not need to store the update response including a part of the update program in the nonvolatile memory 252, there is an effect that the processing at the time of reception becomes faster.

制御部26は、更新レスポンスに、更新用プログラムが分割されている場合における更新用プログラムの順番を示す値が含まれている場合も想定される。その場合に、制御部26は、順番通りに更新レスポンスを受信しているか否かを判断し、順番通りに更新レスポンスを受信していないと判断した場合には、その旨を出力することとしてもよい。   It is assumed that the control unit 26 also includes a value indicating the order of the update program when the update program is divided in the update response. In this case, the control unit 26 determines whether or not the update response is received in order, and if it is determined that the update response is not received in order, the control unit 26 may output that fact. Good.

制御部26は、更新用プログラムを含む更新レスポンスを受信すると、更新用プログラムが暗号化されている場合に、更新用プログラムを復号化して記憶部25に格納することとしてもよい。   When receiving the update response including the update program, the control unit 26 may decrypt the update program and store it in the storage unit 25 when the update program is encrypted.

制御部26は、要求信号を、所定の方式により符号化(暗号化)し、符号化した要求信号を変調部23に供給することとしてもよい。また、制御部26は、復調部24から供給された応答信号を、応答信号の符号化方式に対応する方式により復号することとしてもよい。例えば、制御部26は、要求信号に、例えば、マンチェスターコードへのコーディングなどの符号化処理を施し、これにより得られた信号を変調部23に出力する。また、制御部26は、応答信号が復調部24から供給されてきた場合、そのデータに対して、例えば、マンチェスターコードのデコードなどの復号処理を施す。   The control unit 26 may encode (encrypt) the request signal by a predetermined method and supply the encoded request signal to the modulation unit 23. In addition, the control unit 26 may decode the response signal supplied from the demodulation unit 24 by a method corresponding to the response signal encoding method. For example, the control unit 26 performs an encoding process such as coding on a Manchester code on the request signal and outputs a signal obtained thereby to the modulation unit 23. Further, when the response signal is supplied from the demodulation unit 24, the control unit 26 performs decoding processing such as Manchester code decoding on the data.

通信インタフェース部27は、コントローラ10との有線による通信が可能にされたものである。   The communication interface unit 27 is capable of wired communication with the controller 10.

通信装置の構成]
図3は、本実施形態に係る通信装置の構成例を示す図である。図3を参照して(適宜図1参照)、本実施形態に係る通信装置について説明する。
Configuration of communication device]
FIG. 3 is a diagram illustrating a configuration example of the communication apparatus according to the present embodiment. With reference to FIG. 3 (refer to FIG. 1 as appropriate), the communication apparatus according to the present embodiment will be described.

図3に示すように、本実施形態に係る通信装置30は、アンテナ(アンテナ部)31と、操作入力部32と、表示部33と、発振回路34と、変調部35と、電力発生部36と、復調部37と、制御部38と、記憶部39とを備える。   As illustrated in FIG. 3, the communication device 30 according to the present embodiment includes an antenna (antenna unit) 31, an operation input unit 32, a display unit 33, an oscillation circuit 34, a modulation unit 35, and a power generation unit 36. A demodulation unit 37, a control unit 38, and a storage unit 39.

アンテナ31は、無線による通信が可能にされた通信インタフェースである。アンテナ31は、リーダライタ20から送信されてきた要求信号を受信し、受信した要求信号を復調部37に供給する。また、アンテナ31は、変調部35から供給された応答信号を、無線通信により、リーダライタ20あてに送信する。すなわち、例えば、アンテナ31は、変調部35から供給された応答信号を伝送するための電波を放射する。また、アンテナ31においては、リーダライタ20から放射される所定の周波数の電波により、共振が生じ、起電力が発生する。   The antenna 31 is a communication interface that enables wireless communication. The antenna 31 receives the request signal transmitted from the reader / writer 20 and supplies the received request signal to the demodulation unit 37. Further, the antenna 31 transmits the response signal supplied from the modulation unit 35 to the reader / writer 20 by wireless communication. That is, for example, the antenna 31 radiates a radio wave for transmitting the response signal supplied from the modulation unit 35. Further, in the antenna 31, resonance occurs due to radio waves having a predetermined frequency radiated from the reader / writer 20, and electromotive force is generated.

操作入力部32は、管理者からの操作の入力を受け付けるものであり、ボタン等によって構成されるが、上記したように、ボタン以外のもの(タッチパネル等)であってもよい。   The operation input unit 32 receives an operation input from the administrator and is configured with buttons and the like, but may be other than a button (touch panel or the like) as described above.

表示部33は、ディスプレイ等によって構成されるものであり、制御部38から出力された情報(文字、数値等)を表示する。   The display unit 33 is configured by a display or the like, and displays information (characters, numerical values, etc.) output from the control unit 38.

発振回路34は、アンテナ31が受信する要求信号の周波数と同じ周波数のクロック信号を生成し、生成したクロック信号を変調部35に供給する。例えば、発振回路34は、PLL回路を内蔵し、要求信号のクロック周波数と同一の周波数のクロック信号を発生する。   The oscillation circuit 34 generates a clock signal having the same frequency as that of the request signal received by the antenna 31 and supplies the generated clock signal to the modulation unit 35. For example, the oscillation circuit 34 incorporates a PLL circuit and generates a clock signal having the same frequency as the clock frequency of the request signal.

変調部35は、発振回路34から供給された所定の周波数のクロック信号を基に、搬送波を生成する。変調部35は、搬送波に基づいて、制御部38から供給された応答信号を、所定の方式によって変調することにより、応答信号を生成し、変調した応答信号をアンテナ31に供給する。例えば、変調部35は、制御部38から供給された、マンチェスター方式により符号化された応答信号を、さらにASK変調し、変調した応答信号を、アンテナ31を介して、リーダライタ20に送信する。   The modulation unit 35 generates a carrier wave based on a clock signal having a predetermined frequency supplied from the oscillation circuit 34. Based on the carrier wave, the modulation unit 35 modulates the response signal supplied from the control unit 38 by a predetermined method to generate a response signal, and supplies the modulated response signal to the antenna 31. For example, the modulation unit 35 further performs ASK modulation on the response signal encoded by the Manchester method supplied from the control unit 38, and transmits the modulated response signal to the reader / writer 20 via the antenna 31.

また、例えば、変調部35は、制御部38から供給される応答信号に対して、所定のスイッチング素子(不図示)をオン、オフさせ、スイッチング素子がオン状態であるときだけ、所定の負荷をアンテナ31に並列に接続させる。これにより、アンテナ31の負荷を変動させる。ASK変調された応答信号は、アンテナ31の負荷の変動により、アンテナ31を介して、リーダライタ20に送信される(リーダライタ20のアンテナ21の端子電圧を変動させる)。   Further, for example, the modulation unit 35 turns on and off a predetermined switching element (not shown) with respect to the response signal supplied from the control unit 38, and applies a predetermined load only when the switching element is in an on state. The antenna 31 is connected in parallel. Thereby, the load of the antenna 31 is changed. The ASK-modulated response signal is transmitted to the reader / writer 20 via the antenna 31 due to a change in the load of the antenna 31 (the terminal voltage of the antenna 21 of the reader / writer 20 is changed).

電力発生部36は、アンテナ31に生じた交流の起電力を基に、直流電力を発生させ、発生させた直流電力を通信装置30の各部に供給する。   The power generation unit 36 generates DC power based on the AC electromotive force generated in the antenna 31 and supplies the generated DC power to each unit of the communication device 30.

復調部37は、アンテナ31から供給された要求信号を、変調部23(図2参照)の変調方式に対応する復調方式により復調し、復調した要求信号を制御部38に供給する。例えば、復調部37は、アンテナ31を介して受信したASK変調波である要求信号を包絡線検波して復調し、復調した要求信号を制御部38に出力する。   The demodulation unit 37 demodulates the request signal supplied from the antenna 31 by a demodulation method corresponding to the modulation method of the modulation unit 23 (see FIG. 2), and supplies the demodulated request signal to the control unit 38. For example, the demodulator 37 detects and demodulates a request signal that is an ASK modulated wave received via the antenna 31, and outputs the demodulated request signal to the controller 38.

制御部38は、例えば、CPUによって構成され、記憶部39に記憶されたプログラムを実行することで、その機能を実現する。   The control part 38 is comprised by CPU, for example, and implement | achieves the function by running the program memorize | stored in the memory | storage part 39. FIG.

制御部38は、復調部37から供給された要求信号が暗号化(符号化)されている場合には、要求信号を所定の方式により復号することとしてもよい。制御部38は、応答信号を、所定の符号化方式により符号化し、符号化した応答信号を変調部35に供給することとしてもよい。復調部37において復調されたデータがマンチェスター方式で符号化されている場合がある。その場合には、制御部38は、PLL(Phase Locked Loop)回路(不図示)から供給されるクロック信号に基づいて、そのデータの復号(マンチェスターコードのデコード)を行う。例えば、制御部38は、応答信号を、マンチェスター方式で符号化し、符号化した応答信号を変調部35に供給する。   When the request signal supplied from the demodulation unit 37 is encrypted (encoded), the control unit 38 may decrypt the request signal by a predetermined method. The control unit 38 may encode the response signal by a predetermined encoding method, and supply the encoded response signal to the modulation unit 35. Data demodulated by the demodulator 37 may be encoded by the Manchester method. In this case, the control unit 38 decodes the data (decodes Manchester code) based on a clock signal supplied from a PLL (Phase Locked Loop) circuit (not shown). For example, the control unit 38 encodes the response signal using the Manchester method, and supplies the encoded response signal to the modulation unit 35.

制御部38は、ポーリングコマンドを、アンテナ31を介して受信すると、ポーリングレスポンスを、アンテナ31を介して送信する。また、制御部38は、アンテナ31を介して更新コマンドをリーダライタ20から受信すると、アンテナ31を介して更新レスポンスをリーダライタ20に送信する。   When receiving the polling command via the antenna 31, the control unit 38 transmits a polling response via the antenna 31. Further, when receiving an update command from the reader / writer 20 via the antenna 31, the control unit 38 transmits an update response to the reader / writer 20 via the antenna 31.

記憶部39は、例えば、フラッシュメモリ、EEPROM、MRAM、FeRAMなどの不揮発性メモリ、RAMなどの揮発性メモリなどにより構成される。不揮発性メモリは、リーダライタ20に送信されるデータ(リーダライタ20の更新用プログラム等)、プログラムの実行に必要なデータなどの各種データを記録している。揮発性メモリは、プログラムの実行に必要なデータなどを適宜記憶する。揮発性メモリは、記憶しているデータを制御部38に供給する。   The storage unit 39 includes, for example, a flash memory, a nonvolatile memory such as an EEPROM, an MRAM, and an FeRAM, a volatile memory such as a RAM, and the like. The nonvolatile memory records various data such as data transmitted to the reader / writer 20 (update program for the reader / writer 20 and the like) and data necessary for execution of the program. The volatile memory appropriately stores data necessary for program execution. The volatile memory supplies the stored data to the control unit 38.

データ構成例]
図4は、本実施形態に係るデータ構成例を示す図であり、図4(a)は、機器番号通知コマンドのデータ構成例、図4(b)は、機器番号通知レスポンスのデータ構成例を示す図である。図4を参照して、本実施形態に係るデータ構成例について説明する。
Data configuration example]
FIG. 4 is a diagram illustrating a data configuration example according to the present embodiment. FIG. 4A is a data configuration example of a device number notification command, and FIG. 4B is a data configuration example of a device number notification response. FIG. A data configuration example according to the present embodiment will be described with reference to FIG.

図4(a)に示すように、機器番号通知コマンドは、機器番号通知コマンドを識別できる要求識別子51aと、通信を識別できる通信ID(IDm)51bと、リーダライタ20を識別できる機器番号51cとを含んで構成されている。   As shown in FIG. 4A, the device number notification command includes a request identifier 51a that can identify the device number notification command, a communication ID (IDm) 51b that can identify communication, and a device number 51c that can identify the reader / writer 20. It is comprised including.

図4(b)に示すように、機器番号通知レスポンスは、機器番号通知レスポンスを識別できる応答識別子52aと、通信を識別できる通信ID(IDm)52bと、リーダライタ20を識別できる結果コード52cとを含んで構成されている。   As shown in FIG. 4B, the device number notification response includes a response identifier 52a that can identify the device number notification response, a communication ID (IDm) 52b that can identify communication, and a result code 52c that can identify the reader / writer 20. It is comprised including.

図5は、本実施形態に係るデータ構成例を示す図であり、図5(a)は、FW更新コマンドのデータ構成例、図5(b)は、FW更新レスポンスのデータ構成例を示す図である。図5を参照して、本実施形態に係るデータ構成例について説明する。   FIG. 5 is a diagram illustrating a data configuration example according to the present embodiment. FIG. 5A is a data configuration example of an FW update command, and FIG. 5B is a diagram illustrating a data configuration example of an FW update response. It is. A data configuration example according to the present embodiment will be described with reference to FIG.

図5(a)に示すように、FW更新コマンドは、FW更新コマンドを識別できる要求識別子53aと、通信を識別できる通信ID53bとを含んで構成されている。   As shown in FIG. 5A, the FW update command includes a request identifier 53a that can identify the FW update command and a communication ID 53b that can identify communication.

図5(b)に示すように、FW更新レスポンスは、FW更新レスポンスを識別できる応答識別子54aと、通信を識別できる通信ID54bと、FW更新コマンドに対する結果コード54cと、リーダライタ20の更新用プログラム54dとを含んで構成されている。   As shown in FIG. 5B, the FW update response includes a response identifier 54a that can identify the FW update response, a communication ID 54b that can identify communication, a result code 54c for the FW update command, and an update program for the reader / writer 20 54d.

図6は、本実施形態に係るデータ構成例を示す図であり、図6(a)は、ステータス通知コマンドのデータ構成例、図6(b)は、ステータス通知レスポンスのデータ構成例を示す図である。図6を参照して、本実施形態に係るデータ構成例について説明する。   FIG. 6 is a diagram illustrating a data configuration example according to the present embodiment. FIG. 6A illustrates a data configuration example of a status notification command, and FIG. 6B illustrates a data configuration example of a status notification response. It is. A data configuration example according to the present embodiment will be described with reference to FIG.

図6(a)に示すように、ステータス通知コマンドは、ステータス通知コマンドを識別できる要求識別子55aと、通信を識別できる通信ID55bと、ステータス55cを含んで構成されている。   As shown in FIG. 6A, the status notification command includes a request identifier 55a that can identify the status notification command, a communication ID 55b that can identify communication, and a status 55c.

図6(b)に示すように、ステータス通知レスポンスは、ステータス通知レスポンスを識別できる応答識別子56aと、通信を識別できる通信ID56bと、ステータス通知コマンドに対する結果コード56cとを含んで構成されている。   As shown in FIG. 6B, the status notification response includes a response identifier 56a that can identify the status notification response, a communication ID 56b that can identify communication, and a result code 56c for the status notification command.

運用時の処理の流れ]
図7は、一般的な情報処理システムにおける運用時の処理の流れを示すシーケンス図である。図7を参照して(適宜他の図も参照)、一般的な情報処理システムにおける運用時の処理について説明する。
Flow of processing during operation]
FIG. 7 is a sequence diagram showing a flow of processing during operation in a general information processing system. With reference to FIG. 7 (refer to other figures as appropriate), processing during operation in a general information processing system will be described.

通常運用時は、コントローラ10からカード補足用コマンド(Pollingコマンド)を定期的に送信する。コントローラ10は、運用カード40の補足待ち受け状態となっており、Pollingレスポンスを受信することで運用カード40の認証処理を開始する。   During normal operation, a card supplement command (Polling command) is periodically transmitted from the controller 10. The controller 10 is in a standby state for supplementing the operation card 40, and starts the authentication process of the operation card 40 by receiving the Polling response.

図7に示すように、コントローラ10は、制御コマンドであるPolling(ポーリング)コマンド(RW)をリーダライタ20に送信する(ステップS101)。ここで、(RW)は、リーダライタ20との通信であることを示すものである。リーダライタ20は、コントローラ10からPolling(ポーリング)コマンド(RW)を受信すると、ACKをコントローラ10に送信する(ステップS102)とともに、Pollingコマンド(カード)を発信する(ステップS103)。ここで、(カード)は、運用カード40との通信であることを示すものである。リーダライタ20は、運用カード40からPollingレスポンス(カード)を受信しない間は、所定時間ごとに、Pollingコマンド(カード)を発信する(ステップS104、ステップS105)。   As shown in FIG. 7, the controller 10 transmits a polling command (RW), which is a control command, to the reader / writer 20 (step S101). Here, (RW) indicates communication with the reader / writer 20. When the reader / writer 20 receives a polling command (RW) from the controller 10, the reader / writer 20 transmits an ACK to the controller 10 (step S102) and transmits a polling command (card) (step S103). Here, (card) indicates communication with the operation card 40. While the reader / writer 20 does not receive a polling response (card) from the operation card 40, the reader / writer 20 transmits a polling command (card) every predetermined time (steps S104 and S105).

コントローラ10は、リーダライタ20からPollingレスポンス(RW)を受信しない間は、所定時間ごとに、Pollingコマンド(RW)をリーダライタ20に送信する(ステップS106)。リーダライタ20は、コントローラ10からPolling(ポーリング)コマンド(RW)を受信すると、ACKをコントローラ10に送信する(ステップS107)とともに、Pollingコマンド(カード)を発信する(ステップS108)。   While the controller 10 does not receive a polling response (RW) from the reader / writer 20, the controller 10 transmits a polling command (RW) to the reader / writer 20 every predetermined time (step S106). When the reader / writer 20 receives the Polling command (RW) from the controller 10, the reader / writer 20 transmits ACK to the controller 10 (step S107) and transmits a polling command (card) (step S108).

運用カード40がリーダライタ20にかざされると(P101)、リーダライタ20と運用カード40との間で通信が可能となる。リーダライタ20がPollingコマンド(カード)を発信すると(ステップS109)、運用カード40は、Pollingコマンド(カード)を受信し、Pollingレスポンス(カード)をリーダライタ20に送信する(ステップS110)。リーダライタ20は、運用カード40からPollingレスポンス(カード)を受信することで運用カード40を検出すると、Pollingレスポンス(RW)をコントローラ10に送信する(ステップS111)。このように、リーダライタ20は、運用カード40を検出すると、コントローラ10にPollingレスポンス(RW)を返す必要がある。   When the operation card 40 is held over the reader / writer 20 (P101), communication between the reader / writer 20 and the operation card 40 becomes possible. When the reader / writer 20 transmits a polling command (card) (step S109), the operation card 40 receives the polling command (card) and transmits a polling response (card) to the reader / writer 20 (step S110). When the reader / writer 20 receives the polling response (card) from the operation card 40 and detects the operation card 40, the reader / writer 20 transmits a polling response (RW) to the controller 10 (step S111). Thus, when the reader / writer 20 detects the operation card 40, it needs to return a polling response (RW) to the controller 10.

コントローラ10は、リーダライタ20からPollingレスポンス(RW)を受信すると、リーダライタ20に認証コマンド(RW)を送信する(ステップS112)。リーダライタ20は、コントローラ10から認証コマンド(RW)を受信すると、ACKをコントローラ10に送信する(ステップS113)とともに、運用カード40に認証コマンド(カード)を送信する(ステップS114)。運用カード40は、認証コマンド(カード)を受信すると、リーダライタ20に認証レスポンス(カード)を送信する(ステップS115)。リーダライタ20は、運用カード40から認証レスポンス(カード)を受信すると、コントローラ10に認証レスポンス(RW)を送信する(ステップS116)。   When receiving the polling response (RW) from the reader / writer 20, the controller 10 transmits an authentication command (RW) to the reader / writer 20 (step S112). Upon receiving the authentication command (RW) from the controller 10, the reader / writer 20 transmits an ACK to the controller 10 (step S113) and transmits an authentication command (card) to the operation card 40 (step S114). When receiving the authentication command (card), the operation card 40 transmits an authentication response (card) to the reader / writer 20 (step S115). When receiving the authentication response (card) from the operation card 40, the reader / writer 20 transmits an authentication response (RW) to the controller 10 (step S116).

一般的な情報処理システムにおけるプログラム更新時の処理の流れ]
図8は、一般的な情報処理システムにおけるプログラム更新時の処理の流れを示すシーケンス図である。図8を参照して(適宜他の図も参照)、一般的な情報処理システムにおけるプログラム更新時の処理について説明する。
Flow of processing when updating a program in a general information processing system]
FIG. 8 is a sequence diagram showing the flow of processing when updating a program in a general information processing system. With reference to FIG. 8 (refer to other figures as appropriate), processing at the time of program update in a general information processing system will be described.

一般的な情報処理システムにおいて、運用時にファームウェア更新処理を行おうとすると、Pollingコマンドを一時中断してコントローラ10からファームウェア更新用コマンドを送信しなければならない。そのため、コントローラ10の処理が通常運用時と異なるシーケンスとなる。また、リーダライタ20部分を異なる仕様のものに変更した場合、ファームウェア更新処理を新たに作り直す必要がある。   In a general information processing system, if a firmware update process is to be performed during operation, the polling command must be temporarily suspended and a firmware update command transmitted from the controller 10. Therefore, the processing of the controller 10 is a different sequence from that during normal operation. Further, when the reader / writer 20 is changed to one having a different specification, it is necessary to newly create a firmware update process.

図8に示すように、コントローラ10は、Polling(ポーリング)コマンド(RW)をリーダライタ20に送信する(ステップS101)。リーダライタ20は、コントローラ10からPollingコマンド(RW)を受信すると、ACKをコントローラ10に送信する(ステップS102)とともに、Pollingコマンド(カード)を発信する(ステップS103)。リーダライタ20は、運用カード40からPollingレスポンス(カード)を受信しない間は、所定時間ごとに、Pollingコマンド(カード)を発信する(ステップS104、ステップS105)。   As shown in FIG. 8, the controller 10 transmits a polling command (RW) to the reader / writer 20 (step S101). Upon receiving the Polling command (RW) from the controller 10, the reader / writer 20 transmits ACK to the controller 10 (Step S102) and transmits the Polling command (card) (Step S103). While the reader / writer 20 does not receive a polling response (card) from the operation card 40, the reader / writer 20 transmits a polling command (card) every predetermined time (steps S104 and S105).

コントローラ10は、リーダライタ20のプログラムを更新する場合には、リーダライタ20にAttentionコマンド(RW)を送信する(ステップS201)。リーダライタ20は、コントローラ10からAttentionコマンド(RW)を受信すると、コントローラ10にACKを送信する(ステップS202)とともに、Pollingコマンド(カード)の送信を中断する(ステップS203)。そして、コントローラ10にAttentionレスポンス(RW)を送信する(ステップS204)。   When updating the program of the reader / writer 20, the controller 10 transmits an Attention command (RW) to the reader / writer 20 (step S201). When the reader / writer 20 receives the attention command (RW) from the controller 10, the reader / writer 20 transmits ACK to the controller 10 (step S202) and interrupts transmission of the polling command (card) (step S203). Then, an Attention response (RW) is transmitted to the controller 10 (step S204).

コントローラ10は、リーダライタ20からAttentionレスポンス(RW)を受信すると、リーダライタ20にFW更新コマンド1(RW)を送信する(ステップS205)。ここで、FW更新コマンドNは、N回目のコマンドであることを意味している。ここでは、FW更新用プログラムが複数に分割されてリーダライタ20に送信される場合を想定している。リーダライタ20は、コントローラ10からFW更新コマンド1(RW)を受信すると、コントローラ10にACKを送信する(ステップS206)。それとともに、FW更新コマンド1(RW)に含まれているFW更新用プログラムでリーダライタ20のFWを更新する(ステップS207)。リーダライタ20は、FW更新が終わると、コントローラ10にFW更新レスポンス1(RW)を送信する(ステップS208)。ここで、FW更新レスポンスNについても、コマンドの場合と同様に、N回目のレスポンスであることを意味している。   When receiving the Attention response (RW) from the reader / writer 20, the controller 10 transmits an FW update command 1 (RW) to the reader / writer 20 (step S205). Here, the FW update command N means the Nth command. Here, it is assumed that the FW update program is divided into a plurality of parts and transmitted to the reader / writer 20. Upon receiving the FW update command 1 (RW) from the controller 10, the reader / writer 20 transmits ACK to the controller 10 (step S206). At the same time, the FW of the reader / writer 20 is updated by the FW update program included in the FW update command 1 (RW) (step S207). When the FW update ends, the reader / writer 20 transmits an FW update response 1 (RW) to the controller 10 (step S208). Here, the FW update response N also means the Nth response as in the case of the command.

コントローラ10は、リーダライタ20からFW更新レスポンス1(RW)を受信すると、リーダライタ20にFW更新コマンド2(RW)を送信する(ステップS209)。リーダライタ20は、コントローラ10からFW更新コマンド2(RW)を受信すると、コントローラ10にACKを送信する(ステップS210)。それとともに、FW更新コマンド1(RW)に含まれているFW更新用プログラムでリーダライタ20のFWを更新する(ステップS211)。リーダライタ20は、FW更新が終わると、コントローラ10にFW更新レスポンス2(RW)を送信する(ステップS212)。   When receiving the FW update response 1 (RW) from the reader / writer 20, the controller 10 transmits the FW update command 2 (RW) to the reader / writer 20 (step S209). Upon receiving the FW update command 2 (RW) from the controller 10, the reader / writer 20 transmits ACK to the controller 10 (step S210). At the same time, the FW of the reader / writer 20 is updated by the FW update program included in the FW update command 1 (RW) (step S211). When the FW update is completed, the reader / writer 20 transmits an FW update response 2 (RW) to the controller 10 (step S212).

コントローラ10は、FW更新用プログラムの最後の部分を含むFW更新レスポンスを受信すると、リーダライタ20にResetコマンド(RW)を送信する(ステップS213)。リーダライタ20は、コントローラ10からResetコマンド(RW)を受信すると、コントローラ10にACKを送信する(ステップS214)。それとともに、リーダライタ20の電源を再投入して更新後のFWを有効にし、コントローラ10にResetレスポンス(RW)を送信する(ステップS215)。コントローラ10とリーダライタ20との間のFW切り替えが完了する(ステップS216)。   When receiving the FW update response including the last part of the FW update program, the controller 10 transmits a Reset command (RW) to the reader / writer 20 (step S213). When the reader / writer 20 receives a Reset command (RW) from the controller 10, the reader / writer 20 transmits an ACK to the controller 10 (step S214). At the same time, the reader / writer 20 is turned on again to enable the updated FW, and a Reset response (RW) is transmitted to the controller 10 (step S215). The FW switching between the controller 10 and the reader / writer 20 is completed (step S216).

本実施形態に係る情報処理システムにおけるプログラム更新時の処理の流れ]
図9は、本実施形態に係る情報処理システムにおけるプログラム更新時の処理の流れを示すシーケンス図である。図9を参照して(適宜他の図も参照)、本実施形態に係る情報処理システムにおけるプログラム更新時の処理について説明する。
Flow of processing when updating a program in the information processing system according to the present embodiment]
FIG. 9 is a sequence diagram showing the flow of processing when updating a program in the information processing system according to the present embodiment. With reference to FIG. 9 (refer to other figures as appropriate), processing at the time of program update in the information processing system according to the present embodiment will be described.

本実施形態に係る情報処理システムでは、リーダライタ20がFW更新用カード等の通信装置30を補足した際、自発的に通信装置30に対してFW更新用コマンドを送信する。また、FW更新時にコントローラ10からPollingコマンドが送信された場合、リーダライタ20はACKレスポンスを返送することで、Pollingコマンドを実行しているように振舞う。これにより、コントローラ10側に意識させることなく、FWの更新を実施できる。FWの更新処理完了後は、更新前と同様にPolingコマンドを受けて運用時の動作を行うことができる。   In the information processing system according to the present embodiment, when the reader / writer 20 supplements the communication device 30 such as an FW update card, the FW update command is spontaneously transmitted to the communication device 30. Further, when a polling command is transmitted from the controller 10 at the time of FW update, the reader / writer 20 behaves as if executing the polling command by returning an ACK response. Thereby, FW can be updated without making the controller 10 aware. After the FW update process is completed, the Poling command can be received and the operation at the time of operation can be performed as before the update.

また、携帯機器等の通信装置30を通信対象として、機器番号通知コマンド(ステップS301)とステータス通知コマンド(ステップS306)を使用してリーダライタ20のプログラムのバージョンを管理することとしてもよい。この場合、リーダライタ20は、通信装置30を検出すると、自分の機器番号を通信装置30に対して通知するコマンドを発行する。続いて、FWの更新を行う。このとき、FWの更新を行った後に、ステータス通知コマンドを発行することで、通信装置30に対して更新状態を通知することができる。これにより、通信装置30でのプログレスバーの表示や、上記した機器番号通知と組み合わせることにより、どのリーダライタ20のプログラムが更新されたかという情報を管理することができる。   Alternatively, the version of the program of the reader / writer 20 may be managed using the device number notification command (step S301) and the status notification command (step S306) with the communication device 30 such as a portable device as a communication target. In this case, when the reader / writer 20 detects the communication device 30, it issues a command for notifying the communication device 30 of its own device number. Subsequently, the FW is updated. At this time, the update state can be notified to the communication device 30 by issuing a status notification command after updating the FW. Thus, information indicating which reader / writer 20 program has been updated can be managed by combining the progress bar display on the communication device 30 and the above-described device number notification.

図9に示すように、コントローラ10は、Polling(ポーリング)コマンド(RW)をリーダライタ20に送信する(ステップS101)。リーダライタ20は、コントローラ10からPollingコマンド(RW)を受信すると、ACKをコントローラ10に送信する(ステップS102)とともに、Pollingコマンド(通信装置)を発信する(ステップS109)。通信装置30がリーダライタ20にかざされている場合には(P201)、通信装置30は、Pollingコマンド(通信装置)を受信し、リーダライタ20にPollingレスポンス(通信装置)を送信する(ステップS110)。この後、リーダライタ20と通信装置30との間で相互認証を行うこととしてもよい。このように、本実施形態において、リーダライタ20は、通信装置30を検出した場合に、コントローラ10に対してレスポンス信号を返信しない(レスポンス信号の返信を制限する)。したがって、コントローラ10は、リーダライタ20が通信装置30と通信していることを認識しない。   As shown in FIG. 9, the controller 10 transmits a polling command (RW) to the reader / writer 20 (step S101). Upon receiving the Polling command (RW) from the controller 10, the reader / writer 20 transmits ACK to the controller 10 (Step S102) and transmits the Polling command (communication device) (Step S109). When the communication device 30 is held over the reader / writer 20 (P201), the communication device 30 receives a polling command (communication device) and transmits a polling response (communication device) to the reader / writer 20 (step S110). ). Thereafter, mutual authentication may be performed between the reader / writer 20 and the communication device 30. As described above, in the present embodiment, the reader / writer 20 does not return a response signal to the controller 10 when the communication device 30 is detected (restricts response signal return). Therefore, the controller 10 does not recognize that the reader / writer 20 is communicating with the communication device 30.

リーダライタ20は、通信装置30からPollingレスポンス(通信装置)を受信すると、通信装置30に機器番号通知コマンド(通信装置)を送信する(ステップS301)。通信装置30は、リーダライタ20から機器番号通知コマンド(通信装置)を受信すると、リーダライタ20に機器番号通知レスポンス(通信装置)を送信する(ステップS302)。   Upon receiving the Polling response (communication device) from the communication device 30, the reader / writer 20 transmits a device number notification command (communication device) to the communication device 30 (step S301). Upon receiving the device number notification command (communication device) from the reader / writer 20, the communication device 30 transmits a device number notification response (communication device) to the reader / writer 20 (step S302).

リーダライタ20は、通信装置30から機器番号通知レスポンス(通信装置)を受信すると、通信装置30にFW更新コマンド1(通信装置)を送信する(ステップS303)。通信装置30は、リーダライタ20からFW更新コマンド1(RW)を受信すると、リーダライタ20にFW更新レスポンス1(通信装置)を送信する(ステップS304)。リーダライタ20は、通信装置30からFW更新レスポンス1(通信装置)を受信すると、FW更新レスポンス1(通信装置)に含まれているFW更新用プログラムでリーダライタ20のFWを更新する(ステップS305)。   Upon receiving the device number notification response (communication device) from the communication device 30, the reader / writer 20 transmits the FW update command 1 (communication device) to the communication device 30 (step S303). Upon receiving the FW update command 1 (RW) from the reader / writer 20, the communication device 30 transmits an FW update response 1 (communication device) to the reader / writer 20 (step S304). Upon receiving the FW update response 1 (communication device) from the communication device 30, the reader / writer 20 updates the FW of the reader / writer 20 with the FW update program included in the FW update response 1 (communication device) (step S305). ).

リーダライタ20は、FW更新が終わると、通信装置30にステータス通知コマンド1(通信装置)を送信する(ステップS306)。通信装置30は、リーダライタ20からステータス通知コマンド1(通信装置)を受信すると、リーダライタ20にステータス通知レスポンス1(通信装置)を送信する(ステップS307)。   When the FW update is completed, the reader / writer 20 transmits a status notification command 1 (communication device) to the communication device 30 (step S306). When receiving the status notification command 1 (communication device) from the reader / writer 20, the communication device 30 transmits the status notification response 1 (communication device) to the reader / writer 20 (step S307).

リーダライタ20は、通信装置30からステータス通知レスポンス1(通信装置)を受信すると、通信装置30にFW更新コマンド2(通信装置)を送信する(ステップS308)。通信装置30は、リーダライタ20からFW更新コマンド2(RW)を受信すると、リーダライタ20にFW更新レスポンス2(通信装置)を送信する(ステップS309)。リーダライタ20は、通信装置30からFW更新レスポンス2(通信装置)を受信すると、FW更新レスポンス2(通信装置)に含まれているFW更新用プログラムでリーダライタ20のFWを更新する(ステップS310)。   Upon receiving the status notification response 1 (communication device) from the communication device 30, the reader / writer 20 transmits the FW update command 2 (communication device) to the communication device 30 (step S308). Upon receiving the FW update command 2 (RW) from the reader / writer 20, the communication device 30 transmits an FW update response 2 (communication device) to the reader / writer 20 (step S309). Upon receiving the FW update response 2 (communication device) from the communication device 30, the reader / writer 20 updates the FW of the reader / writer 20 with the FW update program included in the FW update response 2 (communication device) (step S310). ).

リーダライタ20は、FW更新が終わると、通信装置30にステータス通知コマンド2(通信装置)を送信する(ステップS311)。通信装置30は、リーダライタ20からステータス通知コマンド2(通信装置)を受信すると、リーダライタ20にステータス通知レスポンス2(通信装置)を送信する(ステップS312)。   When the FW update is completed, the reader / writer 20 transmits a status notification command 2 (communication device) to the communication device 30 (step S311). Upon receiving the status notification command 2 (communication device) from the reader / writer 20, the communication device 30 transmits a status notification response 2 (communication device) to the reader / writer 20 (step S312).

コントローラ10は、FW更新用プログラムの最後の部分を含むFW更新レスポンスを受信すると、FWの更新処理を完了する(ステップS313)。なお、リーダライタ20は、すべての更新用プログラムが不揮発性メモリ252に書き込まれたら更新用プログラムを有効にすることとしてもよいし、また、リーダライタ20の電源再投入処理の際に受信した更新用プログラムの全てを有効にする処理を実行してもよい。更新用プログラムを有効にする処理の実行により、更新用プログラムの切り替えが完了する。   Upon receiving the FW update response including the last part of the FW update program, the controller 10 completes the FW update process (step S313). Note that the reader / writer 20 may validate the update program when all the update programs are written to the nonvolatile memory 252, or the update received during the power-on process of the reader / writer 20 A process for validating all of the programs for use may be executed. By executing the process for enabling the update program, the switching of the update program is completed.

その後、リーダライタ20は、Pollingコマンド(カード)を発信し(ステップS108)、運用カード40がリーダライタ20にかざされると(P101)、リーダライタ20と運用カード40との間で通信が可能となる。リーダライタ20がPollingコマンド(カード)を発信すると(ステップS109)、運用カード40は、Pollingコマンド(カード)を受信し、Pollingレスポンス(カード)をリーダライタ20に送信する(ステップS110)。リーダライタ20は、運用カード40からPollingレスポンス(カード)を受信することで運用カード40を検出すると、Pollingレスポンス(RW)をコントローラ10に送信する(ステップS111)。このように、リーダライタ20は、運用カード40を検出すると、コントローラ10にPollingレスポンス(RW)を返す必要がある。   Thereafter, the reader / writer 20 transmits a polling command (card) (step S108), and when the operation card 40 is held over the reader / writer 20 (P101), communication between the reader / writer 20 and the operation card 40 is possible. Become. When the reader / writer 20 transmits a polling command (card) (step S109), the operation card 40 receives the polling command (card) and transmits a polling response (card) to the reader / writer 20 (step S110). When the reader / writer 20 detects the operation card 40 by receiving the Polling response (card) from the operation card 40, the reader / writer 20 transmits a Polling response (RW) to the controller 10 (step S111). As described above, when the reader / writer 20 detects the operation card 40, it needs to return a polling response (RW) to the controller 10.

[9.通信装置の表示部に表示される画面例(その1)]
図10は、通信装置の表示部に表示される画面例(その1)を示す図である。図10を参照して(適宜他の図も参照)、通信装置の表示部に表示される画面例(その1)について説明する。
[9. Screen example displayed on the display unit of the communication device (part 1)]
FIG. 10 is a diagram illustrating a screen example (part 1) displayed on the display unit of the communication apparatus. With reference to FIG. 10 (refer to other figures as appropriate), a screen example (part 1) displayed on the display unit of the communication apparatus will be described.

図10に示すように、表示部33には、通信装置30が保持しているリーダライタ20の更新用プログラムのバージョンを表示することとしてもよい。また、バージョンが複数に分割されている場合には、更新用プログラムの一部の順番を示す値と分割数とを表示することとしてもよい。図10に示した例では、4/4、1/4、2/4等、更新用プログラムの一部の順番を示す値を分子、分割数を分母とする分数で示されている。   As shown in FIG. 10, the display unit 33 may display the version of the update program of the reader / writer 20 held by the communication device 30. If the version is divided into a plurality of parts, a value indicating the order of a part of the update program and the number of divisions may be displayed. In the example shown in FIG. 10, the values indicating the order of a part of the update program, such as 4/4, 1/4, 2/4, etc., are shown as fractions with the numerator and the division number as the denominator.

表示部33には、リーダライタ20の管理者が操作入力部32を介して更新用プログラムの一部または全体を選択できるようなチェック欄が表示されていることとしてもよい。更新用プログラムの一部または更新用プログラム全体が選択された状態で、リーダライタ20の管理者が操作入力部32を介して実行を入力し、通信装置30をリーダライタ20にかざすと、通信装置30は、選択されたプログラムを含むFW更新コマンドをリーダライタ20に送信することができる。   The display unit 33 may display a check field that allows the administrator of the reader / writer 20 to select part or all of the update program via the operation input unit 32. When the administrator of the reader / writer 20 inputs execution through the operation input unit 32 and the communication device 30 is held over the reader / writer 20 in a state where a part of the update program or the entire update program is selected, the communication device 30 can transmit an FW update command including the selected program to the reader / writer 20.

[10.通信装置の表示部に表示される画面例(その2)]
図11は、通信装置の表示部に表示される画面例(その2)を示す図である。図11を参照して(適宜他の図も参照)、通信装置の表示部に表示される画面例(その2)について説明する。
[10. Screen example displayed on the display unit of the communication device (part 2)]
FIG. 11 is a diagram illustrating a screen example (part 2) displayed on the display unit of the communication apparatus. With reference to FIG. 11 (refer to other figures as appropriate), a screen example (part 2) displayed on the display unit of the communication apparatus will be described.

図11に示すように、リーダライタ20が更新用プログラムの一部の更新を終えると、通信装置30は、リーダライタ20から機器番号通知レスポンスによって通知された機器番号を表示することとしてもよい。図11に示す例では、(機器番号:1)のリーダライタ20のプログラムが更新された旨が表示されている。   As shown in FIG. 11, when the reader / writer 20 finishes updating a part of the update program, the communication device 30 may display the device number notified from the reader / writer 20 by the device number notification response. In the example shown in FIG. 11, the fact that the program of the reader / writer 20 (device number: 1) has been updated is displayed.

また、図11に示すように、リーダライタ20が更新用プログラムの一部または全体の更新を終えると、通信装置30は、リーダライタ20からステータス通知レスポンスによって通知されたステータスを表示することとしてもよい。図11に示す例では、更新用プログラム全体の25%だけプログラムが更新された旨がプログレスバーに表示されている。   As shown in FIG. 11, when the reader / writer 20 finishes updating part or all of the update program, the communication device 30 may display the status notified from the reader / writer 20 by the status notification response. Good. In the example shown in FIG. 11, the progress bar indicates that the program has been updated by 25% of the entire update program.

[11.通信装置の表示部に表示される画面例(その3)]
図12は、通信装置の表示部に表示される画面例(その3)を示す図である。図12を参照して(適宜他の図も参照)、通信装置の表示部に表示される画面例(その3)について説明する。
[11. Example of screen displayed on display unit of communication device (part 3)]
FIG. 12 is a diagram illustrating a screen example (part 3) displayed on the display unit of the communication apparatus. With reference to FIG. 12 (refer to other figures as appropriate), a screen example (part 3) displayed on the display unit of the communication apparatus will be described.

図12に示すように、リーダライタ20が更新用プログラムの全体の更新を終えると、更新用プログラム全体が更新された旨がプログレスバーに表示されている。また、リーダライタ20の電源を再投入すると、更新後のプログラムが有効となり、更新後のプログラムに切り替わる旨の表示をしてもよい。   As shown in FIG. 12, when the reader / writer 20 finishes updating the entire update program, the progress bar displays that the entire update program has been updated. In addition, when the reader / writer 20 is turned on again, the updated program becomes valid, and a display may be displayed to switch to the updated program.

[12.本実施形態による効果]
コントローラ10からのコマンドは運用時に常時使用しているコマンドであり、リーダライタ20と更新用ファームウェアを格納した通信装置30のみでファームウェアの更新が可能である。したがって、コントローラ10側にファームウェア更新用のソフトウェアを用意する必要がなく、コントローラ10のソフトウェアを開発するサービス事業者の開発負担が少ない。
[12. Effects of this embodiment]
The command from the controller 10 is a command that is always used during operation, and the firmware can be updated only by the reader / writer 20 and the communication device 30 storing the update firmware. Therefore, it is not necessary to prepare firmware update software on the controller 10 side, and the development burden on the service provider developing software for the controller 10 is small.

更新用ファームウェアを通信装置30内に格納して受け渡しすることができるため、輸送時のセキュリティリスクが少ない。また、リーダライタ20以外から更新用ファームウェアデータを読み出すことができないため、ファームウェアの改竄が困難である。   Since the update firmware can be stored in the communication device 30 and delivered, there is little security risk during transportation. Further, since firmware data for update cannot be read from other than the reader / writer 20, it is difficult to tamper with the firmware.

[13.本実施形態の変形例]
上記では、添付図面を参照しながら本発明の好適な実施形態について説明したが、本発明は係る例に限定されないことは言うまでもない。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。
[13. Modification of this embodiment]
In the above, preferred embodiments of the present invention have been described with reference to the accompanying drawings. However, it goes without saying that the present invention is not limited to such examples. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

本実施形態に係る情報処理システムの構成例を示す図である。It is a figure which shows the structural example of the information processing system which concerns on this embodiment. 本実施形態に係るリーダライタの構成例を示す図である。It is a figure which shows the structural example of the reader / writer which concerns on this embodiment. 本実施形態に係る通信装置の構成例を示す図である。It is a figure which shows the structural example of the communication apparatus which concerns on this embodiment. 本実施形態に係るデータ構成例を示す図であり、図4(a)は、機器番号通知コマンドのデータ構成例、図4(b)は、機器番号通知レスポンスのデータ構成例を示す図である。FIG. 4A is a diagram illustrating a data configuration example according to the present embodiment, FIG. 4A is a diagram illustrating a data configuration example of a device number notification command, and FIG. 4B is a diagram illustrating a data configuration example of a device number notification response. . 本実施形態に係るデータ構成例を示す図であり、図5(a)は、FW更新コマンドのデータ構成例、図5(b)は、FW更新レスポンスのデータ構成例を示す図である。FIG. 5A is a diagram illustrating a data configuration example according to the present embodiment, FIG. 5A is a diagram illustrating a data configuration example of a FW update command, and FIG. 5B is a diagram illustrating a data configuration example of a FW update response. 本実施形態に係るデータ構成例を示す図であり、図6(a)は、ステータス通知コマンドのデータ構成例、図6(b)は、ステータス通知レスポンスのデータ構成例を示す図である。FIG. 6A is a diagram illustrating a data configuration example according to the present embodiment, FIG. 6A is a diagram illustrating a data configuration example of a status notification command, and FIG. 6B is a diagram illustrating a data configuration example of a status notification response. 一般的な情報処理システムにおける運用時の処理の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of the process at the time of operation | use in a general information processing system. 一般的な情報処理システムにおけるプログラム更新時の処理の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of a process at the time of the program update in a general information processing system. 本実施形態に係る情報処理システムにおけるプログラム更新時の処理の流れを示すシーケンス図である。It is a sequence diagram which shows the flow of the process at the time of the program update in the information processing system which concerns on this embodiment. 通信装置の表示部に表示される画面例(その1)を示す図である。It is a figure which shows the example of a screen displayed on the display part of a communication apparatus (the 1). 通信装置の表示部に表示される画面例(その2)を示す図である。It is a figure which shows the example of a screen displayed on the display part of a communication apparatus (the 2). 通信装置の表示部に表示される画面例(その3)を示す図である。It is a figure which shows the example (the 3) of a screen displayed on the display part of a communication apparatus.

符号の説明Explanation of symbols

1 通信システム
2 改札機
10 コントローラ
20 リーダライタ
21 アンテナ
22 発振回路
23 変調部
24 復調部
25 記憶部
26 制御部
27 通信インタフェース部
30 通信装置
31 アンテナ
32 操作入力部
33 表示部
34 発振回路
35 変調部
36 電力発生部
37 復調部
38 制御部
39 記憶部
40 運用カード
51c 機器番号
54d 更新用プログラム
55c ステータス
251 RAM
252 不揮発性メモリ
DESCRIPTION OF SYMBOLS 1 Communication system 2 Ticket gate 10 Controller 20 Reader / writer 21 Antenna 22 Oscillation circuit 23 Modulation part 24 Demodulation part 25 Storage part 26 Control part 27 Communication interface part 30 Communication apparatus 31 Antenna 32 Operation input part 33 Display part 34 Oscillation circuit 35 Modulation part 36 Power generation unit 37 Demodulation unit 38 Control unit 39 Storage unit 40 Operation card 51c Device number 54d Update program 55c Status 251 RAM
252 Nonvolatile memory

Claims (14)

無線による通信が可能にされたアンテナ部と、
コントローラとの有線による通信が可能にされた通信インタフェース部と、
情報を記憶することが可能にされた記憶部と、
前記無線による通信が可能か否かを問い合わせる旨を示すポーリングコマンドを、前記アンテナ部を介して送信し、当該ポーリングコマンドに対する応答として更新用プログラムを保持する通信装置から前記無線による通信が可能である旨を示すポーリングレスポンスを、前記アンテナ部を介して受信すると、前記アンテナ部を介して前記更新用プログラムの送信を要求する旨を示す更新コマンドを前記通信装置に送信し、前記通信装置から前記アンテナ部を介して当該更新コマンドに対する応答として当該更新用プログラムを含む更新レスポンスを受信すると、当該更新用プログラムを前記記憶部に格納する制御部と、
を備える、リーダライタ。
An antenna unit capable of wireless communication;
A communication interface unit capable of wired communication with the controller;
A storage unit capable of storing information; and
A polling command indicating whether or not the wireless communication is possible is transmitted via the antenna unit, and the wireless communication is possible from a communication device that holds an update program as a response to the polling command. When a polling response indicating that is received via the antenna unit, an update command indicating that transmission of the update program is requested is transmitted to the communication device via the antenna unit, and the antenna is transmitted from the communication device. When an update response including the update program is received as a response to the update command via the unit, the control unit stores the update program in the storage unit;
A reader / writer.
前記制御部は、
前記アンテナ部を介して受信したレスポンスに前記更新用プログラムを保持する通信装置を識別できる情報が含まれる場合に、当該レスポンスが前記ポーリングレスポンスであると判断する、
請求項1に記載のリーダライタ。
The controller is
When the response received via the antenna unit includes information that can identify the communication device that holds the update program, the response is determined to be the polling response.
The reader / writer according to claim 1.
前記記憶部は、
前記リーダライタを識別できる番号である機器番号を記憶し、
前記制御部は、
前記ポーリングレスポンスを、前記アンテナ部を介して受信すると、前記アンテナ部を介して前記更新コマンドを前記通信装置に送信する前に、前記アンテナ部を介して前記機器番号を含む機器番号通知コマンドを前記通信装置に送信する、
請求項2に記載のリーダライタ。
The storage unit
Storing a device number which is a number for identifying the reader / writer;
The controller is
When the polling response is received via the antenna unit, the device number notification command including the device number is transmitted via the antenna unit before the update command is transmitted to the communication device via the antenna unit. Send to communication device,
The reader / writer according to claim 2.
前記制御部は、
前記更新用プログラムの最後の部分を含む更新レスポンスを受信するまで、1または複数の前記通信装置との間で、前記更新コマンドを送信する処理、当該更新コマンドに対する応答として当該更新用プログラムの一部を含む更新レスポンスを受信する処理および当該更新用プログラムの一部を前記記憶部に格納する処理を、この順序で実行する、
請求項2に記載のリーダライタ。
The controller is
Until receiving an update response including the last part of the update program, a process of transmitting the update command to one or a plurality of the communication devices, a part of the update program as a response to the update command A process of receiving an update response including the process of storing a part of the update program in the storage unit in this order,
The reader / writer according to claim 2.
前記制御部は、
前記ポーリングレスポンスまたは更新レスポンスに、前記更新用プログラムが分割された数を示す分割数が含まれている場合に、当該分割数回目に受信する前記更新レスポンスを前記更新用プログラムの最後の部分を含む更新レスポンスであると判断する、
請求項4に記載のリーダライタ。
The controller is
When the polling response or update response includes a division number indicating the number of divisions of the update program, the update response received at the division number of times includes the last part of the update program Judge that it is an update response,
The reader / writer according to claim 4.
前記制御部は、
前記更新レスポンスに、前記更新用プログラムの一部の順番を示す値が含まれている場合に、前記更新用プログラムの一部を前記記憶部に格納した後、当該格納した更新用プログラムの順番を示す値を前記分割数で除算した結果をステータスとして含むステータス通知コマンドを、前記アンテナ部を介して前記通信装置に送信する、
請求項5に記載のリーダライタ。
The controller is
When the update response includes a value indicating the order of a part of the update program, after storing a part of the update program in the storage unit, the order of the stored update program is changed. A status notification command including a result obtained by dividing the indicated value by the number of divisions as a status is transmitted to the communication device via the antenna unit;
The reader / writer according to claim 5.
前記制御部は、
前記更新レスポンスに、前記更新用プログラムの最後の部分である旨を示す情報が含まれている場合に、前記更新用プログラムの最後の部分を含む更新レスポンスであると判断する、
請求項4に記載のリーダライタ。
The controller is
When the update response includes information indicating that it is the last part of the update program, it is determined that the update response includes the last part of the update program.
The reader / writer according to claim 4.
前記記憶部は、
揮発性メモリと、不揮発性メモリとを含んで構成され、
前記制御部は、
前記更新用プログラムの一部を含む更新レスポンスを受信すると、当該更新用プログラムの一部を前記揮発性メモリに格納し、前記更新用プログラムの最後の部分を前記揮発性メモリに格納すると、当該揮発性メモリに格納された更新用プログラムの全部を前記不揮発性メモリに格納する、
請求項5乃至請求項7のいずれかに記載のリーダライタ。
The storage unit
A volatile memory and a nonvolatile memory,
The controller is
When an update response including a part of the update program is received, a part of the update program is stored in the volatile memory, and when the last part of the update program is stored in the volatile memory, the volatile Storing all of the update program stored in the non-volatile memory in the non-volatile memory;
The reader / writer according to claim 5.
前記制御部は、
前記更新レスポンスに、前記更新用プログラムが分割されている場合における当該更新用プログラムの順番を示す値が含まれている場合に、当該順番通りに当該更新レスポンスを受信しているか否かを判断し、当該順番通りに当該更新レスポンスを受信していないと判断した場合には、その旨を出力する、
請求項4に記載のリーダライタ。
The controller is
When the update response includes a value indicating the order of the update program when the update program is divided, it is determined whether the update response is received in the order. If it is determined that the update response has not been received in that order, a message to that effect is output.
The reader / writer according to claim 4.
前記制御部は、
前記更新用プログラムを含む更新レスポンスを受信すると、当該更新用プログラムが暗号化されている場合に、当該更新用プログラムを復号化して前記記憶部に格納する、
請求項2に記載のリーダライタ。
The controller is
When receiving an update response including the update program, if the update program is encrypted, the update program is decrypted and stored in the storage unit.
The reader / writer according to claim 2.
前記制御部は、
前記通信装置から前記ポーリングレスポンスを、前記アンテナ部を介して受信すると、前記コントローラに対するレスポンス信号の返信を制限する
請求項1に記載のリーダライタ。
The controller is
The reader / writer according to claim 1, wherein when the polling response is received from the communication device via the antenna unit, response of the response signal to the controller is limited.
無線による通信が可能にされたアンテナ部と、コントローラとの有線による通信が可能にされた通信インタフェース部と、情報を記憶することが可能にされた記憶部と、制御部と、を備えるリーダライタの当該制御部が、
前記無線による通信が可能か否かを問い合わせる旨を示すポーリングコマンドを、前記アンテナ部を介して送信するステップと、
当該ポーリングコマンドに対する応答として更新用プログラムを保持する通信装置から前記無線による通信が可能である旨を示すポーリングレスポンスを、前記アンテナ部を介して受信すると、前記アンテナ部を介して前記更新用プログラムの送信を要求する旨を示す更新コマンドを前記通信装置に送信するステップと、
前記通信装置から前記アンテナ部を介して当該更新コマンドに対する応答として当該更新用プログラムを含む更新レスポンスを受信すると、当該更新用プログラムを前記記憶部に格納するステップと、
を含む、プログラム更新方法。
A reader / writer comprising an antenna unit capable of wireless communication, a communication interface unit capable of wired communication with a controller, a storage unit capable of storing information, and a control unit The control section of
Transmitting a polling command indicating that the wireless communication is possible or not through the antenna unit;
When a polling response indicating that wireless communication is possible is received from the communication device that holds the update program as a response to the polling command via the antenna unit, the update program is updated via the antenna unit. Transmitting an update command indicating requesting transmission to the communication device;
When receiving an update response including the update program as a response to the update command from the communication device via the antenna unit, storing the update program in the storage unit;
A program update method including
リーダライタと、通信装置とを備えた通信システムであって、
前記リーダライタは、
無線による通信が可能にされたアンテナ部と、
コントローラとの有線による通信が可能にされた通信インタフェース部と、
情報を記憶することが可能にされた記憶部と、
前記無線による通信が可能か否かを問い合わせる旨を示すポーリングコマンドを、前記アンテナ部を介して送信し、当該ポーリングコマンドに対する応答として更新用プログラムを保持する前記通信装置から前記無線による通信が可能である旨を示すポーリングレスポンスを、前記アンテナ部を介して受信すると、前記アンテナ部を介して前記更新用プログラムの送信を要求する旨を示す更新コマンドを前記通信装置に送信し、前記通信装置から前記アンテナ部を介して当該更新コマンドに対する応答として当該更新用プログラムを含む更新レスポンスを受信すると、当該更新用プログラムを前記記憶部に格納する制御部と、
を有し、
前記通信装置は、
前記無線による通信が可能にされたアンテナ部と、
前記更新用プログラムを記憶する記憶部と、
前記ポーリングコマンドを、前記アンテナ部を介して受信すると、前記ポーリングレスポンスを、前記アンテナ部を介して送信し、前記アンテナ部を介して前記更新コマンドを前記リーダライタから受信すると、前記アンテナ部を介して前記更新レスポンスを前記リーダライタに送信する制御部と、
を有する、通信システム。
A communication system comprising a reader / writer and a communication device,
The reader / writer is
An antenna unit capable of wireless communication;
A communication interface unit capable of wired communication with the controller;
A storage unit capable of storing information; and
The wireless communication is possible from the communication device that transmits a polling command indicating whether or not the wireless communication is possible through the antenna unit and holds the update program as a response to the polling command. When a polling response indicating that there is received via the antenna unit, an update command indicating that transmission of the update program is requested via the antenna unit is transmitted to the communication device, and the communication device transmits the update command. Upon receiving an update response including the update program as a response to the update command via the antenna unit, a control unit that stores the update program in the storage unit;
Have
The communication device
An antenna unit capable of wireless communication;
A storage unit for storing the update program;
When the polling command is received via the antenna unit, the polling response is transmitted via the antenna unit. When the update command is received from the reader / writer via the antenna unit, the polling response is transmitted via the antenna unit. A control unit for transmitting the update response to the reader / writer,
A communication system.
無線による通信が可能にされたアンテナ部と、コントローラとの有線による通信が可能にされた通信インタフェース部と、情報を記憶することが可能にされた記憶部と、制御部とを有するリーダライタと、前記無線による通信が可能にされたアンテナ部と、更新用プログラムを記憶する記憶部と、制御部とを有する通信装置とを備えた通信システムによる通信方法であって、
前記リーダライタの前記制御部が、
前記無線による通信が可能か否かを問い合わせる旨を示すポーリングコマンドを、前記アンテナ部を介して送信するステップと、
前記通信装置の前記制御部が、
前記ポーリングコマンドを、前記アンテナ部を介して受信すると、当該ポーリングコマンドに対する応答として前記無線による通信が可能である旨を示すポーリングレスポンスを、前記アンテナ部を介して送信するステップと、
前記リーダライタの前記制御部が、
前記ポーリングレスポンスを、前記アンテナ部を介して受信すると、前記アンテナ部を介して前記更新用プログラムの送信を要求する旨を示す更新コマンドを前記通信装置に送信するステップと、
前記通信装置の前記制御部が、
前記アンテナ部を介して前記更新コマンドを前記リーダライタから受信すると、前記アンテナ部を介して当該更新コマンドに対する応答として当該更新用プログラムを含む更新レスポンスを前記リーダライタに送信するステップと、
前記リーダライタの前記制御部が、
前記通信装置から前記アンテナ部を介して前記更新レスポンスを受信すると、当該更新用プログラムを前記記憶部に格納するステップと、
を含む、通信方法。
A reader / writer having an antenna unit capable of wireless communication, a communication interface unit capable of wired communication with a controller, a storage unit capable of storing information, and a control unit A communication method using a communication system comprising a communication device having an antenna unit capable of wireless communication, a storage unit storing an update program, and a control unit,
The control unit of the reader / writer is
Transmitting a polling command indicating that the wireless communication is possible or not through the antenna unit;
The control unit of the communication device,
When the polling command is received via the antenna unit, a polling response indicating that wireless communication is possible as a response to the polling command is transmitted via the antenna unit;
The control unit of the reader / writer is
When the polling response is received via the antenna unit, an update command indicating that transmission of the update program is requested via the antenna unit is transmitted to the communication device;
The control unit of the communication device,
When the update command is received from the reader / writer via the antenna unit, an update response including the update program is transmitted to the reader / writer as a response to the update command via the antenna unit;
The control unit of the reader / writer is
When receiving the update response from the communication device via the antenna unit, storing the update program in the storage unit;
Including a communication method.
JP2008226028A 2008-09-03 2008-09-03 Reader/writer, program update method, communication system and communication method Withdrawn JP2010061367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008226028A JP2010061367A (en) 2008-09-03 2008-09-03 Reader/writer, program update method, communication system and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008226028A JP2010061367A (en) 2008-09-03 2008-09-03 Reader/writer, program update method, communication system and communication method

Publications (1)

Publication Number Publication Date
JP2010061367A true JP2010061367A (en) 2010-03-18

Family

ID=42188105

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008226028A Withdrawn JP2010061367A (en) 2008-09-03 2008-09-03 Reader/writer, program update method, communication system and communication method

Country Status (1)

Country Link
JP (1) JP2010061367A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012185563A (en) * 2011-03-03 2012-09-27 Jr East Mechatronics Co Ltd Reader-writer management system, reader-writer management method, and program
JP2012216894A (en) * 2011-03-31 2012-11-08 Miharu Communications Co Ltd Method of updating software for catv transmission line apparatus and catv transmission line apparatus usable for the same
JP2016524771A (en) * 2014-06-27 2016-08-18 華為技術有限公司Huawei Technologies Co.,Ltd. Method and device for updating program data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012185563A (en) * 2011-03-03 2012-09-27 Jr East Mechatronics Co Ltd Reader-writer management system, reader-writer management method, and program
JP2012216894A (en) * 2011-03-31 2012-11-08 Miharu Communications Co Ltd Method of updating software for catv transmission line apparatus and catv transmission line apparatus usable for the same
JP2016524771A (en) * 2014-06-27 2016-08-18 華為技術有限公司Huawei Technologies Co.,Ltd. Method and device for updating program data

Similar Documents

Publication Publication Date Title
TWI474645B (en) Systems and methods for providing nfc secure application support in battery-off mode when no nonvolatile memory write access is available
CN101965597B (en) Method and devices for installing and retrieving linked MIFARE applications
US10769284B2 (en) Information processing apparatus and method, recording medium, and program
US10291398B2 (en) Communication device, communication method, reader/writer, and communication system
JP2008262513A (en) Information processing system, management information processor, and program
JP2007034764A (en) Ic tag, ic tag control method and ic tag system
JP2010061367A (en) Reader/writer, program update method, communication system and communication method
JP5467315B2 (en) Information processing apparatus, information processing method, and program
JP5101378B2 (en) Reader / Writer, Communication Processing Device, Communication Processing Method, Data Management System, and Communication System
JP2009059124A (en) Reader/writer system and reader/writer
JP2009070158A (en) Information processor, software update control method, program, and information processing system
KR20080004804A (en) System and method for authenticating rfid reader(or terminal), secure rfid tag for authenticating rfid reader(or terminal) and recording medium
CN109643238A (en) It is installed via the operating system of RF identification chip
JP2006157392A (en) Information processing apparatus and method, recording medium and communication control program
JP4234035B2 (en) IC tag management system
JP4457241B2 (en) Information processing system, reader / writer, information processing apparatus, access restriction management method, and program
CN102043972B (en) Information processing apparatus, communication apparatus, and program
JP2006155189A (en) Information processing system, device and method for processing information, recording medium, and program
JP6947166B2 (en) Information processing device and information processing method
JP4792868B2 (en) Execution authority delegation system, execution authority delegation method
JP2016081117A (en) Ic card, portable electronic device, and manufacturing method for ic card
JP2013225335A (en) Information processing apparatus, method and program
JP5875772B2 (en) Portable electronic device, control method for portable electronic device, and processing system for portable electronic device
JP2008040971A (en) Information processor, method, and program
JP5787692B2 (en) IC card, portable electronic device, and IC card control method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20111206