JP2019067449A - Communication terminal device, communication system, program, and method for controlling communication terminal device - Google Patents

Communication terminal device, communication system, program, and method for controlling communication terminal device Download PDF

Info

Publication number
JP2019067449A
JP2019067449A JP2018246966A JP2018246966A JP2019067449A JP 2019067449 A JP2019067449 A JP 2019067449A JP 2018246966 A JP2018246966 A JP 2018246966A JP 2018246966 A JP2018246966 A JP 2018246966A JP 2019067449 A JP2019067449 A JP 2019067449A
Authority
JP
Japan
Prior art keywords
communication
unit
control target
target device
communication terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018246966A
Other languages
Japanese (ja)
Other versions
JP6702407B2 (en
Inventor
敏浩 萩原
Toshihiro Hagiwara
敏浩 萩原
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 JP2018246966A priority Critical patent/JP6702407B2/en
Publication of JP2019067449A publication Critical patent/JP2019067449A/en
Application granted granted Critical
Publication of JP6702407B2 publication Critical patent/JP6702407B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a communication terminal device that can easily select a communication system suitable for a control target device to be connected out of a plurality of communication systems and can perform connection setting for it.SOLUTION: A communication terminal device includes: a first communication unit 34 and a second communication unit 35 that have different communication systems from each other; an NFC reading unit 31 that reads I/F information indicating a communication system of a printing device 2, and a MAC address or Bluetooth address specifying the printing device 2; and a transmission destination setting unit 562 that selects the first communication unit 34 or the second communication unit 35 on the basis of information read by the NFC reading unit 31, and establishes connection with the printing device 2 by using the selected communication unit.SELECTED DRAWING: Figure 4

Description

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

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

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

このように、従来、情報を読み取り、読み取った情報に基づく処理を実行する技術はあったが、適用範囲が限られていた。このため、例えば、制御対象装置の通信方式を設定する場合、接続しようとする制御対象装置に適した通信方式を多数の通信方式の中から選択して、選択した通信方式にあった接続設定を行わなければならなかった。従って、制御対象装置との接続作業の煩雑さの軽減が十分になされていなかった。
本発明は上記事情に鑑みてなされたものであり、多数の通信方式の中から、容易に、接続する制御対象装置に適した通信方式を選択し、その接続設定を行うことができる通信端末装置、通信システム、プログラム、及び、通信端末装置の制御方法を提供することを目的とする。
As described above, conventionally, there has been technology for reading information and executing processing based on the read information, but the application range has been limited. Therefore, 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 large number of communication methods, and the connection setting corresponding to the selected communication method is selected. I had to do it. 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 a communication terminal device capable of easily selecting a communication method suitable for a control target device to be connected from among a large number of communication methods, and setting the connection. It is an object of the present invention to provide a communication system, a program, and a control method of a communication terminal apparatus.

上記目的を達成するために、本発明の通信端末装置は、通信方式の異なる複数の通信部と、制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る読取部と、前記読取部が読み取った情報に基づいていずれかの前記通信部を選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立する制御部と、を備えたことを特徴とする。
本発明によれば、通信方式の中から、容易に、接続する制御対象機器に適した通信方式を選択し、その接続設定を行うことができる。
In order to achieve the above object, a communication terminal apparatus according to 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 identifying the control target device. A control unit configured to select one of the communication units based on the information read by the reading unit and to establish a connection with the control target device using the selected communication unit. It is characterized by
According to the present invention, it is possible to easily select from the communication methods a communication method suitable for the control target device to be connected, and to perform the connection setting.

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

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

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

また、本発明は、上記通信端末装置において、前記制御部は、前記Bluetoothアドレスを用いて前記制御対象機器とのペアリングにより接続を確立し、前記制御対象機器にBluetooth通信によりデータを送信することを特徴とする。
本発明によれば、制御対象機器にBluetooth通信によりデータを送信することができる。
In the communication terminal device 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 through 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次元コードに基づき前記通信方式を示す情報と前記識別情報とを読み取ることを特徴とする。
本発明によれば、通信方式を示す情報と識別情報とを簡単な操作で、制御対象機器から読み取ることができる。
Further, in the communication terminal device according to the present invention, the reading unit reads the information indicating the communication scheme and the identification information by near field communication with an NFC tag attached to a housing 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 housing of the control target device.
According to the present invention, the information indicating the communication method and the identification information can be read from the control target device by a simple operation.

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

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

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

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

POSシステムのシステム構成図である。It is a system configuration figure of a POS system. 第1印刷装置の構成図である。FIG. 2 is a block diagram of a first 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 the QR code stuck to 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 device. アドレス管理テーブルの作成手順を示すシーケンス図である。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 touch panel 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 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 attached 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 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 devices 2 as control target devices and a plurality of communication terminal devices 3 for controlling the printing devices 2. The POS system 1 further includes a plurality of access points (wireless LAN access points) 4 that perform communication by wireless LAN (Local Area Network) (for example, Wi-Fi (registered trademark) or the like). The plurality of access points 4 are connected by the in-store LAN 6.
In the present embodiment, there are two types of printing devices 2 of the first printing device 2A and the second printing device 2B. The first printing device 2A is a device that includes a communication unit that communicates by a wireless LAN, and that communicates with the communication terminal device 3 via the access point 4. The second printing apparatus 2B includes a communication unit that performs communication by near field communication such as Bluetooth (registered trademark), and performs communication with the communication terminal apparatus 3 by near field communication. In the following description, when the first printing device 2A and the second printing device 2B are collectively referred to, the printing device 2 is described.

図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 block diagram of the first printing device 2A, and FIG. 3 is a block diagram of the second printing device 2B. The printing apparatus 2 will be described with reference to FIGS. 2 and 3.
First, the configuration of the first printing apparatus 2A will be described with reference to FIG. The first printing device 2A is, for example, a portable mobile printer. The first printing apparatus 2A includes an NFC (Near Field Communication) tag 21A attached to an apparatus case 20 (see FIG. 1), and a first communication unit 22A that communicates with the access point 4 by wireless LAN. The first printing apparatus 2A also includes a printing unit 23 that performs printing, and a print control unit 24A that controls the first communication unit 22A 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, 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 present in a short distance where communication is possible. NFC is an international standard for wireless communication, and is a low-power wireless communication technology in a short distance of a few tens of centimeters. In the NFC tag 21A, interface (hereinafter abbreviated as I / F) information, a model name, and a MAC address are stored as tag information. The I / F information is information indicating a communication I / F included in the first printing device 2A, that is, 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 device 2A. The MAC address is identification information for identifying the first printing apparatus 2A, and is a MAC address of a wireless communication device (described later) included 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 network interface card (NIC) as a wireless communication device, performs wireless communication by a wireless LAN (for example, Wi-Fi), and connects 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 sheet 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 print unit 23 to print (issue) the print data on a receipt sheet.
The print control unit 24A also 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 device 2B is also a portable mobile printer. The second printing device 2B also includes the NFC tag 21B attached to the device case 20 (see FIG. 1). The second printing apparatus 2B also includes a second communication unit 22B that communicates with the communication terminal 3 by near field 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 existing in 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 for identifying the second printing apparatus 2B, and is an address of the second communication unit 22B that performs communication by near field 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 compliant with Bluetooth. The second communication unit 22B performs identification processing (authentication) of a connection partner called common name pairing using a Bluetooth address with another Bluetooth compatible device (the communication terminal device 3 in the present embodiment). Thereafter, the second communication unit 22B performs Bluetooth communication with another Bluetooth compatible device.

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

印刷制御部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 print unit 23 to print (issue) the print data on a receipt sheet. The print control unit 24B also includes a memory 25B. The memory 25 </ b> B stores the Bluetooth address necessary for establishing the short distance wireless communication by the second communication unit 22 </ b> B.

次に、図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. An example of a structure of the communication terminal device 3 is shown in FIG. The communication terminal device 3 is configured 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, and 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 that controls them.

NFC読取部31は、不図示のアンテナやICチップ等を備え、印刷装置2の筐体に貼付されたNFCタグ21A、21Bの情報を近距離無線通信により読み取るリーダーである。NFC読取部31により読み取られたタグ情報は、後述する制御部50の送信先設定部562(図7参照)に送られる。   The NFC reading unit 31 is a reader that includes an antenna, an IC chip, and the like (not shown) and reads information of the NFC tags 21A and 21B attached to the housing of the printing apparatus 2 by near field 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 substantially in the entire area of the front surface of the communication terminal device 3, and displays various information under the control of the control unit 50. In addition, the touch panel 32 includes a capacitive or pressure-sensitive sensor (not shown) that detects a touch operation, and the sensor detects a touch operation on the touch panel 32 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 the QR code (registered trademark) 27 attached to the device case 20 of the printing device 2. As shown in FIG. 5, a QR code 27 in which a MAC address is two-dimensionally coded may be attached to the printing apparatus 2 instead of the NFC tags 21A and 21B.

第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 by 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 2A via the access point 4 by 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 compliant with Bluetooth. Similarly to the second communication unit 22B, the second communication unit 35 performs pairing with another Bluetooth compatible device (the second printing apparatus 2B in the present embodiment) using a Bluetooth address. Thereafter, the second communication unit 35 performs Bluetooth communication with another Bluetooth compatible device.

制御部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 central processing unit (CPU) 51, a read only memory (ROM) 52, a random access memory (RAM) 53, a non-volatile 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 (POS application 522 and print control application 523 described later). As the OS 521, a widely known OS such as iOS (registered trademark), Android (registered trademark), Windows (registered trademark) RT, or Windows (registered trademark) 8 can be adopted. The RAM 53 is used as a work memory of 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 non-volatile memory 54 of the communication terminal device 3. FIG. 6 shows an example of the address management table. In the address management table, the MAC address and the IP address are registered in association with each other. The MAC address is an address of the first communication unit 22A included in each of the first printing apparatuses 2A connected to the access point 4. The IP address is the address of the first printing device 2A corresponding to the MAC address. The method of acquiring these addresses will be described later. Further, in the non-volatile memory 54, the Bluetooth address necessary for establishing the short distance wireless communication by the second communication unit 35 is stored. The non-volatile memory 54 is a storage device for storing data even after the power of the communication terminal device 3 is turned off. For example, a flash memory, an EEPROM, an SD card, a magnetic storage device, etc. 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 blocks are realized by cooperation of hardware and software, such as the CPU 51 of the control unit 50 reads and executes the program stored in the ROM 52. The control unit 50 includes, as functional blocks, an accounting processing unit 55 that performs accounting processing, and a print control unit 56 that performs printing control. The accounting processing unit 55 is realized by the CPU 51 reading out and executing the POS application 522 stored in the ROM 52, and the communication terminal device 3 functions as an accounting processing device. Similarly, in the print control unit 56, when the CPU 51 executes the print control application 523, the communication terminal device 3 functions as a print control device.

会計処理部55は、店員等のオペレーターがタッチパネル32により入力した商品情報に基づいて決済処理(会計処理)を実行する。そして、会計処理部55は、決済処理の処理結果である決済情報に基づいてレシート印刷用の印刷データを生成する。会計処理部55は、生成した印刷データを印刷データ送信部563に渡す。   The accounting processing unit 55 executes settlement processing (accounting processing) 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 settlement information that is the processing result of the settlement 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 in the NFC tag 21 of the printing device 2. First, the operator who holds the communication terminal device 3 brings the communication terminal device 3 close to the NFC tag 21A (21B) of the printing device 2 for which 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 that allows near field communication, the reading control unit 561 controls the NFC reading unit 31, and the NFC tag 21A The tag information recorded in (21 B) is read. In addition, the reading control unit 561 inputs a photographed 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 device 2 is the first printing device 2A, the NFC reading unit 31 reads the I / F type, the model name, and the MAC address as tag information. When the printing device 2 is the second printing device 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 to be 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 by 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 system of the printing apparatus 2 is Bluetooth according to the I / F type, the short distance to the printing apparatus 2 is obtained using the Bluetooth address of the printing apparatus 2 acquired by the tag information Establish wireless communication. Specifically, the transmission destination setting unit 562 controls the second communication unit 35 to search for Bluetooth compatible devices present around the device, and performs pairing, which is an authentication procedure, with the device of the Bluetooth address acquired by the tag information. Do.

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

印刷データ送信部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 device 2 set by the transmission destination setting unit 562. Specifically, when connected to the wireless LAN by the first communication unit 34, 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 device 2 via the access point 4. When near field communication with the printing apparatus 2 by the second communication unit 35 is established, the print data is transmitted to the printing apparatus 2 connected by the near field 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にそれぞれ送信される。
The procedure of creating the 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 transmits a request packet for requesting transmission of the IP address and the MAC address at predetermined timing such as timing when the communication terminal device 3 is started, when the print control application 523 is started, and timing when connected to the network. Generate The transmission destination setting unit 562 sets a broadcast address in 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 the request packet to the in-store LAN 6. FIG. 8 shows the case where the printing apparatuses 2 connected to the in-store LAN 6 are three of the first printing apparatuses 2A-1, 2A-2, and 2A-3. The broadcasted request packets are transmitted to the first printing devices 2A-1, 2A-2, and 2A-3, respectively.

リクエストパケットを受信した各第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のレジストリに保存してもよい。
Each of the first printing devices 2A-1, 2A-2 and 2A-3 which has received the request packet uses the MAC address and the IP address of its own according to the request packet as the response packet, and the communication terminal device 3 of the request source of the request packet Reply to For example, in the memory 25A of the print control unit 24A of the first printing device 2A-1, the MAC address and the IP address of the first printing device 2A-1 are stored as device information. When the print control unit 24A receives the request packet through the first communication unit 22A, the print control unit 24A reads the 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 processing is performed on the other first printing devices 2A-2 and 2A-3 in the same manner as the first printing device 2A-1.
The MAC address of the device information may be stored in a memory (not shown) of the first communication unit 22A. Further, the IP address may be stored in the registry of the OS provided in the print control unit 24A.

通信端末装置3の送信先設定部562は、第1印刷装置2A−1、2A−2、2A−3から応答パケットを受信すると、受信した応答パケットからMACアドレスと、IPアドレスとを取り出す。送信先設定部562は、取り出したMACアドレスと、IPアドレスとを対応づけて、図6に示すアドレス管理テーブルに登録する。   When the transmission destination setting unit 562 of the communication terminal device 3 receives the response packet from the first printing device 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 the address 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 device 2A is read by the NFC reading unit 31, the transmission destination setting unit 562 refers to the address management table and refers to the 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 the print data.

次に、フローチャートを参照しながら、通信端末装置3の処理手順を説明する。まず、図6に示したアドレス管理テーブルを作成する手順を図9に示すフローチャートを参照しながら説明する。なお、アドレス管理テーブルの作成処理は、制御部50の送信先設定部562による制御により実現される。また、送信先設定部562が、アドレス管理テーブルの作成処理を実行するタイミングは、通信端末装置3の起動時、印刷制御アプリケーション523の起動時、ネットワークに接続したタイミング等の所定のタイミングで行う。   Next, the processing procedure of the communication terminal device 3 will be described with reference to the 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 process of creating the address management table is realized by the control of the transmission destination setting unit 562 of the control unit 50. The transmission destination setting unit 562 executes the creation process of the address management table at a predetermined timing such as the timing of activation of the communication terminal device 3, the activation of the print control application 523, and the timing of connection 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 for requesting transmission of the IP address and the MAC address. After generating the request packet, the transmission destination setting unit 562 sets a broadcast address in the 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)。   After broadcasting the request packet, 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 the IP address contained 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 a predetermined time has elapsed from the transmission of the request packet performed in step S2 (step S5). That is, the transmission destination setting unit 562 determines whether the timeout time has elapsed. If the determination is affirmative (step S5 / YES), the transmission destination setting unit 562 ends this process. Also, in the case of a negative determination (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, transmission destination setting processing 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. The transmission destination setting process is performed under the control of the reading control unit 561 of the control unit 50 and the transmission destination setting unit 562.

送信先設定処理を行う場合、まず、オペレーターにより、通信端末装置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 closer to the NFC tag 21A (21B) of the selected printing device 2. At this time, the transmission destination setting unit 562 causes the touch panel 32 of the communication terminal device 3 to display 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 that allows near field communication, the reading control unit 561 controls the NFC reading unit 31 to set the NFC tag Read tag information recorded in 21A (21B). 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 the transmission destination setting unit 562 receives the tag information output from the NFC reading unit 31 (step S11), the communication method of the printing apparatus 2 having read the tag information with reference to the I / F information included in the tag information Determine When the transmission destination setting unit 562 determines that the communication method is Bluetooth based on the I / F information (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 of the printing apparatus 2 (second printing apparatus 2B) to be paired, the Bluetooth address, etc. (see FIG. 11B), and the pairing Display a message asking if you are OK. When receiving the input permitting the pairing, the transmission destination setting unit 562 performs pairing with the second printing device 2B that has read the Bluetooth address according to the tag information, and establishes a connection with the second printing device 2B by 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 the wireless LAN (step S13). When the transmission destination setting unit 562 determines that the communication method is the wireless LAN based on the I / F information (step S13 / YES), it controls the first communication unit 34 to perform connection processing to the wireless LAN (step S13). S14). The transmission destination setting unit 562 acquires, from the address management table, the IP address of the first printing apparatus 2A that has read the MAC address according to the tag information. Then, the transmission destination setting unit 562 causes the touch panel 32 to display the model name, IP address, and MAC address of the printing device 2 (see FIG. 11C), and the printing device in which the transmission destination of the print data is displayed Display a message asking whether or not to set to 2. 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 transmits the print data to the acquired IP address. Set to address.

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

次に、図12に示すフローチャートを参照しながら、レシートを発行する印刷処理について説明する。通信端末装置3における印刷処理は、会計処理部55及び印刷データ送信部563による制御により実現される。また、この印刷処理は、図9を参照して説明したアドレス管理テーブル作成処理と、図10に示す送信先設定処理とを行い、印刷データの送信先が設定された状態で行われる。
会計処理部55は、店員等のオペレーターがタッチパネル32により入力した商品情報に基づいて決済処理(会計処理)を実行する。そして、会計処理部55は、決済処理の処理結果である決済情報に基づいてレシート印刷用の印刷データを生成する(ステップS21)。会計処理部55は、生成した印刷データを印刷データ送信部563に渡す。
Next, print processing for issuing a receipt will be described with reference to the flowchart shown in FIG. The print processing in the communication terminal device 3 is realized by control by the accounting processing unit 55 and the print data transmission unit 563. Further, this printing process is performed in a state where the print data transmission destination is set by performing the address management table creating process described with reference to FIG. 9 and the transmission destination setting process shown in FIG.
The accounting processing unit 55 executes settlement processing (accounting processing) 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 settlement information which is the processing result of the settlement 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 passed from the transmission destination setting unit 562 to the printing apparatus 2 (step S22). At this time, if there is a second printing device 2B that has been paired, the print data transmission unit 563 transmits print data to the second printing device 2B that has been paired, under the control of the transmission destination setting unit 562 Do. When the first communication unit 34 is connected to the access point 4 under the control of the transmission destination setting unit 562 and the IP address is set as the destination address under the control of the transmission destination setting unit 563, the set IP Send print data to an address.

印刷装置2は、無線LANによる通信、又は近距離無線通信により印刷データを受信すると(ステップS31)、受信した印刷データに基づいて、レシートを印刷(発行)する(ステップS32)。   When the printing apparatus 2 receives the print data by wireless LAN communication or near field 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. Upon receiving the status request (step S33), the printing device 2 generates status information indicating the status of the printing process, and transmits the status information to the communication terminal device 3 that transmitted the request (step S34). The status information includes, for example, “normal termination” when printing is normally terminated, “receipt paper out”, “ink out” and the like indicating the cause when printing is not terminated.

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

なお、上述した実施形態では、印刷装置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 embodiment described above, 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. Other than this, the I / F information and the address may be converted into the QR code 27 and attached to the device case 20 of the printing device 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 read 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, in the present embodiment, the tag information of the NFC tag 21A (21B) attached to the printing device 2 is read, and the communication unit (the first communication unit 34 or the second communication unit matched with the communication method included in the printing device 2) The communication terminal device 3 can be connected to the printing device 2 by selecting 35). Therefore, it is possible to easily select a communication method suitable for the printing apparatus 2 to be connected from among a large number of communication methods, and to perform the connection setting.

なお、図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 does not register “MAC address in the touch panel 32. You may want to display a 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 device 2A that has read the MAC address to a wireless LAN (access point)”. Furthermore, when the transmission destination setting unit 562 receives an operation input for connecting the corresponding first printing device 2A to the wireless LAN by the touch panel 32, the transmission destination setting unit 562 wirelessly transmits the first printing device 2A according to the procedure shown in FIG. Connect to the access point 4 of the LAN.

図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 established by the access point 4 will be described with reference to the flowchart shown in FIG.
In this processing flow, first, the first printing device 2A is made to function as an access point, and a mode (direct connection mode) in which the communication terminal 3 is directly connected to the first printing device 2A as an access point is executed. A procedure for connecting the first printing device 2A to the wireless LAN by connecting the first printing device 2A and the communication terminal device 3 in the direct connection mode with reference to the flowchart shown in FIG. 13 will be described.

オペレーターが、第1印刷装置2Aの操作部(不図示)と、通信端末装置3のタッチパネル32とを操作して、所定の操作を入力(ステップS51、S61)することで、直接接続モードが開始される。   The operator operates the operation unit (not shown) of the first printing apparatus 2A and the touch panel 32 of the communication terminal 3 to input a predetermined operation (steps S51 and S61), and the direct connection mode is started. Be 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 each start wireless communication using the default SSID and the security key (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 participating 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 wireless communication with the first printing device 2A is started, the communication terminal device 3 transmits the SSID of the access point 4 and the security key to the first printing device 2A (step S63). When the first printing device 2A receives the SSID and the security key from the communication terminal device 3 (step S53), the first printing device 2A transmits a reception confirmation indicating that the SSID and the security key have been normally received to the communication terminal device 3. The first printing device 2A may further transmit the MAC address and the IP address of the first printing device 2A to the communication terminal device 3 after transmitting the reception confirmation to the communication terminal device 3. By notifying the communication terminal device 3 of the MAC address and the IP address of the first printing device 2A, the communication terminal device 3 can immediately start communication via the first printing device 2A and the access point 4. When the communication terminal 3 receives the MAC address and the IP address transmitted from the first printing device 2A, the communication terminal 3 registers the received MAC address and the IP address in the address management table.
The first printing device 2A that has received the SSID and the security key from the communication terminal device 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 is connected to the access point 4 by wireless communication by the first communication unit 22A (step S56). Further, the communication terminal apparatus 3 sets the SSID and the security key transmitted to the first printing apparatus 2A in the first communication unit 34, and switches the access point to be connected from the first printing apparatus 2A to the access point 4 (step S65). ). The communication terminal apparatus 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 the 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, according to the present embodiment, even when the first printing device 2A is not connected to the access point 4, the communication terminal device 3 and the first printing device 2A are directly connected in one-to-one communication terminal The connection setting of the first printing device 2A can be performed by the device 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. Further, the communication terminal device 3 has registered the MAC address and the IP address received from the first printing device 2A in the address management table. Other than this, when the transmission destination setting unit 562 of the communication terminal device 3 is connected 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, associates the received MAC address with the IP address as a response, sign up. As a result, the MAC address and IP address of the first printing device 2A newly connected to the access point 4 can be registered in the address management table of the communication terminal device 3.
Further, in the above-described flow, the case where the first printing device 2A is made to function as an access point has been described as an example, but the communication terminal device 3 is operated as an access point, that is, a parent device and the first printing device 2A is made a child device 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 I / F information indicating the communication method of the printing apparatus 2 and a Bluetooth address or MAC address specifying the printing apparatus 2. The transmission destination setting unit 562 selects the first communication unit 34 or the second communication unit 35 on the basis of the I / F information read by the NFC reading unit 31 and the Bluetooth address or the MAC address. Establish a connection Therefore, it is possible to easily select the communication method included in the printing apparatus 2 to be connected, and perform the connection setting 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 in the first communication unit 34 or the second communication unit 35 as a printing device. Establish a connection with 2. Therefore, it becomes 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に接続することが可能となる。
The transmission destination setting unit 562 identifies the printing apparatus 2 based on the MAC address, and establishes communication with the identified printing apparatus 2 by wireless LAN. Therefore, the printing apparatus 2 can be identified by the read MAC address, and communication with the identified printing apparatus 2 can be established by the wireless LAN.
Further, when the transmission destination setting unit 562 reads the Bluetooth address by the NFC reading unit 31, the transmission destination setting unit 562 communicates with the printing device 2 by the second communication unit 35 corresponding to Bluetooth among the first communication unit 34 or the second communication unit 35. Establish a connection. Therefore, it becomes possible to connect the printing apparatus 2 provided with Bluetooth as a communication method to the communication terminal apparatus 3.

また、送信先設定部562は、Bluetoothアドレスを用いて印刷装置2とのペアリングにより接続を確立して、印刷装置2にBluetooth通信により印刷データを送信する。従って、印刷装置2にBluetooth通信により印刷データを送信することができる。   The transmission destination setting unit 562 establishes connection by pairing with the printing apparatus 2 using the Bluetooth address, and transmits print data to the printing apparatus 2 by Bluetooth communication. Therefore, 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から読み取ることができる。
The NFC reading unit 31 also performs I / F information indicating the communication method of the printing device 2 by near field communication with the NFC tag 21A (21B) attached to the housing of the printing device 2, and the printing device 2 Read the specified Bluetooth address or MAC address.
In addition, a two-dimensionally coded QR code 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 specifying the printing device 2 by analyzing and decoding the image of the QR code captured by the imaging camera 33. Therefore, the I / F information and the Bluetooth address or MAC address specifying the printing device 2 can be read from the printing device 2 by a simple operation.

なお、上述した実施形態は、本発明の好適な実施の形態である。ただし、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形実施が可能である。例えば、上記実施形態では制御対象機器として印刷装置2を備えた構成例を説明したが、本発明はこれに限定されるものではなく、画像を光学的に読み取るスキャナー装置や、画像を表示する表示装置、又はその他の装置を備えた構成とすることもできる。   The embodiment described above 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, although the configuration example including the printing apparatus 2 as the control target apparatus has been described in the above embodiment, 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 may be configured to include a device or other devices.

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…印刷データ送信部。   1 POS system 2 printing device (control target device) 2A first printing device (control target device) 2B second printing device (control target device) 3 communication terminal device 4 access point 6. In-store LAN, 21A, 21B: NFC tag, 22A: first communication unit (communication unit), 22B: second communication unit (communication unit), 23: printing unit, 24A, 24B: printing control unit, 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 processor, 56 ... print control unit, 521 ... OS, 522 ... POS application, 523 ... print control application, 561 ... reading control unit, 562 ... transmission destination setting unit, 563 ... print data transmission unit.

Claims (10)

通信方式の異なる複数の通信部と、
制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る読取部と、
前記読取部が読み取った情報に基づいていずれかの前記通信部を選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立する制御部と、
を備えたことを特徴とする通信端末装置。
Multiple communication units with different communication methods,
A reading unit that reads information indicating a communication method of a control target device, and identification information that specifies the control target device;
A control unit that selects any one of the communication units based on the information read by the reading unit and establishes a connection with the control target device using the selected communication unit;
A communication terminal apparatus comprising:
前記制御部は、前記読取部により、前記識別情報としてMACアドレスが読み取られた場合、無線LANに対応した前記通信部を選択して前記制御対象機器との接続を確立することを特徴とする請求項1記載の通信端末装置。   The control unit is characterized in that, when the reading unit reads a MAC address as the identification information, the control unit selects the communication unit compatible with a wireless LAN and establishes a connection with the control target device. The communication terminal device according to claim 1. 前記制御部は、前記読取部により読み取られたMACアドレスに基づき前記制御対象機器を特定して、前記制御対象機器と無線LANで通信を確立することを特徴とする請求項2記載の通信端末装置。   The communication terminal apparatus according to claim 2, wherein 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 in a wireless LAN. . 前記制御部は、前記読取部により、前記識別情報としてBluetoothアドレスが読み取られた場合、Bluetoothに対応した前記通信部を選択して前記制御対象機器との接続を確立することを特徴とする請求項1から3のいずれか一項に記載の通信端末装置。   The control unit is characterized in that, when the reading unit reads the Bluetooth address as the identification information, the control unit selects the communication unit compatible with Bluetooth to establish a connection with the control target device. The communication terminal device according to any one of 1 to 3. 前記制御部は、前記Bluetoothアドレスを用いて前記制御対象機器とのペアリングにより接続を確立し、前記制御対象機器にBluetooth通信によりデータを送信することを特徴とする請求項4記載の通信端末装置。   5. The communication terminal apparatus according to claim 4, wherein the control unit establishes connection by pairing with the control target device using the Bluetooth address, and transmits data to the control target device by Bluetooth communication. . 前記読取部は、前記制御対象機器の筐体に付着されたNFCタグとの近距離無線通信により前記通信方式を示す情報と前記識別情報とを読み取り、或いは、前記制御対象機器の筐体に付着された2次元コードに基づき前記通信方式を示す情報と前記識別情報とを読み取ることを特徴とする請求項1から5のいずれか一項に記載の通信端末装置。   The reading unit reads information indicating the communication scheme and the identification information by near field communication with an NFC tag attached to a housing of the control target device, or attaches the information to the housing of the control target device The communication terminal apparatus according to any one of claims 1 to 5, wherein the information indicating the communication method and the identification information are read based on the two-dimensional code. 前記制御対象機器は、印刷装置であることを特徴とする請求項1から6のいずれか一項に記載の通信端末装置。   The communication terminal device according to any one of claims 1 to 6, wherein the control target device is a printing device. 通信ネットワークに接続された複数の制御対象機器と、
前記複数の制御対象機器から選択された前記制御対象機器に処理を実行させる通信端末装置とを備える通信システムであって、
前記通信端末装置は、
通信方式の異なる複数の通信部と、
前記選択された前記制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る読取部と、
前記読取部が読み取った情報に基づいていずれかの前記通信部を選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立する制御部と、
を備えることを特徴とする通信システム。
A plurality of control target devices connected to a communication network;
A communication system comprising: 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 is
Multiple communication units with different communication methods,
A reading unit that reads information indicating a communication method of the selected control target device, and identification information that specifies the control target device;
A control unit that selects any one of the communication units based on the information read by the reading unit and establishes a connection with the control target device using the selected communication unit;
A communication system comprising:
通信端末装置のコンピュータに、
制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取る手順と、
読み取った情報に基づいて通信方式の異なる複数の通信部のいずれかを選択して、選択した前記通信部を使用して前記制御対象機器との接続を確立する手順と、
を実行させるためのプログラム。
In the computer of the communication terminal device,
A procedure for reading information indicating a communication method of a control target device, and identification information for identifying the control target device;
A procedure of selecting any of a plurality of communication units having different communication methods based on the read information and establishing a connection with the control target device using the selected communication unit;
A program to run a program.
制御対象機器の通信方式を示す情報と、前記制御対象機器を特定する識別情報とを読み取るステップと、
読み取った情報に基づいて通信方式の異なる複数の通信部のいずれかを選択し、選択した前記通信部を使用して前記制御対象機器との接続を確立するステップと、
を有することを特徴とする通信端末装置の制御方法。
Reading information indicating a communication method of a control target device, and identification information identifying the control target device;
Selecting one of a plurality of communication units having different communication methods based on the read information, and establishing a connection with the device to be controlled using the selected communication unit;
A control method of a communication terminal apparatus, comprising:
JP2018246966A 2018-12-28 2018-12-28 Communication terminal device, communication system, program, and communication terminal device control method Active JP6702407B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
JP2019067449A true JP2019067449A (en) 2019-04-25
JP6702407B2 JP6702407B2 (en) 2020-06-03

Family

ID=66339818

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP6702407B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7396022B2 (en) 2019-12-19 2023-12-12 日本電気株式会社 Voting system, voting method and voting program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011147004A (en) * 2010-01-15 2011-07-28 Fujitsu Toshiba Mobile Communications Ltd Radio communication device
JP2013517659A (en) * 2010-01-14 2013-05-16 エルジー エレクトロニクス インコーポレイティド Electronic device and method of operating electronic device
JP2013157737A (en) * 2012-01-27 2013-08-15 Canon Inc Communication apparatus, control method, and program
JP2013214802A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013517659A (en) * 2010-01-14 2013-05-16 エルジー エレクトロニクス インコーポレイティド Electronic device and method of operating electronic device
JP2011147004A (en) * 2010-01-15 2011-07-28 Fujitsu Toshiba Mobile Communications Ltd Radio communication device
JP2013157737A (en) * 2012-01-27 2013-08-15 Canon Inc Communication apparatus, control method, and program
JP2013214802A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7396022B2 (en) 2019-12-19 2023-12-12 日本電気株式会社 Voting system, voting method and voting program

Also Published As

Publication number Publication date
JP6702407B2 (en) 2020-06-03

Similar Documents

Publication Publication Date Title
US10547468B2 (en) Communication apparatus, communication method, and storage medium
US10750049B2 (en) Non-transitory computer-readable information recording medium, information processing apparatus, and communications system
JP6776023B2 (en) Communication equipment, communication methods, and programs
US11296749B2 (en) Communication system, communication apparatus, method of controlling the same, and storage medium
US10387088B2 (en) Apparatus, method and system for detecting whether an MFP is within a threshold distance
CN108292199B (en) Information processing apparatus, information processing system, and information processing method
JP6482299B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP2023098925A (en) Communication apparatus
WO2020054365A1 (en) Communication device, communication method, and program
JP2016025466A (en) Communication system, communication method, communications apparatus and method of controlling the same, and computer program
JP6459251B2 (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD
JP2022140468A (en) Information processing system and information processing device
JP2024029126A (en) Programs and information processing terminals
US20200311357A1 (en) Authentication processing system, authentication method and image processing apparatus
EP3451786A1 (en) Method for establishing wireless connection of image forming device by using mobile terminal, and image forming device for performing same
JP6702407B2 (en) Communication terminal device, communication system, program, and communication terminal device control method
US10098161B2 (en) Information processing apparatus and non-transitory computer readable medium
US10932314B2 (en) Communication apparatus, control method, and storage medium
JP7196248B2 (en) Communication device, control method and program
JP6623872B2 (en) Information processing apparatus, image forming apparatus, and information processing program
JP6375732B2 (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD
JP2019068338A (en) Communication device, image forming apparatus, communication method, and program
JP7262949B2 (en) Communication device, communication method and program
JP6472494B2 (en) COMMUNICATION DEVICE CONTROL METHOD, COMMUNICATION SYSTEM, AND PROGRAM
JP2018112976A (en) Information processing device, communication system, communication method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190124

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200217

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200420

R150 Certificate of patent or registration of utility model

Ref document number: 6702407

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150