JP7293704B2 - Computer program for function execution device and terminal device - Google Patents

Computer program for function execution device and terminal device Download PDF

Info

Publication number
JP7293704B2
JP7293704B2 JP2019023925A JP2019023925A JP7293704B2 JP 7293704 B2 JP7293704 B2 JP 7293704B2 JP 2019023925 A JP2019023925 A JP 2019023925A JP 2019023925 A JP2019023925 A JP 2019023925A JP 7293704 B2 JP7293704 B2 JP 7293704B2
Authority
JP
Japan
Prior art keywords
function
communication
information
terminal device
function execution
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
JP2019023925A
Other languages
Japanese (ja)
Other versions
JP2020135070A (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 JP2019023925A priority Critical patent/JP7293704B2/en
Priority to US16/750,196 priority patent/US11416191B2/en
Publication of JP2020135070A publication Critical patent/JP2020135070A/en
Priority to US17/858,612 priority patent/US11579824B2/en
Application granted granted Critical
Publication of JP7293704B2 publication Critical patent/JP7293704B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書では、特定の認証情報を利用した通信を実行可能なデバイスに関する技術を開示する。 This specification discloses a technology related to a device capable of executing communication using specific authentication information.

特許文献1には、BLE(Bluetooth(登録商標) Low Energyの略)の規格に従ったペアリングを情報処理装置と実行する通信装置が開示されている。通信装置は、情報処理装置からペアリング要求を受信することに応じて、GATT(Generic Attribute Profileの略)通信を利用するためのPIN(Personal Identification Numberの略)コードを表示する。通信装置は、表示されたPINコードが情報処理装置に入力される場合に、情報処理装置からPINコードを受信する。これにより、PINコードの認証が実行され、GATT通信が利用可能となる。通信装置は、GATT通信を利用して、通信装置がサポートしている各サービスのリストを情報処理装置に供給する。情報処理装置は、当該リストに含まれるリモートUIのサービスを提供するために、GATT通信を利用して、パスワードを通信装置に送信する。情報処理端末は、通信装置からパスワードに対する応答としてアクセス許可の応答が受信される場合に、リモートUIを表示する。 Patent Literature 1 discloses a communication device that performs pairing with an information processing device according to the BLE (abbreviation for Bluetooth (registered trademark) Low Energy) standard. The communication device displays a PIN (abbreviation of Personal Identification Number) code for using GATT (abbreviation of Generic Attribute Profile) communication in response to receiving a pairing request from the information processing device. The communication device receives the PIN code from the information processing device when the displayed PIN code is input to the information processing device. As a result, the PIN code is authenticated and GATT communication becomes available. The communication device uses GATT communication to supply a list of services supported by the communication device to the information processing device. The information processing device uses GATT communication to transmit the password to the communication device in order to provide the remote UI service included in the list. The information processing terminal displays the remote UI when an access permission response is received from the communication device as a response to the password.

特開2017-182489号公報JP 2017-182489 A 特開2007-068035号公報JP 2007-068035 A 特開2016-225949号公報JP 2016-225949 A 特開2018-14006号公報JP 2018-14006 A 特開2017-59063号公報JP 2017-59063 A

「Bluetooth Core Specification ver. 4.2」、Bluetooth SIG、2014年"Bluetooth Core Specification ver. 4.2", Bluetooth SIG, 2014 「Bluetooth Core Specification ver. 5.0」、Bluetooth SIG、2016年"Bluetooth Core Specification ver. 5.0", Bluetooth SIG, 2016

上記の技術では、例えば、通信装置がサポートしている各サービスの中にユーザが望むサービスが含まれない場合でも、PINコードの認証のための通信が実行される。 With the above technology, for example, communication for authentication of the PIN code is executed even if the service desired by the user is not included in the services supported by the communication device.

本明細書では、例えば、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれない場合に、特定の認証情報を利用した通信が実行されるのを抑制するための技術を提供する。 In this specification, for example, when a function desired by a user is not included in one or more functions that can be executed by a function execution device, the technology.

本明細書で開示する機能実行装置は、第1の無線インターフェースと、前記第1の無線インターフェースを介して、端末装置との第1の無線接続を確立する第1の確立部と、前記第1の無線インターフェースを介して、前記機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した通信を実行することなく、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を前記端末装置に送信する送信部と、前記機能画面が前記端末装置に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第2の無線接続を確立する第2の確立部と、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を前記端末装置と実行する第1の通信実行部と、前記特定の認証情報を利用した前記通信が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための第1の機能実行情報の通信を前記端末装置と実行する第2の通信実行部と、を備えてもよい。 A function execution device disclosed in this specification includes: a first wireless interface; a first establishing unit that establishes a first wireless connection with a terminal device via the first wireless interface; using the first wireless connection without executing communication using specific authentication information prepared by one of the function execution device and the terminal device via the wireless interface of a transmission unit configured to transmit, via the first wireless interface, screen display information for causing the terminal device to display a function screen showing one or more functions executable by the function execution device, to the terminal device; When a first execution instruction for causing the function execution device to execute a first function is input to the terminal device after the function screen is displayed on the terminal device, the first wireless interface is enabled. a second establishing unit that establishes a second wireless connection with the terminal device via the second wireless connection; and the specific authentication information via the first wireless interface using the second wireless connection. a first communication execution unit that executes the communication using the terminal device, and the first function via the first wireless interface after the communication using the specific authentication information is executed and a second communication execution unit that executes communication of first function execution information for executing with the terminal device.

上記の構成によれば、機能実行装置は、特定の認証情報を利用した通信を実行することなく、第1の無線接続を利用して、画面表示情報を端末装置に送信する。これにより、特定の認証情報を利用した通信が実行されることなく、機能画面が端末装置に表示される。そして、機能実行装置は、機能画面が端末装置に表示された後に、端末装置に第1の実行指示が入力される場合に、第2の無線接続を利用して、特定の認証情報を利用した通信を端末装置と実行し、その後、第1の機能実行情報の通信を端末装置と実行する。即ち、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれないことに起因して、端末装置に第1の実行指示が入力されない場合には、特定の認証情報を利用した通信が実行されない。従って、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれない場合に、認証情報を利用した通信が実行されるのを抑制することができる。 According to the above configuration, the function execution device uses the first wireless connection to transmit the screen display information to the terminal device without executing communication using specific authentication information. As a result, the function screen is displayed on the terminal device without executing communication using specific authentication information. Then, when the first execution instruction is input to the terminal device after the function screen is displayed on the terminal device, the function execution device uses the second wireless connection and uses the specific authentication information. Communication is performed with the terminal device, and then communication of the first function execution information is performed with the terminal device. That is, when the first execution instruction is not input to the terminal device because the function desired by the user is not included in the one or more functions executable by the function execution device, the specific authentication information Communication using is not executed. Therefore, when the function desired by the user is not included in the one or more functions executable by the function execution device, execution of communication using the authentication information can be suppressed.

また、本明細書で開示する端末装置のコンピュータプログラムは、前記端末装置のコンピュータを、以下の各部、即ち、前記端末装置の第1の無線インターフェースを介して、機能実行装置との第1の無線接続を確立するための第1の命令を前記端末装置のOS(Operating Systemの略)プログラムに供給する第1の供給部と、前記第1の無線インターフェースを介して、前記機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した通信を実行することなく、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置から、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を受信する受信部と、前記機能実行装置から前記画面表示情報が受信される場合に、前記機能画面を前記端末装置の表示部に表示させる表示制御部と、前記機能画面が前記表示部に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との第2の無線接続を確立するための第2の命令を前記OSプログラムに供給する第2の供給部と、前記特定の認証情報を利用した前記通信が、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置と実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための機能実行情報の通信を前記機能実行装置と実行する通信実行部と、として機能させてもよい。 Further, the computer program of the terminal device disclosed in this specification causes the computer of the terminal device to communicate with the function execution device via the following units, that is, the first wireless interface of the terminal device. a first supply unit for supplying a first command for establishing a connection to an OS (Operating System) program of the terminal device; said function executing device via said first wireless interface using said first wireless connection without performing communication using specific authentication information prepared by one of the devices; a receiving unit for receiving screen display information for causing the terminal device to display a function screen showing one or more functions executable by the function execution device; and a reception unit for receiving the screen display information from the function execution device. a display control unit for displaying the function screen on a display unit of the terminal device when the function screen is displayed on the display unit; sending a second instruction to the OS program to establish a second wireless connection with the function execution device via the first wireless interface when an execution instruction of No. 1 is input to the terminal device; The communication using the second supply unit that supplies and the specific authentication information is performed with the function execution device via the first wireless interface using the second wireless connection. Later, it may function as a communication execution unit that executes communication of function execution information for executing the first function with the function execution device via the first wireless interface.

上記の構成によれば、端末装置は、特定の認証情報を利用した通信を実行することなく、第1の無線接続を利用して、機能実行装置から画面表示情報を受信する。これにより、特定の認証情報を利用した通信が実行されることなく、機能画面が端末装置に表示される。そして、端末装置は、機能画面を表示した後に、端末装置に第1の実行指示が入力される場合に、第2の無線接続を利用して、特定の認証情報を利用した通信を機能実行装置と実行し、その後、第1の機能実行情報の通信を機能実行装置と実行する。即ち、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれないことに起因して、端末装置に第1の実行指示が入力されない場合には、特定の認証情報を利用した通信が実行されない。従って、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれない場合に、認証情報を利用した通信が実行されるのを抑制することができる。 According to the above configuration, the terminal device receives screen display information from the function execution device using the first wireless connection without executing communication using specific authentication information. As a result, the function screen is displayed on the terminal device without executing communication using specific authentication information. Then, after the function screen is displayed, the terminal device uses the second wireless connection to perform communication using the specific authentication information when the first execution instruction is input to the terminal device. and then communicate the first function execution information with the function execution device. That is, when the first execution instruction is not input to the terminal device because the function desired by the user is not included in the one or more functions executable by the function execution device, the specific authentication information Communication using is not executed. Therefore, when the function desired by the user is not included in the one or more functions executable by the function execution device, execution of communication using the authentication information can be suppressed.

上記の機能実行装置を実現するためのコンピュータプログラム、当該コンピュータプログラムを記憶するコンピュータ可読記録媒体、及び、上記の機能実行装置によって実行される方法も新規で有用である。また、上記の端末装置のコンピュータプログラムを記憶するコンピュータ可読記録媒体、上記の端末装置そのもの、及び、上記の端末装置によって実行される方法も新規で有用である。 A computer program for implementing the above function execution device, a computer readable recording medium storing the computer program, and a method executed by the above function execution device are also novel and useful. Also novel and useful are computer-readable recording media storing a computer program for the terminal, the terminal itself, and methods performed by the terminal.

通信システムの構成を示す。1 shows the configuration of a communication system; Primary Service群の概念図を示す。1 shows a conceptual diagram of a Primary Service group; FIG. Primary Service群のデータ構造を示す。The data structure of the Primary Service group is shown. 図3の続きを示す。FIG. 3 shows a continuation of FIG. 図4の続きを示す。FIG. 4 shows a continuation of FIG. 比較例のシーケンス図を示す。FIG. 4 shows a sequence diagram of a comparative example; 図6の続きを示す。7 shows a continuation of FIG. 第1~第5実施例に共通する処理のシーケンス図を示す。FIG. 4 shows a sequence diagram of processing common to the first to fifth embodiments. 図8の続きを示す。FIG. 8 shows a continuation of FIG. 第1及び第2実施例において機能画面内のAP接続ボタンが選択されるケース又は第5実施例において機能画面内のBLE接続ボタンが選択されるケースのシーケンス図を示す。FIG. 10 is a sequence diagram of a case in which the AP connection button within the function screen is selected in the first and second embodiments, or a case in which the BLE connection button within the function screen is selected in the fifth embodiment; 図10の続きを示す。FIG. 10 shows a continuation of FIG. 図11の続きを示す。FIG. 11 shows a continuation of FIG. 第1及び第2実施例において機能画面内のWFD接続ボタンが選択されるケースのシーケンス図を示す。FIG. 11 shows a sequence diagram of a case in which the WFD connection button in the function screen is selected in the first and second embodiments; 図13の続きを示す。FIG. 13 shows a continuation of FIG. 第1~第5実施例において機能画面内のエラー情報ボタンが選択されるケースのシーケンス図を示す。FIG. 11 shows a sequence diagram of a case in which an error information button in the function screen is selected in the first to fifth embodiments; 第3及び第4実施例において機能画面内のAP接続ボタンが選択されるケースのシーケンス図を示す。FIG. 11 shows a sequence diagram of a case in which an AP connection button in the function screen is selected in the third and fourth examples; 第3実施例における図16の続きを示す。FIG. 16 shows a continuation of FIG. 16 in the third embodiment. 第4実施例における図16の続きを示す。FIG. 16 shows a continuation of FIG. 16 in the fourth embodiment.

(第1実施例)
(通信システム2の構成;図1)
図1に示されるように、通信システム2は、携帯端末10(以下では単に「端末10」と記載する)と、プリンタ100と、AP(Access Pointの略)200と、を備える。端末10は、AP200によって形成される無線ネットワーク(以下では「APネットワーク」と記載)に参加している。AP200は、APネットワークを識別するSSID(Service Set Identifierの略)「ap01」と、当該APネットワークで利用されるパスワード「xxx」と、を記憶する。
(First embodiment)
(Configuration of communication system 2; Fig. 1)
As shown in FIG. 1 , the communication system 2 includes a mobile terminal 10 (hereinafter simply referred to as “terminal 10 ”), a printer 100 , and an AP (abbreviation for Access Point) 200 . The terminal 10 participates in a wireless network formed by the AP 200 (hereinafter referred to as "AP network"). The AP 200 stores an SSID (abbreviation for Service Set Identifier) 'ap01' for identifying an AP network and a password 'xxx' used in the AP network.

(端末10の構成)
端末10は、携帯電話(例えばスマートフォン)、PDA、タブレットPC等の可搬型の端末装置である。端末10は、表示部12と、無線LANインターフェース14と、BT(Bluetooth(登録商標)の略)インターフェース16と、制御部30と、を備える。各部12~30は、バス線(符号省略)に接続されている。なお、以下では、インターフェースのことを単に「I/F」と記載する。
(Configuration of terminal 10)
The terminal 10 is a portable terminal device such as a mobile phone (for example, smart phone), PDA, tablet PC, or the like. The terminal 10 includes a display unit 12 , a wireless LAN interface 14 , a BT (abbreviation for Bluetooth (registered trademark)) interface 16 , and a control unit 30 . Each unit 12 to 30 is connected to a bus line (reference numerals omitted). In the following description, the interface is simply referred to as "I/F".

表示部12は、様々な情報を表示するためのディスプレイである。表示部12は、ユーザから指示を受け付けるタッチパネル(即ち操作部)としても機能する。 The display unit 12 is a display for displaying various information. The display unit 12 also functions as a touch panel (that is, an operation unit) that receives instructions from the user.

無線LANI/F14は、Wi-Fi方式に従った無線通信(以下では「Wi-Fi通信」と記載)を実行するための無線インターフェースである。Wi-Fi方式は、例えば、IEEE(The Institute of Electrical and Electronics Engineers, Inc.の略)の802.11の規格、及び、それに準ずる規格(例えば802.11a,11b,11g,11n,11ac等)に従って、無線通信を実行するための無線通信方式である。無線LANI/F14は、特に、Wi-Fi Allianceによって策定されたWFD(Wi-Fi Direct(登録商標)の略)方式をサポートしている。WFD方式は、Wi-Fi Allianceによって作成された規格書「Wi-Fi Peer-to-Peer (P2P) Technical Specification Version1.1」に記述されている無線通信方式である。 The wireless LAN I/F 14 is a wireless interface for performing wireless communication according to the Wi-Fi system (hereinafter referred to as "Wi-Fi communication"). The Wi-Fi system is, for example, the IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards conforming thereto (eg 802.11a, 11b, 11g, 11n, 11ac, etc.) is a wireless communication scheme for performing wireless communication according to. The wireless LAN I/F 14 particularly supports the WFD (abbreviation for Wi-Fi Direct (registered trademark)) system established by the Wi-Fi Alliance. The WFD system is a wireless communication system described in the standard "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" created by the Wi-Fi Alliance.

端末10は、WFD方式のG/O(Group Ownerの略)状態、CL(Clientの略)状態、及び、デバイス状態のいずれかの状態で動作することができる。例えば、端末10は、WFD方式のクライアントとして動作して、WFD方式のG/Oとして動作している外部装置(例えばプリンタ100)が形成している無線ネットワーク(以下では「WFDネットワーク」と記載)に子局として参加可能である。 The terminal 10 can operate in any one of the WFD system G/O (abbreviation for Group Owner) state, CL (abbreviation for Client) state, and device state. For example, the terminal 10 operates as a WFD system client, and a wireless network (hereinafter referred to as "WFD network") formed by an external device (for example, the printer 100) operating as a WFD system G/O. can participate as a slave station.

BTI/F16は、BT方式に従った無線通信を実行するためのI/Fである。BT方式は、例えば、IEEE802.15.1の規格、及び、それに準ずる規格に基づく無線通信方式である。より具体的に言うと、BTI/F16は、BLE(Bluetooth Low Energyの略)をサポートしている。BLEは、BT方式のバージョン4.0以降のバージョンで実現されている規格である。本実施例では、BTI/F16は、バージョン4.2で実現されているBLEをサポートしていることを想定している。BTI/F16は、BLEに従った無線通信(以下では「BLE通信」と記載)を実行可能である。なお、変形例では、BTI/F16は、バージョン4.2以降のバージョン(例えば5.0)で実現されているBLEをサポートしていてもよい。 The BTI/F 16 is an I/F for executing wireless communication according to the BT system. The BT system is, for example, a wireless communication system based on the IEEE802.15.1 standard and standards conforming thereto. More specifically, the BTI/F 16 supports BLE (short for Bluetooth Low Energy). BLE is a standard implemented in BT system version 4.0 and later versions. In this embodiment, it is assumed that the BTI/F 16 supports BLE implemented in version 4.2. The BTI/F 16 can execute wireless communication according to BLE (hereinafter referred to as “BLE communication”). In addition, in a modified example, the BTI/F 16 may support BLE implemented in versions after version 4.2 (for example, 5.0).

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)よりも大きい。 Describe the differences between the Wi-Fi system and the BT system. The communication speed of Wi-Fi communication (for example, the maximum communication speed is 600 Mbps) is faster than the communication speed of BT communication (for example, the maximum communication speed is 24 Mbps). The carrier wave frequency in Wi-Fi communication is 2.4 GHz band or 5.0 GHz band. The frequency of carrier waves in 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 wave in Wi-Fi communication, the frequency of the carrier wave in Wi-Fi communication is different from the frequency of the carrier wave in BT communication. Also, the maximum distance over which Wi-Fi communication can be performed (eg, about 100 m) is longer than the maximum distance over which BT communication can be performed (eg, about several tens of meters).

制御部30は、CPU32と、メモリ34と、を備える。CPU32は、メモリ34に格納されているプログラム36、38に従って、様々な処理を実行する。メモリ34は、揮発性メモリ、不揮発性メモリ等によって構成され、OS(Operating Systemの略)プログラム36(以下では単に「OS36」と記載する)とプリントアプリケーション38(以下では単に「アプリ38」と記載する)とを記憶する。本実施例では、OS36がiOS(登録商標)である状況を想定している。 The control unit 30 has a CPU 32 and a memory 34 . CPU 32 executes various processes according to programs 36 and 38 stored in memory 34 . The memory 34 comprises a volatile memory, a non-volatile memory, etc., and includes an OS (Operating System) program 36 (hereinafter simply referred to as "OS 36") and a print application 38 (hereinafter simply referred to as "application 38"). do). In this embodiment, it is assumed that the OS 36 is iOS (registered trademark).

OS36は、端末10の基本的な動作を制御するためのプログラムである。アプリ38は、Wi-Fi方式に従った無線接続を利用して、印刷データをプリンタ100に送信するためのアプリケーションである。アプリ38は、例えば、プリンタ100のベンダによって提供されるインターネット上のサーバから端末10にインストールされてもよいし、プリンタ100と共に出荷されるメディアから端末10にインストールされてもよい。 The OS 36 is a program for controlling basic operations of the terminal 10 . The application 38 is an application for transmitting print data to the printer 100 using wireless connection according to the Wi-Fi system. The application 38 may be installed in the terminal 10 from a server on the Internet provided by the vendor of the printer 100, or may be installed in the terminal 10 from media shipped together with the printer 100, for example.

(プリンタ100の構成)
プリンタ100は、印刷機能を実行可能な周辺装置(例えば、端末10の周辺装置)である。プリンタ100は、表示部112と、無線LANI/F114と、BTI/F116と、制御部130と、を備える。
(Configuration of printer 100)
The printer 100 is a peripheral device capable of executing a print function (for example, a peripheral device of the terminal 10). Printer 100 includes display unit 112 , wireless LAN I/F 114 , BTI/F 116 , and control unit 130 .

表示部112は、様々な情報を表示するためのディスプレイである。表示部112は、ユーザから指示を受け付けるタッチパネル(即ち操作部)としても機能する。無線LANI/F114は、端末10の無線LANI/F14と同様である。即ち、無線LANI/F114は、WFD方式をサポートしている。BTI/F116は、端末10のBTI/F16と同様である。即ち、BTI/F116は、BLEをサポートしている。 The display unit 112 is a display for displaying various information. The display unit 112 also functions as a touch panel (that is, an operation unit) that receives instructions from the user. The wireless LAN I/F 114 is the same as the wireless LAN I/F 14 of the terminal 10 . That is, the wireless LAN I/F 114 supports the WFD system. BTI/F 116 is similar to BTI/F 16 of terminal 10 . That is, the BTI/F 116 supports BLE.

制御部130は、CPU132と、メモリ134と、を備える。CPU132は、メモリ134に記憶されているプログラム136に従って、様々な処理を実行する。メモリ134は、揮発性メモリ、不揮発性メモリ等によって構成され、プログラム136に加えて、プロトコルスタック138とWFD情報160と再開フラグ162とを記憶する。 The control unit 130 has a CPU 132 and a memory 134 . CPU 132 executes various processes according to programs 136 stored in memory 134 . The memory 134 is composed of a volatile memory, a nonvolatile memory, or the like, and stores a protocol stack 138 , WFD information 160 and a restart flag 162 in addition to the program 136 .

プロトコルスタック138は、BLEに従ったプロトコルスタックを含む。プリンタ100は、プロトコルスタック138を利用してBT方式のサーバとして動作し、BT方式のクライアントとして動作する端末10とBLE通信を実行可能である。 Protocol stack 138 includes a protocol stack according to BLE. The printer 100 operates as a BT server using the protocol stack 138 and can perform BLE communication with the terminal 10 operating as a BT client.

プロトコルスタック138は、図1に示す階層構造を有する。L2CAP(Logical Link Control and Application Protocolの略)は、BTI/F116を介した無線接続(以下では「L2CAP Link」と記載)を確立するためのスタックである。SMP(Security Manager Protocolの略)及びATT(Attribute Protocolの略)は、L2CAPの上位層である。SMPは、L2CAP Linkを介して通信される情報を暗号化するためのプロトコルである。ATTは、L2CAP Linkを介した通信におけるサーバとクライアントとの間のアクセス方式を定義するためのプロトコルである。GATT(Generic Attribute Profileの略)は、ATTの上位層であり、サーバ及びクライアントの機能を定義するためのプロトコルである。GAP(Generic Access Profileの略)は、L2CAP、SMP、ATT、及び、GATTの上位層であり、BLE通信を実行可能な各デバイスに共通する機能を定義するためのプロトコルである。Primary Service群は、GAPの上位層であり、BLE通信に関する具体的な動作を定義するためのアプリケーションである。なお、以下では、Primary Serviceのことを単に「PS」と記載する。 Protocol stack 138 has the hierarchical structure shown in FIG. L2CAP (abbreviation of Logical Link Control and Application Protocol) is a stack for establishing wireless connection (hereinafter referred to as “L2CAP Link”) via BTI/F 116 . SMP (short for Security Manager Protocol) and ATT (short for Attribute Protocol) are layers above L2CAP. SMP is a protocol for encrypting information communicated over L2CAP Link. ATT is a protocol for defining an access method between a server and a client in communication via L2CAP Link. GATT (abbreviation for Generic Attribute Profile) is an upper layer of ATT and is a protocol for defining functions of servers and clients. GAP (abbreviation of Generic Access Profile) is an upper layer of L2CAP, SMP, ATT, and GATT, and is a protocol for defining functions common to each device capable of executing BLE communication. The Primary Service group is an upper layer of GAP, and is an application for defining specific operations related to BLE communication. In addition, below, Primary Service is simply described as "PS."

WFD情報160は、WFD方式に従った無線接続(以下では「WFD接続」と記載)を確立するために利用される情報である。WFD情報160は、G/Oとして動作するプリンタ100によって形成されるWFDネットワークを識別するSSID「p01」と、当該WFDネットワークで利用されるパスワード「yyy」と、を含む。WFD情報160は、プリンタ100の出荷段階から予めメモリ134に記憶されてもよいし、プリンタ100の電源が投入される際に生成されてもよい。 The WFD information 160 is information used to establish a wireless connection according to the WFD system (hereinafter referred to as “WFD connection”). The WFD information 160 includes an SSID “p01” for identifying the WFD network formed by the printer 100 operating as G/O and a password “yyy” used in the WFD network. The WFD information 160 may be stored in the memory 134 in advance when the printer 100 is shipped, or may be generated when the power of the printer 100 is turned on.

再開フラグ162は、BT方式に従ったAdvertise信号(以下では単に「ADV信号」と記載する)の送信を停止した直後にADV信号の送信を再開することを示す「ON」と、ADV信号の送信を停止した直後にADV信号の送信を再開しないことを示す「OFF」と、のうちのいずれかの値を示す。再開フラグ162は、プリンタ100の電源が投入される際に「ON」に設定される。 The restart flag 162 is set to "ON" indicating that the transmission of the ADV signal is restarted immediately after the transmission of the Advertise signal (hereinafter simply referred to as "ADV signal") according to the BT system is stopped, and the transmission of the ADV signal. "OFF" indicating that the transmission of the ADV signal is not restarted immediately after stopping the ADV signal. The restart flag 162 is set to "ON" when the power of the printer 100 is turned on.

(PS群の概念;図2)
図2を参照して、プロトコルスタック138に含まれるPS群の概念を説明する。図2のテーブルは、理解の容易化のためにPS群を概念的に示したものであり、PS群の具体的なデータ構造とは異なる。PS群のデータ構造については、図2の説明を終えた後に、図3から図5を参照して説明する。PS群は、Bluetooth SIGによって定義される(即ちBT方式の規格によって予め決められている)第1種のPSと、プリンタ100のベンダによって定義される第2種のPSと、に分けられる。
(Concept of PS group; Fig. 2)
The concept of PS groups included in the protocol stack 138 will be described with reference to FIG. The table in FIG. 2 conceptually shows the PS group for easy understanding, and differs from the concrete data structure of the PS group. The data structure of the PS group will be explained with reference to FIGS. 3 to 5 after the explanation of FIG. 2 is finished. The PS group is divided into a first type PS defined by the Bluetooth SIG (that is, predetermined by the BT standard) and a second type PS defined by the vendor of the printer 100 .

(第1種のPS)
第1種のPSは、GAP Service138Aを含む。以下では、GAP Serviceのことを単に「GA」と記載する。GA138Aは、BTI/F116に関する情報を送信するためのPSである。当該情報は、例えば、BTI/F116を示すデバイス名DN、BTI/F116がサポートしている規格を示す情報等を含む。GA138Aには、GAに対応するPSを識別する識別子としてBT方式の規格によって予め決められているUUID「0x1800」が割り当てられている。GA138Aは、複数個のCharacteristicを含む。Characteristicは、PSの具体的な機能を定義する情報である。GA138Aに含まれる複数個のCharacteristicは、デバイス名DNの送信を定義するCharacteristic「Device Name」を含む。「Device Name」には、当該Characteristicを識別する識別子としてBT方式の規格によって予め決められているUUID「0x2A00」が割り当てられている。なお、図2では、GA138Aに含まれる他のCharacteristicの記載を省略している。
(Type 1 PS)
The first type of PS includes GAP Service 138A. Hereinafter, GAP Service is simply referred to as "GA". GA 138A is PS for transmitting information about BTI/F 116 . The information includes, for example, the device name DN indicating the BTI/F 116, information indicating the standards supported by the BTI/F 116, and the like. The GA 138A is assigned the UUID "0x1800" predetermined by the BT standard as an identifier for identifying the PS corresponding to the GA. GA138A contains multiple Characteristics. Characteristic is information that defines specific functions of the PS. A plurality of Characteristics included in GA 138A includes a Characteristic "Device Name" that defines transmission of the device name DN. "Device Name" is assigned a UUID "0x2A00" predetermined by the BT standard as an identifier for identifying the Characteristic. Note that description of other Characteristics included in GA138A is omitted in FIG.

(第2種のPS)
第2種のPSは、Function Service138Bと、AP Connection138Cと、WFD Connection138Dと、BT Control138Eと、Error Service138Fと、を含む。
(Type 2 PS)
The second type PS includes Function Service 138B, AP Connection 138C, WFD Connection 138D, BT Control 138E, and Error Service 138F.

(Function Service138B)
以下では、Function Serviceのことを単に「FS」と記載する。FS138Bは、プリンタ100が実行可能な複数個の機能を示す機能情報FIを送信するためのPSである。機能情報FIは、印刷機能を示す情報と、AP(例えばAP200)との無線接続(以下では「AP接続」と記載)を確立する機能を示す情報と、WFD接続を確立する機能を示す情報と、エラーURLを送信する機能を示す情報と、を含む。FS138Bには、FSに対応するPSを識別する識別子としてプリンタ100のベンダによって定められるUUID「aaa0」が割り当てられている。以下でも、第2種のPSを識別するUUIDは、プリンタ100のベンダによって定められるものである。なお、UUID「aaa0」は、BT方式の規格によって予め決められているUUID(例えばUUID「0x1800」)の桁数よりも大きい桁数を有するものであり、本明細書では簡略化して記載されている。
(Function Service 138B)
Hereinafter, Function Service is simply referred to as "FS". FS 138B is a PS for transmitting function information FI indicating a plurality of functions that printer 100 can execute. The function information FI includes information indicating a printing function, information indicating a function of establishing a wireless connection (hereinafter referred to as "AP connection") with an AP (for example, the AP 200), and information indicating a function of establishing a WFD connection. , and information indicating the ability to send the error URL. The FS 138B is assigned the UUID "aaa0" defined by the vendor of the printer 100 as an identifier for identifying the PS corresponding to the FS. The UUID for identifying the PS of the second type is determined by the vendor of the printer 100 also below. Note that the UUID "aaa0" has a larger number of digits than the number of digits of a UUID (for example, UUID "0x1800") predetermined by the BT standard, and is described in a simplified manner in this specification. there is

FS138Bは、機能情報FIの送信を定義するCharacteristic「Function Information」を含む。「Function Information」には、当該Characteristicを識別する識別子としてプリンタ100のベンダによって定められるUUID「aaa1」が割り当てられている。以下でも、第2種のPSに含まれるCharacteristicを識別するUUIDは、プリンタ100のベンダによって定められるものである。 FS 138B includes Characteristic "Function Information" that defines transmission of functional information FI. "Function Information" is assigned a UUID "aaa1" determined by the vendor of the printer 100 as an identifier for identifying the Characteristic. UUIDs for identifying the Characteristic included in the PS of the second type are determined by the vendor of the printer 100 also below.

(AP Connection138C)
以下では、AP Connectionのことを単に「AC」と記載する。AC138Cは、AP接続を確立するためのPSである。AC138Cには、UUID「bbb0」が割り当てられている。AC138Cは、「Connection Status」、「IP Address」、「Connection Information」、及び、「Change Permission」を含む4個のCharacteristicを含む。
(AP Connection 138C)
Below, AP Connection is simply described as “AC”. AC 138C is a PS for establishing AP connection. AC 138C is assigned UUID "bbb0". AC138C includes four Characteristic including "Connection Status", "IP Address", "Connection Information" and "Change Permission".

「Connection Status」は、プリンタ100のAP接続に関する状態を示すAP状態情報の送信を定義するCharacteristic(UUID「bbb1」)である。AP状態情報は、「Disable」、「Enable」、「Busy」、及び、「Error」を含む複数個の状態のいずれかを示す。「Disable」は、プリンタ100がAP接続の確立を許可しない状態に設定されていることを示す。「Enable」は、プリンタ100がAP接続の確立を許可する状態に設定されていることを示す。「Busy」は、AP接続を確立するための処理が実行中であることを示す。「Error」は、AP接続を確立するための処理が失敗したことを示す。 “Connection Status” is a Characteristic (UUID “bbb1”) that defines transmission of AP status information indicating the status of AP connection of the printer 100 . The AP state information indicates one of a plurality of states including 'Disable', 'Enable', 'Busy', and 'Error'. "Disable" indicates that the printer 100 is set to a state that does not permit establishment of an AP connection. "Enable" indicates that the printer 100 is set to permit establishment of an AP connection. "Busy" indicates that processing for establishing AP connection is being executed. "Error" indicates that the process for establishing AP connection has failed.

「IP Address」は、プリンタ100のIPアドレスIAの送信を定義するCharacteristic(UUID「bbb2」)である。 “IP Address” is a Characteristic (UUID “bbb2”) that defines transmission of the IP address IA of the printer 100 .

「Connection Information」は、通信相手(例えば端末10)が無線接続を確立しているAP(例えばAP200)のSSID及びパスワードの受信を定義するCharacteristic(UUID「bbb3」)である。 "Connection Information" is a Characteristic (UUID "bbb3") that defines reception of the SSID and password of the AP (eg AP200) with which the communication partner (eg terminal 10) has established a wireless connection.

「Change Permission」は、後述するAttribute Permissionの値を変更するための指示の受信を定義するCharacteristic(UUID「bbb4」)である。なお、Change Permissionは、第3及び第4実施例で利用され、第1及び第2実施例では利用されない。 "Change Permission" is a Characteristic (UUID "bbb4") that defines receiving an instruction to change the value of Attribute Permission, which will be described later. Note that Change Permission is used in the third and fourth embodiments, and not used in the first and second embodiments.

(WFD Connection138D)
以下では、WFD Connectionのことを単に「WC」と記載する。WC138Dは、WFD接続を確立するためのPS(UUID「ccc0」)である。WC138Dは、「Connection Status」、「Connection Information」、「Public Key」、及び、「Change Status」を含む4個のCharacteristicを含む。
(WFD Connection 138D)
Below, WFD Connection is simply described as "WC". WC 138D is a PS (UUID “ccc0”) for establishing a WFD connection. WC138D includes four Characteristics including 'Connection Status', 'Connection Information', 'Public Key' and 'Change Status'.

「Connection Status」は、プリンタ100のWFD接続に関する状態を示すWFD状態情報の送信を定義するCharacteristic(UUID「ccc1」)である。WFD状態情報は、「Disable」、「Enable」、「Ready」、「Start」、及び、「Error」を含む複数個の状態のいずれかを示す。「Disable」は、プリンタ100がWFD接続の確立を許可しない状態に設定されていることを示す。「Enable」は、プリンタ100がWFD接続の確立を許可する状態に設定されていることを示す。「Ready」は、公開鍵を利用してWFD情報160を暗号化する処理が完了したことを示す。「Start」は、プリンタ100がG/Oとしての動作を開始したことを示す。「Error」は、WFD接続を確立するための処理が失敗したことを示す。 “Connection Status” is a Characteristic (UUID “ccc1”) that defines transmission of WFD status information indicating the status of the WFD connection of the printer 100 . The WFD state information indicates one of a plurality of states including 'Disable', 'Enable', 'Ready', 'Start', and 'Error'. “Disable” indicates that the printer 100 is set to a state that does not permit establishment of a WFD connection. “Enable” indicates that the printer 100 is set to permit establishment of a WFD connection. "Ready" indicates that the process of encrypting the WFD information 160 using the public key has been completed. "Start" indicates that the printer 100 has started operating as a G/O. "Error" indicates that the process for establishing a WFD connection has failed.

「Connection Information」は、公開鍵を利用して暗号化されたWFD情報(以下では「暗号化済みのWFD情報」と記載)の送信を定義するCharacteristic(UUID「ccc2」)である。 “Connection Information” is a Characteristic (UUID “ccc2”) that defines transmission of WFD information encrypted using a public key (hereinafter referred to as “encrypted WFD information”).

「Public Key」は、公開鍵の受信を定義するCharacteristic(UUID「ccc3」)である。 "Public Key" is a Characteristic (UUID "ccc3") that defines reception of a public key.

「Change Status」は、プリンタ100のWFD接続に関する状態を変更するための指示(例えば、プリンタ100をG/Oとして動作させるための指示)の受信を定義するCharacteristic(UUID「ccc4」)である。 "Change Status" is a Characteristic (UUID "ccc4") that defines reception of an instruction to change the status of the WFD connection of the printer 100 (for example, an instruction to operate the printer 100 as G/O).

(BT Control138E)
以下では、BT Controlのことを単に「BC」と記載する。BC138Eは、BTI/F116の状態を変更する指示を受信するためのPS(UUID「ddd0」)である。BC138Eは、「Paring Control」及び「Advertising Control」を含む2個のCharacteristicを含む。
(BT Control 138E)
Below, BT Control is simply referred to as "BC". BC 138E is a PS (UUID “ddd0”) for receiving instructions to change the state of BTI/F 116 . BC138E includes two Characteristics including "Paring Control" and "Advertising Control".

「Pairing Control」は、確立済みのL2CAP Linkを切断するための指示の受信を定義するCharacteristic(UUID「ddd1」)である。 “Pairing Control” is a Characteristic (UUID “ddd1”) that defines receiving an instruction to disconnect an established L2CAP Link.

「Advertising Control」は、再開フラグ162を「ON」から「OFF」に変更するための指示の受信を定義するCharacteristic(UUID「ddd2」)である。 "Advertising Control" is a Characteristic (UUID "ddd2") that defines receiving an instruction to change the resume flag 162 from "ON" to "OFF".

(Error Service138F)
以下では、Error Serviceのことを単に「ES」と記載する。ES138Fは、エラーURLを送信するためのPS(UUID「eee0」)である。エラーURLは、プリンタ100が印刷機能を実行不可能なエラー状態(例えば紙詰まり)を解消するための方法が記載されているWebページを示すURLである。ES138Fは、エラーURLの送信を定義するCharacteristic「Error Information(UUID「eee1」)」を含む。
(Error Service 138F)
Below, Error Service is simply referred to as "ES". ES 138F is a PS (UUID “eee0”) for transmitting an error URL. The error URL is a URL indicating a web page that describes a method for solving an error state (for example, paper jam) in which the printer 100 cannot execute the print function. ES 138F contains Characteristic “Error Information (UUID “eee1”)” that defines the transmission of the error URL.

(PS群のデータ構造;図3~図5)
図2を参照して、PS群の概念を説明した。続いて、図3~図5を参照して、PS群の具体的なデータ構造を説明する。
(Data structure of PS group; FIGS. 3 to 5)
The concept of the PS group has been described with reference to FIG. Next, a specific data structure of the PS group will be described with reference to FIGS. 3 to 5. FIG.

PS群は、Handleと、Attribute Typeと、Attribute Valueと、Attribute Permissionと、が対応付けられたテーブル構造を有する。Handleは、「0x0001」から続く連番である。図3~図5では、「0x0002」より後の一部のデータ構造が省略されている。このため、「0x0002」より後のHandleは、実際の値ではなく、記号「nk(k=1、2、3、…)」で表現されている。Attribute Type(以下では単に「AType」と記載)は、通信対象の情報のタイプを示す識別子(即ちUUID)である。Attribute Value(以下では単に「AValue」と記載)は、通信対象の情報を示す。Attribute Permisiion(以下では単に「APer」と記載)は、SMPに関する項目であり、より具体的には、情報の読み出し又は書き込みを許可するための条件を示す。 The PS group has a table structure in which Handle, Attribute Type, Attribute Value, and Attribute Permission are associated with each other. Handle is a serial number starting from "0x0001". 3 to 5, some data structures after "0x0002" are omitted. For this reason, Handles after "0x0002" are represented by symbols "nk (k=1, 2, 3, . . . )" instead of actual values. Attribute Type (hereinafter simply referred to as "AType") is an identifier (that is, UUID) indicating the type of information to be communicated. Attribute Value (hereinafter simply referred to as "AValue") indicates information to be communicated. Attribute Permission (hereinafter simply referred to as "APer") is an item related to SMP, and more specifically indicates a condition for permitting reading or writing of information.

具体的には、APerには、4つの項目のそれぞれを示す値が記憶される。1つ目の項目は情報の読み出しや書き込みを許可するか否かを示す項目であり、「Readable」、「Writeable」、及び、「Readable and writeable」のいずれかを示す1つの値がAPerに記憶される。2つ目の項目は、情報の読み出し又は書き込みの実行時に、Encryptionを要求するか否かを示す項目であり、「Encryption required」及び「No encryption required」のいずれかを示す1つの値がAPerに記憶される。3つ目の項目は、情報の読み出し又は書き込みの実行時に、Authenticationを要求するか否かを示す項目であり、「Authentication required」及び「No authentication required」のいずれかを示す1つの値がAPerに記憶される。4つ目の項目は、情報の読み出し又は書き込みの実行時に、Authorizationを要求するか否かを示す項目であり、「Authorization required」及び「No authorization required」のいずれかを示す1つの値がAPerに記憶される。「Encryption required」、「Authentication required」、及び、「Authorization required」のいずれかを示す値がAPerに記憶されている場合には、SMPに従った認証通信が実行されることを条件として、情報の読み出し又は書き込みが許可される。また、「No encryption required」かつ「No authentication required」かつ「No authorization required」を示す値がAPerに記憶されている場合に、SMPに従った認証通信を実行することなく、情報の読み出し又は書き込みが許可される。図3~図5ではこれらを簡略化して記載している。例えば、APerが「Readable without authentication」を示す場合には、上記1つ目の項目として「Readable」を示す値と、上記3つ目の項目として「No authentication required」を示す値とが、当該APerに実際に記憶されている。また、図3~図5のAPerの記載は、上記2つ目の項目と上記4つ目の項目について省略されている。実際には、上記2つ目の項目として「No encryption required」を示す値と、上記4つ目の項目として「No authorization required」を示す値と、が各APerに記憶されている。以降では、特に言及する場合を除き、上記2つ目の項目として「No encryption required」を示す値と、上記4つ目の項目として「No authorization required」を示す値とが、APerに記憶されているものとする。なお、APerが「Readable without authentication when discoverable」を示す各値を記憶している場合には、上記1つ目の項目として「Readable」を示す値と、上記3つ目の項目として「No authentication required」を示す値と、上記4つ目の項目として「No authorization required」を示す値と、が当該APerに記憶されており、さらに、サーバの状態が後述するDiscoverable状態であるという条件(即ち「when discoverable」)が満たされる場合には、「No authentication required」と「No authorization required」に従って、SMPに従った認証通信を実行することなく、情報の読み出しを許可することを示す値が、当該APerに記憶されている。以上のように、図面のAperの記載は、Bluetooth SIGの規格に記載されている実際の項目と完全に一致するものではなく、SMPに関する条件を概念的に示すものであることに留意されたい。 Specifically, APer stores a value indicating each of the four items. The first item is an item indicating whether reading or writing of information is permitted, and one value indicating one of "Readable", "Writeable", and "Readable and writeable" is stored in APer. be done. The second item is an item indicating whether or not Encryption is required when reading or writing information, and one value indicating either "Encryption required" or "No encryption required" remembered. The third item is an item indicating whether or not authentication is required when reading or writing information, and one value indicating either "Authentication required" or "No authentication required" remembered. A fourth item indicates whether or not authorization is required when reading or writing information, and one value indicating either "Authorization required" or "No authorization required" remembered. If a value indicating any of "Encryption required", "Authentication required", and "Authorization required" is stored in APer, information Read or write is allowed. Also, when a value indicating "No encryption required", "No authentication required", and "No authorization required" is stored in APer, it is possible to read or write information without executing authentication communication according to SMP. Allowed. 3 to 5 show these in a simplified manner. For example, when the APer indicates "Readable without authentication", the value indicating "Readable" as the first item and the value indicating "No authentication required" as the third item are is actually stored in Also, the description of APer in FIGS. 3 to 5 is omitted for the second item and the fourth item. Actually, each APer stores a value indicating "No encryption required" as the second item and a value indicating "No authorization required" as the fourth item. Hereinafter, unless otherwise specified, the value indicating "No encryption required" as the second item and the value indicating "No authorization required" as the fourth item are stored in APer. It is assumed that there is In addition, when APer stores each value indicating "Readable without authentication when discoverable", the value indicating "Readable" as the first item and "No authentication required" as the third item. ” and a value indicating “No authorization required” as the fourth item are stored in the APer, and the server is in a discoverable state (that is, “when discoverable") is satisfied, a value indicating permission to read information without performing authentication communication according to SMP is sent to the APer in accordance with "No authentication required" and "No authorization required". remembered. As described above, it should be noted that the description of Aper in the drawings does not completely correspond to the actual items described in the Bluetooth SIG standard, but conceptually indicates the conditions regarding SMP.

(第1種のPS)
(GAP Service(GA)138A)
GA138Aは、Handleの範囲「0x0001」~所定値(「n2」の1つ前の値)に対応するデータ群である。Handle「0x0001」に対応するATypeは、1個のPSを構成するデータ群のうちの先頭のデータであることを示すUUID「0x2800」を含む。Handle「0x0001」に対応するAValueは、GA138Aを他のPSと区別するためのUUID「0x1800」を含む。Handle「0x0001」に対応するAPerは、「Readable without authentication」を示す各値を含む。この各値は、SMPに従った情報の暗号化を実行することなく、情報を読み出すことが可能であることを意味する。
(Type 1 PS)
(GAP Service (GA) 138A)
GA138A is a data group corresponding to the range of Handle from "0x0001" to a predetermined value (one value before "n2"). The AType corresponding to Handle "0x0001" includes UUID "0x2800" indicating the first data in the data group forming one PS. AValue corresponding to Handle "0x0001" includes UUID "0x1800" for distinguishing GA138A from other PSs. APer corresponding to Handle "0x0001" includes each value indicating "Readable without authentication". Each value means that the information can be read without performing encryption of the information according to SMP.

Handle「0x0002」に対応するATypeは、Characteristic Declarationを示すUUID「0x2803」を含む。Characteristic Declarationは、CharacteristicのプロパティやUUID等を定義するデータである。ここで、プロパティは、Characteristicが読み出されるべき情報を定義するものであることを示す「Read」やCharacteristicが書き込まれるべき情報を定義するものであることを示す「Write」等を含む複数個の情報のうちのいずれか1個を示す。Handle「0x0002」に対応するAValueは、「Read」を示すプロパティと、Characteristicの情報に対応するHandle「n1」と、当該CharacteristicのUUID「0x2A00」と、を含む。Handle「0x0002」に対応するAPerは、「Readable without authentication」を示す各値を含む。 The AType corresponding to Handle "0x0002" includes UUID "0x2803" indicating Characteristic Declaration. Characteristic Declaration is data that defines properties of Characteristic, UUID, and the like. Here, the property is a plurality of pieces of information including "Read" indicating that the Characteristic defines information to be read and "Write" indicating that the Characteristic defines information to be written. any one of The AValue corresponding to the Handle "0x0002" includes a property indicating "Read", a Handle "n1" corresponding to the information of the Characteristic, and the UUID of the Characteristic "0x2A00". APer corresponding to Handle "0x0002" includes each value indicating "Readable without authentication".

Handle「n1」に対応するAtypeは、Characteristic「Device Name」のUUID「0x2A00」を含む。Handle「n1」に対応するAValueは、デバイス名DNを含む。Handle「n1」に対応するAPerは、「Readable without authentication when discoverable」を示す各値を含む。この各値は、BT方式のペリフェラル(即ちプリンタ100)の状態がDiscoverable状態である場合に、SMPに従った情報の暗号化を実行することなく、情報(ここではデバイス名DN)を読み出すことが可能であることを意味する。別言すれば、ペリフェラルの状態がDiscoverable状態でない場合(即ち非Discoverable状態である場合)には、SMPに従った情報の暗号化を実行することを条件として、情報を読み出すことが可能であることを意味する。ここで、Discoverable状態は、ペリフェラルがADV信号の送信を繰り返し実行している状態である。別言すれば、Discoverable状態は、ADV信号がBT方式のセントラルによって受信される際に、セントラルがペリフェラルの存在を検出可能な状態である。さらに、Discoverable状態において送信されるADV信号には、Discoverable状態であることに関する所定の値が含まれる。ここで、「所定の値」は、例えば、BT方式の規格に定められているLE Limited Discoverable Mode flag「1」、又は、BT方式の規格に定められているLE General Discoverable Mode flag「1」である。これに対して、非Discoverable状態は、ペリフェラルがADV信号の送信を実行していない状態、又は、ペリフェラルがADV信号の送信を繰り返し実行し、かつ、当該ADV信号に上記の所定の値が含まれていない状態(別言すれば、当該ADV信号にLE Limited Discoverable Mode flag「0」とLE General Discoverable Mode flag「0」の双方が含まれている状態)を示す。なお、「Readable without authentication when discoverable」はバージョン4.2以降の規格に定められている項目である。以下では、特に言及する場合を除き、ADV信号が送信される状況において、ADV信号にDiscoverable状態であることに関する所定の値が含まれているものとする。 AType corresponding to Handle "n1" includes UUID "0x2A00" of Characteristic "Device Name". The AValue corresponding to Handle "n1" contains the device name DN. The APer corresponding to Handle "n1" contains values indicating "Readable without authentication when discoverable". Each of these values allows reading out information (here, device name DN) without executing information encryption according to SMP when the state of the BT-based peripheral (that is, the printer 100) is in the discoverable state. It means possible. In other words, when the state of the peripheral is not in the discoverable state (that is, when it is in the non-discoverable state), the information can be read on the condition that the information is encrypted according to the SMP. means Here, the Discoverable state is a state in which the peripheral repeatedly executes ADV signal transmission. In other words, the Discoverable state is a state in which when an ADV signal is received by a BT-based central, the central can detect the presence of the peripheral. Further, the ADV signal transmitted in the Discoverable state includes a predetermined value regarding being in the Discoverable state. Here, the "predetermined value" is, for example, the LE Limited Discoverable Mode flag "1" specified in the BT standard, or the LE General Discoverable Mode flag "1" specified in the BT standard. be. On the other hand, the non-discoverable state is a state in which the peripheral does not transmit the ADV signal, or a state in which the peripheral repeatedly transmits the ADV signal and the ADV signal includes the above-mentioned predetermined value. is not enabled (in other words, the ADV signal includes both LE Limited Discoverable Mode flag "0" and LE General Discoverable Mode flag "0"). Note that "Readable without authentication when discoverable" is an item defined in the standard after version 4.2. Hereinafter, unless otherwise specified, it is assumed that the ADV signal contains a predetermined value regarding the Discoverable state in the situation where the ADV signal is transmitted.

GA138Aが上記のデータ構造を有しているので、GA138A内のデバイス名DNは、以下のように読み出される。CPU132(即ちサーバ)は、クライアントからUUID「0x2803」を指定したRead By Type Request信号を受信すると、UUID「0x2803」に対応するAPerに示される「Readable without authentication」に従って、クライアントがUUID「0x2803」に対応するAValue(即ち、プロパティ「Read」、Handle「n1」、及び、UUID「0x2A00」)を読み出すことを許可する。この結果、クライアントは、これらの情報を読み出す(即ち受信する)ことができ、これらの情報に基づいて、Handle「n1」及びUUID「0x2A00」に対応する情報の「Read」を実行可能であることを知ることができる。そして、クライアントは、UUID「0x2A00」を指定したRead By Type Request信号をサーバに送信する。サーバは、クライアントから当該信号を受信すると、UUID「0x2A00」に対応するAPerに示される「Readable without authentication when discoverable」に従って、クライアントがUUID「0x2A00」に対応するAValue(即ちデバイス名DN)を読み出すことを許可する。これにより、クライアントは、デバイス名DNを読み出すことができる。 Since GA138A has the above data structure, the device name DN in GA138A is read as follows. When the CPU 132 (that is, the server) receives a Read By Type Request signal specifying UUID “0x2803” from the client, the client receives UUID “0x2803” according to “Readable without authentication” indicated by APer corresponding to UUID “0x2803”. Allows to read the corresponding AValue (ie property “Read”, Handle “n1” and UUID “0x2A00”). As a result, the client can read (that is, receive) these pieces of information, and based on these pieces of information, it is possible to execute a 'Read' of information corresponding to Handle 'n1' and UUID '0x2A00'. can know The client then transmits a Read By Type Request signal designating UUID "0x2A00" to the server. When the server receives the signal from the client, the client reads the AValue (that is, the device name DN) corresponding to UUID "0x2A00" according to "Readable without authentication when discoverable" indicated by APer corresponding to UUID "0x2A00". allow This allows the client to read the device name DN.

なお、第1種のPSについては、「Readable without authentication」等の上記の各項目のうち、SIGによって予め決められている項目が採用される。即ち、例えば、Handle「n1」に対応するAPerについては、「Readable without authentication when discoverable」しか採用することができず、プリンタ100のベンダが他の項目を採用することができない。一方、次に説明する第2種のPSについては、プリンタ100のベンダが上記の各項目のうちの任意の項目を採用することができる。 For the first type PS, among the above items such as "Readable without authentication", items predetermined by the SIG are adopted. That is, for example, for APer corresponding to Handle "n1", only "Readable without authentication when discoverable" can be adopted, and the vendor of the printer 100 cannot adopt other items. On the other hand, for the second type PS described below, the vendor of the printer 100 can adopt any of the above items.

(第2種のPS)
(Function Service(FS)138B)
FS138Bは、Handleの範囲「n2」~「n4」に対応するデータ群である。Handle「n2」に対応するATypeは、FS138Bの先頭データであることを示すUUID「0x2800」を含む。Handle「n2」に対応するAValueは、FS138Bを他のPSと区別するためのUUID「aaa0」を含む。Handle「n2」に対応するAPerは、「Readable without authentication」を示す各値を含む。
(Type 2 PS)
(Function Service (FS) 138B)
FS138B is a data group corresponding to the range "n2" to "n4" of Handle. The AType corresponding to Handle "n2" includes UUID "0x2800" indicating the leading data of FS138B. AValue corresponding to Handle "n2" includes UUID "aaa0" for distinguishing FS138B from other PSs. APer corresponding to Handle "n2" includes each value indicating "Readable without authentication".

Handle「n3」に対応するATypeは、Characteristic Declarationであることを示すUUID「0x2803」を含む。Handle「n3」に対応するAValueは、プロパティ「Read」と、Handle「n4」と、UUID「aaa1」と、を含む。Handle「n3」に対応するAPerは、「Readable without authentication」を示す各値を含む。 The AType corresponding to Handle "n3" includes UUID "0x2803" indicating a Characteristic Declaration. The AValue corresponding to Handle 'n3' includes property 'Read', Handle 'n4', and UUID 'aaa1'. APer corresponding to Handle "n3" includes each value indicating "Readable without authentication".

Handle「n4」に対応するAtypeは、Characteristic「Function Information」のUUID「aaa1」を含む。Handle「n4」に対応するAValueは、機能情報FIを含む。Handle「n4」に対応するAPerは、「Readable without authentication」を示す各値を含む。 AType corresponding to Handle "n4" includes UUID "aaa1" of Characteristic "Function Information". AValue corresponding to Handle "n4" includes function information FI. APer corresponding to Handle "n4" includes each value indicating "Readable without authentication".

(AP Connection(AC)138C)
図4に示すように、AC138Cは、Handleの範囲「n5」~「n13」に対応するデータ群である。Handle「n5」に対応するATypeは、AC138Cの先頭データであることを示すUUID「0x2800」を含む。Handle「n5」に対応するAValueは、AC138Cを他のPSと区別するためのUUID「bbb0」を含む。Handle「n5」に対応するAPerは、「Readable without authentication」を示す各値を含む。
(AP Connection (AC) 138C)
As shown in FIG. 4, AC138C is a data group corresponding to the Handle range "n5" to "n13". The AType corresponding to Handle "n5" includes UUID "0x2800" indicating that it is the leading data of AC138C. AValue corresponding to Handle "n5" includes UUID "bbb0" for distinguishing AC138C from other PSs. APer corresponding to Handle "n5" includes each value indicating "Readable without authentication".

Handle「n6」~「n9」に対応する各ATypeは、Characteristic Declarationであることを示すUUID「0x2803」を含む。Handle「n6」に対応するAValueは、プロパティ「Read」と、Handle「n10」と、UUID「bbb1」と、を含む。同様に、Handle「n7」~「n9」に対応する各AValueは、プロパティと、Handleと、UUIDと、を含む。なお、Handle「n8」及び「n9」に対応する各プロパティは、「Read」ではなく「Write」である。また、Handle「n6」~「n9」に対応する各APerは、「Readable without authentication」を示す各値を含む。 Each AType corresponding to Handles "n6" to "n9" includes UUID "0x2803" indicating that it is a Characteristic Declaration. The AValue corresponding to Handle 'n6' includes property 'Read', Handle 'n10', and UUID 'bbb1'. Similarly, each AValue corresponding to Handles 'n7' to 'n9' includes properties, Handles, and UUIDs. Note that each property corresponding to Handles 'n8' and 'n9' is 'Write' instead of 'Read'. Also, each APer corresponding to Handles "n6" to "n9" includes each value indicating "Readable without authentication".

Handle「n10」に対応するAtypeは、Characteristic「Connection Status」のUUID「bbb1」を含む。Handle「n10」に対応するAValueは、AP状態情報(例えば「Disable」)を含む。Handle「n10」に対応するAPerは、「Readable without authentication」を示す各値を含む。 AType corresponding to Handle "n10" includes UUID "bbb1" of Characteristic "Connection Status". The AValue corresponding to Handle 'n10' contains AP state information (eg, 'Disable'). APer corresponding to Handle "n10" includes each value indicating "Readable without authentication".

Handle「n11」に対応するAtypeは、Characteristic「IP Address」のUUID「bbb2」を含む。Handle「n11」に対応するAValueは、IPアドレスIAを含む。Handle「n11」に対応するAPerは、「Readable without authentication」を示す各値を含む。 AType corresponding to Handle "n11" includes UUID "bbb2" of Characteristic "IP Address". The AValue corresponding to Handle "n11" contains the IP address IA. APer corresponding to Handle "n11" includes each value indicating "Readable without authentication".

Handle「n12」に対応するAtypeは、Characteristic「Connection Information」のUUID「bbb3」を含む。Handle「n12」に対応するAValueには、クライアントからAP(例えば200)のSSIDとパスワードが書き込まれる。なお、情報が書き込まれる前では、当該AValueは空情報を含む。Handle「n12」に対応するAPerは、「Writeable without authentication」を示す各値を含む。この各値は、SMPに従った情報の暗号化を実行することなく、情報(ここではSSIDとパスワード)が書き込まれることが可能であることを意味する。 AType corresponding to Handle "n12" includes UUID "bbb3" of Characteristic "Connection Information". The SSID and password of the AP (for example, 200) are written from the client to the AValue corresponding to Handle "n12". Note that before any information is written, the AValue contains empty information. APer corresponding to Handle "n12" includes each value indicating "Writeable without authentication". Each of these values means that the information (here SSID and password) can be written without performing encryption of the information according to SMP.

Handle「n13」に対応するAtypeは、Characteristic「Change Permission」のUUID「bbb4」を含む。Handle「n13」に対応するAValueには、Attribute Permissionの値を変更するためのPermission変更指示が書き込まれる。Handle「n13」に対応するAPerは、「Writeable without authentication」を示す各値を含む。 AType corresponding to Handle "n13" includes UUID "bbb4" of Characteristic "Change Permission". A Permission change instruction for changing the value of Attribute Permission is written in AValue corresponding to Handle "n13". APer corresponding to Handle "n13" includes each value indicating "Writeable without authentication".

AC138Cが上記のデータ構造を有しているので、例えば、AC138C内のUUID「n12」に対応するAValueには、以下のように情報が書き込まれる。CPU132(即ちサーバ)は、クライアントからUUID「0x2803」を指定したRead By Type Request信号を受信すると、各UUID「0x2803」に対応するAPerに示される「Readable without authentication」に従って、クライアントが各UUID「0x2803」に対応する各AValue(即ちプロパティ「Read(又はWrite)」、Handle「n10」~「n13」、及び、UUID「bbb1」~「bbb4」)を読み出すことを許可する。この結果、クライアントは、これらの情報を読み出すだすことができ、これらの情報に基づいて、例えばHandle「n12」及びUUID「bbb3」に対応する情報の「Write」を実行可能であることを知ることができる。そして、クライアントは、Handle「n12」を指定しているとともに書き込み対象の情報(即ちSSIDとパスワード)を含むWrite Request信号をサーバに送信する。サーバは、当該信号を受信すると、Handle「n12」に対応するAPerに示される「Writeable without authentication」に従って、情報をHandle「n12」に対応するAValueに書き込むことを許可する。これにより、クライアントは、SSIDとパスワードを書き込むことができる。 Since the AC 138C has the above data structure, for example, the following information is written in the AValue corresponding to the UUID "n12" in the AC 138C. When the CPU 132 (that is, the server) receives a Read By Type Request signal specifying UUID "0x2803" from the client, the client receives each UUID "0x2803" according to "Readable without authentication" indicated by APer corresponding to each UUID "0x2803". ” (ie, property “Read (or Write)”, Handles “n10” to “n13”, and UUIDs “bbb1” to “bbb4”) corresponding to . As a result, the client can read these information, and based on these information, know that it is possible to execute "Write" of information corresponding to Handle "n12" and UUID "bbb3", for example. can be done. Then, the client sends to the server a Write Request signal specifying Handle "n12" and including the information to be written (that is, the SSID and password). Upon receiving the signal, the server permits information to be written to AValue corresponding to Handle "n12" in accordance with "Writeable without authentication" indicated in APer corresponding to Handle "n12". This allows the client to write the SSID and password.

(WFD Connection(WC)138D)
図5に示されるように、WC138Dは、Handleの範囲「n14」~「n22」に対応するデータ群である。Handle「n14」に対応するATypeは、WC138Dの先頭データであることを示すUUID「0x2800」を含む。Handle「n14」に対応するAValueは、WC138Dを他のPSと区別するためのUUID「ccc0」を含む。Handle「n14」に対応するAPerは、「Readable without authentication」を示す各値を含む。
(WFD Connection (WC) 138D)
As shown in FIG. 5, WC138D is a data group corresponding to the Handle range "n14" to "n22". The AType corresponding to Handle "n14" includes UUID "0x2800" indicating the head data of WC138D. The AValue corresponding to Handle "n14" includes UUID "ccc0" to distinguish WC138D from other PSs. APer corresponding to Handle "n14" includes each value indicating "Readable without authentication".

Handle「n15」~「n18」に対応する各ATypeは、Characteristic Declarationであることを示すUUID「0x2803」を含む。Handle「n15」に対応するAValueは、プロパティ「Read」と、Handle「n19」と、UUID「ccc1」と、を含む。同様に、Handle「n16~」~「n18」に対応する各AValueは、プロパティと、Handleと、UUIDと、を含む。なお、Handle「n17」及び「n18」に対応する各プロパティは、「Read」ではなく「Write」である。また、Handle「n15」~「n18」に対応する各APerは、「Readable without authentication」を示す各値を含む。 Each AType corresponding to Handles "n15" to "n18" includes UUID "0x2803" indicating that it is a Characteristic Declaration. The AValue corresponding to Handle "n15" includes property "Read", Handle "n19", and UUID "ccc1". Similarly, each AValue corresponding to Handles "n16~" to "n18" includes properties, Handles, and UUIDs. Note that each property corresponding to Handles 'n17' and 'n18' is 'Write' instead of 'Read'. Also, each APer corresponding to Handles "n15" to "n18" includes each value indicating "Readable without authentication".

Handle「n19」に対応するAtypeは、Characteristi「Connection Status」のUUID「ccc1」を含む。Handle「n19」に対応するAValueは、WFD状態情報(例えば「Disable」)を含む。Handle「n19」に対応するAPerは、「Readable without authentication」を示す各値と、を含む。 AType corresponding to Handle "n19" includes UUID "ccc1" of Characteristi "Connection Status". The AValue corresponding to Handle "n19" contains WFD state information (eg, "Disable"). APer corresponding to Handle "n19" includes each value indicating "Readable without authentication".

Handle「n20」に対応するATypeは、Characteristic「Connection Information」のUUID「ccc2」を含む。Handle「n20」に対応するAValueは、暗号化済みのWFD情報を含み得る。ここで、WFD情報160が暗号化される前では、当該AValueは、暗号化済みのWFD情報を含まずに、空情報を含む。また、Handle「n20」に対応するAPerは、「Readable without authentication」を示す各値を含む。 The AType corresponding to Handle "n20" contains the UUID "ccc2" of the Characteristic "Connection Information". The AValue corresponding to Handle 'n20' may contain the encrypted WFD information. Here, before the WFD information 160 is encrypted, the AValue does not contain encrypted WFD information, but contains null information. Also, APer corresponding to Handle "n20" includes each value indicating "Readable without authentication".

Handle「n21」に対応するATypeは、Characteristic「Public Key」のUUID「ccc3」を含む。Handle「n21」に対応するAValueには、公開鍵が書き込まれる。また、Handle「n22」に対応するATypeは、Characteristic「Change Status」のUUID「ccc4」を含む。Handle「n22」に対応するAValueには、WFD接続に関する状態を変更するための各指示(例えば、プリンタ100の状態を「Disable」から「Enable」に変更するEnable指示、プリンタ100をG/Oとして動作させるためのStart指示)が書き込まれる。各Handle「n21」及び「n22」に対応する各APerは、「Writeable without authentication」を示す各値を含む。 The AType corresponding to Handle "n21" contains the UUID "ccc3" of the Characteristic "Public Key". A public key is written in AValue corresponding to Handle “n21”. Also, the AType corresponding to the Handle "n22" includes the UUID "ccc4" of the Characteristic "Change Status". The AValue corresponding to the Handle "n22" contains each instruction for changing the state of the WFD connection (for example, an Enable instruction to change the state of the printer 100 from "Disable" to "Enable", the printer 100 as G/O Start instruction for operation) is written. Each APer corresponding to each Handle "n21" and "n22" contains each value indicating "Writeable without authentication".

(BT Control(BC)138E)
BC138Eは、Handleの範囲「n23」~「n27」に対応するデータ群である。Handle「n23」に対応するATypeは、BC138Eの先頭データであることを示すUUID「0x2800」を含む。Handle「n23」に対応するAValueは、BC138Eを他のPSと区別するためのUUID「ddd0…」を含む。Handle「n23」に対応するAPerは、「Readable without authentication」を示す各値を含む。
(BT Control (BC) 138E)
BC138E is a data group corresponding to the range "n23" to "n27" of Handle. The AType corresponding to Handle "n23" includes UUID "0x2800" indicating the leading data of BC138E. AValue corresponding to Handle "n23" contains UUID "ddd0..." to distinguish BC138E from other PSs. APer corresponding to Handle "n23" includes each value indicating "Readable without authentication".

Handle「n24」及び「n25」に対応する各ATypeは、Characteristic Declarationであることを示すUUID「0x2803」を含む。Handle「n24」に対応するAValueは、プロパティ「Write」と、Handle「n26」と、UUID「ddd1」と、を含み、同様に、Handle「n25」に対応するAValueは、プロパティと、Handleと、UUIDと、を含む。 Each AType corresponding to Handles 'n24' and 'n25' includes UUID '0x2803' indicating that it is a Characteristic Declaration. The AValue corresponding to Handle 'n24' includes the property 'Write', the Handle 'n26', and the UUID 'ddd1'; similarly, the AValue corresponding to Handle 'n25' includes the property, Handle, and UUID.

Handle「n26」に対応するATypeは、Characteristic「Paring Control」のUUID「ddd1」を含む。Handle「n26」に対応するAValueには、L2CAP Linkを切断するための切断指示が書き込まれる。Handle「n27」に対応するATypeは、Characteristic「Advertising Control」のUUID「ddd2」を含む。Handle「n27」に対応するAValueには、再開フラグ162を「ON」から「OFF」に変更するための再開フラグOFF指示が書き込まれる。各Handle「n26」及び「n27」に対応する各APerは、「Writeable without authentication」を示す各値を含む。 The AType corresponding to Handle 'n26' contains the UUID 'ddd1' of the Characteristic 'Paring Control'. A disconnect instruction for disconnecting the L2CAP Link is written in AValue corresponding to Handle "n26". The AType corresponding to Handle "n27" contains the UUID "ddd2" of the Characteristic "Advertising Control". A resume flag OFF instruction for changing the resume flag 162 from "ON" to "OFF" is written in AValue corresponding to Handle "n27". Each APer corresponding to each Handle 'n26' and 'n27' contains each value indicating 'Writeable without authentication'.

(Error Service(ES)138F)
ES138Fは、Handleの範囲「n28」~「n30」に対応するデータ群である。Handle「n28」に対応するATypeは、ES138Fの先頭データであることを示すUUID「0x2800」を含む。Handle「n28」に対応するAValueは、ES138Fを他のPSと区別するためのUUID「eee0」と、を含む。Handle「n28」に対応するAPerは、「Readable without authentication」を示す各値を含む。
(Error Service (ES) 138F)
ES138F is a data group corresponding to the range "n28" to "n30" of Handle. The AType corresponding to Handle "n28" includes UUID "0x2800" indicating the head data of ES138F. AValue corresponding to Handle "n28" includes UUID "eee0" for distinguishing ES138F from other PSs. APer corresponding to Handle "n28" includes each value indicating "Readable without authentication".

Handle「n29」に対応するATypeは、Characteristic Declarationであることを示すUUID「0x2803」を含む。Handle「n29」に対応するAValueは、プロパティ「Read」と、Handle「n30」と、UUID「eee1」と、を含む。Handle「n29」に対応するAPerは、「Readable without authentication」を示す各値を含む。 The AType corresponding to Handle "n29" includes UUID "0x2803" indicating a Characteristic Declaration. The AValue corresponding to Handle 'n29' includes property 'Read', Handle 'n30' and UUID 'eee1'. APer corresponding to Handle "n29" includes each value indicating "Readable without authentication".

Handle「n30」に対応するATypeは、Characteristic「Error Information」のUUID「eee1」を含む。Handle「n30」に対応するAValueは、エラーURLを含み得る。ここで、プリンタ100がエラー状態でない場合には、当該AValueは、エラーURLを含まずに、空情報を含む。また、Handle「n30」に対応するAPerは、「Readable without authentication」を示す各値を含む。 The AType corresponding to Handle "n30" contains the UUID "eee1" of the Characteristic "Error Information". The AValue corresponding to Handle "n30" may contain the error URL. Here, if the printer 100 is not in an error state, the AValue does not contain an error URL and contains null information. Also, APer corresponding to Handle "n30" includes each value indicating "Readable without authentication".

(比較例;図6及び図7)
本実施例の端末10及びプリンタ100によって実行される処理を説明する前に、比較例の携帯端末300(以下では単に「端末300」と記載する)及びプリンタ500によって実行される処理を説明する。端末300は、OS36を備えるが、本実施例の処理(後述の図8~図18参照)を実現するためのアプリ38とは異なるアプリ338を備える。プリンタ500は、本実施例の処理を実現するためのプログラム136とは異なるプログラムを備え、再開フラグ162を記憶しない。また、比較例のPS群は、少なくともGA138A及びFS138Bを含む。なお、以下では、理解の容易さの観点から、端末300のCPUがOS36、アプリ338に従って実行する処理を、それぞれ、OS36、アプリ338を主体として説明する。また、比較例の全ての通信は、端末300及びプリンタ500のそれぞれのBTI/Fを介して実行されるので、以下では、「BTI/Fを介して」という説明を省略する。
(Comparative example; FIGS. 6 and 7)
Before describing the processing performed by the terminal 10 and the printer 100 of the present embodiment, the processing performed by the portable terminal 300 (hereinafter simply referred to as “terminal 300”) and the printer 500 of the comparative example will be described. The terminal 300 includes an OS 36, but also includes an application 338 different from the application 38 for realizing the processing of this embodiment (see FIGS. 8 to 18 described later). The printer 500 has a program different from the program 136 for realizing the processing of this embodiment, and does not store the restart flag 162 . Moreover, the PS group of the comparative example contains at least GA138A and FS138B. In the following, from the viewpoint of ease of understanding, processing executed by the CPU of the terminal 300 in accordance with the OS 36 and the application 338 will be described mainly with respect to the OS 36 and the application 338, respectively. All communications in the comparative example are performed via the BTI/Fs of the terminal 300 and the printer 500, respectively, so the description of "via the BTI/Fs" will be omitted below.

T10では、アプリ338を起動する操作がユーザによって端末300に実行され、この結果、アプリ338が起動する。この場合、T12では、アプリ338は、Scan開始命令をOS36に供給する。Scan開始命令は、Scan Request信号の送信を開始させるための命令である。 At T10, the user performs an operation on the terminal 300 to activate the application 338, and as a result, the application 338 is activated. In this case, at T12, the application 338 supplies a Scan start command to the OS36. The Scan start command is a command for starting transmission of the Scan Request signal.

また、T14では、プリンタ500の電源を投入する操作がユーザによってプリンタ500に実行される。T20では、プリンタ500は、ADV信号のブロードキャスト送信を開始する。当該信号は、BT方式の規格によって予め決められている接続許可パラメータ「ADV_IND」を含む。当該パラメータは、ADV信号を受信したデバイスとのL2CAP Linkを確立することを許可することを示す。なお、変形例では、接続許可パラメータは、「ADV_DIRECT_IND」であってもよい。 At T14, the user performs an operation to turn on the power of the printer 500. FIG. At T20, the printer 500 begins broadcasting ADV signals. The signal includes a connection permission parameter "ADV_IND" predetermined by the BT standard. The parameter indicates permission to establish an L2CAP Link with the device that received the ADV signal. Note that in a modification, the connection permission parameter may be "ADV_DIRECT_IND".

OS36は、アプリ338からScan開始命令を取得し(T12)、かつ、プリンタ500からADV信号を受信する場合(T20)に、T22において、Scan Request信号をプリンタ500に送信する。当該信号は、ADV信号の送信元のデバイス(ここではプリンタ500)の情報を要求するための信号である。 When the OS 36 acquires a Scan start command from the application 338 (T12) and receives an ADV signal from the printer 500 (T20), it transmits a Scan Request signal to the printer 500 at T22. This signal is a signal for requesting information on the device that sent the ADV signal (the printer 500 in this case).

T24では、OS36は、プリンタ500からScan Request信号に対する応答としてScan Response信号を受信する。当該信号は、プリンタ500のモデル名「model0」を含む。OS36は、当該信号を受信すると、当該信号をアプリ338に供給する。 At T24, the OS 36 receives a Scan Response signal from the printer 500 in response to the Scan Request signal. The signal includes the model name of printer 500, “model0”. When OS 36 receives the signal, it provides the signal to application 338 .

アプリ338は、OS36からScan Response信号を取得すると、T26において、接続確認画面を端末300の表示部に表示させる。接続確認画面は、BT方式に従った無線接続(即ちL2CAP Link)をプリンタ500と確立するのか否かをユーザに確認するための画面である。接続確認画面は、Scan Response信号に含まれるモデル名「model0」と、L2CAP Linkの確立の指示を受け付けるための接続ボタンと、を含む。 When the application 338 acquires the Scan Response signal from the OS 36, the connection confirmation screen is displayed on the display unit of the terminal 300 in T26. The connection confirmation screen is a screen for confirming with the user whether or not to establish a wireless connection (that is, L2CAP Link) according to the BT method with the printer 500 . The connection confirmation screen includes the model name "model0" included in the Scan Response signal and a connection button for accepting an instruction to establish the L2CAP Link.

アプリ338は、T28において、接続確認画面内の接続ボタンの選択を受け付けると、T30において、接続開始命令をOS36に供給する。接続開始命令は、CONNECT_IND信号の送信を開始させるための命令である。当該信号は、L2CAP Linkの確立を要求するための信号である。なお、接続開始命令の取得をトリガとして開始される後述するT30~T80の処理のうちOS36によって実行される処理は、OS36によって自動的に実行され、アプリ338からの命令によって停止することができない。 When the application 338 accepts selection of the connection button in the connection confirmation screen at T28, it supplies a connection start command to the OS36 at T30. The connection start command is a command for starting transmission of the CONNECT_IND signal. This signal is a signal for requesting establishment of the L2CAP Link. Of the processes T30 to T80 described later that are triggered by the acquisition of the connection start command, the processes executed by the OS36 are automatically executed by the OS36 and cannot be stopped by a command from the application 338.

OS36は、T30において、アプリ338から接続開始命令を取得すると、T32において、CONNECT_IND信号をプリンタ500に送信する。当該信号がプリンタ500に送信されると、T34において、端末300とプリンタ500の間にL2CAP Linkが確立される。 When the OS 36 acquires the connection start command from the application 338 at T30, it transmits a CONNECT_IND signal to the printer 500 at T32. When the signal is sent to the printer 500, an L2CAP Link is established between the terminal 300 and the printer 500 at T34.

プリンタ500は、T34において、L2CAP Linkが確立されると、T36において、ADV信号の送信を停止する。即ち、プリンタ500が、Discoverable状態から非Discoverable状態に移行する。このように、L2CAP Linkが確立されることに応じてADV信号の送信が停止するのは、例えば、BTI/F116のチップ等の仕様による。 When the L2CAP Link is established at T34, the printer 500 stops transmitting the ADV signal at T36. That is, the printer 500 transitions from the discoverable state to the non-discoverable state. The reason why the transmission of the ADV signal is stopped in response to the establishment of the L2CAP Link is, for example, the specifications of the BTI/F 116 chip.

また、OS36は、T34で確立されたL2CAP Linkを利用して、後述するT38からT78の処理を実行する。T38からT78の処理は、iOSの仕様により実行される。即ち、iOSはL2CAP Linkが確立される場合に、PS群の情報を自動的に取得する仕様を有する。T38では、OS36は、ATTによって定義されるRead By Group Type Request信号(以下では単に「Group_Req信号」と記載)をプリンタ500に送信する。Group_Req信号は、プリンタ500のプロトコルスタック内のPS群の構成を示す情報を読み出すための信号である。 Also, the OS 36 utilizes the L2CAP Link established at T34 to execute processing from T38 to T78, which will be described later. The processing from T38 to T78 is executed according to iOS specifications. That is, iOS has specifications for automatically acquiring PS group information when an L2CAP Link is established. At T 38 , OS 36 sends a Read By Group Type Request signal defined by ATT (hereinafter simply referred to as “Group_Req signal”) to printer 500 . A Group_Req signal is a signal for reading out information indicating the configuration of the PS group within the protocol stack of the printer 500 .

プリンタ500は、T38において、端末300からGroup_Req信号を受信すると、T40において、当該信号に対する応答として、各PSのUUIDと、各PSの最初のHandleと、各PSの最後のHandleと、を端末300に送信する。具体的には、プリンタ500は、PS群から、先頭データであることを示すUUID「0x2800」に対応するAValueを取得する。図3に示すように、UUID「0x2800」に対応するAValueとして、GA138AのUUID「0x1800」、FS138Bの「aaa0」等が取得される。また、プリンタ500は、各PSの最初のHandle(例えば、GA138Aの最初のHandle「0x0001」、FS138Bの最初のHandle「n2」等)と、各PSの最後のHandle(例えば、GA138Aの最後のHandle(n2の前の値)、FS138Bの最後のHandle「n4」等)と、を取得する。そして、プリンタ500は、取得済みの各情報を端末300に送信する。これにより、端末300は、プリンタ500のPS群の構成を知ることができる。 When the printer 500 receives the Group_Req signal from the terminal 300 at T38, the printer 500 transmits the UUID of each PS, the first Handle of each PS, and the last Handle of each PS to the terminal 300 as a response to the signal at T40. Send to Specifically, the printer 500 acquires the AValue corresponding to the UUID “0x2800” indicating the head data from the PS group. As shown in FIG. 3, UUID "0x1800" of GA138A, "aaa0" of FS138B, etc. are acquired as AValue corresponding to UUID "0x2800". In addition, the printer 500 can handle the first Handle of each PS (for example, the first Handle "0x0001" of GA138A, the first Handle "n2" of FS138B, etc.) and the last Handle of each PS (for example, the last Handle of GA138A). (the value before n2), the last Handle "n4" of FS138B, etc.). The printer 500 then transmits each acquired information to the terminal 300 . This allows the terminal 300 to know the configuration of the PS group of the printer 500 .

次いで、OS36は、T40で受信された各情報を利用して、複数個のPSに対応する複数個のRead By Type Request信号(以下では、単に「Type_Req信号」と記載)をプリンタ500に順次送信する。Type_Req信号は、ATypeを指定した信号であって、指定済みのATypeに対応するAValueを読み出すための信号である。OS36は、具体的には、以下の処理を実行する。 Next, the OS 36 uses each information received at T40 to sequentially transmit a plurality of Read By Type Request signals (hereinafter simply referred to as "Type_Req signals") corresponding to a plurality of PSs to the printer 500. do. The Type_Req signal is a signal specifying an AType, and is a signal for reading an AValue corresponding to the specified AType. Specifically, the OS 36 executes the following processes.

まず、OS36は、T42Aにおいて、最も小さい値を有するHandle「0x0001」に対応するPSであるGA138Aについて、Type_Req信号をプリンタ500に送信する。具体的には、OS36は、T42Aにおいて、UUID「0x2803」(即ちCharacteristic Declaration)と、GA138Aの最初のHandle「0x0001」と、GA138Aの最後のHandle(記載省略)と、を含むType_Req信号をプリンタ500に送信する。 First, at T42A, the OS 36 transmits the Type_Req signal to the printer 500 for GA138A, which is the PS corresponding to Handle "0x0001" having the smallest value. Specifically, in T42A, the OS 36 sends a Type_Req signal including the UUID “0x2803” (that is, Characteristic Declaration), the first Handle “0x0001” of the GA138A, and the last Handle (description omitted) of the GA138A to the printer 500. Send to

プリンタ500は、T42Aにおいて、端末300からType_Req信号を受信すると、Type_Req信号に含まれる最初のHandle「0x0001」及び最後のHandleによって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「0x2803」に対応するHandle「0x0002」を特定する。次いで、プリンタ500は、特定済みのHandle「0x0002」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Readable without authentication」を示す。このため、プリンタ500は、T42Bにおいて、SMPに従った情報の暗号化を実行することなく、特定済みのHandle「0x0002」と、特定済みのAValue(即ち、プロパティ「Read」、Handle「n1」、及び、UUID「0x2A00」)と、をType_Req信号に対する応答として端末300に送信する。 When the printer 500 receives the Type_Req signal from the terminal 300 at T42A, the printer 500 selects the Type_Req signal from among the data group contained within the range of Handles indicated by the first Handle "0x0001" and the last Handle included in the Type_Req signal. Identify the Handle "0x0002" corresponding to the contained UUID "0x2803". Next, the printer 500 identifies AValue and APer corresponding to the identified Handle "0x0002". Here, the specified APer indicates "Readable without authentication". Therefore, in T42B, the printer 500 encrypts the identified Handle "0x0002" and the identified AValue (that is, the property "Read", Handle "n1", and UUID "0x2A00") to the terminal 300 as a response to the Type_Req signal.

OS36は、T42Bにおいて、プリンタ500からHandle「0x0002」及びAValueを受信すると、T42Cにおいて、当該AValue内のUUID「0x2A00」を含むType_Req信号をプリンタ500に送信する。当該信号は、さらに、GA138Aの最初のHandle「0x0001」とGA138Aの最後のHandleとを含む。 Upon receiving the Handle "0x0002" and AValue from the printer 500 at T42B, the OS 36 transmits a Type_Req signal including the UUID "0x2A00" in the AValue to the printer 500 at T42C. The signal further includes GA138A's first Handle "0x0001" and GA138A's last Handle.

プリンタ500は、T42Cにおいて、端末300からType_Req信号を受信すると、当該信号に含まれる最初のHandle「0x0001」及び最後のHandleによって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「0x2A00」に対応するHandle「n1」を特定する。次いで、プリンタ500は、特定済みのHandle「n1」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Readable without authentication when discoverable」を示す。上述したように、現時点では、プリンタ500は、非Discoverable状態である。このため、プリンタ500は、SMPに従った情報の暗号化を実行することを条件として、情報を読み出すことを許可する。そして、現時点では、SMPに従った情報の暗号化を実行するための鍵(本比較例では後述のLong Term Key)が生成されていない。このために、プリンタ500は、SMPに従った情報の暗号化を実行することができず、この結果、T46において、Error Response信号を端末300に送信する。 When the printer 500 receives the Type_Req signal from the terminal 300 at T42C, the printer 500 selects the Type_Req signal from among the data group included in the range of Handles indicated by the first Handle "0x0001" and the last Handle included in the signal. Identify the Handle "n1" corresponding to the contained UUID "0x2A00". Next, the printer 500 identifies AValue and APer corresponding to the identified Handle "n1". Here, the identified APer indicates "Readable without authentication when discoverable". As described above, printer 500 is currently in a non-discoverable state. Therefore, the printer 500 permits information to be read on the condition that the information is encrypted according to SMP. At present, a key for executing information encryption according to SMP (Long Term Key described later in this comparative example) has not been generated. For this reason, the printer 500 cannot perform encryption of information according to SMP, and as a result, at T46, an Error Response signal is sent to the terminal 300. FIG.

OS36は、T46において、プリンタ500からError Response信号を受信すると、T48において、Pairing Request信号をプリンタ500に送信する。当該信号は、SMPに関する処理を開始させるための信号である。 Upon receiving the Error Response signal from the printer 500 at T46, the OS 36 transmits a Pairing Request signal to the printer 500 at T48. This signal is a signal for starting processing related to SMP.

プリンタ500は、T48において、端末300からPairing Request信号を受信すると、T50において、Pairing Response信号を端末300に送信する。そして、プリンタ500は、T52において、PINコード「1234」を表示する。これにより、ユーザは、PINコード「1234」を知ることができる。 Upon receiving the Pairing Request signal from the terminal 300 at T48, the printer 500 transmits a Pairing Response signal to the terminal 300 at T50. Then, the printer 500 displays the PIN code "1234" at T52. This allows the user to know the PIN code "1234".

OS36は、T50において、プリンタ500からPairing Response信号を受信すると、T54において、PINコードを入力するためのPIN入力画面を端末300の表示部に表示させる。 Upon receiving the Pairing Response signal from the printer 500 at T50, the OS 36 causes the display unit of the terminal 300 to display a PIN input screen for inputting the PIN code at T54.

図7に示されるように、T60では、OS36は、PIN入力画面でPINコード「1234」の入力を受け付ける。この結果、T62において、OS36とプリンタ500との間でSMPに従った認証通信が実行される。認証通信の少なくとも一部の過程において、入力済みのPINコード「1234」によって暗号化された情報である暗号化情報が通信される。そして、暗号化情報の復号が成功する場合に、プリンタ500は、Long Term Key(以下では単に「Key」と記載)を端末300に送信する。これにより、後述するT72以降の処理において、OS36とプリンタ500との間でBLE通信される情報は、Keyによって暗号化される。なお、図7において、細線の矢印、太線の矢印は、それぞれ、暗号化されていない情報の通信、SMPに従って暗号化された情報の通信を示す。以下の図でも同様である。 As shown in FIG. 7, at T60, the OS 36 accepts input of the PIN code "1234" on the PIN input screen. As a result, at T62, authentication communication according to SMP is executed between the OS 36 and the printer 500. FIG. Encrypted information, which is information encrypted by the entered PIN code "1234", is communicated during at least a portion of the authentication communication. Then, when the decryption of the encrypted information is successful, the printer 500 transmits a Long Term Key (hereinafter simply referred to as “Key”) to the terminal 300 . As a result, in the process after T72, which will be described later, the information to be BLE-communicated between the OS 36 and the printer 500 is encrypted with the Key. In FIG. 7, thin-line arrows and thick-line arrows indicate communication of unencrypted information and communication of information encrypted according to SMP, respectively. The same applies to the following figures.

T62の認証通信が完了すると、OS36は、T72において、図6のT42Cと同様のType_Req信号をプリンタ500に再び送信する。ただし、上述したように、当該信号内の情報は、Keyによって暗号化されている。 When the authentication communication of T62 is completed, the OS36 again transmits a Type_Req signal similar to that of T42C in FIG. 6 to the printer 500 in T72. However, as mentioned above, the information in the signal is encrypted with the Key.

プリンタ500は、T72において、端末300からType_Req信号を受信すると、当該信号内の情報をKeyによって復号し、復号済みの情報に含まれる最初のHandle「0x0001」及び最後のHandleによって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「0x2A00」に対応するHandle「n1」を特定する。次いで、プリンタ500は、特定済みのHandle「n1」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Readable without authentication when discoverable」を示す。プリンタ500は、非Discoverable状態であるものの、T62の認証処理を実行済みであるために、SMPに従った情報の暗号化を実行可能である。従って、プリンタ500は、当該AValueに含まれる情報(即ちデバイス名DN)を読み出すことを許可する。このため、プリンタ500は、Keyを利用してデバイス名DNを暗号化し、T74において、暗号化済みのデバイス名DNを端末300に送信する。 When the printer 500 receives the Type_Req signal from the terminal 300 at T72, it decodes the information in the signal using the Key, and the range of Handles indicated by the first Handle "0x0001" and the last Handle included in the decoded information. Handle "n1" corresponding to UUID "0x2A00" included in the Type_Req signal is identified from the data group included in the Type_Req signal. Next, the printer 500 identifies AValue and APer corresponding to the identified Handle "n1". Here, the identified APer indicates "Readable without authentication when discoverable". Although the printer 500 is in the non-discoverable state, it can encrypt information according to SMP because it has already executed the authentication process of T62. Therefore, the printer 500 permits reading of the information contained in the AValue (ie device name DN). Therefore, the printer 500 encrypts the device name DN using the Key, and transmits the encrypted device name DN to the terminal 300 at T74.

続けて、OS36は、T76Aにおいて、PS群のうち、Handle「0x0001」の次に小さいHandleに対応するPSについて、Type_Req信号をプリンタ500に送信する。すなわち、GA138A(Handle「0x0001」)の次のPSであるFS138B(Handle「n2」)について、Type_Req信号をプリンタ500に送信する。当該信号は、UUID「0x2803」と、FS138Bの最初のHandle「n2」と、FS138Bの最後のHandle「n4」と、を含む。T76Bは、UUID「0x2803」に対応するHandle「n3」と、Handle「n3」に対応するAValue(即ち、プロパティ「Read」、Handle「n4」、及び、UUID「aaa1」)が端末300に送信される点を除いて、図6のT42Bと同様である。 Subsequently, at T76A, the OS 36 transmits a Type_Req signal to the printer 500 for the PS corresponding to the next smallest Handle after the Handle "0x0001" among the PS group. That is, the Type_Req signal is transmitted to the printer 500 for the FS138B (Handle "n2"), which is the PS next to the GA138A (Handle "0x0001"). The signal includes the UUID "0x2803", the first Handle "n2" of FS138B, and the last Handle "n4" of FS138B. In T76B, Handle "n3" corresponding to UUID "0x2803" and AValue corresponding to Handle "n3" (that is, property "Read", Handle "n4", and UUID "aaa1") are sent to the terminal 300. It is the same as T42B in FIG.

OS36は、T76Bにおいて、端末300からHandle「n3」及びAValueを受信すると、T76Cにおいて、UUID「aaa1」を含むType_Req信号をプリンタ500に送信する。当該信号は、FS138Bの最初のHandle「n2」とFS138Bの最後のHandle「n4」を含む。 Upon receiving Handle "n3" and AValue from the terminal 300 at T76B, the OS 36 transmits a Type_Req signal including the UUID "aaa1" to the printer 500 at T76C. The signal includes the first Handle "n2" of FS138B and the last Handle "n4" of FS138B.

プリンタ500は、T76Cにおいて、端末300からType_Req信号を受信すると、当該信号内の情報をKeyによって復号し、復号済みの情報に含まれる最初のHandle「n2」及び最後のHandle「n4」によって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「aaa1」に対応するHandle「n4」を特定する。次いで、プリンタ500は、特定済みのHandle「n4」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Readable without authentication」を示す。従って、プリンタ500は、当該AValueに含まれる情報(即ち機能情報FI)を読み出すことを許可する。このため、プリンタ500は、Keyを利用して機能情報FIを暗号化し、T78において、暗号化済みの機能情報FIを端末300に送信する。 When the printer 500 receives the Type_Req signal from the terminal 300 at T76C, the information in the signal is decoded by the Key, and the first Handle "n2" and the last Handle "n4" included in the decoded information are indicated. The Handle "n4" corresponding to the UUID "aaa1" included in the Type_Req signal is specified from among the data group included in the Handle range. Next, the printer 500 identifies AValue and APer corresponding to the identified Handle "n4". Here, the specified APer indicates "Readable without authentication". Therefore, the printer 500 permits reading of the information (that is, function information FI) contained in the AValue. Therefore, the printer 500 encrypts the function information FI using the Key, and transmits the encrypted function information FI to the terminal 300 at T78.

OS36は、T78において、プリンタ500から機能情報FIを受信した後に、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ500に順次送信する。OS36は、上述したT38~T78の処理と残りの各PSに対応する各Type_Req信号の送信を自動的に実行することによって、PS群の情報、即ち、各PSに含まれるCharacteristicのプロパティ、UUID、及び、Handleを知ることができる。 At T78, after receiving the function information FI from the printer 500, the OS 36 sequentially transmits each Type_Req signal corresponding to each remaining PS in the PS group to the printer 500. FIG. OS36, by automatically executing the processing of T38 to T78 described above and the transmission of each Type_Req signal corresponding to each remaining PS, obtains the PS group information, that is, the Characteristic properties contained in each PS, UUID, And the Handle can be known.

OS36は、複数個のPSに対応する複数個のType_Req信号の全ての送信が完了すると、T80において、接続完了通知をアプリ338に供給する。接続完了通知は、図6のT30の接続開始命令に対する応答である。 When the transmission of all of the multiple Type_Req signals corresponding to the multiple PSs is completed, the OS 36 supplies a connection completion notification to the application 338 at T80. The connection completion notification is a response to the connection start command at T30 in FIG.

アプリ338は、T80において、OS36から接続完了通知を取得すると、T81Aにおいて、各PSの各UUIDを示す第1のリストを要求するためのリスト要求をOS36に供給する。これにより、アプリ338は、T81Bにおいて、OS36から第1のリストを取得する。次いで、アプリ338は、T81Cにおいて、第1のリストの中からFS138BのUUID「aaa0」を選択し、選択済みのUUID「aaa0」をOS36に供給する。これにより、アプリ338は、T81Dにおいて、OS36からFS138B内の各Characteristicの各プロパティと各UUIDとを含む第2のリスト(ここでは1組のプロパティ「Read」とUUID「aaa1」のみを含むリスト)を取得する。 When the application 338 acquires the connection completion notification from the OS 36 at T80, it supplies the OS 36 with a list request for requesting the first list indicating each UUID of each PS at T81A. As a result, the application 338 acquires the first list from the OS 36 at T81B. Next, in T81C, the application 338 selects the UUID "aaa0" of the FS138B from the first list and supplies the selected UUID "aaa0" to the OS36. As a result, in T81D, the application 338 creates a second list including each property and each UUID of each Characteristic in FS138B from OS36 (here, a list including only one set of property "Read" and UUID "aaa1") to get

アプリ338は、T81Dにおいて、OS36から第2のリストを取得すると、T82において、第2のリストの中からUUID「aaa1」を選択し、UUID「aaa1」に対応するプロパティ「Read」に従って、選択済みのUUID「aaa1」を含むType_Req信号の送信をOS36に要求する。この結果、OS36は、UUID「aaa1」とFS138Bの最初のHandle「n2」と最後のHandle「n4」とを含むType_Req信号をプリンタ500に送信する。 When the application 338 acquires the second list from the OS 36 at T81D, at T82, the UUID "aaa1" is selected from the second list, and according to the property "Read" corresponding to the UUID "aaa1", the selected request the OS 36 to send a Type_Req signal containing the UUID "aaa1". As a result, the OS 36 transmits to the printer 500 a Type_Req signal containing the UUID "aaa1" and the first Handle "n2" and the last Handle "n4" of the FS138B.

プリンタ500は、T82において、端末300からUUID「aaa1」を含むType_Req信号を受信すると、T84において、T78と同様に、機能情報FIをType_Req信号に対する応答として端末300に送信する。 When the printer 500 receives the Type_Req signal including the UUID "aaa1" from the terminal 300 at T82, the printer 500 transmits the function information FI to the terminal 300 as a response to the Type_Req signal at T84, similarly to T78.

OS36は、T84において、プリンタ500から機能情報FIを受信すると、受信済みの機能情報FIをアプリ338に供給する。 Upon receiving the function information FI from the printer 500 at T84, the OS 36 supplies the received function information FI to the application 338. FIG.

アプリ338は、T84においてOS36から機能情報FIを取得すると、T90において、プリンタ500の機能を示す機能画面を表示する。機能画面は、プリンタ500のモデル名「model0」と、機能情報FIによって示されるプリンタ500の複数個の機能のうちの印刷機能を示す文字情報と、を含む。また、本ケースでは、機能情報FIは、プリンタ500がAP接続の確立とWFD接続の確立とエラー情報の送信とを実行可能であることを示す。このため、機能画面は、これら機能を実行するためのボタンとして、AP接続ボタンと、WFD接続ボタンと、エラー情報ボタンと、を含む。AP接続ボタンは、AP接続を確立する指示を受け付けるためのボタンである。WFD接続ボタンは、WFD接続を確立するための指示を受け付けるためのボタンである。エラー情報ボタンは、エラーURLを表示する指示を受け付けるためのボタンである。また、機能画面は、さらに、Cancelボタンを含む。Cancelボタンは、以降の処理をキャンセルするための指示を受け付けるためのボタンである。 When the application 338 acquires the function information FI from the OS 36 at T84, the function screen showing the functions of the printer 500 is displayed at T90. The function screen includes the model name "model0" of the printer 500 and character information indicating the printing function among the functions of the printer 500 indicated by the function information FI. Also, in this case, the function information FI indicates that the printer 500 is capable of establishing an AP connection, establishing a WFD connection, and transmitting error information. Therefore, the function screen includes an AP connection button, a WFD connection button, and an error information button as buttons for executing these functions. The AP connection button is a button for accepting an instruction to establish an AP connection. The WFD connection button is a button for accepting an instruction to establish a WFD connection. The error information button is a button for accepting an instruction to display an error URL. Also, the function screen further includes a Cancel button. The Cancel button is a button for accepting an instruction to cancel subsequent processing.

本比較例では、プリンタ500が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望む機能が存在しない。この場合、ユーザは、T92において、機能画面内のCancelボタンを選択する。この結果、機能画面の表示が終了し、図7の処理が終了する。 In this comparative example, the function desired by the user does not exist among the multiple functions (that is, print function, AP connection, WFD connection) executable by the printer 500 . In this case, the user selects the Cancel button in the function screen at T92. As a result, the display of the function screen ends, and the process of FIG. 7 ends.

本比較例によると、端末300においてT90で機能画面が表示される前に、T62の認証通信が実行される。即ち、ユーザがPINコードを端末300に入力しなければ(T60)、端末300において機能画面が表示されない。そして、本比較例では、機能画面内に示される複数個の機能の中にユーザが望む機能が含まれない。即ち、本比較例によると、プリンタ500が実行可能な複数個の機能の中にユーザが望む機能が含まれない場合でも、ユーザがPINコードを入力しなければならない。そこで、本実施例では、プリンタ100が実行可能な複数個の機能の中にユーザが望む機能が含まれない場合に、プリンタ100と端末10との間で認証通信が実行されることを抑制することを実現する。これにより、プリンタ100が実行可能な複数個の機能の中にユーザが望む機能が含まれない場合に、ユーザがPINコードを入力する作業を実行せずに済む。この結果、ユーザの利便性が向上する。 According to this comparative example, before the function screen is displayed at T90 on the terminal 300, the authentication communication at T62 is executed. That is, unless the user inputs the PIN code into the terminal 300 (T60), the function screen is not displayed on the terminal 300. FIG. In this comparative example, the function desired by the user is not included in the plurality of functions displayed in the function screen. That is, according to this comparative example, even if the function desired by the user is not included in the plurality of functions executable by the printer 500, the user must enter the PIN code. Therefore, in this embodiment, when a function desired by the user is not included in a plurality of functions executable by the printer 100, execution of authentication communication between the printer 100 and the terminal 10 is suppressed. Realize that. As a result, the user does not have to enter the PIN code when the function desired by the user is not included in the functions executable by the printer 100 . As a result, user convenience is improved.

(Cancelのケース;図8、図9)
図8及び図9を参照して、本実施例において機能画面のCancelボタンが選択されるケースを説明する。なお、以下では、理解の容易さの観点から、端末10のCPU32がOS36、アプリ38に従って実行する処理を、それぞれ、OS36、アプリ38を主体として説明する。プリンタ100のCPU132がプログラム136に従って実行する処理を、プリンタ100を主体として説明する。また、本実施例の通信は、特に言及する場合を除き、端末10及びプリンタ100の各BTI/Fを介して実行されるので、以下では、「BTI/F16(又は116)を介して」という説明を省略する。
(Case of Cancel; Figures 8 and 9)
A case in which the Cancel button on the function screen is selected in this embodiment will be described with reference to FIGS. 8 and 9. FIG. In the following, from the viewpoint of ease of understanding, processing executed by the CPU 32 of the terminal 10 in accordance with the OS 36 and the application 38 will be described mainly with respect to the OS 36 and the application 38, respectively. Processing executed by the CPU 132 of the printer 100 according to the program 136 will be described with the printer 100 as the main subject. In addition, communication in this embodiment is executed via each BTI/F of the terminal 10 and the printer 100 unless otherwise specified, so hereinafter, it is referred to as "via the BTI/F 16 (or 116)". Description is omitted.

T110、T112は、それぞれ、図6のT10、T12と同様である。プリンタ100は、T114において、プリンタ100の電源を投入する操作がユーザによって実行されると、T116において、再開フラグ162を「ON」に設定する。そして、プリンタ100は、T120において、接続許可パラメータ「ADV_IND」を含むADV信号のブロードキャスト送信を開始する。 T110 and T112 are the same as T10 and T12 in FIG. 6, respectively. When the user performs an operation to turn on the power of the printer 100 in T114, the printer 100 sets the restart flag 162 to "ON" in T116. Then, at T120, the printer 100 starts broadcasting an ADV signal including the connection permission parameter "ADV_IND".

OS36は、プリンタ100からADV信号を受信するので(T120)、T122において、Scan Request信号をプリンタ100に送信し、T124において、プリンタ100からモデル名「model1」を含むScan Response信号を受信し、当該信号をアプリ338に供給する。 Since the OS 36 receives the ADV signal from the printer 100 (T120), it transmits a Scan Request signal to the printer 100 at T122, and receives a Scan Response signal including the model name "model1" from the printer 100 at T124. provide a signal to the app 338;

T126~T132は、接続確認画面がモデル名「model1」を含む点を除いて、図6のT26~T32と同様である。OS36は、T132において、CONNECT_IND信号をプリンタ100に送信し、T134において、端末10とプリンタ100の間にL2CAP Linkを確立する。 T126-T132 are the same as T26-T32 in FIG. 6 except that the connection confirmation screen includes the model name "model1". The OS 36 sends a CONNECT_IND signal to the printer 100 at T132, and establishes an L2CAP Link between the terminal 10 and the printer 100 at T134.

プリンタ100は、T134において、L2CAP Linkが確立されると、T136において、ADV信号の送信を停止する。上記したように、現時点において、再開フラグ162は「ON」を示す。このため、プリンタ100は、T136でADV信号の送信を停止した直後に、T137において、ADV信号の送信を再開する。即ち、プリンタ100は、Discoverable状態から非Discoverable状態に移行した直後に、Discoverable状態に再び移行する。ここで、再開後のADV信号は、接続許可パラメータ「ADV_IND」を含まず、接続不許可パラメータ「ADV_NONCONN_IND」を含む。当該パラメータは、ADV信号を受信したデバイスとのL2CAP Linkを確立することを許可しないことを示す。当該パラメータを含むADV信号を受信したデバイスは、Scan_Request信号を送信せず、この結果、当該デバイスとプリンタ100との間にL2CAP Linkが確立されない。このような構成によれば、再開後のADV信号が端末10とは異なるデバイスによって受信される場合に、当該異なるデバイスとプリンタ100との間にL2CAP Linkが確立されることを抑制することができる。 When the L2CAP Link is established at T134, the printer 100 stops transmitting the ADV signal at T136. As described above, the restart flag 162 indicates "ON" at this time. Therefore, the printer 100 resumes transmission of the ADV signal at T137 immediately after stopping transmission of the ADV signal at T136. That is, the printer 100 transitions to the discoverable state again immediately after transitioning from the discoverable state to the non-discoverable state. Here, the ADV signal after resuming does not include the connection permission parameter "ADV_IND" but includes the connection non-permission parameter "ADV_NONCONN_IND". This parameter indicates that establishment of L2CAP Link with the device that received the ADV signal is not permitted. A device that receives an ADV signal containing the parameter does not transmit a Scan_Request signal, and as a result, an L2CAP Link is not established between the device and printer 100 . According to such a configuration, when the ADV signal after resumption is received by a device different from the terminal 10, it is possible to suppress the establishment of the L2CAP Link between the different device and the printer 100. .

また、OS36は、T134で確立されたL2CAP Linkを利用して、後述するT138~T178の処理を実行する。T138~T142Cは、図6のT38~T42Cと同様である。 Also, the OS 36 uses the L2CAP Link established at T134 to execute the processing of T138 to T178, which will be described later. T138-T142C are the same as T38-T42C in FIG.

プリンタ100は、T142Cにおいて、端末10からUUID「0x2A00」を含むType_Req信号を受信すると、当該信号に含まれる最初のHandle「0x0001」及び最後のHandleによって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「0x2A00」に対応するHandle「n1」を特定する。次いで、プリンタ500は、特定済みのHandle「n1」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Readable without authentication when discoverable」を示す。上述したように、現時点では、プリンタ100は、Discoverable状態である(T137)。このため、プリンタ100は、SMPに従った情報の暗号化を実行することなく、情報を読み出すことを許可する。この結果、プリンタ100は、T144において、SMPに従った情報の暗号化を実行することなく、UUID「0x2A00」に対応するAValueであるデバイス名DNを端末10に送信する。このように、プリンタ100は、T137でDiscoverable状態に再び移行するので、T142CでType_Req信号を受信する場合に、図6のT46のようにError Response信号を端末10に送信することなく、即ち、PINコードの入力を端末10に求めることなく、デバイス名DNを端末10に送信することができる。 When the printer 100 receives the Type_Req signal including the UUID "0x2A00" from the terminal 10 at T142C, the data group included in the range of the handles indicated by the first handle "0x0001" and the last handle included in the signal. Among them, Handle "n1" corresponding to UUID "0x2A00" included in the Type_Req signal is identified. Next, the printer 500 identifies AValue and APer corresponding to the identified Handle "n1". Here, the identified APer indicates "Readable without authentication when discoverable". As described above, the printer 100 is currently in the discoverable state (T137). Therefore, the printer 100 permits information to be read without executing information encryption according to SMP. As a result, at T144, the printer 100 transmits the device name DN, which is the AValue corresponding to the UUID "0x2A00", to the terminal 10 without executing information encryption according to SMP. In this way, the printer 100 shifts to the Discoverable state again at T137. Therefore, when receiving the Type_Req signal at T142C, the printer 100 does not send an Error Response signal to the terminal 10 as at T46 in FIG. The device name DN can be sent to the terminal 10 without asking the terminal 10 to enter a code.

OS36は、T144において、プリンタ100からデバイス名DNを受信すると、T176Aにおいて、FS138Bに対応するType_Req信号をプリンタ100に送信する。T176A~T176Cは、Keyを利用した暗号化が実行されない点を除いて、図7のT76A~T76Cと同様である。 Upon receiving the device name DN from the printer 100 at T144, the OS 36 transmits a Type_Req signal corresponding to FS138B to the printer 100 at T176A. T176A-T176C are the same as T76A-T76C in FIG. 7 except that encryption using a key is not performed.

プリンタ100は、T176Cにおいて、端末10からType_Req信号を受信すると、当該信号に含まれる最初のHandle「n2」及び最後のHandle「n4」によって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「aaa1」に対応するHandle「n4」を特定する。次いで、プリンタ100は、特定済みのHandle「n4」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Readable without authentication」を示す。このため、プリンタ100は、当該AValueに含まれる情報(即ち機能情報FI)を読み出すことを許可する。この結果、プリンタ100は、T178において、SMPに従った情報の暗号化を実行することなく、機能情報FIを端末10に送信する。 When the printer 100 receives the Type_Req signal from the terminal 10 at T176C, from among the data group contained within the range of Handles indicated by the first Handle "n2" and the last Handle "n4" contained in the signal, Identify Handle "n4" corresponding to UUID "aaa1" included in the Type_Req signal. Next, the printer 100 identifies AValue and APer corresponding to the identified Handle "n4". Here, the specified APer indicates "Readable without authentication". Therefore, the printer 100 permits reading of the information (that is, function information FI) included in the AValue. As a result, the printer 100 transmits the function information FI to the terminal 10 at T178 without executing information encryption according to SMP.

OS36は、T178において、プリンタ100から機能情報FIを受信すると、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ100に順次送信し、プリンタ100から残りの各PSのプロパティ「Read」に対応する各AValueを受信する。そして、OS36は、T180において、接続完了通知をアプリ38に供給する。 Upon receiving the function information FI from the printer 100 at T178, the OS 36 sequentially transmits each Type_Req signal corresponding to each remaining PS in the PS group to the printer 100, and the property "Read" of each remaining PS from the printer 100. , receives each AValue corresponding to . Then, the OS 36 supplies a connection completion notification to the application 38 at T180.

図9に示されるように、アプリ38は、T180において、OS36から接続完了通知を取得すると、図7のT81A~T81Dと同様の処理を実行し、T182において、UUID「aaa1」を含むType_Req信号の送信をOS36に要求する。この結果、OS36は、UUID「aaa1」とFS138Bの最初のHandle「n2」と最後のHandle「n4」とを含むType_Req信号をプリンタ100に送信する。 As shown in FIG. 9, when the application 38 acquires the connection completion notification from the OS 36 at T180, it executes the same processing as T81A to T81D in FIG. Requests transmission from OS36. As a result, the OS 36 transmits to the printer 100 a Type_Req signal containing the UUID "aaa1" and the first Handle "n2" and the last Handle "n4" of the FS138B.

OS36は、T182において、Type_Req信号をプリンタ100に送信すると、T184において、プリンタ100から機能情報FIを受信し、受信済みの機能情報FIをアプリ38に供給する。 After transmitting the Type_Req signal to the printer 100 at T182, the OS 36 receives the function information FI from the printer 100 and supplies the received function information FI to the application 38 at T184.

アプリ38は、T184において、OS36から機能情報FIを取得すると、T185Cにおいて、各PSの各UUIDを含む第1のリストの中からBC138EのUUID「ddd0」を選択し、選択済みのUUID「ddd0」をOS36に供給する。これにより、アプリ38は、T185Dにおいて、OS36からBC138E内の各Characteristicの各UUIDの第2のリスト(即ち、2個のUUID「ddd1」、「ddd2」を含むリスト)を取得する。 At T184, the application 38 acquires the function information FI from the OS 36. At T185C, the application 38 selects the UUID "ddd0" of the BC138E from the first list including each UUID of each PS, and selects the selected UUID "ddd0". to OS36. As a result, at T185D, the application 38 obtains from the OS 36 the second list of each UUID of each Characteristic in BC138E (that is, a list containing two UUIDs "ddd1" and "ddd2").

アプリ38は、T185Dにおいて、OS36から第2のリストを取得すると、T186において、第2のリストの中からUUID「ddd1」を選択し、切断指示を含むWrite Request信号の送信をOS36に要求する。この結果、OS36は、選択済みのUUID「ddd1」に対応するHandle「n26」と切断指示とを含むWrite Request信号をプリンタ100に送信する。 After obtaining the second list from the OS 36 at T185D, the application 38 selects the UUID “ddd1” from the second list at T186 and requests the OS 36 to send a Write Request signal including a disconnection instruction. As a result, the OS 36 transmits to the printer 100 a Write Request signal including Handle "n26" corresponding to the selected UUID "ddd1" and a disconnection instruction.

プリンタ100は、T182において、端末10からWrite Request信号を受信すると、当該信号に含まれるHandle「n26」に対応するAValue及びAPerを特定する。ここで、特定済みのAPerは、「Writeable without authentication」を示す。このため、プリンタ100は、当該信号に含まれる情報(即ち切断指示)を特定済みのAValueに書き込むことを許可する。即ち、プリンタ100は、切断指示を当該AValueに記憶する。 Upon receiving the Write Request signal from the terminal 10 at T182, the printer 100 identifies AValue and APer corresponding to Handle "n26" included in the signal. Here, the identified APer indicates "Writeable without authentication". Therefore, the printer 100 permits writing of the information included in the signal (that is, the disconnection instruction) to the specified AValue. That is, the printer 100 stores the disconnection instruction in the AValue.

プリンタ100は、切断指示が記憶されると、T188において、Write Response信号を端末10に送信する。さらに、プリンタ100は、T189Aにおいて、記憶済みの切断指示に従って、図8のT134で確立されたL2CAP Linkを切断する。 When the disconnection instruction is stored, the printer 100 transmits a Write Response signal to the terminal 10 at T188. Further, at T189A, the printer 100 disconnects the L2CAP Link established at T134 of FIG. 8 according to the stored disconnection instruction.

プリンタ100は、L2CAP Linkが切断されると、T189Bにおいて、接続不許可パラメータを含むADV信号に代えて、接続許可パラメータ「ADV_IND」を含むADV信号の送信を開始する。 When the L2CAP Link is disconnected, at T189B, the printer 100 starts transmitting an ADV signal containing the connection permission parameter "ADV_IND" instead of the ADV signal containing the connection disapproval parameter.

また、端末10は、T188において、プリンタ100からWrite Response信号を受信すると、T190において、プリンタ100の機能を示す機能画面を表示する。T190の機能画面は、モデル名が異なる点を除いて、図7のT90の機能画面と同様である。 Further, when the terminal 10 receives the Write Response signal from the printer 100 at T188, at T190 a function screen showing the functions of the printer 100 is displayed. The T190 function screen is similar to the T90 function screen in FIG. 7, except that the model name is different.

本ケースでは、プリンタ100が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望む機能が存在しない。この場合、ユーザは、T192において、機能画面内のCancelボタンを選択する。この結果、機能画面の表示が終了し、図9の処理が終了する。 In this case, the function desired by the user does not exist among the multiple functions executable by the printer 100 (that is, print function, AP connection, and WFD connection). In this case, the user selects the Cancel button in the function screen at T192. As a result, the display of the function screen ends, and the process of FIG. 9 ends.

本ケースによると、プリンタ100は、L2CAP Linkを確立した後にADV信号の送信を再開する(図8のT137)。これにより、プリンタ100の状態がDiscoverable状態になる。このため、プリンタ100は、T142Cにおいて、Type_Req信号を受信する場合(T142C)に、SMPに従った情報の暗号化を実行することなく、デバイス名DNを端末10に送信する(T144)。即ち、図6の比較例とは異なり、端末10において機能画面が表示される前に、認証通信が実行されない。これにより、プリンタ100が実行可能な複数個の機能の中にユーザが望む機能が含まれない場合に、プリンタ100と端末10との間で認証通信が実行されることを抑制することができる。即ち、プリンタ100が実行可能な複数個の機能の中にユーザが望む機能が含まれない場合に、ユーザがPINコードを入力する作業を実行せずに済む。この結果、ユーザの利便性が向上する。 According to this case, the printer 100 resumes transmission of the ADV signal after establishing the L2CAP Link (T137 in FIG. 8). As a result, the state of the printer 100 becomes the discoverable state. Therefore, when the printer 100 receives the Type_Req signal at T142C (T142C), it transmits the device name DN to the terminal 10 without executing information encryption according to SMP (T144). That is, unlike the comparative example of FIG. 6, authentication communication is not executed before the function screen is displayed on the terminal 10 . As a result, when a function desired by the user is not included in a plurality of functions executable by the printer 100, execution of authentication communication between the printer 100 and the terminal 10 can be suppressed. In other words, the user does not have to enter the PIN code when the function desired by the user is not included in the functions executable by the printer 100 . As a result, user convenience is improved.

(AP接続のケース;図10~図12)
図10~図12を参照して、本実施例において機能画面のAP接続ボタンが選択されるケースを説明する。本ケースでは、プリンタ100が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望むAP接続の機能が存在する。この場合、ユーザは、T200において、機能画面内のAP接続ボタンを選択する。
(AP connection case; Figures 10 to 12)
A case in which the AP connection button on the function screen is selected in this embodiment will be described with reference to FIGS. 10 to 12. FIG. In this case, the AP connection function desired by the user exists among a plurality of functions that the printer 100 can execute (that is, print function, AP connection, and WFD connection). In this case, the user selects the AP connection button in the function screen at T200.

アプリ38は、T200において、AP接続ボタンの選択を受け付けると、T212において、接続開始命令をOS36に供給する。これにより、OS36は、T232において、CONNECT_IND信号をプリンタ100に送信し、T234において、端末10とプリンタ100の間にL2CAP Linkを確立する。 When the application 38 accepts selection of the AP connection button at T200, it supplies a connection start command to the OS 36 at T212. As a result, the OS 36 transmits a CONNECT_IND signal to the printer 100 at T232, and establishes an L2CAP Link between the terminal 10 and the printer 100 at T234.

プリンタ100は、T234において、L2CAP Linkが確立されると、T236において、ADV信号の送信を停止する。そして、再開フラグ162が「ON」を示すので、T237において、ADV信号の送信を再開する。即ち、プリンタ100は、Discoverable状態に再び移行する。 When the L2CAP Link is established at T234, the printer 100 stops transmitting the ADV signal at T236. Since the restart flag 162 indicates "ON", transmission of the ADV signal is restarted at T237. That is, the printer 100 shifts to the discoverable state again.

また、OS36は、T234で確立されたL2CAP Linkを利用して、図8のT138~T142Bと同様の通信(即ち、Group_Req信号の送信と、UUID「0x2803」を含むType_Req信号の送信)を実行する。そして、OS36は、T242Cにおいて、図8のT142Cと同様に、UUID「0x2A00」を含むType_Req信号をプリンタ100に送信する。 In addition, OS36 uses the L2CAP Link established in T234 to perform communications similar to those of T138 to T142B in FIG. . Then, at T242C, the OS 36 transmits a Type_Req signal including the UUID "0x2A00" to the printer 100, as at T142C in FIG.

プリンタ100は、T242Cにおいて、端末10からType_Req信号を受信すると、APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100がDiscoverable状態であることに起因して、図8のT144と同様に、T244において、デバイス名DNを端末10に送信する。 When the printer 100 receives the Type_Req signal from the terminal 10 at T242C, APer indicates "Readable without authentication when discoverable" and the printer 100 is in the Discoverable state. , T244, the device name DN is transmitted to the terminal 10. FIG.

OS36は、T244において、プリンタ100からデバイス名DNを受信すると、図8のT176A~T178と同様の通信を実行するとともに、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ100に順次送信する。そして、OS36は、図8のケースと同様に、Error Response信号を受信することなく、プリンタ100から残りの各PSのプロパティ「Read」に対応する各AValueを受信し、T250において、接続完了通知をアプリ38に供給する。 Upon receiving the device name DN from the printer 100 at T244, the OS 36 executes communications similar to those at T176A to T178 in FIG. Send sequentially. Then, as in the case of FIG. 8, the OS 36 receives each AValue corresponding to the property "Read" of each remaining PS from the printer 100 without receiving the Error Response signal, and at T250, sends a connection completion notification. feed the application 38;

アプリ38は、T250において、OS36から接続完了通知を取得すると、T252において、OS36からBC138E内の各Characteristicの各UUIDを示す第2のリストを取得する。そして、アプリ38は、OS36を介して、当該第2のリスト内のUUID「ddd2」に対応するHandle「n27」と再開フラグOFF指示とを含むWrite Request信号をプリンタ100に送信する。 When the application 38 acquires the connection completion notification from the OS 36 at T250, it acquires from the OS 36 a second list indicating each UUID of each Characteristic in BC138E at T252. Then, the application 38 transmits to the printer 100 via the OS 36 a Write Request signal including Handle "n27" corresponding to the UUID "ddd2" in the second list and a restart flag OFF instruction.

プリンタ100は、T252において、端末10からWrite Request信号を受信すると、Handle「n27」に対応するAPerが「Writeable without authentication」を示すことに起因して、再開フラグOFF指示をHandle「n27」に対応するAValueに記憶する。そして、プリンタ100は、T254において、Write Response信号を端末10に送信する。 When the printer 100 receives the Write Request signal from the terminal 10 at T252, the APer corresponding to Handle "n27" indicates "Writeable without authentication", so the restart flag OFF instruction corresponds to Handle "n27". stored in the AValue to be used. The printer 100 then transmits a Write Response signal to the terminal 10 at T254.

また、アプリ38は、T256において、図9のT186と同様に、Handle「n26」と切断指示とを含むWrite Request信号をプリンタ100に送信し、T258において、図9のT188と同様に、プリンタ100からWrite Response信号を受信する。この結果、切断指示がHandle「n26」に対応するAValueに記憶される。 In addition, the application 38 transmits a Write Request signal including Handle "n26" and a disconnection instruction to the printer 100 at T256 as in T186 of FIG. receives a Write Response signal from As a result, the disconnection instruction is stored in the AValue corresponding to Handle "n26".

プリンタ100は、再開フラグOFF指示及び切断指示がAValueに記憶されると、T260Aにおいて、記憶済みの切断指示に従って、T234で確立されたL2CAP Linkを切断し、T260Bにおいて、接続許可パラメータ「ADV_IND」を含むADV信号の送信を開始する。また、プリンタ100はT262において、記憶済みの再開フラグOFF指示に従って、再開フラグ162を「ON」から「OFF」に変更する。これにより、以降の処理において、ADV信号の送信が再開されない。 When the restart flag OFF instruction and the disconnection instruction are stored in AValue, the printer 100 disconnects the L2CAP Link established at T234 according to the stored disconnection instruction at T260A, and sets the connection permission parameter "ADV_IND" at T260B. start transmitting ADV signals containing At T262, the printer 100 changes the restart flag 162 from "ON" to "OFF" according to the stored restart flag OFF instruction. As a result, transmission of the ADV signal is not restarted in subsequent processing.

図11に示すように、アプリ38は、T258において、端末10からWrite Response信号を受信すると、T312において、接続開始命令をOS36に供給する。T322~T336は、図8のT132~T134と同様である。ここで、図10のT262で再開フラグ162が「OFF」に変更されているので、プリンタ100は、ADV信号の送信を再開しない。即ち、プリンタ100は、非Discoverable状態である。 As shown in FIG. 11, when the application 38 receives the Write Response signal from the terminal 10 at T258, it supplies a connection start command to the OS 36 at T312. T322-T336 are the same as T132-T134 in FIG. Here, since the restart flag 162 is changed to "OFF" at T262 in FIG. 10, the printer 100 does not restart ADV signal transmission. That is, the printer 100 is in the non-discoverable state.

また、OS36は、T234で確立されたL2CAP Linkを利用して、図8のT138~T142Bと同様の通信を実行する。そして、OS36は、T342Cにおいて、図8のT142Cと同様に、UUID「0x2A00」を含むType_Req信号をプリンタ100に送信する。 Also, the OS 36 utilizes the L2CAP Link established at T234 to execute communication similar to T138 to T142B in FIG. Then, at T342C, the OS 36 transmits a Type_Req signal including the UUID "0x2A00" to the printer 100, as at T142C in FIG.

T342Cで端末10からType_Req信号を受信した時点において、Keyは生成されていない。このため、プリンタ100は、APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100が非Discoverable状態であることに起因して、T346において、Error_Response信号を端末10に送信する。 At the time when the Type_Req signal is received from the terminal 10 at T342C, no Key has been generated. Therefore, the printer 100 transmits an Error_Response signal to the terminal 10 in T346 because APer indicates "Readable without authentication when discoverable" and the printer 100 is in the non-discoverable state.

OS36は、T346において、プリンタ100からError Response信号を受信すると、T348において、Pairing Request信号をプリンタ100に送信し、T350において、Pairing Response信号をプリンタ100から受信する。この結果、プリンタ100は、T352において、PINコード「1234」を表示し、端末10は、T354において、PIN入力画面を端末10の表示部12に表示する。 Upon receiving the Error Response signal from the printer 100 at T346, the OS 36 transmits a Pairing Request signal to the printer 100 at T348, and receives a Pairing Response signal from the printer 100 at T350. As a result, the printer 100 displays the PIN code "1234" at T352, and the terminal 10 displays the PIN input screen on the display unit 12 of the terminal 10 at T354.

OS36は、T360において、PIN入力画面でPINコード「1234」の入力を受け付けると、T362において、OS36とプリンタ100との間でSMPに従った認証通信を実行する。当該認証通信において、入力済みのPINコード「1234」によって暗号化された暗号化情報の復号が成功し、Keyがプリンタ100から端末10に送信される。これにより、後述するT372以降の処理において、OS36とプリンタ100との間でBT方式に従って通信される情報は、Keyによって暗号化される。 When the OS 36 accepts the input of the PIN code “1234” on the PIN input screen at T360, at T362, the OS 36 and the printer 100 perform authentication communication according to SMP. In the authentication communication, the encrypted information encrypted by the entered PIN code “1234” is successfully decrypted, and the Key is sent from the printer 100 to the terminal 10 . As a result, information communicated between the OS 36 and the printer 100 according to the BT method is encrypted with the Key in the processing after T372, which will be described later.

T362の認証通信が完了すると、OS36は、T372において、T342Cと同様のType_Req信号をプリンタ500に再び送信する。ただし、上述したように、当該Type_Req信号内の情報は、Keyによって暗号化されている。 When the authentication communication of T362 is completed, OS36 again transmits the Type_Req signal similar to that of T342C to the printer 500 in T372. However, as described above, the information in the Type_Req signal is encrypted with the Key.

T372で端末10からType_Req信号を受信した時点において、Keyが生成されており、SMPに従った情報の暗号化を実行可能である。このため、プリンタ100は、APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100が非Discoverable状態であることに起因して、T374において、Keyを利用してデバイス名DNを暗号化し、暗号化済みのデバイス名DNを端末300に送信する。 At the time when the Type_Req signal is received from the terminal 10 at T372, the Key has been generated and the information can be encrypted according to SMP. Therefore, in T374, the printer 100 uses the Key to encrypt the device name DN, and Send the encrypted device name DN to the terminal 300 .

OS36は、T374において、プリンタ100からデバイス名DNを受信すると、Keyによる暗号化が実行される点を除いて、図8のT176A~T178と同様の通信を実行するとともに、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ100に順次送信する。この結果、OS36は、プリンタ100から残りの各PSのプロパティ「Read」に対応する各AValueを受信し、T380において、接続完了通知をアプリ38に供給する。 In T374, when the OS receives the device name DN from the printer 100, it performs the same communication as in T176A to T178 of FIG. Each Type_Req signal corresponding to each PS is sequentially transmitted to the printer 100 . As a result, the OS 36 receives each AValue corresponding to the property "Read" of each remaining PS from the printer 100, and supplies a connection completion notification to the application 38 at T380.

図12に示すように、アプリ38は、T380において、OS36から接続完了通知を取得すると、T402において、OS36からAC138C内の各Characteristicの各UUIDを示す第2のリストを取得する。そして、アプリ38は、OS36を介して、当該第2のリスト内のUUID「bbb1」とAC138Cの最初のHandle「n5」と最後のHandle「n13」とを含むType_Req信号をプリンタ100に送信する。 As shown in FIG. 12, when the application 38 acquires the connection completion notification from the OS 36 at T380, at T402 it acquires from the OS 36 a second list indicating each UUID of each Characteristic in the AC138C. Then, the application 38 transmits to the printer 100 via the OS 36 a Type_Req signal including the UUID "bbb1" in the second list, the first Handle "n5" and the last Handle "n13" of the AC138C.

本ケースでは、T402でType_Req信号がプリンタ100に送信される時点において、プリンタ100のAP状態情報は「Enable」に設定されている。このため、アプリ38は、T402において、Type_Req信号をプリンタ100に送信すると、T404において、OS36を介して、プリンタ100からUUID「bbb1」に対応するAP状態情報「Enable」を受信する。 In this case, when the Type_Req signal is sent to the printer 100 in T402, the AP status information of the printer 100 is set to "Enable". Therefore, when the application 38 transmits the Type_Req signal to the printer 100 in T402, it receives the AP status information "Enable" corresponding to the UUID "bbb1" from the printer 100 via the OS36 in T404.

アプリ38は、T404において、OS36からAP状態情報「Enable」を取得すると、T406において、SSID画面を表示部12に表示する。SSID画面は、端末10が現在参加しているAP200のAPネットワークを識別するSSIDのリストと、パスワードを入力するための入力欄と、を含む。当該リストは、AP200のSSID「ap01」を含む。 When the application 38 acquires the AP status information “Enable” from the OS 36 in T404, the SSID screen is displayed on the display unit 12 in T406. The SSID screen includes a list of SSIDs identifying the AP network of the AP 200 in which the terminal 10 is currently participating, and an entry field for entering a password. The list includes the SSID "ap01" of AP200.

T408では、アプリ38は、SSID画面内のリストの中からSSID「ap01」を選択する指示を受け付けるとともに、SSID画面内の入力欄にAP200のパスワード「xxx」を入力することを受け付ける。これにより、アプリ38は、取得済みの第2のリストの中からUUID「bbb3」を選択し、OS36を介して、選択済みのUUID「bbb3」に対応するHandle「n12」とSSID「ap01」とパスワード「xxx」とを含むWrite Request信号をプリンタ100に送信する。ここで、Write Request信号内の情報(即ちHandle「n12」とSSID「ap01」とパスワード「xxx」)は、Keyによって暗号化されている。 At T408, the application 38 accepts an instruction to select the SSID "ap01" from the list on the SSID screen, and accepts input of the AP 200 password "xxx" in the entry field on the SSID screen. As a result, the application 38 selects the UUID "bbb3" from the second list that has already been acquired, and, via the OS 36, transfers the Handle "n12" and the SSID "ap01" corresponding to the selected UUID "bbb3". A Write Request signal containing the password “xxx” is sent to the printer 100 . Here, the information in the Write Request signal (ie Handle "n12", SSID "ap01" and password "xxx") is encrypted by Key.

プリンタ100は、T410において、端末10からWrite Request信号を受信すると、当該信号内の情報を復号し、SSID「ap01」及びパスワード「xxx」を取得する。そして、プリンタ100は、SSID「ap01」及びパスワード「xxx」をHandle「n12」に対応するAValueに記憶する。次いで、プリンタ100は、T412において、Write Response信号を端末10に送信し、T414において、記憶済みのSSID「ap01」及びパスワード「xxx」を利用して、AP接続を確立するためのAP接続処理を開始し、AP状態情報を「Enable」から「Busy」に変更する。 Upon receiving the Write Request signal from the terminal 10 at T410, the printer 100 decodes the information in the signal and acquires the SSID "ap01" and the password "xxx". Then, the printer 100 stores the SSID "ap01" and the password "xxx" in the AValue corresponding to Handle "n12". Next, in T412, the printer 100 transmits a Write Response signal to the terminal 10, and in T414, uses the stored SSID "ap01" and password "xxx" to perform AP connection processing for establishing an AP connection. Start and change the AP state information from "Enable" to "Busy".

アプリ38は、T412において、プリンタ100から、OS36を介して、Write Response信号を受信すると、T416において、OS36を介して、UUID「bbb1」を含むType_Req信号をプリンタ100に送信する。T416では、アプリ38は、AP接続処理が完了する前に、UUID「bbb1」を含むType_Req信号をプリンタ100に送信する。この結果、アプリ38は、T418において、プリンタ100から、OS36を介して、UUID「bbb1」に対応するAValue内のAP状態情報「Busy」を受信する。 When the application 38 receives the Write Response signal from the printer 100 via the OS 36 at T412, it transmits a Type_Req signal including the UUID "bbb1" to the printer 100 via the OS 36 at T416. At T416, the application 38 sends a Type_Req signal including the UUID "bbb1" to the printer 100 before completing the AP connection process. As a result, at T418, the application 38 receives the AP status information "Busy" in the AValue corresponding to the UUID "bbb1" from the printer 100 via the OS36.

アプリ38は、「Busy」を取得するのでAP接続処理が完了していないことを知ることができ、T422において、OS36を介して、UUID「bbb1」を含むType_Req信号をプリンタ100に再び送信する。ここで、T420においてAP接続処理が完了し、プリンタ100とAP200との間にAP接続が確立される。なお、図12において、破線の矢印は、APネットワークが利用されたWi-Fi通信(即ち無線LANI/F114を介した通信)を示す。プリンタ100は、AP接続が確立されると、AP状態情報を「Busy」から「Enable」に変更する。その後、T422では、アプリ38は、UUID「bbb1」を含むType_Req信号をプリンタ100に送信する。この結果、アプリ38は、T424において、プリンタ100から、OS36を介して、UUID「bbb1」に対応するAValue内のAP状態情報「Enable」を受信する。 Since the application 38 obtains "Busy", it can know that the AP connection processing has not been completed, and in T422, it again transmits the Type_Req signal including the UUID "bbb1" to the printer 100 via the OS36. Here, the AP connection processing is completed at T420, and the AP connection is established between the printer 100 and the AP200. In FIG. 12, dashed arrows indicate Wi-Fi communication using an AP network (that is, communication via the wireless LAN I/F 114). The printer 100 changes the AP status information from "Busy" to "Enable" when the AP connection is established. After that, in T422, the application 38 sends a Type_Req signal including the UUID "bbb1" to the printer 100. FIG. As a result, at T424, the application 38 receives the AP status information "Enable" in the AValue corresponding to the UUID "bbb1" from the printer 100 via the OS36.

アプリ38は、T424において、プリンタ100から、OS36を介して、AP状態情報「Enable」を受信すると、T426において、OS36を介して、AC138Cの「IP Address」のUUID「bbb2」と、AC138Cの最初のHandle「n5」と、最後のHandle「n13」と、を含むType_Req信号をプリンタ100に送信する。この結果、アプリ38は、T428において、プリンタ100から、OS36を介して、UUID「bbb2」に対応するAValue内のIPアドレスIAを受信する。 When the application 38 receives the AP status information “Enable” from the printer 100 via the OS 36 at T424, the application 38 receives the UUID “bbb2” of the “IP Address” of the AC 138C via the OS 36 and the first and the last Handle "n13" to the printer 100. As a result, the application 38 receives the IP address IA in the AValue corresponding to the UUID "bbb2" from the printer 100 via the OS 36 at T428.

アプリ38は、T428において、OS36からIPアドレスIAを取得すると、T430において、IPアドレスIAを宛先とした確認信号の送信をOS36に要求する。この結果、OS36は、AP200のAPネットワークを利用して、無線LANI/F14を介して、確認信号を送信する。上記したように、プリンタ100とAP200との間にはAP接続が確立されている。このため、確認信号は、AP200を介してプリンタ100によって受信される。 When the application 38 acquires the IP address IA from the OS 36 in T428, the application 38 requests the OS 36 to transmit a confirmation signal addressed to the IP address IA in T430. As a result, the OS 36 uses the AP network of the AP 200 to transmit a confirmation signal via the wireless LAN I/F 14 . An AP connection is established between the printer 100 and the AP 200 as described above. Therefore, the confirmation signal is received by printer 100 via AP 200 .

プリンタ100は、T430において、無線LANI/F114を介して、AP200から確認信号を受信すると、T432において、無線LANI/F114とAP200とを介して、確認信号に対する応答信号を端末10に送信する。 Upon receiving the confirmation signal from AP 200 via wireless LAN I/F 114 at T430, printer 100 transmits a response signal to the confirmation signal to terminal 10 via wireless LAN I/F 114 and AP 200 at T432.

アプリ38は、T432において、プリンタ100から、OS36を介して、応答信号を受信すると、プリンタ100との通信を実行可能であると判断する。T432の後に実行されるT434~T438Bは、Write Request信号内の情報がKeyにより暗号化される点を除いて、図10のT256~T260Bと同様である。 When the application 38 receives a response signal from the printer 100 via the OS 36 at T432, it determines that communication with the printer 100 can be executed. T434-T438B executed after T432 are the same as T256-T260B in FIG. 10 except that the information in the Write Request signal is encrypted with a Key.

プリンタ100は、T438Aにおいて、L2CAP Linkが切断されると、T440において、再開フラグ162を「OFF」から「ON」に変更する。 When the L2CAP Link is disconnected at T438A, the printer 100 changes the restart flag 162 from "OFF" to "ON" at T440.

また、アプリ38は、T436において、プリンタ100から、OS36を介して、Write Response信号を受信すると、T450において、印刷画面を表示部12に表示する。そして、アプリ38は、印刷画面において、ユーザから印刷操作を受け付ける。印刷操作は、印刷対象の画像を選択する操作と、印刷設定(用紙サイズ、色数等)の入力を受け付ける操作と、を含む。 Also, when the application 38 receives a Write Response signal from the printer 100 via the OS 36 at T436, it displays a print screen on the display unit 12 at T450. Then, the application 38 receives a print operation from the user on the print screen. The print operation includes an operation of selecting an image to be printed, and an operation of accepting input of print settings (paper size, number of colors, etc.).

T452では、アプリ38は、OS36、無線LANI/F14、及び、AP200を介して、選択済みの画像に対応する画像情報と、入力済みの印刷設定を示す設定情報と、を含む印刷データをプリンタ100に送信する。この結果、プリンタ100は、T454において、端末10から受信された設定情報によって示される印刷設定に従って、端末10から受信された画像情報に対応する画像の印刷を実行する。 In T452, the application 38 sends print data including image information corresponding to the selected image and setting information indicating the input print settings to the printer 100 via the OS 36, the wireless LAN I/F 14, and the AP 200. Send to As a result, the printer 100 prints the image corresponding to the image information received from the terminal 10 in accordance with the print settings indicated by the setting information received from the terminal 10 at T454.

本ケースの構成によれば、プリンタ100は、機能画面内のAP接続ボタンが選択される場合(図10のT200)に、再開フラグ162を「ON」から「OFF」に変更する(T262)。これにより、プリンタ100は、L2CAP Linkの確立に応じてADV信号の送信を停止した後に、ADV信号の送信を再開しない。そして、プリンタ100は、APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100が非Discoverable状態であることに起因して、認証通信を実行する(図11のT326)。この結果、端末10は、AP200のSSID「ap01」及びパスワード「xxx」をKeyによって暗号化してプリンタ100に送信することができる(T410)。このために、SSID「ap01」及びパスワード「xxx」が第三者によって取得されることを抑制することができる。 According to the configuration of this case, when the AP connection button in the function screen is selected (T200 in FIG. 10), the printer 100 changes the restart flag 162 from "ON" to "OFF" (T262). As a result, the printer 100 does not resume transmission of the ADV signal after stopping transmission of the ADV signal in response to the establishment of the L2CAP Link. Then, the printer 100 executes authentication communication because APer indicates "Readable without authentication when discoverable" and the printer 100 is in the non-discoverable state (T326 in FIG. 11). As a result, the terminal 10 can encrypt the SSID "ap01" and the password "xxx" of the AP 200 with the Key and send them to the printer 100 (T410). Therefore, it is possible to prevent the SSID "ap01" and the password "xxx" from being acquired by a third party.

(WFD接続のケース;図13、図14)
図13、図14を参照して、本実施例において機能画面のWFD接続ボタンが選択されるケースを説明する。本ケースでは、プリンタ100が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望むWFD接続の機能が存在する。この場合、ユーザは、T200において、機能画面内のWFD接続ボタンを選択する。
(WFD connection case; Figures 13 and 14)
A case in which the WFD connection button on the function screen is selected in this embodiment will be described with reference to FIGS. 13 and 14. FIG. In this case, the WFD connection function desired by the user exists among a plurality of functions (that is, print function, AP connection, and WFD connection) executable by the printer 100 . In this case, the user selects the WFD connection button in the function screen at T200.

アプリ38は、T500において、WFD接続ボタンの選択を受け付けると、T512において、接続開始命令をOS36に供給する。T532~T537は、図10のT232~T237(即ち2CAP Linkの確立、ADV信号の送信の再開)と同様である。そして、OS36は、図8のT138~T142B、図10のT242C、T244と同様の通信(即ちPS群に対応する各Typ_Req信号の順次送信)を実行する。即ち、ADV信号の送信の再開により、プリンタ100はDiscoverable状態であるので、Error Response信号は受信されず、SMPに従った認証通信は実行されない。 When the application 38 receives selection of the WFD connection button in T500, it supplies a connection start command to the OS 36 in T512. T532 to T537 are the same as T232 to T237 in FIG. 10 (that is, establishment of 2CAP Link and resumption of ADV signal transmission). Then, the OS 36 executes the same communication as T138 to T142B in FIG. 8 and T242C and T244 in FIG. 10 (that is, sequential transmission of each Typ_Req signal corresponding to the PS group). That is, since the printer 100 is in the Discoverable state by resuming the transmission of the ADV signal, the Error Response signal is not received and authentication communication according to SMP is not executed.

アプリ38は、T550において、OS36からT512の接続開始命令に対する接続完了通知を取得すると、T552において、OS36からWC138D内の各Characteristicの各UUIDを示す第2のリストを取得する。そして、アプリ38は、OS36を介して、当該第2のリスト内のUUID「ccc4」に対応するHandle「n22」とEnable指示とを含むWrite Request信号をプリンタ100に送信する。 At T550, the application 38 obtains from the OS 36 a connection completion notification in response to the connection start instruction at T512, and at T552, obtains from the OS 36 a second list indicating each UUID of each Characteristic in WC138D. Then, the application 38 transmits to the printer 100 via the OS 36 a Write Request signal including Handle "n22" corresponding to the UUID "ccc4" in the second list and an Enable instruction.

プリンタ100は、T552において、端末10からWrite Request信号を受信すると、Handle「n22」に対応するAPerが「Writeable without authentication」を示すことに起因して、Enable指示をHandle「n22」に対応するAValueに記憶する。そして、プリンタ100は、T554において、Write Response信号を端末10に送信する。 When the printer 100 receives the Write Request signal from the terminal 10 at T552, the printer 100 transmits the Enable instruction to the AValue corresponding to the Handle "n22" because the APer corresponding to the Handle "n22" indicates "Writeable without authentication". memorize to The printer 100 then transmits a Write Response signal to the terminal 10 at T554.

また、アプリ38は、T556において、OS36を介して、取得済みの第2のリスト内のUUID「ccc3」に対応するHandle「n21」と公開鍵とを含むWrite Request信号をプリンタ100に送信する。なお、公開鍵は、アプリ38の起動時にアプリ38によって予め生成されてもよいし、WFD接続ボタンが選択される場合等にアプリ38によって生成されてもよい。 In addition, at T556, the application 38 transmits to the printer 100 via the OS 36 a Write Request signal including the handle "n21" corresponding to the UUID "ccc3" in the obtained second list and the public key. Note that the public key may be generated in advance by the application 38 when the application 38 is activated, or may be generated by the application 38 when the WFD connection button is selected.

プリンタ100は、T556において、端末10からWrite Request信号を受信すると、Handle「n21」に対応するAPerが「Writeable without authentication」を示すことに起因して、公開鍵をHandle「n21」に対応するAValueに記憶する。T558は、T554と同様である。 When the printer 100 receives the Write Request signal from the terminal 10 at T556, the printer 100 sets the public key to the AValue memorize to T558 is similar to T554.

T560、T562は、図10のT256、T258と同様である。これにより、切断指示がHandle「n26」に対応するAValueに記憶される。 T560 and T562 are the same as T256 and T258 in FIG. As a result, the disconnection instruction is stored in the AValue corresponding to Handle "n26".

プリンタ100は、Enable指示、公開鍵、及び、切断指示がAValueに記憶されると、T564Aにおいて、記憶済みの切断指示に従って、T534で確立されたL2CAP Linkを切断し、T564Bにおいて、接続許可パラメータ「ADV_IND」を含むADV信号の送信を開始する。また、プリンタ100はT566において、記憶済みのEnable指示に従って、プリンタ100の状態を「Disable」から「Enable」に変更する。これにより、WFD状態情報が「Disable」から「Enable」に変更される。また、プリンタ100は、T568において、記憶済みの公開鍵を利用して、WFD情報160を暗号化する。プリンタ100は、WFD情報160の暗号化が完了すると、プリンタ100の状態を「Enable」から「Ready」に変更する。 When the Enable instruction, the public key, and the disconnection instruction are stored in AValue, the printer 100 disconnects the L2CAP Link established in T534 according to the stored disconnection instruction in T564A, and sets the connection permission parameter " ADV_IND” starts transmitting ADV signals. In T566, the printer 100 changes the state of the printer 100 from "Disable" to "Enable" according to the stored Enable instruction. As a result, the WFD state information is changed from "Disable" to "Enable." Also, at T568, the printer 100 encrypts the WFD information 160 using the stored public key. When the encryption of the WFD information 160 is completed, the printer 100 changes the state of the printer 100 from "Enable" to "Ready".

図14に示すように、アプリ38は、T562において、端末10からWrite Response信号を受信すると、T570において、接続開始命令をOS36に供給する。T572~T577は、図13のT532~T537と同様である。そして、OS36は、図8のT138~T142B、図10のT242C、T244と同様の通信を実行する。即ち、図13と同様に、SMPに従った認証通信は実行されない。 As shown in FIG. 14, when the application 38 receives the Write Response signal from the terminal 10 at T562, it supplies a connection start command to the OS 36 at T570. T572 to T577 are the same as T532 to T537 in FIG. The OS 36 then executes communications similar to T138 to T142B in FIG. 8 and T242C and T244 in FIG. That is, as in FIG. 13, authentication communication according to SMP is not executed.

アプリ38は、T580において、OS36からT570の接続開始命令に対する接続完了通知を取得すると、T582において、OS36からWC138D内の各Characteristicの各UUIDを示す第2のリストを取得する。そして、アプリ38は、OS36を介して、当該第2のリスト内のUUID「ccc1」とWC138Dの最初のHandle「n14」と最後のHandle「n22」とを含むType_Req信号をプリンタ100に送信する。 At T580, the application 38 obtains from the OS 36 a connection completion notification in response to the connection start instruction at T570, and at T582, obtains from the OS 36 a second list indicating each UUID of each Characteristic in WC138D. Then, the application 38 transmits to the printer 100 via the OS 36 a Type_Req signal including the UUID "ccc1" and the first Handle "n14" and the last Handle "n22" of the WC138D in the second list.

本ケースでは、T582でType_Req信号がプリンタ100に送信される時点において、プリンタ100のWFD状態情報は「Ready」に設定されている。このため、アプリ38は、T582において、OS36を介して、Type_Req信号をプリンタ100に送信すると、T584において、OS36を介して、プリンタ100からUUID「ccc1」に対応するWFD状態情報「Ready」を受信する。 In this case, the WFD status information of the printer 100 is set to "Ready" when the Type_Req signal is sent to the printer 100 in T582. Therefore, when the application 38 transmits the Type_Req signal to the printer 100 via the OS 36 at T582, the application 38 receives the WFD status information "Ready" corresponding to the UUID "ccc1" from the printer 100 via the OS36 at T584. do.

アプリ38は、T584において、OS36からWFD状態情報「Ready」を取得すると、T586において、OS36を介して、取得済みの第2のリスト内のUUID「ccc2」とWC138Dの最初のHandle「n14」と最後のHandle「n22」とを含むType_Req信号をプリンタ100に送信する。この結果、アプリ38は、T588において、プリンタ100から、OS36を介して、暗号化済みのWFD情報を受信する。 When the application 38 acquires the WFD status information “Ready” from the OS 36 at T584, the application 38, at T586, via the OS 36, acquires the UUID “ccc2” in the acquired second list and the first Handle “n14” of the WC138D. A Type_Req signal containing the last Handle “n22” is sent to the printer 100 . As a result, the application 38 receives the encrypted WFD information from the printer 100 via the OS 36 at T588.

T590では、アプリ38は、公開鍵を利用して、受信済みの暗号化済みのWFD情報を復号する。これにより、アプリ38は、WFD情報160を取得する。 In T590, the application 38 uses the public key to decrypt the received encrypted WFD information. Thereby, the application 38 acquires the WFD information 160 .

T592では、アプリ38は、OS36を介して、取得済みの第2のリスト内のUUID「ccc4」に対応するHandle「n22」とStart指示とを含むWrite Request信号をプリンタ100に送信する。この結果、Handle「n22」に対応するAValueに、Start指示が記憶され、T594において、Write Response信号が端末10に送信される。 In T592, the application 38 transmits to the printer 100 via the OS 36 a Write Request signal including Handle "n22" corresponding to the UUID "ccc4" in the acquired second list and a Start instruction. As a result, the Start instruction is stored in the AValue corresponding to Handle "n22", and a Write Response signal is transmitted to the terminal 10 at T594.

プリンタ100は、T596において、記憶済みのStart指示に従って、G/O状態としての動作を開始する。この結果、プリンタ100の状態は、「Ready」から「Start」に変更される。 At T596, the printer 100 starts operating in the G/O state according to the stored Start instruction. As a result, the status of the printer 100 is changed from "Ready" to "Start".

また、アプリ38は、T598において、T590で取得したWFD情報160をOS36に供給して、WFD接続の確立をOS36に要求する。これにより、OS36は、T600において、WFD方式のクライアントとして動作して、WFD情報160を利用して、プリンタ100との間にWFD接続を確立する。 Also, in T598, the application 38 supplies the WFD information 160 acquired in T590 to the OS 36 and requests the OS 36 to establish a WFD connection. As a result, the OS 36 operates as a WFD client at T 600 and uses the WFD information 160 to establish a WFD connection with the printer 100 .

また、プリンタ100は、T600において、端末10との間でWFD接続を確立すると、T602において、プリンタ100の状態を「Start」から「Enable」に変更する。 Also, when the printer 100 establishes a WFD connection with the terminal 10 in T600, the state of the printer 100 is changed from "Start" to "Enable" in T602.

また、アプリ38は、T598において、WFD情報160をOS36に供給すると、T604において、T582と同様に、OS36を介して、UUID「ccc1」を含むType_Req信号をプリンタ100に送信する。本ケースでは、アプリ38は、WFD接続の確立が完了した後に、UUID「ccc1」を含むType_Req信号をプリンタ100に送信する。この結果、アプリ38は、T606において、プリンタ100から、OS36を介して、UUID「ccc1」に対応するAValue内のWFD状態情報「Enable」を受信する。 In addition, after supplying the WFD information 160 to the OS 36 in T598, the application 38 transmits a Type_Req signal including the UUID “ccc1” to the printer 100 via the OS 36 in T604 in the same manner as in T582. In this case, the application 38 sends a Type_Req signal including the UUID “ccc1” to the printer 100 after the WFD connection is established. As a result, in T606, the application 38 receives the WFD status information "Enable" in the AValue corresponding to the UUID "ccc1" from the printer 100 via the OS36.

アプリ38は、T606において、プリンタ100からWFD状態情報「Enable」を受信すると、WFD接続の確立が完了したと判断する。T606の後に実行されるT608~T612Bは、図13のT560~T564Bと同様である。 When the application 38 receives the WFD status information “Enable” from the printer 100 in T606, it determines that establishment of the WFD connection is completed. T608-T612B executed after T606 are the same as T560-T564B in FIG.

T620~T622は、印刷データがWFD接続を利用して端末10からプリンタ100に直接送信される点を除いて、図12のT450~T454と同様である。 T620-T622 are similar to T450-T454 in FIG. 12, except that the print data is sent directly from the terminal 10 to the printer 100 using the WFD connection.

本ケースの構成によれば、プリンタ100は、機能画面内のWFD接続ボタンが選択される場合(図13のT500)に、公開鍵をプリンタ100に送信する(T556)。これにより、プリンタ100は、WFD情報160を暗号化する(T568)。そして、プリンタ100は、暗号化済みのWFD情報を端末10に送信する(図14のT588)。このために、WFD情報160が第三者によって取得されることを抑制することができる。 According to the configuration of this case, the printer 100 transmits the public key to the printer 100 (T556) when the WFD connection button in the function screen is selected (T500 in FIG. 13). As a result, the printer 100 encrypts the WFD information 160 (T568). The printer 100 then transmits the encrypted WFD information to the terminal 10 (T588 in FIG. 14). Therefore, it is possible to prevent the WFD information 160 from being acquired by a third party.

また、本ケースの構成によれば、プリンタ100は、L2CAP Linkを確立した後にADV信号の送信を再開する(図13のT537)。APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100がDiscoverable状態であることに起因して、SMPに従った認証通信が実行されずに、公開鍵がプリンタ100に送信される(T556)。このため、公開鍵による暗号化を実行すべき場合に、SMPのKeyに従った暗号化が実行されることを抑制することができる。 Further, according to the configuration of this case, the printer 100 resumes transmission of the ADV signal after establishing the L2CAP Link (T537 in FIG. 13). Because APer indicates "Readable without authentication when discoverable" and the printer 100 is in the Discoverable state, the public key is sent to the printer 100 without performing authentication communication according to SMP (T556 ). Therefore, it is possible to suppress execution of encryption according to the SMP key when encryption using a public key is to be executed.

(エラー情報の場合;図15)
図15を参照して、本実施例において機能画面のエラー情報ボタンが選択されるケースを説明する。本ケースでは、ユーザは、プリンタ100がエラー状態であるのか否かを確認するために、機能画面内のエラー情報ボタンを選択する。
(For error information; Fig. 15)
A case in which the error information button on the function screen is selected in this embodiment will be described with reference to FIG. In this case, the user selects the error information button within the function screen to see if the printer 100 is in an error state.

アプリ38は、T630において、エラー情報ボタンの選択を受け付けると、T632において、接続開始命令をOS36に供給する。T642~T647は、図10のT232~T237と同様である。そして、OS36は、図8のT138~T142B、図10のT242C、T244と同様の通信を実行する。即ち、図10と同様に、SMPに従った認証通信は実行されない。 When the application 38 accepts selection of the error information button in T630, it supplies a connection start command to the OS 36 in T632. T642 to T647 are the same as T232 to T237 in FIG. The OS 36 then executes communications similar to T138 to T142B in FIG. 8 and T242C and T244 in FIG. That is, as in FIG. 10, authentication communication according to SMP is not executed.

アプリ38は、T660において、OS36からT632の接続開始命令に対する接続完了通知を取得すると、T662において、OS36からES138F内の各Characteristicの各UUIDを示す第2のリストを取得する。そして、アプリ38は、OS36を介して、当該第2のリスト内のUUID「eee1」とES138Fの最初のHandle「n28」と最後のHandle「n30」とを含むType_Req信号をプリンタ100に送信する。 At T660, the application 38 acquires a connection completion notification in response to the connection start command of T632 from the OS36, and then acquires from the OS36 a second list indicating each UUID of each Characteristic in the ES138F at T662. Then, the application 38 transmits to the printer 100 via the OS 36 a Type_Req signal including the UUID "eee1" in the second list and the first Handle "n28" and the last Handle "n30" of the ES138F.

本ケースでは、T662でType_Req信号がプリンタ100に送信される時点において、プリンタ100の状態がエラー状態(例えば紙詰まり)である。このため、アプリ38は、T662において、Type_Req信号をプリンタ100に送信すると、T664において、OS36を介して、プリンタ100からUUID「eee1」に対応するエラーURLを受信する。 In this case, when the Type_Req signal is sent to the printer 100 in T662, the printer 100 is in an error state (eg, paper jam). Therefore, when the application 38 transmits the Type_Req signal to the printer 100 at T662, it receives an error URL corresponding to the UUID "eee1" from the printer 100 via the OS36 at T664.

T664の後に実行されるT666~T670Bは、図10のT256~T260Bと同様である。即ち、T644で確立されたL2CAP Linkが切断される。 T666-T670B executed after T664 are the same as T256-T260B in FIG. That is, the L2CAP Link established at T644 is disconnected.

アプリ38は、T668において、OS36からWrite Request信号を取得すると、T672において、エラーURLを表示部12に表示する。これにより、ユーザは、表示済みのエラーURLを選択し、エラー状態(例えば紙詰まり)を解消するための方法が記載されているWebページを見ることができる。 When the application 38 acquires the Write Request signal from the OS 36 at T668, it displays the error URL on the display unit 12 at T672. This allows the user to select the displayed error URL and view a web page that describes how to resolve the error condition (eg, paper jam).

また、本ケースの構成によれば、プリンタ100は、機能画面内のエラー情報ボタンが選択される場合(T630)に、L2CAP Linkを確立した後にADV信号の送信を再開する(T647)。APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100がDiscoverable状態であることに起因して、SMPに従った認証通信が実行されず、エラーURLが端末10に送信される(T664)。第1実施例のSSID「ap01」及びパスワード「xxx」と比較して機密性が低いエラーURLを、SMPに従った認証通信を実行せずに、端末10に送信することができる。 Further, according to the configuration of this case, when the error information button in the function screen is selected (T630), the printer 100 resumes transmission of the ADV signal after establishing the L2CAP Link (T647). Because APer indicates "Readable without authentication when discoverable" and the printer 100 is in the Discoverable state, authentication communication according to SMP is not executed and an error URL is sent to the terminal 10 (T664). . The error URL, which is less confidential than the SSID "ap01" and password "xxx" of the first embodiment, can be sent to the terminal 10 without performing authentication communication according to SMP.

(対応関係)
プリンタ100、端末10、BTI/F116、無線LANI/F114が、それぞれ、「機能実行装置」、「端末装置」、「第1の無線インターフェース」、「第2の無線インターフェース」の一例である。AP接続を確立する機能又はWFD接続を確立する機能が、「第1の機能」の一例である。図9のT190の機能画面、当該機能画面内のAP接続ボタン又はWFD接続ボタンを選択する指示、機能情報FIが、それぞれ、「機能画面」、「第1の実行指示」、「画面表示情報」の一例である。印刷データが、「関係データ」の一例である。接続許可パラメータ「ADV_IND」、接続不許可パラメータ「ADV_NONCONN_IND」が、それぞれ、「許可情報」、「不許可情報」の一例である。Scan開始命令、接続開始命令が、それぞれ、「第1の命令」、「第2の命令」の一例である。図8のT134のL2CAPLinkが、「第1の無線接続」の一例である。エラーURLを送信する機能、機能画面内のエラー情報ボタンを選択する指示、図15のT662のType_Req信号が、それぞれ、「第2の機能」、「第2の実行指示」、「第2の機能実行情報」の一例である。図15のT644のL2CAPLinkが、「第5の無線接続(及び特定の無線接続)」の一例である。
(correspondence relationship)
The printer 100, the terminal 10, the BTI/F 116, and the wireless LAN I/F 114 are examples of the "function execution device,""terminaldevice,""first wireless interface," and "second wireless interface," respectively. A function of establishing an AP connection or a function of establishing a WFD connection is an example of the "first function". The function screen of T190 in FIG. 9, the instruction to select the AP connection button or the WFD connection button in the function screen, and the function information FI are respectively "function screen", "first execution instruction", and "screen display information". is an example. Print data is an example of "relational data." The connection permission parameter “ADV_IND” and the connection non-permission parameter “ADV_NONCONN_IND” are examples of “permission information” and “non-permission information”, respectively. The scan start command and connection start command are examples of the "first command" and the "second command", respectively. The L2CAPLink of T134 in FIG. 8 is an example of the "first wireless connection". The function to send an error URL, the instruction to select the error information button in the function screen, and the Type_Req signal of T662 in FIG. This is an example of "execution information". The L2CAPLink of T644 in FIG. 15 is an example of the “fifth wireless connection (and specific wireless connection)”.

図10~図12(AP接続の場合)についての対応関係は以下の通りである。PINコード、暗号化情報が、それぞれ、「特定の認証情報(及び第1(又は第2)のコード)」、「関係情報」の一例である。プリンタ100、端末10が、それぞれ、「一方の装置」、「他方の装置」の一例である。AP200が「外部装置」の一例である。図11のT334のL2CAP Link、図10のT234のL2CAPLinkが、それぞれ、「第2の無線接続」、「第3の無線接続」の一例である。再開フラグ「ON」である状態、再開フラグ「OFF」である状態が、それぞれ、「第1の状態」、「第2の状態」の一例である。図10のT252の再開フラグOFF指示が、「設定変更要求」の一例である。Type_Req信号が、「特定のRead要求」の一例である。図12のT410のSSID「ap01」とパスワード「xxx」が、「第1の機能実行情報」の一例である。 10 to 12 (for AP connection) are as follows. A PIN code and encrypted information are examples of "specific authentication information (and first (or second) code)" and "related information," respectively. The printer 100 and the terminal 10 are examples of the "one device" and the "other device", respectively. The AP 200 is an example of an "external device". The L2CAP Link of T334 in FIG. 11 and the L2CAP Link of T234 in FIG. 10 are examples of the "second wireless connection" and the "third wireless connection", respectively. The state in which the restart flag is "ON" and the state in which the restart flag is "OFF" are examples of the "first state" and the "second state", respectively. The restart flag OFF instruction at T252 in FIG. 10 is an example of a "setting change request." The Type_Req signal is an example of a "specific read request." The SSID “ap01” and password “xxx” of T410 in FIG. 12 are an example of “first function execution information”.

図13、図14(WFD接続の場合)についての対応関係は以下の通りである。公開鍵、PINコードが、それぞれ、「特定の認証情報」、「特定のコード」の一例である。端末10、プリンタ100が、それぞれ、「一方の装置」、「他方の装置」の一例である。端末10が「外部装置」の一例である。図13のT534のL2CAP Link、図14のT574のL2CAPLinkが、それぞれ、「第2の無線接続」、「第4の無線接続」の一例である。図14のT588の暗号化済みのWFD情報が、「第1の機能実行情報」の一例である。 13 and 14 (for WFD connection) are as follows. A public key and a PIN code are examples of "specific authentication information" and "specific code", respectively. The terminal 10 and the printer 100 are examples of the "one device" and the "other device", respectively. The terminal 10 is an example of an "external device". The L2CAP Link at T534 in FIG. 13 and the L2CAP Link at T574 in FIG. 14 are examples of the "second wireless connection" and the "fourth wireless connection", respectively. The encrypted WFD information of T588 in FIG. 14 is an example of "first function execution information".

図8のT134、図9のT184が、それぞれ、「第1の確立部」、「送信部」によって実現される処理の一例である。AP接続の場合において、図11のT334、図11のT362、図12のT410が、それぞれ、「第2の確立部」、「第1の通信実行部」、「第2の通信実行部」によって実現される処理の一例である。WFD接続の場合において、図13のT534、図13のT556、図14のT588が、それぞれ、「第2の確立部」、「第1の通信実行部」、「第2の通信実行部」によって実現される処理の一例である。図8のT112、図9のT184、図9のT190が、それぞれ、「第1の供給部」、「受信部」、「表示制御部」によって実現される処理の一例である。AP接続の場合において、図11のT312、図12のT410が、それぞれ、「第2の供給部」、「通信実行部」によって実現される処理の一例である。WFD接続の場合において、図13のT512、図14のT588が、それぞれ、「第2の供給部」、「通信実行部」によって実現される処理の一例である。 T134 in FIG. 8 and T184 in FIG. 9 are examples of processing implemented by the 'first establishing unit' and the 'transmitting unit', respectively. In the case of AP connection, T334 in FIG. 11, T362 in FIG. 11, and T410 in FIG. It is an example of the processing that is implemented. In the case of WFD connection, T534 in FIG. 13, T556 in FIG. 13, and T588 in FIG. It is an example of the processing that is implemented. T112 in FIG. 8, T184 in FIG. 9, and T190 in FIG. 9 are examples of processing implemented by the "first supply unit", the "reception unit", and the "display control unit", respectively. In the case of AP connection, T312 in FIG. 11 and T410 in FIG. 12 are examples of processing implemented by the "second supply unit" and the "communication execution unit", respectively. In the case of the WFD connection, T512 in FIG. 13 and T588 in FIG. 14 are examples of processing implemented by the "second supply unit" and the "communication execution unit", respectively.

(第2実施例)
(WFD接続の場合;図13、図14)
第2実施例は、第1実施例の変形例である。第2実施例は、WFD接続の場合の処理の一部が異なる点を除いて、第1実施例と同様である。本実施例では、アプリ38及びプリンタ100は、図13のT560~T564Bの処理と図14のT570~T580の処理を実行しない。即ち、プリンタ100は、T534で確立されたL2CAP Linkを切断することなく、当該Linkの確立が維持された状態で、WFD情報160を暗号化する(T568)。そして、プリンタ100は、T534のL2CAP Linkを利用して、暗号化済みのWFD情報を端末10に送信する(T588)。
(Second embodiment)
(For WFD connection; Fig. 13, Fig. 14)
The second embodiment is a modification of the first embodiment. The second embodiment is the same as the first embodiment, except that part of the processing in the case of WFD connection is different. In this embodiment, the application 38 and the printer 100 do not execute the processes T560 to T564B in FIG. 13 and the processes T570 to T580 in FIG. That is, the printer 100 encrypts the WFD information 160 while maintaining the establishment of the L2CAP Link established in T534 without disconnecting the L2CAP Link (T568). The printer 100 then uses the L2CAP Link of T534 to transmit the encrypted WFD information to the terminal 10 (T588).

本実施例では、プリンタ100のCPU132の処理能力が比較的高い状況を想定している。CPU132の処理能力が比較的高い場合、CPU132はL2CAP Linkの確立が維持された状態でWFD情報160を暗号化することができる。例えば、CPU132の処理能力が比較的低い場合、CPU132はL2CAP Linkの確立が維持された状態でWFD情報160を暗号化することができない。このような場合に、第1実施例のように、L2CAP Linkを切断した(図13のT564A参照)後にWFD情報160を暗号化する構成を採用するのが有効である。これに対して、本実施例では、CPU132の処理能力が比較的高いことを考慮して、L2CAP Linkを切断し再びL2CAP Linkを確立する処理(即ち図13のT560~図14のT580の処理)を省略し、不必要な処理が実行されることを抑制することができる。 In this embodiment, it is assumed that the CPU 132 of the printer 100 has a relatively high processing power. If the CPU 132 has relatively high processing power, the CPU 132 can encrypt the WFD information 160 while maintaining the establishment of the L2CAP Link. For example, if the processing power of the CPU 132 is relatively low, the CPU 132 cannot encrypt the WFD information 160 while maintaining the establishment of the L2CAP Link. In such a case, as in the first embodiment, it is effective to employ a configuration that encrypts the WFD information 160 after disconnecting the L2CAP Link (see T564A in FIG. 13). On the other hand, in this embodiment, considering that the processing power of the CPU 132 is relatively high, the process of disconnecting the L2CAP Link and reestablishing the L2CAP Link (that is, the process of T560 in FIG. 13 to T580 in FIG. 14). can be omitted to prevent unnecessary processing from being executed.

(第3実施例)
(AP接続の場合;図16、図17)
第3実施例は、AP接続の場合の処理の一部が異なる点を除いて、第1実施例と同様である。
(Third embodiment)
(For AP connection; Fig. 16, Fig. 17)
The third embodiment is the same as the first embodiment, except that part of the processing in the case of AP connection is different.

T700~T720は、図10のT200~T250(即ち2CAP Linkの確立、ADV信号の送信の再開、即ちPS群に対応する各Typ_Req信号の順次送信)と同様である。即ち、ADV信号の送信の再開により、プリンタ100はDiscoverable状態であるので、Error Response信号は受信されず、SMPに従った認証通信は実行されない。 T700 to T720 are the same as T200 to T250 in FIG. 10 (ie, establishment of 2CAP Link, resumption of ADV signal transmission, ie, sequential transmission of Typ_Req signals corresponding to PS groups). That is, since the printer 100 is in the Discoverable state by resuming the transmission of the ADV signal, the Error Response signal is not received and authentication communication according to SMP is not executed.

アプリ38は、T720において、OS36からT712の接続開始命令に対する接続完了通知を取得すると、T722において、OS36からAP138C内の各Characteristicの各UUIDを示す第2のリストを取得する。そして、アプリ38は、OS36を介して、当該第2のリスト内のUUID「bbb4」に対応するHandle「n13」とPermission変更指示とを含むWrite Request信号をプリンタ100に送信する。当該Permission変更指示は、AP138C内の「Readable without authentication」を示す各値を「Readable with authentication」を示す各値に変更するとともにAP138C内の「Writeable without authentication」を示す各値を「Writeable with authentication」を示す各値に変更するための指示である。具体的には、当該指示は、「No authentication required」を示す値を「Authentication required」を示す値に変更するための指示である。なお、変形例では、当該指示に従って、「No encryption required」を示す値が「Encryption required」を示す値に変更されてもよいし、「No authorization required」を示す値が「Authorization required」を示す値に変更されてもよい。ここで、「Readable with authentication」は、SMPに従った情報の暗号化を実行することを条件として、情報を読み出すことが可能であることを意味する。また、「Writeable with authentication」は、SMPに従った情報の暗号化を実行することを条件として、情報が書き込まれることが可能であることを意味する。なお、変形例では、AP138C内の各データの全てに限らず、例えば、AP138C内の各データ内のうちの少なくとも1個のデータ(例えばHandle「n10」に対応するデータ)内の「Readable without authentication」を示す各値のみが「Readable with authentication」を示す各値に変更されてもよい。 At T720, the application 38 obtains from the OS 36 a connection completion notification in response to the connection start instruction at T712, and at T722, obtains from the OS 36 a second list indicating each UUID of each Characteristic in AP138C. Then, the application 38 transmits to the printer 100 via the OS 36 a Write Request signal including Handle "n13" corresponding to the UUID "bbb4" in the second list and a Permission change instruction. The Permission change instruction changes each value indicating "Readable without authentication" in the AP 138C to each value indicating "Readable with authentication" and changes each value indicating "Writeable without authentication" in the AP 138C to "Writeable with authentication". This is an instruction for changing to each value that indicates . Specifically, the instruction is an instruction for changing a value indicating "No authentication required" to a value indicating "Authentication required." In a modified example, the value indicating "No encryption required" may be changed to a value indicating "Encryption required" according to the instruction, or the value indicating "No authorization required" may be changed to a value indicating "Authorization required" may be changed to Here, "Readable with authentication" means that information can be read on condition that information is encrypted according to SMP. "Writeable with authentication" means that information can be written on condition that information is encrypted according to SMP. Note that in the modified example, not only all the data in the AP 138C, but also at least one piece of data in the AP 138C (for example, data corresponding to Handle "n10") "Readable without authentication Only each value indicating "Readable with authentication" may be changed to each value indicating "Readable with authentication".

プリンタ100は、T722において、端末10からWrite Request信号を受信すると、Handle「n13」に対応するAPerが「Writeable without authentication」を示すことに起因して、Permission変更指示をHandle「n13」に対応するAValueに記憶する。そして、プリンタ100は、T724において、Write Response信号を端末10に送信する。 When the printer 100 receives the Write Request signal from the terminal 10 in T722, the APer corresponding to Handle "n13" indicates "Writeable without authentication", so the Permission change instruction corresponds to Handle "n13". Store in AValue. The printer 100 then transmits a Write Response signal to the terminal 10 at T724.

T726、T728は、図10のT256、T258と同様である。これにより、切断指示がHandle「n26」に対応するAValueに記憶される。 T726 and T728 are the same as T256 and T258 in FIG. As a result, the disconnection instruction is stored in the AValue corresponding to Handle "n26".

プリンタ100は、Permission変更指示及び切断指示がAValueに記憶されると、T730Aにおいて、記憶済みの切断指示に従って、T712の接続開始命令に応じて確立されたL2CAP Linkを切断し、T730Bにおいて、接続許可パラメータ「ADV_IND」を含むADV信号の送信を開始する。また、プリンタ100はT732において、記憶済みのPermission変更指示に従って、Handle「n11」、「n12」に対応するAPer内の「Readable without authentication」を示す各値を「Readable with authentication」を示す各値に変更するとともにHandle「n13」、「n14」に対応するAPer内の「Writeable without authentication」を示す各値を「Writeable with authentication」を示す各値に変更する。 When the Permission change instruction and the disconnection instruction are stored in AValue, the printer 100 disconnects the L2CAP Link established in response to the connection start instruction of T712 in accordance with the stored disconnection instruction in T730A, and permits connection in T730B. Start sending an ADV signal containing the parameter "ADV_IND". In T732, the printer 100 changes the values indicating "Readable without authentication" in APer corresponding to Handles "n11" and "n12" to the values indicating "Readable with authentication" in accordance with the stored Permission change instruction. Along with the change, each value indicating "Writeable without authentication" in APer corresponding to Handles "n13" and "n14" is changed to each value indicating "Writeable with authentication".

図17に示すように、アプリ38は、T728において、端末10からWrite Response信号を受信すると、T742において、接続開始命令をOS36に供給する。これにより、図11のT332~T336と同様の処理(即ち2CAP Linkの確立とADV信号の送信の停止)が実行される。 As shown in FIG. 17, when the application 38 receives the Write Response signal from the terminal 10 at T728, it supplies a connection start command to the OS 36 at T742. As a result, the same processing as T332 to T336 in FIG. 11 (that is, establishment of 2CAP Link and suspension of ADV signal transmission) is executed.

プリンタ100は、再開フラグ162が「ON」を示すので、T747において、ADV信号の送信を再開する。即ち、プリンタ100は、Discoverable状態に再び移行する。 Since the restart flag 162 indicates "ON", the printer 100 restarts transmission of the ADV signal at T747. That is, the printer 100 shifts to the discoverable state again.

また、OS36は、T712の接続開始命令に応じて確立されたL2CAP Linkを利用して、図8のT138~T178と同様の通信(即ち、Group_Req信号の送信と、UUID「0x2803」を含むType_Req信号の送信、GA138Aに対応するType_Req信号の送信、FS138B対応するType_Req信号の送信)を実行する。 In addition, the OS 36 uses the L2CAP Link established in response to the connection start command of T712 to perform communications similar to those of T138 to T178 in FIG. , Type_Req signal corresponding to GA138A, and Type_Req signal corresponding to FS138B).

アプリ38は、GA138AのAPerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100がDiscoverable状態であることに起因して、プリンタ100からデバイス名DNを受信する。また、アプリ38は、FS138BのAPerが「Readable without authentication」を示すことに起因して、プリンタ100から機能情報FIを受信する。 Application 38 receives the device name DN from printer 100 because APer of GA 138A indicates "Readable without authentication when discoverable" and printer 100 is in the Discoverable state. Also, the application 38 receives the function information FI from the printer 100 because APer of the FS 138B indicates "Readable without authentication".

OS36は、プリンタ100から機能情報FIを受信すると、T756Aにおいて、Handle「n1」の次に小さい値を有するHandle「n5」に対応するPSであるAC138Cについて、Type_Req信号をプリンタ100に送信する。当該信号は、UUID「0x2803」と、AC138Cの最初のHandle「n5」と、AC138Cの最後のHandle「n13」と、を含む。 Upon receiving the function information FI from the printer 100, the OS 36 transmits a Type_Req signal to the printer 100 in T756A for AC138C, which is the PS corresponding to Handle "n5" having the next smallest value after Handle "n1". The signal includes the UUID '0x2803', AC 138C's first Handle 'n5', and AC 138C's last Handle 'n13'.

プリンタ100は、T756Aにおいて、端末10からType_Req信号を受信すると、Type_Req信号に含まれる最初のHandle「n5」及び最後のHandle「n13」によって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「0x2803」に対応するHandle「n6」~「n9」を特定する。プリンタ100は、特定済みの各Handle「n6」~「n9」に対応するAPerが「Readable without authentication」を示すことに起因して、T756Bにおいて、特定済みの各Handle「n6」~「n9」と、特定済みの各Handle「n6」~「n9」に対応するAValue(プロパティ「Read」、Handle「n6」、及び、UUID「bbb1」)~AValue(プロパティ「Write」、Handle「n9」、及び、UUID「bbb4」)を端末10に送信する。 When the printer 100 receives the Type_Req signal from the terminal 10 in T756A, the printer 100 selects from among the data group contained within the range of Handles indicated by the first Handle "n5" and the last Handle "n13" included in the Type_Req signal, Identify Handles “n6” to “n9” corresponding to UUID “0x2803” included in the Type_Req signal. Since the APer corresponding to each of the specified Handles "n6" to "n9" indicates "Readable without authentication", the printer 100 prints each of the specified Handles "n6" to "n9" in T756B. , AValue (property 'Read', Handle 'n6', and UUID 'bbb1') to AValue (property 'Write', Handle 'n9', and UUID “bbb4”) is transmitted to the terminal 10.

OS36は、T756Bにおいて、プリンタ500から各Handleと各AValueを受信すると、T756Cにおいて、各AValueのうちの最も小さい値を有するHandle「n10」に対応するUUID「bbb1」を含むType_Req信号をプリンタ100に送信する。当該信号は、さらに、AC138Cの最初のHandle「n5」とAC138Cの最後のHandle「n13」とを含む。 Upon receiving each Handle and each AValue from the printer 500 at T756B, the OS 36 sends a Type_Req signal including UUID "bbb1" corresponding to Handle "n10" having the smallest value among AValues to the printer 100 at T756C. Send. The signal also includes AC138C's first Handle 'n5' and AC138C's last Handle 'n13'.

プリンタ500は、T756Cにおいて、端末10からType_Req信号を受信すると、当該信号に含まれる最初のHandle「n5」及び最後のHandle「n13」によって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「bbb1」に対応するHandle「n10」を特定する。ここで、特定済みのHandle「n10」に対応するAPerは、「Readable with authentication」を示す。現時点では、SMPに従った情報の暗号化を実行するためのKeyが生成されていない。このために、プリンタ100は、SMPに従った情報の暗号化を実行することができず、この結果、T758において、Error Response信号を端末10に送信する。 When the printer 500 receives the Type_Req signal from the terminal 10 in T756C, from among the data group contained within the range of Handles indicated by the first Handle "n5" and the last Handle "n13" contained in the signal, Identify the Handle "n10" corresponding to the UUID "bbb1" included in the Type_Req signal. Here, APer corresponding to the specified Handle "n10" indicates "Readable with authentication". At this time, no Key has been generated to perform encryption of information according to SMP. For this reason, the printer 100 cannot perform encryption of information according to SMP, and as a result, an Error Response signal is sent to the terminal 10 at T758.

T768~T782は、図11のT348~T362と同様である。これにより、後述するT790以降の処理において、OS36とプリンタ100との間でBT方式に従って通信される情報は、Keyによって暗号化される。 T768-T782 are the same as T348-T362 in FIG. As a result, information communicated between the OS 36 and the printer 100 according to the BT method is encrypted with the Key in the processing after T790, which will be described later.

T782の認証通信が完了すると、OS36は、T790において、T756Cと同様のType_Req信号をプリンタ100に再び送信する。ただし、上述したように、当該Type_Req信号内の情報は、Keyによって暗号化されている。 When the authentication communication of T782 is completed, the OS36 again transmits the Type_Req signal similar to that of T756C to the printer 100 in T790. However, as described above, the information in the Type_Req signal is encrypted with the Key.

T790で端末10からType_Req信号を受信した時点において、Keyが生成されており、SMPに従った情報の暗号化を実行可能である。このため、プリンタ100は、APerが「Readable without authentication」を示すことに起因して、T792において、Keyを利用してAP状態情報(ここでは「Enable」)を暗号化し、暗号化済みのAP状態情報を端末10に送信する。T794は、図11のT380と同様である。 When the Type_Req signal is received from the terminal 10 at T790, the Key has been generated, and information can be encrypted according to SMP. Therefore, due to APer indicating "Readable without authentication", the printer 100 uses the Key to encrypt the AP status information (here, "Enable") in T792, and encrypts the encrypted AP status. Send the information to the terminal 10 . T794 is similar to T380 in FIG.

T794においてOS36から接続完了通知が取得されると、図12のT402~T454と同様の処理が実行される。これにより、AP接続の確立と印刷が実行される。 When the connection completion notification is obtained from the OS 36 in T794, the same processing as in T402 to T454 in FIG. 12 is executed. As a result, AP connection is established and printing is executed.

本ケースの構成によれば、プリンタ100は、機能画面内のAP接続ボタンが選択される場合(図16のT700)に、AC138CのAPerを「Readable without authentication」から「Readable with authentication」に変更する(T732)。これにより、プリンタ100は、AC138CのAPerが「Readable with authentication」を示すことに起因して、認証通信を実行する(図17のT782)。この結果、端末10は、第1実施例と同様に、AP200のSSID「ap01」及びパスワード「xxx」をKeyによって暗号化してプリンタ100に送信することができる。このために、SSID「ap01」及びパスワード「xxx」が第三者によって取得されることを抑制することができる。 According to the configuration of this case, when the AP connection button in the function screen is selected (T700 in FIG. 16), the printer 100 changes APer of AC138C from "Readable without authentication" to "Readable with authentication". (T732). As a result, the printer 100 executes authentication communication because APer of AC138C indicates "Readable with authentication" (T782 in FIG. 17). As a result, the terminal 10 can encrypt the SSID "ap01" and the password "xxx" of the AP 200 with the Key and send them to the printer 100, as in the first embodiment. Therefore, it is possible to prevent the SSID "ap01" and the password "xxx" from being acquired by a third party.

(対応関係)
再開フラグ「ON」かつAPerが「Readable without authentication」を示す状態、再開フラグ「ON」かつAPerが「Readable with authentication」を示す状態が、それぞれ、「第1の状態」、「第2の状態」の一例である。「Readable without authentication」、「Readable with authentication」が、それぞれ、「第1の設定情報」、「第2の設定情報」の一例である。図16のT722のPermission変更指示が、「設定変更要求」の一例である。図17で引用する図11のT334のL2CAP Link、図16で引用する図10のT234が、それぞれ、「第2の無線接続」、「第3の無線接続」の一例である。図17のT782が、「第1の通信実行部」によって実現される処理の一例である。図17のT742が、「第2の供給部」によって実現される処理の一例である。
(correspondence relationship)
A state in which the restart flag is "ON" and APer indicates "Readable without authentication" and a state in which the restart flag is "ON" and APer indicates "Readable with authentication" are respectively a "first state" and a "second state." is an example. "Readable without authentication" and "Readable with authentication" are examples of "first setting information" and "second setting information", respectively. The permission change instruction at T722 in FIG. 16 is an example of a "setting change request." L2CAP Link of T334 in FIG. 11 quoted in FIG. 17 and T234 in FIG. 10 quoted in FIG. 16 are examples of "second wireless connection" and "third wireless connection", respectively. T782 in FIG. 17 is an example of processing implemented by the "first communication executing unit". T742 in FIG. 17 is an example of processing realized by the "second supply unit".

(第4実施例)
(AP接続の場合;図16、図18)
第4実施例は、第3実施例の変形例である。第4実施例は、AP接続の場合の処理の一部が異なる点を除いて、第3実施例と同様である。
(Fourth embodiment)
(In the case of AP connection; Fig. 16, Fig. 18)
The fourth embodiment is a modification of the third embodiment. The fourth embodiment is the same as the third embodiment, except that part of the processing in the case of AP connection is different.

図16に示すように、本実施例では、アプリ38及びプリンタ100は、図16のT726~T739Bの処理を実行しない。即ち、プリンタ100は、T712の接続開始命令に応じて確立されたL2CAP Linkを切断することなく、当該Linkの確立が維持された状態で、AC138CのAPer「Readable with authentication(又はWriteable with authentication)」を変更する(T732)。 As shown in FIG. 16, in this embodiment, the application 38 and the printer 100 do not execute the processing of T726-T739B in FIG. That is, the printer 100 does not disconnect the L2CAP Link established in response to the connection start command of T712, but maintains the establishment of the Link, and performs APer "Readable with authentication (or Writeable with authentication)" of AC138C. is changed (T732).

アプリ38は、T728において、Write Response信号を受信すると、図18に示すように、T800の処理を実行する。T800は、Keyを利用した暗号化が実行されない点を除いて、図12のT402と同様である。 When the application 38 receives the Write Response signal at T728, it executes the process at T800 as shown in FIG. T800 is the same as T402 in FIG. 12 except that encryption using a key is not performed.

プリンタ100は、T800において、端末10からType_Req信号を受信すると、当該信号に含まれる最初のHandle「n5」及び最後のHandle「n13」によって示されるHandleの範囲内に含まれるデータ群の中から、Type_Req信号に含まれるUUID「bbb1」に対応するHandle「n10」を特定する。ここで、特定済みのHandle「n10」に対応するAPerは、「Readable with authentication」を示す。現時点では、SMPに従った情報の暗号化を実行するためのKeyが生成されていない。このために、プリンタ100は、SMPに従った情報の暗号化を実行することができず、この結果、T802において、Error Response信号を端末10に送信する。 When the printer 100 receives the Type_Req signal from the terminal 10 at T800, from among the data group contained within the range of Handles indicated by the first Handle "n5" and the last Handle "n13" contained in the signal, Identify the Handle "n10" corresponding to the UUID "bbb1" included in the Type_Req signal. Here, APer corresponding to the specified Handle "n10" indicates "Readable with authentication". At this time, no Key has been generated to perform encryption of information according to SMP. For this reason, the printer 100 cannot encrypt information according to SMP, and as a result, in T802, an Error Response signal is sent to the terminal 10. FIG.

T806~T882は、図17のT768~T782と同様である。T882の認証通信が完了すると、OS36は、T890において、T800と同様のType_Req信号をプリンタ100に再び送信する。ただし、上述したように、当該Type_Req信号内の情報は、Keyによって暗号化されている。この結果、OS36は、T892において、プリンタ100からKeyによって暗号化されたAP状態情報(ここでは「Enable」)を受信し、受信済みの情報をアプリ38に供給する。 T806-T882 are the same as T768-T782 in FIG. When the authentication communication of T882 is completed, the OS 36 again transmits the Type_Req signal similar to T800 to the printer 100 in T890. However, as described above, the information in the Type_Req signal is encrypted with the Key. As a result, the OS 36 receives the AP status information (here, “Enable”) encrypted by the Key from the printer 100 and supplies the received information to the application 38 at T892.

T892においてOS36から暗号化済みのAP状態情報が取得されると、図12のT406~T454と同様の処理が実行される。これにより、AP接続の確立と印刷が実行される。 When the encrypted AP status information is acquired from the OS 36 at T892, the same processing as T406 to T454 in FIG. 12 is executed. As a result, AP connection is established and printing is executed.

本実施例では、プリンタ100のCPU132の処理能力が比較的高い状況を想定している。CPU132の処理能力が比較的高い場合、CPU132はL2CAP Linkの確立が維持された状態でAPer内の値を変更することができる。例えば、CPU132の処理能力が比較的低い場合、CPU132はL2CAP Linkの確立が維持された状態でAPer内の値を変更することができない。このような場合に、第3実施例のように、L2CAP Linkを切断した後にAPer内の値を変更する構成を採用するのが有効である。これに対して、本実施例では、CPU132の処理能力が比較的高いことを考慮して、L2CAP Linkを切断し再びL2CAP Linkを確立する処理を省略し、不必要な処理を実行させることを抑制することができる。 In this embodiment, it is assumed that the CPU 132 of the printer 100 has a relatively high processing power. If the CPU 132 has relatively high processing power, the CPU 132 can change the value in APer while maintaining the establishment of the L2CAP Link. For example, if the CPU 132 has relatively low processing power, the CPU 132 cannot change the value in APer while maintaining the establishment of the L2CAP Link. In such a case, as in the third embodiment, it is effective to employ a configuration in which the value in APer is changed after disconnecting the L2CAP Link. On the other hand, in the present embodiment, considering that the processing power of the CPU 132 is relatively high, the process of disconnecting the L2CAP Link and reestablishing the L2CAP Link is omitted, thereby suppressing execution of unnecessary processes. can do.

(対応関係)
図16で引用する図10のT234のL2CAP Linkが、「第2の無線接続」の一例である。図18のT882が、「第1の通信実行部」によって実現される処理の一例である。図16のT712が、「第2の供給部」によって実現される処理の一例である。
(correspondence relationship)
The L2CAP Link of T234 in FIG. 10 quoted in FIG. 16 is an example of the "second wireless connection". T882 in FIG. 18 is an example of processing implemented by the "first communication executing unit". T712 in FIG. 16 is an example of processing implemented by the "second supply unit".

(第5実施例)
第5実施例は、BLE通信を利用した印刷が実行可能な点を除いて第1実施例と同様である。図9、図10に示すように、本実施例では、機能画面にBLE接続ボタンが含まれる。BLE接続ボタンは、BLEのKeyによる暗号化を実行して、印刷データをプリンタ100に送信する指示を受け付けるボタンである。また、図示は省略するが、本実施例のPS群は、各PS138A~138Fに加えて、端末10から印刷データを受信するためのPS(以下、「PPS」と記載)を含む。PPSは、印刷データの受信(即ち書き込み)を定義するCharacteristicを含む。
(Fifth embodiment)
The fifth embodiment is the same as the first embodiment except that printing using BLE communication can be executed. As shown in FIGS. 9 and 10, in this embodiment, the function screen includes a BLE connection button. The BLE connection button is a button for accepting an instruction to execute encryption using a BLE key and transmit print data to the printer 100 . Also, although illustration is omitted, the PS group of this embodiment includes a PS for receiving print data from the terminal 10 (hereinafter referred to as "PPS") in addition to the PSs 138A to 138F. The PPS includes Characteristics that define the reception (ie, writing) of print data.

(印刷の場合;図10、図11)
本ケースでは、プリンタ100が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望む印刷の機能が存在する。この場合、ユーザは、T200において、機能画面内のBLE接続ボタンを選択する。
(For printing; Figs. 10 and 11)
In this case, the printing function desired by the user exists among a plurality of functions executable by the printer 100 (that is, printing function, AP connection, and WFD connection). In this case, the user selects the BLE connection button in the function screen at T200.

本ケースでは、アプリ38は、T200において、BLE接続ボタンの選択を受け付ける。これにより、第1実施例と同様に、T212~T262の処理及び図11のT312~T380の処理が実行される。 In this case, the application 38 accepts selection of the BLE connection button at T200. As a result, the processes T212 to T262 and the processes T312 to T380 in FIG. 11 are executed in the same manner as in the first embodiment.

アプリ38は、T380において、OS36から接続完了通知を取得すると、T390において、印刷画面を表示部12に表示する。そして、アプリ38は、印刷画面において、ユーザから印刷操作を受け付ける。 When the application 38 acquires the connection completion notification from the OS 36 at T380, the print screen is displayed on the display unit 12 at T390. Then, the application 38 receives a print operation from the user on the print screen.

T390では、アプリ38は、OS36からPPS内の第2のリストを取得し、OS36を介して、当該第2のリスト内のUUIDに対応するHandleと印刷データとを含むWrite Request信号をプリンタ100に送信する。ここで、当該信号内の印刷データは、Keyによって暗号化されている。 At T390, the application 38 acquires the second list in the PPS from the OS 36, and sends a Write Request signal including the Handle corresponding to the UUID in the second list and the print data to the printer 100 via the OS 36. Send. Here, the print data in the signal is encrypted with the Key.

プリンタ100は、T392において、端末10からWrite Request信号を受信すると、T394において、Write Request信号内の情報を復号して、印刷データを取得する。そして、プリンタ100は、印刷データ内の印刷設定に従って、印刷データ内の画像情報に対応する画像の印刷を実行する。 Upon receiving the Write Request signal from the terminal 10 at T392, the printer 100 decodes the information in the Write Request signal to acquire print data at T394. The printer 100 then prints an image corresponding to the image information in the print data according to the print settings in the print data.

本ケースによれば、端末10は、印刷データをKeyによって暗号化してプリンタ100に送信することができる(T392)。このために、印刷データ内の情報が第三者によって取得されることを抑制することができる。 According to this case, the terminal 10 can encrypt the print data with the Key and send it to the printer 100 (T392). Therefore, it is possible to prevent the information in the print data from being acquired by a third party.

(対応関係)
印刷機能、機能画面内のBLE接続ボタンを選択する指示、T392の印刷データが、それぞれ、「第1の機能」、「第1の実行指示」、「第1の機能実行情報」の一例である。
(correspondence relationship)
The print function, the instruction to select the BLE connection button in the function screen, and the print data in T392 are examples of the "first function," the "first execution instruction," and the "first function execution information," respectively. .

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。 Although specific examples of the present invention have been described in detail above, 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)「機能実行装置」は、プリンタ100でなくてもよく、例えば、スキャナ、FAX装置、多機能機であってもよい。例えば、「機能実行装置」がスキャナである場合、スキャナは、図10のT200において、機能画面内のBLE接続ボタンが選択される場合に、図11のT392において、端末10からスキャン要求を受信してもよい。そして、スキャナは、T394において、スキャン要求内のスキャン設定に従ってスキャンを実行してスキャンデータを生成し、生成済みのスキャンデータをKeyで暗号化して、端末10に送信してもよい。本変形例では、スキャンデータを送信する機能、スキャンデータが、それぞれ、「第1の機能」、「第1の機能実行情報」の一例である。 (Modification 1) The "function execution device" may not be the printer 100, but may be, for example, a scanner, a FAX device, or a multi-function device. For example, if the “function execution device” is a scanner, the scanner receives a scan request from the terminal 10 at T392 in FIG. 11 when the BLE connection button in the function screen is selected at T200 in FIG. may Then, in T394, the scanner may perform scanning according to the scan settings in the scan request to generate scan data, encrypt the generated scan data with the Key, and transmit the encrypted data to the terminal 10. FIG. In this modified example, the function of transmitting scan data and the scan data are examples of the "first function" and the "first function execution information", respectively.

(変形例2)「端末装置」は、端末10でなくてもよく、例えば、デスクトップPC等の据え置き型の端末装置であってもよい。 (Modification 2) The "terminal device" may not be the terminal 10, but may be, for example, a stationary terminal device such as a desktop PC.

(変形例3)「第1の無線インターフェース」は、BTI/Fでなくてもよく、BT方式以外の通信方式(例えば、Zigbee(登録商標)方式、Wi-Fi方式)に従った無線通信を実行するためのI/Fであってもよい。例えば、「第1の無線インターフェース」がWi-Fi方式に従った無線通信を実行するためのI/Fである場合、WPS(Wi-Fi Protected Setupの略)方式に従ったPINコードが、「特定の認証情報」の一例である。 (Modification 3) The “first wireless interface” does not have to be the BTI/F, and performs wireless communication according to a communication method other than the BT method (eg, Zigbee (registered trademark) method, Wi-Fi method). It may be an I/F for execution. For example, if the "first wireless interface" is an I/F for performing wireless communication according to the Wi-Fi method, the PIN code according to the WPS (abbreviation of Wi-Fi Protected Setup) method is " This is an example of "specific authentication information".

(変形例4)上記の各実施例では、端末10は、プリンタ100から機能情報FIを受信し(図9のT184)、機能情報FIによって示される文字情報を含む機能画面を表示する(T190)。これに代えて、端末10は、プリンタ100から特定情報(例えばモデル名)を受信し、受信済みの特定情報を利用して、端末10に記憶されている複数個の機能情報の中からプリンタ100に対応する機能情報FIを特定してもよい。そして、端末10は、特定済みの機能情報FIによって示される文字情報を含む機能画面を表示してもよい。本変形例では、特定情報が、「画面表示情報」の一例である。 (Modification 4) In each of the above embodiments, the terminal 10 receives the function information FI from the printer 100 (T184 in FIG. 9), and displays the function screen containing the character information indicated by the function information FI (T190). . Alternatively, the terminal 10 receives specific information (for example, model name) from the printer 100, and uses the received specific information to select the printer 100 from among the plurality of pieces of function information stored in the terminal 10. may be specified. Then, the terminal 10 may display a function screen including character information indicated by the specified function information FI. In this modified example, the specific information is an example of "screen display information".

(変形例5)上記の第1実施例では、プリンタ100は、PINコード「1234」を表示し(図11のT352)、端末10は、PINコード「1234」の入力を受け付ける(T354)。これに代えて、プリンタ100は、PINコード「1234」をコード化したコード画像(例えば、バーコード、QRコード(登録商標))を表示し、端末10は、当該コード画像を復号して、PINコード「1234」を取得してもよい。また、端末10は、NFC(Near field communicationの略)通信等を利用して、プリンタ100のICタグからPINコード「1234」を取得してもよい。 (Modification 5) In the first embodiment described above, the printer 100 displays the PIN code "1234" (T352 in FIG. 11), and the terminal 10 accepts input of the PIN code "1234" (T354). Instead, the printer 100 displays a code image (e.g., bar code, QR code (registered trademark)) in which the PIN code "1234" is coded, and the terminal 10 decodes the code image to generate the PIN You may get the code "1234". Also, the terminal 10 may acquire the PIN code “1234” from the IC tag of the printer 100 using NFC (Near field communication) communication or the like.

(変形例6)上記の第1実施例では、プリンタ100がPINコード「1234」を準備する(図11のT352)。これに代えて、端末10がPINコード「1234」を準備し、当該PINコード「1234」がプリンタ100に入力されてもよい。一般的に言えば、「特定の認証情報」及び「第1のコード」は、機能実行装置及び前記端末装置のうちの一方の装置によって準備されればよい。 (Modification 6) In the above first embodiment, the printer 100 prepares the PIN code "1234" (T352 in FIG. 11). Alternatively, the terminal 10 may prepare the PIN code “1234” and the PIN code “1234” may be input to the printer 100 . Generally speaking, the 'specific authentication information' and the 'first code' may be prepared by one of the function executing device and the terminal device.

(変形例7)上記の第1実施例では、プリンタ100がG/Oとして動作し、端末10が公開鍵を準備する(図13のT556)。これに代えて、端末10がG/Oとして動作し、プリンタ100が公開鍵を準備してもよい。そして、端末10は、プリンタ100から受信した公開鍵を利用して、端末10に記憶されているWFD情報を暗号化してもよい。一般的に言えば、「特定の認証情報」及び「公開鍵」は、機能実行装置及び前記端末装置のうちの一方の装置によって準備されればよい。 (Modification 7) In the first embodiment described above, the printer 100 operates as the G/O, and the terminal 10 prepares the public key (T556 in FIG. 13). Alternatively, the terminal 10 may act as the G/O and the printer 100 may prepare the public key. The terminal 10 may then use the public key received from the printer 100 to encrypt the WFD information stored in the terminal 10 . Generally speaking, the 'specific authentication information' and the 'public key' may be prepared by one of the function execution device and the terminal device.

(変形例8)「特定のRead要求」は、Type_Req信号でなくてもよく、ATTによって定義される他の信号(例えば、Read Request信号、Read Blob Request信号、Read Multiple Request信号)であってもよい。 (Modification 8) A "specific Read request" may not be a Type_Req signal, but may be another signal defined by ATT (eg, Read Request signal, Read Blob Request signal, Read Multiple Request signal). good.

(変形例9)上記の各実施例では、アプリ38は、図9のT186等において、Write Request信号をプリンタ100に送信する。これに代えて、アプリ38は、ATTのよって定義される他の信号(例えば、Write Command信号、Sighed Write Command信号)をプリンタ100に送信してもよい。 (Modification 9) In each of the embodiments described above, the application 38 transmits the Write Request signal to the printer 100 at T186 or the like in FIG. Alternatively, app 38 may send other signals defined by the ATT (eg, Write Command signal, Sighed Write Command signal) to printer 100 .

(変形例10)上記の第1実施例では、プリンタ100は、機能画面内のエラー情報ボタンが選択される場合(図15のT630)に、SMPに従った情報の暗号化を実行することなく、エラーURLを端末10に送信する(T664)。これに代えて、例えば、機能画面内に印刷ボタンが含まれており、プリンタ100は、機能画面内の印刷ボタンが選択される場合に、SMPに従った情報の暗号化を実行することなく、端末10から印刷データを受信してもよい。本変形例では、印刷機能、印刷データが、「第2の機能」、「第2の機能実行情報」の一例である。 (Modification 10) In the above-described first embodiment, when the error information button in the function screen is selected (T630 in FIG. 15), the printer 100 does not encrypt information according to SMP. , the error URL is transmitted to the terminal 10 (T664). Alternatively, for example, a print button is included in the function screen, and when the print button in the function screen is selected, the printer 100 does not encrypt information according to SMP. Print data may be received from the terminal 10 . In this modified example, the print function and print data are examples of the "second function" and the "second function execution information".

(変形例11)上記の第1実施例では、端末10は、エラーURLを表示する(図15のT672)。これに代えて、端末10は、エラー状態を示すメッセージを表示してもよい。本変形例では、当該メッセージが、「エラー情報」の一例である。また、端末10は、プリンタ100から特定情報(例えばエラーの種類を示す番号)を受信し、受信済みの特定情報を利用して、端末10に記憶されている複数個のエラーURLの中からプリンタ100の現在のエラー状態に対応するエラーURLを特定してもよい。そして、端末10は、特定済みエラーURLを表示してもよい。本変形例では、特定情報が、「エラー表示情報」の一例である。 (Modification 11) In the first embodiment described above, the terminal 10 displays the error URL (T672 in FIG. 15). Alternatively, terminal 10 may display a message indicating an error condition. In this modified example, the message is an example of "error information". In addition, the terminal 10 receives specific information (for example, a number indicating the type of error) from the printer 100, and uses the received specific information to select the printer error URLs from among the plurality of error URLs stored in the terminal 10. Error URLs corresponding to the 100 current error states may be identified. The terminal 10 may then display the identified error URL. In this modified example, the specific information is an example of "error display information".

(変形例12)上記の第4実施例では、プリンタ100は、端末10からPermission変更指示を受信し(図16のT722)、APer内の値を変更する(T732)。これに代えて、プリンタ100は、端末10からADV信号の送信を停止するための停止指示を受信し、受信済みの停止指示に従って、ADV信号の送信を停止してもよい。そして、プリンタ100は、図18のT800に代えて、端末10からUUID「0x2A00」を含むType_Req信号を受信してもよい。これにより、APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100が非Discoverable状態であることに起因して、認証通信が実行されてもよい。本変形例では、停止指示、Discoverable状態、非Discoverable状態が、それぞれ、「設定変更要求」、「第1の状態」、「第2の状態」の一例である。 (Modification 12) In the above fourth embodiment, the printer 100 receives the permission change instruction from the terminal 10 (T722 in FIG. 16) and changes the value in APer (T732). Alternatively, the printer 100 may receive a stop instruction for stopping transmission of the ADV signal from the terminal 10, and stop transmission of the ADV signal according to the received stop instruction. Then, the printer 100 may receive a Type_Req signal including the UUID "0x2A00" from the terminal 10 instead of T800 in FIG. As a result, APer indicates "Readable without authentication when discoverable" and the printer 100 is in the non-discoverable state, so authentication communication may be executed. In this modification, the stop instruction, the discoverable state, and the non-discoverable state are examples of the "setting change request," the "first state," and the "second state," respectively.

(変形例13)上記の第1実施例では、OS36は、第1種のPSに対するType_Req信号の送信(例えば図8のT142A)と第2種のPSに対するType_Req信号の送信(例えば図8のT176A)を実行する。これに代えて、OS36は、第1種のPSに対するType_Req信号の送信のみを実行し、第2種のPSに対するType_Req信号の送信を実行しなくてもよい。 (Modification 13) In the first embodiment described above, the OS 36 transmits a Type_Req signal to the first type PS (for example, T142A in FIG. 8) and a Type_Req signal to the second type PS (for example, T176A in FIG. 8). ). Alternatively, the OS 36 may only transmit the Type_Req signal to the first type PS and not transmit the Type_Req signal to the second type PS.

(変形例14)図12のT450~T454の処理は実行されなくてもよい。本変形例では、「関係データ」の通信を実行しなくてもよい。 (Modification 14) The processing of T450 to T454 in FIG. 12 may not be executed. In this modified example, communication of "relational data" may not be executed.

(変形例15)上記の第3、第4実施例では、プリンタ100は、AP138C内のAPer内の「Readable(or Writeable) without authentication」を示す各値を「Readable(or Writeable) with authentication」を示す各値に変更する。これに代えて、プリンタ100は、第2種のPS内のAPer内の「Readable(or Writeable) without authentication」を示す各値の全てを「Readable(or Writeable) with authentication」を示す各値に変更してもよい。 (Modification 15) In the above-described third and fourth embodiments, the printer 100 sets each value indicating "Readable (or Writeable) without authentication" in the APer in the AP 138C to "Readable (or Writeable) with authentication". Change to each value shown. Instead, the printer 100 changes all the values indicating "Readable (or Writeable) without authentication" in the APer in the second type PS to the values indicating "Readable (or Writeable) with authentication". You may

(変形例16)OS36は、例えばAndroid(登録商標)であってもよい。この場合、図8のT138、T142A、T142C、T176A、T176C、図10のT242C、図11のT342C、T372、図15のT652C、図17のT756A、T756C、T790等は実行されない。このため、例えば上記の第4実施例において、T137の処理(図16で引用する図8のT137~T178も同様)は実行されなくてもよい。即ち、接続開始命令の取得に応じて、OS36がPS群の情報の自動取得を実行しないため、ADV信号の送信が再開されなくてもよい。本変形例では、FS138BのAPerが「Readable without authentication」を示すことにより、例えば、図9のT182でType_Req信号を受信しても、Error Response信号が送信されず、機能画面を表示する前に認証通信が実行されない。そして、図16のT732によってAC138CのAPerが「Readable with authentication」に変更されることに起因して、認証通信が実行される(図18のT802~T880)。本変形例では、FS138BのAPerが「Readable without authentication」を示すこと、AC138CのAPerが「Readable with authentication」を示すことが、それぞれ、「第1の状態」、「第2の状態」の一例である。また、更なる変形例として、FS138BのHandle「n1」に対応するAPerは「Readable without authentication」で不変であり、AC138CのHandle「n10」に対応するAPerが「Readable with authentication」で不変であってもよい。そして、図16のT722、T724、T732の処理が実行されなくてもよい。本変形例では、「設定変更要求」を省略可能である。
(Modification 16) The OS 36 may be Android (registered trademark), for example. In this case, T138, T142A, T142C, T176A, T176C of FIG. 8, T242C of FIG. 10, T342C, T372 of FIG. 11, T652C of FIG. 15, T756A, T756C, T790 of FIG. 17, etc. are not executed. Therefore, in the fourth embodiment, for example, the process of T137 (the same applies to T137 to T178 in FIG. 8 referred to in FIG. 16) may not be executed. That is, since the OS 36 does not automatically acquire the PS group information in response to acquisition of the connection start command, transmission of the ADV signal does not have to be restarted. In this modification, since APer of FS138B indicates "Readable without authentication", for example, even if the Type_Req signal is received at T182 in FIG. No communication is performed. Then, authentication communication is executed (T802 to T880 in FIG. 18) due to APer of AC 138C being changed to "Readable with authentication" by T732 in FIG. In this modification, the APer of the FS 138B indicating "Readable without authentication" and the APer of the AC 138C indicating "Readable with authentication" are examples of the "first state" and the "second state", respectively. be. As a further modification, the APer corresponding to Handle "n1" of FS138B is "Readable without authentication" and unchanged, and the APer corresponding to Handle "n10" of AC138C is "Readable with authentication" and unchanged. good too. Then, the processes of T722, T724, and T732 in FIG. 16 may not be executed. In this modified example, the "setting change request" can be omitted.

(変形例17)図8のT137では、プリンタ100は、接続不許可パラメータ「ADV_NONCONN_IND」を含むADV信号を送信する。これに代えて、プリンタ100は、接続許可パラメータ「ADV_IND」を含むADV信号を送信してもよい。本変形例では、「開始部」を省略可能である。 (Modification 17) At T137 in FIG. 8, the printer 100 transmits an ADV signal including a connection disapproval parameter "ADV_NONCONN_IND". Alternatively, the printer 100 may send an ADV signal containing the connection permission parameter "ADV_IND". In this modified example, the "start part" can be omitted.

(変形例18)上記の第1、第2実施例では、OS36はiOSであり、WFD接続ボタンが選択された後に、ADV信号の送信が再開されることによって(図13のT537又は図14のT572)、認証通信が実行されない。これに代えて、OS36が、例えばAndroid(登録商標)の場合には、接続開始命令の取得に応じて、OS36がPS群の情報の自動取得を実行しないため、ADV信号の送信の再開(即ち図13のT537又は図14のT572の処理)が実行されない。この場合、WC138CのAPerが「Readable(or Writeable) without authentication」を示すことに起因して、認証通信が実行されない。本変形例では、「特定のコードを利用した前記通信を実行することなく」は、「Readable(or Writeable) without authentication」を示すAPerによって実現されている。 (Modification 18) In the above first and second embodiments, the OS 36 is iOS, and after the WFD connection button is selected, transmission of the ADV signal is restarted (T537 in FIG. 13 or T572), authentication communication is not performed. Alternatively, if the OS 36 is, for example, Android (registered trademark), the OS 36 does not automatically acquire the PS group information in response to acquisition of the connection start command, so transmission of the ADV signal is resumed (that is, 13 or T572 in FIG. 14) is not executed. In this case, authentication communication is not executed because APer of WC 138C indicates "Readable (or Writeable) without authentication". In this modified example, "without executing the communication using a specific code" is realized by APer indicating "Readable (or Writeable) without authentication".

(変形例19)上記の各実施例では、プリンタ100及び端末10は、AP接続の確立とWFD接続の確立の双方を実行可能である。これに代えて、プリンタ100及び端末10は、AP接続の確立とWFD接続の確立のうちのいずれか一方を実行可能でもよい。 (Modification 19) In each of the embodiments described above, the printer 100 and the terminal 10 can establish both AP connection and WFD connection. Alternatively, the printer 100 and terminal 10 may be capable of either establishing an AP connection or establishing a WFD connection.

(変形例20)図15の処理は、実行されなくてもよい。本変形例では、「第5の確立部」、「第3の通信実行部」を省略可能である。 (Modification 20) The process of FIG. 15 may not be executed. In this modified example, the “fifth establishment unit” and the “third communication execution unit” can be omitted.

(変形例21)上記の第1実施例では、プリンタ100は、認証通信を実行するために、再開フラグ162を「ON」から「OFF」に変更し(図10のT262)、ADV信号の送信を停止した後に、ADV信号の送信を再開しない(図11のT336)。これに代えて、プリンタ100は、再開フラグ162を「ON」に維持し、ADV信号の送信を停止した後に、Discoverable状態であることに関する所定の値を含まないADV信号の送信を開始してもよい。この場合でも、プリンタ100の状態は、非Discoverable状態となり、その結果、認証通信が実行される。本変形例では、上記の所定の値を含まないADV信号の送信を実行している状態が、「第2の状態」の一例である。 (Modification 21) In the first embodiment described above, the printer 100 changes the restart flag 162 from "ON" to "OFF" (T262 in FIG. 10) in order to perform authentication communication, and transmits the ADV signal. after stopping ADV signal transmission (T336 in FIG. 11). Alternatively, the printer 100 may keep the restart flag 162 "ON", stop sending the ADV signal, and then start sending an ADV signal that does not contain a predetermined value related to being in the Discoverable state. good. Even in this case, the state of the printer 100 becomes the non-discoverable state, and as a result, authentication communication is executed. In this modified example, a state in which an ADV signal that does not contain the predetermined value is being transmitted is an example of the "second state."

(変形例22)上記の各実施例では、プリンタ100のCPU132がプログラム136(即ちソフトウェア)を実行すること及び端末10のCPU32がプログラム36、38を実行することによって、図7~図18の各処理が実現される。これに代えて、いずれかの処理は、論理回路等のハードウェアによって実現されてもよい。
以下に、本明細書で開示する技術の特徴を列挙する。
(項目1)
機能実行装置であって、
第1の無線インターフェースと、
前記第1の無線インターフェースを介して、端末装置との第1の無線接続を確立する第1の確立部と、
前記第1の無線インターフェースを介して、前記機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した通信を実行することなく、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を前記端末装置に送信する送信部と、
前記機能画面が前記端末装置に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第2の無線接続を確立する第2の確立部と、
前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を前記端末装置と実行する第1の通信実行部と、
前記特定の認証情報を利用した前記通信が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための第1の機能実行情報の通信を前記端末装置と実行する第2の通信実行部と、
を備える、機能実行装置。
(項目2)
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースである、項目1に記載の機能実行装置。
(項目3)
前記機能実行装置は、さらに、
前記第1の無線インターフェースとは異なる第2の無線インターフェースを備え、
前記第1の機能は、前記第2の無線インターフェースを介した無線接続を外部装置と確立する機能であり、
前記第1の機能実行情報は、前記第2の無線インターフェースを介した前記無線接続を前記外部装置と確立するための情報を含む、項目1又は2に記載の機能実行装置。
(項目4)
前記1個以上の機能は、印刷機能及びスキャン機能のうちの少なくとも一方の機能を含み、
前記第1の機能は、前記少なくとも一方の機能に関係する関係データの通信を前記端末装置と実行するために、前記第2の無線インターフェースを介した前記無線接続を前記外部装置と確立する機能である、項目3に記載の機能実行装置。
(項目5)
前記第1の機能は、印刷機能及びスキャン機能のうちの少なくとも一方の機能であり、
前記第1の機能実行情報は、前記少なくとも一方の機能に関係する関係データを含む、項目1又は2に記載の機能実行装置。
(項目6)
前記機能実行装置は、
前記特定の認証情報を利用した前記通信を実行不可能な第1の状態と、
前記特定の認証情報を利用した前記通信を実行可能な第2の状態と、
のうちのどちらかの状態に設定され、
前記送信部は、前記機能実行装置が前記第1の状態に設定されている間に、前記画面表示情報を前記端末装置に送信し、
前記機能実行装置は、さらに、
前記第1の実行指示が前記端末装置に入力される場合に、前記端末装置から、前記第1の無線インターフェースを介して、前記機能実行装置を前記第1の状態に代えて前記第2の状態に設定するための設定変更要求を受信する受信部を備え、
前記第1の通信実行部は、前記端末装置から前記設定変更要求を受信することに応じて、前記機能実行装置が前記第1の状態に代えて前記第2の状態に設定された後に、前記特定の認証情報を利用した前記通信を前記端末装置と実行する、項目1から5のいずれか一項に記載の機能実行装置。
(項目7)
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する第1の切断部と、
前記第1の実行指示が前記端末装置に入力され、かつ、前記第1の無線接続が切断された後に、前記第1の無線インターフェースを介して、前記端末装置との第3の無線接続を確立する第3の確立部と、
を備え、
前記受信部は、前記第3の無線接続を利用して、前記端末装置から、前記第1の無線インターフェースを介して、前記設定変更要求を受信し、
前記機能実行装置は、さらに、
前記端末装置から前記設定変更要求が受信される場合に、前記第3の無線接続を切断する第2の切断部を備え、
前記第2の確立部は、前記第3の無線接続が切断された後に、前記第2の無線接続を確立し、
前記第2の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、項目6に記載の機能実行装置。
(項目8)
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する切断部を備え、
前記第2の確立部は、前記第1の無線接続が切断された後に、前記第2の無線接続を確立し、
前記受信部は、前記第2の無線接続を利用して、前記端末装置から、前記第1の無線インターフェースを介して、前記設定変更要求を受信し、
前記第2の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、項目6に記載の機能実行装置。
(項目9)
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記第1の状態は、前記第1の無線インターフェースが前記Bluetooth方式に従ったAdvertise信号を繰り返し送信する状態を含む、項目6から8のいずれか一項に記載の機能実行装置。
(項目10)
前記端末装置から前記Bluetooth方式に従った特定のRead要求が受信され、かつ、前記第1の無線インターフェースが前記Advertise信号の送信を停止している場合に、前記特定の認証情報を利用した前記通信は実行され、
前記端末装置から前記特定のRead要求が受信され、かつ、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する場合に、前記特定の認証情報を利用した前記通信は実行されず、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する前記第1の状態に設定されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信する、項目9に記載の機能実行装置。
(項目11)
前記第1の確立部は、第1のAdvertise信号が前記端末装置によって受信される場合に、前記端末装置との前記第1の無線接続を確立し、
前記第1のAdvertise信号は、前記Bluetooth方式に従った無線接続の確立を許可する許可情報を含み、
前記機能実行装置は、さらに、
前記端末装置との前記第1の無線接続が確立される場合に、前記第1のAdvertise信号の送信を前記第1の無線インターフェースに停止させる停止部と、
前記第1のAdvertise信号の送信が停止された後に、第2のAdvertise信号の送信を前記第1の無線インターフェースに開始させる開始部であって、前記第2のAdvertise信号は、前記Bluetooth方式に従った前記無線接続の確立を許可しない不許可情報を含む、前記開始部と、
を備え、
前記第1の状態は、前記第1の無線インターフェースが前記第2のAdvertise信号を繰り返し送信する状態を含む、項目10に記載の機能実行装置。
(項目12)
前記第1の無線インターフェースが前記Advertise信号の送信を停止している場合に、前記特定の認証情報を利用した前記通信は実行され、
前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する場合に、前記特定の認証情報を利用した前記通信は実行されず、
前記第2の状態は、前記第1の無線インターフェースが前記Advertise信号の送信を停止している状態を含み、
前記設定変更要求は、前記Advertise信号の送信を前記第1の無線インターフェースに実行させないための要求であり、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する前記第1の状態に設定されている間に、前記特定の認証情報を利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号の送信を停止している前記第2の状態に設定されている間に、前記特定の認証情報を利用した前記通信を実行する、項目9から11のいずれか一項に記載の機能実行装置。
(項目13)
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記第1の状態は、第1の設定情報がメモリに記憶されている状態を含み、
前記第1の設定情報は、前記端末装置から前記Bluetooth方式に従った特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行することなく、前記特定のRead要求に対する応答を送信する設定を示し、
前記第2の状態は、第2の設定情報が前記メモリに記憶されている状態を含み、
前記第2の設定情報は、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行し、前記特定の認証情報を利用した認証が成功する場合に、前記特定のRead要求に対する前記応答を送信する設定を示し、
前記設定変更要求は、前記メモリ内の前記第1の設定情報を前記第2の設定情報に変更する要求であり、
前記送信部は、前記メモリに前記第1の設定情報が記憶されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行することなく、前記特定のRead要求に対する前記応答として前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記メモリに前記第2の設定情報が記憶されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行する、項目6から11のいずれか一項に記載の機能実行装置。
(項目14)
前記特定の認証情報は、前記機能実行装置及び前記端末装置のうちの前記一方の装置によって準備される第1のコードであり、
前記特定の認証情報を利用した前記通信は、前記第1のコードが前記一方の装置に表示された後に、第2のコードが前記機能実行装置及び前記端末装置のうちの他方の装置に入力される場合に、前記第2のコードに関係する関係情報を前記他方の装置から前記一方の装置に送信することを含み、
前記第2の通信実行部は、前記関係情報の通信が実行された後に、前記第1のコードと前記第2のコードとが一致すると前記一方の装置によって判断される場合に、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、項目1から13のいずれか一項に記載の機能実行装置。
(項目15)
前記特定の認証情報は、前記機能実行装置及び前記端末装置のうちの前記一方の装置によって準備される公開鍵であり、
前記特定の認証情報を利用した前記通信は、前記公開鍵を前記一方の装置から前記機能実行装置及び前記端末装置のうちの他方の装置に送信することを含み、
前記第1の機能実行情報は、前記公開鍵を利用することによって前記他方の装置によって生成される情報である、項目1から4のいずれか一項に記載の機能実行装置。
(項目16)
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する第1の切断部を備え、
前記第2の確立部は、前記第1の無線接続が切断された後に、前記第2の無線接続を確立し、
前記第1の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記公開鍵の通信を前記端末装置と実行し、
前記機能実行装置は、さらに、
前記公開鍵の通信が前記端末装置と実行された後に、前記第2の無線接続を切断する第3の切断部と、
前記第2の無線接続が切断された後に、前記第1の無線インターフェースを介して、前記端末装置との第4の無線接続を確立する第4の確立部と、
を備え、
前記第2の通信実行部は、前記第4の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、項目15に記載の機能実行装置。
(項目17)
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する第1の切断部を備え、
前記第2の確立部は、前記第1の無線接続が切断された後に、前記第2の無線接続を確立し、
前記第1の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記公開鍵の通信を前記端末装置と実行し、
前記第2の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、項目15に記載の機能実行装置。
(項目18)
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記送信部は、前記特定の認証情報である前記公開鍵を利用した前記通信と、前記Bluetooth方式に従った特定のコードを利用した通信と、のどちらも実行することなく、前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記特定のコードを利用した前記通信を実行することなく、前記公開鍵を利用した前記通信を実行する、項目15から17のいずれか一項に記載の機能実行装置。
(項目19)
前記第1の無線インターフェースが前記Bluetooth方式に従ったAdvertise信号を繰り返し送信する場合に、前記特定のコードを利用した前記通信は実行されず、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記公開鍵を利用した前記通信を実行し、
前記第2の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記第1の機能実行情報の通信を前記端末装置と実行する、項目18に記載の機能実行装置。
(項目20)
前記機能実行装置は、さらに、
前記機能画面が前記端末装置に表示された後に、前記機能実行装置に前記第1の機能とは異なる第2の機能を実行させるための第2の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第5の無線接続を確立する第5の確立部と、
前記第5の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を実行することなく、前記第5の無線接続を利用して、前記第1の無線インターフェースを介して、前記第2の機能を実行するための第2の機能実行情報の通信を前記端末装置と実行する第3の通信実行部と、
を備える、項目1から19のいずれか一項に記載の機能実行装置。
(項目21)
前記第2の機能は、前記機能実行装置がエラー状態である場合に、前記エラー状態に関係するエラー情報を前記端末装置に表示させるためのエラー表示情報を前記端末装置に送信する機能であり、
前記第3の通信実行部は、前記端末装置から、前記エラー表示情報を前記端末装置に送信するための要求を前記第2の機能実行情報として受信する、項目20に記載の機能実行装置。
(項目22)
端末装置のためのコンピュータプログラムであって、
前記端末装置のコンピュータを、以下の各部、即ち、
前記端末装置の第1の無線インターフェースを介して、機能実行装置との第1の無線接続を確立するための第1の命令を前記端末装置のOS(Operating Systemの略)プログラムに供給する第1の供給部と、
前記第1の無線インターフェースを介して、前記機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した通信を実行することなく、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置から、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を受信する受信部と、
前記機能実行装置から前記画面表示情報が受信される場合に、前記機能画面を前記端末装置の表示部に表示させる表示制御部と、
前記機能画面が前記表示部に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との第2の無線接続を確立するための第2の命令を前記OSプログラムに供給する第2の供給部と、
前記特定の認証情報を利用した前記通信が、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置と実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための機能実行情報の通信を前記機能実行装置と実行する通信実行部と、
として機能させるコンピュータプログラム。
(項目23)
前記コンピュータプログラムは、前記コンピュータを、さらに、
前記機能画面が前記端末装置に表示された後に、前記機能実行装置に前記第1の機能とは異なる第2の機能を実行させるための第2の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との特定の無線接続を確立する特定の確立部と、
前記特定の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を実行することなく、前記特定の無線接続を利用して、前記第1の無線インターフェースを介して、前記第2の機能を実行するための第2の機能実行情報の通信を前記機能実行装置と実行する特定の通信実行部と、として機能させる、項目22に記載のコンピュータプログラム。
(項目24)
前記第2の機能は、前記機能実行装置がエラー状態である場合に、前記エラー状態に関係するエラー情報を前記端末装置に表示させるためのエラー表示情報を前記端末装置に送信する機能であり、
前記特定の通信実行部は、前記エラー表示情報を前記端末装置に送信するための要求を前記第2の機能実行情報として前記機能実行装置に送信する、項目23に記載のコンピュータプログラム。
(Modification 22) In each of the above embodiments, the CPU 132 of the printer 100 executes the program 136 (that is, software), and the CPU 32 of the terminal 10 executes the programs 36 and 38, so that each of FIGS. Processing is realized. Alternatively, any processing may be implemented by hardware such as logic circuits.
The features of the technology disclosed in this specification are listed below.
(Item 1)
A function performing device,
a first wireless interface;
a first establishing unit that establishes a first wireless connection with a terminal device via the first wireless interface;
Using the first wireless connection without executing communication using specific authentication information prepared by one of the function execution device and the terminal device via the first wireless interface and transmitting screen display information for causing the terminal device to display a function screen showing one or more functions executable by the function execution device to the terminal device via the first wireless interface. Department and
When a first execution instruction for causing the function execution device to execute a first function is input to the terminal device after the function screen is displayed on the terminal device, the first wireless interface is enabled. a second establishing unit for establishing a second wireless connection with the terminal device via
a first communication executing unit that executes the communication using the specific authentication information with the terminal device via the first wireless interface using the second wireless connection;
communicating first function execution information for executing the first function with the terminal device via the first wireless interface after the communication using the specific authentication information is executed; a second communication execution unit that
A function performing device comprising:
(Item 2)
The function execution device according to item 1, wherein the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system.
(Item 3)
The function execution device further
A second wireless interface different from the first wireless interface,
the first function is a function of establishing a wireless connection with an external device via the second wireless interface;
3. The function execution device according to item 1 or 2, wherein the first function execution information includes information for establishing the wireless connection with the external device via the second wireless interface.
(Item 4)
the one or more functions include at least one of a print function and a scan function;
The first function is a function of establishing the wireless connection with the external device via the second wireless interface in order to communicate relevant data related to the at least one function with the terminal device. 4. The function-performing device according to item 3.
(Item 5)
the first function is at least one of a print function and a scan function;
3. The function executing device according to item 1 or 2, wherein the first function executing information includes relational data relating to the at least one function.
(Item 6)
The function execution device is
a first state in which the communication using the specific authentication information cannot be performed;
a second state in which the communication using the specific authentication information can be performed;
set to one of the states of
The transmission unit transmits the screen display information to the terminal device while the function execution device is set to the first state,
The function execution device further
When the first execution instruction is input to the terminal device, the terminal device changes the function execution device to the second state instead of the first state via the first wireless interface. A receiving unit that receives a setting change request for setting to
After the function execution device is set to the second state instead of the first state in response to receiving the setting change request from the terminal device, the first communication execution unit performs the 6. The function executing device according to any one of items 1 to 5, wherein the communication using specific authentication information is executed with the terminal device.
(Item 7)
The function execution device further
a first disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
Establishing a third wireless connection with the terminal device via the first wireless interface after the first execution instruction is input to the terminal device and the first wireless connection is disconnected a third establishing unit that
with
The receiving unit uses the third wireless connection to receive the setting change request from the terminal device via the first wireless interface,
The function execution device further
a second disconnection unit that disconnects the third wireless connection when the setting change request is received from the terminal device;
The second establishing unit establishes the second wireless connection after the third wireless connection is disconnected,
Item 6, wherein the second communication execution unit communicates the first function execution information with the terminal device via the first wireless interface using the second wireless connection; A device for performing the described functions.
(Item 8)
The function execution device further
a disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
The second establishing unit establishes the second wireless connection after the first wireless connection is disconnected,
The receiving unit uses the second wireless connection to receive the setting change request from the terminal device via the first wireless interface,
Item 6, wherein the second communication execution unit communicates the first function execution information with the terminal device via the first wireless interface using the second wireless connection; A device for performing the described functions.
(Item 9)
the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system;
9. The function execution device according to any one of items 6 to 8, wherein the first state includes a state in which the first wireless interface repeatedly transmits an Advertise signal according to the Bluetooth system.
(Item 10)
said communication using said specific authentication information when a specific Read request according to said Bluetooth system is received from said terminal device and said first wireless interface has stopped transmitting said Advertise signal; is executed and
When the specific Read request is received from the terminal device and the first wireless interface repeatedly transmits the Advertise signal, the communication using the specific authentication information is not executed,
The transmission unit receives the specific Read request from the terminal device while the function execution device is set to the first state in which the first wireless interface repeatedly transmits the Advertise signal. 10. The function execution device according to item 9, wherein, when the communication is performed using the specific authentication information, the screen display information is transmitted to the terminal device.
(Item 11)
The first establishing unit establishes the first wireless connection with the terminal device when a first Advertise signal is received by the terminal device;
the first Advertise signal includes permission information that permits establishment of a wireless connection according to the Bluetooth system;
The function execution device further
a stopping unit that causes the first wireless interface to stop transmitting the first Advertise signal when the first wireless connection with the terminal device is established;
an initiator that causes the first wireless interface to start transmitting a second Advertise signal after transmission of the first Advertise signal is stopped, wherein the second Advertise signal is in accordance with the Bluetooth scheme; the initiator including non-permission information that does not permit establishment of the wireless connection;
with
11. The function executing device according to item 10, wherein the first state includes a state in which the first wireless interface repeatedly transmits the second Advertise signal.
(Item 12)
the communication using the specific authentication information is performed when the first wireless interface has stopped transmitting the Advertise signal;
when the first wireless interface repeatedly transmits the Advertise signal, the communication using the specific authentication information is not executed;
the second state includes a state in which the first wireless interface has stopped transmitting the Advertise signal;
the setting change request is a request for not causing the first wireless interface to transmit the Advertise signal;
The transmission unit executes the communication using the specific authentication information while the function execution device is set to the first state in which the first wireless interface repeatedly transmits the Advertise signal. transmitting the screen display information to the terminal device without
The first communication execution unit receives the specific authentication information while the function execution device is set to the second state in which the first wireless interface stops transmitting the Advertise signal. 12. The function executing device according to any one of items 9 to 11, which executes the communication using the .
(Item 13)
the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system;
The first state includes a state in which first setting information is stored in memory;
The first setting information is set so that when a specific Read request conforming to the Bluetooth system is received from the terminal device, the specific Read request is sent without executing the communication using the specific authentication information. Indicates the settings for sending responses to
the second state includes a state in which second setting information is stored in the memory;
The second setting information executes the communication using the specific authentication information when the specific read request is received from the terminal device, and the authentication using the specific authentication information is successful. indicates a setting for sending the response to the specific Read request when
the setting change request is a request to change the first setting information in the memory to the second setting information;
The transmission unit executes the communication using the specific authentication information when the specific read request is received from the terminal device while the first setting information is stored in the memory. transmitting the screen display information to the terminal device as the response to the specific Read request without
The first communication executing unit uses the specific authentication information when the specific Read request is received from the terminal device while the second setting information is stored in the memory. 12. A function performing device according to any one of items 6 to 11, for performing said communication.
(Item 14)
the specific authentication information is a first code prepared by the one of the function execution device and the terminal device;
The communication using the specific authentication information is performed by inputting a second code to the other of the function execution device and the terminal device after the first code is displayed on the one device. transmitting from the other device to the one device related information related to the second code, if
If the one device determines that the first code and the second code match after communication of the related information is executed, the second communication execution unit performs 14. The function execution device according to any one of items 1 to 13, which communicates the first function execution information with the terminal device via a wireless interface.
(Item 15)
the specific authentication information is a public key prepared by the one of the function execution device and the terminal device;
the communication using the specific authentication information includes transmitting the public key from the one device to the other of the function execution device and the terminal device;
5. The function execution device according to any one of items 1 to 4, wherein the first function execution information is information generated by the other device by using the public key.
(Item 16)
The function execution device further
a first disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
The second establishing unit establishes the second wireless connection after the first wireless connection is disconnected,
The first communication executing unit executes communication of the public key with the terminal device via the first wireless interface using the second wireless connection,
The function execution device further
a third disconnection unit that disconnects the second wireless connection after communication of the public key is performed with the terminal device;
a fourth establishing unit that establishes a fourth wireless connection with the terminal device via the first wireless interface after the second wireless connection is disconnected;
with
Item 15, wherein the second communication execution unit uses the fourth wireless connection to communicate the first function execution information with the terminal device via the first wireless interface; A device for performing the described functions.
(Item 17)
The function execution device further
a first disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
The second establishing unit establishes the second wireless connection after the first wireless connection is disconnected,
The first communication executing unit executes communication of the public key with the terminal device via the first wireless interface using the second wireless connection,
Item 15, wherein the second communication execution unit uses the second wireless connection to communicate the first function execution information with the terminal device via the first wireless interface; A device for performing the described functions.
(Item 18)
the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system;
The transmission unit transmits the screen display information without executing neither the communication using the public key, which is the specific authentication information, nor the communication using the specific code according to the Bluetooth system. send to the terminal device;
18. Function execution according to any one of items 15 to 17, wherein the first communication executing unit executes the communication using the public key without executing the communication using the specific code. Device.
(Item 19)
when the first wireless interface repeatedly transmits the Advertise signal according to the Bluetooth system, the communication using the specific code is not executed;
The transmitting unit, while the function execution device is set to a state in which the first wireless interface repeatedly transmits the Advertise signal, does not execute the communication using the specific code. sending screen display information to the terminal device;
The first communication execution unit executes the communication using the specific code while the function execution device is set to a state in which the first wireless interface repeatedly transmits the Advertise signal. performing the communication using the public key without
The second communication execution unit executes the communication using the specific code while the function execution device is set to a state in which the first wireless interface repeatedly transmits the Advertise signal. 19. The function execution device according to item 18, which executes communication of the first function execution information with the terminal device.
(Item 20)
The function execution device further
When a second execution instruction for causing the function execution device to execute a second function different from the first function is input to the terminal device after the function screen is displayed on the terminal device , a fifth establishing unit that establishes a fifth wireless connection with the terminal device via the first wireless interface;
using the fifth wireless connection without executing the communication using the specific authentication information via the first wireless interface using the fifth wireless connection; a third communication execution unit that communicates second function execution information for executing the second function with the terminal device via one wireless interface;
20. A function-performing device according to any one of items 1 to 19, comprising:
(Item 21)
the second function is a function of transmitting error display information to the terminal device for displaying error information related to the error state to the terminal device when the function execution device is in an error state;
21. The function execution device according to item 20, wherein the third communication execution unit receives from the terminal device a request for transmitting the error display information to the terminal device as the second function execution information.
(Item 22)
A computer program for a terminal device, comprising:
The computer of the terminal device has the following parts, that is,
supplying an operating system (OS) program of the terminal device with a first instruction for establishing a first wireless connection with the function execution device via a first wireless interface of the terminal device; a supply of
Using the first wireless connection without executing communication using specific authentication information prepared by one of the function execution device and the terminal device via the first wireless interface Then, screen display information for displaying on the terminal device a function screen showing one or more functions executable by the function execution device is received from the function execution device via the first wireless interface. a receiver for
a display control unit that displays the function screen on a display unit of the terminal device when the screen display information is received from the function execution device;
When a first execution instruction for causing the function execution device to execute a first function is input to the terminal device after the function screen is displayed on the display unit, the first wireless interface is activated. a second supply unit for supplying the OS program with a second instruction for establishing a second wireless connection with the function execution device via the
after the communication using the specific authentication information is executed with the function execution device using the second wireless connection and via the first wireless interface, the first wireless interface; a communication execution unit that communicates function execution information for executing the first function with the function execution device via
A computer program that acts as a
(Item 23)
The computer program further causes the computer to:
When a second execution instruction for causing the function execution device to execute a second function different from the first function is input to the terminal device after the function screen is displayed on the terminal device , a specific establishing unit that establishes a specific wireless connection with the function execution device via the first wireless interface;
using the specific wireless connection without executing the communication using the specific authentication information via the first wireless interface using the specific wireless connection; 23. The computer program according to item 22, functioning as a specific communication execution unit that executes communication of second function execution information for executing the second function with the function execution device via a wireless interface. .
(Item 24)
the second function is a function of transmitting error display information to the terminal device for displaying error information related to the error state to the terminal device when the function execution device is in an error state;
24. The computer program according to item 23, wherein the specific communication execution unit transmits a request for transmitting the error display information to the terminal device as the second function execution information to the function execution device.

2:通信システム、10:携帯端末、12:表示部、14:無線LANI/F、16:BTI/F、30:制御部、32:CPU、34:メモリ、36:OSプログラム、38:プリントアプリケーション、100:プリンタ、112:表示部、114:無線LANI/F、116:BTI/F、130:制御部、132:CPU、134:メモリ、136:プログラム、138:プロトコルスタック、138A:GA、138B:FS、138C:AC、138D:WD、138E:BC、138F:ES、160:WFD情報、162:再開フラグ、200:AP、300:携帯端末、338:アプリ、500:プリンタ、DN:デバイス名、FI:機能情報、IA:IPアドレス
2: communication system, 10: mobile terminal, 12: display unit, 14: wireless LAN I/F, 16: BTI/F, 30: control unit, 32: CPU, 34: memory, 36: OS program, 38: print application , 100: Printer, 112: Display Unit, 114: Wireless LAN I/F, 116: BTI/F, 130: Control Unit, 132: CPU, 134: Memory, 136: Program, 138: Protocol Stack, 138A: GA, 138B : FS, 138C: AC, 138D: WD, 138E: BC, 138F: ES, 160: WFD information, 162: Resume flag, 200: AP, 300: Mobile terminal, 338: Application, 500: Printer, DN: Device name , FI: function information, IA: IP address

Claims (24)

機能実行装置であって、
第1の無線インターフェースと、
前記第1の無線インターフェースを介して、端末装置との第1の無線接続を確立する第1の確立部と、
前記第1の無線インターフェースを介して、前記機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した通信を実行することなく、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を前記端末装置に送信する送信部と、
前記機能画面が前記端末装置に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第2の無線接続を確立する第2の確立部と、
前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を前記端末装置と実行する第1の通信実行部と、
前記特定の認証情報を利用した前記通信が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための第1の機能実行情報の通信を前記端末装置と実行する第2の通信実行部と、
を備える、機能実行装置。
A function performing device,
a first wireless interface;
a first establishing unit that establishes a first wireless connection with a terminal device via the first wireless interface;
Using the first wireless connection without executing communication using specific authentication information prepared by one of the function execution device and the terminal device via the first wireless interface and transmitting screen display information for causing the terminal device to display a function screen showing one or more functions executable by the function execution device to the terminal device via the first wireless interface. Department and
When a first execution instruction for causing the function execution device to execute a first function is input to the terminal device after the function screen is displayed on the terminal device, the first wireless interface is enabled. a second establishing unit for establishing a second wireless connection with the terminal device via
a first communication executing unit that executes the communication using the specific authentication information with the terminal device via the first wireless interface using the second wireless connection;
communicating first function execution information for executing the first function with the terminal device via the first wireless interface after the communication using the specific authentication information is executed; a second communication execution unit that
A function performing device comprising:
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースである、請求項1に記載の機能実行装置。 2. The function execution device according to claim 1, wherein said first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system. 前記機能実行装置は、さらに、
前記第1の無線インターフェースとは異なる第2の無線インターフェースを備え、
前記第1の機能は、前記第2の無線インターフェースを介した無線接続を外部装置と確立する機能であり、
前記第1の機能実行情報は、前記第2の無線インターフェースを介した前記無線接続を前記外部装置と確立するための情報を含む、請求項1又は2に記載の機能実行装置。
The function execution device further
A second wireless interface different from the first wireless interface,
the first function is a function of establishing a wireless connection with an external device via the second wireless interface;
3. The function execution device according to claim 1, wherein said first function execution information includes information for establishing said wireless connection with said external device via said second wireless interface.
前記1個以上の機能は、印刷機能及びスキャン機能のうちの少なくとも一方の機能を含み、
前記第1の機能は、前記少なくとも一方の機能に関係する関係データの通信を前記端末装置と実行するために、前記第2の無線インターフェースを介した前記無線接続を前記外部装置と確立する機能である、請求項3に記載の機能実行装置。
the one or more functions include at least one of a print function and a scan function;
The first function is a function of establishing the wireless connection with the external device via the second wireless interface in order to communicate relevant data related to the at least one function with the terminal device. 4. A function-performing device according to claim 3, wherein a
前記第1の機能は、印刷機能及びスキャン機能のうちの少なくとも一方の機能であり、
前記第1の機能実行情報は、前記少なくとも一方の機能に関係する関係データを含む、請求項1又は2に記載の機能実行装置。
the first function is at least one of a print function and a scan function;
3. The function execution device according to claim 1, wherein said first function execution information includes relationship data related to said at least one function.
前記機能実行装置は、
前記特定の認証情報を利用した前記通信を実行不可能な第1の状態と、
前記特定の認証情報を利用した前記通信を実行可能な第2の状態と、
のうちのどちらかの状態に設定され、
前記送信部は、前記機能実行装置が前記第1の状態に設定されている間に、前記画面表示情報を前記端末装置に送信し、
前記機能実行装置は、さらに、
前記第1の実行指示が前記端末装置に入力される場合に、前記端末装置から、前記第1の無線インターフェースを介して、前記機能実行装置を前記第1の状態に代えて前記第2の状態に設定するための設定変更要求を受信する受信部を備え、
前記第1の通信実行部は、前記端末装置から前記設定変更要求を受信することに応じて、前記機能実行装置が前記第1の状態に代えて前記第2の状態に設定された後に、前記特定の認証情報を利用した前記通信を前記端末装置と実行する、請求項1から5のいずれか一項に記載の機能実行装置。
The function execution device is
a first state in which the communication using the specific authentication information cannot be performed;
a second state in which the communication using the specific authentication information can be performed;
set to one of the states of
The transmission unit transmits the screen display information to the terminal device while the function execution device is set to the first state,
The function execution device further
When the first execution instruction is input to the terminal device, the terminal device changes the function execution device to the second state instead of the first state via the first wireless interface. A receiving unit that receives a setting change request for setting to
After the function execution device is set to the second state instead of the first state in response to receiving the setting change request from the terminal device, the first communication execution unit performs the 6. The function execution device according to claim 1, wherein said communication using specific authentication information is executed with said terminal device.
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する第1の切断部と、
前記第1の実行指示が前記端末装置に入力され、かつ、前記第1の無線接続が切断された後に、前記第1の無線インターフェースを介して、前記端末装置との第3の無線接続を確立する第3の確立部と、
を備え、
前記受信部は、前記第3の無線接続を利用して、前記端末装置から、前記第1の無線インターフェースを介して、前記設定変更要求を受信し、
前記機能実行装置は、さらに、
前記端末装置から前記設定変更要求が受信される場合に、前記第3の無線接続を切断する第2の切断部を備え、
前記第2の確立部は、前記第3の無線接続が切断された後に、前記第2の無線接続を確立し、
前記第2の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項6に記載の機能実行装置。
The function execution device further
a first disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
Establishing a third wireless connection with the terminal device via the first wireless interface after the first execution instruction is input to the terminal device and the first wireless connection is disconnected a third establishing unit that
with
The receiving unit uses the third wireless connection to receive the setting change request from the terminal device via the first wireless interface,
The function execution device further
a second disconnection unit that disconnects the third wireless connection when the setting change request is received from the terminal device;
The second establishing unit establishes the second wireless connection after the third wireless connection is disconnected,
7. The second communication execution unit uses the second wireless connection to communicate the first function execution information with the terminal device via the first wireless interface. A device for performing the functions described in .
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する切断部を備え、
前記第2の確立部は、前記第1の無線接続が切断された後に、前記第2の無線接続を確立し、
前記受信部は、前記第2の無線接続を利用して、前記端末装置から、前記第1の無線インターフェースを介して、前記設定変更要求を受信し、
前記第2の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項6に記載の機能実行装置。
The function execution device further
a disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
The second establishing unit establishes the second wireless connection after the first wireless connection is disconnected,
The receiving unit uses the second wireless connection to receive the setting change request from the terminal device via the first wireless interface,
7. The second communication execution unit uses the second wireless connection to communicate the first function execution information with the terminal device via the first wireless interface. A device for performing the functions described in .
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記第1の状態は、前記第1の無線インターフェースが前記Bluetooth方式に従ったAdvertise信号を繰り返し送信する状態を含む、請求項6から8のいずれか一項に記載の機能実行装置。
the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system;
9. The function execution device according to claim 6, wherein said first state includes a state in which said first wireless interface repeatedly transmits an Advertise signal according to said Bluetooth system.
前記端末装置から前記Bluetooth方式に従った特定のRead要求が受信され、かつ、前記第1の無線インターフェースが前記Advertise信号の送信を停止している場合に、前記特定の認証情報を利用した前記通信は実行され、
前記端末装置から前記特定のRead要求が受信され、かつ、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する場合に、前記特定の認証情報を利用した前記通信は実行されず、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する前記第1の状態に設定されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信する、請求項9に記載の機能実行装置。
said communication using said specific authentication information when a specific Read request according to said Bluetooth system is received from said terminal device and said first wireless interface has stopped transmitting said Advertise signal; is executed and
When the specific Read request is received from the terminal device and the first wireless interface repeatedly transmits the Advertise signal, the communication using the specific authentication information is not executed,
The transmission unit receives the specific Read request from the terminal device while the function execution device is set to the first state in which the first wireless interface repeatedly transmits the Advertise signal. 10. The function execution device according to claim 9, wherein, when the terminal device is to be authenticated, the screen display information is transmitted to the terminal device without executing the communication using the specific authentication information.
前記第1の確立部は、第1のAdvertise信号が前記端末装置によって受信される場合に、前記端末装置との前記第1の無線接続を確立し、
前記第1のAdvertise信号は、前記Bluetooth方式に従った無線接続の確立を許可する許可情報を含み、
前記機能実行装置は、さらに、
前記端末装置との前記第1の無線接続が確立される場合に、前記第1のAdvertise信号の送信を前記第1の無線インターフェースに停止させる停止部と、
前記第1のAdvertise信号の送信が停止された後に、第2のAdvertise信号の送信を前記第1の無線インターフェースに開始させる開始部であって、前記第2のAdvertise信号は、前記Bluetooth方式に従った前記無線接続の確立を許可しない不許可情報を含む、前記開始部と、
を備え、
前記第1の状態は、前記第1の無線インターフェースが前記第2のAdvertise信号を繰り返し送信する状態を含む、請求項10に記載の機能実行装置。
The first establishing unit establishes the first wireless connection with the terminal device when a first Advertise signal is received by the terminal device;
the first Advertise signal includes permission information that permits establishment of a wireless connection according to the Bluetooth system;
The function execution device further
a stopping unit that causes the first wireless interface to stop transmitting the first Advertise signal when the first wireless connection with the terminal device is established;
an initiator that causes the first wireless interface to start transmitting a second Advertise signal after transmission of the first Advertise signal is stopped, wherein the second Advertise signal is in accordance with the Bluetooth scheme; the initiator including non-permission information that does not permit establishment of the wireless connection;
with
11. The function executing device according to claim 10, wherein said first state includes a state in which said first wireless interface repeatedly transmits said second Advertise signal.
前記第1の無線インターフェースが前記Advertise信号の送信を停止している場合に、前記特定の認証情報を利用した前記通信は実行され、
前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する場合に、前記特定の認証情報を利用した前記通信は実行されず、
前記第2の状態は、前記第1の無線インターフェースが前記Advertise信号の送信を停止している状態を含み、
前記設定変更要求は、前記Advertise信号の送信を前記第1の無線インターフェースに実行させないための要求であり、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する前記第1の状態に設定されている間に、前記特定の認証情報を利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号の送信を停止している前記第2の状態に設定されている間に、前記特定の認証情報を利用した前記通信を実行する、請求項9から11のいずれか一項に記載の機能実行装置。
the communication using the specific authentication information is performed when the first wireless interface has stopped transmitting the Advertise signal;
when the first wireless interface repeatedly transmits the Advertise signal, the communication using the specific authentication information is not executed;
the second state includes a state in which the first wireless interface has stopped transmitting the Advertise signal;
the setting change request is a request for not causing the first wireless interface to transmit the Advertise signal;
The transmission unit executes the communication using the specific authentication information while the function execution device is set to the first state in which the first wireless interface repeatedly transmits the Advertise signal. transmitting the screen display information to the terminal device without
The first communication execution unit receives the specific authentication information while the function execution device is set to the second state in which the first wireless interface stops transmitting the Advertise signal. 12. The function execution device according to any one of claims 9 to 11, wherein the communication is performed using a.
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記第1の状態は、第1の設定情報がメモリに記憶されている状態を含み、
前記第1の設定情報は、前記端末装置から前記Bluetooth方式に従った特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行することなく、前記特定のRead要求に対する応答を送信する設定を示し、
前記第2の状態は、第2の設定情報が前記メモリに記憶されている状態を含み、
前記第2の設定情報は、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行し、前記特定の認証情報を利用した認証が成功する場合に、前記特定のRead要求に対する前記応答を送信する設定を示し、
前記設定変更要求は、前記メモリ内の前記第1の設定情報を前記第2の設定情報に変更する要求であり、
前記送信部は、前記メモリに前記第1の設定情報が記憶されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行することなく、前記特定のRead要求に対する前記応答として前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記メモリに前記第2の設定情報が記憶されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記通信を実行する、請求項6から11のいずれか一項に記載の機能実行装置。
the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system;
The first state includes a state in which first setting information is stored in memory;
The first setting information is set so that when a specific Read request conforming to the Bluetooth system is received from the terminal device, the specific Read request is sent without executing the communication using the specific authentication information. Indicates the settings for sending responses to
the second state includes a state in which second setting information is stored in the memory;
The second setting information executes the communication using the specific authentication information when the specific read request is received from the terminal device, and the authentication using the specific authentication information is successful. indicates a setting for sending the response to the specific Read request when
the setting change request is a request to change the first setting information in the memory to the second setting information;
The transmission unit executes the communication using the specific authentication information when the specific read request is received from the terminal device while the first setting information is stored in the memory. transmitting the screen display information to the terminal device as the response to the specific Read request without
The first communication executing unit uses the specific authentication information when the specific Read request is received from the terminal device while the second setting information is stored in the memory. 12. A function performing device according to any one of claims 6 to 11, for performing said communication.
前記特定の認証情報は、前記機能実行装置及び前記端末装置のうちの前記一方の装置によって準備される第1のコードであり、
前記特定の認証情報を利用した前記通信は、前記第1のコードが前記一方の装置に表示された後に、第2のコードが前記機能実行装置及び前記端末装置のうちの他方の装置に入力される場合に、前記第2のコードに関係する関係情報を前記他方の装置から前記一方の装置に送信することを含み、
前記第2の通信実行部は、前記関係情報の通信が実行された後に、前記第1のコードと前記第2のコードとが一致すると前記一方の装置によって判断される場合に、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項1から13のいずれか一項に記載の機能実行装置。
the specific authentication information is a first code prepared by the one of the function execution device and the terminal device;
The communication using the specific authentication information is performed by inputting a second code to the other of the function execution device and the terminal device after the first code is displayed on the one device. transmitting from the other device to the one device related information related to the second code, if
If the one device determines that the first code and the second code match after communication of the related information is executed, the second communication execution unit performs 14. The function execution device according to any one of claims 1 to 13, wherein said first function execution information is communicated with said terminal device via a wireless interface.
前記特定の認証情報は、前記機能実行装置及び前記端末装置のうちの前記一方の装置によって準備される公開鍵であり、
前記特定の認証情報を利用した前記通信は、前記公開鍵を前記一方の装置から前記機能実行装置及び前記端末装置のうちの他方の装置に送信することを含み、
前記第1の機能実行情報は、前記公開鍵を利用することによって前記他方の装置によって生成される情報である、請求項1から4のいずれか一項に記載の機能実行装置。
the specific authentication information is a public key prepared by the one of the function execution device and the terminal device;
the communication using the specific authentication information includes transmitting the public key from the one device to the other of the function execution device and the terminal device;
5. The function execution device according to claim 1, wherein said first function execution information is information generated by said other device by using said public key.
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する第1の切断部を備え、
前記第2の確立部は、前記第1の無線接続が切断された後に、前記第2の無線接続を確立し、
前記1の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記公開鍵の通信を前記端末装置と実行し、
前記機能実行装置は、さらに、
前記公開鍵の通信が前記端末装置と実行された後に、前記第2の無線接続を切断する第3の切断部と、
前記第2の無線接続が切断された後に、前記第1の無線インターフェースを介して、前記端末装置との第4の無線接続を確立する第4の確立部と、
を備え、
前記第2の通信実行部は、前記第4の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項15に記載の機能実行装置。
The function execution device further
a first disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
The second establishing unit establishes the second wireless connection after the first wireless connection is disconnected,
The first communication executing unit executes communication of the public key with the terminal device via the first wireless interface using the second wireless connection,
The function execution device further
a third disconnection unit that disconnects the second wireless connection after communication of the public key is performed with the terminal device;
a fourth establishing unit that establishes a fourth wireless connection with the terminal device via the first wireless interface after the second wireless connection is disconnected;
with
16. The second communication execution unit uses the fourth wireless connection to communicate the first function execution information with the terminal device via the first wireless interface. A device for performing the functions described in .
前記機能実行装置は、さらに、
前記画面表示情報が前記端末装置に送信された後に、前記第1の無線接続を切断する第1の切断部を備え、
前記第2の確立部は、前記第1の無線接続が切断された後に、前記第2の無線接続を確立し、
前記第1の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記公開鍵の通信を前記端末装置と実行し、
前記第2の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項15に記載の機能実行装置。
The function execution device further
a first disconnection unit that disconnects the first wireless connection after the screen display information is transmitted to the terminal device;
The second establishing unit establishes the second wireless connection after the first wireless connection is disconnected,
The first communication executing unit executes communication of the public key with the terminal device via the first wireless interface using the second wireless connection,
16. The second communication execution unit uses the second wireless connection to communicate the first function execution information with the terminal device via the first wireless interface. A device for performing the functions described in .
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記送信部は、前記特定の認証情報である前記公開鍵を利用した前記通信と、前記Bluetooth方式に従った特定のコードを利用した通信と、のどちらも実行することなく、前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記特定のコードを利用した前記通信を実行することなく、前記公開鍵を利用した前記通信を実行する、請求項15から17のいずれか一項に記載の機能実行装置。
the first wireless interface is an interface for performing wireless communication according to the Bluetooth (registered trademark) system;
The transmission unit transmits the screen display information without executing neither the communication using the public key, which is the specific authentication information, nor the communication using the specific code according to the Bluetooth system. send to the terminal device;
18. The function according to any one of claims 15 to 17, wherein said first communication execution unit executes said communication using said public key without executing said communication using said specific code. execution device.
前記第1の無線インターフェースが前記Bluetooth方式に従ったAdvertise信号を繰り返し送信する場合に、前記特定のコードを利用した前記通信は実行されず、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信し、
前記第1の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記公開鍵を利用した前記通信を実行し、
前記第2の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項18に記載の機能実行装置。
when the first wireless interface repeatedly transmits the Advertise signal according to the Bluetooth system, the communication using the specific code is not executed;
The transmitting unit, while the function execution device is set to a state in which the first wireless interface repeatedly transmits the Advertise signal, does not execute the communication using the specific code. sending screen display information to the terminal device;
The first communication execution unit executes the communication using the specific code while the function execution device is set to a state in which the first wireless interface repeatedly transmits the Advertise signal. performing the communication using the public key without
The second communication execution unit executes the communication using the specific code while the function execution device is set to a state in which the first wireless interface repeatedly transmits the Advertise signal. 19. The function execution device according to claim 18, which executes communication of said first function execution information with said terminal device.
前記機能実行装置は、さらに、
前記機能画面が前記端末装置に表示された後に、前記機能実行装置に前記第1の機能とは異なる第2の機能を実行させるための第2の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第5の無線接続を確立する第5の確立部と、
前記第5の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を実行することなく、前記第5の無線接続を利用して、前記第1の無線インターフェースを介して、前記第2の機能を実行するための第2の機能実行情報の通信を前記端末装置と実行する第3の通信実行部と、
を備える、請求項1から19のいずれか一項に記載の機能実行装置。
The function execution device further
When a second execution instruction for causing the function execution device to execute a second function different from the first function is input to the terminal device after the function screen is displayed on the terminal device , a fifth establishing unit that establishes a fifth wireless connection with the terminal device via the first wireless interface;
using the fifth wireless connection without executing the communication using the specific authentication information via the first wireless interface using the fifth wireless connection; a third communication execution unit that communicates second function execution information for executing the second function with the terminal device via one wireless interface;
20. A function-performing device according to any one of claims 1 to 19, comprising a .
前記第2の機能は、前記機能実行装置がエラー状態である場合に、前記エラー状態に関係するエラー情報を前記端末装置に表示させるためのエラー表示情報を前記端末装置に送信する機能であり、
前記第3の通信実行部は、前記端末装置から、前記エラー表示情報を前記端末装置に送信するための要求を前記第2の機能実行情報として受信する、請求項20に記載の機能実行装置。
the second function is a function of transmitting error display information to the terminal device for displaying error information related to the error state to the terminal device when the function execution device is in an error state;
21. The function execution device according to claim 20, wherein said third communication execution unit receives from said terminal device a request for transmitting said error display information to said terminal device as said second function execution information.
端末装置のためのコンピュータプログラムであって、
前記端末装置のコンピュータを、以下の各部、即ち、
前記端末装置の第1の無線インターフェースを介して、機能実行装置との第1の無線接続を確立するための第1の命令を前記端末装置のOS(Operating Systemの略)プログラムに供給する第1の供給部と、
前記第1の無線インターフェースを介して、前記機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した通信を実行することなく、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置から、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を受信する受信部と、
前記機能実行装置から前記画面表示情報が受信される場合に、前記機能画面を前記端末装置の表示部に表示させる表示制御部と、
前記機能画面が前記表示部に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との第2の無線接続を確立するための第2の命令を前記OSプログラムに供給する第2の供給部と、
前記特定の認証情報を利用した前記通信が、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記機能実行装置と実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための機能実行情報の通信を前記機能実行装置と実行する通信実行部と、
として機能させるコンピュータプログラム。
A computer program for a terminal device, comprising:
The computer of the terminal device has the following parts, that is,
supplying an operating system (OS) program of the terminal device with a first instruction for establishing a first wireless connection with the function execution device via a first wireless interface of the terminal device; a supply of
Using the first wireless connection without executing communication using specific authentication information prepared by one of the function execution device and the terminal device via the first wireless interface Then, screen display information for displaying on the terminal device a function screen showing one or more functions executable by the function execution device is received from the function execution device via the first wireless interface. a receiver for
a display control unit that displays the function screen on a display unit of the terminal device when the screen display information is received from the function execution device;
When a first execution instruction for causing the function execution device to execute a first function is input to the terminal device after the function screen is displayed on the display unit, the first wireless interface is activated. a second supply unit for supplying the OS program with a second instruction for establishing a second wireless connection with the function execution device via the
after the communication using the specific authentication information is executed with the function execution device using the second wireless connection and via the first wireless interface, the first wireless interface; a communication execution unit that communicates function execution information for executing the first function with the function execution device via
A computer program that acts as a
前記コンピュータプログラムは、前記コンピュータを、さらに、
前記機能画面が前記端末装置に表示された後に、前記機能実行装置に前記第1の機能とは異なる第2の機能を実行させるための第2の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との特定の無線接続を確立する特定の確立部と、
前記特定の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記通信を実行することなく、前記特定の無線接続を利用して、前記第1の無線インターフェースを介して、前記第2の機能を実行するための第2の機能実行情報の通信を前記機能実行装置と実行する特定の通信実行部と、として機能させる、請求項22に記載のコンピュータプログラム。
The computer program further causes the computer to:
When a second execution instruction for causing the function execution device to execute a second function different from the first function is input to the terminal device after the function screen is displayed on the terminal device , a specific establishing unit that establishes a specific wireless connection with the function execution device via the first wireless interface;
using the specific wireless connection without executing the communication using the specific authentication information via the first wireless interface using the specific wireless connection; 23. The computer according to claim 22, which functions as a specific communication executing unit that executes communication of second function execution information for executing said second function with said function executing device via a wireless interface. program.
前記第2の機能は、前記機能実行装置がエラー状態である場合に、前記エラー状態に関係するエラー情報を前記端末装置に表示させるためのエラー表示情報を前記端末装置に送信する機能であり、
前記特定の通信実行部は、前記エラー表示情報を前記端末装置に送信するための要求を前記第2の機能実行情報として前記機能実行装置に送信する、請求項23に記載のコンピュータプログラム。
the second function is a function of transmitting error display information to the terminal device for displaying error information related to the error state to the terminal device when the function execution device is in an error state;
24. The computer program according to claim 23, wherein said specific communication execution unit transmits a request for transmitting said error display information to said terminal device as said second function execution information to said function execution device.
JP2019023925A 2019-02-13 2019-02-13 Computer program for function execution device and terminal device Active JP7293704B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019023925A JP7293704B2 (en) 2019-02-13 2019-02-13 Computer program for function execution device and terminal device
US16/750,196 US11416191B2 (en) 2019-02-13 2020-01-23 Function executing device for executing communication of function execution information with terminal device
US17/858,612 US11579824B2 (en) 2019-02-13 2022-07-06 Function executing device for executing communication of function execution information with terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019023925A JP7293704B2 (en) 2019-02-13 2019-02-13 Computer program for function execution device and terminal device

Publications (2)

Publication Number Publication Date
JP2020135070A JP2020135070A (en) 2020-08-31
JP7293704B2 true JP7293704B2 (en) 2023-06-20

Family

ID=72263076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019023925A Active JP7293704B2 (en) 2019-02-13 2019-02-13 Computer program for function execution device and terminal device

Country Status (1)

Country Link
JP (1) JP7293704B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014033367A (en) 2012-08-03 2014-02-20 Brother Ind Ltd Communication device
JP2015015518A (en) 2013-07-03 2015-01-22 ブラザー工業株式会社 Computer program and terminal device
JP2017033395A (en) 2015-08-04 2017-02-09 株式会社リコー Information processing system, information processing apparatus, program, and communication method
JP2017184194A (en) 2016-03-31 2017-10-05 キヤノン株式会社 Information processing device, control method, and program
JP2018173879A (en) 2017-03-31 2018-11-08 キヤノン株式会社 Method, program, and communication system for information processing device
JP2019012991A (en) 2017-06-29 2019-01-24 キヤノン株式会社 Communication apparatus and control method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014033367A (en) 2012-08-03 2014-02-20 Brother Ind Ltd Communication device
JP2015015518A (en) 2013-07-03 2015-01-22 ブラザー工業株式会社 Computer program and terminal device
JP2017033395A (en) 2015-08-04 2017-02-09 株式会社リコー Information processing system, information processing apparatus, program, and communication method
JP2017184194A (en) 2016-03-31 2017-10-05 キヤノン株式会社 Information processing device, control method, and program
JP2018173879A (en) 2017-03-31 2018-11-08 キヤノン株式会社 Method, program, and communication system for information processing device
JP2019012991A (en) 2017-06-29 2019-01-24 キヤノン株式会社 Communication apparatus and control method therefor

Also Published As

Publication number Publication date
JP2020135070A (en) 2020-08-31

Similar Documents

Publication Publication Date Title
US20230300585A1 (en) Function Execution Device and Communication Terminal
JP7375889B2 (en) Communication devices and computer programs for communication devices
JP7468602B2 (en) Printers and computer programs for printers
JP6950242B2 (en) Communication device
US11579824B2 (en) Function executing device for executing communication of function execution information with terminal device
US10936260B2 (en) Printer and non-transitory computer-readable recording medium storing computer-readable instructions for terminal device
JP7392776B2 (en) Communication devices and computer programs for communication devices
US10278072B2 (en) Communication device and terminal device
JP2023168594A (en) Communication device and computer program therefor
JP2024019266A (en) Communication devices and computer programs for communication devices
JP7293704B2 (en) Computer program for function execution device and terminal device
JP7293705B2 (en) Computer program for function execution device and terminal device
JP6812836B2 (en) Computer programs for communication and terminal equipment
JP7322669B2 (en) Computer program for function execution device and terminal device
JP7424013B2 (en) Computer programs for function execution devices and terminal devices
US20230171682A1 (en) Communication apparatus, control method therefor, and storage medium
US11853631B2 (en) Communication apparatus, control method for controlling the same, and storage medium
US20230091461A1 (en) Information processing apparatus, communication apparatus, control method therefor, and storage medium
US10506130B2 (en) Communication device and non-transitory computer-readable recording medium storing computer-readable instructions for communication device
JP6819417B2 (en) Communication device
JP2024051736A (en) COMMUNICATION DEVICE, COMPUTER PROGRAM FOR COMMUNICATION DEVICE, APPLICATION PROGRAM FOR TERMINAL DEVICE, AND TERMINAL DEVICE

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200116

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230113

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230522

R150 Certificate of patent or registration of utility model

Ref document number: 7293704

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150