JP6638786B2 - Communication equipment - Google Patents

Communication equipment Download PDF

Info

Publication number
JP6638786B2
JP6638786B2 JP2018175881A JP2018175881A JP6638786B2 JP 6638786 B2 JP6638786 B2 JP 6638786B2 JP 2018175881 A JP2018175881 A JP 2018175881A JP 2018175881 A JP2018175881 A JP 2018175881A JP 6638786 B2 JP6638786 B2 JP 6638786B2
Authority
JP
Japan
Prior art keywords
printer
connection
terminal device
interface
signal
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
JP2018175881A
Other languages
Japanese (ja)
Other versions
JP2019024221A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018175881A priority Critical patent/JP6638786B2/en
Publication of JP2019024221A publication Critical patent/JP2019024221A/en
Priority to JP2019235261A priority patent/JP6919704B2/en
Application granted granted Critical
Publication of JP6638786B2 publication Critical patent/JP6638786B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本明細書では、複数の通信方式に従った無線通信を実行可能な通信機器を開示する。   This specification discloses a communication device that can execute wireless communication according to a plurality of communication methods.

特許文献1には、第1端末と外部機器とがWi−Fiに従った無線通信を実行するための技術が開示されている。第1端末は、第1端末自身が接続されているAP(Access Pointの略)に関する情報(即ち、MACアドレス、SSID、チャネル番号、保安キー等)を、BLE(Bluetooth(登録商標) Low Energyの略)を介して、外部機器に送信する。この場合、外部機器は、Wi−Fiモジュールを活性化し、当該情報を利用してAPに接続する。これにより、第1端末と外部機器とがWi−Fiに従った無線通信を実行することができる。   Patent Literature 1 discloses a technique for executing wireless communication according to Wi-Fi between a first terminal and an external device. The first terminal transmits information (that is, a MAC address, an SSID, a channel number, a security key, etc.) relating to an AP (an abbreviation of Access Point) to which the first terminal itself is connected, by using BLE (Bluetooth (registered trademark) Low Energy ) To the external device. In this case, the external device activates the Wi-Fi module and connects to the AP using the information. Thus, the first terminal and the external device can execute wireless communication according to Wi-Fi.

特開2014−53007号公報JP 2014-53007 A

上述したように、特許文献1には、第1端末が、BLEを介した無線通信を外部機器と実行した後に、Wi−Fiに従った無線通信を外部機器と実行するための技術が開示されている。本明細書では、通信機器が、第2の通信方式に従った無線通信を実行した後に、第1の通信方式に従った無線ネットワークを形成するための新規な技術を開示する。   As described above, Patent Literature 1 discloses a technique in which a first terminal executes wireless communication via BLE with an external device and then executes wireless communication according to Wi-Fi with the external device. ing. The present specification discloses a novel technique for forming a wireless network according to a first communication scheme after a communication device executes wireless communication according to a second communication scheme.

本明細書によって開示されるプリンタは、印刷実行部と、メモリと、Wi−Fi方式に従った無線通信を実行するためのWi−Fiインターフェースと、Bluetooth方式に従った無線通信を実行するためのBluetoothインターフェースと、前記Bluetoothインターフェースを介したBluetooth接続を第1の端末装置と確立する前に、前記Bluetoothインターフェースを介して、送信先が特定されていない信号を送信することを繰り返す信号送信部と、前記信号を受信した前記第1の端末装置から、前記Bluetoothインターフェースを介して、第1の所定情報を受信する第1の所定情報受信部と、前記第1の端末装置から受信した前記第1の所定情報と、前記メモリに格納されている第2の所定情報と、が関連する場合に、前記Bluetoothインターフェースを介した前記Bluetooth接続を前記第1の端末装置と確立する第1の確立部と、確立済みの前記Bluetooth接続を利用して、前記Bluetoothインターフェースを介して、前記Wi−Fiインターフェースを介した第1のWi−Fi接続を前記第1の端末装置と確立するための接続情報を前記第1の端末装置に送信する接続情報送信部であって、前記第1のWi−Fi接続は、前記プリンタが親局として動作する第1のWi−Fiネットワークに前記第1の端末装置を所属させるための接続である、前記接続情報送信部と、前記接続情報が前記第1の端末装置に送信された後に、前記第1の端末装置から、前記Wi−Fiインターフェースを介して、接続要求を受信する要求受信部であって、前記接続要求は、前記接続情報を用いて得られる要求である、前記要求受信部と、前記端末装置から前記接続要求を受信することに応じて、前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記第1の端末装置と確立して、前記プリンタと前記第1の端末装置との双方が所属する前記第1のWi−Fiネットワークを形成する第2の確立部と、前記第1のWi−Fiネットワークを利用して、前記Wi−Fiインターフェースを介して、前記第1の端末装置から画像データを受信するデータ受信部と、受信済みの前記画像データによって表わされる画像の印刷を前記印刷実行部に実行させる印刷制御部と、を備える。
また、本明細書によって開示される端末装置のためのコンピュータプログラムを開示する。端末装置は、Wi−Fi方式に従った無線通信を実行するためのWi−Fiインターフェースと、Bluetooth方式に従った無線通信を実行するためのBluetoothインターフェースと、プロセッサと、を備える。そして、前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、前記Bluetoothインターフェースを介したBluetooth接続をプリンタと確立する前に、送信先が特定されていない信号がプリンタから繰り返し送信される状況において、前記プリンタから、前記Bluetoothインターフェースを介して、前記信号を受信することに応じて、第1の所定情報を前記プリンタに送信する情報送信処理と、前記プリンタに送信された前記第1の所定情報と、前記プリンタに格納されている第2の所定情報と、が関連する場合に、前記Bluetoothインターフェースを介した前記Bluetooth接続を前記プリンタと確立する第1の確立処理と、確立済みの前記Bluetooth接続を利用して、前記Bluetoothインターフェースを介して、前記プリンタから、前記Wi−Fiインターフェースを介した第1のWi−Fi接続を前記プリンタと確立ための接続情報を受信する接続情報受信処理であって、前記第1のWi−Fi接続は、前記プリンタが親局として動作する第1のWi−Fiネットワークに前記第1の端末装置を所属させるための接続である、前記接続情報受信処理と、前記プリンタから前記接続情報を受信することに応じて、前記Wi−Fiインターフェースを介して、接続要求を前記プリンタに送信する要求送信処理であって、前記接続要求は、前記接続情報を用いて得られる要求である、前記要求送信処理と、前記接続要求を前記プリンタに送信することに応じて、前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記プリンタと確立して、前記プリンタと前記端末装置との双方が所属する前記第1のWi−Fiネットワークを形成する第2の確立処理と、前記第1のWi−Fiネットワークを利用して、前記Wi−Fiインターフェースを介して、画像データを前記プリンタに送信するデータ送信処理であって、前記画像データは、前記プリンタによって印刷される画像を表すデータである、前記データ送信処理と、を実行させる。
また、本明細書によって開示される第1の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、前記第2のインターフェースを介して、トリガ信号をブロードキャスト送信することを繰り返すトリガ信号送信部であって、前記トリガ信号は、前記第1の通信機器と第2の通信機器との双方が所属する第1の無線ネットワークを形成するための無線接続要求を前記第1の通信機器に送信するためのトリガとして、前記第2の通信機器によって利用されるべき信号であり、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記トリガ信号送信部と、前記トリガ信号を受信した前記第2の通信機器から、前記第1のインターフェースを介して、前記無線接続要求を受信する接続要求受信部と、前記第2の通信機器から前記無線接続要求を受信することに応じて、前記第1のインターフェースを介した第1の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、を備える。
A printer disclosed in the present specification is a print execution unit, a memory, a Wi-Fi interface for executing wireless communication according to a Wi-Fi scheme, and a printer for executing wireless communication according to a Bluetooth scheme. A Bluetooth interface, and a signal transmission unit that repeats transmitting a signal whose destination is not specified via the Bluetooth interface before establishing a Bluetooth connection with the first terminal device via the Bluetooth interface; A first predetermined information receiving unit that receives first predetermined information from the first terminal device that has received the signal via the Bluetooth interface, and a first predetermined information receiving unit that receives the first predetermined information from the first terminal device Predetermined information and a second information stored in the memory. And a first establishing unit that establishes the Bluetooth connection via the Bluetooth interface with the first terminal device, and the established Bluetooth connection when the Bluetooth interface is established. A connection information transmitting unit that transmits connection information for establishing a first Wi-Fi connection via the Wi-Fi interface with the first terminal device via the Wi-Fi interface to the first terminal device, The first Wi-Fi connection is a connection for causing the first terminal device to belong to a first Wi-Fi network in which the printer operates as a master station, the connection information transmitting unit; After the connection information is transmitted to the first terminal device, the Wi-Fi interface is transmitted from the first terminal device to the Wi-Fi interface. A request receiving unit that receives a connection request, wherein the connection request is a request obtained using the connection information, the request receiving unit, and receiving the connection request from the terminal device. In response, the first Wi-Fi connection via the Wi-Fi interface is established with the first terminal device, and the first terminal device to which both the printer and the first terminal device belong. A second establishing unit that forms a Wi-Fi network; and a data reception that receives image data from the first terminal device via the Wi-Fi interface using the first Wi-Fi network. And a print control unit that causes the print execution unit to execute printing of an image represented by the received image data.
Also disclosed is a computer program for the terminal device disclosed in this specification. The terminal device includes a Wi-Fi interface for executing wireless communication according to the Wi-Fi scheme, a Bluetooth interface for executing wireless communication according to the Bluetooth scheme, and a processor. Then, the computer program sends to the processor each of the following processes, that is, a situation in which a signal whose destination is not specified is repeatedly transmitted from the printer before establishing a Bluetooth connection via the Bluetooth interface with the printer. An information transmission process of transmitting first predetermined information to the printer in response to receiving the signal from the printer via the Bluetooth interface; and transmitting the first predetermined information transmitted to the printer. A first establishing process for establishing the Bluetooth connection with the printer via the Bluetooth interface when information is associated with the second predetermined information stored in the printer; and the established Bluetooth. Using connection A connection information receiving process for receiving, from the printer via the Bluetooth interface, connection information for establishing a first Wi-Fi connection with the printer via the Wi-Fi interface, the connection information receiving process comprising: The Wi-Fi connection is a connection for making the first terminal device belong to a first Wi-Fi network in which the printer operates as a master station. Is a request transmission process of transmitting a connection request to the printer via the Wi-Fi interface in response to the connection request, wherein the connection request is a request obtained using the connection information. A request transmitting process and transmitting the connection request to the printer via the Wi-Fi interface. A second establishing process for establishing the first Wi-Fi connection with the printer to form the first Wi-Fi network to which both the printer and the terminal device belong; A data transmission process of transmitting image data to the printer via the Wi-Fi interface using a Wi-Fi network, wherein the image data is data representing an image to be printed by the printer. , And the data transmission process.
Further, a first communication device disclosed in the present specification includes a first interface for executing wireless communication according to a first communication method, and a second communication different from the first communication method. A second interface for executing wireless communication according to a scheme, and a trigger signal transmitting unit that repeats broadcast transmission of a trigger signal via the second interface, wherein the trigger signal is The second communication device as a trigger for transmitting a wireless connection request for forming a first wireless network to which both the first communication device and the second communication device belong to the first communication device; The first wireless network is a network for performing wireless communication via the first interface. A trigger signal transmitting unit, a connection request receiving unit that receives the wireless connection request from the second communication device that has received the trigger signal via the first interface, and a connection request receiving unit that receives the wireless connection request from the second communication device. In response to receiving a wireless connection request, a first wireless connection via the first interface is established with the second communication device, and the first communication device and the second communication device And a first establishing unit forming the first wireless network to which both belong.

上記の構成によると、第1の通信機器は、第2の通信方式に従った無線通信を実行して、トリガ信号をブロードキャスト送信することを繰り返す。その後、第1の通信機器は、トリガ信号を受信した第2の通信機器から無線接続要求を受信し、次いで、第1の無線接続を第2の通信機器と確立して、第1の無線ネットワークを形成する。このように、第1の通信機器は、第2の通信方式に従った無線通信を実行した後に、第1の通信方式に従った第1の無線ネットワークを適切に形成することができる。   According to the above configuration, the first communication device repeatedly performs the wireless communication according to the second communication method and broadcasts the trigger signal. Thereafter, the first communication device receives a wireless connection request from the second communication device that has received the trigger signal, and then establishes a first wireless connection with the second communication device to establish a first wireless network. To form Thus, the first communication device can appropriately form the first wireless network according to the first communication method after executing the wireless communication according to the second communication method.

上記の第1の通信機器を実現するための制御方法、コンピュータプログラム、及び、当該コンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。   A control method for realizing the first communication device, a computer program, and a computer-readable recording medium storing the computer program are also novel and useful.

本明細書では、第2の通信機器のためのコンピュータプログラムも開示する。前記第2の通信機器は、第1の通信方式に従った無線通信を実行するための第1のインターフェースと、前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、プロセッサと、を備える。前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、トリガ信号が第1の通信機器から繰り返しブロードキャスト送信される場合に、前記第1の通信機器から、前記第2のインターフェースを介して、前記トリガ信号を受信するトリガ信号受信処理であって、前記トリガ信号は、前記第1の通信機器と前記第2の通信機器との双方が所属する第1の無線ネットワークを形成するための無線接続要求を前記第1の通信機器に送信するためのトリガとして、前記第2の通信機器によって利用されるべき信号であり、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記トリガ信号受信処理と、前記第1の通信機器から前記トリガ信号を受信することに応じて、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信する接続要求送信処理と、前記無線接続要求を前記第1の通信機器に送信することに応じて、前記第1のインターフェースを介した第1の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立処理と、を実行させる。   The present specification also discloses a computer program for the second communication device. The second communication device executes a first interface for executing wireless communication according to a first communication method, and executes wireless communication according to a second communication method different from the first communication method. A second interface for performing the operation, and a processor. The computer program, to the processor, the following processing, ie, when the trigger signal is repeatedly broadcast transmitted from the first communication device, from the first communication device, via the second interface, A trigger signal receiving process for receiving the trigger signal, wherein the trigger signal is a wireless connection for forming a first wireless network to which both the first communication device and the second communication device belong. A signal to be used by the second communication device as a trigger for transmitting a request to the first communication device, wherein the first wireless network establishes wireless communication via the first interface. Responding to the trigger signal receiving process, which is a network for executing, and receiving the trigger signal from the first communication device. A connection request transmitting process of transmitting the wireless connection request to the first communication device via the first interface, and transmitting the wireless connection request to the first communication device, Establishing a first wireless connection with the first communication device via the first interface, wherein the first wireless network to which both the first communication device and the second communication device belong And a first establishment process for forming

上記のコンピュータプログラムは、以下の第2の通信機器を実現することができる。即ち、第2の通信機器は、トリガ信号が第1の通信機器から繰り返しブロードキャスト送信される場合に、第2の通信方式に従った無線通信を実行して、第1の通信機器からトリガ信号を受信する。その後、第2の通信機器は、無線接続要求を第1の通信機器に送信し、次いで、第1のインターフェースを介した第1の無線接続を第1の通信機器と確立して、第1の無線ネットワークを形成する。このように、第2の通信機器は、第2の通信方式に従った無線通信を実行した後に、第1の通信方式に従った第1の無線ネットワークを適切に形成することができる。   The above-described computer program can realize the following second communication device. That is, when the trigger signal is repeatedly broadcast-transmitted from the first communication device, the second communication device executes wireless communication according to the second communication method, and transmits the trigger signal from the first communication device. Receive. Thereafter, the second communication device sends a wireless connection request to the first communication device, and then establishes a first wireless connection via the first interface with the first communication device, and Form a wireless network. Thus, the second communication device can appropriately form the first wireless network according to the first communication method after executing the wireless communication according to the second communication method.

上記のコンピュータプログラムを格納するコンピュータ読取可能記録媒体も、新規で有用である。また、上記の第2の通信機器そのものも新規で有用である。また、上記の第2の通信機器を実現するための制御方法も新規で有用である。また、上記の第1の通信機器と第2の通信機器とを備える通信システムも、新規で有用である。   A computer-readable recording medium storing the above-described computer program is also new and useful. The second communication device itself is new and useful. Further, a control method for realizing the above second communication device is also new and useful. Further, a communication system including the above-described first communication device and second communication device is also new and useful.

通信システムの構成を示す。1 shows a configuration of a communication system. プリンタのWi−FiI/F関連処理のフローチャートを示す。4 shows a flowchart of Wi-Fi I / F related processing of the printer. プリンタのBTI/F関連処理のフローチャートを示す。4 shows a flowchart of a BTI / F related process of the printer. 携帯端末の処理のフローチャートを示す。4 shows a flowchart of a process of the mobile terminal. 第1実施例のケースAのシーケンス図を示す。FIG. 4 shows a sequence diagram of case A of the first embodiment. 第1実施例のケースB1及びB2のシーケンス図を示す。FIG. 4 shows a sequence diagram of cases B1 and B2 of the first embodiment. 第2実施例及び第3実施例のプリンタのWi−FiI/F関連処理のフローチャートを示す。9 is a flowchart illustrating Wi-Fi I / F-related processing of the printers according to the second and third embodiments. 第2実施例のケースCのシーケンス図を示す。FIG. 9 shows a sequence diagram of case C of the second embodiment. 第2実施例のケースD1及びD2のシーケンス図を示す。FIG. 10 shows a sequence diagram of cases D1 and D2 of the second embodiment. 第3実施例のケースEのシーケンス図を示す。The sequence diagram of case E of 3rd Example is shown. 第3実施例のケースF1及びF2のシーケンス図を示す。FIG. 14 shows a sequence diagram of cases F1 and F2 of the third embodiment.

(第1実施例)
(通信システム2の構成)
図1に示されるように、通信システム2は、プリンタPRと、複数個の携帯端末PT1,PT2と、を備える。プリンタPRと各携帯端末PT1,PT2とは、無線通信を相互に実行可能である。
(First embodiment)
(Configuration of Communication System 2)
As shown in FIG. 1, the communication system 2 includes a printer PR and a plurality of portable terminals PT1 and PT2. The printer PR and each of the portable terminals PT1 and PT2 can mutually execute wireless communication.

(プリンタPRの構成)
プリンタPRは、印刷機能を実行可能な周辺機器、即ち、携帯端末PT1等の周辺機器である。プリンタPRは、操作部12と、表示部14と、印刷実行部16と、Wi−Fiインターフェース20と、BT(Bluetooth(登録商標)の略)インターフェース22と、制御部30と、を備える。各部12〜30は、バス線(符号省略)に接続されている。以下では、インターフェースのことを「I/F」と呼ぶ。
(Configuration of Printer PR)
The printer PR is a peripheral device that can execute a printing function, that is, a peripheral device such as the portable terminal PT1. The printer PR includes an operation unit 12, a display unit 14, a print execution unit 16, a Wi-Fi interface 20, a BT (abbreviation for Bluetooth (registered trademark)) interface 22, and a control unit 30. Each of the units 12 to 30 is connected to a bus line (reference numerals are omitted). Hereinafter, the interface is referred to as “I / F”.

操作部12は、複数のキーを備える。ユーザは、操作部12を操作することによって、様々な指示をプリンタPRに入力することができる。表示部14は、様々な情報を表示するためのディスプレイである。表示部14は、いわゆるタッチパネルとしても機能する。即ち、表示部14は、ユーザによって操作される操作部としても機能する。印刷実行部16は、インクジェット方式、レーザ方式等の印刷機構である。   The operation unit 12 includes a plurality of keys. The user can input various instructions to the printer PR by operating the operation unit 12. The display unit 14 is a display for displaying various information. The display unit 14 also functions as a so-called touch panel. That is, the display unit 14 also functions as an operation unit operated by the user. The printing unit 16 is a printing mechanism of an ink jet system, a laser system, or the like.

Wi−FiI/F20は、Wi−Fi方式に従った無線通信(以下では「Wi−Fi通信」と呼ぶ)を実行するためのI/Fである。Wi−Fi方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば、802.11a,11b,11g,11n等)に基づく無線通信方式である。より具体的に言うと、Wi−FiI/F20は、Wi−Fi Allianceによって策定されたWFD(Wi-Fi Direct(登録商標)の略)方式をサポートしている。WFD方式は、Wi−Fi Allianceによって作成された規格書「Wi-Fi Peer-to-Peer (P2P) Technical Specification Version1.1」に記述されている無線通信方式である。   The Wi-Fi I / F 20 is an I / F for executing wireless communication according to the Wi-Fi method (hereinafter, referred to as “Wi-Fi communication”). The Wi-Fi system conforms to, for example, the 802.11 standard of IEEE (abbreviation of the Institute of Electrical and Electronics Engineers, Inc.) and the standards conforming thereto (for example, 802.11a, 11b, 11g, 11n, etc.). Wireless communication system based on the above. More specifically, the Wi-Fi I / F 20 supports a WFD (abbreviation for Wi-Fi Direct (registered trademark)) scheme formulated by Wi-Fi Alliance. The WFD system is a wireless communication system described in a standard document “Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1” created by Wi-Fi Alliance.

BTI/F22は、Bluetooth方式に従った無線通信(以下では「BT通信」と呼ぶ)を実行するためのI/Fである。Bluetooth方式は、例えば、IEEE802.15.1の規格、及び、それに準ずる規格に基づく無線通信方式である。より具体的に言うと、BTI/F22は、BLE(Bluetooth Low Energyの略)をサポートしている。BLEは、Bluetooth方式のバージョン4.0以降のバージョンで実現されている規格である。なお、以下では、Bluetooth方式のバージョン4.0未満のことを「クラシックBT」と呼ぶ。一対のBTI/Fの間でBLEに従ったBT通信を実行するために、一方のBTI/Fが、BT方式で定められている「Bluetooth Smart Ready」に対応し、かつ、他方のBTI/Fが、「Bluetooth Smart Ready」、又は、BT方式で定められている「Bluetooth Smart」に対応していてもよい。「Bluetooth Smart Ready」に対応するBTI/Fは、BLEに従った動作とクラシックBTに従った動作との双方を実行可能なI/F(即ちいわゆるデュアルモードのI/F)である。「Bluetooth Smart」に対応するBTI/Fは、BLEに従った動作を実行可能であるが、クラシックBTに従った動作を実行不可能なI/Fである。本実施例では、プリンタPRと携帯端末PT1,PT2との間でBLEに従ったBT通信が実行される。そして、携帯端末PT1,PT2の後述のBTI/F(例えば符号62)が「Bluetooth Smart Ready」に対応しているので、プリンタPRのBTI/F22は、「Bluetooth Smart Ready」及び「Bluetooth Smart」のどちらに対応していてもよい。ただし、変形例では、プリンタPRのBTI/F22が「Bluetooth Smart Ready」に対応している場合に、携帯端末PT1,PT2のBTI/Fが「Bluetooth Smart」に対応していてもよい。   The BTI / F 22 is an I / F for executing wireless communication (hereinafter, referred to as “BT communication”) according to the Bluetooth system. The Bluetooth system is, for example, a wireless communication system based on the standard of IEEE 802.15.1 and a standard based thereon. More specifically, the BTI / F 22 supports BLE (abbreviation for Bluetooth Low Energy). BLE is a standard implemented in Bluetooth version 4.0 or later. In the following, a version lower than Bluetooth version 4.0 is referred to as “classic BT”. In order to execute BT communication according to BLE between a pair of BTI / Fs, one BTI / F corresponds to “Bluetooth Smart Ready” defined by the BT method and the other BTI / F May correspond to “Bluetooth Smart Ready” or “Bluetooth Smart” defined by the BT method. The BTI / F corresponding to “Bluetooth Smart Ready” is an I / F that can execute both the operation according to the BLE and the operation according to the classic BT (that is, a so-called dual mode I / F). The BTI / F corresponding to “Bluetooth Smart” is an I / F that can execute an operation according to BLE, but cannot execute an operation according to the classic BT. In this embodiment, BT communication according to BLE is performed between the printer PR and the portable terminals PT1 and PT2. Since a BTI / F (for example, reference numeral 62) described later of the portable terminals PT1 and PT2 supports “Bluetooth Smart Ready”, the BTI / F22 of the printer PR uses “Bluetooth Smart Ready” and “Bluetooth Smart”. Either one may be supported. However, in the modified example, when the BTI / F 22 of the printer PR supports “Bluetooth Smart Ready”, the BTI / F of the portable terminals PT1 and PT2 may support “Bluetooth Smart”.

クラシックBTとBLEとの相違点を記述しておく。BLEのチャネル数(即ち40)は、クラシックBTのチャネル数(即ち79)よりも少ない。BLEのデータ通信時の消費電流(例えば15mA)は、クラシックBTのデータ通信時の消費電流(例えば35mA)よりも小さい。従って、BLEの消費電力は、クラシックBTの消費電力よりも低い。また、BLEでは、Advertise信号が利用されるが、クラシックBTでは、Advertise信号が利用されない。   The differences between the classic BT and the BLE are described. The number of BLE channels (ie, 40) is less than the number of classic BT channels (ie, 79). The current consumption (for example, 15 mA) during BLE data communication is smaller than the current consumption (for example, 35 mA) during classic BT data communication. Therefore, the power consumption of the BLE is lower than the power consumption of the classic BT. In the BLE, the Advertise signal is used, but in the classic BT, the Advertise signal is not used.

Wi−Fi方式とBT方式との相違点を記述しておく。Wi−Fi通信の通信速度(例えば最大の通信速度が600Mbps)は、BT通信の通信速度(例えば最大の通信速度が24Mbps)よりも速い。Wi−Fi通信における搬送波の周波数は、2.4GHz帯又は5.0GHz帯である。BT通信における搬送波の周波数は、2.4GHz帯である。即ち、Wi−Fi通信における搬送波の周波数として5.0GHz帯が採用される場合には、Wi−Fi通信における搬送波の周波数とBT通信における搬送波の周波数とは異なる。また、Wi−Fi通信を実行可能な最大の距離(例えば約100m)は、BT通信を実行可能な最大の距離(例えば約数十m)よりも大きい。   Differences between the Wi-Fi method and the BT method will be described. The communication speed of the Wi-Fi communication (for example, the maximum communication speed is 600 Mbps) is higher than the communication speed of the BT communication (for example, the maximum communication speed is 24 Mbps). The frequency of a carrier wave in Wi-Fi communication is a 2.4 GHz band or a 5.0 GHz band. The carrier frequency in the BT communication is in the 2.4 GHz band. That is, when the 5.0 GHz band is adopted as the frequency of the carrier in Wi-Fi communication, the frequency of the carrier in Wi-Fi communication is different from the frequency of the carrier in BT communication. Further, the maximum distance (for example, about 100 m) in which Wi-Fi communication can be executed is larger than the maximum distance (for example, about several tens of meters) in which BT communication can be executed.

制御部30は、CPU32と、メモリ34と、を備える。CPU32は、メモリ34に格納されているプログラム36に従って、様々な処理を実行する。メモリ34は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ34は、プリンタPRのBTデバイス名「NP」と、送信フラグ38と、を格納する。BTデバイス名「NP」は、BTI/F22に割り当てられているユニークな名称であり、換言すると、プリンタPRがBT通信を実行するために、プリンタPRを識別するための情報として利用される名称である。送信フラグ38は、BTデバイス名「NP」を外部に送信済みである場合に「ON」を示し、BTデバイス名「NP」を外部に送信済みでない場合に「OFF」を示す。なお、図1では、メモリ34が領域40を備えるように示されているが、当該領域40は、後述の第3実施例で利用される。   The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes according to the program 36 stored in the memory 34. The memory 34 includes a volatile memory, a nonvolatile memory, and the like. The memory 34 stores a BT device name “NP” of the printer PR and a transmission flag 38. The BT device name “NP” is a unique name assigned to the BTI / F 22, in other words, a name used as information for identifying the printer PR in order for the printer PR to execute BT communication. is there. The transmission flag 38 indicates “ON” when the BT device name “NP” has been transmitted to the outside, and indicates “OFF” when the BT device name “NP” has not been transmitted to the outside. Although the memory 34 is shown in FIG. 1 as having an area 40, the area 40 is used in a third embodiment described later.

(携帯端末PT1,PT2の構成)
各携帯端末PT1,PT2は、例えば、携帯電話(例えばスマートフォン)、PDA、ノートPC、タブレットPC、携帯型音楽再生装置、携帯型動画再生装置等の可搬型の端末装置である。以下では、携帯端末PT1の構成を説明するが、携帯端末PT2も携帯端末PT1と同様の構成を備える。
(Configuration of portable terminals PT1 and PT2)
Each of the portable terminals PT1 and PT2 is, for example, a portable terminal device such as a mobile phone (for example, a smartphone), a PDA, a notebook PC, a tablet PC, a portable music playback device, and a portable video playback device. Hereinafter, the configuration of the mobile terminal PT1 will be described, but the mobile terminal PT2 also has the same configuration as the mobile terminal PT1.

携帯端末PT1は、操作部52と、表示部54と、Wi−FiI/F60と、BTI/F62と、制御部70と、を備える。各部52〜70は、バス線(符号省略)に接続されている。   The portable terminal PT1 includes an operation unit 52, a display unit 54, a Wi-Fi I / F 60, a BTI / F 62, and a control unit 70. Each of the units 52 to 70 is connected to a bus line (reference numerals are omitted).

操作部52は、複数のキーを備える。ユーザは、操作部52を操作することによって、様々な指示を携帯端末PT1に入力することができる。表示部54は、様々な情報を表示するためのディスプレイである。表示部54は、いわゆるタッチパネルとしても機能する(即ち操作部としても機能する)。Wi−FiI/F60は、Wi−Fi通信を実行するためのI/Fである。Wi−FiI/F60は、WFDをサポートしていてもよいし、WFDをサポートしていなくてもよい。BTI/F62は、BT通信を実行するためのI/Fであり、BLEをサポートしている。各I/F60,62の相違は、プリンタPRの各I/F20,22の相違と同様である。   The operation unit 52 includes a plurality of keys. The user can input various instructions to the portable terminal PT1 by operating the operation unit 52. The display unit 54 is a display for displaying various information. The display unit 54 also functions as a so-called touch panel (that is, also functions as an operation unit). The Wi-Fi I / F 60 is an I / F for executing Wi-Fi communication. The Wi-Fi I / F 60 may support the WFD or may not support the WFD. The BTI / F 62 is an I / F for executing BT communication and supports BLE. The difference between the respective I / Fs 60 and 62 is the same as the difference between the respective I / Fs 20 and 22 of the printer PR.

制御部70は、CPU72とメモリ74とを備える。CPU72は、メモリ74に格納されているOSプログラム76に従って、様々な処理を実行する。メモリ74は、揮発性メモリ、不揮発性メモリ等によって構成される。メモリ74は、OSプログラム76のみならず、プリンタアプリケーション78を格納する。プリンタアプリケーション78は、プリンタPRに印刷機能を実行させるためのアプリケーションである。ユーザがプリンタPRに印刷機能を実行させることを望む際に、プリンタアプリケーション78がユーザによって起動される。プリンタアプリケーション78は、例えば、プリンタPRのベンダによって提供されるインターネット上のサーバから携帯端末PT1にインストールされてもよいし、プリンタPRと共に出荷されるメディアから携帯端末PT1にインストールされてもよい。   The control unit 70 includes a CPU 72 and a memory 74. The CPU 72 executes various processes according to the OS program 76 stored in the memory 74. The memory 74 includes a volatile memory, a nonvolatile memory, and the like. The memory 74 stores not only the OS program 76 but also a printer application 78. The printer application 78 is an application for causing the printer PR to execute a printing function. When the user wants the printer PR to perform a printing function, the printer application 78 is activated by the user. The printer application 78 may be installed in the portable terminal PT1 from a server on the Internet provided by a printer PR vendor, for example, or may be installed in the portable terminal PT1 from media shipped with the printer PR.

メモリ74は、さらに、携帯端末PT1のBTデバイス名「N1」を格納する。BTデバイス名「N1」は、BTI/F62に割り当てられているユニークな名称であり、換言すると、携帯端末PT1がBT通信を実行するために、携帯端末PT1を識別するための情報として利用される名称である。なお、携帯端末PT2は、BTデバイス名「N1」とは異なるBTデバイス名「N2」を有する。メモリ74は、BTデバイス名格納領域80を備える。BTデバイス名格納領域80は、Wi−FiI/F60を介した無線接続、即ち、Wi−Fi方式に従った無線接続が確立されたプリンタのBTデバイス名を格納するための領域である。   The memory 74 further stores the BT device name “N1” of the portable terminal PT1. The BT device name “N1” is a unique name assigned to the BTI / F 62. In other words, the portable terminal PT1 is used as information for identifying the portable terminal PT1 in order to execute BT communication. It is a name. Note that the portable terminal PT2 has a BT device name “N2” different from the BT device name “N1”. The memory 74 includes a BT device name storage area 80. The BT device name storage area 80 is an area for storing a BT device name of a printer to which a wireless connection via the Wi-Fi I / F 60, that is, a wireless connection according to the Wi-Fi method has been established.

(プリンタPRのWi−FiI/F関連処理;図2)
続いて、図2を参照して、プリンタPRのCPU32が実行するWi−FiI/F関連処理について説明する。Wi−FiI/F関連処理は、主に、Wi−FiI/F20に関連する処理である。CPU32は、プリンタPRの電源がONされると、図2の処理を開始する。
(Wi-Fi I / F related processing of printer PR; FIG. 2)
Subsequently, the Wi-Fi I / F related processing executed by the CPU 32 of the printer PR will be described with reference to FIG. The Wi-Fi I / F-related processing is mainly processing related to the Wi-Fi I / F 20. When the power of the printer PR is turned on, the CPU 32 starts the processing in FIG.

S2では、CPU32は、ランダムに文字列を生成することによって、SSID(Service Set Identifierの略)を生成する。そして、CPU32は、SSIDをメモリ34に格納させる。SSIDは、Wi−Fi通信を実行するための無線ネットワークを識別するための識別子である。   In S2, the CPU 32 generates an SSID (short for Service Set Identifier) by randomly generating a character string. Then, the CPU 32 stores the SSID in the memory 34. The SSID is an identifier for identifying a wireless network for executing Wi-Fi communication.

S4では、CPU32は、Wi−FiI/F20をOFF状態からON状態に変更する。ここで、Wi−FiI/F20のOFF状態は、Wi−FiI/F20に電力が供給されていない状態、即ち、Wi−Fi通信を実行不可能な状態である。また、Wi−FiI/F20のON状態は、Wi−FiI/F20に電力が供給されている状態、即ち、Wi−Fi通信を実行可能な状態である。   In S4, the CPU 32 changes the Wi-Fi I / F 20 from the OFF state to the ON state. Here, the OFF state of the Wi-Fi I / F 20 is a state in which power is not supplied to the Wi-Fi I / F 20, that is, a state in which Wi-Fi communication cannot be executed. The ON state of the Wi-Fi I / F 20 is a state in which power is supplied to the Wi-Fi I / F 20, that is, a state in which Wi-Fi communication can be executed.

S4では、CPU32は、さらに、WFDのG/O(Group Ownerの略)ネゴシエーションを実行することなく、プリンタPRの動作状態をWFDのデバイス状態からG/O状態に自発的に移行させる。G/O状態であるプリンタPRは、Wi−FiI/F20を介して、周囲の機器に自身の存在を知らせるためのビーコン信号を送信する。一方、G/O状態以外の状態(例えば、上記のデバイス状態、クライアント状態)であるプリンタPRは、ビーコン信号を送信しない。このために、G/O状態であるプリンタPRの消費電力は、G/O状態以外の状態であるプリンタPRの消費電力よりも高い。   In S4, the CPU 32 further spontaneously shifts the operation state of the printer PR from the device state of the WFD to the G / O state without executing WFD G / O (abbreviation of Group Owner) negotiation. The printer PR in the G / O state transmits a beacon signal for notifying the surrounding devices of the existence thereof through the Wi-Fi I / F 20. On the other hand, the printer PR in a state other than the G / O state (for example, the above-described device state, client state) does not transmit a beacon signal. For this reason, the power consumption of the printer PR in the G / O state is higher than the power consumption of the printer PR in a state other than the G / O state.

次いで、CPU32は、S10及びS40の各監視処理を順次実行する。S10では、CPU32は、プリンタPRの操作部12又は表示部14(即ちタッチパネル)にユーザによってWi−Fi接続操作が実行されることを監視する。Wi−Fi接続操作は、プリンタPRと携帯端末(例えばPT1)との間にWi−Fi方式に従った無線接続(以下では「Wi−Fi接続」と呼ぶ)を確立するための操作である。Wi−Fi接続操作は、通常、プリンタPRとのWi−Fi接続が過去に確立されていない携帯端末のユーザによって実行される。CPU32は、Wi−Fi接続操作が実行される場合に、S10でYESと判断して、S12に進む。   Next, the CPU 32 sequentially executes each monitoring process of S10 and S40. In S10, the CPU 32 monitors execution of the Wi-Fi connection operation by the user on the operation unit 12 or the display unit 14 (that is, the touch panel) of the printer PR. The Wi-Fi connection operation is an operation for establishing a wireless connection (hereinafter, referred to as “Wi-Fi connection”) between the printer PR and a portable terminal (for example, PT1) according to the Wi-Fi method. The Wi-Fi connection operation is usually performed by a user of the mobile terminal whose Wi-Fi connection with the printer PR has not been established in the past. When the Wi-Fi connection operation is performed, the CPU 32 determines YES in S10 and proceeds to S12.

S12では、CPU32は、メモリ34からSSIDを取得して、取得済みのSSIDを表示部14に表示させる。これにより、ユーザは、表示部14を見ることによって、プリンタPRとのWi−Fi接続を確立するために必要なSSIDを知ることができる。なお、上述したように、S2において、SSIDがメモリ34に格納される。ただし、S2が実行された後に、後述のS34又はS56が実行されると、メモリ34内の古いSSIDに代えて、新たなSSIDがメモリ34に格納される。従って、S2が実行された後に、S34又はS56が1回も実行されていない状況では、S12で表示されるSSIDは、S2で生成されたSSIDである。また、S2が実行された後に、S34又はS56が実行済みである状況では、S12で表示されるSSIDは、最新のS34又はS54で生成されたSSIDである。以下では、メモリ34に現在格納されているSSIDのことを「現行SSID」と呼ぶ。   In S12, the CPU 32 acquires the SSID from the memory 34 and causes the display unit 14 to display the acquired SSID. Thus, the user can know the SSID necessary for establishing the Wi-Fi connection with the printer PR by looking at the display unit 14. As described above, the SSID is stored in the memory 34 in S2. However, when S34 or S56 described later is executed after S2 is executed, a new SSID is stored in the memory 34 instead of the old SSID in the memory 34. Therefore, in a situation where S34 or S56 has not been executed once after S2 has been executed, the SSID displayed in S12 is the SSID generated in S2. In a situation where S34 or S56 has been executed after S2 has been executed, the SSID displayed in S12 is the latest SSID generated in S34 or S54. Hereinafter, the SSID currently stored in the memory 34 is referred to as “current SSID”.

S14では、CPU32は、携帯端末から、Wi−FiI/F20を介して、Probe Request信号(以下では「Probe_Req信号」と記載する)を受信したのか否かを判断する。Probe_Req信号は、携帯端末からブロードキャスト送信される信号であり、より具体的には、携帯端末の周囲に存在するG/O状態の機器及びアクセスポイントをサーチするための信号である。CPU32は、Probe_Req信号を受信した場合には、S14でYESと判断して、S16に進む。一方、CPU32は、S12が終了してから所定時間が経過するまでにProbe_Req信号を受信しなかった場合には、S14でNOと判断し、S16〜S32をスキップして、S34に進む。   In S14, the CPU 32 determines whether or not a Probe Request signal (hereinafter, referred to as a “Probe_Req signal”) has been received from the portable terminal via the Wi-Fi I / F 20. The Probe_Req signal is a signal broadcast-transmitted from the mobile terminal, and more specifically, a signal for searching for a G / O state device and an access point existing around the mobile terminal. When receiving the Probe_Req signal, the CPU 32 determines YES in S14 and proceeds to S16. On the other hand, if the Probe_Req signal has not been received before the predetermined time has elapsed from the end of S12, the CPU 32 determines NO in S14, skips S16 to S32, and proceeds to S34.

S16では、CPU32は、Wi−FiI/F20を介して、現行SSIDを含むProbe Response信号(以下では「Probe_Res信号」と記載する)を携帯端末に送信する。Probe_Res信号は、Probe_Req信号に対する応答信号である。なお、携帯端末は、Probe_Res信号を受信すると、Probe_Res信号に含まれるSSIDを携帯端末の表示部に表示する。ここで、携帯端末のユーザは、携帯端末の表示部に表示されているSSIDと、上記のS12でプリンタPRの表示部14に表示されたSSIDと、を対比して確認することによって、携帯端末の表示部に表示されているSSIDがどの装置のSSIDかを把握することが可能であり、プリンタPRの現行SSIDを選択し得る。これにより、ユーザは、後述のWi−Fi接続要求信号の送信を携帯端末に指示することができる。   In S16, the CPU 32 transmits a Probe Response signal including the current SSID (hereinafter, referred to as a “Probe_Res signal”) to the portable terminal via the Wi-Fi I / F 20. The Probe_Res signal is a response signal to the Probe_Req signal. When receiving the Probe_Res signal, the mobile terminal displays the SSID included in the Probe_Res signal on the display unit of the mobile terminal. Here, the user of the mobile terminal compares and confirms the SSID displayed on the display unit of the mobile terminal with the SSID displayed on the display unit 14 of the printer PR in S12. It is possible to know which device the SSID displayed on the display unit is, and select the current SSID of the printer PR. Thereby, the user can instruct the portable terminal to transmit a Wi-Fi connection request signal described later.

S18では、CPU32は、携帯端末から、Wi−FiI/F20を介して、現行SSIDを含むWi−Fi接続要求信号を受信したのか否かを判断する。Wi−Fi接続要求信号は、Wi−Fi接続の確立をプリンタPRに要求するための信号であり、具体的には、Association Request信号である。CPU32は、現行SSIDを含むWi−Fi接続要求信号を受信した場合には、S18でYESと判断して、S20に進む。一方、CPU32は、S16が終了してから所定時間が経過するまでに現行SSIDを含むWi−Fi接続要求信号を受信しなかった場合には、S18でNOと判断し、S20〜S32をスキップして、S34に進む。   In S18, the CPU 32 determines whether or not a Wi-Fi connection request signal including the current SSID has been received from the portable terminal via the Wi-Fi I / F20. The Wi-Fi connection request signal is a signal for requesting the printer PR to establish a Wi-Fi connection, and specifically, is an Association Request signal. When receiving the Wi-Fi connection request signal including the current SSID, the CPU 32 determines YES in S18 and proceeds to S20. On the other hand, if the Wi-Fi connection request signal including the current SSID has not been received before the predetermined time has elapsed since the end of S16, the CPU 32 determines NO in S18 and skips S20 to S32. Then, the process proceeds to S34.

S20では、CPU32は、Wi−FiI/F20を介した無線接続(即ちWi−Fi接続)を携帯端末と確立する。具体的には、CPU32は、Wi−FiI/F20を介して、各種の信号の通信(例えば、Association Response信号の送信、4−Way Handshakeの通信等)を携帯端末と実行する。CPU32は、上記の各種の信号の通信の過程で、携帯端末からSSIDとパスワードとを含むWi−Fi設定情報を受信して、Wi−Fi設定情報の認証を実行する。CPU32は、受信済みのSSIDが現行SSIDに一致し、かつ、受信済みのパスワードが所定のパスワードに一致する場合に、Wi−Fi設定情報の認証が成功したと判断して、携帯端末とのWi−Fi接続を確立する。ここで、所定のパスワードは、プリンタPRに予め設定されている固定の文字列である。即ち、本実施例では、プリンタPRの電源がONされたり、後述のS34又はS56が実行されたりすると、SSIDが変更されるが、パスワードは変更されない。   In S20, the CPU 32 establishes a wireless connection (that is, a Wi-Fi connection) via the Wi-Fi I / F 20 with the portable terminal. Specifically, the CPU 32 executes communication of various signals (for example, transmission of an association response signal, communication of a 4-way handshake, and the like) with the mobile terminal via the Wi-Fi I / F 20. The CPU 32 receives the Wi-Fi setting information including the SSID and the password from the portable terminal in the course of the communication of the various signals, and executes the authentication of the Wi-Fi setting information. When the received SSID matches the current SSID and the received password matches a predetermined password, the CPU 32 determines that the authentication of the Wi-Fi setting information has been successful, and -Establish a Fi connection. Here, the predetermined password is a fixed character string set in the printer PR in advance. That is, in the present embodiment, when the power of the printer PR is turned on or S34 or S56 described below is executed, the SSID is changed, but the password is not changed.

上述したように、S20において、プリンタPRと携帯端末との間にWi−Fi接続が確立される。これにより、プリンタPRがG/O状態で動作し、かつ、携帯端末がいわゆるレガシーとして動作するWi−Fi方式の無線ネットワーク(以下では「Wi−Fiネットワーク」と記載する)が形成される。レガシーは、WFDに従った動作を実行することなく、Wi−Fiネットワークに参加する機器を意味する。G/O状態であるプリンタPRがWi−Fiネットワークを管理するので、G/O状態であるプリンタPRは、Wi−Fiネットワークの親局(換言するとマスタデバイス)であると言える。また、レガシーである携帯端末が当該Wi−Fiネットワークに参加するので、レガシーである携帯端末は、Wi−Fiネットワークの子局(換言するとスレーブデバイス)であると言える。   As described above, in S20, a Wi-Fi connection is established between the printer PR and the mobile terminal. As a result, a Wi-Fi wireless network (hereinafter, referred to as “Wi-Fi network”) in which the printer PR operates in the G / O state and the portable terminal operates as a so-called legacy is formed. Legacy means a device that participates in a Wi-Fi network without performing an operation according to the WFD. Since the printer PR in the G / O state manages the Wi-Fi network, it can be said that the printer PR in the G / O state is a master station (in other words, a master device) of the Wi-Fi network. Further, since the legacy mobile terminal participates in the Wi-Fi network, the legacy mobile terminal can be said to be a slave station (in other words, a slave device) of the Wi-Fi network.

S24では、CPU32は、Wi−Fiネットワークを利用して(即ちWi−Fi接続を利用して)、Wi−FiI/F20を介して、メモリ34内のプリンタPRのBTデバイス名「NP」を携帯端末に送信する。   In S24, the CPU 32 transfers the BT device name “NP” of the printer PR in the memory 34 via the Wi-Fi I / F 20 using the Wi-Fi network (that is, using the Wi-Fi connection). Send to terminal.

S26では、CPU32は、メモリ34内の送信フラグ38が「OFF」を示すのか否かを判断する。CPU32は、送信フラグ38が「OFF」を示すと判断する場合(S26でYES)には、S28において、送信フラグ38を「ON」に変更し、S30に進む。一方、CPU32は、送信フラグ38が「ON」を示すと判断する場合(S26でNO)には、S28をスキップして、S30に進む。   In S26, the CPU 32 determines whether or not the transmission flag 38 in the memory 34 indicates “OFF”. When determining that the transmission flag 38 indicates “OFF” (YES in S26), the CPU 32 changes the transmission flag 38 to “ON” in S28, and proceeds to S30. On the other hand, when determining that the transmission flag 38 indicates “ON” (NO in S26), the CPU 32 skips S28 and proceeds to S30.

S30では、CPU32は、Wi−Fiネットワークを利用して、携帯端末から、Wi−FiI/F20を介して、印刷対象の画像を表わす印刷データを受信する。そして、CPU32は、印刷データを印刷実行部16に供給して、印刷データに従った印刷を印刷実行部16に実行させる。   In S30, the CPU 32 receives print data representing the image to be printed from the portable terminal via the Wi-Fi I / F 20 using the Wi-Fi network. Then, the CPU 32 supplies the print data to the print execution unit 16 and causes the print execution unit 16 to execute printing in accordance with the print data.

S32では、CPU32は、Wi−Fiネットワークを利用して、携帯端末から、Wi−FiI/F20を介して、切断信号を受信する。切断信号は、Wi−Fi接続の切断を要求するための信号である。この結果、プリンタPRと携帯端末との間のWi−Fi接続が切断される。   In S32, the CPU 32 receives a disconnection signal from the portable terminal via the Wi-Fi I / F 20 using the Wi-Fi network. The disconnection signal is a signal for requesting disconnection of the Wi-Fi connection. As a result, the Wi-Fi connection between the printer PR and the portable terminal is disconnected.

S34では、CPU32は、新たなSSIDを生成して、メモリ34内の古いSSIDに代えて、新たなSSIDをメモリ34に格納させる。即ち、CPU32は、SSIDを変更する。このように、SSIDが変更されるので、Wi−Fiネットワークのセキュリティを高め得る。S34が終了すると、S10に戻る。   In S34, the CPU 32 generates a new SSID and causes the memory 34 to store the new SSID in place of the old SSID in the memory 34. That is, the CPU 32 changes the SSID. As described above, since the SSID is changed, the security of the Wi-Fi network can be enhanced. When S34 ends, the process returns to S10.

また、S40では、CPU32は、Wi−Fi接続操作が実行されることなく(S10でNO)、携帯端末から、Wi−FiI/F20を介して、現行SSIDを含むWi−Fi接続要求信号を受信することを監視する。CPU32は、現行SSIDを含むWi−Fi接続要求信号を受信した場合には、S40でYESと判断して、S50に進む。S50、S52、S54、S56は、それぞれ、S20、S30、S32、S34と同様である。S56が終了すると、S10に戻る。   In S40, the CPU 32 receives the Wi-Fi connection request signal including the current SSID from the portable terminal via the Wi-Fi I / F 20 without executing the Wi-Fi connection operation (NO in S10). Watch what you do. When receiving the Wi-Fi connection request signal including the current SSID, the CPU 32 determines YES in S40 and proceeds to S50. S50, S52, S54, and S56 are the same as S20, S30, S32, and S34, respectively. When S56 ends, the process returns to S10.

(プリンタPRのBTI/F関連処理;図3)
続いて、図3を参照して、プリンタPRのCPU32が実行するBTI/F関連処理について説明する。BTI/F関連処理は、主に、BTI/F22に関連する処理である。CPU32は、プリンタPRの電源がONされると、図3の処理を開始する。
(BTI / F related processing of printer PR; FIG. 3)
Next, the BTI / F-related processing executed by the CPU 32 of the printer PR will be described with reference to FIG. The BTI / F-related processing is mainly processing related to the BTI / F22. When the power of the printer PR is turned on, the CPU 32 starts the processing in FIG.

S70では、CPU32は、BTI/F22がOFF状態であるのか否かを判断する。CPU32は、BTI/F22の状態をBTI/F22に問い合わせて、BTI/F22からOFF状態を示す情報を取得する場合には、S70でYESと判断してS72に進み、BTI/F22からON状態を示す情報を取得する場合には、S70でNOと判断してS80に進む。ここで、BTI/F22のOFF状態は、BTI/F22に電力が供給されていない状態、即ち、BT通信を実行不可能な状態である。また、BTI/F22のON状態は、BTI/F22に電力が供給されている状態、即ち、BT通信を実行可能な状態である。ON状態であるBTI/F22の消費電力(即ちBLEの消費電力)は、ON状態であるWi−FiI/F20の消費電力よりも低い。   In S70, the CPU 32 determines whether the BTI / F 22 is in the OFF state. When inquiring the BTI / F 22 about the state of the BTI / F 22 and acquiring information indicating the OFF state from the BTI / F 22, the CPU 32 determines YES in S 70, proceeds to S 72, and changes the ON state from the BTI / F 22. When acquiring the indicated information, NO is determined in S70 and the process proceeds to S80. Here, the OFF state of the BTI / F 22 is a state in which power is not supplied to the BTI / F 22, that is, a state in which BT communication cannot be executed. The ON state of the BTI / F 22 is a state in which power is supplied to the BTI / F 22, that is, a state in which BT communication can be executed. The power consumption of the BTI / F 22 in the ON state (that is, the power consumption of BLE) is lower than the power consumption of the Wi-Fi I / F 20 in the ON state.

S72では、CPU32は、メモリ34内の送信フラグ38が「ON」を示すのか否かを判断する。CPU32は、送信フラグ38が「ON」を示すと判断する場合(S72でYES)には、S74において、BTI/F22をOFF状態からON状態に変更する。S74でBTI/F22がON状態に変更されるまで、BTI/F22をOFF状態に設定することができるので、プリンタPRの消費電力を低減させることができる。一方、CPU32は、送信フラグ38が「OFF」を示すと判断する場合(S72でNO)には、S74をスキップして、S70に戻る。   In S72, the CPU 32 determines whether or not the transmission flag 38 in the memory 34 indicates “ON”. When determining that the transmission flag 38 indicates “ON” (YES in S72), the CPU 32 changes the BTI / F 22 from the OFF state to the ON state in S74. Since the BTI / F 22 can be set to the OFF state until the BTI / F 22 is changed to the ON state in S74, the power consumption of the printer PR can be reduced. On the other hand, when determining that the transmission flag 38 indicates “OFF” (NO in S72), the CPU 32 skips S74 and returns to S70.

S80(即ちBTI/F22がON状態)では、CPU32は、まず、メモリ34から、プリンタPRのBTデバイス名「NP」と、現行SSIDと、所定のパスワードと、を取得する。そして、CPU32は、BTI/F22を介して、取得済みの各情報を含むAdvertise信号をブロードキャスト送信する。ここで、ブロードキャスト送信は、送信先が特定されていない信号である。即ち、Advertise信号は、送信元を示す情報としてBTデバイス名「NP」を含むが、送信先を示す情報を含んでいない。Advertise信号は、プリンタPRの周囲の機器にプリンタ自身の存在を知らせるための信号である。特に、CPU32は、Bluetoothの論理リンク(即ちBluetooth方式の無線接続)を確立することなく、Advertise信号を外部に送信する。より具体的には、Bluetoothのプロトコルスタックのうち、L2CAP層以上の通信が実行されず、L2CAP層よりも下位層(即ちLink Maneger層又はLink Layer層)の通信が実行されて、外部に送信される。L2CAP層は、Bluetoothの論理リンクを確立するための最上位層である。即ち、Advertise信号は、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、外部に送信される。   In S80 (that is, the BTI / F 22 is in the ON state), the CPU 32 first obtains the BT device name “NP” of the printer PR, the current SSID, and a predetermined password from the memory 34. Then, the CPU 32 broadcasts, via the BTI / F 22, an Advertise signal including each acquired information. Here, the broadcast transmission is a signal whose transmission destination is not specified. That is, the Advertise signal includes the BT device name “NP” as the information indicating the transmission source, but does not include the information indicating the transmission destination. The Advertise signal is a signal for notifying devices around the printer PR of the presence of the printer itself. In particular, the CPU 32 transmits the Advertise signal to the outside without establishing a Bluetooth logical link (that is, a Bluetooth wireless connection). More specifically, in the Bluetooth protocol stack, communication at the L2CAP layer or higher is not performed, and communication at a layer lower than the L2CAP layer (that is, a Link Manager layer or a Link Layer layer) is performed and transmitted outside. You. The L2CAP layer is the highest layer for establishing a Bluetooth logical link. That is, the Advertise signal is not transmitted to the uppermost layer for establishing a logical link, but is transmitted to the outside after the lower layer communication is performed.

S80が終了すると、S70に戻る。そして、S70でNOを経てS80が再び実行されると、CPU32は、Advertise信号を再びブロードキャスト送信する。即ち、CPU32は、Advertise信号をブロードキャスト送信することを繰り返す。   When S80 ends, the process returns to S70. Then, when S80 is executed again after NO in S70, the CPU 32 broadcasts the Advertise signal again. That is, the CPU 32 repeats the broadcast transmission of the Advertise signal.

(携帯端末PT1の処理;図4)
続いて、図4を参照して、携帯端末PT1のCPU72が実行する処理について説明する。なお、携帯端末PT2も同様の処理を実行可能である。CPU72は、プリンタアプリケーション78を起動するための操作が携帯端末PT1に実行されると、プリンタアプリケーション78に従って、図4の処理を開始する。なお、携帯端末PT1に対する操作は、操作部52に実行されてもよいし、表示部54(即ちタッチパネル)に実行されてもよい。この点は、以下でも同様である。
(Process of mobile terminal PT1; FIG. 4)
Subsequently, a process executed by the CPU 72 of the portable terminal PT1 will be described with reference to FIG. Note that the portable terminal PT2 can execute the same processing. When an operation for activating the printer application 78 is executed on the portable terminal PT1, the CPU 72 starts the processing in FIG. The operation on the portable terminal PT1 may be executed on the operation unit 52 or may be executed on the display unit 54 (that is, the touch panel). This is the same in the following.

CPU72は、S100及びS140の各監視処理を順次実行することを繰り返す。S100では、CPU72は、ユーザによってWi−Fi接続操作が携帯端末PT1に実行されることを監視する。Wi−Fi接続操作は、通常、プリンタPRとのWi−Fi接続が過去に確立されていない携帯端末のユーザによって実行される。CPU72は、Wi−Fi接続操作が実行される場合に、S100でYESと判断して、S102に進む。   The CPU 72 repeatedly executes the monitoring processes of S100 and S140 sequentially. In S100, CPU 72 monitors that a Wi-Fi connection operation is performed on mobile terminal PT1 by the user. The Wi-Fi connection operation is usually performed by a user of the mobile terminal whose Wi-Fi connection with the printer PR has not been established in the past. When the Wi-Fi connection operation is performed, the CPU 72 determines YES in S100 and proceeds to S102.

S102では、CPU72は、Wi−FiI/F60を介して、Probe_Req信号をブロードキャスト送信する。プリンタPRと携帯端末PT1との間の距離が、Wi−Fi通信を実行可能な距離よりも短ければ、Probe_Req信号は、プリンタPRによって受信され得る(図2のS14でYES参照)。   In S102, the CPU 72 broadcasts a Probe_Req signal via the Wi-Fi I / F 60. If the distance between the printer PR and the portable terminal PT1 is shorter than the distance at which Wi-Fi communication can be performed, the Probe_Req signal can be received by the printer PR (see YES in S14 of FIG. 2).

S104では、CPU72は、Wi−FiI/F60を介して、Probe_Res信号を受信したのか否かを判断する。CPU72は、プリンタPRがG/O状態で動作している場合には、プリンタPRからProbe_Res信号を受信する(図2のS16参照)。また、CPU72は、携帯端末PT1の周囲にAP(Access Pointの略)が存在する場合には、APからProbe_Res信号を受信する。CPU72は、1個以上のProbe_Res信号を受信する場合には、S104でYESと判断して、S106に進む。一方、CPU72は、S102が終了してから所定時間が経過するまでに1個のProbe_Res信号も受信しない場合には、S104でNOと判断し、S106〜S120をスキップして、S100に戻る。   In S104, the CPU 72 determines whether or not the Probe_Res signal has been received via the Wi-Fi I / F 60. When the printer PR is operating in the G / O state, the CPU 72 receives a Probe_Res signal from the printer PR (see S16 in FIG. 2). Further, when an AP (abbreviation of Access Point) exists around the portable terminal PT1, the CPU 72 receives a Probe_Res signal from the AP. When receiving one or more Probe_Res signals, the CPU 72 determines YES in S104 and proceeds to S106. On the other hand, if one Probe_Res signal is not received before the predetermined time elapses after the end of S102, the CPU 72 determines NO in S104, skips S106 to S120, and returns to S100.

S106では、CPU72は、受信済みの1個以上のProbe_Res信号に含まれる1個以上のSSIDを表示部54に表示させる。これにより、ユーザは、1個以上のSSIDの中から、プリンタPRで表示された現行SSID(図2のS12参照)を選択する操作を携帯端末PT1に実行し得る。即ち、ユーザは、上記の1個以上のSSIDと、上記の図2のS12でプリンタPRの表示部14に表示された現行SSIDと、を対比して、上記の1個以上のSSIDの中から現行SSIDを選択することができる。   In S106, the CPU 72 causes the display unit 54 to display one or more SSIDs included in the received one or more Probe_Res signals. Thereby, the user can execute an operation of selecting the current SSID (see S12 in FIG. 2) displayed on the printer PR from the one or more SSIDs on the portable terminal PT1. That is, the user compares the one or more SSIDs with the current SSID displayed on the display unit 14 of the printer PR in S12 of FIG. You can select the current SSID.

S108では、CPU72は、S106で表示された1個以上のSSIDの中から1個のSSIDを選択する操作がユーザによって携帯端末PT1に実行されたのか否かを判断する。CPU72は、SSIDを選択する操作が実行された場合には、S108でYESと判断して、S110に進む。なお、図4では、プリンタPRの現行SSIDが選択されることを前提として、S110〜S120の処理が記述されている。一方、CPU72は、SSIDを選択する操作が実行されない場合、即ち、ユーザによってキャンセルが指示される場合には、S108でNOと判断し、S110〜S120をスキップして、S100に戻る。   In S108, the CPU 72 determines whether or not the operation of selecting one SSID from the one or more SSIDs displayed in S106 has been performed on the portable terminal PT1 by the user. When an operation to select an SSID has been performed, the CPU 72 determines YES in S108 and proceeds to S110. Note that FIG. 4 describes the processing of S110 to S120 on the assumption that the current SSID of the printer PR is selected. On the other hand, when the operation of selecting the SSID is not executed, that is, when the user instructs the cancel, the CPU 72 determines NO in S108, skips S110 to S120, and returns to S100.

S110では、CPU72は、パスワード入力画面を表示部54に表示させる。例えば、プリンタPRの管理者は、プリンタPRの所定のパスワードを携帯端末PT1のユーザに予め通知しておく。これにより、ユーザは、所定のパスワードを入力する操作を携帯端末PT1に実行し得る。当該操作が実行されると、S112に進む。   In S110, CPU 72 causes display unit 54 to display a password input screen. For example, the administrator of the printer PR notifies the user of the portable terminal PT1 of a predetermined password of the printer PR in advance. Thus, the user can execute an operation of inputting a predetermined password on the portable terminal PT1. When the operation is performed, the process proceeds to S112.

S112では、CPU72は、Wi−FiI/F60を介して、S108で選択されたSSID(即ちプリンタPRの現行SSID)を含むWi−Fi接続要求信号をプリンタPRに送信する。これにより、Wi−Fi接続要求信号は、プリンタPRによって受信され得る(図2のS18でYES参照)。   In S112, the CPU 72 transmits a Wi-Fi connection request signal including the SSID selected in S108 (that is, the current SSID of the printer PR) to the printer PR via the Wi-Fi I / F 60. As a result, the Wi-Fi connection request signal can be received by the printer PR (see YES in S18 of FIG. 2).

S114では、CPU72は、Wi−FiI/F60を介した無線接続(即ちWi−Fi接続)をプリンタPRと確立する。具体的には、CPU72は、Wi−FiI/F60を介して、各種の信号の通信(例えば、Association Response信号の受信、4−Way Handshakeの通信等)をプリンタPRと実行する。CPU72は、上記の各種の信号の通信の過程で、S108で選択されたSSIDとS110で入力されたパスワードとを含むWi−Fi設定情報をプリンタPRに送信する。プリンタPRにおいてWi−Fi設定情報の認証が成功する場合には、プリンタPRとのWi−Fi接続が確立される。これにより、プリンタPRがG/O状態で動作し、かつ、携帯端末PT1がレガシーとして動作するWi−Fiネットワークが形成される(図2のS20参照)。   In S114, the CPU 72 establishes a wireless connection (that is, a Wi-Fi connection) via the Wi-Fi I / F 60 with the printer PR. Specifically, the CPU 72 executes communication of various signals (for example, reception of an association response signal, communication of a 4-way handshake, and the like) with the printer PR via the Wi-Fi I / F 60. The CPU 72 transmits the Wi-Fi setting information including the SSID selected in S108 and the password input in S110 to the printer PR in the course of the communication of the various signals described above. If the authentication of the Wi-Fi setting information is successful in the printer PR, a Wi-Fi connection with the printer PR is established. Thus, a Wi-Fi network in which the printer PR operates in the G / O state and the portable terminal PT1 operates as a legacy is formed (see S20 in FIG. 2).

S116では、CPU72は、Wi−Fiネットワークを利用して(即ちWi−Fi接続を利用して)、プリンタPRから、Wi−FiI/F60を介して、プリンタPRのBTデバイス名「NP」を受信する(図2のS24参照)。そして、CPU72は、受信済みのBTデバイス名「NP」をBTデバイス名格納領域80に格納させる。これにより、携帯端末PT1とのWi−Fi接続が確立されたプリンタ(以下では「確立済みプリンタ」と呼ぶ)のBTデバイス名がBTデバイス名格納領域80に格納される。   In S116, the CPU 72 receives the BT device name “NP” of the printer PR from the printer PR via the Wi-Fi I / F 60 using the Wi-Fi network (that is, using the Wi-Fi connection). (See S24 in FIG. 2). Then, the CPU 72 stores the received BT device name “NP” in the BT device name storage area 80. Thereby, the BT device name of the printer (hereinafter, referred to as “established printer”) for which the Wi-Fi connection with the portable terminal PT1 has been established is stored in the BT device name storage area 80.

S118では、CPU72は、Wi−Fiネットワークを利用して、Wi−FiI/F60を介して、印刷データをプリンタPRに送信する。これにより、印刷データによって表わされる画像の印刷をプリンタPRに実行させることができる(図2のS30参照)。なお、印刷データは、携帯端末PT1のメモリ74に格納されている1個以上の画像ファイルの中から、ユーザによって指定された画像ファイルである。ここで、印刷対象の画像ファイルの指定は、例えば、プリンタアプリケーション78の起動の直後に実行されてもよいし、S110でパスワードが入力された後に実行されてもよいし、S114でプリンタPRとのWi−Fi接続が確立された後に実行されてもよい。   In S118, the CPU 72 transmits the print data to the printer PR via the Wi-Fi I / F 60 using the Wi-Fi network. This allows the printer PR to execute printing of the image represented by the print data (see S30 in FIG. 2). The print data is an image file designated by the user from one or more image files stored in the memory 74 of the portable terminal PT1. Here, the designation of the image file to be printed may be performed, for example, immediately after the activation of the printer application 78, may be performed after the password is input in S110, or may be performed in S114. It may be executed after the Wi-Fi connection is established.

S120では、CPU72は、プリンタPRへの印刷データの送信が完了する場合に、Wi−Fiネットワークを利用して、Wi−FiI/F60を介して、切断信号をプリンタPRに送信する。この結果、プリンタPRと携帯端末PT1との間のWi−Fi接続が切断される(図2のS32参照)。S120が終了すると、S100に戻る。   In S120, when the transmission of the print data to the printer PR is completed, the CPU 72 transmits a disconnection signal to the printer PR via the Wi-Fi I / F 60 using the Wi-Fi network. As a result, the Wi-Fi connection between the printer PR and the portable terminal PT1 is disconnected (see S32 in FIG. 2). When S120 ends, the process returns to S100.

また、S140では、CPU72は、BTI/F62を介して、Advertise信号を受信することを監視する。上述したように、プリンタPRは、送信フラグ38がONを示す場合には、BTデバイス名「NP」と現行SSIDと所定のパスワードとを含むAdvertise信号をブロードキャスト送信することを繰り返す(図3のS80参照)。従って、プリンタPRと携帯端末PT1との間の距離が、BT通信を実行可能な最大の距離よりも短ければ、CPU72は、BTI/F62を介して、プリンタPRからAdvertise信号を受信する。この場合、CPU72は、S140でYESと判断して、S142に進む。   In S140, the CPU 72 monitors reception of the Advertise signal via the BTI / F 62. As described above, when the transmission flag 38 indicates ON, the printer PR repeats the broadcast transmission of the Advertise signal including the BT device name “NP”, the current SSID, and the predetermined password (S80 in FIG. 3). reference). Therefore, if the distance between the printer PR and the portable terminal PT1 is shorter than the maximum distance at which BT communication can be performed, the CPU 72 receives the Advertise signal from the printer PR via the BTI / F 62. In this case, the CPU 72 determines YES in S140, and proceeds to S142.

S142では、CPU72は、受信済みのAdvertise信号内のBTデバイス名(即ち受信済みのBTデバイス名)がBTデバイス名格納領域80に格納されているのか否かを判断する。上述したように、BTデバイス名格納領域80は、確立済みプリンタのBTデバイス名を格納する(S116参照)。従って、S142の判断は、Advertise信号の送信元のプリンタPRが確立済みプリンタであるのか否かを判断することを意味する。CPU72は、受信済みのBTデバイス名がBTデバイス名格納領域80に格納されていると判断する場合(S142でYES)には、S148に進む。なお、図4では、プリンタPRのBTデバイス名「NP」がBTデバイス名格納領域80に格納されていることを前提として、S148〜S154の処理が記述されている。一方、CPU72は、受信済みのBTデバイス名がBTデバイス名格納領域80に格納されていないと判断する場合(S142でNO)には、S148〜S154をスキップして、S100に戻る。   In S142, the CPU 72 determines whether or not the BT device name in the received Advertise signal (that is, the received BT device name) is stored in the BT device name storage area 80. As described above, the BT device name storage area 80 stores the BT device name of the established printer (see S116). Accordingly, the determination in S142 means to determine whether or not the printer PR of the transmission source of the Advertise signal is an established printer. When determining that the received BT device name is stored in the BT device name storage area 80 (YES in S142), the CPU 72 proceeds to S148. In FIG. 4, the processes of S148 to S154 are described on the assumption that the BT device name “NP” of the printer PR is stored in the BT device name storage area 80. On the other hand, when determining that the received BT device name is not stored in the BT device name storage area 80 (NO in S142), the CPU 72 skips S148 to S154 and returns to S100.

S148では、CPU72は、Wi−FiI/F60を介して、受信済みのAdvertise信号内の現行SSIDを含むWi−Fi接続要求信号をプリンタPRに送信する。これにより、Wi−Fi接続要求信号は、プリンタPRによって受信され得る(図2のS40でYES参照)。このように、CPU72は、プリンタPRからAdvertise信号を受信することをトリガとして、Wi−Fi接続要求信号をプリンタPRに送信する。従って、Advertise信号は、Wi−Fi接続要求信号をプリンタPRに送信するためのトリガ信号であると言える。   In S148, the CPU 72 transmits a Wi-Fi connection request signal including the current SSID in the received Advertise signal to the printer PR via the Wi-Fi I / F 60. Thus, the Wi-Fi connection request signal can be received by the printer PR (see YES in S40 of FIG. 2). As described above, the CPU 72 transmits the Wi-Fi connection request signal to the printer PR, triggered by receiving the Advertise signal from the printer PR. Therefore, it can be said that the Advertise signal is a trigger signal for transmitting a Wi-Fi connection request signal to the printer PR.

S150では、CPU72は、S114と同様に、プリンタPRとのWi−Fi接続を確立する。ここでは、CPU72は、受信済みのAdvertise信号内の現行SSIDとパスワードとを含むWi−Fi設定情報を利用して、プリンタPRとのWi−Fi接続を確立する。S152、S154は、それぞれ、S118、S120と同様である。S154が終了すると、S100に戻る。   In S150, the CPU 72 establishes a Wi-Fi connection with the printer PR as in S114. Here, the CPU 72 establishes a Wi-Fi connection with the printer PR using Wi-Fi setting information including the current SSID and the password in the received Advertise signal. S152 and S154 are the same as S118 and S120, respectively. When S154 ends, the process returns to S100.

(具体的なケース)
続いて、図5及び図6を参照して、図2〜図4の各処理によって実現される具体的なケースについて説明する。図5及び図6において、プリンタPRと携帯端末PT1,PT2との間の太線矢印、細線矢印は、それぞれ、Wi−Fi通信、BT通信を示す。
(Specific case)
Subsequently, a specific case realized by each processing of FIGS. 2 to 4 will be described with reference to FIGS. 5 and 6. 5 and 6, thick arrows and thin arrows between the printer PR and the portable terminals PT1 and PT2 indicate Wi-Fi communication and BT communication, respectively.

(ケースA;図5)
ケースAの初期状態では、プリンタPRの電源がOFFされている。また、携帯端末PT1は、プリンタPRとのWi−Fi接続を過去に確立していない。即ち、携帯端末PT1のBTデバイス名格納領域80には、プリンタPRのBTデバイス名「NP」が格納されていない。なお、BTデバイス名格納領域80には、1個のプリンタのBTデバイス名も格納されていない。
(Case A; FIG. 5)
In the initial state of Case A, the power of the printer PR is turned off. In addition, the portable terminal PT1 has not established a Wi-Fi connection with the printer PR in the past. That is, the BT device name “NP” of the printer PR is not stored in the BT device name storage area 80 of the portable terminal PT1. Note that the BT device name storage area 80 does not store the BT device name of one printer.

A0では、プリンタPRの電源がユーザによってONされる。この場合、プリンタPRは、T2において、SSID「X1」を生成し(図2のS2)、T4において、Wi−FiI/F20をON状態に変更し、G/O状態に移行する(S4)。次いで、A1では、Wi−Fi接続操作が携帯端末PT1のユーザによってプリンタPRに実行される(S10でYES)。この場合、T10では、プリンタPRは、SSID「X1」を表示する(S12)。   At A0, the power of the printer PR is turned on by the user. In this case, the printer PR generates the SSID “X1” at T2 (S2 in FIG. 2), changes the Wi-Fi I / F 20 to the ON state at T4, and shifts to the G / O state (S4). Next, in A1, a Wi-Fi connection operation is performed on the printer PR by the user of the portable terminal PT1 (YES in S10). In this case, at T10, the printer PR displays the SSID “X1” (S12).

A2では、プリンタアプリケーション78を起動するための操作と、Wi−Fi接続操作と、がユーザによって携帯端末PT1に実行される(図4のS100でYES)。この場合、T20では、携帯端末PT1は、Probe_Req信号をブロードキャスト送信する(S102)。   In A2, an operation for activating the printer application 78 and a Wi-Fi connection operation are performed by the user on the portable terminal PT1 (YES in S100 in FIG. 4). In this case, at T20, the mobile terminal PT1 broadcasts a Probe_Req signal (S102).

プリンタPRは、携帯端末PT1からProbe_Req信号を受信する場合(図2のS14でYES)に、T22において、SSID「X1」を含むProbe_Res信号を携帯端末PT1に送信する(S16)。なお、仮に、A2の操作が携帯端末PT1に実行されない場合には、携帯端末PT1からProbe_Req信号が送信されず、この結果、プリンタPRは、図2のS14でNOと判断する。   When receiving the Probe_Req signal from the portable terminal PT1 (YES in S14 of FIG. 2), the printer PR transmits a Probe_Res signal including the SSID “X1” to the portable terminal PT1 at T22 (S16). If the operation of A2 is not performed on the portable terminal PT1, the Probe_Req signal is not transmitted from the portable terminal PT1, and as a result, the printer PR determines NO in S14 of FIG.

携帯端末PT1は、プリンタPRからProbe_Res信号を受信する場合(図4のS104でYES)に、T30において、Probe_Res信号に含まれるSSID「X1」を表示する(S106)。なお、携帯端末PT1は、プリンタPRとは異なる機器からProbe_Res信号をさらに受信する場合には、SSID「X1」のみならず、当該Probe_Res信号に含まれるSSIDも表示する。即ち、T30では、携帯端末PT1は、SSID「X1」を含む1個以上のSSIDを表示する。ここで、ユーザは、携帯端末PT1に表示されている1個以上のSSIDと、上記のT10でプリンタPRに表示されたSSID「X1」と、を比較することによって、上記の1個以上のSSIDの中から、プリンタPRのSSID「X1」を確認することができる。   When receiving the Probe_Res signal from the printer PR (YES in S104 of FIG. 4), the portable terminal PT1 displays the SSID “X1” included in the Probe_Res signal at T30 (S106). When further receiving the Probe_Res signal from a device different from the printer PR, the portable terminal PT1 displays not only the SSID “X1” but also the SSID included in the Probe_Res signal. That is, at T30, the portable terminal PT1 displays one or more SSIDs including the SSID “X1”. Here, the user compares the one or more SSIDs displayed on the portable terminal PT1 with the SSID “X1” displayed on the printer PR at the above T10, thereby obtaining the one or more SSIDs. , The SSID “X1” of the printer PR can be confirmed.

A3では、1個以上のSSIDの中からSSID「X1」を選択する操作がユーザによって携帯端末PT1に実行される(図4のS108でYES)。この場合、T32では、携帯端末PT1は、パスワード入力画面を表示する(S110)。A4では、プリンタPRのパスワード「PS」を入力する操作がユーザによって携帯端末PT1に実行される。この場合、T40では、携帯端末PT1は、A3で選択されたSSID「X1」を含むWi−Fi接続要求信号をプリンタPRに送信する。なお、仮に、A3でSSID「X1」が選択されなかったり、A4でパスワードが入力されずにキャンセルされたりすると、携帯端末PT1からWi−Fi接続要求信号が送信されず、この結果、プリンタPRは、図2のS18でNOと判断する。   In A3, an operation of selecting the SSID “X1” from one or more SSIDs is performed by the user on the portable terminal PT1 (YES in S108 of FIG. 4). In this case, at T32, the mobile terminal PT1 displays a password input screen (S110). In A4, an operation of inputting the password “PS” of the printer PR is performed by the user on the portable terminal PT1. In this case, in T40, the portable terminal PT1 transmits a Wi-Fi connection request signal including the SSID “X1” selected in A3 to the printer PR. If the SSID “X1” is not selected in A3 or canceled without inputting the password in A4, the Wi-Fi connection request signal is not transmitted from the portable terminal PT1, and as a result, the printer PR NO is determined in S18 of FIG.

携帯端末PT1からプリンタPRにWi−Fi接続要求信号が送信されると、T42において、プリンタPRと携帯端末PT1との間にWi−Fi接続が確立される(図2のS20、図4のS114)。なお、プリンタPRは、T42の過程で、携帯端末PT1からSSID「X1」とパスワード「PS」とを含むWi−Fi設定情報を受信して、Wi−Fi設定情報の認証を実行し、本ケースでは認証が成功するので、携帯端末PT1とのWi−Fi接続を確立する。これにより、プリンタPRが親局として動作し、かつ、携帯端末PT1が子局として動作するWi−Fiネットワークが形成される。   When the Wi-Fi connection request signal is transmitted from the portable terminal PT1 to the printer PR, a Wi-Fi connection is established between the printer PR and the portable terminal PT1 at T42 (S20 in FIG. 2, S114 in FIG. 4). ). In the process of T42, the printer PR receives the Wi-Fi setting information including the SSID “X1” and the password “PS” from the mobile terminal PT1, executes authentication of the Wi-Fi setting information, and Since the authentication succeeds, a Wi-Fi connection with the portable terminal PT1 is established. This forms a Wi-Fi network in which the printer PR operates as a master station and the portable terminal PT1 operates as a slave station.

プリンタPRは、携帯端末PT1とのWi−Fi接続を確立した後に、T44において、Wi−Fi接続を利用して、プリンタPRのBTデバイス名「NP」を携帯端末PT1に送信する(図2のS24)。そして、プリンタPRは、送信フラグ38を「ON」に変更し(S26でYES、S28)、この結果、T46において、BTI/F22をOFF状態からON状態に変更する(図3のS70でYES、S72でYES、S74)。   After establishing the Wi-Fi connection with the portable terminal PT1, the printer PR transmits the BT device name “NP” of the printer PR to the portable terminal PT1 using the Wi-Fi connection at T44 (see FIG. 2). S24). Then, the printer PR changes the transmission flag 38 to “ON” (YES in S26, S28). As a result, in T46, changes the BTI / F 22 from the OFF state to the ON state (YES in S70 in FIG. 3, YES in S72, S74).

携帯端末PT1は、プリンタPRからBTデバイス名「NP」を受信する場合に、T50において、BTデバイス名「NP」を格納する(図4のS116)。次いで、携帯端末PT1は、T60において、Wi−Fi接続を利用して、印刷データをプリンタPRに送信する(S118)。   When receiving the BT device name “NP” from the printer PR, the portable terminal PT1 stores the BT device name “NP” in T50 (S116 in FIG. 4). Next, at T60, the portable terminal PT1 transmits the print data to the printer PR using the Wi-Fi connection (S118).

プリンタPRは、携帯端末PT1から印刷データを受信する場合に、T62において、印刷データに従った印刷処理を実行する(図2のS30)。なお、プリンタPRがBT通信を利用して携帯端末PT1から印刷データを受信する構成が考えられる。ただし、印刷データのデータサイズが大きい可能性があり、さらに、BT通信の通信速度は、Wi−Fi通信の通信速度よりも遅い。従って、仮に、BT通信を利用して印刷データを通信する構成を採用すると、印刷データの通信に長時間を要し得る。これに対し、本実施例では、Wi−Fi通信を利用して印刷データを通信するので、印刷データを迅速に通信することができる。   When receiving the print data from the portable terminal PT1, the printer PR executes a print process according to the print data at T62 (S30 in FIG. 2). Note that a configuration in which the printer PR receives print data from the portable terminal PT1 using BT communication is conceivable. However, the data size of the print data may be large, and the communication speed of the BT communication is lower than the communication speed of the Wi-Fi communication. Therefore, if a configuration in which the print data is communicated using the BT communication is adopted, it may take a long time to communicate the print data. On the other hand, in the present embodiment, print data is communicated using Wi-Fi communication, so that print data can be quickly communicated.

携帯端末PT1は、印刷データをプリンタPRに送信した後に、T70において、Wi−Fi接続を切断するための切断信号をプリンタPRに送信する(図4のS120)。これにより、プリンタPRと携帯端末PT1との間のWi−Fi接続が切断される。   After transmitting the print data to the printer PR, the portable terminal PT1 transmits a disconnection signal for disconnecting the Wi-Fi connection to the printer PR at T70 (S120 in FIG. 4). Thereby, the Wi-Fi connection between the printer PR and the portable terminal PT1 is disconnected.

プリンタPRは、携帯端末PT1から切断信号を受信した後(図2のS32)に、T72において、SSID「X1」とは異なるSSID「X2」を生成する(S34)。   After receiving the disconnection signal from the portable terminal PT1 (S32 in FIG. 2), the printer PR generates an SSID “X2” different from the SSID “X1” at T72 (S34).

(ケースB1;図6)
図6のケースB1は、図5のケースAの続きであり、プリンタPRのWi−FiI/F20がON状態であり(図5のT4参照)、BTI/F22がON状態である(T46参照)。また、携帯端末PT1のBTデバイス名格納領域80には、確立済みプリンタであるプリンタPRのBTデバイス名「NP」が格納されている(T50参照)。
(Case B1; FIG. 6)
Case B1 in FIG. 6 is a continuation of Case A in FIG. 5, in which the Wi-Fi I / F 20 of the printer PR is ON (see T4 in FIG. 5) and the BTI / F22 is ON (see T46). . The BT device name “NP” of the printer PR, which is an established printer, is stored in the BT device name storage area 80 of the portable terminal PT1 (see T50).

T100では、プリンタPRは、Advertise信号をブロードキャスト送信することを繰り返す(図3のS80)。Advertise信号は、信号の送信元を示す情報としてプリンタPRのBTデバイス名「NP」を含み、さらに、SSID「X2」とパスワード「PS」とを含む。   In T100, the printer PR repeats the broadcast transmission of the Advertise signal (S80 in FIG. 3). The Advertise signal includes the BT device name “NP” of the printer PR as information indicating the signal transmission source, and further includes the SSID “X2” and the password “PS”.

上述したように、プリンタPRは、送信フラグ38が「ON」を示す場合、即ち、BTデバイス名「NP」を1回でも外部に送信した場合には、BTI/F22がON状態であり(図5のT46参照)、Advertise信号を繰り返し送信する(T100)。一方、プリンタPRは、送信フラグ38が「OFF」を示す場合、即ち、BTデバイス名「NP」を1回も外部に送信していない場合には、BTI/F22をOFF状態に維持して、Advertise信号を送信しない(図3のS72でNO、S70でYES)。このために、プリンタPRの省電力を実現することができる。   As described above, when the transmission flag 38 indicates "ON", that is, when the BT device name "NP" is transmitted to the outside even once, the BTI / F 22 is in the ON state (see FIG. 5, T46), and repeatedly transmits the Advertise signal (T100). On the other hand, when the transmission flag 38 indicates “OFF”, that is, when the BT device name “NP” has never been transmitted to the outside, the printer PR maintains the BTI / F 22 in the OFF state, The Advertise signal is not transmitted (NO in S72 of FIG. 3, YES in S70). Therefore, power saving of the printer PR can be realized.

A10では、プリンタアプリケーション78を起動するための操作がユーザによって携帯端末PT1に実行される(図4の処理のトリガ)。この場合、携帯端末PT1は、プリンタPRからAdvertise信号を受信し(S140でYES)、T102において、Advertise信号内のBTデバイス名「NP」がBTデバイス名格納領域80に格納されていると判断する(S142でYES)。そして、T120では、携帯端末PT1は、Advertise信号内のSSID「X2」を含むWi−Fi接続要求信号をプリンタPRに送信する(S148)。このように、携帯端末PT1は、SSIDを選択するための画面(図5のT30参照)とパスワードを入力するための画面(T32参照)とを表示することなく、Wi−Fi接続要求信号をプリンタPRに送信する。このために、ユーザは、プリンタPRと携帯端末PT1との間に2回目以降のWi−Fi接続を容易に確立させることができる。   In A10, an operation for activating the printer application 78 is executed by the user on the portable terminal PT1 (trigger of the processing in FIG. 4). In this case, the portable terminal PT1 receives the Advertise signal from the printer PR (YES in S140), and determines that the BT device name “NP” in the Advertise signal is stored in the BT device name storage area 80 at T102. (YES in S142). Then, at T120, the portable terminal PT1 transmits a Wi-Fi connection request signal including the SSID “X2” in the Advertise signal to the printer PR (S148). As described above, the portable terminal PT1 sends the Wi-Fi connection request signal to the printer without displaying the screen for selecting the SSID (see T30 in FIG. 5) and the screen for entering the password (see T32). Send to PR. For this reason, the user can easily establish the second and subsequent Wi-Fi connections between the printer PR and the portable terminal PT1.

携帯端末PT1からプリンタPRにWi−Fi接続要求信号が送信されると、T122において、プリンタPRと携帯端末PT1との間にWi−Fi接続が確立される(図2のS50、図4のS150)。T122の後に実行されるT130、T132、T140、T142は、それぞれ、図5のT60、T62、T70、T72と同様である(図2のS52〜S56、図4のS152、S154)。なお、T142では、SSID「X1」及び「X2」とは異なるSSID「X3」が生成される。   When the Wi-Fi connection request signal is transmitted from the portable terminal PT1 to the printer PR, a Wi-Fi connection is established between the printer PR and the portable terminal PT1 at T122 (S50 in FIG. 2, S150 in FIG. 4). ). T130, T132, T140, and T142 executed after T122 are the same as T60, T62, T70, and T72 in FIG. 5, respectively (S52 to S56 in FIG. 2, and S152 and S154 in FIG. 4). At T142, an SSID “X3” different from the SSIDs “X1” and “X2” is generated.

(ケースB2)
ケースB2もケースAの続きである。携帯端末PT2のBTデバイス名格納領域(図示省略)には、プリンタPRのBTデバイス名「NP」が格納されていない。
(Case B2)
Case B2 is also a continuation of Case A. The BT device name “NP” of the printer PR is not stored in the BT device name storage area (not shown) of the portable terminal PT2.

T150では、T100と同様に、プリンタPRは、Advertise信号を繰り返し送信する(図3のS80)。A20では、プリンタアプリケーションを起動するための操作がユーザによって携帯端末PT2に実行される(図4の処理のトリガ)。この場合、携帯端末PT2は、プリンタPRからAdvertise信号を受信するが(図4のS140でYES)、T152において、Advertise信号内のBTデバイス名「NP」がBTデバイス名格納領域に格納されていないと判断する(S142でNO)。この結果、携帯端末PT2は、Wi−Fi接続要求信号をプリンタPRに送信しない。仮に、プリンタPRと携帯端末PT2との間にWi−Fi接続を確立させるためには、図5のケースAと同様の操作A1,A2等が、プリンタPR及び携帯端末PT2に実行される必要がある。   At T150, similarly to T100, the printer PR repeatedly transmits an Advertise signal (S80 in FIG. 3). In A20, an operation for activating the printer application is executed by the user on the portable terminal PT2 (trigger of the processing in FIG. 4). In this case, the portable terminal PT2 receives the Advertise signal from the printer PR (YES in S140 of FIG. 4), but at T152, the BT device name “NP” in the Advertise signal is not stored in the BT device name storage area. Is determined (NO in S142). As a result, the portable terminal PT2 does not transmit a Wi-Fi connection request signal to the printer PR. In order to establish a Wi-Fi connection between the printer PR and the portable terminal PT2, operations A1, A2, etc., similar to the case A in FIG. 5 need to be executed on the printer PR and the portable terminal PT2. is there.

(第1実施例の効果)
プリンタPRは、BT通信を実行して、Advertise信号をブロードキャスト送信することを繰り返す(図6のT100)。これにより、Advertise信号が携帯端末PT1によって受信され、携帯端末PT1からプリンタPRにWi−Fi接続要求信号が送信され(T120)、プリンタPRと携帯端末PT1との間にWi−Fi接続が確立される(T122)。このように、プリンタPRと携帯端末PT1とは、BT通信を実行した後に、Wi−Fiネットワークを適切に形成することができ、この結果、Wi−Fiネットワークを利用して、印刷データの通信を適切に実行することができる。
(Effect of the first embodiment)
The printer PR repeats the BT communication and the broadcast transmission of the Advertise signal (T100 in FIG. 6). Thereby, the Advertise signal is received by the portable terminal PT1, a Wi-Fi connection request signal is transmitted from the portable terminal PT1 to the printer PR (T120), and a Wi-Fi connection is established between the printer PR and the portable terminal PT1. (T122). As described above, the printer PR and the portable terminal PT1 can appropriately form a Wi-Fi network after performing the BT communication, and as a result, can communicate the print data using the Wi-Fi network. Can be performed properly.

また、本実施例では、プリンタPRと携帯端末PT1との間でBT通信が実行されるが、プリンタPRと携帯端末PT1との間にBT方式の論理リンク(即ちBT方式の無線接続)を確立せずに済む。このために、プリンタPRと携帯端末PT1とは、BT方式の論理リンクを確立するための信号を通信せずに済むので、プリンタPRと携帯端末PT1との処理負荷を軽減させ得る。また、プリンタPRのSSIDとパスワードとを含むWi−Fi設定情報がAdvertise信号に含まれているので、プリンタPRと携帯端末PT1とは、Advertise信号のBT通信の後に、Wi−Fi設定情報のBT通信を実行せずに済む。この点でも、プリンタPRと携帯端末PT1との処理負荷を軽減させ得る。   In this embodiment, BT communication is performed between the printer PR and the portable terminal PT1, but a BT logical link (that is, a BT wireless connection) is established between the printer PR and the portable terminal PT1. You don't have to. For this reason, since the printer PR and the portable terminal PT1 do not need to communicate a signal for establishing a BT logical link, the processing load on the printer PR and the portable terminal PT1 can be reduced. Also, since the Advertise signal includes the Wi-Fi setting information including the SSID and the password of the printer PR, the printer PR and the portable terminal PT1 communicate with the BT of the Wi-Fi setting information after the BT communication of the Advertise signal. No need to perform communication. Also in this regard, the processing load on the printer PR and the portable terminal PT1 can be reduced.

また、本実施例では、携帯端末PT1がプリンタPRのBTデバイス名「NP」を格納している場合、即ち、携帯端末PT1がプリンタPRとのWi−Fi接続を過去に確立している場合には、携帯端末PT1から確立済みプリンタであるプリンタPRにWi−Fi接続要求信号が送信される(図6のケースB1参照)。これにより、Wi−Fi接続操作がプリンタPR及び携帯端末PT1に実行されなくても、プリンタPRと携帯端末PT1との間にWi−Fi接続が確立される。携帯端末PT1のユーザは、確立済みプリンタとのWi−Fi接続を容易に確立させることができる。   Further, in the present embodiment, when the portable terminal PT1 stores the BT device name “NP” of the printer PR, that is, when the portable terminal PT1 has established a Wi-Fi connection with the printer PR in the past. Transmits a Wi-Fi connection request signal from the portable terminal PT1 to the printer PR, which is an established printer (see case B1 in FIG. 6). As a result, a Wi-Fi connection is established between the printer PR and the portable terminal PT1 even when the Wi-Fi connection operation is not performed on the printer PR and the portable terminal PT1. The user of the portable terminal PT1 can easily establish a Wi-Fi connection with an established printer.

一方、携帯端末PT2がプリンタPRのBTデバイス名「NP」を格納していない場合、即ち、携帯端末PT2がプリンタPRとのWi−Fi接続を過去に確立していない場合には、携帯端末PT2からプリンタPRにWi−Fi接続要求信号が送信されない(図6のケースB2参照)。そして、プリンタPRと携帯端末PT2との間にWi−Fi接続を確立するためには、Wi−Fi接続操作がプリンタPR及び携帯端末PT2に実行される必要があり(図5のA1,A2参照)、さらに、SSIDを選択するための操作とパスワードを入力するための操作とが携帯端末PT2に実行される必要がある(図5のA3,A4参照)。これにより、例えば、プリンタPRを利用することがプリンタPRの管理者によって許可されていない携帯端末PT2が、プリンタPRとのWi−Fi接続を確立するのを抑制することができる。このために、プリンタPRのセキュリティを向上させることができる。   On the other hand, if the portable terminal PT2 does not store the BT device name “NP” of the printer PR, that is, if the portable terminal PT2 has not established a Wi-Fi connection with the printer PR in the past, the portable terminal PT2 Does not transmit a Wi-Fi connection request signal to printer PR (see case B2 in FIG. 6). Then, in order to establish a Wi-Fi connection between the printer PR and the portable terminal PT2, a Wi-Fi connection operation needs to be performed on the printer PR and the portable terminal PT2 (see A1 and A2 in FIG. 5). Further, an operation for selecting an SSID and an operation for inputting a password need to be executed on the portable terminal PT2 (see A3 and A4 in FIG. 5). Thus, for example, it is possible to prevent the portable terminal PT2, which is not permitted to use the printer PR by the administrator of the printer PR, from establishing a Wi-Fi connection with the printer PR. For this reason, the security of the printer PR can be improved.

また、各携帯端末PT1,PT2は、BTデバイス名格納領域80を備えており、プリンタPRのBTデバイス名「NP」がBTデバイス名格納領域80に格納されているのか否かを判断し(図4のS142)、判断結果に応じて、その後の処理を変える。従って、プリンタPRは、BTデバイス名格納領域を備えずに済み、さらに、判断処理を実行せずに済む。このために、プリンタPRの処理負荷を低減させ得る。   Each of the portable terminals PT1 and PT2 has a BT device name storage area 80, and determines whether or not the BT device name “NP” of the printer PR is stored in the BT device name storage area 80 (FIG. 4, S142), the subsequent processing is changed according to the determination result. Therefore, the printer PR does not need to have the BT device name storage area and does not need to execute the determination processing. For this reason, the processing load on the printer PR can be reduced.

(対応関係)
プリンタPR、携帯端末PT1,PT2が、それぞれ、「第1の通信機器」、「第2の通信機器」の一例である。BTデバイス名「NP」が、「第1の機器識別情報」の一例である。プリンタPRから見ると、携帯端末PT1が、「第3の通信機器」の一例である。携帯端末PT1から見ると、プリンタPR、BTデバイス名「NP」が、それぞれ、「第3の通信機器」、「第3の機器識別情報」の一例である。Wi−Fi方式、Wi−FiI/F20,60が、それぞれ、「第1の通信方式」、「第1のインターフェース」の一例である。BT方式、BTI/F22,62が、それぞれ、「第2の通信方式」、「第2のインターフェース」の一例である。Advertise信号、Wi−Fi接続要求信号が、それぞれ、「トリガ信号」、「無線接続要求」の一例である。BTI/F22のOFF状態、ON状態が、それぞれ、「第1の状態」、「第2の状態」の一例である。また、図6のT122で確立されるWi−Fi接続、図5のT42で確立されるWi−Fi接続が、それぞれ、「第1の無線接続」、「第2の無線接続」の一例である。図6のT100のAdvertise信号内のSSID「X2」とパスワード「PS」とが、「ネットワーク関係情報」の一例である。
(Correspondence)
The printer PR and the portable terminals PT1 and PT2 are examples of a “first communication device” and a “second communication device”, respectively. The BT device name “NP” is an example of “first device identification information”. When viewed from the printer PR, the portable terminal PT1 is an example of a “third communication device”. When viewed from the portable terminal PT1, the printer PR and the BT device name “NP” are examples of “third communication device” and “third device identification information”, respectively. The Wi-Fi method and the Wi-Fi I / Fs 20 and 60 are examples of a “first communication method” and a “first interface”, respectively. The BT method and the BTI / Fs 22 and 62 are examples of a “second communication method” and a “second interface”, respectively. The Advertise signal and the Wi-Fi connection request signal are examples of a “trigger signal” and a “wireless connection request”, respectively. The OFF state and the ON state of the BTI / F 22 are examples of a “first state” and a “second state”, respectively. The Wi-Fi connection established at T122 in FIG. 6 and the Wi-Fi connection established at T42 in FIG. 5 are examples of the “first wireless connection” and the “second wireless connection”, respectively. . The SSID “X2” and the password “PS” in the Advertise signal of T100 in FIG. 6 are an example of “network-related information”.

(第2実施例)
第1実施例と異なる点を中心に説明する。第1実施例では、プリンタPRからブロードキャスト送信されるAdvertise信号は、プリンタPRのBTデバイス名「NP」と、現行SSIDと、パスワードと、を含む(図3のS80)。本実施例では、Advertise信号は、BTデバイス名「NP」を含むが、現行SSIDとパスワードとを含まない。この点が、第1実施例とは大きく異なる。
(Second embodiment)
The following description focuses on the differences from the first embodiment. In the first embodiment, the Advertise signal broadcast-transmitted from the printer PR includes the BT device name “NP” of the printer PR, the current SSID, and the password (S80 in FIG. 3). In this embodiment, the Advertise signal includes the BT device name “NP” but does not include the current SSID and the password. This point is significantly different from the first embodiment.

(プリンタPRのWi−FiI/F関連処理;図7)
本実施例では、図2に代えて、図7のWi−FiI/F関連処理が実行される。S2は、図2のS2と同様である。図2では、S2が終了するとS4が実行されるが、図7では、S2が終了するとS10に進む。
(Wi-Fi I / F related processing of printer PR; FIG. 7)
In the present embodiment, the Wi-Fi I / F related processing of FIG. 7 is executed instead of FIG. S2 is the same as S2 in FIG. In FIG. 2, when S2 ends, S4 is executed. In FIG. 7, when S2 ends, the process proceeds to S10.

S10は、図2のS10と同様である。S10でYESの場合、CPU32は、S11を実行する。S11は、図2のS4と同様である。その後に実行されるS12〜S32は、図2のS12〜S32と同様である。S34Aでは、CPU32は、プリンタPRの動作状態をG/O状態からデバイス状態に移行させる(即ちG/O状態を停止する)。これにより、プリンタPRの消費電力を低減させることができる。S34Aでは、CPU32は、さらに、Wi−FiI/F20をON状態からOFF状態に変更する。これにより、プリンタPRの消費電力を低減させることができる。S34Aでは、さらに、CPU32は、新たなSSIDを生成して、メモリ34内の古いSSIDに代えて、新たなSSIDをメモリ34に格納させる。S34Aが終了すると、S10に戻る。   Step S10 is the same as step S10 in FIG. If YES in S10, the CPU 32 executes S11. S11 is the same as S4 in FIG. S12 to S32 executed thereafter are the same as S12 to S32 in FIG. In S34A, the CPU 32 shifts the operation state of the printer PR from the G / O state to the device state (that is, stops the G / O state). Thereby, the power consumption of the printer PR can be reduced. In S34A, the CPU 32 further changes the Wi-Fi I / F 20 from the ON state to the OFF state. Thereby, the power consumption of the printer PR can be reduced. In S34A, the CPU 32 further generates a new SSID and causes the memory 34 to store the new SSID in place of the old SSID in the memory 34. When S34A ends, the process returns to S10.

また、S40Aでは、CPU32は、Wi−Fi接続操作が実行されることなく(S10でNO)、BTI/F関連処理から所定の通知(図3のS90参照)を取得することを監視する。以下では、プリンタPRとのWi−Fi接続が確立された携帯端末のことを「確立済み端末」と呼ぶ。所定の通知は、BT通信によって確立済み端末からScan Request信号を受信する場合に、BTI/F関連処理からWi−FiI/F関連処理に供給される通知である。CPU32は、所定の通知を取得する場合に、S40AでYESと判断して、S42に進む。   In S40A, the CPU 32 monitors that a predetermined notification (see S90 in FIG. 3) is obtained from the BTI / F-related process without executing the Wi-Fi connection operation (NO in S10). Hereinafter, a portable terminal that has established a Wi-Fi connection with the printer PR is referred to as an “established terminal”. The predetermined notification is a notification supplied from the BTI / F-related process to the Wi-Fi I / F-related process when a Scan Request signal is received from an established terminal by BT communication. When acquiring the predetermined notification, the CPU 32 determines YES in S40A, and proceeds to S42.

S42は、S11と同様である。S44では、CPU32は、確立済み端末である携帯端末から、Wi−FiI/F20を介して、現行SSIDを含むWi−Fi接続要求信号を受信するのかを判断する。CPU32は、現行SSIDを含むWi−Fi接続要求信号を受信した場合には、S44でYESと判断して、S50に進む。一方、CPU32は、S42が終了してから所定時間が経過するまでに現行SSIDを含むWi−Fi接続要求信号を受信しなかった場合には、S44でNOと判断し、S50〜S54をスキップしてS56Aに進む。S50〜S54は、図2のS50〜S54と同様である。S56Aは、S34Aと同様である。S56Aが終了すると、S10に戻る。   S42 is the same as S11. In S44, the CPU 32 determines whether or not to receive a Wi-Fi connection request signal including the current SSID from the mobile terminal that has been established via the Wi-Fi I / F 20. When receiving the Wi-Fi connection request signal including the current SSID, the CPU 32 determines YES in S44 and proceeds to S50. On the other hand, if the Wi-Fi connection request signal including the current SSID has not been received before the predetermined time has elapsed since the end of S42, the CPU 32 determines NO in S44 and skips S50 to S54. To S56A. Steps S50 to S54 are the same as steps S50 to S54 in FIG. S56A is the same as S34A. When S56A ends, the process returns to S10.

(プリンタPRのBTI/F関連処理;図3)
続いて、図3を参照して、本実施例のBTI/F関連処理の内容を説明する。S70〜S74は、第1実施例と同様である。S80では、プリンタPRのCPU32は、送信元を示す情報としてBTデバイス名「NP」を含むAdvertise信号をブロードキャスト送信する。ただし、Advertise信号は、現行SSIDとパスワードとを含まない。S80が終了すると、S82に進む。
(BTI / F related processing of printer PR; FIG. 3)
Next, the contents of the BTI / F related processing of the present embodiment will be described with reference to FIG. S70 to S74 are the same as in the first embodiment. In S80, the CPU 32 of the printer PR broadcasts an Advertise signal including the BT device name “NP” as information indicating the transmission source. However, the Advertise signal does not include the current SSID and the password. When S80 ends, the process proceeds to S82.

S82では、CPU32は、携帯端末から、BTI/F22を介して、Scan Request信号(以下では「Scan_Req信号」と記載する)を受信したのか否かを判断する。Scan_Req信号は、Advertise信号を受信した携帯端末が確立済み端末である場合に、携帯端末から送信される信号である。Scan_Req信号は、ユニキャスト信号であり、送信先を示す情報としてプリンタPRのBTデバイス名「NP」を含むと共に、送信元を示す情報として携帯端末のBTデバイス名(例えば携帯端末PT1のBTデバイス名「N1」)を含む。Scan_Req信号は、SSID及びパスワードを含むWi−Fi設定情報をプリンタPRに要求するための信号である。特に、CPU32は、論理リンクを確立しなくても、Scan_Req信号を受信することができる。即ち、Scan_Req信号は、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、外部から受信される。CPU32は、Scan_Req信号を受信した場合には、S82でYESと判断して、S90に進む。一方、CPU32は、S80が終了してから所定時間が経過するまでにScan_Req信号を受信しなかった場合には、S82でNOと判断して、S90,S92をスキップしてS70に戻る。   In S82, the CPU 32 determines whether or not a Scan Request signal (hereinafter, referred to as a “Scan_Req signal”) has been received from the mobile terminal via the BTI / F22. The Scan_Req signal is a signal transmitted from the mobile terminal when the mobile terminal that has received the Advertise signal is an established terminal. The Scan_Req signal is a unicast signal and includes the BT device name “NP” of the printer PR as information indicating the transmission destination and the BT device name of the portable terminal (for example, the BT device name of the portable terminal PT1) as information indicating the transmission source. "N1"). The Scan_Req signal is a signal for requesting the printer PR for Wi-Fi setting information including an SSID and a password. In particular, the CPU 32 can receive the Scan_Req signal without establishing a logical link. That is, the Scan_Req signal is received from the outside without performing the communication of the uppermost layer for establishing the logical link, but performing the communication of the lower layer than the uppermost layer. When receiving the Scan_Req signal, the CPU 32 determines YES in S82, and proceeds to S90. On the other hand, if the Scan_Req signal has not been received before the predetermined time has elapsed from the end of S80, the CPU 32 determines NO in S82, skips S90 and S92, and returns to S70.

S90では、CPU32は、Wi−FiI/F関連処理(図7参照)に所定の通知を供給する。これにより、Wi−FiI/F20がON状態に変更され、プリンタPRの動作状態がG/O状態に移行される(図7のS40AでYES、S42)。   In S90, the CPU 32 supplies a predetermined notification to the Wi-Fi I / F-related processing (see FIG. 7). Thereby, the Wi-Fi I / F 20 is changed to the ON state, and the operation state of the printer PR is shifted to the G / O state (YES in S40A of FIG. 7, S42).

S92では、CPU32は、BTI/F22を介して、Scan_Req信号の送信元の携帯端末にScan Response信号(以下では「Scan_Res信号」と記載する)を送信する。Scan_Res信号は、Scan_Req信号に対する応答信号であり、現行SSIDと所定のパスワード(即ちプリンタPRに予め設定されている固定の文字列)とを含む。また、Scan_Res信号は、ユニキャスト信号であり、送信先を示す情報として携帯端末のBTデバイス名(即ち、Scan_Req信号内の送信元のBTデバイス名)を含むと共に、送信元を示す情報としてプリンタPRのBTデバイス名「NP」を含む。CPU32は、論理リンクを確立することなく、Scan_Res信号を送信する。即ち、Scan_Res信号は、論理リンクを確立するための最上位層の通信が実行されずに、当該最上位層よりも下位層の通信が実行されて、外部に送信される。S92が終了すると、S70に戻る。   In S92, the CPU 32 transmits a Scan Response signal (hereinafter, referred to as a “Scan_Res signal”) to the portable terminal that has transmitted the Scan_Req signal via the BTI / F22. The Scan_Res signal is a response signal to the Scan_Req signal, and includes the current SSID and a predetermined password (that is, a fixed character string preset in the printer PR). The Scan_Res signal is a unicast signal, and includes the BT device name of the portable terminal (that is, the BT device name of the transmission source in the Scan_Req signal) as information indicating the transmission destination, and the printer PR as information indicating the transmission source. BT device name “NP”. The CPU 32 transmits a Scan_Res signal without establishing a logical link. That is, the Scan_Res signal is transmitted to the outside after the communication of the uppermost layer for establishing the logical link is not executed, but the communication of the lower layer than the uppermost layer is executed. When S92 ends, the process returns to S70.

(携帯端末の処理;図4)
続いて、図4を参照して、本実施例の携帯端末PT1の処理の内容を説明する。S100〜S120、S140、及び、S142は、第1実施例と同様である。携帯端末PT1のCPU72は、S142でYESの場合に、S144において、Scan_Req信号を確立済みプリンタであるプリンタPRにユニキャスト送信する。これにより、Scan_Req信号は、プリンタPRによって受信され得る(図3のS82でYES参照)。
(Process of mobile terminal; Fig. 4)
Subsequently, with reference to FIG. 4, the contents of the processing of the portable terminal PT1 of the present embodiment will be described. S100 to S120, S140, and S142 are the same as in the first embodiment. If YES in S142, the CPU 72 of the portable terminal PT1 transmits a Scan_Req signal in S144 to the established printer PR by unicast. Thus, the Scan_Req signal can be received by the printer PR (see YES in S82 of FIG. 3).

次いで、S146では、CPU72は、確立済みプリンタであるプリンタPRから、BTI/F62を介して、Scan_Res信号(図3のS92参照)を受信したのか否かを判断する。CPU72は、Scan_Res信号を受信した場合には、S146でYESと判断して、S148に進む。一方、CPU72は、S144が終了してから所定時間が経過するまでにScan_Res信号を受信しなかった場合には、S146でNOと判断し、S148〜S154をスキップして、S100に戻る。S148〜S154は、第1実施例と同様である。   Next, in S146, the CPU 72 determines whether or not a Scan_Res signal (see S92 in FIG. 3) has been received from the printer PR, which has been established, via the BTI / F 62. When receiving the Scan_Res signal, the CPU 72 determines YES in S146, and proceeds to S148. On the other hand, if the Scan_Res signal has not been received before the predetermined time has elapsed from the end of S144, the CPU 72 determines NO in S146, skips S148 to S154, and returns to S100. S148 to S154 are the same as in the first embodiment.

(ケースC:図8)
続いて、図8及び図9を参照して、本実施例の具体的なケースについて説明する。図8のケースCの初期状態は、図5のケースAの初期状態と同様である。図5のケースAと異なる点を中心として、ケースCの内容を説明する。
(Case C: FIG. 8)
Subsequently, a specific case of the present embodiment will be described with reference to FIGS. The initial state of case C in FIG. 8 is the same as the initial state of case A in FIG. The contents of case C will be described focusing on the differences from case A in FIG.

プリンタPRは、電源がONされる場合(A0)に、T202でSSIDを生成するが、Wi−FiI/F20をOFF状態に維持し、さらに、G/O状態に移行しない(即ち図5のT4を実行しない)。このために、プリンタPRの消費電力を低減させることができる。   When the power is turned on (A0), the printer PR generates an SSID in T202, but keeps the Wi-Fi I / F 20 in the OFF state and does not shift to the G / O state (ie, T4 in FIG. 5). Do not run). For this reason, the power consumption of the printer PR can be reduced.

プリンタPRは、Wi−Fi接続操作がプリンタPRに実行される場合(A1)に、T204において、Wi−FiI/F20をON状態に変更し、G/O状態に移行する(図7のS10でYES、S11)。T210は、図5のT10と同様である。携帯端末PT1に実行される各操作A1〜A4は、図5と同様である。また、T220〜T270は、図5のT20〜T70と同様である。T272では、プリンタPRは、デバイス状態に移行し、Wi−FiI/F20をOFF状態に変更し、SSID「X2」を生成する(図7のS34A)。T272が実行されるので、プリンタPRの消費電力を低減させることができる。   When the Wi-Fi connection operation is performed on the printer PR (A1), in T204, the printer PR changes the Wi-Fi I / F 20 to the ON state and shifts to the G / O state (S10 in FIG. 7). YES, S11). T210 is the same as T10 in FIG. The operations A1 to A4 executed on the portable terminal PT1 are the same as those in FIG. Further, T220 to T270 are the same as T20 to T70 in FIG. At T272, the printer PR shifts to the device state, changes the Wi-Fi I / F 20 to the OFF state, and generates the SSID “X2” (S34A in FIG. 7). Since T272 is executed, the power consumption of the printer PR can be reduced.

(ケースD1;図9)
図9のケースD1は、図8のケースCの続きであり、Wi−FiI/F20がOFF状態であり(図8のT272参照)、BTI/F22がON状態である(T246参照)。また、携帯端末PT1のBTデバイス名格納領域80には、確立済みプリンタであるプリンタPRのBTデバイス名「NP」が格納されている(T250参照)。図6のケースB1と異なる点を中心として、ケースD1の内容を説明する。
(Case D1; FIG. 9)
Case D1 in FIG. 9 is a continuation of case C in FIG. 8, in which the Wi-Fi I / F 20 is in the OFF state (see T272 in FIG. 8) and the BTI / F22 is in the ON state (see T246). In the BT device name storage area 80 of the portable terminal PT1, the BT device name “NP” of the printer PR which is an established printer is stored (see T250). The contents of case D1 will be described focusing on the differences from case B1 of FIG.

T300のAdvertise信号は、送信元を示す情報としてプリンタPRのBTデバイス名「NP」を含むが、SSID「X2」とパスワード「PS」とを含まない。携帯端末PT1に実行される操作A10は、図6と同様である。T302は、図6のT102と同様である。   The Advertise signal of T300 includes the BT device name “NP” of the printer PR as information indicating the transmission source, but does not include the SSID “X2” and the password “PS”. The operation A10 executed on the portable terminal PT1 is the same as in FIG. T302 is the same as T102 in FIG.

T310では、携帯端末PT1は、Scan_Req信号をプリンタPRに送信する(図4のS144)。Scan_Req信号は、送信先を示す情報としてBTデバイス名「NP」を含むと共に、送信元を示す情報としてBTデバイス名「N1」を含む。   At T310, the portable terminal PT1 transmits a Scan_Req signal to the printer PR (S144 in FIG. 4). The Scan_Req signal includes the BT device name “NP” as information indicating the transmission destination and the BT device name “N1” as information indicating the transmission source.

プリンタPRは、携帯端末PT1からScan_Req信号を受信する場合に、T312において、Wi−FiI/F20をON状態に変更し、G/O状態に移行する(図3のS82でYES、S90、図7のS40AでYES、S42)。そして、T314では、プリンタPRは、Scan_Res信号を携帯端末PT1に送信する。Scan_Res信号は、送信先を示す情報としてBTデバイス名「N1」を含むと共に、送信元を示す情報としてBTデバイス名「NP」を含む。また、Scan_Res信号は、SSID「X2」とパスワード「PS」とを含む。T320〜T340は、図6のT120〜T140と同様である。T342では、プリンタPRは、デバイス状態に移行し(即ちG/O状態を停止し)、Wi−FiI/F20をOFF状態に変更し、SSID「X3」を生成する(図7のS56A)。T342が実行されるので、プリンタPRの消費電力を低減させることができる。   When receiving the Scan_Req signal from the portable terminal PT1, the printer PR changes the Wi-Fi I / F 20 to the ON state and shifts to the G / O state in T312 (YES in S82 in FIG. 3, S90, FIG. 7). YES in S40A, S42). Then, at T314, the printer PR transmits a Scan_Res signal to the portable terminal PT1. The Scan_Res signal includes the BT device name “N1” as information indicating the transmission destination, and includes the BT device name “NP” as information indicating the transmission source. Also, the Scan_Res signal includes the SSID “X2” and the password “PS”. T320 to T340 are the same as T120 to T140 in FIG. In T342, the printer PR shifts to the device state (that is, stops the G / O state), changes the Wi-Fi I / F 20 to the OFF state, and generates the SSID “X3” (S56A in FIG. 7). Since T342 is executed, the power consumption of the printer PR can be reduced.

(ケースD2)
ケースD2もケースCの続きである。T350のAdvertise信号は、SSID「X2」とパスワード「PS」とを含まない。A20は、図6のケースB2と同様であり、T352は、図6のT152と同様である。携帯端末PT2は、Scan_Req信号をプリンタPRに送信せず(図4のS142でNO)、この結果、Wi−Fi接続要求信号をプリンタPRに送信しない。
(Case D2)
Case D2 is a continuation of Case C. The Advertise signal of T350 does not include the SSID “X2” and the password “PS”. A20 is the same as case B2 in FIG. 6, and T352 is the same as T152 in FIG. The portable terminal PT2 does not transmit the Scan_Req signal to the printer PR (NO in S142 of FIG. 4), and as a result, does not transmit the Wi-Fi connection request signal to the printer PR.

(第2実施例の効果)
本実施例でも、プリンタPRと携帯端末PT1とは、BT通信を実行した後に、Wi−Fiネットワークを適切に形成することができる(図9のケースD1参照)。他にも、第1実施例と同様の効果が得られる。また、本実施例では、プリンタPRのSSIDとパスワードとを含むWi−Fi設定情報がAdvertise信号に含まれない。このために、Wi−Fi設定情報が、例えば、プリンタPRを利用することがプリンタPRの管理者によって許可されていない携帯端末PT2に送信されるのを抑制することができる。このために、プリンタPRのセキュリティを向上させることができる。なお、本実施例では、Scan_Req信号、Scan_Res信号が、それぞれ、「所定の要求信号」、「応答信号」の一例である。また、Scan_Res信号に含まれるSSIDとパスワードとが、「ネットワーク関係情報」の一例である。
(Effect of Second Embodiment)
Also in the present embodiment, the printer PR and the portable terminal PT1 can appropriately form a Wi-Fi network after executing BT communication (see case D1 in FIG. 9). In addition, the same effects as in the first embodiment can be obtained. In the present embodiment, the Wi-Fi setting information including the SSID of the printer PR and the password is not included in the Advertise signal. For this reason, it is possible to prevent the Wi-Fi setting information from being transmitted to, for example, the portable terminal PT2 that is not permitted to use the printer PR by the administrator of the printer PR. For this reason, the security of the printer PR can be improved. In this embodiment, the Scan_Req signal and the Scan_Res signal are examples of a “predetermined request signal” and a “response signal”, respectively. The SSID and the password included in the Scan_Res signal are an example of “network-related information”.

(第3実施例)
上記の各実施例と異なる点を中心に説明する。携帯端末(例えばPT1)は、上記の各実施例では、BTデバイス名格納領域(例えば80)を備えるが、本実施例では、BTデバイス名格納領域を備えていない。そして、プリンタPRのメモリ34は、確立済み端末のBTデバイス名を格納するためのBTデバイス名格納領域40を備える(図1参照)。また、メモリ34は、送信フラグ38を格納しない。
(Third embodiment)
The following description focuses on the differences from the above embodiments. The mobile terminal (for example, PT1) has a BT device name storage area (for example, 80) in each of the above embodiments, but does not have a BT device name storage area in this embodiment. The memory 34 of the printer PR includes a BT device name storage area 40 for storing the BT device name of the established terminal (see FIG. 1). The memory 34 does not store the transmission flag 38.

(プリンタPRのWi−FiI/F関連処理;図7)
続いて、図7を参照して、本実施例のWi−FiI/F関連処理の内容を説明する。S2〜S20は、第2実施例と同様である。S24では、プリンタPRのCPU32は、Wi−Fi接続を利用して、携帯端末から、Wi−FiI/F20を介して、携帯端末のBTデバイス名を受信する。そして、CPU32は、受信済みのBTデバイス名をBTデバイス名格納領域40に格納させる。これにより、確立済み端末のBTデバイス名がBTデバイス名格納領域40に格納される。また、CPU32は、S24が終了すると、S26及びS28を実行せずに、S30に進む。S30〜S34A、及び、S40A〜S56Aは、第2実施例と同様である。
(Wi-Fi I / F related processing of printer PR; FIG. 7)
Subsequently, the contents of the Wi-Fi I / F related processing of the present embodiment will be described with reference to FIG. S2 to S20 are the same as in the second embodiment. In S24, the CPU 32 of the printer PR receives the BT device name of the mobile terminal from the mobile terminal via the Wi-Fi I / F 20 using the Wi-Fi connection. Then, the CPU 32 stores the received BT device name in the BT device name storage area 40. As a result, the BT device name of the established terminal is stored in the BT device name storage area 40. When S24 ends, the CPU 32 proceeds to S30 without executing S26 and S28. S30 to S34A and S40A to S56A are the same as in the second embodiment.

(プリンタPRのBTI/F関連処理;図3)
続いて、図3を参照して、本実施例のBTI/F関連処理の内容を説明する。S70は、第1及び第2実施例と同様である。S72では、CPU32は、メモリ34内のBTデバイス名格納領域40に1個以上のBTデバイス名が格納されているのか否かを判断する。CPU32は、1個以上のBTデバイス名が格納されている場合には、S72でYESと判断して、S74に進み、1個のBTデバイス名も格納されていない場合には、S72でNOと判断し、S74をスキップして、S70に戻る。
(BTI / F related processing of printer PR; FIG. 3)
Next, the contents of the BTI / F related processing of the present embodiment will be described with reference to FIG. Step S70 is the same as in the first and second embodiments. In S72, the CPU 32 determines whether or not one or more BT device names are stored in the BT device name storage area 40 in the memory 34. The CPU 32 determines YES in S72 when one or more BT device names are stored, proceeds to S74, and returns NO in S72 when one BT device name is not stored. Judge, skip S74 and return to S70.

S80及びS82は、第2実施例と同様である。CPU32は、S82でYESと判断する場合に、S84において、Scan_Req信号に含まれる送信元のBTデバイス名が、メモリ34内のBTデバイス名格納領域40に格納されているのか否かを判断する。CPU32は、送信元のBTデバイス名がBTデバイス名格納領域40に格納されている場合、即ち、Scan_Req信号の送信元の携帯端末が確立済み端末である場合には、S84でYESと判断して、S90に進む。一方、CPU32は、送信元のBTデバイス名がBTデバイス名格納領域40に格納されていない場合、即ち、Scan_Req信号の送信元の携帯端末とのWi−Fi接続が過去に確立されていない場合には、S84でNOと判断し、S90及びS92をスキップして、S70に戻る。S90及びS92は、第2実施例と同様である。   S80 and S82 are the same as in the second embodiment. When determining YES in S82, the CPU 32 determines in S84 whether the BT device name of the transmission source included in the Scan_Req signal is stored in the BT device name storage area 40 in the memory 34. When the BT device name of the transmission source is stored in the BT device name storage area 40, that is, when the mobile terminal of the transmission source of the Scan_Req signal is an established terminal, the CPU 32 determines YES in S84. , S90. On the other hand, when the BT device name of the transmission source is not stored in the BT device name storage area 40, that is, when the Wi-Fi connection with the mobile terminal of the transmission source of the Scan_Req signal has not been established in the past, Determines NO in S84, skips S90 and S92, and returns to S70. S90 and S92 are the same as in the second embodiment.

(携帯端末の処理;図4)
続いて、図4を参照して、本実施例の携帯端末PT1の処理の内容を説明する。S100〜S114は、第1及び第2実施例と同様である。S116では、携帯端末PT1のCPU72は、S114で確立されたWi−Fi接続を利用して、Wi−FiI/F60を介して、携帯端末PT1のBTデバイス名「N1」をプリンタPRに送信する(図7のS24)。S118、S120、及び、S140は、第1及び第2実施例と同様である。携帯端末PT1のCPU72は、S140でYESの場合に、S142を実行せずに、S144に進む。即ち、CPU72は、Advertise信号の送信元のプリンタPRが確立済みプリンタであるのか否かに関わらず、S144において、Scan_Req信号をプリンタPRに送信する。S146〜S154は、第2実施例と同様である。
(Process of mobile terminal; Fig. 4)
Subsequently, with reference to FIG. 4, the contents of the processing of the portable terminal PT1 of the present embodiment will be described. Steps S100 to S114 are the same as in the first and second embodiments. In S116, the CPU 72 of the mobile terminal PT1 transmits the BT device name “N1” of the mobile terminal PT1 to the printer PR via the Wi-Fi I / F 60 using the Wi-Fi connection established in S114 ( S24 in FIG. 7). Steps S118, S120, and S140 are the same as in the first and second embodiments. If YES in S140, the CPU 72 of the portable terminal PT1 proceeds to S144 without executing S142. That is, the CPU 72 transmits the Scan_Req signal to the printer PR in S144, regardless of whether the printer PR that has transmitted the Advertise signal is an established printer. S146 to S154 are the same as in the second embodiment.

(ケースE:図10)
続いて、図10及び図11を参照して、本実施例の具体的なケースについて説明する。図10のケースEの初期状態は、図5のケースAの初期状態(即ち図8のケースCの初期状態)と同様である。図8のケースCと異なる点を中心として、ケースEの内容を説明する。
(Case E: FIG. 10)
Subsequently, a specific case of the present embodiment will be described with reference to FIGS. The initial state of case E in FIG. 10 is the same as the initial state of case A in FIG. 5 (that is, the initial state of case C in FIG. 8). The contents of case E will be described focusing on the differences from case C of FIG.

A0〜A4は、図8と同様であり、T402〜T442は、図8のT202〜T242と同様である。T444では、携帯端末PT1は、T442で確立されたWi−Fi接続を利用して、携帯端末PT1のBTデバイス名「N1」をプリンタPRに送信する(図4のS116)。   A0 to A4 are the same as in FIG. 8, and T402 to T442 are the same as T202 to T242 in FIG. At T444, the portable terminal PT1 transmits the BT device name “N1” of the portable terminal PT1 to the printer PR using the Wi-Fi connection established at T442 (S116 in FIG. 4).

プリンタPRは、携帯端末PT1からBTデバイス名「N1」を受信する場合に、T445において、BTデバイス名「N1」をBTデバイス名格納領域40に格納する(図7のS24)。この結果、T446において、プリンタPRは、BTI/F22をOFF状態からON状態に変更する(図3のS70でYES、S72でYES、S74)。T460〜T472は、図8のT260〜S272と同様である。   When receiving the BT device name “N1” from the portable terminal PT1, the printer PR stores the BT device name “N1” in the BT device name storage area 40 at T445 (S24 in FIG. 7). As a result, at T446, the printer PR changes the BTI / F 22 from the OFF state to the ON state (YES in S70, YES in S72, S74 in FIG. 3). T460 to T472 are the same as T260 to S272 in FIG.

(ケースF1;図11)
図11のケースF1は、図10のケースEの続きであり、Wi−FiI/F20がOFF状態であり(図10のT472参照)、BTI/F22がON状態である(T446参照)。また、プリンタPRのBTデバイス名格納領域40には、確立済み端末である携帯端末PT1のBTデバイス名「N1」が格納されている(T445参照)。図9のケースD1と異なる点を中心として、ケースF1の内容を説明する。
(Case F1; FIG. 11)
The case F1 in FIG. 11 is a continuation of the case E in FIG. 10, in which the Wi-Fi I / F 20 is in the OFF state (see T472 in FIG. 10) and the BTI / F22 is in the ON state (see T446). The BT device name “N1” of the portable terminal PT1, which is an established terminal, is stored in the BT device name storage area 40 of the printer PR (see T445). The contents of case F1 will be described focusing on the differences from case D1 of FIG.

A10は、図9のケースD1と同様であり、T500及びT510は、図9のT300及びT310と同様である。プリンタPRは、携帯端末PT1からScan_Req信号を受信する場合に、T511において、Scan_Req信号内の送信元のBTデバイス名「N1」がBTデバイス名格納領域40に格納されていると判断する(図3のS84でYES)。従って、T512では、プリンタPRは、Wi−FiI/F20をON状態に変更し、G/O状態に移行する(図3のS90、図7のS40AでYES、S42)。T514〜T542は、図9のT314〜T342と同様である。   A10 is the same as case D1 in FIG. 9, and T500 and T510 are the same as T300 and T310 in FIG. When receiving the Scan_Req signal from the portable terminal PT1, the printer PR determines that the BT device name “N1” of the transmission source in the Scan_Req signal is stored in the BT device name storage area 40 in T511 (FIG. 3). YES in S84). Accordingly, in T512, the printer PR changes the Wi-Fi I / F 20 to the ON state and shifts to the G / O state (S90 in FIG. 3, YES in S40A in FIG. 7, S42). T514 to T542 are the same as T314 to T342 in FIG.

(ケースF2)
ケースF2もケースEの続きである。プリンタPRのBTデバイス名格納領域40には、携帯端末PT2のBTデバイス名「N2」が格納されていない。T550は、図9のT350と同様である、携帯端末PT2は、A20の操作が実行され、プリンタPRからAdvertise信号を受信する場合に、T560において、Scan_Req信号をプリンタPRに送信する(図4のS140でYES、S144)。Scan_Req信号は、送信先を示す情報としてBTデバイス名「NP」を含むと共に、送信元を示す情報としてBTデバイス名「N2」を含む。
(Case F2)
Case F2 is a continuation of case E. The BT device name “N2” of the portable terminal PT2 is not stored in the BT device name storage area 40 of the printer PR. T550 is the same as T350 in FIG. 9. When the operation of A20 is executed and the Advertise signal is received from the printer PR, the portable terminal PT2 transmits a Scan_Req signal to the printer PR in T560 (FIG. 4). YES in S140, S144). The Scan_Req signal includes the BT device name “NP” as the information indicating the transmission destination, and includes the BT device name “N2” as the information indicating the transmission source.

プリンタPRは、携帯端末PT2からScan_Req信号を受信する場合に、T561において、Scan_Req信号内の送信元のBTデバイス名「N2」がBTデバイス名格納領域40に格納されていないと判断する(図3のS84でNO)。従って、プリンタPRは、Wi−FiI/F20をON状態に変更せず、G/O状態に移行しない。これにより、プリンタPRの消費電力を低減させることができる。また、プリンタPRは、Scan_Res信号を携帯端末PT2に送信しない。この結果、携帯端末PT2は、Wi−Fi接続要求信号をプリンタPRに送信しない(図4のS146でNO)。   When receiving the Scan_Req signal from the portable terminal PT2, the printer PR determines in T561 that the source BT device name “N2” in the Scan_Req signal is not stored in the BT device name storage area 40 (FIG. 3). NO in S84). Therefore, the printer PR does not change the Wi-Fi I / F 20 to the ON state and does not shift to the G / O state. Thereby, the power consumption of the printer PR can be reduced. Further, the printer PR does not transmit the Scan_Res signal to the portable terminal PT2. As a result, the portable terminal PT2 does not transmit a Wi-Fi connection request signal to the printer PR (NO in S146 of FIG. 4).

(第3実施例の効果)
本実施例でも、プリンタPRと携帯端末PT1とは、BT通信を実行した後に、Wi−Fiネットワークを適切に形成することができる(図11のケースF1参照)。他にも、第1及び第2実施例と同様の効果が得られる。また、本実施例では、プリンタPRは、携帯端末からScan_Req信号を受信する場合に、Wi−Fi設定情報を含むScan_Res信号を自動的に携帯端末に送信するのではなく、携帯端末が確立済み端末であることに応じて(図3のS84でYES)、Wi−Fi設定情報を含むScan_Res信号を携帯端末に送信する。このために、Wi−Fi設定情報が、例えば、プリンタPRを利用することがプリンタPRの管理者によって許可されていない携帯端末PT2に送信されるのをより抑制することができる。このために、プリンタPRのセキュリティを向上させることができる。
(Effect of Third Embodiment)
Also in the present embodiment, the printer PR and the portable terminal PT1 can appropriately form a Wi-Fi network after performing BT communication (see case F1 in FIG. 11). In addition, the same effects as those of the first and second embodiments can be obtained. Further, in the present embodiment, when receiving the Scan_Req signal from the mobile terminal, the printer PR does not automatically transmit the Scan_Res signal including the Wi-Fi setting information to the mobile terminal, but the mobile terminal has the established terminal. (YES in S84 of FIG. 3), a Scan_Res signal including the Wi-Fi setting information is transmitted to the portable terminal. For this reason, it is possible to further suppress the transmission of the Wi-Fi setting information to, for example, the portable terminal PT2 that is not permitted to use the printer PR by the administrator of the printer PR. For this reason, the security of the printer PR can be improved.

また、本実施例では、プリンタPRは、BTデバイス名格納領域40を備えており、携帯端末のBTデバイス名がBTデバイス名格納領域40に格納されているのか否かを判断し(図3のS84)、判断結果に応じて、その後の処理を変える。従って、携帯端末PT1,PT2は、BTデバイス名格納領域を備えずに済み、さらに、判断処理を実行せずに済む。このために、携帯端末PT1,PT2の処理負荷を低減させることができる。なお、本実施例では、携帯端末PT1,PT2のBTデバイス名「N1」,「N2」が、「第2の機器識別情報」の一例である。また、プリンタPRから見ると、携帯端末PT1、BTデバイス名「N1」が、それぞれ、「第3の通信機器」、「第3の機器識別情報」の一例である。   Further, in this embodiment, the printer PR includes the BT device name storage area 40, and determines whether the BT device name of the portable terminal is stored in the BT device name storage area 40 (see FIG. 3). S84) The subsequent processing is changed according to the determination result. Therefore, the portable terminals PT1 and PT2 do not need to have the BT device name storage area, and do not need to execute the determination processing. For this reason, the processing load on the portable terminals PT1 and PT2 can be reduced. In the present embodiment, the BT device names “N1” and “N2” of the mobile terminals PT1 and PT2 are an example of “second device identification information”. Further, when viewed from the printer PR, the portable terminal PT1 and the BT device name “N1” are examples of “third communication device” and “third device identification information”, respectively.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。   As described above, the specific examples of the present invention have been described in detail. However, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. Modifications of the above embodiment are listed below.

(変形例1)各実施例の図3のS80において、プリンタPRは、プリンタPRのBTデバイス名「NP」を含まないAdvertise信号を外部に送信してもよい。そして、携帯端末PT1は、図4のS140において、プリンタPRからAdvertise信号を受信する場合(S140でYES)に、S142〜S146を実行せずに、S148を実行してもよい。即ち、「トリガ信号」は、「第1の機器識別情報」を含まなくてもよい。また、本変形例では、「判断処理」を省略可能である。 (Modification 1) In S80 of FIG. 3 of each embodiment, the printer PR may transmit an Advertise signal that does not include the BT device name “NP” of the printer PR to the outside. Then, when the portable terminal PT1 receives the Advertise signal from the printer PR in S140 of FIG. 4 (YES in S140), the portable terminal PT1 may execute S148 without executing S142 to S146. That is, the “trigger signal” may not include the “first device identification information”. In this modification, the “determination process” can be omitted.

(変形例2)第1及び第2実施例において、プリンタPRは、図2及び図7のS24を実行しなくてもよい。この場合、例えば、携帯端末PT1は、プリンタPRとBT通信を実行して、プリンタPRからBTデバイス名「NP」を受信してもよい。また、例えば、携帯端末PT1のユーザは、プリンタPRのBTデバイス名「NP」を入力するための操作を携帯端末PT1に実行して、BTデバイス名「NP」をBTデバイス名格納領域80に格納させてもよい。本変形例では、「第2の確立部」及び「機器識別情報送信部」を省略可能であり、「第2の確立処理」及び「機器識別情報受信処理」を省略可能である。 (Modification 2) In the first and second embodiments, the printer PR does not have to execute S24 of FIGS. 2 and 7. In this case, for example, the portable terminal PT1 may execute BT communication with the printer PR and receive the BT device name “NP” from the printer PR. Further, for example, the user of the portable terminal PT1 executes an operation for inputting the BT device name “NP” of the printer PR on the portable terminal PT1, and stores the BT device name “NP” in the BT device name storage area 80. May be. In the present modification, the “second establishing unit” and the “device identification information transmitting unit” can be omitted, and the “second establishing process” and “device identification information receiving process” can be omitted.

(変形例3)第3実施例では、携帯端末PT1は、図4のS116を実行しなくてもよい。この場合、例えば、プリンタPRは、携帯端末PT1とBT通信を実行して、携帯端末PT1からBTデバイス名「N1」を受信してもよい。また、例えば、携帯端末PT1のユーザは、携帯端末PT1のBTデバイス名「N1」を入力するための操作をプリンタPRに実行して、BTデバイス名「N1」をBTデバイス名格納領域40に格納させてもよい。本変形例では、「第2の確立部」及び「機器識別情報受信部」を省略可能である。 (Modification 3) In the third embodiment, the portable terminal PT1 does not have to execute S116 in FIG. In this case, for example, the printer PR may execute BT communication with the portable terminal PT1 and receive the BT device name “N1” from the portable terminal PT1. Further, for example, the user of the portable terminal PT1 executes an operation for inputting the BT device name “N1” of the portable terminal PT1 on the printer PR, and stores the BT device name “N1” in the BT device name storage area 40. May be. In this modified example, the “second establishing unit” and the “device identification information receiving unit” can be omitted.

(変形例4)第1実施例において、プリンタPRのBTI/F22は、CPUとメモリとを備えていてもよい。BTI/F22のメモリは、プログラムと、BTデバイス名「NP」と、を予め格納していてもよい。BTI/F22のCPUは、BTI/F22がON状態である間に、制御部30内のCPU32から指示を受けなくても、BTI/F22のメモリ内のプログラムに従ってBTデバイス名「NP」を外部に送信することを繰り返してもよい。この場合、BTI/F22は、双方向通信を不可能な簡易な構成であってもよい。即ち、BTI/F22は、Scan_Req信号及びScan_Res信号の通信を実行不可能であってもよい。一般的に言うと、「トリガ信号送信部」は、第1実施例のように、「第1の通信機器」の制御部内のCPUが「第2のインターフェース」を制御することによって実現されてもよいし、「第1の通信機器」の制御部内のCPUが「第2のインターフェース」を制御せずに実現されてもよい。より一般的に言うと、「第1の通信機器」は、2個以上のプロセッサ(例えばプリンタPRの制御部30内のCPU32とBTI/F22内のCPU)と、2個以上のメモリ(例えば制御部30内のメモリ34とBTI/F22内のメモリ)と、を備えていてもよく、各プロセッサが各メモリに格納されている各プログラムに従って処理を実行してもよい。 (Modification 4) In the first embodiment, the BTI / F 22 of the printer PR may include a CPU and a memory. The memory of the BTI / F 22 may store a program and a BT device name “NP” in advance. The CPU of the BTI / F 22 sends the BT device name “NP” to the outside according to the program in the memory of the BTI / F 22 without receiving an instruction from the CPU 32 in the control unit 30 while the BTI / F 22 is in the ON state. Transmission may be repeated. In this case, the BTI / F 22 may have a simple configuration in which bidirectional communication is not possible. That is, the BTI / F 22 may not be able to execute communication of the Scan_Req signal and the Scan_Res signal. Generally speaking, the “trigger signal transmitting unit” may be realized by the CPU in the control unit of the “first communication device” controlling the “second interface” as in the first embodiment. Alternatively, it may be realized without the CPU in the control unit of the “first communication device” controlling the “second interface”. More generally, the “first communication device” includes two or more processors (for example, the CPU 32 in the control unit 30 of the printer PR and the CPU in the BTI / F 22) and two or more memories (for example, (A memory 34 in the unit 30 and a memory in the BTI / F 22), and each processor may execute processing according to each program stored in each memory.

(変形例5)第1実施例の図3のS80において、プリンタPRは、パスワードを含まないAdvertise信号を送信してもよい。また、第2及び第3実施例の図3のS92において、プリンタPRは、パスワードを含まないScan_Res信号を送信してもよい。この場合、Advertise信号又はScan_Res信号を受信した携帯端末においてパスワード入力画面が表示されて、パスワードがユーザによって携帯端末に入力される。本変形例では、SSIDのみが、「ネットワーク関係情報」の一例である。 (Modification 5) In S80 of FIG. 3 of the first embodiment, the printer PR may transmit an Advertise signal containing no password. Further, in S92 of FIG. 3 of the second and third embodiments, the printer PR may transmit a Scan_Res signal that does not include a password. In this case, a password input screen is displayed on the mobile terminal that has received the Advertise signal or the Scan_Res signal, and the password is input to the mobile terminal by the user. In this modification, only the SSID is an example of the “network-related information”.

(変形例6)各実施例において、プリンタPRの電源がONされている間に、BTI/F22がON状態に維持されてもよい。そして、プリンタPRは、プリンタPRの電源がONされている間に、Advertise信号を繰り返し送信してもよい。本変形例では、「変更部」を省略可能である。 (Modification 6) In each embodiment, the BTI / F 22 may be maintained in the ON state while the power of the printer PR is turned on. Then, the printer PR may repeatedly transmit the Advertise signal while the power of the printer PR is ON. In the present modification, the “change unit” can be omitted.

(変形例7)各実施例では、プリンタPRのパスワードが固定されている情報であるが、プリンタPRのSSIDは、プリンタPRと携帯端末との間のWi−Fi接続が切断される毎に変更される。これに代えて、プリンタPRのSSID及びパスワードの双方が固定されている情報であってもよい。そして、第1実施例の図3のS80において、プリンタPRは、SSIDもパスワードも含まないAdvertise信号を送信してもよい。また、第2及び第3実施例の図3のS92において、プリンタPRは、SSIDもパスワードも含まないScan_Res信号を送信してもよい。この場合、携帯端末PT1は、図4のS114でプリンタPRとのWi−Fi接続が確立される場合に、プリンタPRのSSID及びパスワードの双方を格納する。そして、携帯端末PT1は、図4のS150において、格納済みのSSID及びパスワードを利用して、プリンタPRとのWi−Fi接続を確立する。即ち、「第1の通信機器」は、ネットワーク関係情報を外部に送信しなくてもよい。 (Variation 7) In each embodiment, the password of the printer PR is fixed, but the SSID of the printer PR is changed every time the Wi-Fi connection between the printer PR and the portable terminal is disconnected. Is done. Alternatively, the information may be information in which both the SSID and the password of the printer PR are fixed. Then, in S80 of FIG. 3 of the first embodiment, the printer PR may transmit an Advertise signal containing neither an SSID nor a password. Further, in S92 of FIG. 3 of the second and third embodiments, the printer PR may transmit a Scan_Res signal containing neither an SSID nor a password. In this case, the portable terminal PT1 stores both the SSID and the password of the printer PR when the Wi-Fi connection with the printer PR is established in S114 of FIG. Then, in S150 of FIG. 4, the portable terminal PT1 establishes a Wi-Fi connection with the printer PR using the stored SSID and password. That is, the “first communication device” does not need to transmit the network-related information to the outside.

(変形例8)第2及び第3実施例の図3のS92において、プリンタPRは、BT方式の論理リンク(即ちBT接続)を携帯端末と確立し、BT接続を利用して、SSID及びパスワードを携帯端末に送信してもよい。即ち、「ネットワーク関係情報」は、第2及び第3実施例のように、第2の通信方式に従った無線接続を利用せずに、外部に送信されてもよいし、本変形例のように、第2の通信方式に従った無線接続を利用して、外部に送信されてもよい。 (Modification 8) In S92 of FIG. 3 of the second and third embodiments, the printer PR establishes a BT logical link (that is, a BT connection) with the portable terminal, and utilizes the BT connection to establish an SSID and a password. May be transmitted to the mobile terminal. That is, the “network-related information” may be transmitted outside without using the wireless connection according to the second communication method as in the second and third embodiments, or as in the present modification. Alternatively, the data may be transmitted outside using a wireless connection according to the second communication method.

(変形例9)プリンタPRは、WFDをサポートしていなくてもよく、その代わりに、いわゆるSoftAPをサポートしていてもよい。この場合、プリンタPRは、図2のS4、図7のS11又はS42において、SoftAPを起動し、図7のS34A及びS56Aにおいて、SoftAPを停止する。 (Modification 9) The printer PR may not support the WFD, but may support the so-called SoftAP instead. In this case, the printer PR activates the SoftAP in S4 of FIG. 2, S11 or S42 of FIG. 7, and stops the SoftAP in S34A and S56A of FIG.

(変形例10)「第1(又は第2、第3)の機器識別情報」は、BTデバイス名でなくてもよく、他の識別情報(例えば、MACアドレス、IPアドレス等)であってもよい。 (Variation 10) “First (or second and third) device identification information” may not be a BT device name, but may be other identification information (for example, a MAC address, an IP address, etc.). Good.

(変形例11)第1実施例では、プリンタPRの電源がONされている間に、Wi−FiI/F20がON状態に維持され、プリンタPRの動作状態がG/O状態を維持される(図2のS4)。これに代えて、プリンタPRは、プリンタPRの電源がONされる際に、送信フラグ38が「ON」を示すのか否かを判断し、送信フラグ38が「ON」を示す場合に、S4の処理を実行し、送信フラグ38が「OFF」を示す場合に、S4の処理を実行しなくてもよい。本変形例では、プリンタPRの電源がONされている間に、Wi−FiI/F20がOFF状態に設定され得るし、プリンタPRの動作状態がデバイス状態に設定され得るので、プリンタPRの消費電力を低減させることができる。 (Modification 11) In the first embodiment, while the power of the printer PR is turned on, the Wi-Fi I / F 20 is maintained in the ON state, and the operation state of the printer PR is maintained in the G / O state ( S4 in FIG. 2). Instead, the printer PR determines whether or not the transmission flag 38 indicates “ON” when the power of the printer PR is turned on. If the transmission flag 38 indicates “ON”, the process proceeds to S4. If the process is executed and the transmission flag 38 indicates “OFF”, the process of S4 may not be executed. In the present modification, while the power of the printer PR is ON, the Wi-Fi I / F 20 can be set to the OFF state, and the operation state of the printer PR can be set to the device state. Can be reduced.

(変形例12)各実施例では、「第2のインターフェース」の「第1の状態」は、BTI/F22に電力が供給されていないOFF状態である。これに代えて、「第1の状態」は、BTI/F22に少量の電力が供給されている省電力状態であってもよい。この場合、「第1の状態」は、BTI/F22を介した無線通信を実行可能な状態であってもよいし、BTI/F22を介した無線通信を実行不可能な状態であってもよい。ただし、前者の場合、例えば、「第1の状態」は、「第2の状態」よりも通信速度が遅い状態であってもよい。そして、図3のS74では、BTI/F22の状態が、省電力状態から、省電力状態よりも消費電力が高いON状態に変更されてもよい。同様に、Wi−FiI/F20も、OFF状態に代えて、少量の電力が供給されている省電力状態に設定されてもよい。 (Variation 12) In each embodiment, the “first state” of the “second interface” is an OFF state in which power is not supplied to the BTI / F 22. Instead, the “first state” may be a power saving state in which a small amount of power is supplied to the BTI / F 22. In this case, the “first state” may be a state where wireless communication via the BTI / F 22 can be executed, or may be a state where wireless communication via the BTI / F 22 cannot be executed. . However, in the former case, for example, the “first state” may be a state where the communication speed is lower than the “second state”. Then, in S74 of FIG. 3, the state of the BTI / F 22 may be changed from the power saving state to the ON state in which the power consumption is higher than the power saving state. Similarly, the Wi-Fi I / F 20 may be set to a power saving state in which a small amount of power is supplied instead of the OFF state.

(変形例13)「第1のインターフェース」は、Wi−Fi通信を実行するためのI/Fでなくてもよく、無線LANを構築可能な他の通信方式に従った無線通信を実行するためのI/Fであってもよい。また、「第2のインターフェース」は、BT通信を実行するためのI/Fでなくてもよく、例えば、近距離無線通信を実行可能な他の通信方式(例えばTransferJet(登録商標)方式)に従った無線通信を実行するためのI/Fであってもよい。 (Modification 13) The “first interface” may not be an I / F for executing Wi-Fi communication, and may execute wireless communication according to another communication method that can establish a wireless LAN. May be used. The “second interface” may not be an I / F for executing BT communication, and may be, for example, another communication method (for example, TransferJet (registered trademark) method) capable of executing short-range wireless communication. It may be an I / F for executing the following wireless communication.

(変形例14)「第1の通信機器」は、プリンタPRでなくてもよく、例えば、スキャナであってもよい。この場合、スキャナは、例えば、図2及び図7のS30又はS50において、携帯端末PT1から印刷データを受信する代わりに、原稿のスキャンを実行することによって生成されるスキャンデータを携帯端末PT1に送信してもよい。また、「第1の通信機器」は、プリンタ及びスキャナとは異なる機器(例えば、コピー機、ファクシミリ、電話機、PC、サーバ、携帯端末等)であってもよい。また、「第2の通信機器」は、携帯端末でなくてもよく、他の機器(例えば、プリンタ、スキャナ、コピー機、ファクシミリ、電話機、デスクトップ型PC、サーバ等)であってもよい。 (Modification 14) The “first communication device” may not be the printer PR, but may be, for example, a scanner. In this case, for example, in step S30 or S50 of FIGS. 2 and 7, instead of receiving print data from the portable terminal PT1, the scanner transmits scan data generated by executing document scanning to the portable terminal PT1. May be. Further, the “first communication device” may be a device different from a printer and a scanner (for example, a copier, a facsimile, a telephone, a PC, a server, a mobile terminal, and the like). The “second communication device” may not be a portable terminal, but may be another device (for example, a printer, a scanner, a copier, a facsimile, a telephone, a desktop PC, a server, and the like).

(変形例15)各実施例では、プリンタPRのCPU32及び携帯端末PT1のCPU72がプログラム(即ちソフトウェア)を実行することによって、図2〜図11の各処理が実現される。これに代えて、図2〜図11の各処理のうちの少なくとも1つの処理は、論理回路等のハードウェアによって実現されてもよい。 (Variation 15) In each embodiment, the CPU 32 of the printer PR and the CPU 72 of the portable terminal PT1 execute a program (that is, software) to realize each processing of FIGS. Alternatively, at least one of the processes in FIGS. 2 to 11 may be realized by hardware such as a logic circuit.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。
以下に、本明細書に記載の技術の特徴を列挙する。
(項目1)
第1の通信機器であって、
第1の通信方式に従った無線通信を実行するための第1のインターフェースと、
前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、
前記第2のインターフェースを介して、トリガ信号をブロードキャスト送信することを繰り返すトリガ信号送信部であって、前記トリガ信号は、前記第1の通信機器と第2の通信機器との双方が所属する第1の無線ネットワークを形成するための無線接続要求を前記第1の通信機器に送信するためのトリガとして、前記第2の通信機器によって利用されるべき信号であり、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記トリガ信号送信部と、
前記トリガ信号を受信した前記第2の通信機器から、前記第1のインターフェースを介して、前記無線接続要求を受信する接続要求受信部と、
前記第2の通信機器から前記無線接続要求を受信することに応じて、前記第1のインターフェースを介した第1の無線接続を前記第2の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、
を備える、第1の通信機器。
(項目2)
前記トリガ信号送信部は、前記第2のインターフェースを介して、前記第1の通信機器のメモリに格納されている第1の機器識別情報であって、前記第1の通信機器を識別するための前記第1の機器識別情報を含む前記トリガ信号をブロードキャスト送信することを繰り返し、
前記接続要求受信部は、
前記トリガ信号に含まれる前記第1の機器識別情報が前記第2の通信機器に格納されている場合に、前記第2の通信機器から前記無線接続要求を受信し、
前記トリガ信号に含まれる前記第1の機器識別情報が前記第2の通信機器に格納されていない場合に、前記第2の通信機器から前記無線接続要求を受信しない、項目1に記載の第1の通信機器。
(項目3)
前記第1の通信機器は、さらに、
前記第1のインターフェースを介した前記第1の無線接続を前記第2の通信機器と確立する前に、前記第1のインターフェースを介した第2の無線接続を第3の通信機器と確立して、前記第1の通信機器と前記第3の通信機器との双方が所属する第2の無線ネットワークを形成する第2の確立部と、
前記第2の無線ネットワークを利用して、前記第1のインターフェースを介して、前記メモリ内の前記第1の機器識別情報を前記第3の通信機器に送信する機器識別情報送信部と、を備え、
前記接続要求受信部は、前記第2の通信機器と前記第3の通信機器とが一致することに起因して、前記トリガ信号に含まれる前記第1の機器識別情報が前記第2の通信機器に格納されている場合に、前記第2の通信機器から前記無線接続要求を受信する、項目2に記載の第1の通信機器。
(項目4)
前記第1の通信機器は、さらに、
前記第1の機器識別情報が前記第3の通信機器に送信された後に、前記第2のインターフェースの状態を、第1の状態から、前記第1の状態よりも消費電力が高い第2の状態に変更する変更部を備える、項目3に記載の第1の通信機器。
(項目5)
前記トリガ信号は、前記第1の無線ネットワークに関係するネットワーク関係情報を含み、
前記第1の確立部は、前記ネットワーク関係情報を利用して、前記第1のインターフェースを介した前記第1の無線接続を前記第2の通信機器と確立する、項目1から項目4のいずれか一項に記載の第1の通信機器。
(項目6)
前記第1の通信機器は、さらに、
前記トリガ信号を受信した前記第2の通信機器から、前記第2のインターフェースを介して、所定の要求信号を受信する要求信号受信部と、
前記第2の通信機器から前記所定の要求信号を受信することに応じて、前記第2のインターフェースを介して、前記所定の要求信号に対する応答信号を前記第2の通信機器に送信する応答信号送信部であって、前記応答信号は、前記第1の無線ネットワークに関係するネットワーク関係情報を含む、前記応答信号送信部を備え、
前記接続要求受信部は、前記応答信号を受信した前記第2の通信機器から、前記第1のインターフェースを介して、前記無線接続要求を受信し、
前記第1の確立部は、前記ネットワーク関係情報を利用して、前記第1のインターフェースを介した前記第1の無線接続を前記第2の通信機器と確立する、項目1から項目4のいずれか一項に記載の第1の通信機器。
(項目7)
前記第1の通信機器は、さらに、
前記トリガ信号を受信した前記第2の通信機器から、前記第2のインターフェースを介して、前記第2の通信機器を識別するための第2の機器識別情報を含む所定の要求信号を受信する要求信号受信部と、
前記所定の要求信号に含まれる前記第2の機器識別情報が前記第1の通信機器のメモリに格納されているのか否かを判断する判断部と、
前記第2の機器識別情報が前記メモリに格納されていると判断される場合に、前記第2のインターフェースを介して、前記所定の要求信号に対する応答信号を前記第2の通信機器に送信し、前記第2の機器識別情報が前記メモリに格納されていないと判断される場合に、前記応答信号を前記第2の通信機器に送信しない応答信号送信部であって、前記応答信号は、前記第1の無線ネットワークに関係するネットワーク関係情報を含む、前記応答信号送信部と、を備え、
前記接続要求受信部は、前記応答信号を受信した前記第2の通信機器から、前記第1のインターフェースを介して、前記無線接続要求を受信し、
前記第1の確立部は、前記ネットワーク関係情報を利用して、前記第1のインターフェースを介した前記第1の無線接続を前記第2の通信機器と確立する、項目1に記載の第1の通信機器。
(項目8)
前記第1の通信機器は、さらに、
前記第1のインターフェースを介した前記第1の無線接続を前記第2の通信機器と確立する前に、前記第1のインターフェースを介した第2の無線接続を第3の通信機器と確立して、前記第1の通信機器と前記第3の通信機器との双方が所属する第2の無線ネットワークを形成する第2の確立部と、
前記第2の無線ネットワークを利用して、前記第3の通信機器から、前記第1のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を受信する機器識別情報受信部と、
前記第3の通信機器から前記第3の機器識別情報を受信することに応じて、前記第3の機器識別情報を前記メモリに格納させる格納制御部と、を備え、
前記判断部は、
前記第2の通信機器と前記第3の通信機器とが一致する場合に、前記第3の機器識別情報に一致する前記第2の機器識別情報が前記メモリに格納されていると判断し、
前記第2の通信機器と前記第3の通信機器とが一致しない場合に、前記第2の機器識別情報が前記メモリに格納されていないと判断する、項目7に記載の第1の通信機器。
(項目9)
前記第1の通信機器は、さらに、
前記第3の機器識別情報が前記メモリに格納された後に、前記第2のインターフェースの状態を、第1の状態から、前記第1の状態よりも消費電力が高い第2の状態に変更する変更部を備える、項目8に記載の第1の通信機器。
(項目10)
前記トリガ信号送信部は、前記第2の通信方式の論理リンクを確立するための最上位層の通信を実行せずに、前記最上位層よりも下位である下位層の通信を実行して、前記第2のインターフェースを介して、前記トリガ信号をブロードキャスト送信することを繰り返す、項目1から項目9のいずれか一項に記載の第1の通信機器。
(項目11)
第2の通信機器のためのコンピュータプログラムであって、
前記第2の通信機器は、
第1の通信方式に従った無線通信を実行するための第1のインターフェースと、
前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、
プロセッサと、を備え、
前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、
トリガ信号が第1の通信機器から繰り返しブロードキャスト送信される場合に、前記第1の通信機器から、前記第2のインターフェースを介して、前記トリガ信号を受信するトリガ信号受信処理であって、前記トリガ信号は、前記第1の通信機器と前記第2の通信機器との双方が所属する第1の無線ネットワークを形成するための無線接続要求を前記第1の通信機器に送信するためのトリガとして、前記第2の通信機器によって利用されるべき信号であり、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記トリガ信号受信処理と、
前記第1の通信機器から前記トリガ信号を受信することに応じて、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信する接続要求送信処理と、
前記無線接続要求を前記第1の通信機器に送信することに応じて、前記第1のインターフェースを介した第1の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立処理と、
を実行させる、コンピュータプログラム。
(項目12)
前記トリガ信号は、前記第1の通信機器を識別するための第1の機器識別情報を含み、
前記コンピュータプログラムは、前記プロセッサに、さらに、以下の各処理、即ち、
前記トリガ信号に含まれる前記第1の機器識別情報が前記第2の通信機器のメモリに格納されているのか否かを判断する判断処理を実行させ、
前記接続要求送信処理では、
前記第1の機器識別情報が前記メモリに格納されていると判断される場合に、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信し、
前記第1の機器識別情報が前記メモリに格納されていないと判断される場合に、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信しない、項目11に記載のコンピュータプログラム。
(項目13)
前記コンピュータプログラムは、前記プロセッサに、さらに、以下の各処理、即ち、
前記第1の機器識別情報が前記メモリに格納されていると判断される場合に、前記第2のインターフェースを介して、所定の要求信号を前記第1の通信機器に送信し、前記第1の機器識別情報が前記メモリに格納されていないと判断される場合に、前記所定の要求信号を前記第1の通信機器に送信しない要求信号送信処理と、
前記第1の通信機器から、前記第2のインターフェースを介して、前記所定の要求信号に対する応答信号を受信する応答信号受信処理であって、前記応答信号は、前記第1の無線ネットワークに関係するネットワーク関係情報を含む、前記応答信号受信処理と、を実行させ、
前記接続要求送信処理では、前記第1の機器識別情報が前記メモリに格納されていると判断される場合に、前記所定の要求信号を前記第1の通信機器に送信して前記第1の通信機器から前記応答信号が受信することに応じて、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信し、
前記第1の確立処理では、前記ネットワーク関係情報を利用して、前記第1のインターフェースを介した前記第1の無線接続を前記第1の通信機器と確立する、項目12に記載のコンピュータプログラム。
(項目14)
前記コンピュータプログラムは、前記プロセッサに、さらに、以下の各処理、即ち、
前記第1のインターフェースを介した前記第1の無線接続を前記第1の通信機器と確立する前に、前記第1のインターフェースを介した第2の無線接続を第3の通信機器と確立して、前記第2の通信機器と前記第3の通信機器との双方が所属する第2の無線ネットワークを形成する第2の確立処理と、
前記第2の無線ネットワークを利用して、前記第3の通信機器から、前記第1のインターフェースを介して、前記第3の通信機器を識別するための第3の機器識別情報を受信する機器識別情報受信処理と、を実行させ、
前記判断処理では、
前記第1の通信機器と前記第3の通信機器とが一致する場合に、前記第3の機器識別情報に一致する前記第1の機器識別情報が前記メモリに格納されていると判断し、
前記第1の通信機器と前記第3の通信機器とが一致しない場合に、前記第1の機器識別情報が前記メモリに格納されていないと判断する、項目12又は項目13に記載のコンピュータプログラム。
(項目15)
前記トリガ信号は、前記第1の無線ネットワークに関係するネットワーク関係情報を含み、
前記第1の確立処理では、前記ネットワーク関係情報を利用して、前記第1のインターフェースを介した前記第1の無線接続を前記第1の通信機器と確立する、項目11又は項目12に記載のコンピュータプログラム。
(項目16)
前記コンピュータプログラムは、前記プロセッサに、さらに、以下の各処理、即ち、
前記トリガ信号を受信することに応じて、前記第2のインターフェースを介して、所定の要求信号を前記第1の通信機器に送信する要求信号送信処理と、
前記第1の通信機器から、前記第2のインターフェースを介して、前記所定の要求信号に対する応答信号を受信する応答信号受信処理であって、前記応答信号は、前記第1の無線ネットワークに関係するネットワーク関係情報を含む、前記応答信号受信処理と、を実行させ、
前記接続要求送信処理では、前記応答信号を受信することに応じて、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信し、
前記第1の確立処理では、前記ネットワーク関係情報を利用して、前記第1のインターフェースを介した前記第1の無線接続を前記第1の通信機器と確立する、項目11又は項目12に記載のコンピュータプログラム。
(項目17)
第2の通信機器であって、
第1の通信方式に従った無線通信を実行するための第1のインターフェースと、
前記第1の通信方式とは異なる第2の通信方式に従った無線通信を実行するための第2のインターフェースと、
トリガ信号が第1の通信機器から繰り返しブロードキャスト送信される場合に、前記第1の通信機器から、前記第2のインターフェースを介して、前記トリガ信号を受信するトリガ信号受信部であって、前記トリガ信号は、前記第1の通信機器と前記第2の通信機器との双方が所属する第1の無線ネットワークを形成するための無線接続要求を前記第1の通信機器に送信するためのトリガとして、前記第2の通信機器によって利用されるべき信号であり、前記第1の無線ネットワークは、前記第1のインターフェースを介した無線通信を実行するためのネットワークである、前記トリガ信号受信部と、
前記第1の通信機器から前記トリガ信号を受信することに応じて、前記第1のインターフェースを介して、前記無線接続要求を前記第1の通信機器に送信する接続要求送信部と、
前記無線接続要求を前記第1の通信機器に送信することに応じて、前記第1のインターフェースを介した第1の無線接続を前記第1の通信機器と確立して、前記第1の通信機器と前記第2の通信機器との双方が所属する前記第1の無線ネットワークを形成する第1の確立部と、
を備える第2の通信機器。
In addition, the technical elements described in the present specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. The technology illustrated in the present specification or the drawings simultaneously achieves a plurality of objects, and has technical utility by achieving one of the objects.
The features of the technology described in this specification are listed below.
(Item 1)
A first communication device,
A first interface for executing wireless communication according to a first communication scheme;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
A trigger signal transmitting unit that repeats broadcast transmission of a trigger signal via the second interface, wherein the trigger signal is a second signal to which both the first communication device and the second communication device belong. A signal to be used by the second communication device as a trigger for transmitting a wireless connection request for forming one wireless network to the first communication device, wherein the first wireless network includes: The trigger signal transmitting unit, which is a network for executing wireless communication via the first interface,
A connection request receiving unit that receives the wireless connection request from the second communication device that has received the trigger signal via the first interface;
In response to receiving the wireless connection request from the second communication device, establishing a first wireless connection with the second communication device via the first interface, the first communication device A first establishing unit that forms the first wireless network to which both the and the second communication device belong;
A first communication device comprising:
(Item 2)
The trigger signal transmitting unit is, via the second interface, first device identification information stored in a memory of the first communication device, the first signal being used to identify the first communication device. Repeating the broadcast transmission of the trigger signal including the first device identification information;
The connection request receiving unit,
When the first device identification information included in the trigger signal is stored in the second communication device, receiving the wireless connection request from the second communication device,
The first item according to item 1, wherein the wireless connection request is not received from the second communication device when the first device identification information included in the trigger signal is not stored in the second communication device. Communication equipment.
(Item 3)
The first communication device further includes:
Establishing a second wireless connection through the first interface with a third communication device before establishing the first wireless connection through the first interface with the second communication device; A second establishing unit that forms a second wireless network to which both the first communication device and the third communication device belong;
A device identification information transmitting unit that transmits the first device identification information in the memory to the third communication device via the first interface using the second wireless network. ,
The connection request receiving unit may be configured such that the first device identification information included in the trigger signal is the second communication device due to a match between the second communication device and the third communication device. 3. The first communication device according to item 2, wherein the first communication device receives the wireless connection request from the second communication device when stored in the second communication device.
(Item 4)
The first communication device further includes:
After the first device identification information is transmitted to the third communication device, the state of the second interface is changed from the first state to a second state in which power consumption is higher than the first state. The first communication device according to item 3, further comprising a change unit configured to change the first communication device to the first communication device.
(Item 5)
The trigger signal includes network-related information related to the first wireless network;
Any one of items 1 to 4, wherein the first establishing unit establishes the first wireless connection with the second communication device via the first interface using the network-related information. A first communication device according to claim 1.
(Item 6)
The first communication device further includes:
A request signal receiving unit that receives a predetermined request signal from the second communication device that has received the trigger signal via the second interface;
Response signal transmission for transmitting a response signal to the predetermined request signal to the second communication device via the second interface in response to receiving the predetermined request signal from the second communication device. Wherein the response signal includes network-related information related to the first wireless network, the response signal transmission unit,
The connection request receiving unit receives the wireless connection request from the second communication device that has received the response signal, via the first interface,
Any one of items 1 to 4, wherein the first establishing unit establishes the first wireless connection with the second communication device via the first interface using the network-related information. A first communication device according to claim 1.
(Item 7)
The first communication device further includes:
A request to receive, via the second interface, a predetermined request signal including second device identification information for identifying the second communication device from the second communication device that has received the trigger signal. A signal receiving unit;
A determining unit that determines whether or not the second device identification information included in the predetermined request signal is stored in a memory of the first communication device;
When it is determined that the second device identification information is stored in the memory, a response signal to the predetermined request signal is transmitted to the second communication device via the second interface; A response signal transmitting unit that does not transmit the response signal to the second communication device when it is determined that the second device identification information is not stored in the memory, wherein the response signal is The response signal transmitting unit including network-related information related to one wireless network,
The connection request receiving unit receives the wireless connection request from the second communication device that has received the response signal, via the first interface,
The first establishing unit according to item 1, wherein the first establishing unit establishes the first wireless connection with the second communication device via the first interface using the network-related information. Communication equipment.
(Item 8)
The first communication device further includes:
Establishing a second wireless connection through the first interface with a third communication device before establishing the first wireless connection through the first interface with the second communication device; A second establishing unit that forms a second wireless network to which both the first communication device and the third communication device belong;
Device identification receiving third device identification information for identifying the third communication device from the third communication device via the first interface using the second wireless network. An information receiving unit,
A storage control unit configured to store the third device identification information in the memory in response to receiving the third device identification information from the third communication device,
The determination unit is
When the second communication device and the third communication device match, determine that the second device identification information that matches the third device identification information is stored in the memory,
The first communication device according to item 7, wherein it is determined that the second device identification information is not stored in the memory when the second communication device does not match the third communication device.
(Item 9)
The first communication device further includes:
A change that changes the state of the second interface from the first state to the second state that consumes more power than the first state after the third device identification information is stored in the memory. 9. The first communication device according to item 8, comprising a unit.
(Item 10)
The trigger signal transmitting unit, without executing the communication of the highest layer for establishing the logical link of the second communication method, executes the communication of the lower layer lower than the highest layer, 10. The first communication device according to any one of items 1 to 9, wherein the first communication device repeats the broadcast transmission of the trigger signal via the second interface.
(Item 11)
A computer program for a second communication device,
The second communication device includes:
A first interface for executing wireless communication according to a first communication scheme;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
And a processor,
The computer program causes the processor to execute the following processes, that is,
A trigger signal receiving process for receiving the trigger signal from the first communication device via the second interface when the trigger signal is repeatedly broadcast-transmitted from the first communication device; The signal is a trigger for transmitting to the first communication device a wireless connection request for forming a first wireless network to which both the first communication device and the second communication device belong, The trigger signal receiving process, which is a signal to be used by the second communication device, wherein the first wireless network is a network for executing wireless communication via the first interface;
A connection request transmission process of transmitting the wireless connection request to the first communication device via the first interface in response to receiving the trigger signal from the first communication device;
In response to transmitting the wireless connection request to the first communication device, establishing a first wireless connection with the first communication device via the first interface, the first communication device A first establishment process for forming the first wireless network to which both the and the second communication device belong;
A computer program that runs
(Item 12)
The trigger signal includes first device identification information for identifying the first communication device,
The computer program causes the processor to further perform the following processes, namely:
Executing a determination process of determining whether the first device identification information included in the trigger signal is stored in a memory of the second communication device,
In the connection request transmission process,
When it is determined that the first device identification information is stored in the memory, transmitting the wireless connection request to the first communication device via the first interface;
Item 12 does not transmit the wireless connection request to the first communication device via the first interface when it is determined that the first device identification information is not stored in the memory. Computer programs.
(Item 13)
The computer program causes the processor to further perform the following processes, namely:
When it is determined that the first device identification information is stored in the memory, a predetermined request signal is transmitted to the first communication device via the second interface, and the first A request signal transmitting process for not transmitting the predetermined request signal to the first communication device when it is determined that device identification information is not stored in the memory;
A response signal receiving process for receiving a response signal to the predetermined request signal from the first communication device via the second interface, wherein the response signal is related to the first wireless network. Including the network-related information, the response signal receiving process,
In the connection request transmitting process, when it is determined that the first device identification information is stored in the memory, the predetermined request signal is transmitted to the first communication device to perform the first communication. Transmitting the wireless connection request to the first communication device via the first interface in response to receiving the response signal from the device;
13. The computer program according to item 12, wherein, in the first establishment processing, the first wireless connection via the first interface is established with the first communication device using the network-related information.
(Item 14)
The computer program causes the processor to further perform the following processes, namely:
Establishing a second wireless connection through the first interface with a third communication device before establishing the first wireless connection through the first interface with the first communication device; A second establishment process for forming a second wireless network to which both the second communication device and the third communication device belong;
Device identification receiving third device identification information for identifying the third communication device from the third communication device via the first interface using the second wireless network. And the information receiving process,
In the determination process,
When the first communication device and the third communication device match, determine that the first device identification information that matches the third device identification information is stored in the memory;
14. The computer program according to item 12 or 13, wherein it is determined that the first device identification information is not stored in the memory when the first communication device does not match the third communication device.
(Item 15)
The trigger signal includes network-related information related to the first wireless network;
13. The first establishment process according to item 11 or item 12, wherein the first wireless connection is established with the first communication device via the first interface using the network-related information. Computer program.
(Item 16)
The computer program causes the processor to further perform the following processes, namely:
A request signal transmission process of transmitting a predetermined request signal to the first communication device via the second interface in response to receiving the trigger signal;
A response signal receiving process for receiving a response signal to the predetermined request signal from the first communication device via the second interface, wherein the response signal is related to the first wireless network. Including the network-related information, the response signal receiving process,
In the connection request transmission process, in response to receiving the response signal, via the first interface, transmits the wireless connection request to the first communication device,
13. The first establishment process according to item 11 or item 12, wherein the first wireless connection is established with the first communication device via the first interface using the network-related information. Computer program.
(Item 17)
A second communication device,
A first interface for executing wireless communication according to a first communication scheme;
A second interface for executing wireless communication according to a second communication method different from the first communication method;
A trigger signal receiving unit that receives the trigger signal from the first communication device via the second interface when the trigger signal is repeatedly broadcast transmitted from the first communication device; The signal is a trigger for transmitting to the first communication device a wireless connection request for forming a first wireless network to which both the first communication device and the second communication device belong, The trigger signal receiving unit, which is a signal to be used by the second communication device, wherein the first wireless network is a network for executing wireless communication via the first interface.
A connection request transmission unit that transmits the wireless connection request to the first communication device via the first interface in response to receiving the trigger signal from the first communication device;
In response to transmitting the wireless connection request to the first communication device, establishing a first wireless connection with the first communication device via the first interface, the first communication device A first establishing unit that forms the first wireless network to which both the and the second communication device belong;
A second communication device comprising:

2:通信システム、PR:プリンタ、12:操作部、14:表示部、16:印刷実行部、20:Wi−FiI/F(インターフェース)、22:BTI/F、26:メモリ、30:制御部、32:CPU、34:メモリ、36:プログラム、38:送信フラグ、40:BTデバイス名格納領域、PT1,PT2:携帯端末、52:操作部、54:表示部、60:Wi−FiI/F、62:BTI/F、70:制御部、72:CPU、74:メモリ、76:OSプログラム、78:プリンタアプリケーション、80:BTデバイス名格納領域   2: Communication system, PR: Printer, 12: Operation unit, 14: Display unit, 16: Print execution unit, 20: Wi-Fi I / F (interface), 22: BTI / F, 26: Memory, 30: Control unit , 32: CPU, 34: memory, 36: program, 38: transmission flag, 40: BT device name storage area, PT1, PT2: portable terminal, 52: operation unit, 54: display unit, 60: Wi-Fi I / F , 62: BTI / F, 70: control unit, 72: CPU, 74: memory, 76: OS program, 78: printer application, 80: BT device name storage area

Claims (19)

プリンタであって、
印刷実行部と、
メモリと、
Wi−Fi方式に従った無線通信を実行するためのWi−Fiインターフェースと、
Bluetooth方式に従った無線通信を実行するためのBluetoothインターフェースと、
第2の端末装置から第2の所定情報を受信する第2の所定情報受信部と、
前記第2の端末装置から前記第2の所定情報を受信することに応じて、前記第2の所定情報を前記メモリに格納させる格納制御部と、
前記第2の所定情報が前記メモリに格納された後に、前記Bluetoothインターフェースを介したBluetooth接続を第1の端末装置と確立する前に、前記Bluetoothインターフェースを介して、送信先が特定されていない信号を送信することを繰り返す信号送信部と、
前記信号を受信した前記第1の端末装置から、前記Bluetoothインターフェースを介して、第1の所定情報を受信する第1の所定情報受信部と、
前記第1の端末装置から受信した前記第1の所定情報と、前記メモリに格納されている前記第2の所定情報と、が関連する場合に、前記Bluetoothインターフェースを介した前記Bluetooth接続を前記第1の端末装置と確立する第1の確立部と、
確立済みの前記Bluetooth接続を利用して、前記Bluetoothインターフェースを介して、前記Wi−Fiインターフェースを介した第1のWi−Fi接続を前記第1の端末装置と確立するための接続情報を前記第1の端末装置に送信する接続情報送信部であって、前記第1のWi−Fi接続は、前記プリンタが親局として動作する第1のWi−Fiネットワークに前記第1の端末装置を所属させるための接続である、前記接続情報送信部と、
前記接続情報が前記第1の端末装置に送信された後に、前記第1の端末装置から、前記Wi−Fiインターフェースを介して、接続要求を受信する要求受信部であって、前記接続要求は、前記接続情報を用いて得られる要求である、前記要求受信部と、
前記第1の端末装置から前記接続要求を受信することに応じて、前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記第1の端末装置と確立して、前記プリンタと前記第1の端末装置との双方が所属する前記第1のWi−Fiネットワークを形成する第2の確立部と、
前記第1のWi−Fiネットワークを利用して、前記Wi−Fiインターフェースを介して、前記第1の端末装置から画像データを受信するデータ受信部と、
受信済みの前記画像データによって表わされる画像の印刷を前記印刷実行部に実行させる印刷制御部と、
を備える、プリンタ。
A printer,
A print execution unit;
Memory and
A Wi-Fi interface for executing wireless communication according to the Wi-Fi method;
A Bluetooth interface for executing wireless communication according to the Bluetooth method,
A second predetermined information receiving unit that receives the second predetermined information from the second terminal device;
A storage control unit configured to store the second predetermined information in the memory in response to receiving the second predetermined information from the second terminal device;
After the second predetermined information is stored in the memory and before establishing a Bluetooth connection with the first terminal device via the Bluetooth interface, a signal whose destination is not specified via the Bluetooth interface A signal transmitting unit that repeats transmitting
A first predetermined information receiving unit that receives first predetermined information from the first terminal device that has received the signal via the Bluetooth interface;
Said first predetermined information received from the first terminal apparatus, when the second predetermined information stored in the memory, is associated, the said Bluetooth connection via the Bluetooth interface first A first establishing unit that establishes with one terminal device;
Using the established Bluetooth connection, the connection information for establishing a first Wi-Fi connection with the first terminal device via the Wi-Fi interface via the Bluetooth interface is transmitted to the first terminal device. A connection information transmitting unit that transmits the first terminal device to a first Wi-Fi network in which the printer operates as a master station. The connection information transmitting unit, which is a connection for
A request receiving unit that receives a connection request from the first terminal device via the Wi-Fi interface after the connection information is transmitted to the first terminal device, wherein the connection request includes: A request obtained using the connection information, the request receiving unit,
Wherein the first terminal apparatus in response to receiving the connection request, the Wi-Fi the first Wi-Fi connection via the interface established between the first terminal device, the said printer A second establishing unit that forms the first Wi-Fi network to which both the first terminal device belongs;
A data receiving unit that receives image data from the first terminal device via the Wi-Fi interface using the first Wi-Fi network;
A print control unit that causes the print execution unit to execute printing of an image represented by the received image data,
A printer.
前記接続情報は、前記第1のWi−Fiネットワークを識別するためのネットワーク識別情報を含む、請求項1に記載のプリンタ。   The printer according to claim 1, wherein the connection information includes network identification information for identifying the first Wi-Fi network. 前記ネットワーク識別情報は、SSID(Service Set Identifierの略)である、請求項2に記載のプリンタ。   The printer according to claim 2, wherein the network identification information is an SSID (abbreviation for Service Set Identifier). 前記プリンタは、さらに、
前記第1の端末装置から受信した前記第1の所定情報と、前記メモリに格納されている前記第2の所定情報と、が関連する場合に、前記プリンタの動作状態を前記第1のWi−Fiネットワークの親局として動作してない状態から前記第1のWi−Fiネットワークの親局として動作する状態に移行する移行部を備える、請求項1から3のいずれか一項に記載のプリンタ。
The printer further comprises:
When the first predetermined information received from the first terminal device is associated with the second predetermined information stored in the memory, the operation state of the printer is changed to the first Wi- The printer according to any one of claims 1 to 3, further comprising a transition unit that transitions from a state in which the first Wi-Fi network does not operate as a master station to a state in which the first Wi-Fi network operates as a master station.
前記プリンタは、さらに、
前記第1の端末装置から前記画像データが受信された後に、前記Wi−Fiインターフェースを介して、前記第1の端末装置から切断信号を受信する信号受信部であって、前記切断信号は、前記第1のWi−Fi接続を切断するための信号である、前記信号受信部を備える、請求項1から4のいずれか一項に記載のプリンタ。
The printer further comprises:
A signal receiving unit that receives a disconnection signal from the first terminal device via the Wi-Fi interface after the image data is received from the first terminal device, wherein the disconnection signal is The printer according to any one of claims 1 to 4, further comprising the signal receiving unit that is a signal for disconnecting a first Wi-Fi connection.
前記第1の所定情報は、前記第1の端末装置を識別するための装置識別情報である、請求項1から5のいずれか一項に記載のプリンタ。   The printer according to any one of claims 1 to 5, wherein the first predetermined information is device identification information for identifying the first terminal device. 前記Wi−Fi方式は、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格に基づく無線通信方式であり、
前記Bluetooth方式は、IEEE802.15.1の規格、及び、それに準ずる規格に基づく無線通信方式である、請求項1から6のいずれか一項に記載のプリンタ。
The Wi-Fi scheme is a wireless communication scheme based on the IEEE (abbreviation of the Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards based thereon.
The printer according to any one of claims 1 to 6, wherein the Bluetooth system is a wireless communication system based on an IEEE 802.15.1 standard and a standard based thereon.
前記プリンタは、さらに、
前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記第1の端末装置と確立する前に、前記Wi−Fiインターフェースを介した第2のWi−Fi接続を前記第2の端末装置と確立して、前記プリンタと前記第2の端末装置との双方が所属する第2のWi−Fiネットワークを形成する第3の確立部を備え、
前記第2の所定情報受信部は、前記第2のWi−Fiネットワークを利用して、前記第2の端末装置から、前記Wi−Fiインターフェースを介して、前記第2の所定情報を受信する、請求項1から7のいずれか一項に記載のプリンタ。
The printer further comprises:
Said first Wi-Fi connection via the Wi-Fi interface prior to establishing said first terminal device, the second terminal of the second Wi-Fi connection via the Wi-Fi interface A third establishing unit that establishes a device and forms a second Wi-Fi network to which both the printer and the second terminal device belong ;
The second predetermined information receiving unit utilizes the second Wi-Fi network, from the second terminal device via the Wi-Fi interface, that will receive the second predetermined information a printer according to any one of claims 1 to 7.
前記プリンタは、さらに、
前記第2の所定情報が前記メモリに格納された後に、前記Bluetoothインターフェースの状態を、第1の状態から、前記第1の状態よりも消費電力が高い第2の状態に変更する変更部を備える、請求項8に記載のプリンタ。
The printer further comprises:
A changing unit that changes a state of the Bluetooth interface from a first state to a second state having higher power consumption than the first state after the second predetermined information is stored in the memory. The printer according to claim 8.
プリンタのためのコンピュータプログラムであって、
前記プリンタは、
印刷実行部と、
メモリと、
プロセッサと、
Wi−Fi方式に従った無線通信を実行するためのWi−Fiインターフェースと、
Bluetooth方式に従った無線通信を実行するためのBluetoothインターフェースと、を備え、
前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、
第2の端末装置から第2の所定情報を受信する第2の所定情報受信処理と、
前記第2の端末装置から前記第2の所定情報を受信することに応じて、前記第2の所定情報を前記メモリに格納させる格納制御処理と、
前記第2の所定情報が前記メモリに格納された後に、前記Bluetoothインターフェースを介したBluetooth接続を第1の端末装置と確立する前に、前記Bluetoothインターフェースを介して、送信先が特定されていない信号を送信することを繰り返す信号送信処理と、
前記信号を受信した前記第1の端末装置から、前記Bluetoothインターフェースを介して、第1の所定情報を受信する第1の所定情報受信処理と、
前記第1の端末装置から受信した前記第1の所定情報と、前記メモリに格納されている前記第2の所定情報と、が関連する場合に、前記Bluetoothインターフェースを介した前記Bluetooth接続を前記第1の端末装置と確立する第1の確立処理と、
確立済みの前記Bluetooth接続を利用して、前記Bluetoothインターフェースを介して、前記Wi−Fiインターフェースを介した第1のWi−Fi接続を前記第1の端末装置と確立するための接続情報を前記第1の端末装置に送信する接続情報送信処理であって、前記第1のWi−Fi接続は、前記プリンタが親局として動作する第1のWi−Fiネットワークに前記第1の端末装置を所属させるための接続である、前記接続情報送信処理と、
前記接続情報が前記第1の端末装置に送信された後に、前記第1の端末装置から、前記Wi−Fiインターフェースを介して、接続要求を受信する要求受信処理であって、前記接続要求は、前記接続情報を用いて得られる要求である、前記要求受信処理と、
前記第1の端末装置から前記接続要求を受信することに応じて、前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記第1の端末装置と確立して、前記プリンタと前記第1の端末装置との双方が所属する前記第1のWi−Fiネットワークを形成する第2の確立処理と、
前記第1のWi−Fiネットワークを利用して、前記Wi−Fiインターフェースを介して、前記第1の端末装置から画像データを受信するデータ受信処理と、
受信済みの前記画像データによって表わされる画像の印刷を前記印刷実行部に実行させる印刷制御処理と、
を実行させる、コンピュータプログラム。
A computer program for a printer,
The printer is
A print execution unit;
Memory and
A processor,
A Wi-Fi interface for executing wireless communication according to the Wi-Fi method;
A Bluetooth interface for executing wireless communication according to the Bluetooth method,
The computer program causes the processor to execute the following processes, that is,
A second predetermined information receiving process of receiving the second predetermined information from the second terminal device;
Storing control processing for storing the second predetermined information in the memory in response to receiving the second predetermined information from the second terminal device;
After the second predetermined information is stored in the memory and before establishing a Bluetooth connection with the first terminal device via the Bluetooth interface, a signal whose destination is not specified via the Bluetooth interface Signal transmission processing for repeating transmission of
A first predetermined information receiving process of receiving first predetermined information from the first terminal device that has received the signal via the Bluetooth interface;
Said first predetermined information received from the first terminal apparatus, when the second predetermined information stored in the memory, is associated, the said Bluetooth connection via the Bluetooth interface first A first establishment process to establish with one terminal device;
Using an established the Bluetooth connection, via the Bluetooth interface, the connection information for the first Wi-Fi connection is established between the first terminal device through the Wi-Fi interface first A connection information transmission process for transmitting to the first terminal device, wherein the first Wi-Fi connection causes the first terminal device to belong to a first Wi-Fi network in which the printer operates as a master station. Connection information transmission processing , which is a connection for
After the connection information is transmitted to the first terminal device, from the first terminal device, via the Wi-Fi interface, a request receiving process of receiving the connection request, the connection request, The request is a request obtained using the connection information, the request receiving process,
Wherein the first terminal apparatus in response to receiving the connection request, the Wi-Fi the first Wi-Fi connection via the interface established between the first terminal device, the said printer A second establishing process for forming the first Wi-Fi network to which both the first terminal device belongs;
A data receiving process of receiving image data from the first terminal device via the Wi-Fi interface using the first Wi-Fi network;
A print control process for causing the print execution unit to execute printing of an image represented by the received image data,
A computer program that runs
前記コンピュータプログラムは、前記プロセッサに、さらに、  The computer program, the processor,
前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記第1の端末装置と確立する前に、前記Wi−Fiインターフェースを介した第2のWi−Fi接続を前記第2の端末装置と確立して、前記プリンタと前記第2の端末装置との双方が所属する第2のWi−Fiネットワークを形成する第3の確立処理を実行させ、  Before establishing the first Wi-Fi connection via the Wi-Fi interface with the first terminal device, establish a second Wi-Fi connection via the Wi-Fi interface with the second terminal Establishing a second Wi-Fi network to which both the printer and the second terminal device belong, by executing a third establishment process,
前記第2の所定情報受信処理は、前記第2のWi−Fiネットワークを利用して、前記第2の端末装置から、前記Wi−Fiインターフェースを介して、前記第2の所定情報を受信する、請求項10に記載のコンピュータプログラム。  The second predetermined information receiving process receives the second predetermined information from the second terminal device via the Wi-Fi interface using the second Wi-Fi network. A computer program according to claim 10.
第1の端末装置のためのコンピュータプログラムであって、
前記第1の端末装置は、
Wi−Fi方式に従った無線通信を実行するためのWi−Fiインターフェースと、
Bluetooth方式に従った無線通信を実行するためのBluetoothインターフェースと、
プロセッサと、を備え、
前記コンピュータプログラムは、前記プロセッサに、以下の各処理、即ち、
前記Bluetoothインターフェースを介したBluetooth接続をプリンタと確立する前に、送信先が特定されていない信号がプリンタから繰り返し送信される状況において、前記プリンタから、前記Bluetoothインターフェースを介して、前記信号を受信することに応じて、第1の所定情報を前記プリンタに送信する情報送信処理と、
前記プリンタに送信された前記第1の所定情報と、前記プリンタに格納されている第2の所定情報と、が関連する場合に、前記Bluetoothインターフェースを介した前記Bluetooth接続を前記プリンタと確立する第1の確立処理であって、前記第2の所定情報は、前記第1の所定情報が前記第1の端末装置から前記プリンタに送信される前に、第2の端末装置から前記プリンタに送信された情報であり、前記第2の所定情報は、前記第2の端末装置から前記プリンタに前記第2の所定情報が受信されることに応じて、前記プリンタに格納させる、前記第1の確立処理と、
確立済みの前記Bluetooth接続を利用して、前記Bluetoothインターフェースを介して、前記プリンタから、前記Wi−Fiインターフェースを介した第1のWi−Fi接続を前記プリンタと確立ための接続情報を受信する接続情報受信処理であって、前記第1のWi−Fi接続は、前記プリンタが親局として動作する第1のWi−Fiネットワークに前記第1の端末装置を所属させるための接続である、前記接続情報受信処理と、
前記プリンタから前記接続情報を受信することに応じて、前記Wi−Fiインターフェースを介して、接続要求を前記プリンタに送信する要求送信処理であって、前記接続要求は、前記接続情報を用いて得られる要求である、前記要求送信処理と、
前記接続要求を前記プリンタに送信することに応じて、前記Wi−Fiインターフェースを介した前記第1のWi−Fi接続を前記プリンタと確立して、前記プリンタと前記第1の端末装置との双方が所属する前記第1のWi−Fiネットワークを形成する第2の確立処理と、
前記第1のWi−Fiネットワークを利用して、前記Wi−Fiインターフェースを介して、画像データを前記プリンタに送信するデータ送信処理であって、前記画像データは、前記プリンタによって印刷される画像を表すデータである、前記データ送信処理と、
を実行させる、コンピュータプログラム。
A computer program for a first terminal device,
The first terminal device includes:
A Wi-Fi interface for executing wireless communication according to the Wi-Fi method;
A Bluetooth interface for executing wireless communication according to the Bluetooth method,
And a processor,
The computer program causes the processor to execute the following processes, that is,
Before establishing a Bluetooth connection via the Bluetooth interface with the printer, in a situation where a signal whose destination is not specified is repeatedly transmitted from the printer, the printer receives the signal via the Bluetooth interface from the printer. An information transmission process for transmitting the first predetermined information to the printer,
Establishing the Bluetooth connection via the Bluetooth interface with the printer when the first predetermined information transmitted to the printer is related to the second predetermined information stored in the printer. 1 is the establishment process , wherein the second predetermined information is transmitted from the second terminal device to the printer before the first predetermined information is transmitted from the first terminal device to the printer. The first establishing process, wherein the second predetermined information is stored in the printer in response to the printer receiving the second predetermined information from the second terminal device. When,
A connection for receiving connection information for establishing a first Wi-Fi connection with the printer from the printer via the Bluetooth interface using the established Bluetooth connection via the Bluetooth interface from the printer. In the information receiving process, the first Wi-Fi connection is a connection for making the first terminal device belong to a first Wi-Fi network in which the printer operates as a master station. Information reception processing,
A request transmission process of transmitting a connection request to the printer via the Wi-Fi interface in response to receiving the connection information from the printer, wherein the connection request is obtained using the connection information. The request transmission process,
In response to transmitting the connection request to the printer, the first Wi-Fi connection via the Wi-Fi interface is established with the printer, and both the printer and the first terminal device are connected. A second establishment process for forming the first Wi-Fi network to which the
A data transmission process of transmitting image data to the printer via the Wi-Fi interface using the first Wi-Fi network, wherein the image data includes an image to be printed by the printer. The data transmission process,
A computer program that runs
前記第2の所定情報は、前記第1の所定情報が前記第1の端末装置から前記プリンタに送信される前に、前記プリンタと前記第2の端末装置との双方が所属する第2のWi−Fiネットワークを利用して、前記Wi−Fiインターフェースを介して、前記第2の端末装置から前記プリンタに送信された情報である、請求項12に記載のコンピュータプログラム。Before the first predetermined information is transmitted from the first terminal device to the printer, the second predetermined information is a second Wi-Fi to which both the printer and the second terminal device belong. The computer program according to claim 12, wherein the information is information transmitted from the second terminal device to the printer via the Wi-Fi interface using a Fi network. 前記信号は、前記コンピュータプログラムを起動するための操作が前記第1の端末装置に実行されて、前記コンピュータプログラムが起動した後に、前記プリンタから受信される、請求項12又は13に記載のコンピュータプログラム。 14. The computer program according to claim 12 , wherein the signal is received from the printer after an operation for activating the computer program is executed on the first terminal device and the computer program is activated. . 前記接続情報は、前記第1のWi−Fiネットワークを識別するためのネットワーク識別情報を含む、請求項12から14のいずれか一項に記載のコンピュータプログラム。 The computer program according to claim 12 , wherein the connection information includes network identification information for identifying the first Wi-Fi network. 前記ネットワーク識別情報は、SSID(Service Set Identifierの略)である、請求項15に記載のコンピュータプログラム。 The computer program according to claim 15 , wherein the network identification information is an SSID (abbreviation for Service Set Identifier). 前記コンピュータプログラムは、前記プロセッサに、さらに、
前記画像データを前記プリンタに送信した後に、前記Wi−Fiインターフェースを介して、切断信号を前記プリンタに送信する信号送信処理であって、前記切断信号は、前記第1のWi−Fi接続を切断するための信号である、前記信号送信処理を実行させる、請求項12から16のいずれか一項に記載のコンピュータプログラム。
The computer program may further include:
After transmitting the image data to the printer, via a pre-Symbol Wi-Fi interface, a signal transmission process of transmitting a disconnection signal to the printer, the cutting signal, the first Wi-Fi connection The computer program according to any one of claims 12 to 16 , wherein said computer program causes said signal transmission processing, which is a signal for disconnection, to be executed.
前記第1の所定情報は、前記第1の端末装置を識別するための装置識別情報である、請求項12から17のいずれか一項に記載のコンピュータプログラム。 The computer program according to any one of claims 12 to 17 , wherein the first predetermined information is device identification information for identifying the first terminal device. 前記Wi−Fi方式は、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格に基づく無線通信方式であり、
前記Bluetooth方式は、IEEE802.15.1の規格、及び、それに準ずる規格に基づく無線通信方式である、請求項12から18のいずれか一項に記載のコンピュータプログラム。
The Wi-Fi scheme is a wireless communication scheme based on the IEEE (abbreviation of the Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards based thereon.
The Bluetooth system, IEEE 802.15.1 standards, and a wireless communication method based on standard analogous thereto, the computer program according to any one of claims 12 18.
JP2018175881A 2018-09-20 2018-09-20 Communication equipment Active JP6638786B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018175881A JP6638786B2 (en) 2018-09-20 2018-09-20 Communication equipment
JP2019235261A JP6919704B2 (en) 2018-09-20 2019-12-25 Communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018175881A JP6638786B2 (en) 2018-09-20 2018-09-20 Communication equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015066067A Division JP6406092B2 (en) 2015-03-27 2015-03-27 Communication equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019235261A Division JP6919704B2 (en) 2018-09-20 2019-12-25 Communication equipment

Publications (2)

Publication Number Publication Date
JP2019024221A JP2019024221A (en) 2019-02-14
JP6638786B2 true JP6638786B2 (en) 2020-01-29

Family

ID=65368631

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018175881A Active JP6638786B2 (en) 2018-09-20 2018-09-20 Communication equipment

Country Status (1)

Country Link
JP (1) JP6638786B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5915338B2 (en) * 2012-03-30 2016-05-11 ブラザー工業株式会社 Communication device
JP5561355B2 (en) * 2012-12-27 2014-07-30 株式会社リコー Remote communication setting method for short-range wireless communication, connection support server device and program, image forming device and program
JP5945965B2 (en) * 2013-02-28 2016-07-05 ブラザー工業株式会社 Communication equipment
US9277066B2 (en) * 2013-06-28 2016-03-01 Canon Kabushiki Kaisha Communication system, communication terminal, control method, and storage medium storing program
WO2014208154A1 (en) * 2013-06-28 2014-12-31 アイシン・エィ・ダブリュ株式会社 Position information sharing system, position information sharing method, and position information sharing program

Also Published As

Publication number Publication date
JP2019024221A (en) 2019-02-14

Similar Documents

Publication Publication Date Title
JP6406092B2 (en) Communication equipment
US9826116B2 (en) Image forming apparatus supporting peer to peer connection and method of performing image forming operation thereof
US10631155B2 (en) Communication apparatus
JP6421673B2 (en) Communication equipment
JP6950242B2 (en) Communication device
JP6638786B2 (en) Communication equipment
JP6919704B2 (en) Communication equipment
JP7456470B2 (en) communication equipment
JP7070094B2 (en) Computer programs and communication equipment for communication equipment
JP7388491B2 (en) communication equipment
JP6573018B2 (en) Communication equipment
JP6927255B2 (en) Communication equipment
JP6819417B2 (en) Communication device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181018

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190723

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190902

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191209

R150 Certificate of patent or registration of utility model

Ref document number: 6638786

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150