JP6459251B2 - COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD - Google Patents

COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD Download PDF

Info

Publication number
JP6459251B2
JP6459251B2 JP2014137690A JP2014137690A JP6459251B2 JP 6459251 B2 JP6459251 B2 JP 6459251B2 JP 2014137690 A JP2014137690 A JP 2014137690A JP 2014137690 A JP2014137690 A JP 2014137690A JP 6459251 B2 JP6459251 B2 JP 6459251B2
Authority
JP
Japan
Prior art keywords
wireless communication
printing
unit
printing apparatus
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.)
Active
Application number
JP2014137690A
Other languages
Japanese (ja)
Other versions
JP2016015081A (en
JP2016015081A5 (en
Inventor
敏浩 萩原
敏浩 萩原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2014137690A priority Critical patent/JP6459251B2/en
Publication of JP2016015081A publication Critical patent/JP2016015081A/en
Publication of JP2016015081A5 publication Critical patent/JP2016015081A5/ja
Application granted granted Critical
Publication of JP6459251B2 publication Critical patent/JP6459251B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Computer And Data Communications (AREA)
  • Telephone Function (AREA)

Description

本発明は、通信端末装置、通信システム、プログラム、及び、通信端末装置の制御方法に関する。   The present invention relates to a communication terminal device, a communication system, a program, and a communication terminal device control method.

近年、装置間の通信を実現する通信技術は大幅に進歩し、多様な装置が通信機能を搭載するようになっている(例えば、特許文献1参照)。特許文献1に記載されたような、非接触タグを利用したNFC(近距離無線通信)は、複雑な設定をせず通信が可能である。一方、高度な通信機能を有する従来の通信方式においては、通信相手やアドレス等の通信に係る設定を行う必要があった。例えば、特許文献2には、通信相手のデバイス名や装置ID番号、或いは、無線アドレスや通信相手との間で設定したパスワードなどの設定が困難な作業であることに鑑み、設定を支援する手法が開示されている。特許文献2記載の手法によれば、カメラにより撮影された画像から、通信パラメーターを抽出し、通信インターフェースに設定する。   In recent years, communication technology for realizing communication between devices has greatly advanced, and various devices are equipped with a communication function (see, for example, Patent Document 1). NFC (Near Field Communication) using a non-contact tag as described in Patent Document 1 can communicate without complicated settings. On the other hand, in a conventional communication system having an advanced communication function, it is necessary to make settings related to communication such as a communication partner and an address. For example, Patent Document 2 discloses a method for assisting setting in view of the fact that it is difficult to set a device name or device ID number of a communication partner, or a wireless address or a password set with the communication partner. Is disclosed. According to the method described in Patent Document 2, communication parameters are extracted from an image captured by a camera and set in a communication interface.

特表2012−523727号公報Special table 2012-523727 gazette 特開2004−86492号公報JP 2004-86492 A

このように、従来、情報を読み取り、読み取った情報に基づく処理を実行する技術はあったが、適用範囲が限られていた。このため、例えば、制御対象装置の通信方式を設定する場合、接続しようとする制御対象装置に適した通信方式を多数の通信方式の中から選択して、選択した通信方式にあった接続設定を行わなければならなかった。従って、制御対象装置との接続作業の煩雑さの軽減が十分になされていなかった。
本発明は上記事情に鑑みてなされたものであり、多数の通信方式の中から、容易に、接続する制御対象装置に適した通信方式を選択し、その接続設定を行うことができる通信端末装置、通信システム、プログラム、及び、通信端末装置の制御方法を提供することを目的とする。
As described above, there has conventionally been a technique for reading information and executing processing based on the read information, but the scope of application has been limited. For this reason, for example, when setting the communication method of the control target device, the communication method suitable for the control target device to be connected is selected from a number of communication methods, and the connection setting suitable for the selected communication method is set. Had to be done. Therefore, the complexity of the connection work with the control target device has not been sufficiently reduced.
The present invention has been made in view of the above circumstances, and can easily select a communication method suitable for a control target device to be connected from a large number of communication methods and perform connection setting thereof. An object of the present invention is to provide a communication system, a program, and a control method for a communication terminal device.

上記目的を達成するために、本発明の通信端末装置は、通信方式の異なる複数の通信部と、制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る読取部と、前記読取部が読み取った情報に基づいていずれかの前記通信部を選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立する制御部と、を備えたことを特徴とする。
本発明によれば、通信方式の中から、容易に、接続する制御対象機器に適した通信方式を選択し、その接続設定を行うことができる。
In order to achieve the above object, a communication terminal device of the present invention reads a plurality of communication units having different communication methods, information indicating a communication method of a control target device, and identification information for specifying the control target device. And a control unit that selects any one of the communication units based on information read by the reading unit and establishes a connection with the control target device using the selected communication unit. It is characterized by.
ADVANTAGE OF THE INVENTION According to this invention, the communication system suitable for the control object apparatus to connect can be selected easily from a communication system, and the connection setting can be performed.

また、本発明は、上記通信端末装置において、前記制御部は、前記読取部により、前記識別情報としてMACアドレスが読み取られた場合、無線LANに対応した前記通信部を選択して前記制御対象機器との接続を確立することを特徴とする。
本発明によれば、通信方式として無線LANを備える制御対象機器を、通信端末装置に接続することが可能となる。
In the communication terminal device according to the present invention, when the MAC address is read as the identification information by the reading unit, the control unit selects the communication unit corresponding to a wireless LAN and controls the control target device. It is characterized by establishing a connection with.
ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to connect the control object apparatus provided with wireless LAN as a communication system to a communication terminal device.

また、本発明は、上記通信端末装置において、前記制御部は、前記読取部により読み取られたMACアドレスに基づき、前記制御対象機器を特定して、前記制御対象機器と無線LANで通信を確立することを特徴とする。
本発明によれば、読取部により読み取ったMACアドレスに基づいて制御対象機器を特定して、特定した制御対象機器との無線LANによる通信を確立することができる。
Further, according to the present invention, in the communication terminal device, the control unit identifies the control target device based on the MAC address read by the reading unit, and establishes communication with the control target device through a wireless LAN. It is characterized by that.
ADVANTAGE OF THE INVENTION According to this invention, a control object apparatus can be specified based on the MAC address read by the reading part, and communication by the wireless LAN with the specified control object apparatus can be established.

また、本発明は、上記通信端末装置において、前記制御部は、前記読取部により、前記識別情報としてBluetoothアドレスが読み取られた場合、Bluetoothに対応した前記通信部を選択して前記制御対象機器との接続を確立することを特徴とする。
本発明によれば、制御対象機器とのBluetooth通信が可能となる。
Further, in the communication terminal device according to the present invention, when the Bluetooth address is read as the identification information by the reading unit, the control unit selects the communication unit corresponding to the Bluetooth and selects the communication target device. It is characterized by establishing a connection.
According to the present invention, Bluetooth communication with a control target device becomes possible.

また、本発明は、上記通信端末装置において、前記制御部は、前記Bluetoothアドレスを用いて前記制御対象機器とのペアリングにより接続を確立し、前記制御対象機器にBluetooth通信によりデータを送信することを特徴とする。
本発明によれば、制御対象機器にBluetooth通信によりデータを送信することができる。
In the communication terminal apparatus according to the present invention, the control unit establishes a connection by pairing with the control target device using the Bluetooth address, and transmits data to the control target device by Bluetooth communication. It is characterized by.
According to the present invention, data can be transmitted to a control target device by Bluetooth communication.

また、本発明は、上記通信端末装置において、前記読取部は、前記制御対象機器の筐体に付着されたNFCタグとの近距離無線通信により前記通信方式を示す情報と前記識別情報とを読み取り、或いは、前記制御対象機器の筐体に付着された2次元コードに基づき前記通信方式を示す情報と前記識別情報とを読み取ることを特徴とする。
本発明によれば、通信方式を示す情報と識別情報とを簡単な操作で、制御対象機器から読み取ることができる。
In the communication terminal device according to the present invention, the reading unit reads information indicating the communication method and the identification information by short-range wireless communication with an NFC tag attached to a casing of the control target device. Alternatively, the information indicating the communication method and the identification information are read based on a two-dimensional code attached to a casing of the device to be controlled.
According to the present invention, information indicating a communication method and identification information can be read from a control target device with a simple operation.

また、本発明は、上記通信端末装置において、前記制御対象機器は、印刷装置であることを特徴とする。
本発明によれば、通信端末装置から印刷装置に印刷データを送信して、印刷装置に印刷させることができる。
In the communication terminal apparatus according to the present invention, the control target device is a printing apparatus.
According to the present invention, print data can be transmitted from a communication terminal device to a printing device, and can be printed on the printing device.

また、上記目的を達成するために、本発明は、通信ネットワークに接続された複数の制御対象機器と、前記複数の制御対象機器から選択された前記制御対象機器に処理を実行させる通信端末装置とを備える通信システムであって、前記通信端末装置は、通信方式の異なる複数の通信部と、前記選択された前記制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る読取部と、前記読取部が読み取った情報に基づいていずれかの前記通信部を選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立する制御部と、を備えることを特徴とする。
本発明によれば、多数の通信方式の中から、容易に、接続する制御対象装置に適した通信方式を選択し、その接続設定を行うことができる。
In order to achieve the above object, the present invention includes a plurality of control target devices connected to a communication network, and a communication terminal device that causes the control target device selected from the plurality of control target devices to execute processing. The communication terminal device includes a plurality of communication units having different communication methods, information indicating a communication method of the selected control target device, and identification information for specifying the control target device; And a control unit that selects any one of the communication units based on information read by the reading unit, and establishes a connection with the control target device using the selected communication unit. It is characterized by providing.
According to the present invention, it is possible to easily select a communication method suitable for a control target apparatus to be connected from among a large number of communication methods and perform connection setting.

また、上記目的を達成するために、本発明は、通信端末装置のコンピュータに、制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る手順と、読み取った情報に基づいて通信方式の異なる複数の通信部のいずれかを選択して、選択した前記通信部を使用して前記制御対象機器との接続を確立する手順と、を実行させる。
本発明によれば、多数の通信方式の中から、容易に、接続する制御対象装置に適した通信方式を選択し、その接続設定を行うことができる。
In order to achieve the above object, the present invention provides a computer of a communication terminal device for reading information indicating a communication method of a control target device and identification information for identifying the control target device, and the read information. And selecting one of a plurality of communication units having different communication schemes based on the information, and executing a procedure for establishing a connection with the control target device using the selected communication unit.
According to the present invention, it is possible to easily select a communication method suitable for a control target apparatus to be connected from among a large number of communication methods and perform connection setting.

また、上記目的を達成するために、本発明は、制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取るステップと、読み取った情報に基づいて通信方式の異なる複数の通信部のいずれかを選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立するステップと、を有することを特徴とする。
本発明によれば、多数の通信方式の中から、容易に、接続する制御対象装置に適した通信方式を選択し、その接続設定を行うことができる。
In order to achieve the above object, the present invention differs from the step of reading information indicating the communication method of the control target device and the identification information for specifying the control target device, and the communication method is different based on the read information. Selecting any one of a plurality of communication units, and establishing a connection with the control target device using the selected communication unit.
According to the present invention, it is possible to easily select a communication method suitable for a control target apparatus to be connected from among a large number of communication methods and perform connection setting.

POSシステムのシステム構成図である。It is a system configuration figure of a POS system. 第1印刷装置の構成図である。It is a block diagram of a 1st printing apparatus. 第2印刷装置の構成図である。It is a block diagram of a 2nd printing apparatus. 通信携帯装置の構成図である。It is a block diagram of a communication portable apparatus. 印刷装置に貼付されたQRコードを示す図である。It is a figure which shows QR code affixed on the printing apparatus. アドレス管理テーブルを示す図である。It is a figure which shows an address management table. 通信携帯装置の制御部の機能ブロック図である。It is a functional block diagram of the control part of a communication portable apparatus. アドレス管理テーブルの作成手順を示すシーケンス図である。It is a sequence diagram which shows the preparation procedure of an address management table. アドレス管理テーブルの作成手順を示すフローチャートである。It is a flowchart which shows the preparation procedure of an address management table. 送信先設定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a transmission destination setting process. 通信携帯装置のタッチパネルに表示される表示例を示す図である。It is a figure which shows the example of a display displayed on the touchscreen of a communication portable apparatus. レシートを印刷する印刷処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the printing process which prints a receipt. 直接接続モードによる接続手順を示すフローチャートである。It is a flowchart which shows the connection procedure by a direct connection mode.

以下、添付の図面を参照しながら本発明の実施形態について説明する。図1に、POS(Point Of Sale)システム1のシステム構成図を示す。POSシステム1は、通信端末装置3をPOS端末として使用する、いわゆるモバイルPOSシステムである。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 shows a system configuration diagram of a POS (Point Of Sale) system 1. The POS system 1 is a so-called mobile POS system that uses the communication terminal device 3 as a POS terminal.

POSシステム1は、制御対象機器としての複数の印刷装置2と、印刷装置2を制御する複数の通信端末装置3とを備える。また、POSシステム1は、無線LAN(Local Area Network)(例えば、Wi−Fi(登録商標)等)による通信を行う複数のアクセスポイント(無線LANアクセスポイント)4を備える。複数のアクセスポイント4間は、店舗内LAN6により接続される。
なお、本実施形態では、印刷装置2には、第1印刷装置2Aと第2印刷装置2Bとの2機種がある。第1印刷装置2Aは、無線LANにより通信を行う通信部を備え、アクセスポイント4を介して通信端末装置3との通信を行う装置である。第2印刷装置2Bは、Bluetooth(登録商標)等の近距離無線通信により通信を行う通信部を備え、近距離無線通信により通信端末装置3との通信を行う。以下の説明では、第1印刷装置2Aと第2印刷装置2Bとを総称して表す場合には、印刷装置2と表記する。
The POS system 1 includes a plurality of printing apparatuses 2 as control target devices and a plurality of communication terminal apparatuses 3 that control the printing apparatus 2. The POS system 1 also includes a plurality of access points (wireless LAN access points) 4 that perform communication by a wireless LAN (Local Area Network) (for example, Wi-Fi (registered trademark)). The plurality of access points 4 are connected by an in-store LAN 6.
In the present embodiment, there are two types of printing apparatuses 2, a first printing apparatus 2A and a second printing apparatus 2B. The first printing device 2 </ b> A is a device that includes a communication unit that performs communication via a wireless LAN and performs communication with the communication terminal device 3 via the access point 4. The second printing apparatus 2B includes a communication unit that performs communication by short-range wireless communication such as Bluetooth (registered trademark), and performs communication with the communication terminal device 3 by short-range wireless communication. In the following description, when the first printing device 2A and the second printing device 2B are collectively referred to, they are referred to as the printing device 2.

図2は、第1印刷装置2Aの構成図であり、図3は、第2印刷装置2Bの構成図である。図2及び図3を参照して印刷装置2について説明する。
まず、第1印刷装置2Aの構成について図2を参照しながら説明する。第1印刷装置2Aは、例えば、携帯可能なモバイルプリンターである。第1印刷装置2Aは、装置ケース20(図1参照)に貼り付けられたNFC(Near Field Communication)タグ21Aと、無線LANによりアクセスポイント4との通信を行う第1通信部22Aとを備える。また、第1印刷装置2Aは、印刷を行う印刷部23と、第1通信部22A及び印刷部23を制御する印刷制御部24Aとを備える。
FIG. 2 is a configuration diagram of the first printing apparatus 2A, and FIG. 3 is a configuration diagram of the second printing apparatus 2B. The printing apparatus 2 will be described with reference to FIGS.
First, the configuration of the first printing apparatus 2A will be described with reference to FIG. The first printing apparatus 2A is, for example, a portable mobile printer. The first printing apparatus 2A includes an NFC (Near Field Communication) tag 21A attached to the apparatus case 20 (see FIG. 1), and a first communication unit 22A that performs communication with the access point 4 via a wireless LAN. The first printing apparatus 2 </ b> A includes a printing unit 23 that performs printing, and a printing control unit 24 </ b> A that controls the first communication unit 22 </ b> A and the printing unit 23.

NFCタグ21Aは、不図示のアンテナやICチップ等を備え、通信可能な近距離に存在する通信端末装置3のNFC読取部(リーダー)31と無線通信を行う。NFCとは、無線通信の国際規格であって、十数センチの近距離での小電力無線通信技術である。NFCタグ21Aには、タグ情報として、インターフェース(以下、I/Fと略記する)情報と、機種名と、MACアドレスとが保存される。I/F情報とは、第1印刷装置2Aの備える通信I/F、すなわち通信方式を示す情報である。第1印刷装置2Aは、無線LANにより通信を行う通信方式であるので、I/F情報は、無線LANを示す情報である。機種名は、第1印刷装置2Aの機種名を示す情報である。MACアドレスは、第1印刷装置2Aを特定する識別情報であり、第1通信部22Aの備える無線通信デバイス(後述する)のMACアドレスである。NFCタグ21Aの記憶するタグ情報は、NFC等の近距離無線通信によって読み取り可能である。   The NFC tag 21A includes an antenna (not shown), an IC chip, and the like, and performs wireless communication with the NFC reading unit (reader) 31 of the communication terminal device 3 that exists at a short distance where communication is possible. NFC is an international standard for wireless communication, and is a low-power wireless communication technology at a short distance of several tens of centimeters. The NFC tag 21A stores interface (hereinafter abbreviated as I / F) information, model name, and MAC address as tag information. The I / F information is communication I / F provided in the first printing apparatus 2A, that is, information indicating a communication method. Since the first printing apparatus 2A is a communication method for performing communication by wireless LAN, the I / F information is information indicating the wireless LAN. The model name is information indicating the model name of the first printing apparatus 2A. The MAC address is identification information that identifies the first printing apparatus 2A, and is a MAC address of a wireless communication device (described later) provided in the first communication unit 22A. Tag information stored in the NFC tag 21A can be read by near field communication such as NFC.

第1通信部22Aは、無線通信デバイスとして、例えば、NIC(Network Interface Card)等を備え、無線LAN(例えば、Wi−Fi)による無線通信を行って、アクセスポイント4に接続する。   The first communication unit 22A includes, for example, a NIC (Network Interface Card) as a wireless communication device, and performs wireless communication using a wireless LAN (for example, Wi-Fi) to connect to the access point 4.

印刷部23は、印刷ヘッド(例えば、サーマルヘッド)を備え、印刷制御部24Aの制御により、レシート用紙等の印刷媒体に印刷データを印刷する。   The printing unit 23 includes a print head (for example, a thermal head), and prints print data on a print medium such as a receipt paper under the control of the print control unit 24A.

印刷制御部24Aは、通信端末装置3から送信された印刷データを受信し、印刷部23を制御してレシート用紙に印刷データを印刷(発行)させる。
また、印刷制御部24Aは、メモリー25Aを備える。メモリー25Aには、第1印刷装置2AのIP(Internet protocol)アドレスや、第1通信部22Aの備える無線通信デバイスのMACアドレスが保存される。
The print control unit 24A receives the print data transmitted from the communication terminal device 3, and controls the printing unit 23 to print (issue) the print data on the receipt paper.
The print control unit 24A includes a memory 25A. The memory 25A stores the IP (Internet protocol) address of the first printing apparatus 2A and the MAC address of the wireless communication device provided in the first communication unit 22A.

次に、第2印刷装置2Bの構成について図3を参照しながら説明する。第2印刷装置2Bも、携帯可能なモバイルプリンターである。第2印刷装置2Bも、装置ケース20(図1参照)に貼り付けられたNFCタグ21Bを備える。また、第2印刷装置2Bは、近距離無線通信により通信端末装置3との通信を行う第2通信部22Bと、印刷部23と、印刷制御部24Bとを備える。   Next, the configuration of the second printing apparatus 2B will be described with reference to FIG. The second printing apparatus 2B is also a portable mobile printer. The second printing apparatus 2B also includes an NFC tag 21B attached to the apparatus case 20 (see FIG. 1). The second printing apparatus 2B includes a second communication unit 22B that communicates with the communication terminal device 3 by short-range wireless communication, a printing unit 23, and a printing control unit 24B.

NFCタグ21Bも、不図示のアンテナやICチップ等を備え、通信可能な近距離に存在する通信端末装置3のNFC読取部(リーダー)31との無線通信を行う。NFCタグ21Bには、タグ情報として、I/F情報と、機種名と、Bluetoothアドレスとが登録されている。I/F情報は、第2印刷装置2Bの備える通信I/F、すなわち、通信方式を示す情報である。第2印刷装置2Bは、通信方式としてBluetoothを備えているので、I/F情報は、Bluetoothを示す情報である。機種名は、第2印刷装置2Bの機種名を示す情報である。Bluetoothアドレスは、第2印刷装置2Bを特定する識別情報であり、近距離無線通信による通信を行う第2通信部22Bのアドレスである。NFCタグ21Bの記憶するタグ情報は、NFC等の近距離無線通信によって読み取り可能である。   The NFC tag 21B also includes an antenna, an IC chip, and the like (not shown), and performs wireless communication with the NFC reading unit (reader) 31 of the communication terminal device 3 that exists at a short distance where communication is possible. In the NFC tag 21B, I / F information, a model name, and a Bluetooth address are registered as tag information. The I / F information is information indicating a communication I / F included in the second printing apparatus 2B, that is, a communication method. Since the second printing apparatus 2B includes Bluetooth as a communication method, the I / F information is information indicating Bluetooth. The model name is information indicating the model name of the second printing apparatus 2B. The Bluetooth address is identification information that identifies the second printing apparatus 2B, and is an address of the second communication unit 22B that performs communication by short-range wireless communication. Tag information stored in the NFC tag 21B can be read by near field communication such as NFC.

第2通信部22Bは、Bluetoothに準拠した無線通信を行う通信部である。第2通信部22Bは、他のBluetooth対応デバイス(本実施形態では、通信端末装置3)と、Bluetoothアドレスを用いた通称ペアリングと呼ばれる接続相手の特定処理(認証)を行う。その後、第2通信部22Bは、他のBluetooth対応デバイスとのBluetooth通信を行う。   The second communication unit 22B is a communication unit that performs wireless communication conforming to Bluetooth. The second communication unit 22B performs connection partner identification processing (authentication) referred to as common pairing using a Bluetooth address with another Bluetooth compatible device (in this embodiment, the communication terminal device 3). Thereafter, the second communication unit 22B performs Bluetooth communication with other Bluetooth compatible devices.

印刷部23は、第1印刷装置2Aの印刷部23と同様に、印刷制御部24Bの制御により、レシート用紙等の印刷媒体に印刷データを印刷する。   Similar to the printing unit 23 of the first printing apparatus 2A, the printing unit 23 prints print data on a print medium such as a receipt sheet under the control of the print control unit 24B.

印刷制御部24Bは、通信端末装置3から送信された印刷データを受信し、印刷部23を制御してレシート用紙に印刷データを印刷(発行)させる。また、印刷制御部24Bは、メモリー25Bを備えている。メモリー25Bには、第2通信部22Bによる近距離無線通信の確立に必要なBluetoothアドレスが保存される。   The print control unit 24B receives the print data transmitted from the communication terminal device 3, and controls the printing unit 23 to print (issue) the print data on the receipt paper. The print control unit 24B includes a memory 25B. The memory 25B stores a Bluetooth address necessary for establishing short-range wireless communication by the second communication unit 22B.

次に、図4を参照しながら、通信端末装置3について説明する。図4に、通信端末装置3の構成の一例を示す。通信端末装置3は、例えば、タブレットPC(Personal Computer)により構成される。通信端末装置3は、NFC読取部31と、タッチパネル32と、撮像カメラ33と、通信方式の異なる第1通信部(第1の通信部)34及び第2通信部(第2の通信部)35と、これらを制御する制御部50とを備える。   Next, the communication terminal device 3 will be described with reference to FIG. FIG. 4 shows an example of the configuration of the communication terminal device 3. The communication terminal device 3 is composed of, for example, a tablet PC (Personal Computer). The communication terminal device 3 includes an NFC reading unit 31, a touch panel 32, an imaging camera 33, a first communication unit (first communication unit) 34 and a second communication unit (second communication unit) 35 having different communication methods. And a control unit 50 for controlling them.

NFC読取部31は、不図示のアンテナやICチップ等を備え、印刷装置2の筐体に貼付されたNFCタグ21A、21Bの情報を近距離無線通信により読み取るリーダーである。NFC読取部31により読み取られたタグ情報は、後述する制御部50の送信先設定部562(図7参照)に送られる。   The NFC reading unit 31 includes an antenna (not shown), an IC chip, and the like, and is a reader that reads information on the NFC tags 21A and 21B attached to the casing of the printing apparatus 2 by short-range wireless communication. The tag information read by the NFC reading unit 31 is sent to a transmission destination setting unit 562 (see FIG. 7) of the control unit 50 described later.

タッチパネル32は、図1に示すように、通信端末装置3の前面のほぼ全域に設けられ、制御部50の制御により各種情報を表示する。また、タッチパネル32は、接触操作を検出する静電容量式や感圧式のセンサー(不図示)を備え、このセンサーによってタッチパネル32に対するタッチ操作を検出して入力を受け付ける。   As shown in FIG. 1, the touch panel 32 is provided in almost the entire front surface of the communication terminal device 3 and displays various types of information under the control of the control unit 50. The touch panel 32 includes a capacitance type sensor or a pressure-sensitive sensor (not shown) that detects a touch operation. The touch operation is detected on the touch panel 32 by the sensor and receives an input.

撮像カメラ33は、CMOS(Complementary Metal Oxide Semiconductor)やCCD(Charge Coupled Devices)などのイメージセンサーを有するカメラで構成され、画像を撮像する。撮像カメラ33は、印刷装置2の装置ケース20に貼付されたQRコード(登録商標)27の画像を撮影する。印刷装置2には、図5に示すように、NFCタグ21A、21Bに代えて、MACアドレスを2次元コード化したQRコード27を貼付してもよい。   The imaging camera 33 is configured by a camera having an image sensor such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD), and captures an image. The imaging camera 33 captures an image of a QR code (registered trademark) 27 attached to the apparatus case 20 of the printing apparatus 2. As shown in FIG. 5, instead of the NFC tags 21A and 21B, the printing apparatus 2 may be attached with a QR code 27 in which the MAC address is two-dimensionally encoded.

第1通信部34は、後述する制御部50の制御により、アクセスポイント4と無線LAN(例えば、Wi−Fi)による無線通信を行う。第1通信部34は、アクセスポイント4を介して第1印刷装置2Aと無線LANによる通信を行う。   The first communication unit 34 performs wireless communication with the access point 4 through a wireless LAN (for example, Wi-Fi) under the control of the control unit 50 described later. The first communication unit 34 communicates with the first printing apparatus 2 </ b> A via the access point 4 via a wireless LAN.

第2通信部35は、Bluetoothに準拠した無線通信を行う通信部である。第2通信部35も、第2通信部22Bと同様に、他のBluetooth対応デバイス(本実施形態では、第2印刷装置2B)と、Bluetoothアドレスを用いたペアリングを行う。その後、第2通信部35は、他のBluetooth対応デバイスとBluetooth通信を行う。   The second communication unit 35 is a communication unit that performs wireless communication based on Bluetooth. Similarly to the second communication unit 22B, the second communication unit 35 performs pairing with another Bluetooth compatible device (in the present embodiment, the second printing apparatus 2B) using the Bluetooth address. Thereafter, the second communication unit 35 performs Bluetooth communication with other Bluetooth compatible devices.

制御部50は、CPU(Central Processing Unit)51、ROM(Read Only Memory)52、RAM(Random Access Memory)53、不揮発性メモリー54等をハードウェアとして備える。ROM52には、OS(Operating System:基本ソフト)521や、アプリケーションプログラム(後述するPOSアプリケーション522、印刷制御アプリケーション523)等の制御プログラムが保存される。なお、OS521は、iOS(登録商標)、Android(登録商標)、Windows(登録商標)RT、Windows(登録商標)8等の広く一般的に知られたOSを採用することができる。RAM53は、CPU51のワークメモリーとして使用され、CPU51が演算に使用するデータが保存される。CPU51がROM52に保存された制御プログラムを実行することにより実現される機能ブロックについては、図7を参照しながら説明する。   The control unit 50 includes a CPU (Central Processing Unit) 51, a ROM (Read Only Memory) 52, a RAM (Random Access Memory) 53, a nonvolatile memory 54, and the like as hardware. The ROM 52 stores control programs such as an OS (Operating System: basic software) 521 and application programs (a POS application 522 and a print control application 523 described later). The OS 521 may employ widely known OSs such as iOS (registered trademark), Android (registered trademark), Windows (registered trademark) RT, and Windows (registered trademark) 8. The RAM 53 is used as a work memory for the CPU 51 and stores data used by the CPU 51 for calculation. The functional blocks realized by the CPU 51 executing the control program stored in the ROM 52 will be described with reference to FIG.

通信端末装置3の不揮発性メモリー54には、アドレス管理テーブルが保存される。図6に、アドレス管理テーブルの一例を示す。アドレス管理テーブルには、MACアドレスと、IPアドレスとが対応付けて登録されている。MACアドレスは、アクセスポイント4に接続した各第1印刷装置2Aが備える第1通信部22Aのアドレスである。IPアドスは、MACアドレスに対応する第1印刷装置2Aのアドレスである。これらのアドレスの取得方法については後述する。また、不揮発性メモリー54には、第2通信部35による近距離無線通信の確立に必要なBluetoothアドレスが保存される。なお、不揮発性メモリー54は、通信端末装置3の電源がオフされた後もデータを記憶する記憶装置であり、例えば、フラッシュメモリー、EEPROM、SDカード、磁気記憶装置等を用いることができる。   An address management table is stored in the nonvolatile memory 54 of the communication terminal device 3. FIG. 6 shows an example of the address management table. In the address management table, a MAC address and an IP address are registered in association with each other. The MAC address is an address of the first communication unit 22A included in each first printing apparatus 2A connected to the access point 4. The IP address is an address of the first printing apparatus 2A corresponding to the MAC address. A method for acquiring these addresses will be described later. The nonvolatile memory 54 stores a Bluetooth address necessary for establishing the short-range wireless communication by the second communication unit 35. The nonvolatile memory 54 is a storage device that stores data even after the communication terminal device 3 is turned off. For example, a flash memory, an EEPROM, an SD card, a magnetic storage device, or the like can be used.

次に、図7を参照しながら制御部50の機能ブロックについて説明する。機能ブロックは、制御部50の備えるCPU51が、ROM52に記録されたプログラムを読み出して実行する等、ハードウェアとソフトウェアとの協働により実現される。制御部50は、機能ブロックとして、会計処理を行う会計処理部55と、印刷制御を行う印刷制御部56とを備える。会計処理部55は、CPU51がROM52に保存されたPOSアプリケーション522を読み出して実行することで実現され、通信端末装置3が会計処理装置として機能する。同様に、印刷制御部56は、CPU51が印刷制御アプリケーション523を実行することで、通信端末装置3が印刷制御装置として機能する。   Next, functional blocks of the control unit 50 will be described with reference to FIG. The functional block is realized by the cooperation of hardware and software, such as the CPU 51 provided in the control unit 50 reads and executes the program recorded in the ROM 52. The control unit 50 includes a transaction processing unit 55 that performs transaction processing and a print control unit 56 that performs print control as functional blocks. The accounting processor 55 is realized by the CPU 51 reading and executing the POS application 522 stored in the ROM 52, and the communication terminal device 3 functions as an accounting processor. Similarly, in the print control unit 56, the CPU 51 executes the print control application 523, so that the communication terminal device 3 functions as a print control device.

会計処理部55は、店員等のオペレーターがタッチパネル32により入力した商品情報に基づいて決済処理(会計処理)を実行する。そして、会計処理部55は、決済処理の処理結果である決済情報に基づいてレシート印刷用の印刷データを生成する。会計処理部55は、生成した印刷データを印刷データ送信部563に渡す。   The accounting processing unit 55 executes a settlement process (accounting process) based on the product information input by the operator such as a store clerk through the touch panel 32. Then, the accounting processing unit 55 generates print data for receipt printing based on the payment information that is the processing result of the payment processing. The accounting processing unit 55 passes the generated print data to the print data transmission unit 563.

印刷制御部56は、読取制御部561と、送信先設定部562と、印刷データ送信部563とを備える。   The print control unit 56 includes a reading control unit 561, a transmission destination setting unit 562, and a print data transmission unit 563.

読取制御部561は、NFC読取部31を制御して、印刷装置2のNFCタグ21に記録されたタグ情報を読み取る。通信端末装置3を所持するオペレーターは、まず、印刷データを印刷させたい印刷装置2のNFCタグ21A(21B)に、通信端末装置3を近づける。すなわち、通信端末装置3を、印刷装置2のNFCタグ21A(21B)にかざす操作が行われる。通信端末装置3のNFC読取部31と、NFCタグ21A(21B)との距離が近距離無線通信可能な距離に近づくことで、読取制御部561は、NFC読取部31を制御し、NFCタグ21A(21B)に記録されたタグ情報を読み取る。また、読取制御部561は、撮像カメラ33の撮影画像を入力する。読取制御部561は、撮像カメラ33により撮影されたQRコード27の画像を解析して復号化することで、タグ情報を読み取る。読取制御部561は、タグ情報を送信先設定部562に渡す。   The reading control unit 561 controls the NFC reading unit 31 to read tag information recorded on the NFC tag 21 of the printing apparatus 2. The operator who possesses the communication terminal apparatus 3 first brings the communication terminal apparatus 3 close to the NFC tag 21A (21B) of the printing apparatus 2 to which the print data is to be printed. That is, an operation of holding the communication terminal device 3 over the NFC tag 21A (21B) of the printing device 2 is performed. When the distance between the NFC reading unit 31 of the communication terminal device 3 and the NFC tag 21A (21B) approaches the distance at which short-range wireless communication is possible, the reading control unit 561 controls the NFC reading unit 31 and the NFC tag 21A. The tag information recorded in (21B) is read. In addition, the reading control unit 561 inputs a captured image of the imaging camera 33. The reading control unit 561 reads the tag information by analyzing and decoding the image of the QR code 27 captured by the imaging camera 33. The reading control unit 561 passes the tag information to the transmission destination setting unit 562.

印刷装置2が第1印刷装置2Aである場合、NFC読取部31により、I/F種類と、機種名と、MACアドレスとがタグ情報として読み取られる。また、印刷装置2が第2印刷装置2Bである場合、NFC読取部31により、I/F種類と、機種名と、Bluetoothアドレスとがタグ情報として読み取られる。NFC読取部31により読み取られたタグ情報は、送信先設定部562に渡される。   When the printing apparatus 2 is the first printing apparatus 2A, the NFC reading unit 31 reads the I / F type, the model name, and the MAC address as tag information. When the printing apparatus 2 is the second printing apparatus 2B, the NFC reading unit 31 reads the I / F type, the model name, and the Bluetooth address as tag information. The tag information read by the NFC reading unit 31 is passed to the transmission destination setting unit 562.

送信先設定部562は、読取制御部561が読み取った情報に基づいて、第1通信部34又は第2通信部35を選択して、印刷装置2との通信に使用する通信部を選択する。そして、送信先設定部562は、印刷装置2との接続を確立する。
まず、送信先設定部562は、NFC読取部31により読み取られたタグ情報により、印刷装置2の備えている通信方式を判定する。送信先設定部562は、I/F種類により、印刷装置2の通信方式がBluetoothであると判定した場合、タグ情報により取得した印刷装置2のBluetoothアドレスを用いて、印刷装置2との近距離無線通信を確立する。具体的には、送信先設定部562は、第2通信部35を制御して周囲に存在するBluetooth対応機器を検索し、タグ情報により取得したBluetoothアドレスの機器と、認証手続であるペアリングを行う。
The transmission destination setting unit 562 selects the first communication unit 34 or the second communication unit 35 based on the information read by the reading control unit 561 and selects a communication unit used for communication with the printing apparatus 2. Then, the transmission destination setting unit 562 establishes a connection with the printing apparatus 2.
First, the transmission destination setting unit 562 determines the communication method provided in the printing apparatus 2 based on the tag information read by the NFC reading unit 31. When the transmission destination setting unit 562 determines that the communication method of the printing apparatus 2 is Bluetooth according to the I / F type, the transmission destination setting unit 562 uses the Bluetooth address of the printing apparatus 2 acquired from the tag information, and is close to the printing apparatus 2 Establish wireless communication. Specifically, the transmission destination setting unit 562 controls the second communication unit 35 to search for Bluetooth-compatible devices in the vicinity, and performs pairing that is an authentication procedure with the device having the Bluetooth address acquired by the tag information. Do.

また、送信先設定部562は、I/F種類により、印刷装置2の通信方式が無線LANであると判定した場合、不揮発性メモリー54に保存されたアドレス変換テーブルを参照して、タグ情報として読み取ったMACアドレスに対応するIPアドレスを取得する。読取制御部561は、第1通信部34を制御してアクセスポイント4に接続し、取得したIPアドレスを、印刷データの送信先を表す宛先アドレスに設定する。   Further, when the destination setting unit 562 determines that the communication method of the printing apparatus 2 is wireless LAN according to the I / F type, the transmission destination setting unit 562 refers to the address conversion table stored in the nonvolatile memory 54 as tag information. An IP address corresponding to the read MAC address is acquired. The reading control unit 561 controls the first communication unit 34 to connect to the access point 4 and sets the acquired IP address as a destination address indicating a transmission destination of print data.

印刷データ送信部563は、会計処理部55から取得した印刷データを、送信先設定部562により設定された印刷装置2に送信する。具体的には、第1通信部34により無線LANに接続している場合には、送信先設定部562により設定された送信先(IPアドレス)に、印刷データを送信する。印刷データは、アクセスポイント4を介して印刷装置2に送信される。また、第2通信部35による印刷装置2との近距離無線通信が確立している場合には、近距離無線通信により接続された印刷装置2に、印刷データを送信する。   The print data transmission unit 563 transmits the print data acquired from the accounting processing unit 55 to the printing apparatus 2 set by the transmission destination setting unit 562. Specifically, when the first communication unit 34 is connected to the wireless LAN, the print data is transmitted to the transmission destination (IP address) set by the transmission destination setting unit 562. The print data is transmitted to the printing apparatus 2 via the access point 4. Further, when the short-range wireless communication with the printing apparatus 2 by the second communication unit 35 has been established, the print data is transmitted to the printing apparatus 2 connected by the short-range wireless communication.

図8に示すシーケンス図を参照しながら、送信先設定部562によるアドレス管理テーブルの作成手順を説明する。
送信先設定部562は、通信端末装置3の起動時、印刷制御アプリケーション523の起動時、ネットワークに接続したタイミング等の所定のタイミングで、IPアドレスと、MACアドレスとの送信を要求するリクエストパケットを生成する。送信先設定部562は、生成したリクエストパケットの宛先アドレスにブロードキャストアドレスを設定する。送信先設定部562は、第1通信部34を制御してアクセスポイント4に接続し、リクエストパケットを店舗内LAN6にブロードキャストする。図8には、店舗内LAN6に接続した印刷装置2が、第1印刷装置2A−1、2A−2、2A−3の3つである場合が示されている。ブロードキャストされたリクエストパケットは、第1印刷装置2A−1、2A−2、2A−3にそれぞれ送信される。
A procedure for creating an address management table by the transmission destination setting unit 562 will be described with reference to the sequence diagram shown in FIG.
The transmission destination setting unit 562 sends a request packet for requesting transmission of the IP address and the MAC address at a predetermined timing such as when the communication terminal device 3 is activated, when the print control application 523 is activated, or when it is connected to the network. Generate. The transmission destination setting unit 562 sets a broadcast address as the destination address of the generated request packet. The transmission destination setting unit 562 controls the first communication unit 34 to connect to the access point 4 and broadcasts a request packet to the in-store LAN 6. FIG. 8 shows a case in which the number of printing apparatuses 2 connected to the in-store LAN 6 is the first printing apparatuses 2A-1, 2A-2, and 2A-3. The broadcast request packet is transmitted to each of the first printing apparatuses 2A-1, 2A-2, and 2A-3.

リクエストパケットを受信した各第1印刷装置2A−1、2A−2、2A−3は、リクエストパケットに従って、自身のMACアドレスと、IPアドレスとを応答パケットとしてリクエストパケットの要求元の通信端末装置3に返信する。例えば、第1印刷装置2A−1の印刷制御部24Aが備えるメモリー25Aには、機器情報として、第1印刷装置2A−1のMACアドレスと、IPアドレスとが保存されている。印刷制御部24Aは、第1通信部22Aを介してリクエストパケットを受信した場合、メモリー25Aから機器情報を読み出し、読み出した機器情報をデータとして含む応答パケットを生成する。印刷制御部24Aは、生成した応答パケットを、第1通信部22Aを介して、リクエストパケットの送信元の通信端末装置3に送信する。他の第1印刷装置2A−2、2A−3についても、第1印刷装置2A−1と同様に処理を行う。
なお、機器情報のうちのMACアドレスは、第1通信部22Aの備えるメモリー(不図示)に保存してもよい。また、IPアドレスは、印刷制御部24Aの備えるOSのレジストリに保存してもよい。
The first printing apparatuses 2A-1, 2A-2, 2A-3 that have received the request packet use the own MAC address and IP address as a response packet according to the request packet, and the communication terminal apparatus 3 that requested the request packet. Reply to For example, the MAC address and the IP address of the first printing apparatus 2A-1 are stored as device information in the memory 25A included in the printing control unit 24A of the first printing apparatus 2A-1. When the print control unit 24A receives a request packet via the first communication unit 22A, the print control unit 24A reads device information from the memory 25A, and generates a response packet including the read device information as data. The print control unit 24A transmits the generated response packet to the communication terminal device 3 that is the transmission source of the request packet via the first communication unit 22A. The other first printing apparatuses 2A-2 and 2A-3 perform the same process as the first printing apparatus 2A-1.
The MAC address in the device information may be stored in a memory (not shown) provided in the first communication unit 22A. The IP address may be stored in an OS registry provided in the print control unit 24A.

通信端末装置3の送信先設定部562は、第1印刷装置2A−1、2A−2、2A−3から応答パケットを受信すると、受信した応答パケットからMACアドレスと、IPアドレスとを取り出す。送信先設定部562は、取り出したMACアドレスと、IPアドレスとを対応づけて、図6に示すアドレス管理テーブルに登録する。   When the destination setting unit 562 of the communication terminal device 3 receives the response packet from the first printing devices 2A-1, 2A-2, and 2A-3, it extracts the MAC address and the IP address from the received response packet. The transmission destination setting unit 562 associates the extracted MAC address with the IP address and registers them in the address management table shown in FIG.

また、送信先設定部562は、第1印刷装置2AのNFCタグ21Aに記録されたMACアドレスが、NFC読取部31によって読み取られると、アドレス管理テーブルを参照してMACアドレスに対応するIPアドレスを取得する。送信先設定部562は、取得したIPアドレスを、印刷データを送信する宛先アドレスとして設定する。   Further, when the MAC address recorded in the NFC tag 21A of the first printing apparatus 2A is read by the NFC reading unit 31, the transmission destination setting unit 562 refers to the address management table and sets an IP address corresponding to the MAC address. get. The transmission destination setting unit 562 sets the acquired IP address as a destination address for transmitting print data.

次に、フローチャートを参照しながら、通信端末装置3の処理手順を説明する。まず、図6に示したアドレス管理テーブルを作成する手順を図9に示すフローチャートを参照しながら説明する。なお、アドレス管理テーブルの作成処理は、制御部50の送信先設定部562による制御により実現される。また、送信先設定部562が、アドレス管理テーブルの作成処理を実行するタイミングは、通信端末装置3の起動時、印刷制御アプリケーション523の起動時、ネットワークに接続したタイミング等の所定のタイミングで行う。   Next, a processing procedure of the communication terminal device 3 will be described with reference to a flowchart. First, the procedure for creating the address management table shown in FIG. 6 will be described with reference to the flowchart shown in FIG. The address management table creation process is realized by control by the transmission destination setting unit 562 of the control unit 50. The destination setting unit 562 executes the address management table creation process at a predetermined timing such as when the communication terminal device 3 is activated, when the print control application 523 is activated, or when connected to the network.

送信先設定部562は、まず、リクエストパケットを生成する(ステップS1)。送信先設定部562は、IPアドレスと、MACアドレスとの送信を要求するリクエストパケットを生成する。送信先設定部562は、リクエストパケットを生成すると、生成したリクエストパケットの宛先アドレスにブロードキャストアドレスを設定して、店舗内LAN6に接続している端末にブロードキャストする(ステップS2)。   The transmission destination setting unit 562 first generates a request packet (step S1). The transmission destination setting unit 562 generates a request packet that requests transmission of an IP address and a MAC address. When the transmission destination setting unit 562 generates a request packet, the transmission destination setting unit 562 sets a broadcast address as a destination address of the generated request packet, and broadcasts it to a terminal connected to the in-store LAN 6 (step S2).

リクエストパケットをブロードキャストすると、送信先設定部562は、リクエストパケットに対する応答パケットを受信したか否かを判定する(ステップS3)。送信先設定部562は、店舗内LAN6に接続している印刷装置2から応答パケットを受信すると、受信した応答パケットに含まれるMACアドレス及びIPアドレスを取り出して、アドレス管理テーブルに登録する(ステップS4)。   When the request packet is broadcast, the transmission destination setting unit 562 determines whether a response packet to the request packet has been received (step S3). When receiving the response packet from the printing apparatus 2 connected to the in-store LAN 6, the transmission destination setting unit 562 extracts the MAC address and IP address included in the received response packet and registers them in the address management table (step S4). ).

次に、送信先設定部562は、ステップS2において行ったリクエストパケットの送信から所定時間を経過したか否かを判定する(ステップS5)。すなわち、送信先設定部562は、タイムアウト時間を経過したか否かを判定する。肯定判定の場合(ステップS5/YES)、送信先設定部562は、この処理を終了する。また、否定判定の場合(ステップS5/NO)、送信先設定部562は、ステップS3に戻り、応答パケットの受信を待機する(ステップS3)。   Next, the transmission destination setting unit 562 determines whether or not a predetermined time has elapsed since the transmission of the request packet performed in step S2 (step S5). That is, the transmission destination setting unit 562 determines whether or not a timeout time has elapsed. In the case of a positive determination (step S5 / YES), the transmission destination setting unit 562 ends this process. If the determination is negative (step S5 / NO), the transmission destination setting unit 562 returns to step S3 and waits for reception of a response packet (step S3).

次に、図10に示すフローチャートを参照しながら、オペレーターにより選択された印刷装置2を印刷データの送信先に設定する送信先設定処理について説明する。なお、この送信先設定処理は、制御部50の読取制御部561と送信先設定部562とによる制御により行われる。   Next, a transmission destination setting process for setting the printing apparatus 2 selected by the operator as a transmission destination of print data will be described with reference to the flowchart shown in FIG. This transmission destination setting process is performed under the control of the reading control unit 561 and the transmission destination setting unit 562 of the control unit 50.

送信先設定処理を行う場合、まず、オペレーターにより、通信端末装置3を、選択した印刷装置2のNFCタグ21A(21B)に近づけさせる。この際、送信先設定部562は、通信端末装置3のタッチパネル32に、「印刷装置のNFCタグに通信端末装置をかざして下さい」といった表示(図11(A)参照)を表示させる。通信端末装置3のオペレーターは、通信端末装置3を、選択した印刷装置2のNFCタグ21A(21B)にかざす。通信端末装置3のNFC読取部31と、NFCタグ21A(21B)との距離が近距離無線通信可能な距離に近づくことで、読取制御部561は、NFC読取部31を制御して、NFCタグ21A(21B)に記録されたタグ情報を読み取る。送信先設定部562は、読み取ったタグ情報を制御部50(送信先設定部562)に出力する。   When performing the transmission destination setting process, first, the operator brings the communication terminal device 3 close to the NFC tag 21A (21B) of the selected printing device 2. At this time, the transmission destination setting unit 562 displays on the touch panel 32 of the communication terminal device 3 a display such as “Please hold the communication terminal device over the NFC tag of the printing device” (see FIG. 11A). The operator of the communication terminal device 3 holds the communication terminal device 3 over the NFC tag 21A (21B) of the selected printing device 2. When the distance between the NFC reading unit 31 of the communication terminal device 3 and the NFC tag 21A (21B) approaches a distance at which short-range wireless communication is possible, the reading control unit 561 controls the NFC reading unit 31 to control the NFC tag. The tag information recorded in 21A (21B) is read. The transmission destination setting unit 562 outputs the read tag information to the control unit 50 (transmission destination setting unit 562).

送信先設定部562は、NFC読取部31から出力されたタグ情報を入力すると(ステップS11)、タグ情報に含まれるI/F情報を参照して、タグ情報を読み取った印刷装置2の通信方式を判定する。送信先設定部562は、I/F情報により、通信方式がBluetoothであると判定すると(ステップS12/YES)、第2通信部35を制御して、Bluetoothの接続処理を行う(ステップS15)。この際、送信先設定部562は、タッチパネル32に、ペアリングを行う印刷装置2(第2印刷装置2B)の機種名、Bluetoothアドレス等を表示させて(図11(B)参照)、ペアリングを行ってよいか否かを問い合わせるメッセージを表示させる。ペアリングを許可する入力を受け付けると、送信先設定部562は、タグ情報によりBluetoothアドレスを読み取った第2印刷装置2Bとのペアリングを行って、第2印刷装置2BとBluetoothによる接続を確立する(ステップS15)。   When receiving the tag information output from the NFC reading unit 31 (step S11), the transmission destination setting unit 562 refers to the I / F information included in the tag information, and the communication method of the printing apparatus 2 that has read the tag information. Determine. If the transmission destination setting unit 562 determines from the I / F information that the communication method is Bluetooth (step S12 / YES), the transmission destination setting unit 562 controls the second communication unit 35 to perform Bluetooth connection processing (step S15). At this time, the transmission destination setting unit 562 causes the touch panel 32 to display the model name, Bluetooth address, and the like of the printing apparatus 2 (second printing apparatus 2B) that performs pairing (see FIG. 11B), and performs pairing. Displays a message asking whether or not to perform Upon receiving an input for permitting pairing, the transmission destination setting unit 562 performs pairing with the second printing apparatus 2B that has read the Bluetooth address based on the tag information, and establishes a connection with the second printing apparatus 2B via Bluetooth. (Step S15).

また、送信先設定部562は、ステップS12の判定が否定判定である場合、通信方式が無線LANであるか否かを判定する(ステップS13)。送信先設定部562は、I/F情報により、通信方式が無線LANであると判定すると(ステップS13/YES)、第1通信部34を制御して、無線LANへの接続処理を行う(ステップS14)。送信先設定部562は、タグ情報によりMACアドレスを読み取った第1印刷装置2AのIPアドレスをアドレス管理テーブルから取得する。そして、送信先設定部562は、タッチパネル32に、印刷装置2の機種名、IPアドレス、MACアドレスを表示させて(図11(C)参照)、印刷データの送信先を、表示された印刷装置2に設定してよいか否かを問い合わせるメッセージを表示させる。オペレーターによるタッチパネル32の操作により、許可入力を受け付けた場合、送信先設定部562は、第1通信部34を制御してアクセスポイント4に接続し、取得したIPアドレスを、印刷データを送信する宛先アドレスに設定する。   If the determination in step S12 is negative, the transmission destination setting unit 562 determines whether the communication method is a wireless LAN (step S13). If the transmission destination setting unit 562 determines that the communication method is wireless LAN based on the I / F information (step S13 / YES), the transmission destination setting unit 562 controls the first communication unit 34 to perform connection processing to the wireless LAN (step S13). S14). The transmission destination setting unit 562 acquires the IP address of the first printing apparatus 2A that has read the MAC address from the tag information from the address management table. Then, the transmission destination setting unit 562 displays the model name, IP address, and MAC address of the printing apparatus 2 on the touch panel 32 (see FIG. 11C), and displays the transmission destination of the print data on the displayed printing apparatus. A message for inquiring whether or not to set to 2 is displayed. When the permission input is accepted by the operation of the touch panel 32 by the operator, the transmission destination setting unit 562 controls the first communication unit 34 to connect to the access point 4 and uses the acquired IP address as the destination to which the print data is transmitted. Set to address.

また、送信先設定部562は、ステップS13の判定が否定判定である場合、エラー表示をタッチパネル32に表示させる(ステップS16)。この場合、送信先設定部562は、例えば、「タグ情報の読み込みに失敗しました。再度、タグ情報を読み込むため、通信端末装置3を印刷装置2のNFCタグ21A(21B)に近づけて下さい。」といった表示をタッチパネル32に表示させる。   Moreover, the transmission destination setting part 562 displays an error display on the touch panel 32, when determination of step S13 is negative determination (step S16). In this case, for example, the transmission destination setting unit 562 may read, for example, “Failed to read tag information. Move the communication terminal device 3 closer to the NFC tag 21A (21B) of the printing device 2 to read the tag information again. Is displayed on the touch panel 32.

次に、図12に示すフローチャートを参照しながら、レシートを発行する印刷処理について説明する。通信端末装置3における印刷処理は、会計処理部55及び印刷データ送信部563による制御により実現される。また、この印刷処理は、図9を参照して説明したアドレス管理テーブル作成処理と、図10に示す送信先設定処理とを行い、印刷データの送信先が設定された状態で行われる。
会計処理部55は、店員等のオペレーターがタッチパネル32により入力した商品情報に基づいて決済処理(会計処理)を実行する。そして、会計処理部55は、決済処理の処理結果である決済情報に基づいてレシート印刷用の印刷データを生成する(ステップS21)。会計処理部55は、生成した印刷データを印刷データ送信部563に渡す。
Next, a printing process for issuing a receipt will be described with reference to the flowchart shown in FIG. The printing process in the communication terminal device 3 is realized by the control by the accounting processing unit 55 and the print data transmission unit 563. The print processing is performed in a state where the address management table creation processing described with reference to FIG. 9 and the transmission destination setting processing illustrated in FIG. 10 are performed and the transmission destination of the print data is set.
The accounting processing unit 55 executes a settlement process (accounting process) based on the product information input by the operator such as a store clerk through the touch panel 32. Then, the accounting processing unit 55 generates print data for receipt printing based on the payment information that is the processing result of the payment processing (step S21). The accounting processing unit 55 passes the generated print data to the print data transmission unit 563.

印刷データ送信部563は、送信先設定部562から渡された印刷データを印刷装置2に送信する(ステップS22)。このとき、印刷データ送信部563は、送信先設定部562の制御により、ペアリングされた第2印刷装置2Bが存在する場合には、このペアリングされた第2印刷装置2Bに印刷データを送信する。また、印刷データ送信部563は、送信先設定部562の制御により、第1通信部34がアクセスポイント4に接続され、IPアドレスが宛先アドレスとして設定されている場合には、この設定されたIPアドレス宛てに印刷データを送信する。   The print data transmission unit 563 transmits the print data transferred from the transmission destination setting unit 562 to the printing apparatus 2 (step S22). At this time, the print data transmission unit 563 transmits the print data to the paired second printing apparatus 2B when the paired second printing apparatus 2B exists under the control of the transmission destination setting unit 562. To do. Further, the print data transmission unit 563 controls the transmission destination setting unit 562, when the first communication unit 34 is connected to the access point 4 and the IP address is set as the destination address under the control of the transmission destination setting unit 562. Send print data to the address.

印刷装置2は、無線LANによる通信、又は近距離無線通信により印刷データを受信すると(ステップS31)、受信した印刷データに基づいて、レシートを印刷(発行)する(ステップS32)。   When the printing apparatus 2 receives print data by wireless LAN communication or short-range wireless communication (step S31), the printing apparatus 2 prints (issues) a receipt based on the received print data (step S32).

また、通信端末装置3は、印刷ステータスをリクエストするステータスリクエストを、印刷データを送信した印刷装置2に送信する。印刷装置2は、ステータスリクエストを受信すると(ステップS33)、印刷処理の状況を表すステータス情報を生成して、リクエストを送信した通信端末装置3に送信する(ステップS34)。ステータス情報には、例えば、印刷が正常終了した場合の「正常終了」、印刷が終了していない場合に、その原因を表す「レシート用紙切れ」、「インク切れ」等が挙げられる。   Further, the communication terminal device 3 transmits a status request for requesting a print status to the printing device 2 that has transmitted the print data. When receiving the status request (step S33), the printing apparatus 2 generates status information indicating the status of the printing process, and transmits the status information to the communication terminal apparatus 3 that transmitted the request (step S34). The status information includes, for example, “normal end” when printing ends normally, “out of receipt paper” and “out of ink” indicating the cause when printing is not ended.

通信端末装置3の印刷データ送信部563は、印刷装置2からステータス情報を受信すると、受信したステータス情報をタッチパネル32に表示させる。通信端末装置3のユーザーが、タッチパネル32の表示を参照することで、印刷ができない場合に、その原因を特定することができる。   When receiving the status information from the printing apparatus 2, the print data transmission unit 563 of the communication terminal apparatus 3 displays the received status information on the touch panel 32. When the user of the communication terminal device 3 refers to the display on the touch panel 32, when printing cannot be performed, the cause can be specified.

なお、上述した実施形態では、印刷装置2の装置ケース20にNFCタグ21A(21B)を貼付し、貼付されたNFCタグ21A(21B)の情報をNFC読取部31により読み取っていた。これ以外に、I/F情報やアドレスをQRコード27に変換して、印刷装置2の装置ケース20に貼付するものであってもよい。通信端末装置3は、QRコード27を撮像カメラ33により撮影して、読取制御部561により、QRコード27の画像データを元の情報に復号化する。読取制御部561は、復号化したI/F情報やアドレス情報を送信先設定部562に渡す。   In the above-described embodiment, the NFC tag 21A (21B) is attached to the device case 20 of the printing apparatus 2, and the information of the attached NFC tag 21A (21B) is read by the NFC reading unit 31. In addition to this, the I / F information and the address may be converted into the QR code 27 and attached to the apparatus case 20 of the printing apparatus 2. The communication terminal device 3 captures the QR code 27 with the imaging camera 33, and the reading control unit 561 decodes the image data of the QR code 27 into the original information. The reading control unit 561 passes the decrypted I / F information and address information to the transmission destination setting unit 562.

このように本実施形態は、印刷装置2に貼付されたNFCタグ21A(21B)のタグ情報を読み込み、印刷装置2の備える通信方式に合致した通信部(第1通信部34又は第2通信部35)を選択して、通信端末装置3を印刷装置2に接続することができる。従って、多数の通信方式の中から、容易に、接続する印刷装置2に適した通信方式を選択し、その接続設定を行うことができる。   As described above, the present embodiment reads the tag information of the NFC tag 21A (21B) affixed to the printing apparatus 2 and communicates with the communication unit (the first communication unit 34 or the second communication unit) that matches the communication method included in the printing apparatus 2. 35) can be selected to connect the communication terminal apparatus 3 to the printing apparatus 2. Therefore, a communication method suitable for the printing apparatus 2 to be connected can be easily selected from a large number of communication methods, and the connection setting can be performed.

なお、図10のステップS11において入力したMACアドレスが、アドレス管理テーブルに登録されていない場合、通信端末装置3の送信先設定部562は、タッチパネル32に、「MACアドレスが登録されていません。」といった表示を表示させるとよい。また、送信先設定部562は、「MACアドレスを読み取った第1印刷装置2Aを無線LAN(アクセスポイント)に接続させますか。」といった表示をタッチパネル32に表示させてもよい。さらに、送信先設定部562は、該当の第1印刷装置2Aを無線LANに接続させるとの操作入力をタッチパネル32で受け付けた場合、後述する図13に示す手順に従って、第1印刷装置2Aを無線LANのアクセスポイント4に接続させる。   When the MAC address input in step S11 of FIG. 10 is not registered in the address management table, the transmission destination setting unit 562 of the communication terminal device 3 displays “MAC address is not registered” on the touch panel 32. It is good to display such as. Further, the transmission destination setting unit 562 may cause the touch panel 32 to display a display such as “Do you want to connect the first printing apparatus 2A that has read the MAC address to the wireless LAN (access point)?”. Further, when the operation input for connecting the corresponding first printing device 2A to the wireless LAN is received by the touch panel 32, the transmission destination setting unit 562 causes the first printing device 2A to wirelessly follow the procedure shown in FIG. Connect to the LAN access point 4.

図13に示すフローチャートを参照しながら、第1印刷装置2Aを、アクセスポイント4によって構築される無線LANのネットワークに接続させる手順について説明する。
この処理フローでは、まず、第1印刷装置2Aをアクセスポイントとして機能させ、通信端末装置3をアクセスポイントである第1印刷装置2Aに直接接続させるモード(直接接続モード)を実行させる。図13に示すフローチャートを参照しながら直接接続モードにより第1印刷装置2Aと通信端末装置3とを接続して、第1印刷装置2Aを無線LANに接続させる手順を説明する。
A procedure for connecting the first printing apparatus 2A to a wireless LAN network constructed by the access point 4 will be described with reference to the flowchart shown in FIG.
In this processing flow, first, a mode (direct connection mode) in which the first printing apparatus 2A functions as an access point and the communication terminal apparatus 3 is directly connected to the first printing apparatus 2A as an access point is executed. A procedure for connecting the first printing apparatus 2A and the communication terminal apparatus 3 in the direct connection mode and connecting the first printing apparatus 2A to the wireless LAN will be described with reference to the flowchart shown in FIG.

オペレーターが、第1印刷装置2Aの操作部(不図示)と、通信端末装置3のタッチパネル32とを操作して、所定の操作を入力(ステップS51、S61)することで、直接接続モードが開始される。   The operator operates the operation unit (not shown) of the first printing device 2A and the touch panel 32 of the communication terminal device 3, and inputs a predetermined operation (steps S51 and S61), thereby starting the direct connection mode. Is done.

直接接続モードが開始されると、第1印刷装置2Aと通信端末装置3とは、それぞれデフォルトのSSIDとセキュリティーキーとを使用して無線通信を開始する(ステップS52、S62)。直接接続モードにおいて、第1印刷装置2Aはアクセスポイント、すなわち親機として動作し、通信端末装置3は、アクセスポイントに参加する子機として動作する。   When the direct connection mode is started, the first printing device 2A and the communication terminal device 3 start wireless communication using the default SSID and security key, respectively (steps S52 and S62). In the direct connection mode, the first printing device 2A operates as an access point, that is, a parent device, and the communication terminal device 3 operates as a child device that participates in the access point.

通信端末装置3は、第1印刷装置2Aとの無線通信を開始すると、第1印刷装置2Aに、アクセスポイント4のSSID、セキュリティーキーを送信する(ステップS63)。第1印刷装置2Aは、通信端末装置3からSSIDとセキュリティーキーとを受信すると(ステップS53)、SSIDとセキュリティーキーとを正常に受信した旨を示す受信確認を通信端末装置3に送信する。なお、第1印刷装置2Aは、受信確認を通信端末装置3に送信した後に、さらに第1印刷装置2AのMACアドレスとIPアドレスとを通信端末装置3に送信するようにしてもよい。第1印刷装置2AのMACアドレスとIPアドレスを通信端末装置3に通知することで、通信端末装置3は、第1印刷装置2Aとアクセスポイント4を介した通信を直ちに開始することができる。また、通信端末装置3は、第1印刷装置2Aから送信されたMACアドレス及びIPアドレスを受信すると、受信したMACアドレス及びIPアドレスをアドレス管理テーブルに登録する。
通信端末装置3からSSIDとセキュリティーキーとを受信した第1印刷装置2Aは、受信したSSIDとセキュリティーキーとを第1通信部22Aに設定して(ステップS54)、再起動する(ステップS55)。再起動した第1印刷装置2Aは、第1通信部22Aによる無線通信によりアクセスポイント4に接続する(ステップS56)。また、通信端末装置3は、第1印刷装置2Aに送信したSSID、セキュリティーキーを第1通信部34に設定して、接続するアクセスポイントを第1印刷装置2Aからアクセスポイント4に切り替える(ステップS65)。通信端末装置3は、第1通信部34による無線通信によりアクセスポイント4に接続する(ステップS66)。アクセスポイント4に接続した通信端末装置3は、第1印刷装置2AのIPアドレスとMACアドレスとを使用して、第1印刷装置2Aと通信を行う。
When the communication terminal device 3 starts wireless communication with the first printing device 2A, it transmits the SSID and security key of the access point 4 to the first printing device 2A (step S63). When the first printing apparatus 2A receives the SSID and the security key from the communication terminal apparatus 3 (step S53), the first printing apparatus 2A transmits a reception confirmation indicating that the SSID and the security key have been normally received to the communication terminal apparatus 3. The first printing apparatus 2A may further transmit the MAC address and IP address of the first printing apparatus 2A to the communication terminal apparatus 3 after transmitting the reception confirmation to the communication terminal apparatus 3. By notifying the communication terminal apparatus 3 of the MAC address and IP address of the first printing apparatus 2A, the communication terminal apparatus 3 can immediately start communication with the first printing apparatus 2A via the access point 4. In addition, when the communication terminal device 3 receives the MAC address and IP address transmitted from the first printing device 2A, the communication terminal device 3 registers the received MAC address and IP address in the address management table.
The first printing apparatus 2A that has received the SSID and the security key from the communication terminal apparatus 3 sets the received SSID and security key in the first communication unit 22A (step S54) and restarts (step S55). The restarted first printing apparatus 2A connects to the access point 4 by wireless communication by the first communication unit 22A (step S56). Further, the communication terminal device 3 sets the SSID and security key transmitted to the first printing device 2A in the first communication unit 34, and switches the access point to be connected from the first printing device 2A to the access point 4 (step S65). ). The communication terminal device 3 connects to the access point 4 by wireless communication by the first communication unit 34 (step S66). The communication terminal device 3 connected to the access point 4 communicates with the first printing device 2A using the IP address and MAC address of the first printing device 2A.

このように本実施形態は、第1印刷装置2Aがアクセスポイント4に接続されていない場合であっても、通信端末装置3と第1印刷装置2Aとを直接1対1で接続して通信端末装置3により第1印刷装置2Aの接続設定を行うことができる。そして、この接続設定により第1印刷装置2Aをアクセスポイント4に接続させることができる。   As described above, in the present embodiment, even when the first printing apparatus 2A is not connected to the access point 4, the communication terminal apparatus 3 and the first printing apparatus 2A are directly connected in a one-to-one relationship. The connection setting of the first printing apparatus 2A can be performed by the apparatus 3. Then, the first printing apparatus 2A can be connected to the access point 4 by this connection setting.

なお、上述した説明では、通信端末装置3と第1印刷装置2Aとが直接接続された際に、第1印刷装置2Aが自身のMACアドレス及びIPアドレスを通信端末装置3に送信していた。また、通信端末装置3は、第1印刷装置2Aから受信したMACアドレス及びIPアドレスをアドレス管理テーブルに登録していた。これ以外に、通信端末装置3の送信先設定部562が、アクセスポイント4に接続した際に、アドレス管理テーブルを再度作成するようにしてもよい。送信先設定部562は、図9に示すフローチャートに従ってリクエストパケットを生成し、店舗内LAN6に接続している端末にブロードキャストし、応答として受信したMACアドレスとIPアドレスとを対応付けてアドレス管理テーブルに登録する。これにより、アクセスポイント4に新たに接続された第1印刷装置2AのMACアドレス及びIPアドレスを通信端末装置3のアドレス管理テーブルに登録させることができる。
また、上述したフローでは、第1印刷装置2Aをアクセスポイントとして機能させる場合を例に説明したが、通信端末装置3をアクセスポイント、すなわち親機として動作させ、第1印刷装置2Aを子機として動作させることもできる。
In the above description, when the communication terminal device 3 and the first printing device 2A are directly connected, the first printing device 2A transmits its own MAC address and IP address to the communication terminal device 3. The communication terminal device 3 registers the MAC address and IP address received from the first printing device 2A in the address management table. In addition to this, when the transmission destination setting unit 562 of the communication terminal device 3 connects to the access point 4, the address management table may be created again. The transmission destination setting unit 562 generates a request packet according to the flowchart shown in FIG. 9, broadcasts it to the terminal connected to the in-store LAN 6, and associates the received MAC address with the IP address in the address management table. sign up. Thereby, the MAC address and IP address of the first printing apparatus 2A newly connected to the access point 4 can be registered in the address management table of the communication terminal apparatus 3.
In the above-described flow, the case where the first printing apparatus 2A is caused to function as an access point has been described as an example. However, the communication terminal apparatus 3 is operated as an access point, that is, a parent machine, and the first printing apparatus 2A is used as a child machine. It can also be operated.

以上説明したように、本発明を適用した実施形態の通信端末装置3は、通信方式の異なる第1通信部34及び第2通信部35と、NFC読取部31と、送信先設定部562とを有している。NFC読取部31は、印刷装置2の通信方式を示すI/F情報と、印刷装置2を特定するBluetoothアドレス又はMACアドレスとを読み取る。送信先設定部562は、NFC読取部31が読み取ったI/F情報と、Bluetoothアドレス又はMACアドレスとに基づいて、第1通信部34又は第2通信部35を選択し、印刷装置2との接続を確立する。従って、容易に、接続する印刷装置2の備える通信方式を選択し、印刷装置2に接続させる接続設定を行うことがきる。   As described above, the communication terminal device 3 according to the embodiment to which the present invention is applied includes the first communication unit 34 and the second communication unit 35 having different communication methods, the NFC reading unit 31, and the transmission destination setting unit 562. Have. The NFC reading unit 31 reads the I / F information indicating the communication method of the printing apparatus 2 and the Bluetooth address or MAC address that identifies the printing apparatus 2. The transmission destination setting unit 562 selects the first communication unit 34 or the second communication unit 35 based on the I / F information read by the NFC reading unit 31 and the Bluetooth address or the MAC address, and Establish a connection. Therefore, it is possible to easily select a communication method included in the printing apparatus 2 to be connected and perform connection settings for connecting to the printing apparatus 2.

また、送信先設定部562は、NFC読取部31により、MACアドレスが読み取られた場合、第1通信部34又は第2通信部35のうち、無線LANに対応した第1通信部34により印刷装置2との接続を確立する。従って、通信方式として無線LANを備える印刷装置2を、通信端末装置3に接続することが可能となる。   In addition, when the MAC address is read by the NFC reading unit 31, the transmission destination setting unit 562 uses the first communication unit 34 corresponding to the wireless LAN among the first communication unit 34 or the second communication unit 35 to print the printing device. 2 is established. Accordingly, it is possible to connect the printing apparatus 2 having a wireless LAN as a communication method to the communication terminal apparatus 3.

また、送信先設定部562は、MACアドレスに基づいて印刷装置2を特定し、特定した印刷装置2との無線LANによる通信を確立する。従って、読み取ったMACアドレスにより印刷装置2を特定することができ、また、特定した印刷装置2との無線LANによる通信を確立することができる。
また、送信先設定部562は、NFC読取部31により、Bluetoothアドレスを読み取った場合、第1通信部34又は第2通信部35のうち、Bluetoothに対応した第2通信部35により印刷装置2との接続を確立する。従って、通信方式としてBluetoothを備える印刷装置2を、通信端末装置3に接続することが可能となる。
Also, the transmission destination setting unit 562 identifies the printing device 2 based on the MAC address, and establishes communication with the identified printing device 2 via a wireless LAN. Therefore, the printing device 2 can be specified by the read MAC address, and communication by the wireless LAN with the specified printing device 2 can be established.
In addition, when the NFC reading unit 31 reads the Bluetooth address, the transmission destination setting unit 562 uses the second communication unit 35 corresponding to Bluetooth among the first communication unit 34 or the second communication unit 35 to communicate with the printing apparatus 2. Establish a connection for. Therefore, it is possible to connect the printing apparatus 2 having Bluetooth as a communication method to the communication terminal apparatus 3.

また、送信先設定部562は、Bluetoothアドレスを用いて印刷装置2とのペアリングにより接続を確立して、印刷装置2にBluetooth通信により印刷データを送信する。従って、印刷装置2にBluetooth通信により印刷データを送信することができる。   Also, the transmission destination setting unit 562 establishes a connection by pairing with the printing apparatus 2 using the Bluetooth address, and transmits print data to the printing apparatus 2 by Bluetooth communication. Accordingly, print data can be transmitted to the printing apparatus 2 by Bluetooth communication.

また、NFC読取部31は、印刷装置2の筐体に貼付されたNFCタグ21A(21B)との近距離無線通信により、印刷装置2の通信方式を示すI/F情報と、印刷装置2を特定するBluetoothアドレス又はMACアドレスとを読み取る。
また、印刷装置2の装置ケース20には、2次元コード化されたQRコードが貼付されている。読取制御部561は、撮像カメラ33により撮影されたQRコードの画像を解析して復号化することで、I/F情報と、印刷装置2を特定するBluetoothアドレス又はMACアドレスとを読み取る。従って、I/F情報と、印刷装置2を特定するBluetoothアドレス又はMACアドレスとを簡単な操作で、印刷装置2から読み取ることができる。
In addition, the NFC reading unit 31 uses the short-range wireless communication with the NFC tag 21 </ b> A (21 </ b> B) attached to the casing of the printing apparatus 2 to display the I / F information indicating the communication method of the printing apparatus 2 and the printing apparatus 2. Read the specified Bluetooth address or MAC address.
In addition, a QR code that is two-dimensionally coded is attached to the device case 20 of the printing device 2. The reading control unit 561 reads the I / F information and the Bluetooth address or MAC address that identifies the printing device 2 by analyzing and decoding the QR code image captured by the imaging camera 33. Accordingly, the I / F information and the Bluetooth address or MAC address for specifying the printing apparatus 2 can be read from the printing apparatus 2 with a simple operation.

なお、上述した実施形態は、本発明の好適な実施の形態である。ただし、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形実施が可能である。例えば、上記実施形態では制御対象機器として印刷装置2を備えた構成例を説明したが、本発明はこれに限定されるものではなく、画像を光学的に読み取るスキャナー装置や、画像を表示する表示装置、又はその他の装置を備えた構成とすることもできる。   The above-described embodiment is a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention. For example, in the above-described embodiment, the configuration example including the printing apparatus 2 as the control target device has been described. However, the present invention is not limited to this, and a scanner apparatus that optically reads an image or a display that displays an image. It can also be set as the structure provided with the apparatus or the other apparatus.

1…POSシステム、2…印刷装置(制御対象機器)、2A…第1印刷装置(制御対象機器)、2B…第2印刷装置(制御対象機器)、3…通信端末装置、4…アクセスポイント、6…店舗内LAN、21A、21B…NFCタグ、22A…第1通信部(通信部)、22B…第2通信部(通信部)、23…印刷部、24A、24B…印刷制御部、25A、25B…メモリー、27…QRコード、31…NFC読取部、32…タッチパネル、33…撮像カメラ、34…第1通信部、35…第2通信部、50…制御部、55…会計処理部、56…印刷制御部、521…OS、522…POSアプリケーション、523…印刷制御アプリケーション、561…読取制御部、562…送信先設定部、563…印刷データ送信部。   DESCRIPTION OF SYMBOLS 1 ... POS system, 2 ... Printing apparatus (control object apparatus), 2A ... 1st printing apparatus (control object apparatus), 2B ... 2nd printing apparatus (control object apparatus), 3 ... Communication terminal apparatus, 4 ... Access point, 6 ... LAN in store, 21A, 21B ... NFC tag, 22A ... 1st communication part (communication part), 22B ... 2nd communication part (communication part), 23 ... Printing part, 24A, 24B ... Print control part, 25A, 25B ... Memory, 27 ... QR code, 31 ... NFC reading unit, 32 ... Touch panel, 33 ... Imaging camera, 34 ... First communication unit, 35 ... Second communication unit, 50 ... Control unit, 55 ... Accounting processing unit, 56 ... Print control unit, 521 ... OS, 522 ... POS application, 523 ... Print control application, 561 ... Reading control part, 562 ... Transmission destination setting part, 563 ... Print data transmission part.

Claims (7)

第1無線通信方式により無線通信を行い、第1アクセスポイントを介して第1印刷装置に印刷データを送信する第1無線通信部と、
第2無線通信方式により無線通信を行い、認証処理をしてから第2印刷装置に前記印刷データを送信する第2無線通信部と、
前記第1印刷装置に付着されたNFCタグから前記第1無線通信方式を特定する情報と前記第1印刷装置を特定する第1印刷装置識別情報とを読み取り、または、前記第2印刷装置に付着されたNFCタグから前記第2無線通信方式を特定する情と前記第2印刷装置を特定する第2印刷装置識別情報とを読み取る読取部と、
前記読取部が、前記第1無線通信方式を特定する情報を読み取った場合、前記第1無線通信部により前記第1アクセスポイントに接続して前記第1印刷装置識別情報に対応した前記第1印刷装置との接続を確立し、前記第2無線通信方式を特定する情報を読み取った場合、前記第2無線通信部により前記第2印刷装置識別情報に対応した前記第2印刷装置に接続し、認証処理をして前記第2印刷装置との接続を確立する制御部と、
を備えることを特徴とする通信端末装置。
A first wireless communication unit that performs wireless communication by the first wireless communication method and transmits print data to the first printing apparatus via the first access point ;
A second wireless communication unit that performs wireless communication by a second wireless communication method, performs authentication processing, and transmits the print data to the second printing apparatus ;
Read the information specifying the first wireless communication method and the first printing device identification information specifying the first printing device from the NFC tag attached to the first printing device, or attach to the second printing device. is a second printer identification information reading and reading unit for identifying the information before Symbol second printer that identifies the second wireless communication scheme from the NFC tag,
When the reading unit reads the information specifying the first wireless communication method, the first printing corresponding to the first printing apparatus identification information by connecting to the first access point by the first wireless communication unit. When the connection with the apparatus is established and the information specifying the second wireless communication method is read, the second wireless communication unit connects to the second printing apparatus corresponding to the second printing apparatus identification information and authenticates. a control unit for processing to establish a connection with the second printing device,
A communication terminal device comprising:
前記第1印刷装置識別情報として、前記第1印刷装置のMACアドレスと、IPアドレスとを対応付けて記憶する記憶部を備え、
前記制御部は、前記読取部により、前記第1印刷装置のMACアドレスが読み取られた場合、読み取られたMACアドレスに対応するIPアドレスを前記記憶部から取得し、前記第1無線通信部により取得した前記IPアドレスにアクセスして前記第1印刷装置との接続を確立することを特徴とする請求項1記載の通信端末装置。
A storage unit that stores the MAC address and the IP address of the first printing device in association with each other as the first printing device identification information;
When the MAC address of the first printing apparatus is read by the reading unit, the control unit acquires an IP address corresponding to the read MAC address from the storage unit, and acquires the IP address by the first wireless communication unit 2. The communication terminal device according to claim 1, wherein the communication terminal device establishes a connection with the first printing device by accessing the IP address .
前記制御部は、前記読取部により、前記第2無線通信方式を特定する情報と前記第2印刷装置識別情報として前記第2無線通信方式に係るアドレスが読み取られた場合、前記第2無線通信部により前記第2無線通信方式に係るアドレスに対応した前記第2印刷装置を検索し、検索した前記第2印刷装置と認証処理を行なって接続を確立することを特徴とする請求項1または2に記載の通信端末装置。 Wherein the control unit by the reading unit, when the address of the second wireless communication scheme and the second information specifying a radio communication method and a second printing device identification information has been read, the second radio communication unit It said second searching wireless communication system wherein the second printing device corresponding to the address according to, to establish a connection by performing a search by said second printing device and the authentication process to claim 1 or 2, characterized in by The communication terminal device described. 前記制御部は、前記第1印刷装置が第2アクセスポイントとして動作する場合に、前記第1無線通信部により前記第1印刷装置に接続して、前記第1アクセスポイントに接続するための接続情報を前記第1印刷装置に送信し、前記接続情報の送信後、前記第1無線通信部により前記第1アクセスポイントに接続することを特徴とする請求項1から3のいずれか1項に記載の通信端末装置。When the first printing apparatus operates as a second access point, the control unit uses the first wireless communication unit to connect to the first printing apparatus and to connect to the first access point. 4. The transmission device according to claim 1, wherein the first wireless communication unit is connected to the first access point after the connection information is transmitted. 5. Communication terminal device. 第1無線通信方式によりアクセスポイントを介して印刷データを受信可能な第1印刷装置、または第2無線通信方式により認証処理後前記印刷データを受信可能な第2印刷装置と、
前記第1印刷装置または第2印刷装置に前記印刷データを送信可能な通信端末装置と、を備える通信システムであって、
前記通信端末装置は、
前記第1無線通信方式により無線通信を行い、第1アクセスポイントを介して第1印刷装置に印刷データを送信する第1無線通信部と、
前記第2無線通信方式により無線通信を行い、認証処理をしてから第2印刷装置に前記印刷データを送信する第2無線通信部と、
前記第1印刷装置に付着されたNFCタグから前記第1無線通信方式を特定する情報と前記第1印刷装置を特定する第1印刷装置識別情報とを読み取り、または、前記第2印刷装置に付着されたNFCタグから前記第2無線通信方式を特定する情報と記第2印刷装置を特定する第2印刷装置識別情報とを読み取る読取部と、
前記読取部が、前記第1無線通信方式を特定する情報を読み取った場合、前記第1無線通信部により前記第1アクセスポイントに接続して前記第1印刷装置識別情報に対応した前記第1印刷装置との接続を確立し、前記第2無線通信方式を特定する情報を読み取った場合、前記第2無線通信部により前記第2印刷装置識別情報に対応した前記第2印刷装置に接続し、認証処理をして前記第2印刷装置との接続を確立する制御部と、
を備えることを特徴とする通信システム。
A second printing device capable of receiving the print data after the authentication process by the first printing unit or the second wireless communication method, capable of receiving print data through the access point by the first wireless communication scheme,
A communication terminal device capable of transmitting the print data to the first printing device or the second printing device,
The communication terminal device
A first wireless communication unit that performs wireless communication by the first wireless communication method and transmits print data to the first printing apparatus via a first access point ;
A second wireless communication unit that performs wireless communication by the second wireless communication method, performs authentication processing, and then transmits the print data to a second printing apparatus ;
Read the information specifying the first wireless communication method and the first printing device identification information specifying the first printing device from the NFC tag attached to the first printing device, or attach to the second printing device. is a front Stories second printer identification information reading and reading unit for identifying the information before Symbol second printer that identifies the second wireless communication scheme from the NFC tag,
When the reading unit reads the information specifying the first wireless communication method, the first printing corresponding to the first printing apparatus identification information by connecting to the first access point by the first wireless communication unit. When the connection with the apparatus is established and the information specifying the second wireless communication method is read, the second wireless communication unit connects to the second printing apparatus corresponding to the second printing apparatus identification information and authenticates. a control unit for processing to establish a connection with the second printing device,
A communication system comprising:
第1無線通信方式により無線通信を行い、第1アクセスポイントを介して第1印刷装置に印刷データを送信する第1無線通信部と、第2無線通信方式により無線通信を行い、認証処理をしてから第2印刷装置に前記印刷データを送信する第2無線通信部と、を備える通信端末装置のコンピュータに、
前記第1印刷装置に付着されたNFCタグから前記第1無線通信方式を特定する情と前記第1印刷装置を特定する第1印刷装置識別情報とを読み取り、または、前記第2印刷装置に付着されたNFCタグから前記第2無線通信方式を特定する情と前記第2印刷装置を特定する第2印刷装置識別情報とを読み取る手順と、
前記読み取る手順により、前記第1無線通信方式を特定する情報を読み取った場合、前記第1無線通信部により前記第1アクセスポイントに接続して前記第1印刷装置識別情報に対応した前記第1印刷装置との接続を確立する手順と、
前記読み取る手順により、前記第2無線通信方式を特定する情報を読み取った場合、前記第2無線通信部により前記第2印刷装置識別情報に対応した前記第2印刷装置に接続し、認証処理をして前記第2印刷装置との接続を確立する手順と、
を実行させるためのプログラム。
A wireless communication is performed by the first wireless communication method , and the first wireless communication unit that transmits print data to the first printing apparatus via the first access point, and the wireless communication is performed by the second wireless communication method , and authentication processing is performed. a second wireless communication unit that transmits the pre-Symbol print data to the second printer from a computer of a communication terminal apparatus provided with,
Read-a first printing device identification information identifying the first from the deposited NFC tag to the printing device that identifies the first wireless communication scheme information before Symbol first printing equipment, or the a step of reading the second printing device identification information for identifying the information before Symbol second printer that identifies the second wireless communication scheme from the NFC tag attached to the second printer,
When the information specifying the first wireless communication method is read by the reading procedure, the first printing corresponding to the first printing apparatus identification information by connecting to the first access point by the first wireless communication unit. A procedure for establishing a connection with the device;
When the information specifying the second wireless communication method is read by the reading procedure, the second wireless communication unit connects to the second printing apparatus corresponding to the second printing apparatus identification information, and performs an authentication process. Establishing a connection with the second printing apparatus;
A program for running
第1無線通信方式により無線通信を行い、第1アクセスポイントを介して第1印刷装置に印刷データを送信する第1無線通信部と、第2無線通信方式により無線通信を行い、認証処理をしてから第2印刷装置に前記印刷データを送信する第2無線通信部と、を備える通信端末装置の制御方法であって、
前記第1印刷装置に付着されたNFCタグから前記第1無線通信方式を特定する情と前記第1印刷装置を特定する第1印刷装置識別情報とを読み取り、または、前記第2印刷装置に付着されたNFCタグから前記第2無線通信方式を特定する情と前記第2印刷装置を特定する第2印刷装置識別情報とを読み取るステップと、
前記読み取るステップにより、前記第1無線通信方式を特定する情報を読み取った場合、前記第1無線通信部により前記第1アクセスポイントに接続して前記第1印刷装置識別情報に対応した前記第1印刷装置との接続を確立するステップと、
前記読み取るステップにより、前記第2無線通信方式を特定する情報を読み取った場合、前記第2無線通信部により前記第2印刷装置識別情報に対応した前記第2印刷装置に接続し、認証処理をして前記第2印刷装置との接続を確立するステップと、
を有することを特徴とする通信端末装置の制御方法。
A wireless communication is performed by the first wireless communication method , and the first wireless communication unit that transmits print data to the first printing apparatus via the first access point, and the wireless communication is performed by the second wireless communication method , and authentication processing is performed. a second wireless communication unit that transmits the pre-Symbol print data to a second printer after a control method of a communication terminal apparatus provided with,
Read-a first printing device identification information identifying the first from the deposited NFC tag to the printing device that identifies the first wireless communication scheme information before Symbol first printing equipment, or the a step of reading the second printing device identification information for identifying the information before Symbol second printer that identifies the second wireless communication scheme from the NFC tag attached to the second printer,
When the information specifying the first wireless communication method is read by the reading step, the first printing corresponding to the first printing apparatus identification information by connecting to the first access point by the first wireless communication unit. Establishing a connection with the device;
When the information for specifying the second wireless communication method is read by the reading step, the second wireless communication unit is connected to the second printing device corresponding to the second printing device identification information and performs an authentication process. Establishing a connection with the second printing device;
A control method for a communication terminal apparatus, comprising:
JP2014137690A 2014-07-03 2014-07-03 COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD Active JP6459251B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014137690A JP6459251B2 (en) 2014-07-03 2014-07-03 COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014137690A JP6459251B2 (en) 2014-07-03 2014-07-03 COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2018246966A Division JP6702407B2 (en) 2018-12-28 2018-12-28 Communication terminal device, communication system, program, and communication terminal device control method

Publications (3)

Publication Number Publication Date
JP2016015081A JP2016015081A (en) 2016-01-28
JP2016015081A5 JP2016015081A5 (en) 2017-08-03
JP6459251B2 true JP6459251B2 (en) 2019-01-30

Family

ID=55231205

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014137690A Active JP6459251B2 (en) 2014-07-03 2014-07-03 COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP6459251B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6771955B2 (en) * 2016-06-06 2020-10-21 キヤノン株式会社 Communication equipment and its control method, and programs
JP6784082B2 (en) * 2016-07-25 2020-11-11 ブラザー工業株式会社 Image processing device
JP6786926B2 (en) * 2016-07-25 2020-11-18 ブラザー工業株式会社 Image processing device
JP7115498B2 (en) 2020-03-17 2022-08-09 カシオ計算機株式会社 Wireless communication device, terminal device, wireless communication system, communication connection control method and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005210328A (en) * 2004-01-21 2005-08-04 Fuji Xerox Co Ltd Information processing system, data supply unit, and control method and program of data supply unit
JP4507088B2 (en) * 2004-12-01 2010-07-21 Kddi株式会社 Home communications equipment that supports wireless LAN settings for wireless LAN compatible mobile phones
JP5941300B2 (en) * 2012-03-05 2016-06-29 キヤノン株式会社 Information processing apparatus, information processing apparatus control method, and program
JP5871328B2 (en) * 2013-08-15 2016-03-01 ソニー株式会社 Information processing apparatus and method, and program

Also Published As

Publication number Publication date
JP2016015081A (en) 2016-01-28

Similar Documents

Publication Publication Date Title
US10750049B2 (en) Non-transitory computer-readable information recording medium, information processing apparatus, and communications system
US20160054962A1 (en) Method of setting wireless connection via near field communication function and image forming apparatus for performing the method
JP6686321B2 (en) Program, information processing apparatus, second information processing apparatus, information processing method, information processing system
CN108292199B (en) Information processing apparatus, information processing system, and information processing method
JP6690258B2 (en) Program, information processing device, communication system
JP6482299B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6399771B2 (en) Information processing apparatus, control method thereof, and program
JP6459251B2 (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD
JP7434441B2 (en) Information processing system, information processing device
US10095856B2 (en) Communication device capable of performing a wireless communication according to NFC (abbreviation of near field communication) standard
JP5618866B2 (en) Mobile printing system, image forming apparatus, and program for portable terminal device
JP2016025466A (en) Communication system, communication method, communications apparatus and method of controlling the same, and computer program
US10162583B2 (en) System and method for printing
JP2016015682A (en) Communication system, communication setting method, and terminal device
JP6528365B2 (en) Communication system and communication setting method
CN109005307B (en) Information processing apparatus, communication system, communication method, and recording medium
JP2016181829A (en) Image processing system and image forming apparatus
JP2018196025A (en) Mobile terminal, control method thereof, and program
US11405526B2 (en) Electronic device that performs setup using received communication information and non-transitory computer-readable recording medium therefor
JP6702407B2 (en) Communication terminal device, communication system, program, and communication terminal device control method
JP6375732B2 (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD
KR101456265B1 (en) System and device for remote printing of mobile
US10218875B2 (en) Communication device capable of performing wireless communication according to NFC standard
JP2018112976A (en) Information processing device, communication system, communication method, and program
JP2017158017A (en) Radio communication apparatus, system, method, and program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170620

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170620

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180424

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180622

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20181204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181217

R150 Certificate of patent or registration of utility model

Ref document number: 6459251

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150