[go: up one dir, main page]

JP5941865B2 - Server apparatus, electronic coupon management method, communication system, and program - Google Patents

Server apparatus, electronic coupon management method, communication system, and program Download PDF

Info

Publication number
JP5941865B2
JP5941865B2 JP2013074423A JP2013074423A JP5941865B2 JP 5941865 B2 JP5941865 B2 JP 5941865B2 JP 2013074423 A JP2013074423 A JP 2013074423A JP 2013074423 A JP2013074423 A JP 2013074423A JP 5941865 B2 JP5941865 B2 JP 5941865B2
Authority
JP
Japan
Prior art keywords
terminal device
coupon
user
electronic coupon
electronic
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.)
Active
Application number
JP2013074423A
Other languages
Japanese (ja)
Other versions
JP2014199541A (en
Inventor
将人 山田
将人 山田
祐太 坂本
祐太 坂本
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.)
NTT Docomo Inc
Original Assignee
NTT Docomo Inc
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 NTT Docomo Inc filed Critical NTT Docomo Inc
Priority to JP2013074423A priority Critical patent/JP5941865B2/en
Publication of JP2014199541A publication Critical patent/JP2014199541A/en
Application granted granted Critical
Publication of JP5941865B2 publication Critical patent/JP5941865B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明は、IC(Integrated Circuit)チップや不揮発性メモリ、ハードディスク等の記憶手段に記憶された電子クーポンの利用を適切に管理する技術に関する。   The present invention relates to a technique for appropriately managing the use of electronic coupons stored in storage means such as an IC (Integrated Circuit) chip, a non-volatile memory, and a hard disk.

近年、スマートフォンや携帯電話機向けの電子クーポンサービスが提供されている。この電子クーポンサービスによれば、ユーザは、自己の端末装置に電子クーポンをダウンロードして、店舗に設置されたリーダ/ライタで読み取るだけで、電子クーポンを利用することができる。例えば、非接触IC通信対応端末から電子クーポンを利用する場合にはリーダ/ライタと非接触通信を行い、IC通信非対応端末から電子クーポンを利用する場合は、QRコード(株式会社デンソーウェーブの登録商標、以下同様)等のバーコード識別情報を画面に表示し、バーコード読み取り装置でクーポン情報等の送受信が行われる。   In recent years, electronic coupon services for smartphones and mobile phones have been provided. According to this electronic coupon service, the user can use the electronic coupon simply by downloading the electronic coupon to his / her terminal device and reading it with a reader / writer installed in the store. For example, when using an electronic coupon from a non-contact IC communication compatible terminal, contactless communication with a reader / writer is performed, and when using an electronic coupon from a non-IC communication compatible terminal, a QR code (Registered by Denso Wave Co., Ltd.) Barcode identification information such as a trademark (the same applies hereinafter) is displayed on the screen, and coupon information and the like are transmitted and received by the barcode reader.

この電子クーポンサービスが提供されるにあたっては、電子クーポンの提供又は利用枚数に制限が課せられる場合がある。例えば、特許文献1に記載のクーポン発行サーバでは、携帯端末ごとに電子クーポンの配布回数を管理し、各携帯端末に配布される電子クーポンの枚数が所定の枚数に制限される。また特許文献2に記載のクーポン発行サーバでは、発行されたクーポンの識別情報をQRコードに変換し、各クーポン識別情報の使用履歴をサーバ側で管理することにより、QRコードの複製による電子クーポンの不正利用を防止する。   When this electronic coupon service is provided, restrictions may be imposed on the provision or use number of electronic coupons. For example, in the coupon issue server described in Patent Document 1, the number of electronic coupons distributed is managed for each mobile terminal, and the number of electronic coupons distributed to each mobile terminal is limited to a predetermined number. Moreover, in the coupon issuing server described in Patent Document 2, the identification information of the issued coupon is converted into a QR code, and the usage history of each coupon identification information is managed on the server side, so that the electronic coupon by copying the QR code can be obtained. Prevent unauthorized use.

特開2007−072906号公報JP 2007-072906 A 特開2011−145997号公報JP 2011-145997 A

しかし、何れの特許文献においても、取得済のクーポンを利用するまでは当該ユーザはどの端末からでも再取得することが可能な利用環境や、所謂マルチデバイス利用や携帯端末の機種変更などの利用環境を想定していなかった。そのため、複数の携帯端末からある1つの電子クーポンを利用する場合でも、電子クーポンの発行や使用記録が複数生じる可能性があり、サーバ側で適正なクーポンの使用管理が出来ない場合が考えられる。   However, in any patent document, the user can re-acquire from any terminal until he / she uses the acquired coupon, or the use environment such as so-called multi-device use or mobile terminal model change. Was not supposed. For this reason, even when one electronic coupon is used from a plurality of portable terminals, there is a possibility that a plurality of electronic coupons are issued and used, and the use of appropriate coupons cannot be managed on the server side.

具体的には、特許文献1に記載のクーポン発行サーバでは、携帯端末ごとに電子クーポンの配布枚数を所定の枚数に制限することは可能であるが、ユーザごとに電子クーポンの配布枚数を所定の枚数に制限することはできない。例えば、1人のユーザが複数の端末装置を使用する場合には、当該ユーザは、単一の端末装置を使用するユーザよりも多くの電子クーポンの配布を受けることができてしまう。   Specifically, in the coupon issue server described in Patent Document 1, it is possible to limit the number of electronic coupons distributed for each portable terminal to a predetermined number, but the number of electronic coupons distributed for each user is a predetermined number. The number cannot be limited. For example, when one user uses a plurality of terminal devices, the user can receive more electronic coupons than a user who uses a single terminal device.

また特許文献2に記載のクーポン発行サーバでは、クーポン購入者の会員番号情報毎に記憶されたクーポン識別情報で一意に区別できるよう管理しており、複数の使用を認める場合に使用回数をカウントすることは可能であるものの、購入者のクーポン使用履歴を管理する構成となっている。そのため、正規に購入したユーザからクーポンの配布を受けた場合や複数や偽造等により盗用された場合など、クーポン識別情報に含まれている購入者の使用回数にカウントされてしまい、他ユーザによる意図しない使用により正規に購入したユーザが利用できない場合が生じてしまう。   Moreover, in the coupon issue server of patent document 2, it manages so that it can identify uniquely by the coupon identification information memorize | stored for every member number information of the coupon purchaser, and counts the frequency | count of use when permitting several use. It is possible to manage the purchaser's coupon usage history. For this reason, when a coupon is distributed from a user who has made a regular purchase, or when it is stolen due to multiple or counterfeiting, it is counted as the number of times the purchaser is included in the coupon identification information. In some cases, the user who has purchased the product cannot use the product due to the use of the product that has not been used.

本発明は、このような事情に鑑みてなされたものであり、1人のユーザによって使用される複数の端末装置のそれぞれに同一の電子クーポンが提供される場合であっても、その制限枚数を超えて当該電子クーポンが利用されることを防止することを目的とする。   The present invention has been made in view of such circumstances, and even when the same electronic coupon is provided to each of a plurality of terminal devices used by one user, the limit number of sheets is set. It is intended to prevent the electronic coupon from being used beyond.

上記の課題を解決するため、本発明は、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御部と、端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力部とを備えるサーバ装置を提供する。   In order to solve the above-described problems, the present invention provides a user ID for identifying a user of the terminal device and a memory area of the terminal device when the electronic coupon is provided to the terminal device. Storage control for controlling to store the date and time of writing or coupon writing information including information specified based on the date and time of writing of the electronic coupon to the memory area of the terminal device in association with each other. And when the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the storage unit are stored in association with each other. An output unit that outputs a signal permitting use of the electronic coupon by the terminal device when the coupon writing information matches. To provide a server device.

好ましい態様において、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDとクーポン書込情報とが前記記憶部において対応づけられて記憶されている場合に、当該クーポン書込情報を、別のクーポン書込情報に更新するよう制御する更新制御部と、端末装置に対して電子クーポンが提供される際に、当該端末装置に対して、当該端末装置が有するメモリ領域に前記電子クーポンを書き込むよう指示する書込指示部と、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDとクーポン書込情報とが前記記憶部において対応づけられて記憶されている場合に、前記書込指示部により当該端末装置に対して、当該端末装置が有するメモリ領域に前記電子クーポンを書き込むよう指示が行われる前に、当該端末装置のユーザを識別するユーザIDと対応づけて、前記記憶部において、当該ユーザが使用する端末装置による電子クーポンの利用を禁止すべき旨を示す利用禁止フラグを設定するよう制御するとともに、前記更新制御部により、前記記憶部において当該ユーザIDと対応づけて記憶されているクーポン書込情報が、別のクーポン書込情報に更新されるように制御された後に、当該ユーザIDと対応づけて設定されている前記利用禁止フラグを解除するよう制御するフラグ設定部とをさらに備え、前記出力部は、前記端末装置によって前記電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合であっても、前記記憶部において当該ユーザIDに対応づけて利用禁止フラグが設定されている場合には、当該端末装置による前記電子クーポンの利用を拒絶する信号を出力してもよい。   In a preferred aspect, when an electronic coupon is provided to a terminal device, a user ID for identifying a user of the terminal device and coupon writing information are stored in association with each other in the storage unit. When the electronic coupon is provided to the terminal device and an update control unit that controls the coupon writing information to be updated to another coupon writing information, the terminal device has the terminal device. The write instruction unit that instructs to write the electronic coupon in the memory area, and when the electronic coupon is provided to the terminal device, the user ID for identifying the user of the terminal device and the coupon writing information are stored in the memory And the electronic device is stored in the memory area of the terminal device with respect to the terminal device by the writing instruction unit. Use indicating that the use of an electronic coupon by a terminal device used by the user should be prohibited in the storage unit in association with a user ID that identifies the user of the terminal device Control to set a prohibition flag, and control by the update control unit to update the coupon writing information stored in association with the user ID in the storage unit to another coupon writing information And a flag setting unit that controls to release the use prohibition flag set in association with the user ID, and the output unit uses the electronic coupon by the terminal device. In addition, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the storage unit If the use prohibition flag is set in association with the user ID in the storage unit even if the coupon writing information stored with the electronic coupon matches, the electronic coupon by the terminal device is set. A signal may be output that rejects the use of.

また、好ましい態様において、前記更新制御部は、前記更新制御を、電子クーポンが提供される前記端末装置に対して前記書込指示部により当該端末装置のメモリ領域に前記クーポンを書き込むよう指示が行われ、当該書込処理が当該端末装置において行われた後であって、当該書込処理の結果が前記サーバ装置に通知された後に実行してもよい。   Moreover, in a preferred aspect, the update control unit instructs the update control to write the coupon in the memory area of the terminal device by the write instruction unit to the terminal device to which the electronic coupon is provided. It may be executed after the writing process is performed in the terminal apparatus and after the result of the writing process is notified to the server apparatus.

また、好ましい態様において、前記フラグ設定部は、端末装置に対して電子クーポンが提供される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合には、前記記憶部において、当該端末装置のユーザを識別するユーザIDと対応づけて利用禁止フラグを設定するように制御しないようにしてもよい。   Moreover, in a preferable aspect, when the electronic coupon is provided to the terminal device, the flag setting unit includes coupon writing information acquired from the terminal device, and a user ID for identifying a user of the terminal device; When the coupon writing information stored in association with the storage unit matches, the use prohibition flag is set in the storage unit in association with the user ID for identifying the user of the terminal device. You may make it not control.

また、好ましい態様において、前記フラグ設定部は、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと対応づけてクーポン書込情報が前記記憶部において記憶されていない場合には、前記記憶部において、当該端末装置のユーザを識別するユーザIDと対応づけて利用禁止フラグを設定するように制御しないようにしてもよい。   Moreover, in a preferable aspect, when the electronic coupon is provided to the terminal device, the flag setting unit stores coupon writing information in the storage unit in association with a user ID for identifying the user of the terminal device. If not, the storage unit may not be controlled to set the use prohibition flag in association with the user ID for identifying the user of the terminal device.

また、好ましい態様において、前記出力部は、前記端末装置によって前記電子クーポンが利用される際に、当該端末装置のユーザを識別するユーザIDと前記記憶部において利用禁止フラグが設定されている場合であっても、当該電子クーポンが、その利用枚数が制限されていない電子クーポンである場合には、当該端末装置による前記電子クーポンの利用を許可する信号を出力してもよい。   Moreover, in a preferable aspect, when the electronic coupon is used by the terminal device, the output unit includes a user ID for identifying a user of the terminal device and a use prohibition flag set in the storage unit. Even when the electronic coupon is an electronic coupon whose number of use is not limited, a signal permitting the use of the electronic coupon by the terminal device may be output.

また、好ましい態様において、前記出力部は、前記端末装置によって前記電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致しない場合であっても、当該電子クーポンが、その利用枚数が制限されていない電子クーポンである場合には、当該端末装置による前記電子クーポンの利用を許可する信号を出力してもよい。   Moreover, in a preferable aspect, when the electronic coupon is used by the terminal device, the output unit includes coupon writing information acquired from the terminal device, a user ID for identifying a user of the terminal device, and the Even when the coupon writing information stored in association with the storage unit does not match, if the electronic coupon is an electronic coupon whose number of use is not limited, A signal permitting use of the electronic coupon may be output.

また、本発明は、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御ステップと、端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力ステップとを有する電子クーポン管理方法を提供する。   In addition, the present invention provides a user ID for identifying a user of the terminal device and a date and time when the electronic coupon is written in a memory area of the terminal device when the electronic coupon is provided to the terminal device. A storage control step for controlling to store in the storage unit the coupon writing information including information specified based on the date and time when the electronic coupon is written to the memory area of the terminal device; When an electronic coupon is used, coupon writing information acquired from the terminal device, a user ID for identifying a user of the terminal device, and coupon writing information stored in association with the storage unit An electronic step having an output step of outputting a signal permitting the use of the electronic coupon by the terminal device if the two match. To provide a pop management method.

また、本発明は、サーバ装置と複数の端末装置とを備える通信システムであって、前記サーバ装置は、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御部と、端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力部とを備え、前記複数の端末装置はそれぞれ、前記サーバ装置に対して電子クーポンの提供を要求する際に、当該端末装置のユーザを識別するユーザIDと、クーポン書込情報のうち、少なくともユーザIDを前記サーバ装置に送信することを特徴とする通信システムを提供する。   The present invention is also a communication system including a server device and a plurality of terminal devices, wherein the server device identifies a user of the terminal device when an electronic coupon is provided to the terminal device. Coupon writing information including ID and information specified based on the date and time when the electronic coupon was written in the memory area of the terminal device or the date and time when the electronic coupon was written to the memory area of the terminal device And a storage control unit that controls to store them in the storage unit, and when the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device and the user of the terminal device are identified The user ID and the coupon writing information stored in association with each other in the storage unit match the terminal device An output unit that outputs a signal permitting use of the child coupon, and each of the plurality of terminal devices identifies a user of the terminal device when requesting the server device to provide an electronic coupon A communication system is provided that transmits at least a user ID among an ID and coupon writing information to the server device.

また、本発明は、コンピュータに、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御ステップと、端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力ステップとを実行させるためのプログラムを提供する。   Further, according to the present invention, when an electronic coupon is provided to a terminal device, the electronic coupon is written in a user ID for identifying a user of the terminal device and a memory area of the terminal device. A storage control step of controlling to store in the storage unit the coupon writing information including information specified based on the date and time or the date and time when writing of the electronic coupon is instructed to the memory area of the terminal device; When the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the coupon writing stored in association with the storage unit An output step of outputting a signal permitting use of the electronic coupon by the terminal device when the information matches Providing a program for execution.

本発明によれば、一のユーザによって使用される複数の端末装置のそれぞれに同一の電子クーポンが提供された場合であっても、電子クーポンが利用される際に、クーポンIDに加えて当該端末装置から取得されるクーポン書込情報を用いて利用許否を判定するため、その制限枚数を超えて当該電子クーポンが利用されることを防止することができる。   According to the present invention, even when the same electronic coupon is provided to each of a plurality of terminal devices used by one user, when the electronic coupon is used, the terminal in addition to the coupon ID Since the use permission / inhibition is determined using the coupon writing information acquired from the apparatus, it is possible to prevent the electronic coupon from being used beyond the limit number.

通信システム1の構成を示す図である。1 is a diagram illustrating a configuration of a communication system 1. FIG. ASPサーバ10のハードウェア構成を示すブロック図である。2 is a block diagram showing a hardware configuration of an ASP server 10. FIG. クーポン管理テーブル131のデータ構造を示す図である。It is a figure which shows the data structure of the coupon management table 131. FIG. ユーザ管理テーブル132のデータ構造を示す図である。It is a figure which shows the data structure of the user management table. 利用管理テーブル133のデータ構造を示す図である。It is a figure which shows the data structure of the use management table 133. 端末装置20のハードウェア構成を示すブロック図である。3 is a block diagram showing a hardware configuration of a terminal device 20. FIG. ASPサーバ10の機能ブロック図である。2 is a functional block diagram of an ASP server 10. FIG. 通信システム1の動作を示すシーケンスチャートである。3 is a sequence chart showing the operation of the communication system 1. 端末装置20のUI部24に表示される画面の一例を示す図である。6 is a diagram illustrating an example of a screen displayed on a UI unit 24 of the terminal device 20. FIG. セット開始処理を示すフローチャートである。It is a flowchart which shows a set start process. データテーブルの更新の一例を示す図である。It is a figure which shows an example of the update of a data table. セット確定処理を示すフローチャートである。It is a flowchart which shows a set confirmation process. データテーブルの更新の一例を示す図である。It is a figure which shows an example of the update of a data table. データテーブルの更新の一例を示す図である。It is a figure which shows an example of the update of a data table. データテーブルの更新の一例を示す図である。It is a figure which shows an example of the update of a data table. 利用許否判定処理を示すフローチャートである。It is a flowchart which shows use permission determination processing. データテーブルの更新の一例を示す図である。It is a figure which shows an example of the update of a data table. 通信システム1の動作事例を示す図である。3 is a diagram illustrating an operation example of the communication system 1. FIG. 通信システム1Aの構成を示す図である。It is a figure which shows the structure of 1 A of communication systems. ASPサーバ10Aのハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of ASP server 10A. ユーザ管理テーブル132Aのデータ構造を示す図である。It is a figure which shows the data structure of 132 A of user management tables. 利用管理テーブル133Aのデータ構造を示す図である。It is a figure which shows the data structure of 133 A of usage management tables. 端末装置20Cのハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the terminal device 20C. 通信システム1Aの動作を示すシーケンスチャートである。It is a sequence chart which shows operation | movement of the communication system 1A. 発行処理を示すフローチャートである。It is a flowchart which shows issue processing. 利用許否判定処理を示すフローチャートである。It is a flowchart which shows use permission determination processing.

1.第1実施形態
1−1.構成
以下、図面を参照しつつ本発明の第1実施形態について説明する。図1は、本実施形態に係る通信システム1の構成を示す図である。通信システム1は、図1に示されるように、ASP(Application Service Provider)サーバ10と、端末装置20と、店舗管理サーバ30と、店舗端末40と、アプリケーション管理サーバ50とを備える。
1. First embodiment 1-1. Configuration Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram illustrating a configuration of a communication system 1 according to the present embodiment. As shown in FIG. 1, the communication system 1 includes an ASP (Application Service Provider) server 10, a terminal device 20, a store management server 30, a store terminal 40, and an application management server 50.

ASPサーバ10は、端末装置20に対して電子クーポンサービスを提供するサーバ装置である。ASPサーバ10は、端末装置20からの要求に応じて、複数のサービス提供者により提供される電子クーポンを端末装置20に提供する。   The ASP server 10 is a server device that provides an electronic coupon service to the terminal device 20. In response to a request from the terminal device 20, the ASP server 10 provides the terminal device 20 with an electronic coupon provided by a plurality of service providers.

端末装置20は、例えばスマートフォンであり、ASPサーバ10から提供される電子クーポンを取得する。なお、端末装置20はスマートフォンに限らず、携帯電話機やタブレット端末、パーソナルコンピュータ、PDA(Personal Digital Assistant)等の他の端末装置であってもよい。   The terminal device 20 is a smartphone, for example, and acquires an electronic coupon provided from the ASP server 10. The terminal device 20 is not limited to a smartphone, but may be another terminal device such as a mobile phone, a tablet terminal, a personal computer, or a PDA (Personal Digital Assistant).

店舗管理サーバ30は、端末装置20により電子クーポンが利用される場合に、電子クーポンの利用の許否についての問い合わせをASPサーバ10に送信し、かつ、その問い合わせに対する回答をASPサーバ10から受信するコンピュータ装置である。   When the electronic coupon is used by the terminal device 20, the store management server 30 transmits an inquiry about whether or not to use the electronic coupon to the ASP server 10 and receives an answer to the inquiry from the ASP server 10. Device.

店舗端末40は、電子クーポンを利用することができる店舗に設置されるコンピュータ装置である。店舗端末40は、端末装置20が備える非接触式ICカードとの間で無線通信を行ってデータの読み書きを行うリーダ/ライタ41を有し、リーダ/ライタ41により読み取ったデータを店舗管理サーバ30に送信する。また、店舗端末40は、店舗管理サーバ30から、電子クーポンの利用の許否についての情報を受信して、その情報に基づいて電子クーポンの決済を行う。   The store terminal 40 is a computer device installed in a store where an electronic coupon can be used. The store terminal 40 includes a reader / writer 41 that performs wireless communication with the non-contact IC card included in the terminal device 20 to read / write data, and stores data read by the reader / writer 41. Send to. Further, the store terminal 40 receives information about whether or not to use the electronic coupon from the store management server 30 and performs settlement of the electronic coupon based on the information.

アプリケーション管理サーバ50は、端末装置20における電子クーポンの書込処理を管理するコンピュータ装置である。   The application management server 50 is a computer device that manages the electronic coupon writing process in the terminal device 20.

通信システム1では、ASPサーバ10、端末装置20、店舗管理サーバ30及びアプリケーション管理サーバ50はそれぞれネットワークNWに接続されている。ネットワークNWは、例えば、移動体通信網、ゲートウェイ及びインターネットを含む通信網である。店舗管理サーバ30と店舗端末40とは、例えば専用の通信回線で接続されている。   In the communication system 1, the ASP server 10, the terminal device 20, the store management server 30, and the application management server 50 are each connected to a network NW. The network NW is a communication network including, for example, a mobile communication network, a gateway, and the Internet. The store management server 30 and the store terminal 40 are connected by, for example, a dedicated communication line.

なお、図1には、端末装置20が1台だけ図示されているが、実際には、電子クーポンサービスを受けることができる端末装置20は複数存在してもよい。また、店舗管理サーバ30は、一店舗につき一台設置されてもよいし、複数店舗につき一台設置されてもよいし、サービス提供者毎に一台ずつ設置されてもよい。また、店舗端末40は、電子クーポンを利用可能な各店舗に設置され、実際には複数存在してもよい。また、店舗端末40は、必ずしも非接触IC通信に対応していなくてもよく、QRコード等の二次元化されたバーコードを携帯端末の画面に表示させ、リーダを用いて電子クーポンを読み取るような構成であってもよい。   In FIG. 1, only one terminal device 20 is illustrated, but actually, there may be a plurality of terminal devices 20 that can receive the electronic coupon service. Further, one store management server 30 may be installed per store, one store may be installed per plurality of stores, or one may be installed for each service provider. Moreover, the shop terminal 40 is installed in each shop which can use an electronic coupon, and actually there may exist two or more. Further, the store terminal 40 does not necessarily support non-contact IC communication, and displays a two-dimensional barcode such as a QR code on the screen of the portable terminal and reads an electronic coupon using a reader. It may be a simple configuration.

図2は、ASPサーバ10のハードウェア構成を示すブロック図である。図2に示されるように、ASPサーバ10は、制御部11と、通信部12と、記憶部13とを備える。   FIG. 2 is a block diagram illustrating a hardware configuration of the ASP server 10. As shown in FIG. 2, the ASP server 10 includes a control unit 11, a communication unit 12, and a storage unit 13.

制御部11は、CPU(Central Processing Unit)、ROM(Read Only Memory)及びRAM(Random Access Memory)を備えるマイクロプロセッサである。CPUは、ROMや記憶部13に記憶されたプログラムをRAMに読み出して実行することにより、ASPサーバ10の各部を制御する。   The control unit 11 is a microprocessor including a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory). The CPU controls each unit of the ASP server 10 by reading the program stored in the ROM or the storage unit 13 into the RAM and executing it.

通信部12は、ネットワークNWに接続するためのインタフェースである。制御部11は、通信部12によりネットワークNW経由で接続された外部装置と通信する。   The communication unit 12 is an interface for connecting to the network NW. The control unit 11 communicates with an external device connected via the network NW by the communication unit 12.

記憶部13は、例えばハードディスク装置を備え、制御部11により実行される電子クーポンサービスの提供に必要なプログラムを記憶する。また、記憶部13は、クーポン管理テーブル131、ユーザ管理テーブル132及び利用管理テーブル133を記憶する。   The storage unit 13 includes a hard disk device, for example, and stores a program necessary for providing an electronic coupon service executed by the control unit 11. In addition, the storage unit 13 stores a coupon management table 131, a user management table 132, and a usage management table 133.

なお、記憶部13は、電子クーポンサービスの提供に関する別の情報を記憶してもよい。例えば、記憶部13は、電子クーポンの提供対象とするユーザの条件(年齢や性別等のユーザ属性)や、電子クーポンの提供期間、電子クーポンの利用可能期間等を記憶してもよい。しかし、本実施形態ではそれらの説明については省略する。また、本実施形態に係る電子クーポンは、電子バリューとも呼ばれる電子データであり、紙媒体として提供又は利用されるわけではない。しかし、以下の説明ではその説明の便宜上、電子クーポンの助数詞を「枚」とする。   In addition, the memory | storage part 13 may memorize | store another information regarding provision of an electronic coupon service. For example, the storage unit 13 may store the conditions (user attributes such as age and sex) of the user to be provided with the electronic coupon, the provision period of the electronic coupon, the usable period of the electronic coupon, and the like. However, in the present embodiment, description thereof is omitted. The electronic coupon according to the present embodiment is electronic data called electronic value, and is not provided or used as a paper medium. However, in the following description, the classifier of the electronic coupon is “sheet” for convenience of the description.

図3は、クーポン管理テーブル131のデータ構造を示す図である。図3に示されるように、クーポン管理テーブル131は、「クーポンID」、「制限枚数(全体)」、「利用枚数(全体)」及び「残枚数(全体)」という各情報が対応づけられたデータテーブルである。   FIG. 3 is a diagram illustrating a data structure of the coupon management table 131. As shown in FIG. 3, the coupon management table 131 associates each information of “coupon ID”, “restricted number (total)”, “used number (total)”, and “remaining number (total)”. It is a data table.

「クーポンID」は、ASPサーバ10により提供される電子クーポンを識別する識別情報である。「制限枚数(全体)」は、各電子クーポンに設定される、電子クーポンのトータルの利用可能枚数である。ASPサーバ10では、各端末装置20によって利用される電子クーポンの枚数の総和が全体の制限枚数を超えないように管理される。   “Coupon ID” is identification information for identifying an electronic coupon provided by the ASP server 10. The “restricted number (total)” is the total available number of electronic coupons set for each electronic coupon. In the ASP server 10, the total number of electronic coupons used by each terminal device 20 is managed so as not to exceed the total limit number.

「利用枚数(全体)」は、各端末装置20によって利用された電子クーポンの枚数の総和である。上記の全体の制限枚数は、この全体の利用枚数の上限値であるとも言える。「残枚数(全体)」は、各端末装置20に対して提供可能な電子クーポンの枚数である。ASPサーバ10では、各端末装置20に提供される電子クーポンの枚数の総和が、全体の残枚数を超えないように管理される。   “Used number (total)” is the total number of electronic coupons used by each terminal device 20. It can be said that the above-mentioned total limit number is the upper limit value of the total use number. The “remaining number (total)” is the number of electronic coupons that can be provided to each terminal device 20. In the ASP server 10, the total number of electronic coupons provided to each terminal device 20 is managed so as not to exceed the total remaining number.

図3に示される例では、電子クーポンの例として、クーポンID「CID001」を有する電子クーポンと、クーポンID「CID002」を有する電子クーポンが示されている。図3に示される第1行目のレコードは、クーポンID「CID001」の電子クーポンの全体の制限枚数が「1000」であり、全体の利用枚数が「0」であり、全体の残枚数が「1000」であることを示している。一方、第2行目のレコードは、クーポンID「CID002」の電子クーポンの全体の制限枚数が「5000」であり、全体の利用枚数が「0」であり、全体の残枚数が「5000」であることを示している。   In the example shown in FIG. 3, an electronic coupon having a coupon ID “CID001” and an electronic coupon having a coupon ID “CID002” are shown as examples of the electronic coupon. In the record on the first line shown in FIG. 3, the total limit number of electronic coupons with coupon ID “CID001” is “1000”, the total number of used coupons is “0”, and the total remaining number of copies is “ 1000 ". On the other hand, in the record on the second line, the total number of electronic coupons with coupon ID “CID002” is “5000”, the total number of use is “0”, and the total remaining number is “5000”. It shows that there is.

図4は、ユーザ管理テーブル132のデータ構造を示す図である。図4に示されるように、ユーザ管理テーブル132は、「ユーザID」、「クーポンID」、「制限枚数(個人)」、「セット未確定枚数」、「セット済未利用枚数」、「利用枚数(個人)」及び「残枚数(個人)」という各情報が対応づけられたデータテーブルである。   FIG. 4 is a diagram illustrating the data structure of the user management table 132. As shown in FIG. 4, the user management table 132 includes “user ID”, “coupon ID”, “restricted number (individual)”, “set undetermined number”, “set unused number”, “used number”. It is a data table in which each information of “individual” and “remaining number of sheets (individual)” is associated.

「ユーザID」は、端末装置20のユーザを識別する識別情報である。このユーザIDは、例えばASPサーバ10においてユーザごとに割り当てられる。「クーポンID」は、クーポン管理テーブル131に書き込まれるクーポンIDと同じ情報である。   “User ID” is identification information for identifying the user of the terminal device 20. This user ID is assigned for each user in the ASP server 10, for example. “Coupon ID” is the same information as the coupon ID written in the coupon management table 131.

「制限枚数(個人)」は、各電子クーポンに設定される、1人のユーザによって利用可能な電子クーポンの最大枚数である。ASPサーバ10では、一ユーザあたりの電子クーポンの利用枚数が、この個人の制限枚数を超えないように管理される。この個人の制限枚数は、いわば個人の利用枚数の上限値である。   The “restricted number (individual)” is the maximum number of electronic coupons that can be used by one user, set for each electronic coupon. In the ASP server 10, the number of electronic coupons used per user is managed so as not to exceed the individual limit number. This limit number of individuals is the upper limit of the number of individual users.

「セット未確定枚数」は、ASPサーバ10から端末装置20に対して電子クーポンの書込指示がなされたものの、端末装置20への書込処理(以下、「セット」ともいう。)が成功したか否かが未確定の電子クーポンの枚数である。セット未確定枚数とは、例えば、その書込処理が終了していない電子クーポンや、その書込処理が終了したものの、その成否がASPサーバ10に未だ通知されていない電子クーポンの枚数である。   The “set unconfirmed number” indicates that the ASP server 10 has instructed the terminal device 20 to write an electronic coupon, but the writing process to the terminal device 20 (hereinafter also referred to as “set”) has succeeded. Whether or not the number of electronic coupons is uncertain. The set undetermined number is, for example, the number of electronic coupons for which the writing process has not been completed or the number of electronic coupons for which the writing process has been completed but the success or failure has not been notified to the ASP server 10 yet.

「セット済未利用枚数」は、端末装置20への書込処理の成功が確定した電子クーポンの枚数であって、まだ利用されていない電子クーポンの枚数である。セット済未利用枚数は、端末装置20のICチップ25のメモリ領域251に記憶されていることをASPサーバ10の方で把握している電子クーポンの枚数である。セット済未利用枚数は、端末装置20によって利用可能な電子クーポンの枚数を示している。   The “set unused number” is the number of electronic coupons that have been successfully written to the terminal device 20 and have not been used yet. The set unused number is the number of electronic coupons that the ASP server 10 knows is stored in the memory area 251 of the IC chip 25 of the terminal device 20. The set unused number indicates the number of electronic coupons that can be used by the terminal device 20.

「利用枚数(個人)」は、一のユーザによって既に利用された電子クーポンの枚数である。「残枚数(個人)」は、当該ユーザに対して提供可能な電子クーポンの枚数である。ASPサーバ10では、1人のユーザに対して提供される電子クーポンの枚数が、この個人の残枚数を超えないように管理される。   “Used number (individual)” is the number of electronic coupons already used by one user. The “remaining number (individual)” is the number of electronic coupons that can be provided to the user. The ASP server 10 is managed so that the number of electronic coupons provided to one user does not exceed the number of remaining individuals.

図4に示される例では、ユーザ管理データの一例として、ユーザID「UID001」を有するユーザに関連する情報が示されている。例えば、図4に示される第1行目のレコードは、クーポンID「CID001」の電子クーポンの個人の制限枚数が「10」であり、セット未確定枚数、セット済未利用枚数及び個人の利用枚数がそれぞれ「0」であり、個人の残枚数が「10」であることを示している。   In the example shown in FIG. 4, information related to a user having a user ID “UID001” is shown as an example of user management data. For example, in the record in the first row shown in FIG. 4, the personal limited number of electronic coupons with the coupon ID “CID001” is “10”, the set undetermined number, the set unused number and the individual used number Are “0”, and the remaining number of individuals is “10”.

図5は、利用管理テーブル133のデータ構造を示す図である。図5に示されるように、利用管理テーブル133は、「ユーザID」、「クーポン書込情報」及び「利用禁止フラグ」という各情報が対応づけられたデータテーブルである。   FIG. 5 is a diagram showing the data structure of the usage management table 133. As shown in FIG. 5, the usage management table 133 is a data table in which information items “user ID”, “coupon writing information”, and “usage prohibition flag” are associated with each other.

「ユーザID」は、ユーザ管理テーブル132に書き込まれるユーザIDと同じ情報である。「クーポン書込情報」は、端末装置20に対してASPサーバ10により電子クーポンの書込処理が指示された日時に基づき特定される情報である。「利用禁止フラグ」は、端末装置20による電子クーポンの利用を禁止するべきか否かを示す情報である。電子クーポンの利用を禁止するべき場合には、「ON」に設定され、禁止すべきでない場合には「OFF」に設定される。   “User ID” is the same information as the user ID written in the user management table 132. The “coupon writing information” is information specified based on the date and time when the ASP server 10 instructs the terminal device 20 to write the electronic coupon. The “use prohibition flag” is information indicating whether or not use of the electronic coupon by the terminal device 20 should be prohibited. When the use of the electronic coupon should be prohibited, it is set to “ON”, and when it should not be prohibited, it is set to “OFF”.

図5に示される例では、利用管理データの一例として、ユーザID「UID001」を有するユーザに関連する情報が示されている。この例で示される第1行目のレコードは、クーポン書込情報は書き込まれておらず、利用禁止フラグはOFFに設定されていることを示している。   In the example illustrated in FIG. 5, information related to the user having the user ID “UID001” is illustrated as an example of usage management data. The record on the first line shown in this example indicates that the coupon writing information is not written and the use prohibition flag is set to OFF.

図6は、端末装置20のハードウェア構成を示すブロック図である。図6に示されるように、端末装置20は、制御部21と、音声入出力部22と、無線通信部23と、UI(UserInterface)部24と、ICチップ25と、記憶部26とを備える。   FIG. 6 is a block diagram illustrating a hardware configuration of the terminal device 20. As illustrated in FIG. 6, the terminal device 20 includes a control unit 21, a voice input / output unit 22, a wireless communication unit 23, a UI (UserInterface) unit 24, an IC chip 25, and a storage unit 26. .

制御部21は、CPU、ROM及びRAMを有するマイクロプロセッサを備える。CPUは、ROMや記憶部26に記憶されたプログラムをRAMに読み出して実行することにより、端末装置20の各部を制御する。音声入出力部22は、マイクロホンやスピーカを有し、端末装置20において音声の入出力に関わる機能を実現する。無線通信部23は、無線通信回路やアンテナを備える、ネットワークNWに接続するためのインタフェースである。UI部24は、例えばタッチパネルを備え、ユーザからの操作を受け付けるとともに、画像を表示する。   The control unit 21 includes a microprocessor having a CPU, a ROM, and a RAM. The CPU controls each unit of the terminal device 20 by reading the program stored in the ROM or the storage unit 26 into the RAM and executing it. The voice input / output unit 22 includes a microphone and a speaker, and realizes functions related to voice input / output in the terminal device 20. The wireless communication unit 23 is an interface for connecting to a network NW that includes a wireless communication circuit and an antenna. The UI unit 24 includes, for example, a touch panel, receives an operation from the user, and displays an image.

ICチップ25は、プロセッサと、アンテナと、データの読み書きに用いられるメモリ領域251とを有している、近接型の非接触通信を行うためのICチップである。ICチップ25のプロセッサは、アンテナにより受信した信号又は制御部21から出力される信号に応じてメモリ領域251にアクセスし、データの読み出し又はデータの書き込みを行う。   The IC chip 25 includes a processor, an antenna, and a memory area 251 used for reading and writing data, and is an IC chip for performing proximity contactless communication. The processor of the IC chip 25 accesses the memory area 251 in accordance with a signal received by the antenna or a signal output from the control unit 21, and reads or writes data.

メモリ領域251には、電子クーポンが書き込まれる。具体的には、電子クーポンを識別するクーポンIDと、その電子クーポンの枚数とが対応づけて書き込まれる。また、電子クーポンが書き込まれる際には、その電子クーポンの書込処理が指示された日時に基づき特定される情報を示すクーポン書込情報があわせて書き込まれる。   An electronic coupon is written in the memory area 251. Specifically, a coupon ID for identifying an electronic coupon and the number of electronic coupons are written in association with each other. When the electronic coupon is written, coupon writing information indicating information specified based on the date and time when the electronic coupon writing process is instructed is also written.

メモリ領域251は、複数のサービス提供者によって共有されるメモリ領域である。メモリ領域251には、複数のサービス提供者のうちのいずれか1のサービス提供者の電子クーポンのみが書き込まれる。例えば、あるサービス提供者の電子クーポンがメモリ領域251に記憶されている状態において、他のサービス提供者の電子クーポンを新たに書き込まれる場合には、新たに書き込まれる電子クーポンによって、元々メモリ領域251に記憶されていた電子クーポンは上書きされる。また、同一のサービス提供者の電子クーポンを新たに書き込む場合であっても、元々メモリ領域251に記憶されていた電子クーポンは上書きされる。よって、メモリ領域251には、2以上のクーポン書込情報が記憶されることはない。なお、同一のサービス提供者の電子クーポンであれば、複数の電子クーポンを同時にメモリ領域251に記憶することができる。   The memory area 251 is a memory area shared by a plurality of service providers. Only the electronic coupon of any one of the plurality of service providers is written in the memory area 251. For example, in the state where an electronic coupon of a certain service provider is stored in the memory area 251, when an electronic coupon of another service provider is newly written, the memory area 251 is originally created by the newly written electronic coupon. The electronic coupon stored in is overwritten. Further, even when an electronic coupon of the same service provider is newly written, the electronic coupon originally stored in the memory area 251 is overwritten. Therefore, two or more pieces of coupon writing information are not stored in the memory area 251. Note that a plurality of electronic coupons can be simultaneously stored in the memory area 251 as long as they are electronic coupons of the same service provider.

また、ICチップ25は、ユーザIDをメモリ領域251以外の所定のメモリ領域に記憶する。   Further, the IC chip 25 stores the user ID in a predetermined memory area other than the memory area 251.

端末装置20は、書込処理によってメモリ領域251の電子クーポンを削除してしまった場合でも、ASPサーバ10に問い合わせることによって、削除前の状態に戻すことができる。これは、ASPサーバ10が、ユーザ管理テーブル132において、ユーザごとに電子クーポンの提供及び利用に関する情報を管理しているからである。   Even when the terminal device 20 deletes the electronic coupon in the memory area 251 by the writing process, the terminal device 20 can return to the state before the deletion by making an inquiry to the ASP server 10. This is because the ASP server 10 manages information related to provision and use of electronic coupons for each user in the user management table 132.

記憶部26は、例えばEEPROMを備え、制御部21が実行するプログラムのほか、クーポン管理アプリケーション261を記憶する。制御部21は、クーポン管理アプリケーション261を実行することにより、アプリケーション管理サーバ50と通信を行って電子クーポンの書込処理を実行する。端末装置20において電子クーポンの提供を受ける際に、このクーポン管理アプリケーション261が実行される。   The storage unit 26 includes, for example, an EEPROM, and stores a coupon management application 261 in addition to a program executed by the control unit 21. By executing the coupon management application 261, the control unit 21 communicates with the application management server 50 to execute the electronic coupon writing process. The coupon management application 261 is executed when the terminal device 20 receives provision of an electronic coupon.

次に、ASPサーバ10の制御部11の機能的構成について説明する。図7は、ASPサーバ10の電子クーポンの提供及び利用に係る機能のうち、本発明に特徴的な機能の構成を示す機能ブロック図である。図7に示されるように、ASPサーバ10の制御部11は、プログラムを実行することにより、記憶制御部111と、更新制御部112と、書込指示部113と、フラグ設定部114と、出力部115という機能を実現する。   Next, a functional configuration of the control unit 11 of the ASP server 10 will be described. FIG. 7 is a functional block diagram showing a configuration of functions characteristic of the present invention among functions related to provision and use of the electronic coupon of the ASP server 10. As shown in FIG. 7, the control unit 11 of the ASP server 10 executes a program, thereby executing a storage control unit 111, an update control unit 112, a write instruction unit 113, a flag setting unit 114, and an output. The function of the unit 115 is realized.

記憶制御部111は、端末装置20に対して電子クーポンが提供される際に、端末装置20のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込み指示された日時に基づき特定される情報を示すクーポン書込情報とを対応づけて記憶部に記憶するように制御する。具体的には、記憶制御部111は、ユーザIDと、提供対象となった電子クーポンが端末装置20に書き込み指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて利用管理テーブル133に書き込むように制御する。   When an electronic coupon is provided to the terminal device 20, the storage control unit 111 identifies the user ID for identifying the user of the terminal device 20, and the date and time when the electronic coupon is written into the memory area of the terminal device. Control is performed so that the coupon writing information indicating the information specified based on the information is stored in the storage unit in association with each other. Specifically, the storage control unit 111 uses the user ID and coupon writing information including information specified based on the date and time when the electronic coupon that is the provision target is instructed to be written to the terminal device 20. Control to write to the management table 133.

なおここで、「クーポン書込情報」という概念には、電子クーポンが書き込まれた日付を示すクーポン書込日時だけでなく、クーポン書込日時に基づいて一意に定まる、関数により生成される乱数も含む。また、「クーポン書込情報」という概念には、上記のクーポン書込日時又は乱数に加えて、クーポン書込情報に対して設定される有効期限や利用地域に関する情報、本人であるか否かを判断できる情報(ユーザ属性情報)、本人認証を電子クーポンの利用時に要求するフラグを付加したものも含まれる。またここで、「クーポン書込み日時」という概念には、電子クーポンが書き込まれた日付と時刻の組からなる情報だけでなく、電子クーポンが書き込まれた日付のみからなる情報や、電子クーポンが書き込まれた時刻のみからなる情報が含まれる。   Here, the concept of “coupon writing information” includes not only the coupon writing date and time indicating the date when the electronic coupon was written, but also a random number generated by a function that is uniquely determined based on the coupon writing date and time. Including. Moreover, in addition to the above-mentioned coupon writing date and time or random numbers, the concept of “coupon writing information” includes information regarding the expiration date and usage area set for the coupon writing information, and whether or not the person is the person. Information that can be determined (user attribute information) and information that includes a flag for requesting identity authentication when using an electronic coupon are also included. In addition, here, the concept of “coupon writing date / time” includes not only information consisting of a set of date and time when the electronic coupon was written, but also information consisting only of the date when the electronic coupon was written, and electronic coupons. Information consisting of only the time of day is included.

更新制御部112は、端末装置20に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDとクーポン書込情報とが記憶部において対応づけられて記憶されている場合に、当該参照データを、別のクーポン書込情報に更新するよう制御する。具体的には、更新制御部112は、端末装置20のユーザを識別するユーザIDとクーポン書込情報とが利用管理テーブル133において対応づけて記憶されている場合に、記憶されているクーポン書込情報を、端末装置20に対して電子クーポンの書込処理の指示がなされた日時に基づき特定される情報を示すクーポン書込情報に更新するよう制御する。   When the electronic coupon is provided to the terminal device 20, the update control unit 112 stores a user ID for identifying the user of the terminal device and coupon writing information in association with each other in the storage unit. Then, control is performed so that the reference data is updated to different coupon writing information. Specifically, the update control unit 112 stores the coupon writing stored when the user ID for identifying the user of the terminal device 20 and the coupon writing information are stored in the usage management table 133 in association with each other. The information is controlled to be updated to coupon writing information indicating information specified based on the date and time when the terminal device 20 is instructed to write the electronic coupon.

なお、更新制御部112は、更新制御を、電子クーポンが提供される端末装置20に対して書込指示部113により端末装置20のメモリ領域251に当該電子クーポンを書き込むよう指示が行われ、当該書込処理が端末装置20において行われた後であって、当該書込処理の結果(具体的には、当該書込処理の成功)がASPサーバ10に通知された後に実行する。   The update control unit 112 is instructed to write the electronic coupon in the memory area 251 of the terminal device 20 by the writing instruction unit 113 with respect to the terminal device 20 to which the electronic coupon is provided. This is executed after the writing process is performed in the terminal device 20 and the result of the writing process (specifically, the success of the writing process) is notified to the ASP server 10.

書込指示部113は、端末装置20に対して電子クーポンが提供される際に、端末装置20に対して、端末装置20が有するメモリ領域251にその電子クーポンを書き込むよう指示する。   When the electronic coupon is provided to the terminal device 20, the writing instruction unit 113 instructs the terminal device 20 to write the electronic coupon in the memory area 251 of the terminal device 20.

フラグ設定部114は、端末装置20に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDとクーポン書込情報とが記憶部において対応づけられて記憶されている場合に、書込指示部113により端末装置20に対して、端末装置20が有するメモリ領域251に前記電子クーポンを書き込むよう指示が行われる前に、端末装置20のユーザを識別するユーザIDと対応づけて、記憶部において、当該ユーザが使用する端末装置20による電子クーポンの利用を禁止すべき旨を示す利用禁止フラグを設定するよう制御する。   When an electronic coupon is provided to the terminal device 20, the flag setting unit 114 stores a user ID for identifying a user of the terminal device and coupon writing information in association with each other in the storage unit. In addition, before the writing instruction unit 113 instructs the terminal device 20 to write the electronic coupon in the memory area 251 of the terminal device 20, the user ID is associated with the user ID for identifying the user of the terminal device 20. Then, the storage unit controls to set a use prohibition flag indicating that the use of the electronic coupon by the terminal device 20 used by the user should be prohibited.

具体的には、フラグ設定部114は、端末装置20のユーザを識別するユーザIDとクーポン書込情報とが利用管理テーブル133において対応づけて記憶されている場合に、書込指示部113により端末装置20に対して、端末装置20が有するメモリ領域251に前記電子クーポンを書き込むよう指示が行われる前に、そのユーザIDと対応づけて利用管理テーブル133において利用禁止フラグをONに設定するよう制御する。   Specifically, when the user ID for identifying the user of the terminal device 20 and the coupon writing information are stored in the usage management table 133 in association with each other, the flag setting unit 114 uses the writing instruction unit 113 to store the terminal. Control is performed to set the use prohibition flag to ON in the use management table 133 in association with the user ID before the device 20 is instructed to write the electronic coupon in the memory area 251 of the terminal device 20. To do.

また、フラグ設定部114は、上記のように利用禁止フラグを設定した後、更新制御部112により、記憶部においてそのユーザIDと対応づけて記憶されているクーポン書込情報が、別のクーポン書込情報に更新されるように制御された後に、当該ユーザIDと対応づけて設定されている利用禁止フラグを解除するよう制御する。具体的には、フラグ設定部114は、利用禁止フラグをONに設定した後、更新制御部112により、利用管理テーブル133においてそのユーザIDと対応づけて記憶されているクーポン書込情報が、端末装置20に対して電子クーポンの書込処理の指示がなされた日時に基づき特定される情報を示すクーポン書込情報に更新されるように制御された後に、当該ユーザIDと対応づけて設定されている利用禁止フラグをOFFに設定するよう制御する。   In addition, after setting the use prohibition flag as described above, the flag setting unit 114 causes the update control unit 112 to store the coupon writing information stored in the storage unit in association with the user ID in another coupon document. After being controlled to be updated to the embedded information, the usage prohibition flag set in association with the user ID is canceled. Specifically, after the flag setting unit 114 sets the use prohibition flag to ON, the coupon control information stored in association with the user ID in the use management table 133 by the update control unit 112 is stored in the terminal After being controlled to be updated to the coupon writing information indicating information specified based on the date and time when the electronic coupon writing process is instructed to the device 20, it is set in association with the user ID. Control to set the use prohibition flag to OFF.

なお、フラグ設定部114は、端末装置20に対して電子クーポンが提供される際に、端末装置20から取得されるクーポン書込情報と、端末装置20のユーザを識別するユーザIDと記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合には、その記憶部において、端末装置20のユーザを識別するユーザIDと対応づけて利用禁止フラグを設定するように制御しない。具体的には、フラグ設定部114は、電子クーポン提供時に端末装置20から通知されたクーポン書込情報と、端末装置20のユーザを識別するユーザIDと利用管理テーブル133において対応づけて記憶されているクーポン書込情報とが一致する場合には、利用管理テーブル133において、そのユーザIDと対応づけて利用禁止フラグをONに設定するように制御しない。   In addition, when the electronic coupon is provided to the terminal device 20, the flag setting unit 114 uses the coupon writing information acquired from the terminal device 20, the user ID that identifies the user of the terminal device 20, and the storage unit. When the coupon writing information stored in association with each other matches, the storage unit does not control to set the use prohibition flag in association with the user ID for identifying the user of the terminal device 20. Specifically, the flag setting unit 114 is stored in association with the coupon writing information notified from the terminal device 20 when the electronic coupon is provided, the user ID for identifying the user of the terminal device 20, and the usage management table 133. If there is a match with the existing coupon writing information, the use management table 133 is not controlled to set the use prohibition flag to ON in association with the user ID.

また、フラグ設定部114は、端末装置20に対して電子クーポンが提供される際に、端末装置20のユーザを識別するユーザIDと対応づけてクーポン書込情報が記憶部において記憶されていない場合には、その記憶部において、端末装置20のユーザを識別するユーザIDと対応づけて利用禁止フラグを設定するように制御しない。具体的には、フラグ設定部114は、端末装置20のユーザを識別するユーザIDと対応づけてクーポン書込情報が利用管理テーブル133において記憶されていない場合には、利用管理テーブル133において、そのユーザIDと対応づけて利用禁止フラグをONに設定するように制御しない。   Further, when an electronic coupon is provided to the terminal device 20, the flag setting unit 114 is associated with a user ID that identifies the user of the terminal device 20 and the coupon writing information is not stored in the storage unit. In the storage unit, the use prohibition flag is not controlled in association with the user ID for identifying the user of the terminal device 20. Specifically, if the coupon writing information is not stored in the usage management table 133 in association with the user ID that identifies the user of the terminal device 20, the flag setting unit 114 It is not controlled to set the use prohibition flag to ON in association with the user ID.

出力部115は、端末装置20によって電子クーポンが利用される際に、端末装置20から取得されるクーポン書込情報と、端末装置20のユーザを識別するユーザIDと記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、端末装置20による前記電子クーポンの利用を許可する信号を出力する。具体的には、出力部115は、端末装置20から通知されたクーポン書込情報と、端末装置20のユーザを識別するユーザIDと利用管理テーブル133において対応づけて記憶されているクーポン書込情報とが一致する場合に、端末装置20による前記電子クーポンの利用を許可する信号を出力する。   The output unit 115 stores the coupon writing information acquired from the terminal device 20 when the electronic coupon is used by the terminal device 20, the user ID for identifying the user of the terminal device 20, and the storage unit in association with each other. When the written coupon information matches, the terminal device 20 outputs a signal permitting the use of the electronic coupon. Specifically, the output unit 115 stores the coupon writing information notified from the terminal device 20, the user ID for identifying the user of the terminal device 20, and the coupon writing information stored in the usage management table 133 in association with each other. Is output, a signal permitting the use of the electronic coupon by the terminal device 20 is output.

なお、出力部115は、端末装置20によって電子クーポンが利用される際に、端末装置20から取得されるクーポン書込情報と、端末装置20のユーザを識別するユーザIDと記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合であっても、その記憶部において当該ユーザIDに対応づけて利用禁止フラグが設定されている場合には、端末装置20による前記電子クーポンの利用を拒絶する信号を出力する。   Note that when the electronic device is used by the terminal device 20, the output unit 115 associates the coupon writing information acquired from the terminal device 20 with the user ID that identifies the user of the terminal device 20 in the storage unit. Even when the stored coupon writing information matches, if the use prohibition flag is set in association with the user ID in the storage unit, use of the electronic coupon by the terminal device 20 Outputs a signal rejecting.

具体的には、出力部115は、端末装置20から通知されたクーポン書込情報と、端末装置20のユーザを識別するユーザIDと利用管理テーブル133において対応づけて記憶されているクーポン書込情報とが一致する場合であっても、利用管理テーブル133においてそのユーザIDに対応づけて利用禁止フラグがONに設定されている場合には、端末装置20による前記電子クーポンの利用を拒絶する信号を出力する。   Specifically, the output unit 115 stores the coupon writing information notified from the terminal device 20, the user ID for identifying the user of the terminal device 20, and the coupon writing information stored in the usage management table 133 in association with each other. If the use prohibition flag is set to ON in association with the user ID in the use management table 133, a signal rejecting the use of the electronic coupon by the terminal device 20 is sent. Output.

また、出力部115は、端末装置20によって電子クーポンが利用される際に、当該端末装置のユーザを識別するユーザIDと対応づけて記憶部において利用禁止フラグが設定されている場合であっても、当該電子クーポンが、その利用枚数が制限されていない電子クーポンである場合には、端末装置20による前記電子クーポンの利用を許可する信号を出力する。   In addition, when the electronic coupon is used by the terminal device 20, the output unit 115 is associated with a user ID that identifies the user of the terminal device, even when the use prohibition flag is set in the storage unit. When the electronic coupon is an electronic coupon whose use number is not limited, a signal permitting the use of the electronic coupon by the terminal device 20 is output.

具体的には、出力部115は、当該端末装置のユーザを識別するユーザIDと対応づけて利用管理テーブル133において利用禁止フラグが設定されている場合であっても、利用対象の電子クーポンのクーポンIDに対してクーポン管理テーブル131及びユーザ管理テーブル132において制限枚数が設定されていない場合には、端末装置20による当該電子クーポンの利用を許可する信号を出力する。   Specifically, the output unit 115 associates the coupon of the electronic coupon to be used even when the usage prohibition flag is set in the usage management table 133 in association with the user ID for identifying the user of the terminal device. When the limit number is not set in the coupon management table 131 and the user management table 132 for the ID, a signal permitting use of the electronic coupon by the terminal device 20 is output.

また、出力部115は、端末装置20によって電子クーポンが利用される際に、端末装置20から取得されるクーポン書込情報と、端末装置20のユーザを識別するユーザIDと記憶部において対応づけて記憶されているクーポン書込情報とが一致しない場合であっても、当該電子クーポンが、その利用枚数が制限されていない電子クーポンである場合には、端末装置20による前記電子クーポンの利用を許可する信号を出力する。   In addition, when the electronic device is used by the terminal device 20, the output unit 115 associates the coupon writing information acquired from the terminal device 20 with the user ID that identifies the user of the terminal device 20 in the storage unit. Even when the stored coupon writing information does not match, if the electronic coupon is an electronic coupon whose number of use is not limited, the use of the electronic coupon by the terminal device 20 is permitted. Output a signal.

具体的には、出力部115は、端末装置20から通知されたクーポン書込情報と、端末装置20のユーザを識別するユーザIDと利用管理テーブル133において対応づけて記憶されているクーポン書込情報とが一致しない場合であっても、利用対象の電子クーポンのクーポンIDに対してクーポン管理テーブル131及びユーザ管理テーブル132において制限枚数が設定されていない場合には、端末装置20による当該電子クーポンの利用を許可する信号を出力する。   Specifically, the output unit 115 stores the coupon writing information notified from the terminal device 20, the user ID for identifying the user of the terminal device 20, and the coupon writing information stored in the usage management table 133 in association with each other. If the limit number is not set in the coupon management table 131 and the user management table 132 for the coupon ID of the electronic coupon to be used, even if Outputs a permission signal.

1−2.動作
次に、通信システム1の動作について説明する。図8は、通信システム1の動作を示すシーケンスチャートである。
1-2. Operation Next, the operation of the communication system 1 will be described. FIG. 8 is a sequence chart showing the operation of the communication system 1.

端末装置20は、電子クーポンを取得する際、ASPサーバ10に対してクーポン取得要求を送信する(ステップSa1)。具体的には、端末装置20は、取得しようとする電子クーポンを示すクーポンIDと、その電子クーポンの取得枚数を示す情報と、ICチップ25に記憶されているユーザIDとを含むクーポン取得要求をASPサーバ10に送信する。このとき端末装置20は、ICチップ25のメモリ領域251にクーポン書込情報が記憶されている場合には、電子クーポンの再取得に際しこのクーポン書込情報もクーポン取得要求に含めて送信してもよい。   When the terminal device 20 acquires an electronic coupon, it transmits a coupon acquisition request to the ASP server 10 (step Sa1). Specifically, the terminal device 20 issues a coupon acquisition request including a coupon ID indicating an electronic coupon to be acquired, information indicating the number of acquired electronic coupons, and a user ID stored in the IC chip 25. It transmits to the ASP server 10. At this time, if the coupon writing information is stored in the memory area 251 of the IC chip 25, the terminal device 20 may transmit the coupon writing information in the coupon acquisition request when the electronic coupon is reacquired. Good.

図9は、端末装置20が電子クーポンを取得しようとする際にUI部24に表示される画面の一例を示している。端末装置20のユーザは、UI部24を操作して、電子クーポンの取得枚数をプルダウンメニューPa1,Pa2から選択し、その後、「クーポンを取得」と付されたソフトボタンBaを選択する。なお、ASPサーバ10にてクーポン書込情報が記憶されている場合には、ソフトボタンBaを「クーポンを再取得」と表示しても良い。   FIG. 9 shows an example of a screen displayed on the UI unit 24 when the terminal device 20 tries to acquire an electronic coupon. The user of the terminal device 20 operates the UI unit 24 to select the number of electronic coupons to be acquired from the pull-down menus Pa1 and Pa2, and then selects the soft button Ba labeled “Acquire coupons”. When coupon writing information is stored in the ASP server 10, the soft button Ba may be displayed as “re-acquire coupon”.

端末装置20からクーポン取得要求を受信したASPサーバ10は、セット開始処理を実行する(ステップSa2)。ここで、セット開始処理とは、ASPサーバ10が端末装置20に対して電子クーポンの書込処理を指示するまでの処理である。図10は、セット開始処理を示すフローチャートである。   The ASP server 10 that has received the coupon acquisition request from the terminal device 20 executes a set start process (step Sa2). Here, the set start process is a process until the ASP server 10 instructs the terminal device 20 to write the electronic coupon. FIG. 10 is a flowchart showing the set start process.

図10のステップSa21においてASPサーバ10は、クーポン取得要求に含まれるユーザIDと対応づけて利用管理テーブル133においてクーポン書込情報が記憶されているか否かについて判断する。   In step Sa21 in FIG. 10, the ASP server 10 determines whether or not the coupon writing information is stored in the usage management table 133 in association with the user ID included in the coupon acquisition request.

この判断の結果、クーポン取得要求にクーポン書込情報が含まれていない場合には(ステップSa21;NO)、ASPサーバ10はステップSa24の処理を実行する。一方、この判断の結果、クーポン取得要求にクーポン書込情報を示す情報が含まれている場合には(ステップSa21;YES)、ASPサーバ10はステップSa22の処理を実行する。   If the coupon acquisition information is not included in the coupon acquisition request as a result of this determination (step Sa21; NO), the ASP server 10 executes the process of step Sa24. On the other hand, as a result of the determination, if the coupon acquisition request includes information indicating the coupon writing information (step Sa21; YES), the ASP server 10 executes the process of step Sa22.

ステップSa22においてASPサーバ10は、クーポン取得要求により示されるクーポン書込情報と、クーポン取得要求に含まれるユーザIDと対応づけて利用管理テーブル133に記憶されているクーポン書込情報とが一致するか否かについて判断する。すなわち、ASPサーバ10は、今回電子クーポンの取得を要求している端末装置20と、前回電子クーポンの取得を要求した端末装置20とが同一の端末装置であるか否かについて判断する。   In step Sa22, the ASP server 10 determines whether the coupon writing information indicated by the coupon acquisition request matches the coupon writing information stored in the usage management table 133 in association with the user ID included in the coupon acquisition request. Judge whether or not. That is, the ASP server 10 determines whether or not the terminal device 20 that has requested acquisition of an electronic coupon this time and the terminal device 20 that has requested acquisition of the previous electronic coupon are the same terminal device.

この判断の結果、両クーポン書込情報が一致する場合には(ステップSa22;YES)、ASPサーバ10はステップSa24の処理を実行する。一方、この判断の結果、両クーポン書込情報が一致しない場合には(ステップSa22;NO)、ASPサーバ10はステップSa23の処理を実行する。   As a result of this determination, if the two coupon writing information matches (step Sa22; YES), the ASP server 10 executes the process of step Sa24. On the other hand, if the two pieces of coupon writing information do not match as a result of the determination (step Sa22; NO), the ASP server 10 executes the process of step Sa23.

ステップSa23においてASPサーバ10は、クーポン取得要求に含まれるユーザIDと対応づけて利用管理テーブル133において利用禁止フラグをONに設定する。この結果、クーポン取得要求に含まれるユーザIDと対応づけられる電子クーポンの利用は禁止されることになる。   In step Sa23, the ASP server 10 sets the use prohibition flag to ON in the use management table 133 in association with the user ID included in the coupon acquisition request. As a result, use of the electronic coupon associated with the user ID included in the coupon acquisition request is prohibited.

次に、ステップSa24においてASPサーバ10は、取得の対象となっている枚数の電子クーポンが提供可能か否かについて判断する。具体的には、ASPサーバ10は、クーポン管理テーブル131とユーザ管理テーブル132とを参照して、クーポン取得要求に含まれるクーポンIDにより示される電子クーポンの全体の残枚数及び個人の残枚数が、それぞれクーポン取得要求により示される取得枚数以上であるか否かについて判断する。   Next, in step Sa24, the ASP server 10 determines whether or not the number of electronic coupons to be acquired can be provided. Specifically, the ASP server 10 refers to the coupon management table 131 and the user management table 132, and the total remaining number of electronic coupons and the remaining number of individuals indicated by the coupon ID included in the coupon acquisition request are as follows. It is determined whether or not the number is equal to or greater than the number of acquisitions indicated by the coupon acquisition request.

この判断の結果、電子クーポンの全体の残枚数又は個人の残枚数が、取得枚数未満である場合には(ステップSa24;NO)、ASPサーバ10は端末装置20に対してエラー通知を送信し(ステップSa25)、セット開始処理を終了する。一方、この判断の結果、電子クーポンの全体の残枚数及び個人の残枚数が、取得枚数以上である場合には(ステップSa24;YES)、ASPサーバ10はステップSa26の処理を実行する。   As a result of the determination, if the total remaining number of electronic coupons or the remaining number of individuals is less than the acquired number (step Sa24; NO), the ASP server 10 transmits an error notification to the terminal device 20 ( Step Sa25), the set start process is terminated. On the other hand, as a result of this determination, if the total remaining number of electronic coupons and the remaining number of individuals are greater than or equal to the acquired number (step Sa24; YES), the ASP server 10 executes the process of step Sa26.

ステップSa26においてASPサーバ10は、取得される電子クーポンの枚数をセット未確定枚数として設定する。具体的には、ASPサーバ10は、まず、クーポン取得要求に含まれるクーポンIDに示される電子クーポンについて、クーポン管理テーブル131において、全体の残枚数から取得枚数を減じる。次に、ASPサーバ10は、ユーザ管理テーブル132において、クーポン取得要求に含まれるユーザIDと対応づけて、当該クーポンIDを書き込み、かつ、クーポン取得要求により示される取得枚数をセット未確定枚数として設定する。   In step Sa26, the ASP server 10 sets the number of acquired electronic coupons as the set unconfirmed number. Specifically, the ASP server 10 first subtracts the acquired number of sheets from the total remaining number in the coupon management table 131 for the electronic coupon indicated by the coupon ID included in the coupon acquisition request. Next, in the user management table 132, the ASP server 10 writes the coupon ID in association with the user ID included in the coupon acquisition request, and sets the acquired number indicated by the coupon acquisition request as the set unconfirmed number To do.

例えば、取得対象となる電子クーポンのクーポンIDが「CID001」であって、取得枚数が「5」であって、取得される電子クーポンの残枚数が「1000」である場合には、図11(a)に示されるように、クーポン管理テーブル131において、クーポンID「CID001」と対応づけられる全体の残枚数「1000」が「5」減じられ、「995」となる。また、さらに、電子クーポンが提供されるユーザのユーザIDが「UID001」である場合には、図11(b)に示されるように、ユーザ管理テーブル132において、ユーザID「UID001」に対応づけて、クーポンID「CID001」が書き込まれ、かつ、取得枚数「5」がセット未確定枚数として設定される。
以上が、セット開始処理についての説明である。
For example, when the coupon ID of the electronic coupon to be acquired is “CID001”, the acquired number is “5”, and the remaining number of acquired electronic coupons is “1000”, FIG. As shown in a), in the coupon management table 131, the total remaining number “1000” associated with the coupon ID “CID001” is reduced by “5” to become “995”. Furthermore, when the user ID of the user to whom the electronic coupon is provided is “UID001”, as shown in FIG. 11B, it is associated with the user ID “UID001” in the user management table 132. The coupon ID “CID001” is written, and the acquired number “5” is set as the set unconfirmed number.
This completes the description of the set start process.

セット開始処理が終了すると、ASPサーバ10は、端末装置20に対する電子クーポンの提供を依頼する処理依頼をアプリケーション管理サーバ50に対して送信する(図8、ステップSa3)。ここで、処理依頼には、端末装置20に提供される電子クーポンに関する情報が含まれる。具体的には、電子クーポンを識別するクーポンIDと、その電子クーポンの取得枚数を示す情報が含まれる。   When the set start processing ends, the ASP server 10 transmits a processing request for requesting provision of an electronic coupon to the terminal device 20 to the application management server 50 (FIG. 8, step Sa3). Here, the processing request includes information related to the electronic coupon provided to the terminal device 20. Specifically, the coupon ID for identifying the electronic coupon and information indicating the number of acquired electronic coupons are included.

ASPサーバ10から処理依頼を受信したアプリケーション管理サーバ50は、当該処理依頼を識別する問合せIDを生成し、この問合せIDをASPサーバ10に返信する(ステップSa4)。   The application management server 50 that has received the processing request from the ASP server 10 generates an inquiry ID for identifying the processing request, and returns this inquiry ID to the ASP server 10 (step Sa4).

アプリケーション管理サーバ50から問合せIDを受信したASPサーバ10は、端末装置20に対して電子クーポンの書込処理を指示するための書込指示を当該装置に対して送信する(ステップSa5)。ここで、書込指示には、アプリケーション管理サーバ50から受信した問合せIDと、当該書込指示を行った日時に基づき特定される情報を含むクーポン書込情報とが含まれる。   The ASP server 10 that has received the inquiry ID from the application management server 50 transmits a writing instruction for instructing the terminal device 20 to write the electronic coupon to the terminal device (step Sa5). Here, the writing instruction includes the inquiry ID received from the application management server 50 and coupon writing information including information specified based on the date and time when the writing instruction is performed.

ASPサーバ10から書込指示を受信した端末装置20は、クーポン管理アプリケーション261を実行し、当該書込指示に含まれている問合せIDをアプリケーション管理サーバ50に送信する(ステップSa6)。   The terminal device 20 that has received the write instruction from the ASP server 10 executes the coupon management application 261 and transmits the inquiry ID included in the write instruction to the application management server 50 (step Sa6).

端末装置20から問合せIDを受信したアプリケーション管理サーバ50は、当該問合せIDにより識別される処理依頼に含まれていた電子クーポンに関する情報を端末装置20に送信する(ステップSa7)。ここで、電子クーポンに関する情報とは、電子クーポンを識別するクーポンIDと、その電子クーポンの取得枚数を示す情報である。   The application management server 50 that has received the inquiry ID from the terminal device 20 transmits information on the electronic coupon included in the processing request identified by the inquiry ID to the terminal device 20 (step Sa7). Here, the information regarding an electronic coupon is information which shows coupon ID which identifies an electronic coupon, and the number of acquisition of the electronic coupon.

電子クーポンに関する情報を受信した端末装置20は、当該情報に基づいて電子クーポンの書込処理を実行する(ステップSa8)。具体的には、端末装置20は、ICチップ25のメモリ領域251に、電子クーポンを識別するクーポンIDと、その電子クーポンの枚数とを対応づけて書き込む。また、端末装置20は、ASPサーバ10から受信した書込指示により示されるクーポン書込情報をあわせてメモリ領域251に書き込む。   The terminal device 20 that has received the information related to the electronic coupon executes the electronic coupon writing process based on the information (step Sa8). Specifically, the terminal device 20 writes a coupon ID for identifying an electronic coupon in association with the number of electronic coupons in the memory area 251 of the IC chip 25. The terminal device 20 also writes the coupon writing information indicated by the writing instruction received from the ASP server 10 together in the memory area 251.

書込処理が終了すると、端末装置20は、書込処理の結果を示す結果通知をアプリケーション管理サーバ50に対して送信する(ステップSa9)。この結果通知には、書込処理の成否を示す情報が含まれる。また、端末装置20は、書込処理が終了したことを示す終了通知をASPサーバ10に送信する(ステップSa10)。   When the writing process is completed, the terminal device 20 transmits a result notification indicating the result of the writing process to the application management server 50 (step Sa9). This result notification includes information indicating the success or failure of the writing process. Further, the terminal device 20 transmits an end notification indicating that the writing process has ended to the ASP server 10 (step Sa10).

端末装置20から終了通知を受信したASPサーバ10は、アプリケーション管理サーバ50に対して、書込処理の成否について問い合わせを行う(ステップSa11)。この問い合わせを受けたアプリケーション管理サーバ50は、ASPサーバ10に対して、書込処理の成否を知らせる結果通知を送信する(ステップSa12)。この結果通知には、書込処理の成否を示す情報が含まれる。   The ASP server 10 that has received the end notification from the terminal device 20 inquires of the application management server 50 about the success or failure of the writing process (step Sa11). Upon receiving this inquiry, the application management server 50 transmits a result notification notifying the success or failure of the writing process to the ASP server 10 (step Sa12). This result notification includes information indicating the success or failure of the writing process.

アプリケーション管理サーバ50から結果通知を受信したASPサーバ10は、セット確定処理を実行する(ステップSa13)。このセット確定処理とは、端末装置20において実行された書込処理の結果に応じてASPサーバ10の各種データテーブルを更新する処理である。図12は、セット確定処理を示すフローチャートである。   The ASP server 10 that has received the result notification from the application management server 50 executes a set confirmation process (step Sa13). This set confirmation process is a process of updating various data tables of the ASP server 10 in accordance with the result of the writing process executed in the terminal device 20. FIG. 12 is a flowchart showing the set confirmation process.

ステップSa1301においてASPサーバ10は、アプリケーション管理サーバ50から受信した結果通知に基づいて、端末装置20において実行された書込処理の成否について判断する。この判断の結果、書込処理の成功が確定した場合には(ステップSa1301;YES)、ASPサーバ10は、ステップSa1302の処理を実行する。一方、この判断の結果、書込処理の失敗が確定した場合には(ステップSa1301;NO)、ASPサーバ10は、ステップSa1306の処理を実行する。   In step Sa1301, the ASP server 10 determines the success or failure of the writing process executed in the terminal device 20 based on the result notification received from the application management server 50. As a result of this determination, if the success of the writing process is confirmed (step Sa1301; YES), the ASP server 10 executes the process of step Sa1302. On the other hand, as a result of this determination, when the failure of the writing process is confirmed (step Sa1301; NO), the ASP server 10 executes the process of step Sa1306.

ステップSa1302においてASPサーバ10は、端末装置20において利用されなかった電子クーポンを回収する処理を実行する。具体的には、ASPサーバ10は、まず、端末装置20のユーザのユーザIDとユーザ管理テーブル132において対応づけられているセット済未利用枚数をすべてクリアする。次に、ASPサーバ10は、ユーザ管理テーブル132においてクリアしたセット済未利用枚数を、クーポン管理テーブル131において、対応する電子クーポンの全体の残枚数に加算する。このような処理を行う理由は、電子クーポンの書込処理が行われる場合には、すでにメモリ領域251に記憶されている電子クーポンが、新しい電子クーポンにより上書きされるからである。   In step Sa1302, the ASP server 10 executes a process of collecting electronic coupons that are not used in the terminal device 20. Specifically, the ASP server 10 first clears all the set unused numbers that are associated with the user ID of the user of the terminal device 20 in the user management table 132. Next, the ASP server 10 adds the set unused number cleared in the user management table 132 to the total remaining number of corresponding electronic coupons in the coupon management table 131. The reason for performing such processing is that when electronic coupon writing processing is performed, the electronic coupon already stored in the memory area 251 is overwritten by a new electronic coupon.

例えば、ユーザID「UID001」を有するユーザについて、クーポンID「CID001」と対応づけてユーザ管理テーブル132においてセット済未利用枚数「5」が記憶されていた場合には、図13(a)に示されるように、当該テーブルにおいて、ユーザID「UID001」と対応づけられるセット済未利用枚数「5」が「0」になる。また、さらに、クーポン管理テーブル131において、当該クーポンID「CID001」と対応づけられる全体の残枚数が「995」である場合には、図13(b)に示されるように、当該テーブルにおいて、当該全体の残枚数「995」は「5」増加し、「1000」になる。   For example, for the user having the user ID “UID001”, when the set unused number “5” is stored in the user management table 132 in association with the coupon ID “CID001”, it is shown in FIG. In the table, the set unused number “5” associated with the user ID “UID001” is “0”. Furthermore, in the coupon management table 131, when the total remaining number of sheets associated with the coupon ID “CID001” is “995”, as shown in FIG. The total remaining number “995” increases by “5” to “1000”.

次に、ASPサーバ10は、セット開始処理においてセット未確定枚数として設定されていた取得枚数を、セット済未利用枚数として設定する処理を行う(ステップSa1303)。具体的には、ASPサーバ10は、端末装置20のユーザのユーザIDとユーザ管理テーブル132において対応づけられているセット未確定枚数を、セット済未利用枚数として設定し、かつ、当該セット済未利用枚数をクリアする。   Next, the ASP server 10 performs a process of setting the acquired number of sheets that has been set as the set undetermined number in the set start process as the set unused number (step Sa1303). Specifically, the ASP server 10 sets the set undetermined number associated with the user ID of the user of the terminal device 20 in the user management table 132 as the set unused number, and the set not yet set number. Clear the number of used cards.

例えば、セット開始処理においてユーザID「UID001」に対応づけて、ユーザ管理テーブル132において、クーポンID「CID001」を有する電子クーポンのセット未確定枚数として「5」が設定されていた場合には、図14に示されるように、当該セット未確定枚数「5」は「0」になり、セット済未利用枚数は「0」から「5」になる。   For example, when “5” is set as the set unconfirmed number of electronic coupons having the coupon ID “CID001” in the user management table 132 in association with the user ID “UID001” in the set start process, As shown in FIG. 14, the set undetermined number “5” is changed to “0”, and the set unused number is changed from “0” to “5”.

次に、ASPサーバ10は、利用管理テーブル133に記憶されているクーポン書込情報を更新する(ステップSa1304)。具体的には、ASPサーバ10は、端末装置20のユーザのユーザIDと利用管理テーブル133において対応づけられているクーポン書込情報に含まれる日時を、端末装置20に対して電子クーポンの書込指示を行った日時により更新する。   Next, the ASP server 10 updates the coupon writing information stored in the usage management table 133 (step Sa1304). Specifically, the ASP server 10 writes the electronic coupon to the terminal device 20 based on the date and time included in the coupon writing information associated with the user ID of the user of the terminal device 20 in the usage management table 133. Update according to the date and time when the instruction was given.

次に、ASPサーバ10は、利用禁止フラグをOFFにする(ステップSa1305)。具体的には、ASPサーバ10は、端末装置20のユーザのユーザIDと利用管理テーブル133において対応づけられている利用禁止フラグがONに設定されている場合に、OFFにする。そして、ASPサーバ10は、セット確定処理を終了する。   Next, the ASP server 10 turns off the use prohibition flag (step Sa1305). Specifically, the ASP server 10 turns OFF when the use prohibition flag associated with the user ID of the user of the terminal device 20 in the use management table 133 is set to ON. Then, the ASP server 10 ends the set confirmation process.

なお、ステップSa1301の判断において、書込処理の失敗が確定した場合には(ステップSa1301;NO)、ASPサーバ10は、セット開始処理においてセット未確定枚数として設定されていた取得枚数をクリアして、全体の残枚数に戻す処理を行う(ステップSa1306)。具体的には、ASPサーバ10は、端末装置20のユーザのユーザIDとユーザ管理テーブル132において対応づけられているセット未確定枚数をクリアし、クリアしたセット未確定枚数を、クーポン管理テーブル131において、対応する電子クーポンの全体の残枚数に加算する。   If it is determined in step Sa1301 that the writing process has failed (step Sa1301; NO), the ASP server 10 clears the acquired number of sheets that has been set as the set unconfirmed number in the set start process. Then, the process of returning to the entire remaining number is performed (step Sa1306). Specifically, the ASP server 10 clears the set unconfirmed number associated with the user ID of the user of the terminal device 20 in the user management table 132, and displays the cleared set unconfirmed number in the coupon management table 131. , It is added to the total remaining number of corresponding electronic coupons.

例えば、セット開始処理においてユーザID「UID001」を有するユーザについて、クーポンID「CID001」と対応づけてユーザ管理テーブル132においてセット未確定枚数「5」が設定されていた場合には、図15(a)に示されるように、当該テーブルにおいて、ユーザID「UID001」と対応づけられるセット未確定枚数「5」が「0」になる。また、さらに、クーポン管理テーブル131において、当該クーポンID「CID001」と対応づけられる全体の残枚数が「995」である場合には、図15(b)に示されるように、当該テーブルにおいて、当該全体の残枚数「995」は「5」増加し、「1000」になる。   For example, for the user having the user ID “UID001” in the set start process, if the set undetermined number “5” is set in the user management table 132 in association with the coupon ID “CID001”, FIG. ), The set undetermined number “5” associated with the user ID “UID001” is “0” in the table. In addition, in the coupon management table 131, when the total remaining number associated with the coupon ID “CID001” is “995”, as shown in FIG. The total remaining number “995” increases by “5” to “1000”.

ステップSa1306の処理の終了後、ASPサーバ10は、利用禁止フラグをOFFにしてから(ステップSa1305)、セット確定処理を終了する。
以上が、セット確定処理についての説明である。
After the processing of step Sa1306 is completed, the ASP server 10 sets the use prohibition flag to OFF (step Sa1305), and then ends the set confirmation processing.
This completes the description of the set confirmation process.

なお、このセット確定処理において、ステップSa1302からステップSa1304までの処理は、その順序を入れ替えてもよい。   In this set confirmation process, the order of the processes from step Sa1302 to step Sa1304 may be changed.

セット確定処理の終了後、端末装置20のユーザが電子クーポンを利用すべく当該端末を店舗端末40のリーダ/ライタ41にかざすと、リーダ/ライタ41はICチップ25に記憶されたユーザIDとクーポン書込情報とを読み取る。そして、店舗端末40は、読み取った情報を店舗管理サーバ30に送信する。店舗端末40から当該情報を受信した店舗管理サーバ30は、ASPサーバ10に対して、電子クーポンの利用の許否を問い合わせる利用許否問い合わせを送信する(図8、ステップSa14)。この利用許否問い合わせには、ICチップ25から読み出したユーザIDと、クーポン書込情報を示す情報とが含まれる。   When the user of the terminal device 20 holds the terminal over the reader / writer 41 of the store terminal 40 to use the electronic coupon after the set confirmation process is completed, the reader / writer 41 stores the user ID and coupon stored in the IC chip 25. Read write information. Then, the store terminal 40 transmits the read information to the store management server 30. The store management server 30 that has received the information from the store terminal 40 transmits a use permission inquiry for inquiring whether or not to use the electronic coupon to the ASP server 10 (FIG. 8, step Sa14). This use permission / inquiry inquiry includes a user ID read from the IC chip 25 and information indicating coupon writing information.

店舗管理サーバ30から利用許否問い合わせを受信したASPサーバ10は、利用許否判定処理を実行する(ステップSa15)。図16は、利用許否判定処理を示すフローチャートである。   The ASP server 10 that has received the use permission inquiry from the store management server 30 executes a use permission determination process (step Sa15). FIG. 16 is a flowchart showing the use permission determination process.

ステップSa1501においてASPサーバ10は、利用対象となる電子クーポンが、その利用につき制限枚数が設定されているか否かについて判断する。具体的には、ASPサーバ10は、利用許否問い合わせに含まれるユーザIDとユーザ管理テーブル132において対応づけられているクーポンIDについて、クーポン管理テーブル131とユーザ管理テーブル132とにおいて制限枚数が設定されているか否かについて判断する。   In step Sa1501, the ASP server 10 determines whether or not the electronic coupon to be used is set to a limited number for use. Specifically, the ASP server 10 sets a limited number of coupons in the coupon management table 131 and the user management table 132 for the coupon ID associated with the user ID included in the use permission inquiry in the user management table 132. Judge whether or not.

この判断の結果、その電子クーポンの利用につき制限枚数が設定されていない場合には(ステップSa1501;NO)、ASPサーバ10は、電子クーポンの利用を許可すると判定し(ステップSa1504)、利用許否判定処理を終了する。一方、この判断の結果、その電子クーポンの利用につき制限枚数が設定されている場合には(ステップSa1501;YES)、ASPサーバ10はステップSa1502の処理を実行する。   As a result of the determination, if the limit number for use of the electronic coupon is not set (step Sa1501; NO), the ASP server 10 determines that the use of the electronic coupon is permitted (step Sa1504), and determines whether or not to use the electronic coupon. The process ends. On the other hand, as a result of this determination, if the limited number of sheets is set for the use of the electronic coupon (step Sa1501; YES), the ASP server 10 executes the process of step Sa1502.

ステップSa1502においてASPサーバ10は、電子クーポンの利用が禁止されているか否かについて判断する。具体的には、ASPサーバ10は、利用許否問い合わせに含まれるユーザIDについて、利用管理テーブル133において、利用禁止フラグがONに設定されているか否かについて判断する。   In step Sa1502, the ASP server 10 determines whether or not use of the electronic coupon is prohibited. Specifically, the ASP server 10 determines whether or not the use prohibition flag is set to ON in the use management table 133 for the user ID included in the use permission inquiry.

この判断の結果、利用禁止フラグがONに設定されている場合には(ステップSa1502;YES)、ASPサーバ10は、電子クーポンの利用は許可しないと判定し(ステップSa1505)、利用許否判定処理を終了する。一方、この判断の結果、利用禁止フラグがOFFに設定されている場合には(ステップSa1502;NO)、ASPサーバ10は、ステップSa1503の処理を実行する。   As a result of the determination, if the use prohibition flag is set to ON (step Sa1502; YES), the ASP server 10 determines that the use of the electronic coupon is not permitted (step Sa1505), and performs the use permission determination process. finish. On the other hand, as a result of this determination, when the use prohibition flag is set to OFF (step Sa1502; NO), the ASP server 10 executes the process of step Sa1503.

ステップSa1503においてASPサーバ10は、利用許否問い合わせにより示されるクーポン書込情報と、利用許否問い合わせに含まれるユーザIDと利用管理テーブル133において対応づけられているクーポン書込情報とが一致するか否かについて判断する。   In step Sa1503, the ASP server 10 determines whether or not the coupon writing information indicated by the usage permission inquiry matches the coupon ID information associated with the user ID included in the usage permission inquiry and the usage management table 133. Judge about.

この判断の結果、両クーポン書込情報が一致する場合には(ステップSa1503;YES)、ASPサーバ10は、電子クーポンの利用を許可すると判定し(ステップSa1504)、利用許否判定処理を終了する。一方、この判断の結果、両クーポン書込情報が一致しない場合には(ステップSa1503;NO)、ASPサーバ10は、電子クーポンの利用を許可しないと判定し(ステップSa1505)、利用許否判定処理を終了する。
以上が、利用許否判定処理についての説明である。
As a result of the determination, if both coupon writing information matches (step Sa1503; YES), the ASP server 10 determines that the use of the electronic coupon is permitted (step Sa1504), and ends the use permission / inhibition determination process. On the other hand, as a result of this determination, if the two pieces of coupon writing information do not match (step Sa1503; NO), the ASP server 10 determines that the use of the electronic coupon is not permitted (step Sa1505), and uses permission determination processing. finish.
The above is the description of the use permission / inhibition determination process.

なお、この利用許否判定処理において、ステップSa1501からステップSa1503までの処理は、その順序を入れ替えてもよい。   In this usage permission determination process, the order of the processes from step Sa1501 to step Sa1503 may be changed.

利用許否判定処理が終了すると、ASPサーバ10は、当該処理の結果を通知する結果通知を店舗管理サーバ30に対して送信する(図8、ステップSa16)。ASPサーバ10から結果通知を受信した店舗管理サーバ30は、その結果通知を店舗端末40に転送する。店舗管理サーバ30から結果通知の転送を受けた店舗端末40は、その結果通知が、電子クーポンの利用を許可するものであった場合には、自機の表示部に、ICチップ25から読み取った電子クーポンの情報を表示し、ユーザによる選択を受け付ける。一方、その結果通知が、電子クーポンの利用を許可しないものであった場合には、自機の表示部にエラー通知を表示する。   When the use permission / rejection determination process ends, the ASP server 10 transmits a result notification for notifying the result of the process to the store management server 30 (FIG. 8, step Sa16). The store management server 30 that has received the result notification from the ASP server 10 transfers the result notification to the store terminal 40. The store terminal 40 that has received the transfer of the result notification from the store management server 30 reads the result notification from the IC chip 25 on the display unit of the own device when the notification of the result permits the use of the electronic coupon. The electronic coupon information is displayed, and selection by the user is accepted. On the other hand, if the result notification does not permit the use of the electronic coupon, an error notification is displayed on the display unit of the own device.

端末装置20によって電子クーポンが利用されると、店舗端末40は、利用された電子クーポンのクーポンIDと、その電子クーポンの利用枚数を示す情報と、ユーザIDとを含む利用通知を店舗管理サーバ30に送信する。店舗端末40から利用通知を受信した店舗管理サーバ30は、その利用通知をASPサーバ10に転送する(ステップSa17)。   When the electronic coupon is used by the terminal device 20, the store terminal 40 sends a use notification including a coupon ID of the used electronic coupon, information indicating the number of used electronic coupons, and a user ID to the store management server 30. Send to. The store management server 30 that has received the use notification from the store terminal 40 transfers the use notification to the ASP server 10 (step Sa17).

店舗管理サーバ30から利用通知の転送を受けたASPサーバ10は、その利用通知に基づいて各データテーブルを更新する処理を行う(ステップSa18)。具体的には、ASPサーバ10は、利用通知に含まれるクーポンIDとユーザIDとにユーザ管理テーブル132において対応づけられるセット済未利用枚数を、利用通知に示される利用枚数だけ減算し、また、個人の利用枚数に、利用通知に示される利用枚数を加算する。また、ASPサーバ10は、個人の残枚数から、利用通知に示される利用枚数だけ減算する。   The ASP server 10 that has received the transfer of the usage notification from the store management server 30 performs a process of updating each data table based on the usage notification (step Sa18). Specifically, the ASP server 10 subtracts the set unused number that is associated in the user management table 132 with the coupon ID and user ID included in the usage notification by the usage number indicated in the usage notification. The usage number indicated in the usage notification is added to the personal usage number. Further, the ASP server 10 subtracts the usage number indicated in the usage notification from the remaining personal number.

例えば、ユーザID「UID001」のユーザによって、クーポンID「CID001」の電子クーポンが1枚利用された場合には、図17に示されるように、ユーザ管理テーブル132において、ユーザID「UID001」とクーポンID「CID001」とに対応づけられるセット済未利用枚数「5」が「1」減じられ、「4」となり、個人の利用枚数「0」が「1」増加し、「1」となる。また、個人の残枚数「10」が「1」減じられ、「9」となる。
以上が、通信システム1の動作についての説明である。
For example, when one electronic coupon with a coupon ID “CID001” is used by a user with a user ID “UID001”, the user ID “UID001” and a coupon are displayed in the user management table 132 as shown in FIG. The set unused number “5” associated with the ID “CID001” is reduced by “1” to “4”, and the individual use number “0” is increased by “1” to become “1”. Also, the remaining number “10” of the individual is reduced by “1” to become “9”.
The above is the description of the operation of the communication system 1.

次に、以上説明した通信システム1の動作について、より具体的な事例に即して説明する。図18は、以下の説明において参照される具体的な事例を示す図である。以下の説明では特に、クーポン書込情報及び利用禁止フラグの設定と、当該設定と電子クーポンの利用の可否の関係について説明する。   Next, the operation of the communication system 1 described above will be described based on more specific examples. FIG. 18 is a diagram illustrating a specific example referred to in the following description. In the following description, the setting of the coupon writing information and the use prohibition flag, and the relationship between the setting and whether or not the electronic coupon can be used will be described.

ユーザAが使用する端末装置20Aが、電子クーポンAを1枚取得することを要求するクーポン取得要求をASPサーバ10に送信すると(イベント1)、ASPサーバ10はセット開始処理を実行する(イベント2)。このセット開始処理では、電子クーポンA、1枚が、セット未確定枚数として設定される。なお、この時点では、図18に示されるように、ASPサーバ10においてクーポン書込情報が記憶されていないため、利用禁止フラグはONに設定されない。   When the terminal device 20A used by the user A transmits a coupon acquisition request for requesting acquisition of one electronic coupon A to the ASP server 10 (event 1), the ASP server 10 executes a set start process (event 2). ). In this set start process, one electronic coupon A is set as the set unconfirmed number. At this time, as shown in FIG. 18, since the coupon writing information is not stored in the ASP server 10, the use prohibition flag is not set to ON.

セット開始処理が終了し、ASPサーバ10から端末装置20Aに対して書込指示が送信されると、端末装置20Aにおいて書込処理が実行される(イベント3)。この書込処理では、電子クーポンA、1枚が、端末装置20Aに書き込まれる。   When the set start process ends and a write instruction is transmitted from the ASP server 10 to the terminal apparatus 20A, the terminal apparatus 20A executes the write process (event 3). In this writing process, one electronic coupon A is written to the terminal device 20A.

書込処理が終了し、端末装置20AからASPサーバ10に対して終了通知が送信されると、ASPサーバ10においてセット確定処理が実行される(イベント4)。このセット確定処理では、セット未確定枚数として設定されていた電子クーポンA、1枚が、セット済未利用枚数として設定される。また、端末装置20Aのクーポン書込日時がクーポン書込み情報の一情報として記憶される。   When the writing process is completed and an end notification is transmitted from the terminal device 20A to the ASP server 10, a set confirmation process is executed in the ASP server 10 (event 4). In this set confirmation process, the electronic coupon A, which has been set as the set unconfirmed number, is set as the set unused number. Further, the coupon writing date and time of the terminal device 20A is stored as one piece of coupon writing information.

次に、ユーザAが使用する端末装置20Aが、電子クーポンAを5枚取得することを要求するクーポン取得要求をASPサーバ10に送信すると(イベント5)、ASPサーバ10はセット開始処理を実行する(イベント6)。このセット開始処理では、電子クーポンA、5枚が、セット未確定枚数として設定される。なお、この時点では、端末装置20Aに記憶されているクーポン書込情報と、ASPサーバ10において記憶されるクーポン書込情報とが一致するため、利用禁止フラグはONに設定されない。   Next, when the terminal device 20A used by the user A transmits a coupon acquisition request requesting acquisition of five electronic coupons A to the ASP server 10 (event 5), the ASP server 10 executes a set start process. (Event 6). In this set start process, five electronic coupons A are set as the set unconfirmed number. At this time, since the coupon writing information stored in the terminal device 20A matches the coupon writing information stored in the ASP server 10, the use prohibition flag is not set to ON.

セット開始処理が終了し、ASPサーバ10から端末装置20Aに対して書込指示が送信されると、端末装置20Aにおいて書込処理が実行される(イベント7)。この書込処理では、電子クーポンA、5枚が、端末装置20Aに書き込まれる。   When the set start process ends and a write instruction is transmitted from the ASP server 10 to the terminal device 20A, the write process is executed in the terminal device 20A (event 7). In this writing process, five electronic coupons A are written to the terminal device 20A.

書込処理が終了し、端末装置20AからASPサーバ10に対して終了通知が送信されると、ASPサーバ10においてセット確定処理が実行される(イベント8)。このセット確定処理では、セット未確定枚数として設定されていた電子クーポンA、5枚が、セット済未利用枚数として設定される。また、端末装置20Aのクーポン書込情報が記憶される。   When the writing process is completed and an end notification is transmitted from the terminal device 20A to the ASP server 10, a set confirmation process is executed in the ASP server 10 (event 8). In this set confirmation process, the five electronic coupons A set as the set unconfirmed number are set as the set unused number. Further, coupon writing information of the terminal device 20A is stored.

次に、ユーザAが使用する端末装置20Bが、電子クーポンAを5枚取得することを要求するクーポン取得要求をASPサーバ10に送信すると(イベント9)、ASPサーバ10はセット開始処理を実行する(イベント10)。このセット開始処理では、電子クーポンA、5枚が、セット未確定枚数として設定される。また、この時点においてASPサーバ10に記録されているクーポン書込情報は、端末装置20Aのクーポン書込情報であるため、利用禁止フラグがONに設定される。この結果、端末装置20Aによる電子クーポンの利用は禁止される。   Next, when the terminal device 20B used by the user A transmits a coupon acquisition request requesting acquisition of five electronic coupons A to the ASP server 10 (event 9), the ASP server 10 executes a set start process. (Event 10). In this set start process, five electronic coupons A are set as the set unconfirmed number. Further, since the coupon writing information recorded in the ASP server 10 at this time is the coupon writing information of the terminal device 20A, the use prohibition flag is set to ON. As a result, the use of the electronic coupon by the terminal device 20A is prohibited.

セット開始処理が終了し、ASPサーバ10から端末装置20Bに対して書込指示が送信されると、端末装置20Bにおいて書込処理が実行される(イベント11)。この書込処理では、電子クーポンA、5枚が、端末装置20Bに書き込まれる。ただし、この時点ではまだASPサーバ10において端末装置20Aのクーポン書込情報が記憶されているため、端末装置20Bによる電子クーポンの利用は禁止される。   When the set start process ends and a write instruction is transmitted from the ASP server 10 to the terminal device 20B, the write process is executed in the terminal device 20B (event 11). In this writing process, five electronic coupons A are written to the terminal device 20B. However, at this time, since the coupon writing information of the terminal device 20A is still stored in the ASP server 10, use of the electronic coupon by the terminal device 20B is prohibited.

書込処理が終了し、端末装置20BからASPサーバ10に対して終了通知が送信されると、ASPサーバ10においてセット確定処理が実行される(イベント12)。このセット確定処理では、セット未確定枚数として設定されていた電子クーポンA、5枚が、セット済未利用枚数として設定される。また、端末装置20Bのクーポン書込情報が記憶され、利用禁止フラグがOFFに設定される。この結果、端末装置20Bによる電子クーポンの利用は可能となる一方で、端末装置20Aによる電子クーポンの利用は、利用禁止フラグはOFFに設定されたものの、クーポン書込情報が端末装置20Bのクーポン書込情報に更新されているため、引き続き禁止されることになる。   When the writing process is completed and an end notification is transmitted from the terminal device 20B to the ASP server 10, a set confirmation process is executed in the ASP server 10 (event 12). In this set confirmation process, the five electronic coupons A set as the set unconfirmed number are set as the set unused number. Further, the coupon writing information of the terminal device 20B is stored, and the use prohibition flag is set to OFF. As a result, while the electronic coupon can be used by the terminal device 20B, the electronic coupon is used by the terminal device 20A, the coupon prohibition flag is set to OFF, but the coupon writing information is the coupon document of the terminal device 20B. Since it has been updated to include information, it will continue to be prohibited.

以上説明した本実施形態に係る通信システム1によれば、ユーザによって端末装置20に電子クーポンが書き込まれる際に、当該装置に対して電子クーポンの書込指示がなされた日時に基づき特定される情報を示すクーポン書込情報がASPサーバ10に記憶される。そして、当該ユーザによって電子クーポンが利用される際には、その利用時の端末装置20に記憶されるクーポン書込情報と、ASPサーバ10において記憶されているクーポン書込情報とが比較され、両者が一致した場合にのみ、電子クーポンの利用が許可される。よって、例えば、1人のユーザが、1人あたりの利用制限枚数が10枚であるところ、1台目の端末装置20に10枚の電子クーポンを書き込み、2台目の端末装置20にも10枚の電子クーポンを書き込んだとしても、最初に書きこみを行った端末装置20については、電子クーポンの利用が禁止されることになる。   According to the communication system 1 according to the present embodiment described above, when an electronic coupon is written on the terminal device 20 by the user, information specified based on the date and time when the electronic coupon is instructed to the device. Is written in the ASP server 10. And when the said user uses an electronic coupon, the coupon writing information memorize | stored in the terminal device 20 at the time of the utilization and the coupon writing information memorize | stored in ASP server 10 are compared, both The use of the electronic coupon is permitted only when the two match. Thus, for example, when one user has 10 usage limit sheets, 10 electronic coupons are written in the first terminal device 20 and 10 in the second terminal device 20. Even if one electronic coupon is written, the use of the electronic coupon is prohibited for the terminal device 20 that has written first.

また、本実施形態に係る通信システム1によれば、すでに電子クーポンが提供されている端末装置20とは異なる端末装置20であって、同一のユーザによって使用される端末装置20に電子クーポンが提供される場合には、そのセット開始処理からセット確定処理にかけて利用禁止フラグがONに設定される。この結果、後で電子クーポンを取得することになる端末装置20に対して電子クーポンが書き込まれ、そのクーポン書込情報がASPサーバ10に記憶されるまでの間は、最初に電子クーポンを取得した端末装置20による電子クーポンの利用は禁止されることになる。   Moreover, according to the communication system 1 which concerns on this embodiment, it is the terminal device 20 different from the terminal device 20 with which the electronic coupon is already provided, Comprising: An electronic coupon is provided to the terminal device 20 used by the same user In the case of being performed, the use prohibition flag is set to ON from the set start process to the set confirmation process. As a result, the electronic coupon is first written until the electronic coupon is written to the terminal device 20 that will acquire the electronic coupon later and the coupon writing information is stored in the ASP server 10. The use of the electronic coupon by the terminal device 20 is prohibited.

この点についてより具体的に説明すると、例えば図18に示される事例のイベント11において、端末装置20Aによる電子クーポンAの利用は、利用禁止フラグがONに設定されているため、禁止されている。しかし、もし利用禁止フラグがONに設定されていなければ、ASPサーバ10には端末装置20Aのクーポン書込情報が記憶されているため、端末装置20Aによる電子クーポンAの利用は許可されてしまう。このとき、もし電子クーポンAの利用制限枚数が5枚に設定されていたとすると、ユーザAは、この利用制限枚数を超えて、端末装置20Aと端末装置20Bとにより電子クーポンAを利用することができることになってしまう。   More specifically, for example, in the event 11 of the case shown in FIG. 18, the use of the electronic coupon A by the terminal device 20A is prohibited because the use prohibition flag is set to ON. However, if the use prohibition flag is not set to ON, the ASP server 10 stores the coupon writing information of the terminal device 20A, so that the use of the electronic coupon A by the terminal device 20A is permitted. At this time, if the usage limit number of the electronic coupon A is set to 5, the user A can use the electronic coupon A by the terminal device 20A and the terminal device 20B exceeding the usage limit number. It will be possible.

しかし、上記に説明した通り、端末装置20Bのためのセット開始処理では、利用禁止フラグがONに設定されるため、イベント11において端末装置20Aによる電子クーポンAの利用は禁止されることになる。   However, as described above, in the set start process for the terminal device 20B, since the use prohibition flag is set to ON, the use of the electronic coupon A by the terminal device 20A is prohibited in the event 11.

2.第2実施形態
上記の第1実施形態では、端末装置20にICチップ25を備えさせ、このICチップ25をリーダ/ライタ41にかざすことによって電子クーポンが利用されている。しかし、端末装置20にICチップ25を備えさせずに、端末装置20のUI部24に二次元コードを表示させて、これをリーダ/ライタ41により読み取らせることにより、電子クーポンを利用させるようにしてもよい。本実施形態では、このような態様について説明する。なお、以下の説明では、第1実施形態と同様の要素については、同様の参照符号を付し、その説明を省略する。
2. Second Embodiment In the first embodiment described above, the terminal device 20 is provided with the IC chip 25, and the electronic chip is used by holding the IC chip 25 over the reader / writer 41. However, without providing the terminal device 20 with the IC chip 25, the two-dimensional code is displayed on the UI unit 24 of the terminal device 20 and is read by the reader / writer 41 so that the electronic coupon can be used. May be. In this embodiment, such an aspect will be described. In the following description, elements similar to those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

2−1.構成
図19は、本実施形態に係る通信システム1Aの構成を示す図である。通信システム1Aは、図19に示されるように、ASPサーバ10Aと、端末装置20Cと、店舗管理サーバ30と、店舗端末40とを備える。本実施形態では、第1実施形態と比較して、アプリケーション管理サーバ50が存在しない。
2-1. Configuration FIG. 19 is a diagram illustrating a configuration of a communication system 1A according to the present embodiment. As illustrated in FIG. 19, the communication system 1A includes an ASP server 10A, a terminal device 20C, a store management server 30, and a store terminal 40. In the present embodiment, the application management server 50 does not exist as compared with the first embodiment.

図20は、ASPサーバ10Aのハードウェア構成を示すブロック図である。図20に示されるように、ASPサーバ10Aは、第1実施形態に係るASPサーバ10と比較して、記憶部13に記憶されるデータテーブルが異なっている。具体的には、クーポン管理テーブル131と、ユーザ管理テーブル132Aと、利用管理テーブル133Aとが記憶される。なお、クーポン管理テーブル131のデータ構造については、第1実施形態と同様であるため、その説明を省略する。   FIG. 20 is a block diagram illustrating a hardware configuration of the ASP server 10A. As shown in FIG. 20, the ASP server 10 </ b> A differs from the ASP server 10 according to the first embodiment in the data table stored in the storage unit 13. Specifically, a coupon management table 131, a user management table 132A, and a usage management table 133A are stored. Note that the data structure of the coupon management table 131 is the same as that of the first embodiment, and a description thereof will be omitted.

図21は、ユーザ管理テーブル132Aのデータ構造を示す図である。ユーザ管理テーブル132Aは、図21に示されるように、「ユーザID」、「クーポンID」、「制限枚数(個人)」、「未利用枚数」、「利用枚数(個人)」及び「残枚数(個人)」という各情報が対応づけられたデータテーブルである。第1実施形態に係るユーザ管理テーブル132と比較して、「セット未確定枚数」及び「セット未利用枚数」に代えて、「未利用枚数」が格納される。この「未利用枚数」は、まだ利用されていない電子クーポンの枚数である。   FIG. 21 shows the data structure of the user management table 132A. As shown in FIG. 21, the user management table 132A includes “user ID”, “coupon ID”, “restricted number (individual)”, “unused number”, “used number (individual)”, and “remaining number ( It is a data table in which each piece of information “person” is associated. Compared with the user management table 132 according to the first embodiment, “unused number” is stored instead of “unset number of sets” and “unused number of sets”. This “unused number” is the number of electronic coupons that have not been used yet.

図22は、利用管理テーブル133Aのデータ構造を示す図である。利用管理テーブル133Aは、図22に示されるように、「ユーザID」、「クーポン書込情報」及び「使用済みフラグ」という各情報が対応づけられたデータテーブルである。   FIG. 22 is a diagram showing the data structure of the usage management table 133A. As shown in FIG. 22, the usage management table 133A is a data table in which pieces of information “user ID”, “coupon writing information”, and “used flag” are associated with each other.

「ユーザID」は、端末装置20Cのユーザを識別する識別情報である。「クーポン書込情報」は、端末装置20Cに電子クーポンが記憶される日時に基づき特定される情報である。「使用済みフラグ」は、電子クーポンがすでに利用済みであるか否かを示す情報である。電子クーポンがすでに利用済みである場合には、「YES」に設定され、まだ利用されていない場合には「NO」に設定される。   “User ID” is identification information for identifying the user of the terminal device 20C. “Coupon writing information” is information specified based on the date and time when the electronic coupon is stored in the terminal device 20C. The “used flag” is information indicating whether or not the electronic coupon has already been used. If the electronic coupon has already been used, it is set to “YES”, and if it has not been used yet, it is set to “NO”.

図23は、端末装置20Cのハードウェア構成を示すブロック図である。図23に示されるように、端末装置20Cは、ICチップ25とクーポン管理アプリケーション261とを備えない点において、第1実施形態に係る端末装置20と相違している。本実施形態に係る端末装置20Cでは、当該装置のユーザを識別するユーザIDや、ASPサーバ10Aから提供される二次元コードは、例えば記憶部26に記憶される。   FIG. 23 is a block diagram illustrating a hardware configuration of the terminal device 20C. As shown in FIG. 23, the terminal device 20C is different from the terminal device 20 according to the first embodiment in that the terminal device 20C does not include the IC chip 25 and the coupon management application 261. In the terminal device 20C according to the present embodiment, the user ID for identifying the user of the device and the two-dimensional code provided from the ASP server 10A are stored in the storage unit 26, for example.

2−2.動作
次に、通信システム1Aの動作について説明する。図24は、通信システム1Aの動作を示すシーケンスチャートである。
2-2. Operation Next, the operation of the communication system 1A will be described. FIG. 24 is a sequence chart showing the operation of the communication system 1A.

端末装置20Cは、電子クーポンを取得する際、ASPサーバ10Aに対してクーポン取得要求を送信する(ステップSb1)。このクーポン取得要求には、取得しようとする電子クーポンを示すクーポンIDと、その電子クーポンの取得枚数を示す情報と、記憶部26に記憶されているユーザIDとが含まれる。なお、ユーザIDは、当該クーポン取得要求とは別にASPサーバ10Aに送信するようにしてもよい。端末装置20Cからクーポン取得要求を受信したASPサーバ10Aは、発行処理を実行する(ステップSb2)。図25は、発行処理を示すフローチャートである。   When acquiring the electronic coupon, the terminal device 20C transmits a coupon acquisition request to the ASP server 10A (step Sb1). This coupon acquisition request includes a coupon ID indicating an electronic coupon to be acquired, information indicating the number of acquired electronic coupons, and a user ID stored in the storage unit 26. The user ID may be transmitted to the ASP server 10A separately from the coupon acquisition request. The ASP server 10A that has received the coupon acquisition request from the terminal device 20C executes the issuing process (step Sb2). FIG. 25 is a flowchart showing the issuing process.

ステップSb21においてASPサーバ10Aは、取得の対象となっている枚数の電子クーポンが提供可能か否かについて判断する。具体的には、ASPサーバ10Aは、クーポン管理テーブル131とユーザ管理テーブル132Aとを参照して、クーポン取得要求に含まれるクーポンIDにより示される電子クーポンの全体の残枚数及び個人の残枚数が、それぞれクーポン取得要求により示される取得枚数以上であるか否かについて判断する。   In step Sb21, the ASP server 10A determines whether or not the number of electronic coupons to be acquired can be provided. Specifically, the ASP server 10A refers to the coupon management table 131 and the user management table 132A, and determines the total remaining number of electronic coupons and the remaining number of individuals indicated by the coupon ID included in the coupon acquisition request. It is determined whether or not the number is equal to or greater than the number obtained by the coupon acquisition request.

この判断の結果、電子クーポンの全体の残枚数又は個人の残枚数が、取得枚数未満である場合には(ステップSb21;NO)、ASPサーバ10Aは端末装置20Cに対してエラー通知を送信し(ステップSb22)、発行処理を終了する。一方、この判断の結果、電子クーポンの全体の残枚数及び個人の残枚数が、取得枚数以上である場合には(ステップSb21;YES)、ASPサーバ10AはステップSb23の処理を実行する。   As a result of this determination, if the total remaining number of electronic coupons or the remaining number of individuals is less than the acquired number (step Sb21; NO), the ASP server 10A transmits an error notification to the terminal device 20C ( Step Sb22), the issue process is terminated. On the other hand, as a result of this determination, if the total remaining number of electronic coupons and the remaining number of individuals are greater than or equal to the acquired number (step Sb21; YES), the ASP server 10A executes the process of step Sb23.

また、電子クーポンに対して有効期限を設定する場合には、ステップSb23においてASPサーバ10Aは、端末装置20Cにおいて利用されなかった電子クーポンがある場合には、その電子クーポンを回収する処理を実行してもよい。具体的には、ASPサーバ10Aは、まず、端末装置20CのユーザのユーザIDとユーザ管理テーブル132Aにおいて対応づけられている未利用枚数をすべてクリアする。次に、ASPサーバ10Aは、ユーザ管理テーブル132Aにおいてクリアした未利用枚数を、クーポン管理テーブル131において、対応する電子クーポンの全体の残枚数に加算する。   Moreover, when setting an expiration date with respect to an electronic coupon, ASP server 10A performs the process which collects the electronic coupon in step Sb23, when there exists an electronic coupon which was not utilized in the terminal device 20C. May be. Specifically, the ASP server 10A first clears all unused numbers associated with the user ID of the user of the terminal device 20C and the user management table 132A. Next, the ASP server 10A adds the unused number cleared in the user management table 132A to the total remaining number of corresponding electronic coupons in the coupon management table 131.

次に、ASPサーバ10Aは、取得される電子クーポンの枚数を未利用枚数として設定する(ステップSb24)。具体的には、ASPサーバ10Aは、まず、クーポン取得要求に含まれるクーポンIDに示される電子クーポンについて、クーポン管理テーブル131において、全体の残枚数から取得枚数を減じる。次に、ASPサーバ10Aは、ユーザ管理テーブル132Aにおいて、クーポン取得要求に含まれるユーザIDと対応づけて、当該クーポンIDを書き込み、かつ、クーポン取得要求により示される取得枚数を未利用枚数として設定する。   Next, the ASP server 10A sets the number of acquired electronic coupons as an unused number (step Sb24). Specifically, the ASP server 10A first subtracts the acquired number of sheets from the total remaining number in the coupon management table 131 for the electronic coupon indicated by the coupon ID included in the coupon acquisition request. Next, in the user management table 132A, the ASP server 10A writes the coupon ID in association with the user ID included in the coupon acquisition request, and sets the acquired number indicated by the coupon acquisition request as an unused number. .

次に、ASPサーバ10Aは、取得対象の電子クーポンを示す二次元コードを生成する(ステップSb25)。具体的には、ASPサーバ10Aは、クーポン取得要求に含まれるクーポンIDとユーザIDと、当該電子クーポンが発行される日時に基づき特定される情報(例えば、端末装置20Cに電子クーポンが記憶される日時)を示すクーポン書込情報とを組み合わせた文字列を二次元コードに変換する。なおここで、ASPサーバ10Aは、二次元コードに代えて一次元コードを生成するようにしてもよい。また、ASPサーバ10Aは、当該文字列を暗号化したり、当該文字列に電子署名(秘密鍵で暗号化されたハッシュ値)を付加した上で二次元コードに変換してもよい。   Next, the ASP server 10A generates a two-dimensional code indicating the electronic coupon to be acquired (step Sb25). Specifically, the ASP server 10A stores information specified based on the coupon ID and user ID included in the coupon acquisition request and the date and time when the electronic coupon is issued (for example, the electronic coupon is stored in the terminal device 20C). A character string combined with coupon writing information indicating (date and time) is converted into a two-dimensional code. Here, the ASP server 10A may generate a one-dimensional code instead of the two-dimensional code. Further, the ASP server 10A may encrypt the character string or add an electronic signature (hash value encrypted with a secret key) to the character string and convert the character string to a two-dimensional code.

次に、ASPサーバ10Aは、クーポン取得要求に含まれるユーザIDと、上記のクーポン書込情報とを対応づけて利用管理テーブル133Aに書き込む(ステップSb26)。また、ASPサーバ10Aは、これらの情報に対応づけて、使用済みフラグをNOに設定する。   Next, the ASP server 10A associates the user ID included in the coupon acquisition request with the coupon writing information and writes it in the usage management table 133A (step Sb26). In addition, the ASP server 10A sets the used flag to NO in association with these pieces of information.

なお、この発行処理において、ステップSb23からステップSb26までの処理は、その順序を入れ替えてもよい。また、ステップSb23の処理は省略してもよい。   In this issuing process, the order of the processes from step Sb23 to step Sb26 may be changed. Further, the process of step Sb23 may be omitted.

発行処理が終了すると、ASPサーバ10Aは、生成した二次元コードを端末装置20Cに送信する(図24、ステップSb3)。この後、二次元コードを受信した端末装置20Cのユーザが、電子クーポンを利用する際には、端末装置20CのUI部24に二次元コードを表示させて、この二次元コードを店舗端末40のリーダ/ライタ41に読み取らせる。リーダ/ライタ41によって二次元コードを読み取った店舗端末40は、当該二次元コードからクーポンIDと、ユーザIDと、クーポン書込情報とを抽出し、これらの情報のうち、ユーザIDとクーポン書込情報とを店舗管理サーバ30に送信する。   When the issuing process ends, the ASP server 10A transmits the generated two-dimensional code to the terminal device 20C (FIG. 24, step Sb3). Thereafter, when the user of the terminal device 20C receiving the two-dimensional code uses the electronic coupon, the two-dimensional code is displayed on the UI unit 24 of the terminal device 20C, and the two-dimensional code is displayed on the store terminal 40. The reader / writer 41 is caused to read. The store terminal 40 that has read the two-dimensional code by the reader / writer 41 extracts the coupon ID, the user ID, and the coupon writing information from the two-dimensional code. Among these pieces of information, the user ID and the coupon writing are extracted. Information is transmitted to the store management server 30.

当該情報を店舗端末40から受信した店舗管理サーバ30は、ASPサーバ10Aに対して、電子クーポンの利用の許否を問い合わせる利用許否問い合わせを送信する(ステップSb4)。この利用許否問い合わせには、店舗端末40から受信したユーザIDと、クーポン書込情報を示す情報とが含まれる。   The store management server 30 that has received the information from the store terminal 40 transmits a use permission / inquiry inquiry for inquiring whether or not to use the electronic coupon to the ASP server 10A (step Sb4). This use permission / inquiry inquiry includes the user ID received from the store terminal 40 and information indicating the coupon writing information.

店舗管理サーバ30から利用許否問い合わせを受信したASPサーバ10Aは、利用許否判定処理を実行する(ステップSb5)。図26は、利用許否判定処理を示すフローチャートである。   The ASP server 10A that has received the use permission inquiry from the store management server 30 executes a use permission determination process (step Sb5). FIG. 26 is a flowchart showing the use permission determination process.

ステップSb51においてASPサーバ10Aは、利用許否問い合わせにより示されるクーポン書込情報と、利用許否問い合わせに含まれるユーザIDと利用管理テーブル133Aにおいて対応づけられているクーポン書込情報とが一致するか否かについて判断する。   In step Sb51, the ASP server 10A determines whether the coupon writing information indicated by the usage permission inquiry matches the user ID included in the usage permission inquiry and the coupon writing information associated with the usage management table 133A. Judge about.

この判断の結果、両クーポン書込情報が一致しない場合には(ステップSb51;NO)、ASPサーバ10Aは、電子クーポンの利用を許可しないと判定し(ステップSb55)、利用許否判定処理を終了する。一方、この判断の結果、両クーポン書込情報が一致する場合には(ステップSb51;YES)、ASPサーバ10Aは、当該電子クーポンが使用済みであるか否かについて判断する(ステップSb52)。具体的には、ASPサーバ10Aは、利用許否問い合わせに含まれるユーザID及びクーポンIDと利用管理テーブル133Aにおいて対応づけられる使用済みフラグがONに設定されているか否かについて判断する。   As a result of this determination, if the coupon writing information does not match (step Sb51; NO), the ASP server 10A determines that the use of the electronic coupon is not permitted (step Sb55), and ends the use permission determination process. . On the other hand, as a result of this determination, if both pieces of coupon writing information match (step Sb51; YES), the ASP server 10A determines whether or not the electronic coupon has been used (step Sb52). Specifically, the ASP server 10A determines whether or not the used flag associated with the user ID and coupon ID included in the use permission inquiry and the use management table 133A is set to ON.

この判断の結果、電子クーポンが利用済みである場合には(ステップSb52;YES)、ASPサーバ10Aは、電子クーポンの利用を許可しないと判定し(ステップSb54)、利用許否判定処理を終了する。一方、この判断の結果、電子クーポンが利用済みでない場合には(ステップSb52;NO)、電子クーポンの利用を許可すると判定し(ステップSb53)、利用許否判定処理を終了する。   As a result of this determination, if the electronic coupon has been used (step Sb52; YES), the ASP server 10A determines that the use of the electronic coupon is not permitted (step Sb54), and ends the use permission determination process. On the other hand, if the result of this determination is that the electronic coupon has not been used (step Sb52; NO), it is determined that the use of the electronic coupon is permitted (step Sb53), and the use permission / inhibition determination process is terminated.

なお、この利用許否判定処理において、ステップSb51からステップSb52までの処理は、その順序を入れ替えてもよい。   In this usage permission determination process, the order of the processes from step Sb51 to step Sb52 may be changed.

利用許否判定処理が終了すると、ASPサーバ10Aは、当該処理の結果を通知する結果通知を店舗管理サーバ30に対して送信する(図24、ステップSb6)。ASPサーバ10Aから結果通知を受信した店舗管理サーバ30は、その結果通知を店舗端末40に転送する。結果通知を受信した店舗端末40は、その結果通知が、電子クーポンの利用を許可するものであった場合には、自機の表示部に、二次元コードから抽出した電子クーポンの情報を表示し、ユーザによる選択を受け付ける。一方、その結果通知が、電子クーポンの利用を許可しないものであった場合には、自機の表示部にエラー通知を表示する。   When the use permission determination process ends, the ASP server 10A transmits a result notification for notifying the result of the process to the store management server 30 (FIG. 24, step Sb6). The store management server 30 that has received the result notification from the ASP server 10 </ b> A transfers the result notification to the store terminal 40. The store terminal 40 that has received the result notification displays the information of the electronic coupon extracted from the two-dimensional code on the display unit of the own device when the result notification permits the use of the electronic coupon. , Accepts selection by the user. On the other hand, if the result notification does not permit the use of the electronic coupon, an error notification is displayed on the display unit of the own device.

端末装置20Cによって電子クーポンが利用されると、店舗端末40は、利用された電子クーポンのクーポンIDと、その電子クーポンの利用枚数を示す情報と、ユーザIDとを含む利用通知を店舗管理サーバ30に送信する。店舗端末40から利用通知を受信した店舗管理サーバ30は、その利用通知をASPサーバ10Aに転送する(ステップSb7)。   When the electronic coupon is used by the terminal device 20C, the store terminal 40 sends a use notification including the coupon ID of the used electronic coupon, information indicating the number of used electronic coupons, and the user ID to the store management server 30. Send to. The store management server 30 that has received the use notification from the store terminal 40 transfers the use notification to the ASP server 10A (step Sb7).

店舗管理サーバ30から利用通知の転送を受けたASPサーバ10Aは、その利用通知に基づいて各データテーブルを更新する処理を行う(ステップSb8)。具体的には、ASPサーバ10Aは、利用通知に含まれるクーポンIDとユーザIDとにユーザ管理テーブル132Aにおいて対応づけられる未利用枚数を、利用通知に示される利用枚数だけ減算し、また、個人の利用枚数に、利用通知に示される利用枚数を加算する。また、ASPサーバ10Aは、個人の残枚数から、利用通知に示される利用枚数だけ減算する。また、ASPサーバ10Aは、利用通知に含まれるユーザIDと利用管理テーブル133Aにおいて対応づけられる利用済みフラグをONに設定する。   The ASP server 10A that has received the transfer of the usage notification from the store management server 30 performs a process of updating each data table based on the usage notification (step Sb8). Specifically, the ASP server 10A subtracts the unused number that is associated with the coupon ID and the user ID included in the usage notification in the user management table 132A by the usage number indicated in the usage notification. The usage number indicated in the usage notification is added to the usage number. Further, the ASP server 10A subtracts the usage number indicated in the usage notification from the remaining number of individuals. Also, the ASP server 10A sets the used flag associated with the user ID included in the usage notification in the usage management table 133A to ON.

なお、利用済みフラグをONに設定するタイミングは、この例に限らず、利用許否判定処理において電子クーポンの利用を許可すると判定した時点であってもよい。この場合、利用決済処理のタイミングと、利用通知送信のタイミングとの間に時差が生じたとしても、電子クーポンの重複利用を防ぐことが出来る。
以上が、通信システム1Aの動作についての説明である。
The timing at which the used flag is set to ON is not limited to this example, and may be the time when it is determined that the use of the electronic coupon is permitted in the use permission determination process. In this case, even if a time difference occurs between the timing of the usage settlement process and the timing of usage notification transmission, it is possible to prevent the electronic coupon from being used repeatedly.
The above is the description of the operation of the communication system 1A.

以上説明した本実施形態に係る通信システム1Aによれば、ユーザによって端末装置20Cに電子クーポン(二次元コード)が書き込まれる際に、当該装置に電子クーポンが書き込まれた日時に基づき特定される情報を示すクーポン書込情報がASPサーバ10Aに記憶される。そして、当該ユーザによって電子クーポンが利用される際には、二次元コードから読み取られるクーポン書込情報と、ASPサーバ10において記憶されているクーポン書込情報とが比較され、両者が一致した場合にのみ、電子クーポンの利用が許可される。よって、同一のユーザによって、同一の電子クーポンが複数発行されたとしても、当該ユーザによって利用可能な電子クーポンは、最後に発行された電子クーポンのみとなる。また、仮に電子クーポンを示す二次元コードが他人に複写されてしまったとしても、同一の電子クーポンを再発行してもらえば、当該複写された二次元コードに示される電子クーポンの利用を不能とすることができる。   According to the communication system 1A according to the present embodiment described above, when an electronic coupon (two-dimensional code) is written on the terminal device 20C by the user, information specified based on the date and time when the electronic coupon was written on the device. Is written in the ASP server 10A. When the electronic coupon is used by the user, the coupon writing information read from the two-dimensional code is compared with the coupon writing information stored in the ASP server 10 and the two match. Only the use of electronic coupons is permitted. Therefore, even if a plurality of the same electronic coupons are issued by the same user, the electronic coupons that can be used by the user are only the lastly issued electronic coupons. In addition, even if the two-dimensional code indicating the electronic coupon has been copied by another person, if the same electronic coupon is reissued, the electronic coupon indicated in the copied two-dimensional code cannot be used. can do.

3.変形例
上記の実施形態は、以下のように変形してもよい。また、以下の変形例は、互いに組み合わせてもよい。
3. Modifications The above embodiment may be modified as follows. The following modifications may be combined with each other.

3−1.変形例1
上記の第1実施形態において、クーポン書込情報に代えて、端末IDを使用してもよい。この端末IDは、端末装置20を識別する情報であって、例えばICチップ25のメモリ領域251以外のメモリ領域に記憶されてよい。クーポン書込情報に代えて端末IDを使用した場合でも、端末IDは個々の端末装置20を識別することができる情報であるから、複数の端末装置20を使った制限枚数を超えた電子クーポンの利用を防止することができる。また、第2実施形態においても、クーポン書込情報に代えて、端末IDを使用してもよい。
3-1. Modification 1
In the first embodiment, a terminal ID may be used instead of the coupon writing information. The terminal ID is information for identifying the terminal device 20, and may be stored in a memory area other than the memory area 251 of the IC chip 25, for example. Even when the terminal ID is used instead of the coupon writing information, since the terminal ID is information that can identify each terminal device 20, the electronic coupon exceeding the limit number using the plurality of terminal devices 20 is used. Use can be prevented. Also in the second embodiment, a terminal ID may be used instead of the coupon writing information.

なお、第1実施形態においてクーポン書込情報に代えて端末IDを使用する際、図8のステップSa1において、クーポン取得要求とは別に端末IDを取得するようにしてもよい。具体的には、ASPサーバ10は、端末装置20から、端末IDを含まないクーポン取得要求を受信した後で、当該端末装置に対して端末IDを要求して取得するようにしてもよい。この際、ASPサーバ10は、図8のステップSa3〜Sa12までの処理と同様に、アプリケーション管理サーバ50を介して端末装置20の端末IDを取得するようにしてもよい。   In addition, when using terminal ID instead of coupon writing information in 1st Embodiment, you may make it acquire terminal ID separately from a coupon acquisition request in step Sa1 of FIG. Specifically, after receiving a coupon acquisition request that does not include a terminal ID from the terminal device 20, the ASP server 10 may request and acquire the terminal ID from the terminal device. At this time, the ASP server 10 may acquire the terminal ID of the terminal device 20 via the application management server 50 in the same manner as the processing from steps Sa3 to Sa12 in FIG.

また、第1実施形態においてクーポン書込情報に代えて端末IDを使用する際、図12のステップSa1304においてASPサーバ10の利用管理テーブル133に書き込まれる端末IDは、端末装置20における電子クーポンの書込処理の終了後に、当該端末装置からASPサーバ10に提供されるようにしてもよい。具体的には、図8のステップSa9において、端末装置20からアプリケーション管理サーバ50に対して送信される結果通知に端末IDを含ませ、図8のステップSa12において、アプリケーション管理サーバ50からASPサーバ10に対して送信される結果通知に当該端末IDを含ませ、図12のステップSa1304においてASPサーバ10が、当該端末IDを利用管理テーブル133に書き込むようにしてもよい。   Moreover, when using terminal ID instead of coupon writing information in 1st Embodiment, terminal ID written in the usage management table 133 of ASP server 10 in step Sa1304 of FIG. You may make it be provided to the ASP server 10 from the said terminal device after completion | finish of a loading process. Specifically, the terminal ID is included in the result notification transmitted from the terminal device 20 to the application management server 50 in step Sa9 in FIG. 8, and from the application management server 50 to the ASP server 10 in step Sa12 in FIG. The terminal ID may be included in the result notification transmitted to the ASP, and the ASP server 10 may write the terminal ID in the usage management table 133 in step Sa1304 in FIG.

3−2.変形例2
上記の実施形態においてASPサーバ10又は10Aにより実行されるプログラムは、コンピュータ装置が読み取り可能な記録媒体を介してASPサーバ10又は10Aに提供されてもよい。ここで記録媒体とは、例えば、磁気テープや磁気ディスクなどの磁気記録媒体や、光ディスクなどの光記録媒体や、光磁気記録媒体や、半導体メモリ等である。また、同プログラムはインターネット等のネットワークを介してASPサーバ10又は10Aに提供されてもよい。
3-2. Modification 2
In the above embodiment, the program executed by the ASP server 10 or 10A may be provided to the ASP server 10 or 10A via a computer-readable recording medium. Here, the recording medium is, for example, a magnetic recording medium such as a magnetic tape or a magnetic disk, an optical recording medium such as an optical disk, a magneto-optical recording medium, or a semiconductor memory. The program may be provided to the ASP server 10 or 10A via a network such as the Internet.

3−3.変形例3
上記の第1実施形態において、図8に示されるセット開始処理のステップSa22の処理は、省略してもよい。すなわち、ステップSa21の判断結果が肯定的であった場合に、ステップSa23の処理を実行するようにしてもよい。この場合、図8のステップSa1において端末装置20からASPサーバ10に対して送信されるクーポン取得要求には、クーポン書込情報を示す情報を含めなくてもよい。
3-3. Modification 3
In the first embodiment, the process of step Sa22 of the set start process shown in FIG. 8 may be omitted. That is, when the determination result at step Sa21 is affirmative, the process at step Sa23 may be executed. In this case, the coupon acquisition request transmitted from the terminal device 20 to the ASP server 10 in step Sa1 in FIG. 8 may not include information indicating the coupon writing information.

3−4.変形例4
上記いずれの実施形態においても、クーポン書込情報としてクーポン書込日時又は書込みを指示された日時のみを利用することを前提としているが、これに限るものではなく、クーポン書込日時又は指示日時に対し一意に定まる、関数により生成された乱数であってもよい。また、クーポン書込日時又は指示日時と、このクーポン書込情報に対する有効期限、利用地域に関する情報、本人であるかを判断できる情報、本人認証を利用時に要求するフラグを組合せた情報であってもよい。これにより、仮に第三者にICデータやQRコード等のクーポン情報が盗み取られ、本人が気づかずに再発行しない場合でも、一定期間や一定地域を超えて、また本人であるかを判断できる情報を店舗端末に表示したり、本人確認を利用者に求めることにより、意図しない第三者がクーポンを利用することを防止することが出来る。
3-4. Modification 4
In any of the above-described embodiments, it is assumed that only the coupon writing date or the date when writing is instructed is used as the coupon writing information, but the present invention is not limited to this. Alternatively, it may be a random number generated by a function that is uniquely determined. Further, even when the coupon writing date / time or instruction date / time is combined with an expiration date for this coupon writing information, information regarding the area of use, information that can be used to determine whether or not the user is authentic, and a flag that requests user authentication at the time of use. Good. As a result, even if coupon information such as IC data or QR code is stolen by a third party, and it is not reissued without being noticed by the person, it can be determined whether or not the person is over a certain period of time or a certain region. By displaying information on the store terminal or asking the user for identity verification, it is possible to prevent an unintended third party from using the coupon.

なお、一定地域での利用か否かについては詳細を図示しないが、利用する店舗に備わるリーダ/ライタIDを用いて、サーバ側で予め当該ID端末の設定場所をデータベース化しておき、利用許否判断の中において地域を判定したり、GPS等を用いた周知の位置測位技術により、店舗端末での読み取り時に携帯端末の位置情報を取得する方法であってもよい。   Although details are not shown as to whether or not it is used in a certain area, the setting location of the ID terminal is made a database in advance on the server side using the reader / writer ID provided in the store to be used, and the use permission judgment is made. The location information of the portable terminal may be acquired at the time of reading at the store terminal by using a well-known position positioning technique using GPS or the like.

更に店員が本人であるかを判断できる情報は、例えば電子クーポン発行対象ユーザの年齢・性別・使用機種等をクーポン発行処理の際に予め登録しておき、店舗端末での読み取り時に利用者の携帯端末から取得して本人確認を行うようにする方法を取ってもよい。更に、電子クーポンを最初に発行した携帯端末から発行時に使用宣言(例えば、取得完了画面において、使用宣言のボタンを押下させるなど)を行わせ、その際の信号中に当該携帯端末IDを含めておく方法を取ってもよい。いずれの方法によっても、単に複数の携帯端末に書き込まれる利用ケースにおいて、発行枚数等の制限の他に本人制限をより的確に行う構成を採用してもよい。   Furthermore, information that can determine whether the store clerk is the person is, for example, the age, sex, model used, etc. of the electronic coupon issuance target user is registered in advance during the coupon issuance process, and the user's mobile phone when reading at the store terminal You may take the method of acquiring from a terminal and confirming identity. In addition, a declaration of use is made at the time of issuance from the mobile terminal that first issued the electronic coupon (for example, a button for declaring use is pressed on the acquisition completion screen), and the portable terminal ID is included in the signal at that time You may take the method. In any of the methods, in a use case where data is simply written in a plurality of portable terminals, a configuration may be adopted in which the person limitation is more accurately performed in addition to the number of issued sheets.

3−5.変形例5
上記の第1、第2実施形態及び各種変形例におけるクーポン書込情報には、端末装置20に対してASPサーバ10により電子クーポンの書込処理が指示された日時(クーポン書込日付)に基づき特定される情報が含まれるが、端末装置20において実際に電子クーポンの書込処理が完了した日時をクーポン書込日時としてもよい。この場合、ASPサーバ10は、図8のステップSa5において、端末装置20に送信する書込指示にクーポン書込を指示した日時を示す情報を含める必要はなく、端末装置20は、図8のステップSa8において、ASPサーバ10から通知されるクーポン書込を指示した日時に代えて、自装置においての書込処理が完了した日時を示すクーポン書込日時を含むクーポン書込情報をメモリ領域251に書き込む。
3-5. Modification 5
The coupon writing information in the first and second embodiments and various modifications is based on the date and time (coupon writing date) when the ASP server 10 instructs the terminal device 20 to write the electronic coupon. Although the specified information is included, the date and time when the electronic coupon writing process is actually completed in the terminal device 20 may be used as the coupon writing date and time. In this case, the ASP server 10 does not need to include information indicating the date and time when the coupon writing is instructed in the writing instruction transmitted to the terminal device 20 in step Sa5 in FIG. In Sa8, instead of the date and time when the coupon writing notified from the ASP server 10 is instructed, the coupon writing information including the date and time when the writing process in the own apparatus is completed is written in the memory area 251. .

また、端末装置20は、図8のステップSa9において、アプリケーション管理サーバ50に送信する結果通知にクーポン書込日時を含むクーポン書込情報を含ませ、アプリケーション管理サーバ50は、図8のステップSa12において、ASPサーバ10に送信する結果通知にクーポン書込日時を含むクーポン書込情報を含ませ、ASPサーバ10は、図12に示されるセット確定処理のステップSa1304において、アプリケーション管理サーバ50から通知されるクーポン書込情報により、利用管理テーブル133に記憶されているクーポン書込情報を更新する。   Further, the terminal device 20 includes coupon writing information including the coupon writing date and time in the result notification transmitted to the application management server 50 in step Sa9 in FIG. 8, and the application management server 50 in step Sa12 in FIG. The result notification transmitted to the ASP server 10 includes coupon writing information including the coupon writing date and time, and the ASP server 10 is notified from the application management server 50 in step Sa1304 of the set confirmation process shown in FIG. The coupon writing information stored in the usage management table 133 is updated with the coupon writing information.

3−6.変形例6
上記の第1実施形態の、図16に示されるステップSa1501の処理において、ASPサーバ10は、利用許否問い合わせに含まれるクーポンIDに基づいて、制限枚数が設定されているか否かを判断する電子クーポンを特定するようにしてもよい。この場合、店舗端末40は、端末装置20のICチップ25から、ユーザIDとクーポン書込情報に加えて、クーポンIDを読み取り、これらの情報を店舗管理サーバ30に送信する。店舗端末40から当該情報を受信した店舗管理サーバ30は、当該情報を含む利用許否問い合わせをASPサーバ10に対して送信する。
3-6. Modification 6
In the process of step Sa1501 shown in FIG. 16 in the first embodiment, the ASP server 10 determines whether or not the limit number is set based on the coupon ID included in the use permission inquiry. May be specified. In this case, the store terminal 40 reads the coupon ID from the IC chip 25 of the terminal device 20 in addition to the user ID and the coupon writing information, and transmits the information to the store management server 30. The store management server 30 that has received the information from the store terminal 40 transmits a use permission inquiry including the information to the ASP server 10.

1…通信システム、10…ASPサーバ、11…制御部、12…通信部、13…記憶部、20…端末装置、21…制御部、22…音声入出力部、23…無線通信部、24…UI部、25…ICチップ、26…記憶部、30…店舗管理サーバ、40…店舗端末、41…リーダ/ライタ、50…アプリケーション管理サーバ、111…記憶制御部、112…更新制御部、113…書込指示部、114…フラグ設定部、115…出力部、131…クーポン管理テーブル、132…ユーザ管理テーブル、133…利用管理テーブル、251…メモリ領域、261…クーポン管理アプリケーション DESCRIPTION OF SYMBOLS 1 ... Communication system, 10 ... ASP server, 11 ... Control part, 12 ... Communication part, 13 ... Memory | storage part, 20 ... Terminal device, 21 ... Control part, 22 ... Voice input / output part, 23 ... Wireless communication part, 24 ... UI unit, 25 ... IC chip, 26 ... storage unit, 30 ... store management server, 40 ... store terminal, 41 ... reader / writer, 50 ... application management server, 111 ... storage control unit, 112 ... update control unit, 113 ... Write instruction unit, 114 ... Flag setting unit, 115 ... Output unit, 131 ... Coupon management table, 132 ... User management table, 133 ... Usage management table, 251 ... Memory area, 261 ... Coupon management application

Claims (10)

端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御部と、
端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力部と
を備えるサーバ装置。
When the electronic coupon is provided to the terminal device, the user ID for identifying the user of the terminal device, the date and time when the electronic coupon was written in the memory region of the terminal device, or the memory region of the terminal device A storage control unit that controls to store in the storage unit the coupon writing information including information specified based on the date and time when the writing of the electronic coupon is directed to
When the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the coupon writing stored in association with the storage unit A server device comprising: an output unit that outputs a signal permitting use of the electronic coupon by the terminal device when the information matches.
端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDとクーポン書込情報とが前記記憶部において対応づけられて記憶されている場合に、当該クーポン書込情報を、別のクーポン書込情報に更新するよう制御する更新制御部と、
端末装置に対して電子クーポンが提供される際に、当該端末装置に対して、当該端末装置が有するメモリ領域に前記電子クーポンを書き込むよう指示する書込指示部と、
端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDとクーポン書込情報を含むとが前記記憶部において対応づけられて記憶されている場合に、前記書込指示部により当該端末装置に対して、当該端末装置が有するメモリ領域に前記電子クーポンを書き込むよう指示が行われる前に、当該端末装置のユーザを識別するユーザIDと対応づけて、前記記憶部において、当該ユーザが使用する端末装置による電子クーポンの利用を禁止すべき旨を示す利用禁止フラグを設定するよう制御するとともに、前記更新制御部により、前記記憶部において当該ユーザIDと対応づけて記憶されているクーポン書込情報が、別のクーポン書込情報に更新されるように制御された後に、当該ユーザIDと対応づけて設定されている前記利用禁止フラグを解除するよう制御するフラグ設定部と
をさらに備え、
前記出力部は、前記端末装置によって前記電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合であっても、前記記憶部において当該ユーザIDに対応づけて利用禁止フラグが設定されている場合には、当該端末装置による前記電子クーポンの利用を拒絶する信号を出力することを特徴とする請求項1に記載のサーバ装置。
When an electronic coupon is provided to a terminal device, when the user ID for identifying the user of the terminal device and coupon writing information are stored in association with each other in the storage unit, the coupon writing is performed. An update control unit for controlling the information to be updated to another coupon writing information;
A writing instruction unit that instructs the terminal device to write the electronic coupon in a memory area of the terminal device when the electronic coupon is provided to the terminal device;
When an electronic coupon is provided to a terminal device, the user ID for identifying the user of the terminal device and coupon writing information are stored in association with each other in the storage unit. Before instructing the terminal device to write the electronic coupon in the memory area of the terminal device by the insertion instruction unit, the storage unit is associated with a user ID that identifies the user of the terminal device. The terminal device used by the user is controlled to set a use prohibition flag indicating that the use of the electronic coupon should be prohibited, and is stored by the update control unit in association with the user ID in the storage unit. After the controlled coupon writing information is updated to another coupon writing information, it is set in association with the user ID. Anda flag setting unit that controls so as to release the use prohibition flags that are,
When the electronic coupon is used by the terminal device, the output unit associates coupon writing information acquired from the terminal device with a user ID for identifying a user of the terminal device in the storage unit. Even when the stored coupon writing information matches, if the use prohibition flag is set in association with the user ID in the storage unit, use of the electronic coupon by the terminal device The server apparatus according to claim 1, wherein a signal rejecting the request is output.
前記更新制御部は、前記更新制御を、電子クーポンが提供される前記端末装置に対して前記書込指示部により当該端末装置のメモリ領域に前記クーポンを書き込むよう指示が行われ、当該書込処理が当該端末装置において行われた後であって、当該書込処理の結果が前記サーバ装置に通知された後に実行することを特徴とする請求項2に記載のサーバ装置。   The update control unit is instructed to write the coupon in the memory area of the terminal device by the write instruction unit to the terminal device to which the electronic coupon is provided for the update control. 3. The server device according to claim 2, wherein the server device is executed after the processing is performed at the terminal device and after the result of the writing process is notified to the server device. 前記フラグ設定部は、端末装置に対して電子クーポンが提供される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合には、前記記憶部において、当該端末装置のユーザを識別するユーザIDと対応づけて利用禁止フラグを設定するように制御しないことを特徴とする請求項2又は3に記載のサーバ装置。   When the electronic coupon is provided to the terminal device, the flag setting unit associates the coupon writing information acquired from the terminal device with the user ID for identifying the user of the terminal device in the storage unit. When the coupon writing information stored in the storage device matches, the storage unit is not controlled to set a use prohibition flag in association with the user ID for identifying the user of the terminal device. The server device according to claim 2 or 3. 前記フラグ設定部は、端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと対応づけてクーポン書込情報が前記記憶部において記憶されていない場合には、前記記憶部において、当該端末装置のユーザを識別するユーザIDと対応づけて利用禁止フラグを設定するように制御しないことを特徴とする請求項2乃至4のいずれか一項に記載のサーバ装置。   When the electronic coupon is provided to the terminal device, the flag setting unit is associated with a user ID for identifying the user of the terminal device, and the coupon writing information is not stored in the storage unit. 5. The server device according to claim 2, wherein the storage unit is not controlled to set a use prohibition flag in association with a user ID for identifying a user of the terminal device. . 前記出力部は、前記端末装置によって前記電子クーポンが利用される際に、当該端末装置のユーザを識別するユーザIDと対応づけて前記記憶部において利用禁止フラグが設定されている場合であっても、当該電子クーポンが、その利用枚数が制限されていない電子クーポンである場合には、当該端末装置による前記電子クーポンの利用を許可する信号を出力することを特徴とする請求項2乃至5のいずれか一項に記載のサーバ装置。   When the electronic coupon is used by the terminal device, the output unit is associated with a user ID that identifies a user of the terminal device, even when a use prohibition flag is set in the storage unit 6. When the electronic coupon is an electronic coupon whose number of use is not limited, a signal for permitting the use of the electronic coupon by the terminal device is output. The server device according to claim 1. 前記出力部は、前記端末装置によって前記電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致しない場合であっても、当該電子クーポンが、その利用枚数が制限されていない電子クーポンである場合には、当該端末装置による前記電子クーポンの利用を許可する信号を出力することを特徴とする請求項1乃至6のいずれか一項に記載のサーバ装置。   When the electronic coupon is used by the terminal device, the output unit associates coupon writing information acquired from the terminal device with a user ID for identifying a user of the terminal device in the storage unit. Even if the stored coupon writing information does not match, if the electronic coupon is an electronic coupon whose number of use is not restricted, the use of the electronic coupon by the terminal device is permitted. The server apparatus according to claim 1, wherein a signal to be output is output. 端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御ステップと、
端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力ステップと
を有する電子クーポン管理方法。
When the electronic coupon is provided to the terminal device, the user ID for identifying the user of the terminal device, the date and time when the electronic coupon was written in the memory region of the terminal device, or the memory region of the terminal device A storage control step of controlling to store in the storage unit coupon writing information including information specified based on the date and time when the electronic coupon is written to
When the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the coupon writing stored in association with the storage unit And an output step of outputting a signal permitting the use of the electronic coupon by the terminal device when the information matches.
サーバ装置と複数の端末装置とを備える通信システムであって、
前記サーバ装置は、
端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御部と、
端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力部と
を備え、
前記複数の端末装置はそれぞれ、前記サーバ装置に対して電子クーポンの提供を要求する際に、当該端末装置のユーザを識別するユーザIDと、クーポン書込情報のうち、少なくともユーザIDを前記サーバ装置に送信することを特徴とする通信システム。
A communication system comprising a server device and a plurality of terminal devices,
The server device
When the electronic coupon is provided to the terminal device, the user ID for identifying the user of the terminal device, the date and time when the electronic coupon was written in the memory region of the terminal device, or the memory region of the terminal device A storage control unit that controls to store in the storage unit the coupon writing information including information specified based on the date and time when the writing of the electronic coupon is directed to
When the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the coupon writing stored in association with the storage unit An output unit that outputs a signal permitting the use of the electronic coupon by the terminal device when the information matches, and
When each of the plurality of terminal devices requests the server device to provide an electronic coupon, a user ID for identifying a user of the terminal device and at least a user ID among coupon writing information are stored in the server device. The communication system characterized by transmitting to.
コンピュータに、
端末装置に対して電子クーポンが提供される際に、当該端末装置のユーザを識別するユーザIDと、当該端末装置が有するメモリ領域に当該電子クーポンが書き込まれた日時又は当該端末装置が有するメモリ領域に対する当該電子クーポンの書き込みが指示された日時に基づき特定される情報を含むクーポン書込情報とを対応づけて記憶部に記憶するよう制御する記憶制御ステップと、
端末装置によって電子クーポンが利用される際に、当該端末装置から取得されるクーポン書込情報と、当該端末装置のユーザを識別するユーザIDと前記記憶部において対応づけて記憶されているクーポン書込情報とが一致する場合に、当該端末装置による前記電子クーポンの利用を許可する信号を出力する出力ステップと
を実行させるためのプログラム。
On the computer,
When the electronic coupon is provided to the terminal device, the user ID for identifying the user of the terminal device, the date and time when the electronic coupon was written in the memory region of the terminal device, or the memory region of the terminal device A storage control step of controlling to store in the storage unit coupon writing information including information specified based on the date and time when the electronic coupon is written to
When the electronic coupon is used by the terminal device, the coupon writing information acquired from the terminal device, the user ID for identifying the user of the terminal device, and the coupon writing stored in association with the storage unit A program for executing an output step of outputting a signal permitting use of the electronic coupon by the terminal device when the information matches.
JP2013074423A 2013-03-29 2013-03-29 Server apparatus, electronic coupon management method, communication system, and program Active JP5941865B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013074423A JP5941865B2 (en) 2013-03-29 2013-03-29 Server apparatus, electronic coupon management method, communication system, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013074423A JP5941865B2 (en) 2013-03-29 2013-03-29 Server apparatus, electronic coupon management method, communication system, and program

Publications (2)

Publication Number Publication Date
JP2014199541A JP2014199541A (en) 2014-10-23
JP5941865B2 true JP5941865B2 (en) 2016-06-29

Family

ID=52356407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013074423A Active JP5941865B2 (en) 2013-03-29 2013-03-29 Server apparatus, electronic coupon management method, communication system, and program

Country Status (1)

Country Link
JP (1) JP5941865B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6387150B1 (en) * 2017-06-12 2018-09-05 楽天株式会社 Evaluation apparatus, evaluation method, and program

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001216449A (en) * 2000-02-02 2001-08-10 Toshiba Corp Electronic coupon sending method, electronic coupon collecting method, electronic coupon sending system, electronic coupon collecting system, wireless base station, and wireless portable terminal
JP2001351039A (en) * 2000-04-05 2001-12-21 Forval Ranessansu:Kk Electronic coupon transaction system and electronic coupon use support system
JP3527211B2 (en) * 2000-08-01 2004-05-17 日立マクセル株式会社 Electronic coupon system
JP2005321847A (en) * 2004-05-06 2005-11-17 Nippon Telegr & Teleph Corp <Ntt> Information providing device using system
US7324957B2 (en) * 2004-10-21 2008-01-29 Soundstarts, Inc. Proximal advertising using hand-held communication devices
JP5050581B2 (en) * 2007-03-12 2012-10-17 大日本印刷株式会社 Method, server, and computer program for using electronic coupon stored in non-contact IC chip
JP4930117B2 (en) * 2007-03-13 2012-05-16 ソニー株式会社 Data processing system and data processing method
JP4926844B2 (en) * 2007-06-14 2012-05-09 生活協同組合コープさっぽろ Product information management server
JP5101649B2 (en) * 2010-03-18 2012-12-19 楽天株式会社 Server device, privilege information generation program, and privilege information generation method

Also Published As

Publication number Publication date
JP2014199541A (en) 2014-10-23

Similar Documents

Publication Publication Date Title
JP5184147B2 (en) Common privilege granting service providing system, management server device, and common privilege granting service providing program
JP2002111888A (en) Mobile terminal remote control method
JP4615474B2 (en) Communication terminal, user data movement system, and user data movement method
CN101124585A (en) Information distribution system and terminal device
JP2005094351A (en) Personal information storage/management system and storing/managing method
US20160197925A1 (en) Information processing apparatus and method, and program
US9331964B2 (en) System, method, and apparatus for using a virtual bucket to transfer electronic data
JP2015148891A (en) Privilege granting system, privilege granting method, portable terminal, register terminal and program
JP6240718B1 (en) Payment control system
JPWO2005059816A1 (en) Information display method, portable information device, and contactless communication device
WO2013047534A1 (en) Server device, coupon management method, and communication system
JP5941865B2 (en) Server apparatus, electronic coupon management method, communication system, and program
JP2010531016A (en) System and method for managing smart cards
KR101139140B1 (en) Coupon management system which uses a bluetooth communication
JP6797258B1 (en) Electronic money exchange device, electronic money exchange method and electronic money exchange system
JP5817320B2 (en) User registration system and user registration method
JP4572519B2 (en) Electronic information authentication system, portable information terminal, and electronic information authentication method used therefor
JP2007257105A (en) Information providing system
JP7274084B2 (en) Information processing system, server and program
JP5661191B2 (en) Server apparatus, coupon management method, communication system, and program
JP2004303178A (en) Business card information management system
JP6880886B2 (en) Information registration program, information registration method, and information processing equipment
JP2021071977A (en) Numbered ticket issuing server, numbered ticket issuing method, and program
JP7423703B2 (en) Credit cards, activation methods, and programs
JP7657468B2 (en) Access control system, access control method and access control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150812

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160422

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160523

R150 Certificate of patent or registration of utility model

Ref document number: 5941865

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250