JP2006121726A - Communication system - Google Patents

Communication system Download PDF

Info

Publication number
JP2006121726A
JP2006121726A JP2005326479A JP2005326479A JP2006121726A JP 2006121726 A JP2006121726 A JP 2006121726A JP 2005326479 A JP2005326479 A JP 2005326479A JP 2005326479 A JP2005326479 A JP 2005326479A JP 2006121726 A JP2006121726 A JP 2006121726A
Authority
JP
Japan
Prior art keywords
cash register
mobile terminal
unit
connection
communication
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.)
Pending
Application number
JP2005326479A
Other languages
Japanese (ja)
Inventor
Akihiko Sugikawa
川 明 彦 杉
Yutaka Sada
田 豊 佐
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2005326479A priority Critical patent/JP2006121726A/en
Publication of JP2006121726A publication Critical patent/JP2006121726A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve security performance without complicating an authentication procedure. <P>SOLUTION: A communication system relating to the present invention comprises: a mobile terminal 1 that a client carries with him; a cash register 2 for carrying out short-range radio communication with said mobile terminal 1; a POS server 3 which manages sales information of the cash register 2; and a center 4 for providing various services to clients. A PIN code is generated by the mobile terminal 1 that a client carries with him who performs payment at the cash register 2, the generated PIN code is presented to an operator of the cash register 2, the operator inputs the PIN code to the cash register 2 and authentication processing is then performed utilizing the PIN code in both the mobile terminal 1 and the cash register 2, so that the illegal acquisition of the PIN code can be prevented and the security performance can be improved. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、認証処理を行いつつ通信リンクを設定する通信システム、無線通信端末及び無線通信装置に関し、例えば、無線通信端末と無線通信装置との間でBluetoothなどの近距離無線通信により情報の送受信を行う場合を対象とする。   The present invention relates to a communication system, a wireless communication terminal, and a wireless communication apparatus that establish a communication link while performing authentication processing, and, for example, transmits and receives information between the wireless communication terminal and the wireless communication apparatus by short-range wireless communication such as Bluetooth. It is intended for cases where

最近、伝送距離が10m程度である近距離無線通信方式が注目を集めている。従来の無線LANの有効な伝送距離範囲が100m以上であるのに対し、近距離無線通信方式は、伝送範囲が狭い分、使用する電力が少ないので、携帯電話などバッテリー容量に制限がある情報処理装置に適している。   Recently, a short-range wireless communication system having a transmission distance of about 10 m has attracted attention. While the effective transmission distance range of the conventional wireless LAN is 100 m or more, the short-range wireless communication method uses a small amount of power because the transmission range is narrow. Suitable for equipment.

Bluetoothは、このような近距離無線通信方式の1つであり、近年、このBluetoothによる通信手段を搭載した携帯電話やPDA等の携帯型情報処理装置(以下、単に携帯端末と呼ぶ)が普及し始めている。Bluetoothの詳細は、非特許文献1の仕様書を参照されたい。   Bluetooth is one of such short-range wireless communication systems, and in recent years, portable information processing devices (hereinafter simply referred to as portable terminals) such as mobile phones and PDAs equipped with the communication means using Bluetooth have become widespread. I'm starting. For details of Bluetooth, refer to the specification document of Non-Patent Document 1.

Bluetoothが広範囲に普及すれば、任意の場所で、各場所に適したサービスを提供できる。例えば、コンビニエンスストア、スーパまたは小売店などでは、電子クーポンサービスや、電子ポイントサービス、電子決済、レシート、領収書発行などの購買者向けのサービスを実現できる。さらには、電子チケットによるゲート開閉の制御、自動販売機の決済及び割引、情報配信、道案内などへの適用が期待されている。   If Bluetooth becomes widespread, a service suitable for each location can be provided at any location. For example, in convenience stores, supermarkets, retail stores, etc., services for buyers such as electronic coupon service, electronic point service, electronic payment, receipt, receipt issuance can be realized. Furthermore, it is expected to be applied to gate opening / closing control using electronic tickets, vending machine settlements and discounts, information distribution, and route guidance.

以下では、Bluetoothによる通信手段を備えた携帯端末(以下、単にBluetooth携帯端末と呼ぶ)と、Bluetoothを備えた情報通信装置(以下、Bluetooth装置と呼ぶ)との間で、Bluetoothによるコネクションを設定し、当該携帯端末を所持するユーザに、Bluetooth装置がサービスを提供する場合を一例として説明する。   In the following, a Bluetooth connection is set between a portable terminal equipped with Bluetooth communication means (hereinafter simply referred to as a Bluetooth portable terminal) and an information communication apparatus equipped with Bluetooth (hereinafter referred to as a Bluetooth apparatus). As an example, a case where the Bluetooth device provides a service to a user who possesses the mobile terminal will be described.

Bluetoothは、商用に公開された周波数帯を使用しており、同じ周波数帯を利用する他の装置による妨害を受けやすい。それゆえ、他の装置からの妨害を受けにくくするために、使用する周波数を定期的に変化させる周波数ホッピング技術を使用している。周波数ホッピングでは、最初に通信を行う2つの装置間で同期を取る作業が必要である。   Bluetooth uses a commercially available frequency band and is susceptible to interference from other devices that use the same frequency band. Therefore, in order to make it less susceptible to interference from other devices, a frequency hopping technique that periodically changes the frequency to be used is used. In frequency hopping, it is necessary to perform synchronization between two devices that perform communication first.

携帯端末は、その通信エリア内に存在する他のBluetooth装置を探索する際、Bluetooth装置探索機能により、決められた周波数帯を順番にスキャンし、接続可能状態で待機しているBluetooth装置を発見する。   When a mobile terminal searches for other Bluetooth devices in the communication area, the Bluetooth device search function sequentially scans a predetermined frequency band to find a Bluetooth device that is waiting in a connectable state. .

探索信号を受信した接続可能状態のBluetooth装置は、自身の端末識別情報とクロック情報を探索信号送信者に送信する。接続可能状態のBluetooth装置も周期的に、使用する周波数を変更しているため、周波数が一致するまでに数秒必要である。同じ周波数を使用する無線通信手段が近隣に存在しないような理想条件でも、状況によっては1つの端末を発見するのに5秒以上かかることがある。同じ周波数を使用する装置が近くに存在する場合には、さらに長い時間を必要とする可能性がある。   The connectable Bluetooth device that has received the search signal transmits its terminal identification information and clock information to the search signal sender. The Bluetooth device in a connectable state also periodically changes the frequency to be used, so it takes several seconds until the frequencies match. Even in an ideal condition where there is no wireless communication means using the same frequency in the vicinity, it may take 5 seconds or more to find one terminal depending on the situation. If there are nearby devices using the same frequency, longer time may be required.

携帯端末は、発見した幾つかのBluetooth装置から、その48ビットの端末識別情報を収集し、そのうちの28ビットと相手のクロック情報を用いて、接続フェーズで、所望の(選択された)Bluetooth装置との間で周波数のホッピングパターンの同期を行う。ホッピングパターンの同期後、物理的なリンクを確立し、以後、各レイヤーが接続されて必要なパラメータの交換と設定が行われ、アプリケーションレベルでデータ交換ができるようになる。必要なら相手認証を実行し、アプリケーションレベルでのコネクションが確立すると、Bluetooth装置は所定のサービスを提供する。
http://www.bluetooth.org/のWebサイトから入手可能な仕様書
The portable terminal collects the 48-bit terminal identification information from some of the discovered Bluetooth devices, and uses the 28 bits of them and the clock information of the other party, and in the connection phase, the desired (selected) Bluetooth device The frequency hopping pattern is synchronized with After synchronization of the hopping pattern, a physical link is established, and thereafter, each layer is connected to perform necessary parameter exchange and setting, thereby enabling data exchange at the application level. If necessary, the other party authentication is executed, and when the connection at the application level is established, the Bluetooth device provides a predetermined service.
Specifications available from the website http://www.bluetooth.org/

一般に、無線通信は、赤外線を利用した通信と比較して、2つの装置の位置関係や遮断物の影響がないという利点がある一方、特定の位置に存在する端末のみとコネクションを設定することが困難であるという性質を有する。   In general, wireless communication has the advantage that there is no influence of the positional relationship between two devices or obstructions compared to communication using infrared rays, while it is possible to set up a connection only with a terminal located at a specific position. It has the property of being difficult.

これにより発生する問題を説明する。以下では、電子クーポンを携帯端末に保存しているユーザが、コンビニのレジで料金を支払う時に、Bluetooth通信機能を有するキャッシュレジスタとの間で通信を行い、保持している電子クーポンを利用する場面を想定して説明する。   A problem caused by this will be described. In the following, when a user who stores an electronic coupon in a portable terminal pays a charge at a convenience store cash register, he / she communicates with a cash register having a Bluetooth communication function and uses the held electronic coupon An explanation will be given assuming this.

顧客が一人(携帯端末が1つ)で、レジが1つ(Bluetooth装置が1つ)の場合は、支払いを行う顧客の有する携帯端末とキャッシュレジスタとの関係は一意に決定されるため、接続に関する問題は生じない。つまり、携帯端末を操作する人が、上記のようなBluetooth装置探索機能を用いて、Bluetooth装置を発見した場合は、発見した装置を、支払いを行うキャッシュレジスタとみなすことができる。   If there is one customer (one mobile terminal) and one cash register (one Bluetooth device), the relationship between the mobile terminal of the customer making the payment and the cash register is uniquely determined. No problems arise. In other words, when a person operating the mobile terminal discovers a Bluetooth device using the Bluetooth device search function as described above, the discovered device can be regarded as a cash register that performs payment.

しかし、キャッシュレジスタが複数存在する場合には、隣のラインのキャッシュレジスタも発見してしまうため、携帯端末を有する利用者は、発見されたキャッシュレジスタの中から、これから支払いを行うキャッシュレジスタがどれなのか、キャッシュレジスタの名称などを確認し、選択する必要がある。   However, when there are multiple cash registers, the cash register of the adjacent line is also found, so that the user who has the mobile terminal can find out which cash register to pay from among the found cash registers. It is necessary to check and select the name of the cash register.

また、支払いを待つ他の顧客が同様に携帯端末を所有している場合には、間違って支払い待ちの顧客が支払いを行う顧客より先にキャッシュレジスタに接続してしまうケースが想定される。   In addition, when another customer waiting for payment similarly has a portable terminal, it is assumed that the customer waiting for payment mistakenly connects to the cash register before the customer who pays.

それゆえ、キャッシュレジスタのオペレータが、携帯端末に付随する何らかの情報を用いて、接続した携帯端末が正しいか否かを顧客に確認する必要がある。   Therefore, it is necessary for the cash register operator to confirm with the customer whether or not the connected portable terminal is correct by using some information attached to the portable terminal.

このような選択や確認作業は、支払いを行う顧客にとって良いインタフェースではなく、また、オペレータのレジ作業を阻害する。   Such selection and confirmation work is not a good interface for the customer who makes payment, and also hinders the operator's checkout work.

さらに、携帯端末を操作する人が、間違ったキャッシュレジスタを指定すると、クーポンが使用されるにもかかわらず、支払い金額から値引きされていない、あるいは、他人のポイントが自分に加算されてしまうといった不具合が生じる。取り消し作業は、携帯端末とキャッシュレジスタ双方で行う必要があり、多大な労力を必要とする。   In addition, if the person who operates the mobile terminal specifies the wrong cash register, the coupon is used, but the price is not discounted, or other people's points are added to themselves Occurs. The canceling operation needs to be performed by both the portable terminal and the cash register, and requires a great deal of labor.

加えて、無線を使用するシステムでは、任意の人が無線通信にアクセス可能なため、悪意をもつ利用者からの攻撃、たとえば、本来の利用者より先にリンクを設定し、本来の利用者が接続できなくなる、あるいは、キャッシュレジスタのふりをして個人情報を密かに取得したりクーポンの盗難などの業務妨害やプライバシーにかかわる問題が発生する可能性がある。   In addition, in a system using radio, any person can access radio communication, so an attack from a malicious user, for example, a link is set before the original user, and the original user There is a possibility that connection may become impossible, or problems relating to business interference and privacy such as pretending to be a cash register to obtain personal information secretly or coupon theft.

このように、従来は、近距離無線通信を使用して、携帯端末とBluetooth装置を正しく、簡易にかつ迅速に一対一に対応させるのは困難であった。   As described above, conventionally, it has been difficult to make a portable terminal and a Bluetooth device correspond one-to-one correctly, simply and quickly using short-range wireless communication.

本発明は、このような点に鑑みてなされたものであり、その目的は、認証手順を複雑にすることなく、セキュリティ性能を向上できる通信システム、無線通信端末及び無線通信装置を提供することにある。   The present invention has been made in view of these points, and an object of the present invention is to provide a communication system, a wireless communication terminal, and a wireless communication apparatus that can improve security performance without complicating an authentication procedure. is there.

本発明の一態様によれば、互いに通信を行う通信装置および携帯端末を備え、前記通信装置および前記携帯端末の間で通信リンクを設定する通信システムにおいて、前記通信装置は、表示部と、自装置が所持する通信用識別子を取得する第1の識別子取得部と、前記通信用識別子を前記表示部に表示するための表示用パターンに変換する変換部と、前記表示部に前記表示用パターンを表示させる表示制御部と、を有し、前記携帯端末は、前記表示部に表示された前記表示用パターンを撮像するための撮像部と、前記撮像部で撮像された前記表示用パターンから前記通信用識別子を復元する復元部と、前記復元部で復元された前記通信用識別子を用いて前記通信装置に対して接続要求を行う接続要求部と、を有することを特徴とする通信システムが提供される。   According to an aspect of the present invention, in a communication system that includes a communication device and a mobile terminal that communicate with each other, and sets a communication link between the communication device and the mobile terminal, the communication device includes a display unit, A first identifier acquisition unit for acquiring a communication identifier possessed by the apparatus; a conversion unit for converting the communication identifier into a display pattern for displaying on the display unit; and the display pattern on the display unit. A display control unit for displaying, and the portable terminal communicates from the imaging unit for imaging the display pattern displayed on the display unit and the display pattern captured by the imaging unit. A communication system comprising: a restoration unit that restores an identifier for use; and a connection request unit that makes a connection request to the communication device using the communication identifier restored by the restoration unit. There is provided.

本発明によれば、通信装置で生成した通信用識別子に対応する表示用パターンを携帯端末に提示し、携帯端末で表示用パターンから通信用識別子を復元して、通信装置に対して接続要求を行うため、通信用識別子を不正に入手されるおそれがなくなり、セキュリティ性能を向上できる。   According to the present invention, a display pattern corresponding to the communication identifier generated by the communication device is presented to the mobile terminal, the communication identifier is restored from the display pattern by the mobile terminal, and a connection request is made to the communication device. Therefore, there is no possibility that the communication identifier is illegally obtained, and the security performance can be improved.

また、本発明によれば、通信装置の表示部に表示された表示用パターンを携帯端末で取得することにより接続情報の伝達を行うため、所望の携帯端末に対して簡易かつ確実に接続でき、セキュリティ性能がより向上する。   Further, according to the present invention, since the connection information is transmitted by acquiring the display pattern displayed on the display unit of the communication device with the mobile terminal, it can be easily and reliably connected to the desired mobile terminal, Security performance is further improved.

以下、本発明に係る実施形態について、図面を参照しながら具体的に説明する。   Embodiments according to the present invention will be specifically described below with reference to the drawings.

(第1の実施形態)
図1は本発明に係る通信システムの第1の実施形態の概略構成を示すブロック図であり、POS(Point Of Sales)システムの一例を示している。図1の通信システムは、顧客が所持する携帯端末1と、この携帯端末1との間で近距離無線通信を行うキャッシュレジスタ2と、キャッシュレジスタ2による売上情報を管理するPOSサーバ3と、各顧客に対して各種のサービスを提供するセンタ4とを備えている。
(First embodiment)
FIG. 1 is a block diagram showing a schematic configuration of a first embodiment of a communication system according to the present invention, and shows an example of a POS (Point Of Sales) system. The communication system of FIG. 1 includes a mobile terminal 1 owned by a customer, a cash register 2 that performs short-range wireless communication with the mobile terminal 1, a POS server 3 that manages sales information by the cash register 2, And a center 4 that provides various services to customers.

キャッシュレジスタ2とPOSサーバ3とは例えばLAN5で接続され、POSサーバ3とセンタ4とは公衆回線や専用回線6で接続され、センタ4と各顧客が所持する携帯端末1とは公衆無線回線で接続されている。携帯端末1とキャッシュレジスタ2は、例えばBluetoothの規格に従って互いに通信を行う。   The cash register 2 and the POS server 3 are connected by, for example, a LAN 5, the POS server 3 and the center 4 are connected by a public line or a dedicated line 6, and the center 4 and the mobile terminal 1 possessed by each customer are connected by a public wireless line. It is connected. The mobile terminal 1 and the cash register 2 communicate with each other in accordance with, for example, the Bluetooth standard.

POSサーバ3は、キャッシュレジスタ2の売上情報に基づいて、販売商品名、販売価格、及び販売数量などを管理するとともに、在庫管理や売れ筋商品の分類を行う。   The POS server 3 manages the sales product name, the sales price, the sales quantity, and the like based on the sales information in the cash register 2, and performs inventory management and classification of the best-selling products.

センタ4は、POSサーバ3が収集管理した情報に基づいて、各顧客への各種サービスを行う。より具体的には、顧客IDを利用して、顧客の購入実績の分析や顧客の連絡先などを調べ、顧客が興味を示すと思われる情報を、公衆無線回線を介して電子メールやダイレクトメール等で提供したり、顧客の購入実績に応じて電子クーポンや電子ポイントを発行したりする。センタ4は、各顧客が所持する電子ポイントの管理も行う。   The center 4 provides various services to each customer based on the information collected and managed by the POS server 3. More specifically, the customer ID is used to analyze the purchase results of the customer, contact information of the customer, etc., and send the information that the customer is interested in via e-mail or direct mail via the public wireless line. Etc., or issue electronic coupons or electronic points according to customer purchase results. The center 4 also manages the electronic points owned by each customer.

POSサーバ3とセンタ4は、電子クーポン(クーポン情報)や電子ポイント(ポイント情報)を格納しており、必要に応じて、キャッシュレジスタ2や顧客の携帯端末1にこれらの電子クーポンや電子ポイントを送信する。   The POS server 3 and the center 4 store electronic coupons (coupon information) and electronic points (point information). If necessary, these electronic coupons and electronic points are stored in the cash register 2 and the customer's mobile terminal 1. Send.

電子クーポンは特定の品物の値段をディスカウントできる情報であり、例えば、店名、品物の識別子、ディスカウント金額及び有効期限などの情報で構成され、予め、公衆網140や前回支払時にキャッシュレジスタ2から取得することにより、顧客の携帯端末1(例えば、EEPROM14)に格納されているものとする。顧客は支払い時に携帯端末1から電子クーポンをキャッシュレジスタ2に送信して値引き等のサービスを受けることができる。   The electronic coupon is information that can be used to discount the price of a specific item. For example, the electronic coupon includes information such as a store name, an item identifier, a discount amount, and an expiration date. Thus, it is assumed that it is stored in the customer's mobile terminal 1 (for example, EEPROM 14). The customer can receive a service such as discount by sending an electronic coupon from the portable terminal 1 to the cash register 2 at the time of payment.

電子ポイントは、一定の金額の支払いごとに与えられる得点を含む情報であり、例えば、百円ごとに1点与えられる。また、代金支払時に顧客の携帯端末1に、キャッシュレジスタ2からBluetoothによる通信にて、例えば、店名、得点、有効期限などの情報から構成される電子ポイントのパケットが送信されて、顧客の携帯端末1(例えば、EEPROM14)に格納されているものとする。   The electronic point is information including a score given for each payment of a certain amount of money. For example, one point is given for every one hundred yen. In addition, when the payment is made, an electronic point packet including information such as a store name, a score, and an expiration date is transmitted from the cash register 2 to the customer's mobile terminal 1 by Bluetooth communication. 1 (for example, EEPROM 14).

顧客は、電子ポイントの得点が一定の点数たまると、公衆回線6を介してセンタ4に請求することにより、あるいは、キャッシュレジスタ2との間のBluetoothによる通信を通じて、それに応じたサービスを受ける(たとえば、所望の景品を郵送してもらう、電子クーポンを配信してもらう等)。   When a certain number of electronic points are collected, the customer receives a service corresponding to the center 4 by charging to the center 4 via the public line 6 or via Bluetooth communication with the cash register 2 (for example, , Get the desired prize mailed, or get an electronic coupon delivered).

なお、キャッシュレジスタ2を通じて、あるいはセンタ4に請求してなされた電子クーポン、電子ポイントを用いたサービス提供履歴も、POSサーバ3に顧客情報として記録され、個人の嗜好の解析等に利用され、また、各顧客に応じた電子クーポンの発行や、新製品の案内にも利用できる。   The service offer history using electronic coupons and electronic points charged through the cash register 2 or the center 4 is also recorded as customer information in the POS server 3 and used for personal preference analysis, etc. It can also be used to issue electronic coupons according to each customer and to guide new products.

図2は本実施形態における携帯端末1の内部構成を示すブロック図である。図2の携帯端末1は、バス10に接続された所定のプログラムを実行するCPU11、プログラムや辞書データを記憶するROM12、一時的な変数やデータを格納するメモリ13、個人登録情報や電子クーポンなどを保存するEEPROM14、マイク15で音声信号をデジタル信号に変換するA/D16、デジタル信号を音声信号に変換してスピーカ17に出力するD/A18、筐体を振動させる偏心モータ19、基地局20との通信を行う通信部21、各種情報を表示する表示部22、顧客が文字を入力するキー入力部23、メニューの選択等を行う選択指示部24、及びBluetooth送受信部(以下、BT送受信部と呼ぶ)25を有する。   FIG. 2 is a block diagram showing an internal configuration of the mobile terminal 1 in the present embodiment. 2 includes a CPU 11 that executes a predetermined program connected to the bus 10, a ROM 12 that stores programs and dictionary data, a memory 13 that stores temporary variables and data, personal registration information, electronic coupons, and the like. EEPROM 14 for storing the sound, A / D 16 for converting the audio signal into a digital signal by the microphone 15, D / A 18 for converting the digital signal to an audio signal and outputting it to the speaker 17, an eccentric motor 19 for vibrating the casing, and the base station 20 A communication unit 21 that communicates with the user, a display unit 22 that displays various information, a key input unit 23 for a customer to input characters, a selection instruction unit 24 that performs menu selection, and a Bluetooth transmission / reception unit (hereinafter referred to as a BT transmission / reception unit). 25).

BT送受信部25は、2.4GHz帯で無線通信を行うためのアンテナ、ベースバンド部、及びL2CAP(Logical Link Controlled Adaptation Protocol)などの例えばBluetooth仕様書第1版(Bluetooth Version1.0)に記載されているプロトコル制御部などを有する。あるいは、POS端末と同様に、Bluetoothのプロトコルは、携帯端末1のRAM上にロードされて実行される場合もありうる。Bluetooth対応の端末(装置)には、48Bitの全てグローバルユニークな識別情報が付されている。この識別情報は、BT送受信部25に格納されていて、CPU3により必要に応じて読み出し可能になっている。48Bitは図5に示すように3つフィールドf1,f2,f3から構成される。   The BT transceiver unit 25 is described in, for example, the Bluetooth specification first edition (Bluetooth Version 1.0) such as an antenna for performing wireless communication in the 2.4 GHz band, a baseband unit, and L2CAP (Logical Link Controlled Adaptation Protocol). A protocol control unit. Alternatively, as with the POS terminal, the Bluetooth protocol may be loaded on the RAM of the mobile terminal 1 and executed. All 48-bit globally unique identification information is attached to a Bluetooth-compatible terminal (device). This identification information is stored in the BT transceiver unit 25 and can be read by the CPU 3 as necessary. 48 bits are composed of three fields f1, f2, and f3 as shown in FIG.

フィールドf1は24ビットからなるLAP(lower address part)、フィールドf2は8ビットからなるUAP(upper address part)、フィールドf3は16ビットからなるNAP(non-significant address part)である。   The field f1 is a 24-bit LAP (lower address part), the field f2 is an 8-bit UAP (upper address part), and the field f3 is a 16-bit NAP (non-significant address part).

NAPとUAPをあわせた24ビットは、Organizationally Unique Identifiers (OUIs)と呼ばれるメーカ固有のIDであり、IEEEでユニークに管理され、各製造メーカはIEEEに申請することにより自社の番号を取得する。LUPの24ビットは一部のアドレス(0x9E8B00-0x9E8B3F)を除いて、各製造メーカがユニークになるように自由に割り振ったものである。   The 24-bit combined NAP and UAP are manufacturer-specific IDs called Organizationally Unique Identifiers (OUIs), which are uniquely managed by the IEEE. Each manufacturer obtains its own number by applying to the IEEE. Except for some addresses (0x9E8B00-0x9E8B3F), 24 bits of LUP are freely assigned by each manufacturer to be unique.

BT送受信部25は、例えば、キャッシュレジスタ2との間で無線通信路を確立し、メモリ13やEEPROM14に格納されている電子クーポン(クーポン情報)や電子ポイント(ポイント情報)を用いた顧客サービスを受けるためのデータの送受信を行う。   For example, the BT transceiver unit 25 establishes a wireless communication path with the cash register 2 and performs customer service using electronic coupons (coupon information) or electronic points (point information) stored in the memory 13 or the EEPROM 14. Send and receive data to receive.

携帯端末1における音声通話に関する構成は、従来の携帯電話と同様であり、例えば、通信部21は、基地局20との間で位置登録、発呼・着呼時の呼制御を行ってデータの送受信を行い、通信が終了した際には切断の呼制御、さらに、通信中にはハンドオーバ等を行う。   The configuration related to the voice call in the mobile terminal 1 is the same as that of a conventional mobile phone. For example, the communication unit 21 performs location control with the base station 20 and performs call control at the time of outgoing / incoming calls to store data. Transmission / reception is performed. When communication is completed, call control for disconnection is performed, and further, handover or the like is performed during communication.

通信部21は、基地局20から接続要求を受信した場合には、スピーカ17から呼出音を出力したり、偏芯モータ19を駆動して携帯端末1の筐体を振動させることにより、携帯端末1の所持者である顧客の注意を喚起する。顧客の接続了解指示の後、キャリアは2地点間の回線接続を行い、通信を開始する。   When the communication unit 21 receives a connection request from the base station 20, the communication unit 21 outputs a ringing tone from the speaker 17 or drives the eccentric motor 19 to vibrate the casing of the portable terminal 1. Raise the attention of the customer who is the owner of 1. After the customer's connection acceptance instruction, the carrier establishes a line connection between the two points and starts communication.

携帯端末1は、通信時に、マイクから入力された音声をA/D変換部16でアナログ信号からディジタル信号に変換し、CPU11の制御の下、デジタルデータの圧縮処理を行い、通信部21を通じて近接の基地局に送信する。また、通信部21で受信された信号は、CPU11の制御の下、伸張処理等を施して元の信号に戻され、D/A変換部18でデジタル信号からアナログ信号に変換され、スピーカ17から出力される。   During communication, the mobile terminal 1 converts audio input from the microphone from an analog signal to a digital signal by the A / D converter 16, performs digital data compression processing under the control of the CPU 11, and approaches the communication through the communication unit 21. To the base station. The signal received by the communication unit 21 is decompressed and returned to the original signal under the control of the CPU 11, converted from a digital signal to an analog signal by the D / A conversion unit 18, and sent from the speaker 17. Is output.

携帯端末1は、通話の他に、JAVA(登録商標)の仮想マシンを実行することにより、通信部21を利用したパケット通信を行い、特定のサーバからプログラムをダウンロードして、端末所持者の指示により実行できる機能を有する。   The mobile terminal 1 performs a packet communication using the communication unit 21 by executing a JAVA (registered trademark) virtual machine in addition to a call, downloads a program from a specific server, and instructs the terminal owner. It has a function that can be executed by.

図3は本実施形態におけるキャッシュレジスタ2の模式図、図4は本実施形態におけるキャッシュレジスタ2の内部構成を示すブロック図である。本実施形態のキャッシュレジスタ2は、バス30に接続されたCPU31、メモリ32、ROM33、商品金額等を入力するキー入力部34、RS-232Cコントローラ35、及びドローア36等を制御するレジ制御部37を有し、RS-232Cコントローラ35には、バーコードリーダ38とBT送受信部39が接続されている。   FIG. 3 is a schematic diagram of the cash register 2 in the present embodiment, and FIG. 4 is a block diagram showing an internal configuration of the cash register 2 in the present embodiment. The cash register 2 of the present embodiment includes a CPU 31 connected to the bus 30, a memory 32, a ROM 33, a key input unit 34 for inputting a commodity price, an RS-232C controller 35, a drawer 36 for controlling a drawer 36, and the like. A bar code reader 38 and a BT transmission / reception unit 39 are connected to the RS-232C controller 35.

キャッシュレジスタ2の正面パネルには、図3に示すように、キー入力部34の他に、表示部40と印刷部41が設けられている。   As shown in FIG. 3, in addition to the key input unit 34, a display unit 40 and a printing unit 41 are provided on the front panel of the cash register 2.

本実施形態のキャッシュレジスタ2は、商品に印刷あるいは貼り付けられたバーコードに記録された会社コードや商品コード等をバーコードリーダで読み取り、LAN5カードとLAN5を介してキャッシュレジスタ2に接続されたPOSサーバ3に対して当該商品の金額を問い合わせる。POSサーバ3から金額情報が送られてくると、その金額情報にキー入力部34で入力された個数を乗じて合計金額に加算する。そして、合計金額のみ、あるいは、個々の商品の価格と合計金額を表示部に出力したり、印刷部でレシートの発行を行い、かつその商品の購入履歴情報をPOSサーバ3に送る。POSサーバ3は、購入履歴情報を保存して、後に、商品売上管理や在庫管理等で用いる。   The cash register 2 of this embodiment is connected to the cash register 2 via the LAN5 card and the LAN5 by reading the company code, product code, etc. recorded on the barcode printed or pasted on the product with a barcode reader. The POS server 3 is inquired about the amount of the product. When money amount information is sent from the POS server 3, the money amount information is multiplied by the number input by the key input unit 34 and added to the total amount. Then, only the total price, or the price and total price of each product are output to the display unit, a receipt is issued by the printing unit, and purchase history information of the product is sent to the POS server 3. The POS server 3 stores purchase history information and later uses it for merchandise sales management, inventory management, and the like.

図4では、RS-232Cコントローラ35を介してBT送受信部39を内部バスに接続する例を説明したが、BT送受信部39は必ずしもRS-232Cコントローラ35を介して接続する必要はなく、例えば内部バス30に直接接続してもよいし、USB(Universal Serial Bus)を介して接続してもよい。ただし、RS-232Cコントローラを介して接続すれば、汎用的なキャッシュレジスタ2を若干変更するだけで本実施形態のキャッシュレジスタ2を実現できる。   In FIG. 4, the example in which the BT transmission / reception unit 39 is connected to the internal bus via the RS-232C controller 35 has been described. However, the BT transmission / reception unit 39 is not necessarily connected via the RS-232C controller 35, for example, the internal bus It may be connected directly to the bus 30 or may be connected via a USB (Universal Serial Bus). However, if the connection is made via the RS-232C controller, the cache register 2 of the present embodiment can be realized by changing the general-purpose cash register 2 slightly.

BT送受信部39は、2.4GHz帯で無線通信を行うためのアンテナ、RF部、ベースバンド部、L2CAPやRFCOMMなどの例えばBluetooth仕様書第1版(Bluetooth Version1.0)に記載されているプロトコル制御部などから構成されている。CPU31は、実装に依存したコマンドやイベントを使用して、BT送受信部39にBluetoothの制御命令とデータの送受信を命令する。   The BT transceiver unit 39 is a protocol described in, for example, the Bluetooth specification first edition (Bluetooth Version 1.0) such as an antenna, an RF unit, a baseband unit, L2CAP, and RFCOMM for performing wireless communication in the 2.4 GHz band. It consists of a control unit. The CPU 31 commands the BT transmitter / receiver 39 to transmit / receive Bluetooth control commands and data using commands and events that depend on the implementation.

あるいは、BT送受信部39は、例えば仕様書で定義されたHCI(Host Controller Interfaceコマンドを送信し、その結果をイベントとして受信する。Bluetoothプロトコルは、レジ処理を行うアプリケーションプログラム、顧客へのサービス提供を行うアプリケーションプログラムと共に、CPU31によりメモリ32にロードされ実行する構成でもよい後者のような構成の場合は、
BT送受信部39は、必ずしもRS-232Cを介してホストに接続する必要がなく、例えば、ホストの内部バス30に直接接続してもよいし、USB(Universal Serial Bus)を介して、接続するようにしてもよい。RS-232Cコントローラを介して接続可能とすれば、現行のキャッシュレジスタにも容易に対応可能である。
Alternatively, the BT transmitter / receiver 39 transmits, for example, an HCI (Host Controller Interface command) defined in a specification and receives the result as an event. The Bluetooth protocol is an application program for performing cash register processing and provides services to customers. In the case of the latter configuration, which may be loaded into the memory 32 by the CPU 31 and executed together with the application program to be executed,
The BT transmission / reception unit 39 does not necessarily need to be connected to the host via the RS-232C. For example, the BT transmission / reception unit 39 may be directly connected to the internal bus 30 of the host or may be connected via the USB (Universal Serial Bus). It may be. If it can be connected via an RS-232C controller, it can easily handle current cash registers.

以下、Bluetoothの接続方法について簡単に説明する。最初に通信可能な相手装置を発見するインクワイアリ・フェーズを実行する。インクワイアリとページを行う側をマスター、インクワイアリ・スキャン、ページスキャンを行う側をスレーブと呼ぶ。インクワイアリ・スキャン状態に設定されたスレーブ端末のみ、マスターからのインクワイアリに返答する。   The Bluetooth connection method will be briefly described below. An inquiry phase for finding a partner device capable of communicating first is executed. The side that performs the inquiry and page is called the master, the inquiry scan, and the side that performs the page scan is called the slave. Only the slave terminal set to the inquiry scan state responds to the inquiry from the master.

マスターは、インクワイアリを行うために、IQパケットを通常10秒間周囲にブロードキャストする。IQパケットにはIAC(Inquiry Access Code)が含まれており、このコードを使用して、すべての、あるいは、特定のデバイスの発見を行う。自装置に関連するIACを含むIQパケットを受信したスレーブは、ランダムに決められた時間待機後、再度IQパケットを受信すると、スレーブのBluetoothアドレス、クロック、デバイスクラスなどの属性をマスターに返信する。   The master typically broadcasts IQ packets around for 10 seconds to perform inquiry. The IQ packet includes an IAC (Inquiry Access Code), which is used to discover all or specific devices. When a slave that has received an IQ packet including an IAC related to its own device receives an IQ packet again after waiting for a randomly determined time, it returns attributes such as the Bluetooth address, clock, and device class of the slave to the master.

スレーブの情報の収集を終えると、端末所持者の指示により、通信対象である装置が選択され、リンクレベルのコネクションを確立するページフェーズに遷移する。ページフェーズでは、スレーブは、マスターのクロック情報を取得することにより、マスターのBluetoothアドレスとクロック情報を元に計算されるチャネル周波数ホッピングパターンに変更する。   When the collection of slave information is completed, a device that is a communication target is selected according to an instruction from the terminal owner, and a transition is made to the page phase for establishing a link level connection. In the page phase, the slave acquires the master clock information, and changes the channel frequency hopping pattern to be calculated based on the master Bluetooth address and the clock information.

最初に、マスターは、スレーブのLAP 24ビットとUAPの下位4ビット、スレーブのクロックをパラメータとし、スレーブのページスキャンホッピング周波数の推定を行い、推定した周波数およびその近傍の周波数に対して、ページ用のIDパケット送信する。マスターはスレーブのBluetoothアドレスのLAP 24ビットを使用して計算したDAC(呼び出しアクセスコード)を、IDパケットに含めることによりスレーブの指定を行う。   First, the master uses the slave's LAP 24 bits, the lower 4 bits of the UAP, and the slave's clock as parameters to estimate the slave's page scan hopping frequency. Send the ID packet. The master designates the slave by including the DAC (call access code) calculated using the LAP 24 bit of the slave's Bluetooth address in the ID packet.

ページスキャン状態のスレーブが、マスターが送信するIDパケットを受信すると、同一のIDパケットをマスターに送信する。   When the slave in the page scan state receives the ID packet transmitted by the master, it transmits the same ID packet to the master.

次に、マスターはFHSパケットをスレーブに送信する。マスターが送信するFHSパケットには16bitの誤り検出符号CRCが付加される。CRCを計算する時の初期値にスレーブのBluetoothアドレスのUAP 8bitを使用する。   Next, the master sends an FHS packet to the slave. A 16-bit error detection code CRC is added to the FHS packet transmitted by the master. The UAP 8bit of the slave's Bluetooth address is used as the initial value when calculating the CRC.

FHSパケットを受信したスレーブは再度IDパケットをマスターに送信することで、マスターはスレーブが情報を受信したことを確認し、マスター、スレーブ双方チャネル周波数ホッピングパターンに変更する。   The slave that has received the FHS packet transmits the ID packet to the master again, so that the master confirms that the slave has received the information and changes the channel frequency hopping pattern to both the master and slave.

その後、リンクレベルでの接続手順と、リンクレベルでのパラメータのコンフィグレーションが行われ接続完了となる。これまでの手順はLMPと呼ばれるプロトコルで実現され、リンクレベルのコネクション生成完了後、L2CAPやRFCOMMなどの上位プロトコルの接続とパラメータのコンフィグレーションが順番に実行され、最後にアプリケーションレベルでのコネクションが生成される。   Thereafter, the connection procedure at the link level and the configuration of parameters at the link level are performed to complete the connection. The procedure up to now is realized by a protocol called LMP. After link level connection creation is completed, connection of upper protocol such as L2CAP and RFCOMM and parameter configuration are executed in order, and finally connection at application level is created. Is done.

通常は、上記のようなインクワイアリフェーズを得て相手端末の情報を取得し、取得した情報を用いてページフェーズでマスターとスレーブの周波数の同期を行い、リンクを確立する。   Usually, the inquiry phase as described above is obtained to obtain information on the partner terminal, and the master and slave frequencies are synchronized in the page phase using the obtained information to establish a link.

ところが、通信相手のBluetooth情報が既知である場合は、直接相手装置のBluetoothアドレスを指定して、ページフェーズから処理を開始することが可能である。この場合は、インクワイアリフェーズがないため、相手端末の探索に要する時間約10秒をスキップできる。   However, when the Bluetooth information of the communication partner is known, it is possible to directly specify the Bluetooth address of the partner device and start processing from the page phase. In this case, since there is no inquiry phase, the time required for searching for the partner terminal can be skipped.

スレーブのクロック情報が正しく推定できれば短時間で接続することが可能であるが、スレーブのクロック情報の推定が間違っている場合や、クロック情報がなくて、Bluetoothのデフォルトの値で推定した場合は、スレーブの待ち受け周波数と一致するには1.28秒あるいは2.56秒余分に必要とする。   If the clock information of the slave can be estimated correctly, it is possible to connect in a short time, but if the estimation of the clock information of the slave is wrong or if there is no clock information and it is estimated with the default value of Bluetooth, An extra 1.28 or 2.56 seconds are required to match the slave's standby frequency.

ただし、スレーブのクロック情報がない場合でも、ページスキャンインターバルを短くし、スキャンウィンドウを長くする、あるいは、ページスキャンのモードを変更するなどのパラメータの調整により、時間を短縮することができる。   However, even when there is no slave clock information, the time can be shortened by adjusting parameters such as shortening the page scan interval, lengthening the scan window, or changing the page scan mode.

このような手順により、ページフェーズと接続フェーズが実現され、2つの装置の間にリンクレベルのコネクションを確立できる。また、これらのフェーズで最低限必要なパラメータは、スレーブのBluetoothアドレス 32bit(LAP+UAP)である。スレーブのクロックがあれば、ページにかかる時間を短縮できる。   By such a procedure, a page phase and a connection phase are realized, and a link level connection can be established between two devices. The minimum required parameter for these phases is the slave's Bluetooth address 32bit (LAP + UAP). If there is a slave clock, the time required for the page can be reduced.

図6は第1の実施形態における携帯端末1の処理動作の一例を示すフローチャートである。このフローチャートは、携帯端末1を所持する顧客がキャッシュレジスタ2にて料金決済を行う際の携帯端末1の接続にかかわる処理動作を示している。   FIG. 6 is a flowchart showing an example of the processing operation of the portable terminal 1 in the first embodiment. This flowchart shows the processing operation related to the connection of the mobile terminal 1 when the customer who owns the mobile terminal 1 makes a payment with the cash register 2.

顧客は携帯端末1を取り出して、所定のアプリケーションを起動する。このアプリケーションは、BT送受信部25を初期化する(ステップS1)。   The customer takes out the mobile terminal 1 and activates a predetermined application. This application initializes the BT transceiver unit 25 (step S1).

アプリケーションは、内部で乱数を生成し(ステップS2)、この乱数を認証に使用する一時的なPINコードとしてメモリ13に記憶するとともに、このPINコードを表示部22に提示する(ステップS3)。   The application internally generates a random number (step S2), stores the random number in the memory 13 as a temporary PIN code used for authentication, and presents the PIN code on the display unit 22 (step S3).

また、通信可能なBT送受信部39を有するキャッシュレジスタ2を探索するために、BT送受信部25に対して限定インクワイアリコマンドの送信を要求する(ステップS4)。この要求を受けて、BT送受信部25は、限定インクワイアリコマンドを所定時間送信する。このとき、専用のインクワイアリアクセスコードを用いることにより、通信可能なキャッシュレジスタ2の探索時間を短縮することができる。   Further, in order to search for the cash register 2 having the communicable BT transceiver unit 39, the BT transceiver unit 25 is requested to transmit a limited inquiry command (step S4). In response to this request, the BT transceiver unit 25 transmits a limited inquiry command for a predetermined time. At this time, the search time for the communicable cash register 2 can be shortened by using a dedicated inquiry access code.

限定インクワイアリコマンドを送信してから、あらかじめ定めた時間を経過してもキャッシュレジスタ2から応答がなければ、タイムアウトと判断して(ステップS5)、接続エラー処理を行う(ステップS6)。   If no response is received from the cash register 2 after a predetermined time has elapsed since the transmission of the limited inquiry command, it is determined that a timeout has occurred (step S5), and connection error processing is performed (step S6).

通信可能な装置が近くに存在する場合は、BT送受信部25は、キャッシュレジスタ2からの限定インクワイアリレスポンスを受信する(ステップS7)。   If there is a communicable device nearby, the BT transceiver unit 25 receives the limited inquiry response from the cash register 2 (step S7).

携帯端末1のBT送受信部25は、限定インクワイアイリ・レスポンスを受信すると、アプリケーションに装置発見イベントを通知する。アプリケーションは、発見された装置の識別子を検出し、新規の装置か否かを判断する(ステップS8)。ここでは、発見された装置が接続拒否リストに登録されているか否かを判断する。   When receiving the limited inquiry response, the BT transceiver unit 25 of the mobile terminal 1 notifies the application of a device discovery event. The application detects the identifier of the discovered device and determines whether it is a new device (step S8). Here, it is determined whether the discovered device is registered in the connection rejection list.

新規の装置、すなわち接続拒否リストに登録されていなければ、Class of Device(以後CODと呼ぶ)を検出し(ステップS9)、発見された装置がキャッシュレジスタ2か否かを判断する(ステップS10)。より具体的には、検出されたCODがキャッシュレジスタ2を示す値であれば、限定インクワイアリの中止をBT送受信部25に要求し(ステップS11)、このキャッシュレジスタ2に対してリンク接続要求を行う(ステップS12)。BT送受信部25はこのキャッシュレジスタ2に対してリンク接続要求信号を送信する。   If it is not registered in the connection rejection list, a new class of device (hereinafter referred to as COD) is detected (step S9), and it is determined whether or not the discovered device is the cash register 2 (step S10). . More specifically, if the detected COD is a value indicating the cash register 2, the BT transmission / reception unit 25 is requested to stop the limited inquiry (step S11), and a link connection request is made to the cash register 2. (Step S12). The BT transceiver unit 25 transmits a link connection request signal to the cash register 2.

CODがキャッシュレジスタ2を示す値でなければ、発見された装置の識別子を接続拒否リストに登録する(ステップS13)。接続拒否リストに登録された装置は、以後、接続が拒否される。   If COD is not a value indicating the cash register 2, the identifier of the discovered device is registered in the connection rejection list (step S13). The devices registered in the connection rejection list are subsequently refused connection.

上述した新規装置の検査やCODの検査は、パラメータをセットしてBTで行い、該当する装置を発見したときのみ、装置発見イベントを通知する方法もありうる。   The above-described new device inspection and COD inspection may be performed by BT with parameters set, and a device discovery event may be notified only when a corresponding device is discovered.

なお、あらかじめ決められた時間内に発見できない場合は(ステップS14)、接続要求をエラーとして顧客に通知する(ステップS6)。   If it cannot be found within a predetermined time (step S14), the customer is notified of the connection request as an error (step S6).

上述した接続用要求ステップS12の後に、リンクキー入力イベントを受信すると(ステップS15)、リンクキー拒否を返答する(ステップS16)。その後、キャッシュレジスタ2からのPINコード入力イベントを受信すると(ステップS17)、メモリ13に記憶されているPINコードを読み出す(ステップS18)。BT送受信部25は、読み出したPINコードを制御パケットLMP_acceptedとしてキャッシュレジスタ2に送信する。   When a link key input event is received after the connection request step S12 described above (step S15), a link key rejection is returned (step S16). Thereafter, when a PIN code input event is received from the cash register 2 (step S17), the PIN code stored in the memory 13 is read (step S18). The BT transceiver unit 25 transmits the read PIN code to the cash register 2 as a control packet LMP_accepted.

以上により、携帯端末1とキャッシュレジスタ2の双方で初期化キーが生成される。   As described above, the initialization key is generated in both the portable terminal 1 and the cash register 2.

続いて、リンクキーのネゴシエーションを行うことにより、マスタである携帯端末1のBT送受信部25の単体キーを認証に使用する合意を行い、キャッシュレジスタ2とのリンク接続の手順を実行し、リンク接続要求を行ったキャッシュレジスタ2からリンク接続結果信号を受信する(ステップS19)。ステータスを検査することによりリンク接続が成功したか否かを判定する(ステップS20)。   Subsequently, by negotiating the link key, an agreement is made to use the single key of the BT transmitting / receiving unit 25 of the mobile terminal 1 that is the master for authentication, the procedure for link connection with the cash register 2 is executed, and the link connection A link connection result signal is received from the requested cash register 2 (step S19). By checking the status, it is determined whether or not the link connection is successful (step S20).

リンク接続が成功すると、以後、SDP接続、など、サービスを受けるために必要なプロトコルの接続や、サービスのためのデータを送受信する。   If the link connection is successful, thereafter, connection of a protocol necessary for receiving the service, such as SDP connection, and data for the service are transmitted and received.

リンク接続が成功しなかった場合は、キャッシュレジスタ2との認証に成功したか否かを判断し(ステップS21)、認証に成功しなかった場合は接続エラー処理を行い(ステップS6)、認証に成功した場合は規定時間以内か否かを判定する(ステップS22)。規定時間以内でなければ接続エラー処理を行い(ステップS6)、規定時間以内であれば接続拒否リストに登録する(ステップS23)。   If the link connection is not successful, it is determined whether or not the authentication with the cash register 2 is successful (step S21). If the authentication is not successful, a connection error process is performed (step S6). If successful, it is determined whether it is within a specified time (step S22). If it is not within the specified time, connection error processing is performed (step S6), and if it is within the specified time, it is registered in the connection rejection list (step S23).

図7は図6のステップS19及びS20の処理の詳細フローチャートである。認証に使用するキーとして、単体キーと複合キーの2種類があるが、通常、リンク管理のメモリの制約や処理手順の簡易さの面で単体キーが使用される。複合キーは、メモリの増加と、手順が複雑になるが、単体キーに比べてセキュリティ性能は優れている。   FIG. 7 is a detailed flowchart of the processes in steps S19 and S20 in FIG. There are two types of keys used for authentication: a single key and a composite key. Usually, a single key is used in terms of memory restrictions for link management and simplicity of processing procedures. The composite key increases the memory and complicates the procedure, but has better security performance than the single key.

ネゴシエーションは、単体キーを使用する場合は、LMP_unit_keyを、複合キーを使用する場合には、LMP_comp_keyの要求コマンドを双方が送信しあい、4種類の要求の組み合わせにより、どのキーを使用するか決定する。双方ともLMP_unit_keyを送信した場合には、マスターの単体キーを使用する。LMP_unit_keyとLMP_comp_keyの場合は、LMP_unit_keyを送信した端末の単体キーを、双方ともLMP_comp_keyを送信した場合には、双方のキーを用いて複合キーを作成する。   In the negotiation, when a single key is used, LMP_unit_key is transmitted, and when a composite key is used, both request commands of LMP_comp_key are transmitted, and a key to be used is determined by a combination of four types of requests. If both send LMP_unit_key, use the master single key. In the case of LMP_unit_key and LMP_comp_key, a composite key is created using the single key of the terminal that transmitted LMP_unit_key, and when both have transmitted LMP_comp_key.

単体キーは、接続する端末にかかわらず、1度作成すれば恒久的に使用するキーである。データベースにはペアリングを行った相手端末のBluetoothアドレスのみを記録するのでメモリの効率がよい。単体キーの作成には、内部で発生させた乱数と自端末のBluetoothアドレスを使用してE21と呼ばれる単体キーアルゴリズムで算出する。   A single key is a key that is permanently used once created regardless of the terminal to be connected. The database records only the Bluetooth address of the partner terminal that performed the pairing, so the memory efficiency is good. To create a single key, a random key generated internally and the Bluetooth address of the terminal itself are used to calculate a single key algorithm called E21.

リンクキーのネゴシエーション(本例では単体キーとする)が終了すると、使用する単体キーを所持する携帯端末1は、自端末の単体キーと、上記生成した初期化キーの排他論理和を計算し(ステップS31)、LMP_unit_keyでキャッシュレジスタ2に単体キーを送信する(ステップS32,S33)。この単体キーを受信したキャッシュレジスタ2は、先ほど生成した初期化キーを用いて排他論理和を計算することにより、携帯端末1の単体キーを安全に入手することが可能となる。   When the link key negotiation (in this example, a single key) is completed, the mobile terminal 1 possessing the single key to be used calculates the exclusive OR of the single key of the self terminal and the generated initialization key ( In step S31, a single key is transmitted to the cash register 2 using LMP_unit_key (steps S32 and S33). The cash register 2 that has received the single key can obtain the single key of the portable terminal 1 safely by calculating the exclusive OR using the initialization key generated earlier.

以上の手続きが終了すると、今度は、携帯端末1とキャッシュレジスタ2がそれぞれ単体キーを使用して相手認証を行う。携帯端末1とキャッシュレジスタ2の一方(以下、装置Aとする。マスタースレーブどちらでもかまわない)が128ビットの乱数を発生させ(ステップS35)、LMP_au_randを用いて通信先の装置Bに送信する(ステップS36)。   When the above procedure is completed, the mobile terminal 1 and the cash register 2 each perform authentication of the other party using a single key. One of the portable terminal 1 and the cash register 2 (hereinafter referred to as device A, which may be either master slave) generates a 128-bit random number (step S35) and transmits it to communication destination device B using LMP_au_rand ( Step S36).

装置A,B間で受け渡しした乱数、上記で設定した単体リンクキー、装置B
のBluetoothアドレスを使用して、E1と呼ばれるアルゴリズムを用いてSignal Result(SRES)と定義される値を計算する(ステップS37)。
Random number passed between devices A and B, simple link key set above, device B
A value defined as Signal Result (SRES) is calculated using an algorithm called E1 using the Bluetooth address (step S37).

装置Bは、計算結果をLMP_sresを用いて装置Aに送信する(ステップS38)。続いて、装置Aでは、受信したSRESと自分で計算したSRESを比較し(ステップS39)、同一でなければ認証エラーと判断し(ステップS40)、同一であれば接続可能と判定する。同様に装置A,Bの役割を入れ替えて、ステップS36〜S38と同様の処理を行うことにより、双方で通信相手を認証し、接続の可否を判定する(ステップS41〜S44)。   Device B transmits the calculation result to device A using LMP_sres (step S38). Subsequently, the device A compares the received SRES with the SRES calculated by itself (step S39). If it is not the same, it is determined as an authentication error (step S40). Similarly, by switching the roles of the devices A and B and performing the same processing as in steps S36 to S38, both parties authenticate the communication partner and determine whether or not connection is possible (steps S41 to S44).

図7の手順により、初めて接続する携帯端末1とキャッシュレジスタ2間で、互いに通信相手の認証を行うことができる。以上の手順はファームウェアで自動的に実行されるため、通常アプリケーションはその処理手順には関与せず、リンクキーの要求や、PINコードの要求に対してデータの入力のみを行うだけですむ。   According to the procedure of FIG. 7, the mobile terminal 1 and the cash register 2 that are connected for the first time can mutually authenticate the communication partner. Since the above procedure is automatically executed by the firmware, the normal application is not involved in the processing procedure, and only needs to input data in response to the link key request or PIN code request.

次に、図8のフローチャートに基づいて、第1の実施形態におけるキャッシュレジスタ2の処理動作の一例を説明する。まず、アプリケーションを起動してBT送受信部39を初期化し(ステップS51)、認証モードに設定する(ステップS52)。   Next, an example of the processing operation of the cash register 2 in the first embodiment will be described based on the flowchart of FIG. First, the application is activated to initialize the BT transmission / reception unit 39 (step S51), and the authentication mode is set (step S52).

キャッシュレジスタ2のオペレータは、携帯端末1を所持する顧客のために、キャッシュレジスタ2のBT送受信部39が携帯端末1を発見して接続可能になると(ステップS53)、アプリケーションを通じてBT送受信部39に通知する。この後、上述したステップS52の処理を行ってもよい
BT送受信部39は、限定インクワイアリメッセージを受信すると(ステップS54)、自己のBTアドレスやデバイスの種類を示すCODなどの情報を、限定インクワイアリを行った携帯端末1に返信する(ステップS55)。
When the operator of the cash register 2 finds and can connect to the mobile terminal 1 for the customer who owns the mobile terminal 1 (step S53), the operator of the cash register 2 connects to the BT transmitter / receiver 39 through the application. Notice. Thereafter, the above-described processing in step S52 may be performed. Upon receiving the limited inquiry message (step S54), the BT transmission / reception unit 39 limits information such as its own BT address and COD indicating the device type. A reply is made to the portable terminal 1 that has performed the inquiry (step S55).

続いて、携帯端末1から接続要求を受信する。接続要求を行った携帯端末1の識別子が接続拒否リストに登録されていなければ、接続許可を返答する。リストに登録されていれば、接続拒否を返答し、不正端末からの接続要求を受信したことをキャッシュレジスタ2の表示装置に表示する(ステップS59)。   Subsequently, a connection request is received from the mobile terminal 1. If the identifier of the mobile terminal 1 that has made the connection request is not registered in the connection rejection list, a connection permission is returned. If it is registered in the list, a connection refusal is returned, and the connection request from the unauthorized terminal is displayed on the display device of the cash register 2 (step S59).

接続許可を返答後、リンクキー入力イベントを受信し、それに対してnegativeの返答を行う。次にPINコード入力要求を受信する(ステップS56)、一時的PINコード入力を行うダイアログをオペレータに提示し、一時的PINコードの入力を促す(ステップS60)。 After returning the connection permission, the link key input event is received, and a negative response is made in response thereto. Next, a PIN code input request is received (step S56), a dialog for inputting a temporary PIN code is presented to the operator, and the user is prompted to input a temporary PIN code (step S60).

オペレータは、支払いを行う顧客の携帯端末1の表示部に表示された一時的PINコードをキー入力部34から入力する。あるいは、リンク接続要求を受信する前にあらかじめ一時的PINコードの入力を促すダイアログを表示し、入力された一時的PINコードデータを一旦メモリに記憶しておき、メッセージを受信した場合は、記憶されたデータを使用しても同等の効果を得られる。あるいは、キー入力部を顧客に渡して、顧客自身がPINコードの入力を行っても同等の効果が得られる。あるいは、携帯端末1の表示部22にバーコードを示し、スキャナーで読み取る、あるいは、CCDカメラで画像を撮影し、文字認識を行い、一時的PINコードとする。あるいは、IrDAを通じて一時的PINコードを取得しても同等の効果を有する。   The operator inputs the temporary PIN code displayed on the display unit of the mobile terminal 1 of the customer who performs payment from the key input unit 34. Or, before receiving a link connection request, a dialog prompting you to enter a temporary PIN code is displayed in advance, and the temporary PIN code data that has been input is temporarily stored in the memory. The same effect can be obtained even if the data is used. Alternatively, the same effect can be obtained even if the customer inputs the PIN code by handing the key input unit to the customer. Alternatively, a bar code is displayed on the display unit 22 of the mobile terminal 1 and read by a scanner, or an image is taken by a CCD camera, character recognition is performed, and a temporary PIN code is obtained. Alternatively, obtaining a temporary PIN code through IrDA has the same effect.

一時的PINコードに乱数を使用しなくても、利用者が、あらかじめ携帯端末1のメモリ13に暗証コードとして記憶しておき、PINコードの入力を示すイベントを受信したときに、メモリ13に記憶しておいた数字を使用してもよい。この場合、固定のPINコードを使用するため、セキュリティの強度は、乱数を使用する場合に比べて劣る可能性があるが、表示部に一時的PINコードを提示する必要がないため、携帯端末1での処理を簡略化できる。あるいは、自装置内のクロックから取得したデータの一部あるいは全部を使用しても、乱数を使用した場合と同等の効果が得られる。   Even if a random number is not used for the temporary PIN code, the user stores it in advance as a password in the memory 13 of the portable terminal 1 and stores it in the memory 13 when an event indicating the input of the PIN code is received. You may use the numbers you have set. In this case, since a fixed PIN code is used, the strength of security may be inferior compared to the case of using a random number. However, since there is no need to present a temporary PIN code on the display unit, the mobile terminal 1 Can be simplified. Alternatively, even if a part or all of the data acquired from the clock in the own device is used, the same effect as that obtained when random numbers are used can be obtained.

続いて、PINコードを取得したか否かを判断し(ステップS61)、取得できなければ、PINコード拒否の返答を行い(ステップS62)、端末発見不可能で、接続不可能な状態に設定する(ステップS63)。   Subsequently, it is determined whether or not a PIN code has been acquired (step S61). If the PIN code cannot be acquired, a PIN code rejection response is sent (step S62), and the terminal cannot be found and is set in a connection disabled state. (Step S63).

一方、PINコードを取得すると、取得したPINコードをBT送受信部39に送り、BT送受信部39は、一時的PINコードを含むLMP_unit_keyを携帯端末1に送信する(ステップS64)。   On the other hand, when acquiring the PIN code, the acquired PIN code is sent to the BT transceiver 39, and the BT transceiver 39 transmits LMP_unit_key including the temporary PIN code to the mobile terminal 1 (step S64).

その後、携帯端末1からのリンク接続結果を受信する(ステップS65)。続いて、リンク接続処理が成功したか否かを判定し(ステップS66)、成功すると、端末発見不可能で接続不可能な状態に設定し(ステップS67)、上位プロトコルの接続と、アプリケーションの接続処理を行う(ステップS68)。   Thereafter, the link connection result from the mobile terminal 1 is received (step S65). Subsequently, it is determined whether or not the link connection process is successful (step S66). If the link connection process is successful, the terminal is not found and cannot be connected (step S67), and the upper protocol connection and application connection are set. Processing is performed (step S68).

ステップS66でリンク接続処理が成功しなかった場合は、携帯端末1との認証に成功したか否かを判定し(ステップS69)、認証に成功しなかった場合は、接続拒否リストに登録し(ステップS70)、認証に成功した場合は、端末発見不可能で接続不可能な状態に設定した後(ステップS71)、接続エラー処理を行う(ステップS72)。   If the link connection process is not successful in step S66, it is determined whether or not the authentication with the portable terminal 1 is successful (step S69). If the authentication is not successful, it is registered in the connection rejection list ( In step S70), if the authentication is successful, a connection error process is performed (step S72) after setting the terminal undiscoverable and inaccessible (step S71).

上述した携帯端末1が支払いを行うキャッシュレジスタ2と異なるキャッシュレジスタ2のBT送受信部25に接続要求を行った場合は、間違ったキャッシュレジスタ2のオペレータはキャンセルを指示するか、あるいは間違った一時的PINコードを入力するため、端末の認証に失敗する。この場合、携帯端末1のBT送受信部25は、リンク接続要求の失敗メッセージをアプリケーションに通知する。アプリケーションは、失敗した旨を利用者に通知する。利用者は、再度接続要求を指示するか、あるいは、アプリケーションが自動で接続要求を行えばよい。   When the mobile terminal 1 makes a connection request to the BT transmitting / receiving unit 25 of the cash register 2 different from the cash register 2 to which the payment is made, the operator of the wrong cash register 2 gives an instruction to cancel or wrong temporary The terminal authentication fails because the PIN code is entered. In this case, the BT transceiver unit 25 of the mobile terminal 1 notifies the application of a link connection request failure message. The application notifies the user that it has failed. The user may instruct the connection request again, or the application may automatically issue the connection request.

自動的に接続要求を行う場合は、次に、端末発見回数が規定内の回数かどうか判定を行い、規定以内の場合は、認証に失敗した装置(携帯端末1またはキャッシュレジスタ2)に対応するBTアドレスを接続拒否リストに加え、限定インクワイアリの送信要求をBT送受信部25に行う。以降、端末発見時にリストを検査することにより、一度認証に失敗した端末に接続することを回避できる。   When the connection request is automatically made, it is next determined whether or not the number of times the terminal is found is within the specified range. If the number is within the specified range, the device corresponding to the authentication failure (mobile terminal 1 or cash register 2) is handled. The BT address is added to the connection rejection list, and a limited inquiry transmission request is sent to the BT transceiver unit 25. Thereafter, by checking the list at the time of terminal discovery, it is possible to avoid connecting to a terminal that has failed authentication once.

次に、キャッシュレジスタ2の近くにキャッシュレジスタ2に成りすました装置が存在する状況を仮定して説明する。成りすました装置は、キャッシュレジスタ2と同様のリモートネームやCODを使用するため、携帯端末1のBT送受信部25は、CODの検査により成りすました端末もキャッシュレジスタ2として扱ってしまう。   Next, a description will be given assuming that there is a device impersonating the cash register 2 near the cash register 2. Since the impersonated device uses the same remote name and COD as the cash register 2, the BT transceiver unit 25 of the mobile terminal 1 treats the terminal impersonated by the COD inspection as the cash register 2.

利用者の携帯端末1が発生した一時的PINコードは、キャッシュレジスタ2のオペレータにしか提示されないため、悪意ある成りすましの装置は、表示された一時的PINコード情報を入手できないため、正しい認証手順が実行されず、コネクション接続要求は失敗する。携帯端末1のアプリケーションは、リンク接続要求結果のステータスを検査し、その理由が相手端末の認証に失敗したことを示す状況であった場合は、リンク続要求を行った相手装置のBTアドレスを該当しないリストに記録する。   Since the temporary PIN code generated by the user's mobile terminal 1 is presented only to the cash register 2 operator, the malicious impersonation device cannot obtain the displayed temporary PIN code information, so the correct authentication procedure is It is not executed and the connection request fails. The application of the mobile terminal 1 checks the status of the link connection request result, and if the reason indicates that the authentication of the partner terminal has failed, the BT address of the partner device that made the link connection request Do not record in the list.

その後、上記と同様に再度限定インクワイアリを実行し、携帯端末1のBTが、限定インクワイアイリの返信を受信したならば、アプリケーションに端末発見イベントを通知する。アプリケーションは、発見された端末のBluetoothアドレスを検査し、該当しないリストに記録した端末であると場合は、発見した端末を無視する。   Thereafter, the limited inquiry is executed again in the same manner as described above, and when the BT of the portable terminal 1 receives a reply of the limited inquiry, the terminal is notified of the terminal discovery event. The application checks the Bluetooth address of the discovered terminal, and ignores the discovered terminal if it is a terminal recorded in a non-applicable list.

以上の方法により、一旦認証に失敗した端末には2度と接続要求を行わないので、キャッシュレジスタ2に成りすました装置を自動的に排除でき、本来所望する端末との接続が容易に実現可能となる。   According to the above method, since a connection request is not made to a terminal that has once failed in authentication, a device pretending to be a cash register 2 can be automatically excluded, and a connection with the originally desired terminal can be easily realized. Become.

次に、支払いを行う利用者の所持する携帯端末1以外から、接続要求を受けた場合のキャッシュレジスタ2の処理について説明する。この場合、キャッシュレジスタ2に入力される一時的PINコードと接続要求を行った携帯端末1で入力される一時的PINコードが異なるため、該端末の認証に失敗し、接続要求の結果は失敗する。キャッシュレジスタ2のアプリケーションは、リンク接続要求結果のステータスを検査し、その理由が相手端末の認証に失敗したことを示す状況であった場合は、リンク接続要求をおこなった装置のBTアドレスを接続済みリストに記録する。   Next, the processing of the cash register 2 when a connection request is received from other than the portable terminal 1 possessed by the paying user will be described. In this case, since the temporary PIN code input to the cash register 2 is different from the temporary PIN code input at the mobile terminal 1 that made the connection request, authentication of the terminal fails, and the result of the connection request fails. . The application of the cash register 2 checks the status of the link connection request result, and if the reason is that the authentication of the partner terminal has failed, the BT address of the device that has made the link connection request is already connected. Record in the list.

再度携帯端末1から接続要求を受けた場合、接続要求には要求者のBluetoothアドレスも含まれているので、このアドレスが接続済みリストに含まれているかどうか検査する。もし、含まれていれば、接続要求に拒否を返答し、キャッシュレジスタ2の表示部40に不正端末からの接続要求を受信したことを表示する。   When a connection request is received from the portable terminal 1 again, since the requester's Bluetooth address is included in the connection request, it is checked whether this address is included in the connected list. If it is included, the connection request is rejected as a rejection, and the display unit 40 of the cash register 2 displays that the connection request from the unauthorized terminal has been received.

本発明では、キャッシュレジスタ2を、認証を必要とするモードに設定していたが、携帯端末1が認証を行う設定で合っても問題ない。また、双方認証を必要とするモードでも同様の効果が得られる。   In the present invention, the cash register 2 is set to a mode that requires authentication, but there is no problem even if the mobile terminal 1 is set to perform authentication. The same effect can be obtained even in a mode that requires both authentication.

このように、第1の実施形態では、キャッシュレジスタ2で支払いを行う顧客が所持している携帯端末1でPINコードを生成し、生成したPINコードをキャッシュレジスタ2のオペレータに提示し、オペレータがPINコードをキャッシュレジスタ2に入力した後に、このPINコードを利用して携帯端末1とキャッシュレジスタ2の双方で認証処理を行うため、PINコードを不正に入手されるおそれがなくなり、セキュリティ性能を向上できる。   As described above, in the first embodiment, the PIN code is generated by the mobile terminal 1 possessed by the customer who pays with the cash register 2, the generated PIN code is presented to the operator of the cash register 2, and the operator After entering the PIN code into the cash register 2, this PIN code is used to perform authentication on both the mobile terminal 1 and the cash register 2, so there is no risk of unauthorized acquisition of the PIN code, improving security performance it can.

(第2の実施形態)
第1の実施形態は、携帯端末1でPINコードを生成したのに対し、第2の実施形態はキャッシュレジスタ2でPINコードを生成する点に特徴がある。
(Second Embodiment)
The first embodiment is characterized in that the PIN code is generated by the mobile terminal 1, whereas the second embodiment is characterized in that the PIN code is generated by the cash register 2.

図9は第2実施形態における携帯端末1の処理動作の一例を示すフローチャート、図10は第2の実施形態におけるキャッシュレジスタ2の処理動作の一例を示すフローチャートである。図9及び図10のフローチャートは、図6及び図7のフローチャートと共通する処理が多いため、以下では相違点を中心に説明する。   FIG. 9 is a flowchart showing an example of the processing operation of the mobile terminal 1 in the second embodiment, and FIG. 10 is a flowchart showing an example of the processing operation of the cash register 2 in the second embodiment. Since the flowcharts of FIGS. 9 and 10 have many processes common to the flowcharts of FIGS. 6 and 7, the differences will be mainly described below.

レジのキャッシュレジスタ2で支払いを行う利用者は、携帯端末1を取り出し、サービスを受けるためのアプリケーションを起動し、アプリケーションは、BT送受信部を初期化する(ステップS81)。   The user who pays at the cash register 2 of the cash register takes out the portable terminal 1 and starts an application for receiving the service, and the application initializes the BT transceiver unit (step S81).

続いて、BT送受信部25に対して接続可能なBT送受信部39を有するキャッシュレジスタ2を探索するために、BT送受信部25に限定インクワイアリコマンド発行を要求し、BT送受信部は限定インクワイアリコマンドを送信する(ステップS82)。   Subsequently, in order to search for the cash register 2 having the BT transmission / reception unit 39 that can be connected to the BT transmission / reception unit 25, the BT transmission / reception unit 25 is requested to issue a limited inquiry command. A recommand is transmitted (step S82).

キャッシュレジスタ2のオペレータは、携帯端末1を所持する顧客のために、キャッシュレジスタ2のBT送受信部39が端末発見及び接続可能になったときに、アプリケーションを通じてBT送受信部39に通知する(ステップS115)。併せて、BT送受信部39を、リンクレベルの認証を必要とするモードとペアリングを可能とするモードに設定する(ステップS112)。(この作業はアプリケーションの初期化ルーチンで行ってもよい)。   The operator of the cash register 2 notifies the BT transmitter / receiver 39 through the application when the BT transmitter / receiver 39 of the cash register 2 becomes available for the terminal for the customer who owns the portable terminal 1 (step S115). ). In addition, the BT transceiver unit 39 is set to a mode that allows pairing with a mode that requires link level authentication (step S112). (This may be done in the application initialization routine).

このとき、キャッシュレジスタ2のアプリケーションは、内部で乱数を生成し(ステップS113)、認証に使用する一時的PINコードとしてメモリに記憶するとともに、その数字をキャッシュレジスタ2の表示装置に提示する(ステップS114)。   At this time, the application of the cash register 2 internally generates a random number (step S113), stores it in the memory as a temporary PIN code used for authentication, and presents the number to the display device of the cash register 2 (step S113). S114).

キャッシュレジスタ2のBT送受信部39は、限定インクワイアリメッセージを受信すると、自己のBTアドレスやデバイスの種類を示すCODなどの情報を限定インクワイアリを行った端末に返信する。   When receiving the limited inquiry message, the BT transmission / reception unit 39 of the cash register 2 returns information such as its own BT address and COD indicating the device type to the terminal that performed the limited inquiry.

携帯端末1のBTは、限定インクワイアイリの返信を受信すると、アプリケーションに装置発見イベントを通知する。アプリケーションは、発見された装置の識別子を検査し(ステップS86)、新規に発見した装置であれば、CODを検査し(ステップS87)、もし、キャッシュレジスタ2を示すCODの値の場合は、限定インクワイアリの中止をBT送受信部25に要求し(ステップS91)、発見された装置とのリンク接続をBT送受信部25に要求する(ステップS92)。BT送受信部25は発見された装置に対して接続要求を送信する。   When receiving the limited inquiry reply, the BT of the mobile terminal 1 notifies the application of a device discovery event. The application checks the identifier of the discovered device (step S86), and if it is a newly discovered device, it checks the COD (step S87). If the value is the COD value indicating the cash register 2, the application is limited. The BT transmission / reception unit 25 is requested to cancel the inquiry (step S91), and a link connection with the discovered device is requested to the BT transmission / reception unit 25 (step S92). The BT transceiver unit 25 transmits a connection request to the discovered device.

CODが異なる場合には、発見された装置の識別子を接続拒否リストに登録する(ステップS89)。新規装置の検査や、CODの検査はパラメータをセットしてBT送受信部25で行い、該当する装置を発見した時のみ、装置発見イベントを通知する方法もありうる。あらかじめ決められた時間内に発見できない場合は、接続要求エラーを利用者に通知する。   If the COD is different, the identifier of the discovered device is registered in the connection rejection list (step S89). There may be a method of notifying a device discovery event only when a new device or COD inspection is performed by the BT transmitter / receiver 25 by setting parameters and the corresponding device is discovered. If it cannot be found within a predetermined time, a connection request error is notified to the user.

キャッシュレジスタ2のBT送受信部39は、リンク接続要求が、リンクレベルのセキュリティを必要としているため、アプリケーションにリンクキー入力イベントを通知する(ステップS116)。初めて接続する携帯端末1なので、リンクキー入力要求に対してnegativeをBT送受信部39に入力する(ステップS117)。BT送受信部39はアプリケーションにPINコードの入力を示すイベントを通知する。アプリケーションは、該メッセージを受け取った場合は(ステップS118)、メモリ32に記録した一時的PINコードをBT送受信部39に入力し、BT送受信部39は、LMP_unit_keyを携帯端末1に送信する(ステップS125)。   The BT transmission / reception unit 39 of the cash register 2 notifies the link key input event to the application because the link connection request requires link level security (step S116). Since the mobile terminal 1 is connected for the first time, negative is input to the BT transceiver 39 in response to the link key input request (step S117). The BT transmitter / receiver 39 notifies the application of an event indicating the input of the PIN code. When the application receives the message (step S118), the application inputs the temporary PIN code recorded in the memory 32 to the BT transceiver 39, and the BT transceiver 39 transmits LMP_unit_key to the mobile terminal 1 (step S125). ).

一方、携帯端末1は、リンクキーの入力を受信すると(ステップS93)、リンクキーの入力拒否を返答する(ステップS94)。その後、PINコード入力要求を受信すると(ステップS95)、携帯端末1のBT送受信部25は、PINコードの入力を示すイベントをアプリケーションに通知し、アプリケーションは、一時的PINコード入力を行うダイアログをオペレータに提示し(ステップS96)、一時的PINコードの入力を促す。携帯端末1の所持者は、キャッシュレジスタ2の表示部に示された一時的PINコードの入力を行う(ステップS97)。あるいは、リンク接続要求を送信する前に、あらかじめ一時的PINコードの入力を促すダイアログを表示し、入力された一時的PINコードデータを一旦メモリに記録しておき、メッセージを受信した場合は、記録したデータを使用しても同等の効果を得られる。携帯端末1のBT送受信部25は、LMP_acceptedをキャッシュレジスタ2のBT送受信部39に送信する。以上により、双方に初期化キーが生成される。   On the other hand, when the portable terminal 1 receives the input of the link key (step S93), it returns a rejection of the input of the link key (step S94). Thereafter, when a PIN code input request is received (step S95), the BT transceiver unit 25 of the portable terminal 1 notifies the application of an event indicating the input of the PIN code, and the application displays a dialog for inputting the temporary PIN code. (Step S96) and prompts the user to enter a temporary PIN code. The holder of the portable terminal 1 inputs the temporary PIN code shown on the display unit of the cash register 2 (step S97). Alternatively, before sending a link connection request, a dialog prompting you to enter a temporary PIN code is displayed in advance, and the temporary PIN code data you have entered is temporarily recorded in memory, and if a message is received, it will be recorded The same effect can be obtained even if the data is used. The BT transceiver unit 25 of the mobile terminal 1 transmits LMP_accepted to the BT transceiver unit 39 of the cash register 2. Thus, initialization keys are generated for both.

このように、第2の実施形態では、顧客がキャッシュレジスタ2で支払いを行うときに、キャッシュレジスタ2で生成したPINコードを携帯端末1に入力し、このPINコードを利用して携帯端末1とキャッシュレジスタ2の双方で認証処理を行うため、認証手順を複雑にすることなく、セキュリティ性能を向上できる。   As described above, in the second embodiment, when the customer pays with the cash register 2, the PIN code generated by the cash register 2 is input to the portable terminal 1, and the PIN code is used to Since both the cash registers 2 perform the authentication process, the security performance can be improved without complicating the authentication procedure.

(第3の実施形態)
上述した第1及び第2の実施形態では、Bluetoothのリンク認証機能を利用していたが、第3の実施形態はリンク認証機能を利用しない点に特徴がある。
(Third embodiment)
In the first and second embodiments described above, the Bluetooth link authentication function is used. However, the third embodiment is characterized in that the link authentication function is not used.

図11は第3の実施形態における携帯端末1の処理動作の一例を示すフローチャートである。レジのキャッシュレジスタ2で支払いを行う利用者は、携帯端末1を取り出し、サービスを受けるためのアプリケーションを起動する。アプリケーションは、BT送受信部25を初期化する(ステップS141)。   FIG. 11 is a flowchart showing an example of processing operation of the mobile terminal 1 in the third embodiment. A user who pays at the cash register 2 of the cash register takes out the portable terminal 1 and activates an application for receiving the service. The application initializes the BT transceiver unit 25 (step S141).

アプリケーションは、携帯端末1の識別子の一部または全部を表示部22に提示する(ステップS142)。同時に、接続可能なBT送受信部39を有するキャッシュレジスタ2を探索するために、BT送受信部25に限定インクワイアリコマンド発行を要求し、BT送受信部25は限定インクワイアリコマンドをある一定期間送信する(ステップS143)。このとき、専用のインクワイリアクセスコードを用いることで、通信相手のキャッシュレジスタ2の探索時間をさらに短縮できる。   The application presents a part or all of the identifier of the mobile terminal 1 on the display unit 22 (step S142). At the same time, in order to search for the cash register 2 having the connectable BT transceiver unit 39, the BT transceiver unit 25 is requested to issue a limited inquiry command, and the BT transceiver unit 25 transmits the limited inquiry command for a certain period. (Step S143). At this time, the search time for the cash register 2 of the communication partner can be further shortened by using a dedicated inquiry access code.

所定時間探索してもキャッシュレジスタ2が見つからなかった場合は(ステップS144)、接続エラー処理を行う(ステップS145)。   If the cash register 2 is not found even after searching for a predetermined time (step S144), connection error processing is performed (step S145).

キャッシュレジスタ2からの限定インクワイアイリの返信を受信すると(ステップS146)、アプリケーションに端末発見イベントを通知する。   When a limited inquiry response is received from the cash register 2 (step S146), a terminal discovery event is notified to the application.

アプリケーションは、発見された端末の識別子を検査し(ステップS147)、新規に発見した端末であれば、CODを取得し(ステップS148)、もし、キャッシュレジスタ2を示すCODの値の場合は、限定インクワイアリの送信中止をBT送受信部25に要求し(ステップS149,S150)、このキャッシュレジスタ2に対するリンク接続をBT送受信部25に要求する(ステップS151)。BT送受信部25はキャッシュレジスタ2に対して接続要求を送信する。   The application checks the identifier of the discovered terminal (step S147), and if it is a newly discovered terminal, obtains the COD (step S148). If the value is the COD value indicating the cash register 2, the application is limited. The BT transmission / reception unit 25 is requested to cancel the inquiry transmission (steps S149 and S150), and the link connection to the cash register 2 is requested to the BT transmission / reception unit 25 (step S151). The BT transceiver unit 25 transmits a connection request to the cash register 2.

CODが異なる場合は、発見した装置の識別子を接続拒否リストに加える(ステップS152)。新規装置の検査やCODの検査はパラメータをセットしてBT送受信部25で行い、該当する装置を発見した時のみ、装置発見イベントを通知する方法もありうる。あらかじめ決められた時間内に発見できない場合は(ステップS153)、接続要求をエラーとして利用者に通知する(ステップS145)。   If the CODs are different, the identifier of the discovered device is added to the connection rejection list (step S152). There may be a method of notifying a device discovery event only when a new device or COD inspection is performed by the BT transmitter / receiver 25 with parameters set and a corresponding device is discovered. If it cannot be found within a predetermined time (step S153), the connection request is notified to the user as an error (step S145).

上述したステップS109の後、キャッシュレジスタ2からのリンク接続要求結果を受信し(ステップS154)、接続が成功した場合は,S155)、上位プロトコルの接続と、アプリケーションによる接続処理を行う。   After the above-described step S109, the link connection request result from the cash register 2 is received (step S154). If the connection is successful, S155), the connection of the upper protocol and the connection process by the application are performed.

一方、接続に失敗した場合は、規定時間以内か否かを判定し、規定時間を越えるとステップS145の接続エラー処理を行い、規定時間以内であれば、接続拒否リストに追加する(ステップS158)。   On the other hand, if the connection fails, it is determined whether or not it is within the specified time. If the specified time is exceeded, the connection error processing of step S145 is performed, and if it is within the specified time, it is added to the connection rejection list (step S158). .

図12は第3の実施形態におけるキャッシュレジスタ2の処理動作の一例を示すフローチャートである。キャッシュレジスタ2のオペレータは、アプリケーションを通じてBT送受信部39が端末発見可能、接続可能な状態に設定することをBT送受信部39に指示する(ステップS161〜S163)。   FIG. 12 is a flowchart showing an example of the processing operation of the cash register 2 in the third embodiment. The operator of the cash register 2 instructs the BT transmitter / receiver 39 to set the terminal BT transmitter / receiver 39 to be discoverable and connectable through the application (steps S161 to S163).

識別子入力を行うダイアログをオペレータに提示し、識別子の入力を促す(ステップS164)。オペレータは、支払いを行う顧客の携帯端末1の表示部22に示された識別子をキー入力部23から入力する。あるいは、リンク接続要求を受信する前にあらかじめ識別子の入力を促すダイアログを表示し、入力された識別子をデータを一旦メモリ13に記録しておき、メッセージを受信した場合は、記録したデータを使用しても同等の効果を得られる。あるいは、キー入力部23を顧客にわたし、顧客自身が識別子の入力を行っても同等の効果が得られる。あるいは、携帯端末1の表示部22にバーコードを示し、スキャナーで読み取る、あるいは、CCDカメラで画像を撮影し、文字認識を行い識別子とする。あるいは、IrDAを通じて識別子を取得しても同等の効果を有する。   A dialog for inputting an identifier is presented to the operator to prompt the input of the identifier (step S164). The operator inputs the identifier shown on the display unit 22 of the mobile terminal 1 of the customer who makes payment from the key input unit 23. Alternatively, before receiving the link connection request, a dialog prompting the input of the identifier is displayed in advance, and the input identifier is recorded in the memory 13 once. When the message is received, the recorded data is used. However, the same effect can be obtained. Alternatively, the same effect can be obtained even if the key input unit 23 is used for the customer and the customer inputs the identifier. Alternatively, a bar code is displayed on the display unit 22 of the portable terminal 1 and read by a scanner, or an image is taken by a CCD camera, and character recognition is performed as an identifier. Alternatively, obtaining the identifier through IrDA has the same effect.

続いて、キャッシュレジスタ2のBT送受信部39が限定インクワイアリメッセージを受信すると自BTアドレスやデバイスの種類を示すClass Of Device(以下CODと呼ぶ)などの情報を限定インクワイアリを行った端末に返信する。   Subsequently, when the BT transmission / reception unit 39 of the cash register 2 receives the limited inquiry message, it returns information such as its own BT address and Class Of Device (hereinafter referred to as COD) indicating the type of device to the terminal that performed the limited inquiry. To do.

続いて、接続要求を受信すると(ステップS165)、接続要求を行った携帯端末1が接続拒否リストに登録されているか否かを判断し(ステップS166)、登録されていれば、携帯端末1に対して接続拒否返答を行い(ステップS167)、不正端末からの接続要求を受信した旨を表示して(ステップS168)、ステップS165に戻る。   Subsequently, when a connection request is received (step S165), it is determined whether or not the portable terminal 1 that has made the connection request is registered in the connection rejection list (step S166). A connection rejection response is made (step S167), a message indicating that the connection request from the unauthorized terminal has been received is displayed (step S168), and the process returns to step S165.

上述したステップS166において、接続要求を行った携帯端末1が接続拒否リストに登録されていないと判断されると、この携帯端末1の識別子を取得しているか否かを判断し(ステップS169)、取得していない場合は携帯端末1に対して接続拒否返答を行い(ステップS170)、端末発見不可能で接続不可能状態に設定する(ステップS171)。   In step S166 described above, if it is determined that the mobile terminal 1 that has made the connection request is not registered in the connection rejection list, it is determined whether or not the identifier of the mobile terminal 1 has been acquired (step S169). If it has not been acquired, a connection rejection response is sent to the portable terminal 1 (step S170), and the terminal cannot be found and the connection is disabled (step S171).

上述したステップS169において、携帯端末1から識別子が取得している場合には、ステップS164で入力された識別子と取得した識別子が一致するか否かを判定する(ステップS172)。両者が一致しなければ、接続拒否返答を行い(ステップS173)、この携帯端末1を接続拒否リストに追加する(ステップS174)。   In step S169 described above, if the identifier is acquired from the portable terminal 1, it is determined whether or not the identifier input in step S164 matches the acquired identifier (step S172). If they do not match, a connection rejection response is made (step S173), and this portable terminal 1 is added to the connection rejection list (step S174).

上述したステップS172で識別子が一致したと判断されると、リンク接続許可の返答を行った後(ステップS175)、携帯端末1からのリンク接続結果を受信する(ステップS176)。   If it is determined that the identifiers match in step S172 described above, a link connection permission response is made (step S175), and then the link connection result from the portable terminal 1 is received (step S176).

リンク接続結果によりリンク接続に成功したか否かを判断し(ステップS177)、成功した場合には端末発見不可能で接続不可能な状態に設定した後(ステップS178)、アプリケーションによる接続処理を行う(ステップS179)。   It is determined whether or not the link connection is successful based on the link connection result (step S177). If the link connection is successful, the terminal is not found and cannot be connected (step S178), and then the connection process by the application is performed. (Step S179).

上述したステップS177でリンク接続に成功しなかったと判断されると、端末発見不可能で接続不可能な状態に設定した後(ステップS180)、接続エラー処理を行う(ステップS181)。   If it is determined in step S177 described above that the link connection has not been successful, a connection error process is performed (step S181) after setting the terminal undiscoverable and incapable of connection (step S180).

このように、第3の実施形態は、携帯端末1の識別子をキャッシュレジスタ2のオペレータが入力し、入力した識別子と携帯端末1から送信された識別子とが一致すれば、アプリケーションによる接続処理を行うため、第1及び第2の実施形態のようにリンク認証機能を使用するよりも短い時間で、携帯端末1とキャッシュレジスタ2との間で通信を行うことができる。   As described above, in the third embodiment, the operator of the cash register 2 inputs the identifier of the mobile terminal 1, and if the input identifier matches the identifier transmitted from the mobile terminal 1, the connection process by the application is performed. Therefore, communication can be performed between the mobile terminal 1 and the cash register 2 in a shorter time than using the link authentication function as in the first and second embodiments.

(第4の実施形態)
第1〜第3の実施形態では、相手を間違えて接続しようとした場合に、端末探索を行うために余計に接続時間がかかってしまう。また、キャッシュレジスタ2の操作者が誤ってPINコードを入力するおそれもある。
(Fourth embodiment)
In the first to third embodiments, when trying to connect by mistake in the other party, it takes extra connection time to perform terminal search. Further, there is a possibility that the operator of the cash register 2 inputs the PIN code by mistake.

第4の実施形態は、携帯端末1の表示部22に携帯端末1の識別情報をバーコード等で表示させ、その識別情報をキャッシュレジスタ2で読み取って認証処理を行うものである。本実施形態では、キャッシュレジスタ2が携帯端末1に接続を行う場合、すなわちキャッシュレジスタ2がマスターで、携帯端末1がスレーブの場合を想定している。   In the fourth embodiment, identification information of the portable terminal 1 is displayed on the display unit 22 of the portable terminal 1 with a barcode or the like, and the identification information is read by the cash register 2 to perform an authentication process. In the present embodiment, it is assumed that the cash register 2 is connected to the mobile terminal 1, that is, the cash register 2 is a master and the mobile terminal 1 is a slave.

図13は第4の実施形態におけるキャッシュレジスタ2の模式図、図14は図12のキャッシュレジスタ2の内部構成を示すブロック図である。本実施形態のキャッシュレジスタ2は、図3及び図4に示したキャッシュレジスタ2の構成に加えて、携帯端末1の表示部22に表示されるバーコードを読み取るためのバーコードリーダ38aを備えている。   FIG. 13 is a schematic diagram of the cash register 2 in the fourth embodiment, and FIG. 14 is a block diagram showing an internal configuration of the cash register 2 of FIG. In addition to the configuration of the cash register 2 shown in FIGS. 3 and 4, the cash register 2 of the present embodiment includes a barcode reader 38 a for reading a barcode displayed on the display unit 22 of the mobile terminal 1. Yes.

なお、図3のように、一つのバーコードリーダ38だけを設けて、このバーコードリーダ38で商品登録と携帯端末1の識別情報の取得の双方を行ってもよい。この場合、商品登録と携帯端末1の識別情報の取得のいずれを行うのかを、キャッシュレジスタ2のキー入力部34で切り替えればよい。あるいは、このような切り替えを行うための専用のボタンを設けてもよい。   As shown in FIG. 3, only one barcode reader 38 may be provided, and both product registration and acquisition of identification information of the mobile terminal 1 may be performed by this barcode reader 38. In this case, the key input unit 34 of the cash register 2 may be switched between product registration and acquisition of identification information of the mobile terminal 1. Alternatively, a dedicated button for performing such switching may be provided.

専用のボタンを設ける場合、キャッシュレジスタ2の操作者は、ボタンを押下して携帯端末1の識別情報の取得を行うモードに設定した状態で、携帯端末1の表示部22に表示されるバーコードをバーコードリーダ38aで読み取って、携帯端末1の識別情報を取得する。バーコードの読み取りに成功すると、自動的にあるいは操作者がボタンを押下して、商品登録モードに切り替える。以後、バーコードリーダ38は、商品登録を行う目的で使用される。   In the case where a dedicated button is provided, the operator of the cash register 2 presses the button and sets the barcode displayed on the display unit 22 of the mobile terminal 1 in a mode in which the identification information of the mobile terminal 1 is acquired. Is read by the barcode reader 38a, and the identification information of the portable terminal 1 is acquired. When the barcode is successfully read, the operator switches to the product registration mode automatically or by pressing the button. Thereafter, the barcode reader 38 is used for the purpose of registering merchandise.

あるいは、バーコード自体に携帯端末1の識別情報か否かを示す情報を予め埋め込んでおけば、ボタンを設けることなく、自動的にバーコードリーダ38aの使用目的を切り替えることができる。すなわち、バーコードの内容をキャッシュレジスタ2で解析することにより、携帯端末1の識別情報を示すバーコードか、商品の識別情報を示すバーコードかを自動的に判別することができる。   Or if the information which shows whether it is the identification information of the portable terminal 1 is embedded beforehand in barcode itself, the intended purpose of barcode reader 38a can be automatically switched, without providing a button. That is, by analyzing the contents of the barcode with the cash register 2, it is possible to automatically determine whether the barcode indicates the identification information of the mobile terminal 1 or the barcode indicating the identification information of the product.

また、図13のように、携帯端末1の識別情報を取得するための専用のバーコードリーダ38aを設ける場合は、赤外線センサと組み合わせることにより、携帯端末1とバーコードリーダ38aとの距離が近づくと自動的にバーコードリーダ38aが読み取り作業を開始するようにすることもできる。   Further, as shown in FIG. 13, when a dedicated barcode reader 38a for obtaining identification information of the portable terminal 1 is provided, the distance between the portable terminal 1 and the barcode reader 38a is reduced by combining with an infrared sensor. The bar code reader 38a can automatically start the reading operation.

通常のバーコードリーダの読み取り時間は数百ミリ秒なので、上記のように自動読み取りを行うと、端末所持者が携帯端末1をバーコードリーダ38aの近くに配置してから数百ミリ秒で端末識別情報をサービス提供装置に伝達でき、Bluetoothの端末探索フェーズに必要な10数秒の時間を短縮することができる。   Since the reading time of a normal bar code reader is several hundred milliseconds, if automatic reading is performed as described above, the terminal holder will place the mobile terminal 1 in the vicinity of the bar code reader 38a in several hundred milliseconds after the mobile terminal 1 is placed. The identification information can be transmitted to the service providing device, and the time required for the terminal search phase of Bluetooth can be shortened by several tens of seconds.

また、本実施形態では、キャッシュレジスタ2の操作者が明示的にバーコードリーダ38aを携帯端末1に近づけるという操作を行うだけで、通信相手として特定すべき携帯端末1の識別情報をキャッシュレジスタ2に伝達でき、上記と同様に、携帯端末1の探索時間を短縮できる。   In this embodiment, the operator of the cash register 2 explicitly performs the operation of bringing the barcode reader 38a close to the mobile terminal 1, and the identification information of the mobile terminal 1 to be specified as the communication partner is stored in the cash register 2. Similarly to the above, the search time for the mobile terminal 1 can be shortened.

バーコードには、1次元バーコードと2次元バーコードの2種類がある。2次元バーコードの方がより多くの情報を伝達できるが、バーコードリーダの価格が高価なため、1次元バーコードほどは普及していない。1次元バーコードを読み取るバーコードリーダは、一般の小売店などに普及している。   There are two types of barcodes: a one-dimensional barcode and a two-dimensional barcode. Two-dimensional barcodes can transmit more information, but are not as popular as one-dimensional barcodes because of the high price of barcode readers. Bar code readers that read one-dimensional bar codes are widely used in general retail stores.

このような背景から、本実施形態では、主に1次元バーコードを用いる例を説明するが、2次元バーコードにも適用可能である。1次元バーコードには、JAN13、JAN8、CODE39、CODE128、標準ITF、及びNW-7などがあり、異なる分野ごとに、その特性に合わせて使用されている。   From such a background, in this embodiment, an example in which a one-dimensional barcode is mainly used will be described. However, the present embodiment can also be applied to a two-dimensional barcode. One-dimensional bar codes include JAN13, JAN8, CODE39, CODE128, standard ITF, and NW-7, and are used according to their characteristics in different fields.

現在、日本の流通業界で汎用的に使用されているバーコードは、JAN13コードと呼ばれるものであり、13桁の数字を使用している。13桁のうち、2桁が国コード、5桁が会社コード、5桁が製品コード、1桁がチェックコードであるが、店ごとに番号を割り振ることもできる。   Currently, the bar code widely used in the Japanese distribution industry is called the JAN13 code, which uses 13 digits. Of the 13 digits, 2 digits are the country code, 5 digits are the company code, 5 digits are the product code, and 1 digit is the check code, but a number can also be assigned to each store.

Bluetoothでの接続手順では、相手アドレスのうち32bit (4294967296)、言い換えれば10桁のデータを必要とする。このため、JAN13を使用する場合には、図15に示すように12桁のうち10桁を識別情報用に、残り2桁を他の情報を表現するために使用できる。   The Bluetooth connection procedure requires 32 bits (4294967296) of the other party address, in other words, 10-digit data. Therefore, when using JAN13, as shown in FIG. 15, 10 digits out of 12 digits can be used for identification information, and the remaining 2 digits can be used to express other information.

図16は第4の実施形態における携帯端末1の処理動作の一例を示すフローチャート、図17は第4の実施形態におけるキャッシュレジスタ2の処理動作の一例を示すフローチャートである。   FIG. 16 is a flowchart showing an example of the processing operation of the mobile terminal 1 in the fourth embodiment, and FIG. 17 is a flowchart showing an example of the processing operation of the cash register 2 in the fourth embodiment.

最初に、携帯端末1の所持者の指示により、サービス提供を受ける専用のアプリケーションを起動する(ステップS201)。次に、自端末のBluetoothアドレスである48ビット識別子を、HCIを通じてHCI_READ_BD_ADDRを発行することで取得する(ステップS202)。あるいは、最初にアプリケーションを起動したときにBluetoothアドレスを取得し、そのアドレスを不揮発性メモリに記録しておき、次回からは不揮発メモリから読み出してもよいし、端末所持者が予め携帯端末1に割り振られた識別子を何らかの手段で入手し、手動でアプリケーションに登録してもよい。   First, in response to an instruction from the owner of the mobile terminal 1, a dedicated application for receiving service provision is activated (step S201). Next, a 48-bit identifier that is the Bluetooth address of the terminal itself is acquired by issuing HCI_READ_BD_ADDR through the HCI (step S202). Alternatively, the Bluetooth address may be acquired when the application is first activated, and the address may be recorded in the non-volatile memory and read from the non-volatile memory from the next time. The obtained identifier may be obtained by some means and manually registered in the application.

次に、認証処理に使用される乱数を生成し、生成した乱数をメモリ13に記憶する(ステップS203)。   Next, a random number used for the authentication process is generated, and the generated random number is stored in the memory 13 (step S203).

次に、ステップS202で読み出したアドレスの下位32ビットのみ取得して、10進の数字に変化する。このとき、識別子の値が小さくて、桁に変換して10桁に満たない場合は、10桁になるように頭に0を加える。   Next, only the lower 32 bits of the address read in step S202 are acquired and changed to decimal numbers. At this time, if the value of the identifier is small and converted into digits and less than 10 digits, 0 is added to the head so that it becomes 10 digits.

認証を使用しない場合は、任意の数字2桁を、上位2けたあるいは下位2けたに追加し、12桁の数字を生成する(ステップS204)。   If authentication is not used, an arbitrary two-digit number is added to the upper two digits or the lower two digits to generate a 12-digit number (step S204).

認証を使用する場合は、ステップS203で生成した乱数を、上位2桁または下位2桁として、Bluetooth識別子である10桁に追加する。あるいは双方で秘密に共有する2桁の固定の数字を使用してもよい。   When using authentication, the random number generated in step S203 is added to the 10 digits that are the Bluetooth identifier as the upper two digits or the lower two digits. Alternatively, a fixed two-digit number shared secretly by both parties may be used.

このとき、セキュリティ性能を高めるには、生成した12桁に対して可逆の演算、例えば、秘密の12桁のデータとの排他論理和を求めるか、あるいは、決められた法則に従って、ビットの交換を行うことにより、接続情報の暗号化を行う方法も考えられる。   At this time, in order to improve the security performance, a reversible operation is performed on the generated 12 digits, for example, an exclusive OR with the secret 12-digit data is performed, or bit exchange is performed according to a determined rule. By doing so, a method of encrypting the connection information is also conceivable.

次に、ステップS204で生成した12桁の数字を用いてJAN13コード用の画像を生成する(ステップS205)。JAN13の画像データは仕様が決められており、仕様に従いチェックサム用の数字(下位1桁)を計算し、得られた13桁の数字を元に横95ドットのバーコード画像を作成する。なお、携帯端末1の画面が大きい場合は、95のN倍のバーコード画像を作成してもよい。   Next, an image for JAN13 code is generated using the 12-digit number generated in step S204 (step S205). The specification of the image data of JAN13 is determined, and a checksum number (lower one digit) is calculated according to the specification, and a barcode image of horizontal 95 dots is created based on the obtained 13-digit number. If the screen of the portable terminal 1 is large, a barcode image of N times 95 may be created.

次に、作成したバーコード画像を表示画面に提示し(ステップS206)、Bluetoothデバイスをページスキャン可能モードに変更する(ステップS207)。また、スキャンウィンドウやスキャンインターバルのパラメータを、例えば、それぞれ、22.5msや160msに変更する。これにより、リンクレベルでの接続時間を短縮できる。   Next, the created barcode image is presented on the display screen (step S206), and the Bluetooth device is changed to the page scan enable mode (step S207). Also, the scan window and scan interval parameters are changed to, for example, 22.5 ms and 160 ms, respectively. Thereby, the connection time at the link level can be shortened.

端末所持者は、携帯端末1への画像表示を確認すると、携帯端末1の表示部をキャッシュレジスタ2のバーコードリーダ38aに近づけ、バーコードリーダ38aにより、バーコード画像の読み取りを行う。   When the terminal holder confirms the image display on the portable terminal 1, the display unit of the portable terminal 1 is brought close to the barcode reader 38a of the cash register 2, and the barcode image is read by the barcode reader 38a.

その後、携帯端末1は、図6と同様に、接続と認証処理を行い(ステップS208〜S217)、リンクの接続が完了するとページスキャンを無効にする(ステップS218)。   After that, the mobile terminal 1 performs connection and authentication processing (steps S208 to S217), similarly to FIG. 6, and invalidates the page scan when the link connection is completed (step S218).

一方、キャッシュレジスタ2は、RS-232Cのポートを監視し、バーコードリーダ38aが画像取込みを行った否かを確認し、バーコードリーダ38aが画像データの読み取りに成功すると(ステップS222)、13桁のJAN13コードを取得する(ステップS223)。   On the other hand, the cash register 2 monitors the RS-232C port, confirms whether or not the barcode reader 38a has taken in the image, and if the barcode reader 38a succeeds in reading the image data (step S222), 13 The JAN13 code of the digit is acquired (step S223).

取得した13桁の数字から、相手Bluetoothデバイスの32Bitに相当する認証用データを取得し(ステップS224)、16進表記への変換を行う。次に、変換後のデータの上位2バイトを任意の数字で補完し、携帯端末1のみなしBluetoothアドレスを作成する(ステップS225)。携帯端末1から送られた12桁の数字に2桁の認証データが含まれている場合は、復号のための演算を行って、識別情報である10桁の数字と認証用の2桁の数字とを取得する。この認証用の2桁の数字は、リンク接続認証の際に用いられる。   Authentication data corresponding to 32 bits of the partner Bluetooth device is acquired from the acquired 13-digit number (step S224), and converted to hexadecimal notation. Next, the upper 2 bytes of the converted data are complemented with an arbitrary number to create a Bluetooth address for only the portable terminal 1 (step S225). When 2-digit authentication data is included in the 12-digit number sent from the mobile terminal 1, the calculation for decryption is performed, and the 10-digit number as identification information and the 2-digit number for authentication And get. This two-digit number for authentication is used for link connection authentication.

次に、作成したみなしアドレスを用いて、リンク接続要求を携帯端末1に送信し(ステップS226)、携帯端末1とリンクレベルでの接続を試みる。キャッシュレジスタ2はリンクレベルの接続完了イベントを受信すると(ステップS227〜S232)、以後、L2CAPの接続、RFCOMMの接続、アプリケーションであるOBEXの接続を行う。   Next, a link connection request is transmitted to the mobile terminal 1 using the created deemed address (step S226), and connection with the mobile terminal 1 at the link level is attempted. When the cash register 2 receives the link level connection completion event (steps S227 to S232), thereafter, L2CAP connection, RFCOMM connection, and application OBEX connection are performed.

バーコード画像の中に認証データが含まれている場合には、携帯端末1とキャッシュレジスタ2の双方でリンク接続認証を行う際に、リンクキーの入力イベントを受信したときに、取得した2桁の認証用の数字と双方があらかじめ共有する秘密のコードや日時を種に、128ビットのリンクキーを生成して、リンクキーとして利用する。あるいは、そのままリンクキーとして用いるのではなく、リンクキーを拒否して、PINデータ人力要求イベントを受信したときに、PINデータとして利用できる。Bluetoothのリンクレベルの認証は図6に示したフローチャートに従って、LMP内部で実行される。   When authentication data is included in the barcode image, the two digits obtained when a link key input event is received when link connection authentication is performed by both the mobile terminal 1 and the cash register 2 A 128-bit link key is generated and used as a link key using the authentication number and the secret code and date and time shared by both parties in advance. Alternatively, it is not used as it is as a link key, but can be used as PIN data when the link key is rejected and a PIN data manpower request event is received. Bluetooth link level authentication is executed within the LMP according to the flowchart shown in FIG.

以上の手順により、携帯端末1とキャッシュレジスタ2との間でデータの送受信が可能となる。この状態において、携帯端末1は、CPU11の制御により、例えばEEPROM等のメモリ13に格納されている電子クーポンを読み出して、BT送受信部からキャッシュレジスタ2に電子クーポンを送信する
キャッシュレジスタ2は、携帯端末1の接続情報の取得に成功すると、キャッシュレジスタ2の本来の機能であるレジ処理も並行して行う。すなわち、当該顧客が購入しようとしている商品PのバーコードB1をバーコードリーダ38aで読み取り、POSサーバ3から当該商品Pの価格を取得し、それとキー入力部34から入力された個数と乗算を行って合計金額を算出し、商品金額と合計金額を表示部37に表示したり、レシートの発行を行ったりする。当該顧客が購入しようとしている全ての商品のバーコード入力(あるいはキー入力であってもよい)が終了し、それらの合計金額が得られるとき、レジ操作者はキー入力部34から所定のキー入力を行うことにより、レジ処理の終了を指示する。
Through the above procedure, data can be transmitted and received between the portable terminal 1 and the cash register 2. In this state, the mobile terminal 1 reads an electronic coupon stored in the memory 13 such as an EEPROM, for example, under the control of the CPU 11 and transmits the electronic coupon from the BT transceiver unit to the cash register 2. If the connection information of the terminal 1 is acquired successfully, the cash register 2 which is the original function of the cash register 2 is also performed in parallel. That is, the barcode B1 of the product P that the customer intends to purchase is read by the barcode reader 38a, the price of the product P is acquired from the POS server 3, and the product is multiplied by the number input from the key input unit 34. The total amount is calculated, and the product amount and the total amount are displayed on the display unit 37, or a receipt is issued. When the bar code input (or key input) of all the products that the customer intends to purchase is finished and the total amount is obtained, the cashier operator inputs a predetermined key from the key input unit 34. To instruct the end of the registration process.

キャッシュレジスタ2は、携帯端末1から電子クーポンが送信されてきたときは、それをBT送受信部39で受信し、CPU3の制御のもと、使用可能なクーポンを用いて、その対象商品を値引きするための演算処理を行って、最終的な合計金額を求める。さらに、購入価格に応じた得点を求めて、その得点を電子ポイントとして、BT送受信部39から携帯端末1へ送信する。そして、当該顧客の購入履歴として、顧客情報をPOSサーバ3に送信する。   When an electronic coupon is transmitted from the mobile terminal 1, the cash register 2 receives the electronic coupon at the BT transceiver 39 and discounts the target product using the usable coupon under the control of the CPU 3. To calculate the final total amount. Further, a score corresponding to the purchase price is obtained, and the score is transmitted as an electronic point from the BT transceiver unit 39 to the mobile terminal 1. Then, customer information is transmitted to the POS server 3 as the purchase history of the customer.

キャッシュレジスタ2のBT送受信部39は、電子ポイントを送信し終わると、当該携帯端末1との間に確立された無線伝送路の切断処理を実行する。すなわち、コネクションの切断とリンクの切断を行う。   When the transmission / reception unit 39 of the cash register 2 finishes transmitting the electronic point, the BT transmission / reception unit 39 executes a disconnection process of the wireless transmission path established with the portable terminal 1. That is, the connection is disconnected and the link is disconnected.

ユーザインタフェースの観点から言えば、携帯端末1の画面から接続情報が正しく取得できた場合、Bluetoothの接続が完了した場合、サービス提供の処理が終了した場合(リンクが切断された場合)などに、携帯端末1とキャッシュレジスタ2のどちらか、あるいは、双方に、効果音や画面表示で状況を知らせるとよい。携帯の場合は、振動させたり、イルミネーションを光らせる方法もありうる。   From the viewpoint of the user interface, when connection information can be acquired correctly from the screen of the mobile terminal 1, Bluetooth connection is completed, service provision processing is completed (link is disconnected), etc. The situation may be notified to either the portable terminal 1 or the cash register 2 or both by sound effects and screen display. In the case of a mobile phone, there may be a method of vibrating or illuminating illumination.

このように、第4の実施形態では、携帯端末1の識別情報と認証用のデータを示すバーコード画像を携帯端末1の表示部22に表示するため、このバーコード画像をキャッシュレジスタ2のバーコードリーダ38aで読み取ることにより、携帯端末1を簡易かつ正確に特定でき、携帯端末1がサービスの提供を要求してから提供を受けるまでの時間を短縮できる。   As described above, in the fourth embodiment, since the barcode image indicating the identification information and authentication data of the mobile terminal 1 is displayed on the display unit 22 of the mobile terminal 1, the barcode image is displayed on the bar of the cash register 2. By reading with the code reader 38a, the portable terminal 1 can be specified easily and accurately, and the time from when the portable terminal 1 requests provision of service until it is received can be shortened.

特に、本実施形態の場合、携帯端末1の識別情報と認証用データを表すバーコード画像を特定のキャッシュレジスタ2のバーコードリーダ38aで読み取るため、この特定のキャッシュレジスタ2のみが携帯端末の識別情報等を取得でき、セキュリティ性能が向上する。   In particular, in the present embodiment, since the barcode image representing the identification information and authentication data of the mobile terminal 1 is read by the barcode reader 38a of the specific cash register 2, only the specific cash register 2 identifies the mobile terminal. Information can be acquired, and security performance is improved.

また、本実施形態では、バーコードリーダ38a等で取得した接続情報により、リンクの確立と認証を行い、携帯端末1とキャッシュレジスタ2の双方において、認証用のキーが一致した場合のみ接続を許容するため、所望の携帯端末1のみがキャッシュレジスタ2の提供するサービスを受けることができる。   In this embodiment, link establishment and authentication are performed based on the connection information acquired by the barcode reader 38a and the like, and connection is permitted only when the authentication key matches in both the portable terminal 1 and the cash register 2. Therefore, only the desired mobile terminal 1 can receive the service provided by the cash register 2.

また、レジ操作者が携帯端末1の指定を間違う余地がなく、確実なコネクションの確立が可能になる。さらに、処理時間のかかるBluetoothの端末探索の手順を実行しないため、レジ本来の作業を阻害せずに、各種のサービスを提供できる。   Further, there is no room for the cashier operator to mistakenly specify the portable terminal 1, and a reliable connection can be established. Furthermore, since the Bluetooth terminal search procedure, which takes a long time, is not executed, various services can be provided without hindering the original work of the cash register.

また、無線伝送路設定のために取得した携帯端末1の識別情報に対応付けた顧客毎の購入履歴等の顧客情報を収集できるので、この購入情報を用いて購入商品売上管理や在庫管理の他、各顧客の嗜好の解析も行うことができ、各顧客別に個別のサービスを提供できる。   In addition, since customer information such as purchase history for each customer associated with the identification information of the mobile terminal 1 acquired for setting the wireless transmission path can be collected, the purchase information can be used for sales management and inventory management. It is also possible to analyze the preferences of each customer and provide individual services for each customer.

なお、携帯端末1とキャッシュレジスタ2との間で接続情報をやり取りするための具体的な方法に特に制限はなく、バーコードリーダ38aによりバーコードを読み取る方法の他、携帯端末1に設けられた無線タグから無線で接続情報を送信する方法や、IrDA(Infrared Data Association)通信により接続情報を送信する方法や、撮像素子にてバーコード等の識別情報を読み取る方法など、種々の方法が考えられる。   In addition, there is no restriction | limiting in particular in the specific method for exchanging connection information between the portable terminal 1 and the cash register 2, It was provided in the portable terminal 1 besides the method of reading a barcode with the barcode reader 38a. Various methods are conceivable, such as a method of wirelessly transmitting connection information from a wireless tag, a method of transmitting connection information by IrDA (Infrared Data Association) communication, and a method of reading identification information such as a barcode with an image sensor. .

また、上述した実施形態では、1次元バーコードを使用したが、2次元バーコードを使用してもよい。この場合、48ビットのBluetooth識別子を縮退させず、かつ、認証用のデータもビット数を増やすことができ、セキュリティ性能をさらに向上できる。また、自端末のBluetoothクロックの取得が可能であるならば、その情報を含めることにより、接続要求時に、携帯端末1の周波数の推測が正しくなり、より短時間での接続が可能となる。   In the above-described embodiment, a one-dimensional barcode is used, but a two-dimensional barcode may be used. In this case, the 48-bit Bluetooth identifier is not degenerated, and the number of bits of authentication data can be increased, thereby further improving the security performance. If the Bluetooth clock of the terminal itself can be obtained, including the information makes it possible to correctly estimate the frequency of the portable terminal 1 at the time of a connection request, thereby enabling connection in a shorter time.

また、本実施形態では、相手端末の認証にリンクレベルの認証機能を使用したが、OBEXを使用する場合には、取得した認証データをそのまま、あるいは、何らかの演算を行って認証キーとして使用する。OBEXの場合はハッシュ関数であるMD5を用いたチャレンジレスポンス方式での認証が可能となる。   In this embodiment, the link level authentication function is used for authentication of the partner terminal. However, when OBEX is used, the acquired authentication data is used as it is or after some calculation is used as an authentication key. In the case of OBEX, authentication by the challenge response method using MD5 which is a hash function is possible.

あるいは、OBEXでも標準仕様のMD5の認証方式を使用せず、独自の認証方式の認証キーそのもの、あるいは認証キー作成の種として利用しても同等の効果が得られる。   Alternatively, OBEX does not use the standard MD5 authentication method, but the same effect can be obtained even if it is used as the authentication key itself of the original authentication method or as a seed for creating the authentication key.

本例では、1次元バーコードを使用しており、相手BTアドレスを縮退している。このような場合、PIN入力を行いリンクキーを作成すると認証ミスが生じる可能性がある。これを防ぐためには、単体キーとしてリンクキーを作成すれば回避できる。   In this example, a one-dimensional barcode is used, and the partner BT address is degenerated. In such a case, an authentication error may occur when a PIN is entered and a link key is created. To prevent this, a link key can be created as a single key.

なお、上記実施形態では、キャッシュレジスタ2が電子クーポンによる値引きや電子ポイントの発行を行っているが、このような処理をキャッシュレジスタ2とネットワークを介して通信可能なように接続されているコンピュータに実行させてもよい。   In the above embodiment, the cash register 2 performs discounts and issuance of electronic points using electronic coupons. However, such processing is performed on a computer connected to the cash register 2 so as to be able to communicate with the cash register 2 via a network. It may be executed.

(第5の実施形態)
第5の実施形態は、第4の実施形態とは逆で、携帯端末1からキャッシュレジスタ2に接続を行う場合、すなわち携帯端末1がマスターで、キャッシュレジスタ2がスレーブの場合を想定している。
(Fifth embodiment)
In the fifth embodiment, in contrast to the fourth embodiment, it is assumed that the mobile terminal 1 is connected to the cash register 2, that is, the mobile terminal 1 is a master and the cash register 2 is a slave. .

図18は第5の実施形態における携帯端末1の処理動作の一例を示すフローチャート、図19は第5の実施形態におけるキャッシュレジスタ2の処理動作の一例を示すフローチャートである。以下では、第4の実施形態とは異なる部分を中心に説明する。   FIG. 18 is a flowchart showing an example of the processing operation of the mobile terminal 1 in the fifth embodiment, and FIG. 19 is a flowchart showing an example of the processing operation of the cash register 2 in the fifth embodiment. Below, it demonstrates centering on a different part from 4th Embodiment.

携帯端末1は、接続情報であるバーコード画像を作成した(ステップS255)後、このバーコード画像を携帯端末1の表示部22に提示する(ステップS256)。端末所持者は、携帯端末1の表示部22に表示されたバーコード画像を確認すると、携帯端末1の表示部22をキャッシュレジスタ2のバーコードリーダ38aの読み取り部分に提示する。   The portable terminal 1 creates a barcode image as connection information (step S255), and then presents the barcode image on the display unit 22 of the portable terminal 1 (step S256). When the terminal holder confirms the barcode image displayed on the display unit 22 of the portable terminal 1, the terminal holder presents the display unit 22 of the portable terminal 1 on the reading portion of the barcode reader 38 a of the cash register 2.

キャッシュレジスタ2は、バーコードリーダ38aにより、接続情報であるバーコード画像の読み取りを行う(ステップS282)。読み取りに成功した場合は、効果音を発生したり、画面に読み取り成功のメッセージを表示して、端末所持者に接続情報の取得成功を伝えてもよい。   The cash register 2 reads a barcode image as connection information by the barcode reader 38a (step S282). When the reading is successful, a sound effect may be generated or a reading success message may be displayed on the screen to notify the terminal owner of the successful acquisition of the connection information.

端末所持者は、接続情報の取得成功を確認すると、Bluetoothの接続開始指示を行い(ステップS257)、特定のIACを設定して限定インクワイアリ送信要求を行う(ステップS258)。新規の端末を発見するとインクワイアリを中断し、発見した端末に対して接続要求を行う。そして、接続要求結果のステータスを調べ、成功ならばL2CAPの接続を、失敗した場合は、概装置のアドレスを既知端末として記録し、再度インクワイアリを行い、他の装置の探索を行う(ステップS259〜S275)。   When the terminal holder confirms that the connection information has been successfully acquired, the terminal owner issues a Bluetooth connection start instruction (step S257), sets a specific IAC, and makes a limited inquiry transmission request (step S258). When a new terminal is found, the inquiry is interrupted and a connection request is made to the found terminal. Then, the status of the connection request result is checked. If the connection is successful, the connection of L2CAP is recorded. If the connection fails, the address of the general device is recorded as a known terminal, the inquiry is performed again, and another device is searched (steps S259 to S259). S275).

キャッシュレジスタ2は、バーコードリーダ38aによる接続用データの取得に成功すると(ステップS284)、インクワイアリスキャンとページスキャンを有効とし(ステップS285)、取得した13桁の数字から、相手Bluetoothデバイスの32Bitに相当する情報を取得し、4バイトの16進表記に変換を行う(ステップS287)。   When the cash register 2 succeeds in obtaining the connection data by the barcode reader 38a (step S284), the cash register 2 validates the inquiry scan and the page scan (step S285), and from the obtained 13-digit number, Information corresponding to 32 bits is acquired and converted into 4-byte hexadecimal notation (step S287).

Bluetoothのリンクレベルの接続要求イベントを受信した場合は、接続要求を行った装置のBluetoothアドレスを取得し、下位4バイトの比較を行う(ステップS288)。このときアドレスが一致したならば、接続許可を行う(ステップS289)。一致しない場合は、接続拒否を行う(ステップS290)。   If a Bluetooth link level connection request event is received, the Bluetooth address of the device that has made the connection request is acquired, and the lower 4 bytes are compared (step S288). If the addresses match at this time, the connection is permitted (step S289). If they do not match, connection refusal is performed (step S290).

リンクの接続に成功すると、インクワイアリスキャンとページスキャンを無効にする(ステップS291〜S304)。   If the link connection is successful, the inquiry scan and the page scan are invalidated (steps S291 to S304).

また、認証を行う場合は、第4の実施形態と同様の処理を行う。図19のフローチャートでは、Bluetoothアドレスの下位4バイトを用いて接続要求を行う装置を識別しているが、ユニークIDである携帯端末のBluetoothアドレスの下位3バイトのみで携帯端末1の判定を行ってもよい。この場合、同一IDを有する携帯端末1が同一場所で同一のタイミングで接続要求を行う確率は1680万分の1以下なので、その確率はほとんど無視することができる。   When performing authentication, the same processing as in the fourth embodiment is performed. In the flowchart of FIG. 19, a device that makes a connection request is identified using the lower 4 bytes of the Bluetooth address, but the mobile terminal 1 is determined using only the lower 3 bytes of the Bluetooth address of the mobile terminal that is the unique ID. Also good. In this case, since the probability that the portable terminal 1 having the same ID makes a connection request at the same timing at the same timing is 16.8 million or less, the probability can be almost ignored.

このように、第5の実施形態では、携帯端末1が不適切な装置を所望の装置よりも最初に発見すると、再接続に数百ミリの時間を要するが、端末識別情報の桁数を減らし、その分、認証用の情報の伝達に用いることができるため、第4の実施形態と比較して接続時間の面では劣るが、セキュリティの強度の面で勝っている。   As described above, in the fifth embodiment, when the mobile terminal 1 finds an inappropriate device first than the desired device, reconnection takes several hundred millimeters, but the number of digits of the terminal identification information is reduced. Therefore, since it can be used for transmitting authentication information, it is inferior in terms of connection time as compared to the fourth embodiment, but it is superior in terms of security strength.

なお、上述した各実施形態では、キャッシュレジスタ2が携帯端末1にどのようなサービスを提供するかは、特に限定されない。すなわち、携帯端末1と通信を行う機器はキャッシュレジスタ2に限定されない。   In each embodiment described above, what service the cash register 2 provides to the mobile terminal 1 is not particularly limited. That is, the device that communicates with the mobile terminal 1 is not limited to the cash register 2.

上述した各実施形態では、携帯端末1と通信を行う情報交換装置の一例としてキャッシュレジスタ2を挙げて説明したが、本発明は、携帯端末1と通信可能で接続情報を送受する各種の装置、例えば、携帯端末1と通信を行って改札処理を行う改札機、自動販売機、駐車場や施設のゲート等にも適用可能である。   In each of the above-described embodiments, the cash register 2 has been described as an example of an information exchange device that communicates with the mobile terminal 1. However, the present invention is a variety of devices that can communicate with the mobile terminal 1 and transmit and receive connection information. For example, the present invention can be applied to a ticket gate, a vending machine, a parking lot, a facility gate, and the like that communicate with the mobile terminal 1 to perform ticket gate processing.

なお、本発明は、上記第1〜第5の実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。さらに、上記第1〜第5の実施形態には種々の段階の発明は含まれており、開示される複数の構成用件における適宜な組み合わせにより、種々の発明が抽出され得る。例えば、実施形態に示される全構成要件から幾つかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題(の少なくとも1つ)が解決でき、発明の効果の欄で述べられている効果(のなくとも1つ)が得られる場合には、この構成要件が削除された構成が発明として抽出され得る。   In addition, this invention is not limited to the said 1st-5th embodiment, In the implementation stage, it can change variously in the range which does not deviate from the summary. Further, the first to fifth embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed configuration requirements. For example, even if some constituent elements are deleted from all the constituent elements shown in the embodiment, the problem (at least one of them) described in the column of problems to be solved by the invention can be solved, and the column of the effect of the invention If at least one of the effects described in (1) is obtained, a configuration in which this configuration requirement is deleted can be extracted as an invention.

(その他の実施形態)
最近、携帯端末1にCCDカメラ等の撮像装置を組み込んだものが普及しており、この種の携帯端末1を用いれば、キャッシュレジスタ2の表示部37に表示された情報を画像として携帯端末1に取り込むことも容易に行える。
(Other embodiments)
Recently, a portable terminal 1 incorporating an imaging device such as a CCD camera has become widespread. If this type of portable terminal 1 is used, the information displayed on the display unit 37 of the cash register 2 is used as an image for the portable terminal 1. Can also be easily imported.

そこで、上述した第4及び第5の実施形態とは逆に、キャッシュレジスタ2が、キャッシュレジスタ自身のBluetoothアドレスとPINコードとに基づいて二次元画像を生成して、キャッシュレジスタ2の表示部37に表示させ、この二次元画像を携帯端末1の撮像装置で撮像してキャッシュレジスタ2の接続情報を取得し、携帯端末1側あるいはキャッシュレジスタ2側から接続要求を行ってもよい。   Therefore, contrary to the fourth and fifth embodiments described above, the cash register 2 generates a two-dimensional image based on the Bluetooth address and PIN code of the cash register itself, and the display unit 37 of the cash register 2. The two-dimensional image may be captured by the imaging device of the portable terminal 1 to obtain the connection information of the cash register 2, and a connection request may be made from the portable terminal 1 side or the cash register 2 side.

この場合も、上述した第4及び第5の実施形態と同様の作用効果が得られる。   Also in this case, the same effects as those of the fourth and fifth embodiments described above can be obtained.

本発明に係る通信システムの第1の実施形態の概略構成を示すブロック図。1 is a block diagram showing a schematic configuration of a first embodiment of a communication system according to the present invention. 本実施形態における携帯端末1の内部構成を示すブロック図。FIG. 2 is a block diagram showing an internal configuration of the mobile terminal 1 in the present embodiment. 本実施形態におけるキャッシュレジスタ2の模式図。The schematic diagram of the cash register 2 in this embodiment. 本実施形態におけるキャッシュレジスタ2の内部構成を示すブロック図。The block diagram which shows the internal structure of the cash register 2 in this embodiment. Bluetooth端末の識別子を説明する図。The figure explaining the identifier of a Bluetooth terminal. 第1の実施形態における携帯端末の処理動作の一例を示すフローチャート。The flowchart which shows an example of the processing operation of the portable terminal in 1st Embodiment. 図6のステップS19及びS20の処理の詳細フローチャート。FIG. 7 is a detailed flowchart of processing in steps S19 and S20 in FIG. 第1の実施形態におけるキャッシュレジスタの処理動作の一例を示すフローチャート。5 is a flowchart illustrating an example of a processing operation of a cash register according to the first embodiment. 第2実施形態における携帯端末の処理動作の一例を示すフローチャート。The flowchart which shows an example of the processing operation of the portable terminal in 2nd Embodiment. 第2の実施形態におけるキャッシュレジスタの処理動作の一例を示すフローチャート。10 is a flowchart illustrating an example of a processing operation of a cash register according to the second embodiment. 第3の実施形態における携帯端末の処理動作の一例を示すフローチャート。The flowchart which shows an example of the processing operation of the portable terminal in 3rd Embodiment. 第3の実施形態におけるキャッシュレジスタの処理動作の一例を示すフローチャート。10 is a flowchart illustrating an example of a processing operation of a cash register according to the third embodiment. 第4の実施形態におけるキャッシュレジスタ2の模式図。The schematic diagram of the cash register 2 in 4th Embodiment. 図12のキャッシュレジスタ2の内部構成を示すブロック図。The block diagram which shows the internal structure of the cash register 2 of FIG. JAN13のバーコードの内容を説明する図。The figure explaining the contents of the barcode of JAN13. 第4の実施形態における携帯端末1の処理動作の一例を示すフローチャート。The flowchart which shows an example of the processing operation of the portable terminal 1 in 4th Embodiment. 第4の実施形態におけるキャッシュレジスタ2の処理動作の一例を示すフローチャート。14 is a flowchart illustrating an example of processing operation of the cash register 2 according to the fourth embodiment. 第5の実施形態における携帯端末1の処理動作の一例を示すフローチャート。The flowchart which shows an example of the processing operation of the portable terminal 1 in 5th Embodiment. 第5の実施形態におけるキャッシュレジスタ2の処理動作の一例を示すフローチャート。20 is a flowchart illustrating an example of processing operation of the cash register 2 according to the fifth embodiment.

符号の説明Explanation of symbols

1 携帯端末
2 キャッシュレジスタ
3 POSサーバ
4 センター
11 CPU
12 ROM
13 メモリ
14 EEPROM
15 マイク
16 A/D
17 スピーカ
18 D/A
19 偏心モータ
20 基地局
21 通信部
22 表示部
23 キー入力部
24 選択指示部
25 BT送受信部
31 CPU
32 メモリ
33 ROM
34 キー入力部
35 RS-232Cコントローラ
36 ドローア
37 レジ制御部
38 バーコードリーダ
39 BT送受信部
1 Mobile terminal 2 Cash register 3 POS server 4 Center 11 CPU
12 ROM
13 Memory 14 EEPROM
15 Microphone 16 A / D
17 Speaker 18 D / A
DESCRIPTION OF SYMBOLS 19 Eccentric motor 20 Base station 21 Communication part 22 Display part 23 Key input part 24 Selection instruction | indication part 25 BT transmission / reception part 31 CPU
32 memory 33 ROM
34 Key input unit 35 RS-232C controller 36 Drawer 37 Cash register control unit 38 Bar code reader 39 BT transmission / reception unit

Claims (4)

互いに通信を行う通信装置および携帯端末を備え、
前記通信装置および前記携帯端末の間で通信リンクを設定する通信システムにおいて、
前記通信装置は、
表示部と、
自装置が所持する通信用識別子を取得する第1の識別子取得部と、
前記通信用識別子を前記表示部に表示するための表示用パターンに変換する変換部と、
前記表示部に前記表示用パターンを表示させる表示制御部と、を有し、
前記携帯端末は、
前記表示部に表示された前記表示用パターンを撮像するための撮像部と、
前記撮像部で撮像された前記表示用パターンから前記通信用識別子を復元する復元部と、
前記復元部で復元された前記通信用識別子を用いて前記通信装置に対して接続要求を行う接続要求部と、を有することを特徴とする通信システム。
A communication device and a mobile terminal that communicate with each other,
In a communication system for setting a communication link between the communication device and the mobile terminal,
The communication device
A display unit;
A first identifier acquisition unit for acquiring a communication identifier possessed by the device;
A conversion unit that converts the communication identifier into a display pattern for displaying on the display unit;
A display control unit that displays the display pattern on the display unit,
The portable terminal is
An imaging unit for imaging the display pattern displayed on the display unit;
A restoring unit for restoring the communication identifier from the display pattern imaged by the imaging unit;
And a connection request unit that makes a connection request to the communication device using the communication identifier restored by the restoration unit.
前記変換部は、前記通信用識別子のうち、少なくとも前記通信装置を特定するための一部のビットを前記表示用パターンに変換し、
前記復元部は、前記撮像部で撮像された前記表示用パターンから前記一部のビットを復元し、
前記接続要求部は、前記復元された前記一部のビットを用いて前記通信装置に対して接続要求を行うことを特徴とする請求項1に記載の通信システム。
The conversion unit converts at least a part of the bits for specifying the communication device to the display pattern among the communication identifiers,
The restoration unit restores the part of the bits from the display pattern imaged by the imaging unit,
2. The communication system according to claim 1, wherein the connection request unit makes a connection request to the communication device using the restored part of the bits.
前記表示用パターンは、前記通信装置と前記携帯端末との間の通信で用いる認証データを含み、
前記通信装置および前記携帯端末はそれぞれ、前記認証データを用いて互いに認証処理を行うための認証部をさらに有することを特徴とする請求項1に記載の通信システム。
The display pattern includes authentication data used in communication between the communication device and the mobile terminal,
The communication system according to claim 1, wherein each of the communication device and the mobile terminal further includes an authentication unit for performing authentication processing with each other using the authentication data.
前記通信装置および携帯端末はそれぞれ、前記認証部が認証に失敗した場合に、不正なアクセスが行われたことを警告する警告部をさらに有することを特徴とする請求項3に記載の通信システム。   The communication system according to claim 3, wherein each of the communication device and the mobile terminal further includes a warning unit that warns that unauthorized access has been performed when the authentication unit fails in authentication.
JP2005326479A 2002-03-04 2005-11-10 Communication system Pending JP2006121726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005326479A JP2006121726A (en) 2002-03-04 2005-11-10 Communication system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002057778 2002-03-04
JP2005326479A JP2006121726A (en) 2002-03-04 2005-11-10 Communication system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002279603A Division JP3761505B2 (en) 2002-03-04 2002-09-25 COMMUNICATION SYSTEM, RADIO COMMUNICATION TERMINAL, AND RADIO COMMUNICATION DEVICE

Publications (1)

Publication Number Publication Date
JP2006121726A true JP2006121726A (en) 2006-05-11

Family

ID=36539101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005326479A Pending JP2006121726A (en) 2002-03-04 2005-11-10 Communication system

Country Status (1)

Country Link
JP (1) JP2006121726A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011120119A (en) * 2009-12-07 2011-06-16 Hitachi Ltd System, system construction method, management terminal, and program
US8700872B2 (en) 2007-06-28 2014-04-15 Sony Corporation Information processing system, reader/writer, information processing apparatus, access control management method and program
JP2014127058A (en) * 2012-12-27 2014-07-07 Fujitsu Ltd Relay device, relay method and program
US8842314B2 (en) 2008-06-06 2014-09-23 Konica Minolta Business Technologies, Inc Image processing apparatus capable of wirelessly exchanging data, image processing method capable of wirelessly exchanging data, and image processing program capable of wirelessly exchanging data
US10372956B2 (en) 2009-10-14 2019-08-06 Honeywell International Inc. Automatic information distribution system between indicia reader system and mobile device
WO2022172803A1 (en) * 2021-02-12 2022-08-18 オムロンヘルスケア株式会社 Wireless communication apparatus, wireless communication method, and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700872B2 (en) 2007-06-28 2014-04-15 Sony Corporation Information processing system, reader/writer, information processing apparatus, access control management method and program
US8842314B2 (en) 2008-06-06 2014-09-23 Konica Minolta Business Technologies, Inc Image processing apparatus capable of wirelessly exchanging data, image processing method capable of wirelessly exchanging data, and image processing program capable of wirelessly exchanging data
US10372956B2 (en) 2009-10-14 2019-08-06 Honeywell International Inc. Automatic information distribution system between indicia reader system and mobile device
JP2011120119A (en) * 2009-12-07 2011-06-16 Hitachi Ltd System, system construction method, management terminal, and program
JP2014127058A (en) * 2012-12-27 2014-07-07 Fujitsu Ltd Relay device, relay method and program
WO2022172803A1 (en) * 2021-02-12 2022-08-18 オムロンヘルスケア株式会社 Wireless communication apparatus, wireless communication method, and program

Similar Documents

Publication Publication Date Title
JP3761505B2 (en) COMMUNICATION SYSTEM, RADIO COMMUNICATION TERMINAL, AND RADIO COMMUNICATION DEVICE
US9642174B2 (en) Secure pairing of networked devices
EP1418719B1 (en) Wireless communication device, portable terminal, communication control program and communication system
CN102595643B (en) Connect for wireless device and the system and method for pairing
JP3756741B2 (en) Information exchange device and cash register device
US8428261B2 (en) System and method for establishing authenticated wireless connection between mobile unit and host
JP3875196B2 (en) Service providing device, service receiving device, service providing program, service receiving program, proximity wireless communication device, service providing method, and service receiving method
KR100628490B1 (en) Wireless communication apparatus, wireless communication method, and computer-readable medium recording a wireless communication program
EP1976325B1 (en) Wireless network system and wireless device included in the system
JP3871113B2 (en) Communication terminal device, communication establishment method, and program related to the method
CN101534505A (en) Communication device and communication method
KR20140127895A (en) Sensor based configuration and control of network devices
JP2006121726A (en) Communication system
JP4525438B2 (en) Communication terminal and wireless tag
US9860930B2 (en) Method to set up a wireless communication connection and electronic device utilizing the same
KR20200002742A (en) Method and apparatus for registering wireless device in wireless communication system
JP2004274520A (en) Terminal to terminal communication system and program
JP2004166090A (en) Short-range communication equipment, portable terminal, control program of short-range communication equipment, control program of portable terminal and communication system
KR20090063459A (en) Authentication method using short-range communication and terminal and system using the same
JP3886955B2 (en) Wireless communication device, portable terminal, program for controlling wireless communication device
KR100467478B1 (en) Method for establishing a fast connection between two bluetooth devices
CN110063052A (en) Confirm the method and system of BLUETOOTH* pairing
CN108805553A (en) A kind of method for processing payment information and device
JP6702407B2 (en) Communication terminal device, communication system, program, and communication terminal device control method
JP2002247052A (en) Communication network system, constructing method of communication network and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090306

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090630