JP2020135071A - Function execution device and computer program for terminal device - Google Patents

Function execution device and computer program for terminal device Download PDF

Info

Publication number
JP2020135071A
JP2020135071A JP2019023930A JP2019023930A JP2020135071A JP 2020135071 A JP2020135071 A JP 2020135071A JP 2019023930 A JP2019023930 A JP 2019023930A JP 2019023930 A JP2019023930 A JP 2019023930A JP 2020135071 A JP2020135071 A JP 2020135071A
Authority
JP
Japan
Prior art keywords
function
information
terminal device
execution
printer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019023930A
Other languages
Japanese (ja)
Other versions
JP7293705B2 (en
Inventor
卓弥 井上
Takuya Inoue
卓弥 井上
弘崇 朝倉
Hirotaka Asakura
弘崇 朝倉
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 JP2019023930A priority Critical patent/JP7293705B2/en
Priority to US16/750,196 priority patent/US11416191B2/en
Publication of JP2020135071A publication Critical patent/JP2020135071A/en
Priority to US17/858,612 priority patent/US11579824B2/en
Application granted granted Critical
Publication of JP7293705B2 publication Critical patent/JP7293705B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a technique to prevent target processing using authentication information from being executed when a function demanded by a user is not included in one or more functions executable by a function execution device.SOLUTION: A function execution device transmits, to a terminal device, screen display information to display a function screen via a first wireless interface without executing target processing using specific authentication information, when a first execution instruction is input after the function screen is displayed on the terminal device, establishes a first wireless connection with the terminal device via the first wireless interface, receives an execution request from the terminal device by using the first wireless connection via the first wireless interface without executing the target processing, executes the target processing according to the reception of the execution request from the terminal device, and after the target processing using the specific authentication information is executed, executes communication of first function execution information with the terminal device via the first wireless interface.SELECTED DRAWING: Figure 8

Description

本明細書では、特定の認証情報を利用した通信を実行可能なデバイスに関する技術を開示する。 This specification discloses a technique relating to a device capable of performing 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 Document 1 discloses a communication device that executes pairing with an information processing device according to a standard of BLE (abbreviation of Bluetooth (registered trademark) Low Energy). 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, PIN code authentication is executed and GATT communication becomes available. The communication device uses GATT communication to supply the information processing device with a list of services supported by the communication device. The information processing device uses GATT communication to transmit a password to the communication device in order to provide the service of the remote UI included in the list. The information processing terminal displays the remote UI when the access permission response is received from the communication device as a response to the password.

特開2017−182489号公報Japanese Unexamined Patent Publication No. 2017-182489 特開2007−068035号公報Japanese Unexamined Patent Publication No. 2007-08835 特開2016−225949号公報Japanese Unexamined Patent Publication No. 2016-225949 特開2018−14006号公報Japanese Unexamined Patent Publication No. 2018-14006 特開2017−59063号公報JP-A-2017-59063

「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コードの認証が実行される。 In the above technique, for example, even if the services supported by the communication device do not include the service desired by the user, the PIN code authentication is executed.

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

本明細書で開示する機能実行装置は、第1の無線インターフェースと、前記機能実行装置及び端末装置のうちの一方の装置によって準備される特定の認証情報を利用した対象処理を実行することなく、前記第1の無線インターフェースを介して、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を前記端末装置に送信する送信部と、前記機能画面が前記端末装置に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第1の無線接続を確立する第1の確立部と、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記対象処理を実行することなく、前記端末装置から実行要求を受信する受信部であって、前記実行要求は、前記特定の認証情報を利用した前記対象処理を前記機能実行装置に実行させるための要求である、前記受信部と、前記端末装置から前記実行要求が受信されることに応じて、前記特定の認証情報を利用した前記対象処理を実行する対象処理実行部と、前記特定の認証情報を利用した前記対象処理が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための第1の機能実行情報の通信を前記端末装置と実行する第1の通信実行部と、を備えてもよい。 The function executing device disclosed in the present specification does not execute the target process using the first wireless interface and the specific authentication information prepared by one of the function executing device and the terminal device. A transmission unit that transmits screen display information to the terminal device for displaying a function screen indicating one or more functions that can be executed by the function execution device on the terminal device via the first wireless interface. After the function screen is displayed on the terminal device, when the first execution instruction for causing the function executing device to execute the first function is input to the terminal device, the first wireless interface is used. Through the first establishment unit that establishes the first wireless connection with the terminal device and the first wireless connection, the specific authentication information is transmitted via the first wireless interface. A receiving unit that receives an execution request from the terminal device without executing the used target process, and the execution request causes the function execution device to execute the target process using the specific authentication information. The receiving unit, the target processing executing unit that executes the target processing using the specific authentication information in response to receiving the execution request from the terminal device, and the specific After the target process using the authentication information is executed, the communication of the first function execution information for executing the first function is executed with the terminal device via the first wireless interface. The communication execution unit of 1 may be provided.

上記の構成によれば、機能実行装置は、特定の認証情報を利用した対象処理を実行することなく、画面表示情報を端末装置に送信する。これにより、特定の認証情報を利用した対象処理が実行されることなく、機能画面が端末装置に表示される。そして、機能実行装置は、機能画面が端末装置に表示された後に、端末装置に第1の実行指示が入力される場合に、特定の無線接続を利用して、端末装置から実行要求を受信し、その後、特定の認証情報を利用した対象処理を実行する。そして、機能実行装置は、対象処理が実行された後に、第1の機能実行情報の通信を端末装置と実行する。即ち、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれないことに起因して、端末装置に第1の実行指示が入力されない場合には、特定の認証情報を利用した対象処理が実行されない。従って、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれない場合に、認証情報を利用した対象処理が実行されるのを抑制することができる。 According to the above configuration, the function executing device transmits the screen display information to the terminal device without executing the target process using the specific authentication information. As a result, the function screen is displayed on the terminal device without executing the target process using the 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 receives an execution request from the terminal device by using a specific wireless connection. After that, the target process using the specific authentication information is executed. Then, the function execution device executes the communication of the first function execution information with the terminal device after the target process is executed. 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 one or more functions that can be executed by the function execution device, the specific authentication information Target processing using is not executed. Therefore, when the function desired by the user is not included in one or more functions that can be executed by the function execution device, it is possible to suppress the execution of the target process using the authentication information.

また、本明細書で開示する端末装置のコンピュータプログラムは、機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した対象処理を実行することなく、前記端末装置の第1の無線インターフェースを介して、前記機能実行装置から、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を受信する受信部と、前記機能実行装置から前記画面表示情報が受信される場合に、前記機能画面を前記端末装置の表示部に表示させる表示制御部と、前記機能画面が前記表示部に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との第1の無線接続を確立するための命令を前記端末装置のOS(Operating Systemの略)プログラムに供給する供給部と、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、実行要求を前記機能実行装置に送信する送信部であって、前記実行要求は、前記特定の認証情報を利用した前記対象処理を前記機能実行装置に実行させるための要求である、前記送信部と、
前記特定の認証情報を利用した前記対象処理が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための機能実行情報の通信を前記機能実行装置と実行する通信実行部と、として機能させてもよい。
Further, the computer program of the terminal device disclosed in the present specification is the terminal device without executing the target process using the specific authentication information prepared by the function executing device and one of the terminal devices. A receiver that receives screen display information for displaying a function screen indicating one or more functions that can be executed by the function executing device on the terminal device from the function executing device via the first wireless interface of the above. When the screen display information is received from the function execution device, a display control unit for displaying the function screen on the display unit of the terminal device, and a display control unit after the function screen is displayed on the display unit. When the first execution instruction for causing the function executing device to execute the function of 1 is input to the terminal device, the first wireless connection with the function executing device is performed via the first wireless interface. An execution request is issued via the first wireless interface by using a supply unit that supplies an instruction for establishing The transmission unit that transmits to the function execution device, and the execution request is a request for causing the function execution device to execute the target process using the specific authentication information.
After the target process using the specific authentication information is executed, the function execution information for executing the first function is communicated with the function execution device via the first wireless interface. It may function as a communication execution unit.

上記の構成によれば、端末装置は、特定の認証情報を利用した対象処理を実行することなく、機能実行装置から画面表示情報を受信する。これにより、特定の認証情報を利用した対象処理が実行されることなく、機能画面が端末装置に表示される。そして、端末装置は、機能画面を表示した後に、端末装置に第1の実行指示が入力される場合に、第1の無線接続を利用して、機能実行装置に実行要求を送信して、特定の認証情報を利用した対象処理を機能実行装置に実行させる。そして、端末装置は、対象処理が実行された後に、第1の機能実行情報の通信を機能実行装置と実行する。即ち、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれないことに起因して、端末装置に第1の実行指示が入力されない場合には、特定の認証情報を利用した対象処理が実行されない。従って、機能実行装置が実行可能な1個以上の機能の中にユーザが望む機能が含まれない場合に、認証情報を利用した対象処理が実行されるのを抑制することができる。 According to the above configuration, the terminal device receives the screen display information from the function execution device without executing the target process using the specific authentication information. As a result, the function screen is displayed on the terminal device without executing the target process using the specific authentication information. Then, when the first execution instruction is input to the terminal device after the function screen is displayed, the terminal device transmits an execution request to the function execution device by using the first wireless connection to identify the terminal device. Let the function execution device execute the target process using the authentication information of. Then, after the target process is executed, the terminal device executes the communication of 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 one or more functions that can be executed by the function execution device, the specific authentication information Target processing using is not executed. Therefore, when the function desired by the user is not included in one or more functions that can be executed by the function execution device, it is possible to suppress the execution of the target process using the authentication information.

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

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

(第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 Example)
(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 of Access Point) 200. The terminal 10 participates in the wireless network formed by the AP200 (hereinafter referred to as "AP network"). The AP200 stores an SSID (abbreviation of Service Set Identifier) “ap01” that identifies the 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, a smartphone), a PDA, or a tablet PC. The terminal 10 includes a display unit 12, a wireless LAN interface 14, a BT (abbreviation of Bluetooth (registered trademark)) interface 16, and a control unit 30. Each part 12 to 30 is connected to a bus line (reference numeral omitted). In the following, the interface will be 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 / F14 is a wireless interface for executing wireless communication according to the Wi-Fi method (hereinafter, referred to as "Wi-Fi communication"). The Wi-Fi method is, for example, the IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and the equivalent standard (for example, 802.11a, 11b, 11g, 11n, 11ac, etc.). According to the above, it is a wireless communication method for executing wireless communication. The wireless LANI / F14 specifically supports the WFD (abbreviation of Wi-Fi Direct (registered trademark)) method developed by the Wi-Fi Alliance. The WFD method is a wireless communication method described in the standard "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" created by 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 of the WFD system G / O (abbreviation of Group Owner) state, CL (abbreviation of Client) state, and device state. For example, the terminal 10 operates as a WFD type client and is a wireless network formed by an external device (for example, a printer 100) operating as a WFD type G / O (hereinafter referred to as "WFD network"). It is possible to participate as a child 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 / F16 is an I / F for executing wireless communication according to the BT method. The BT method is, for example, a wireless communication method based on the standard of IEEE802.5.1 and a standard equivalent thereto. More specifically, BTI / F16 supports BLE (short for Bluetooth Low Energy). BLE is a standard realized in the BT system version 4.0 or later. In this embodiment, it is assumed that BTI / F16 supports BLE realized in version 4.2. The BTI / F16 can perform wireless communication according to BLE (hereinafter referred to as "BLE communication"). In the modified example, the BTI / F16 may support BLE realized in a version 4.2 or later (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)よりも大きい。 The differences between the Wi-Fi method and the BT method will be described. 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 frequency of the carrier wave in Wi-Fi communication is the 2.4 GHz band or the 5.0 GHz band. The frequency of the carrier wave in BT communication is the 2.4 GHz band. That is, when the 5.0 GHz band is adopted as the carrier frequency in Wi-Fi communication, the carrier frequency in Wi-Fi communication and the carrier frequency in BT communication are different. Further, the maximum distance at which Wi-Fi communication can be performed (for example, about 100 m) is larger than the maximum distance at which BT communication can be performed (for example, about several tens of m).

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

OS36は、端末10の基本的な動作を制御するためのプログラムである。アプリ38は、Wi−Fi方式に従った無線接続を利用して、印刷データをプリンタ100に送信するためのアプリケーションである。アプリ38は、例えば、プリンタ100のベンダによって提供されるインターネット上のサーバから端末10にインストールされてもよいし、プリンタ100と共に出荷されるメディアから端末10にインストールされてもよい。 The OS 36 is a program for controlling the basic operation of the terminal 10. The application 38 is an application for transmitting print data to the printer 100 by using a wireless connection according to the Wi-Fi method. The application 38 may be installed on the terminal 10 from a server on the Internet provided by the vendor of the printer 100, or may be installed on the terminal 10 from the media shipped 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 (for example, a peripheral device of the terminal 10) capable of executing a printing function. The printer 100 includes a display unit 112, a wireless LANI / F114, a BTI / F116, and a 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 LANI / F114 is the same as the wireless LANI / F14 of the terminal 10. That is, the wireless LANI / F114 supports the WFD method. The BTI / F116 is the same as the BTI / F16 of the terminal 10. That is, BTI / F116 supports BLE.

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

プロトコルスタック138は、BLEに従ったプロトコルスタックを含む。プリンタ100は、プロトコルスタック138を利用してBT方式のサーバとして動作し、BT方式のクライアントとして動作する端末10とBLE通信を実行可能である。 The protocol stack 138 includes a protocol stack according to BLE. The printer 100 operates as a BT system server by using the protocol stack 138, and can execute BLE communication with the terminal 10 operating as a BT system 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」と記載する。 The protocol stack 138 has a hierarchical structure shown in FIG. L2CAP (abbreviation of Logical Link Control and Application Protocol) is a stack for establishing a wireless connection (hereinafter referred to as "L2CAP Link") via BTI / F116. SMP (abbreviation of Security Manager Protocol) and ATT (abbreviation of Attribute Protocol) are upper layers of L2CAP. SMP is a protocol for encrypting information communicated via L2CAP Link. ATT is a protocol for defining an access method between a server and a client in communication via L2CAP Link. GATT (abbreviation of Generic Attribute Profile) is an upper layer of ATT and is a protocol for defining the 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 the following, the Primery Service will be simply referred to 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 for establishing a wireless connection (hereinafter, referred to as “WFD connection”) according to the WFD method. The WFD information 160 includes an SSID “p01” that identifies the WFD network formed by the printer 100 that operates as a G / O, and a password “yyy” that is used in the WFD network. The WFD information 160 may be stored in the memory 134 in advance from the shipping stage of the printer 100, 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 indicates "ON" indicating that the transmission of the ADV signal is restarted immediately after stopping the transmission of the Advanced signal (hereinafter, simply referred to as "ADV signal") according to the BT method, and the transmission of the ADV signal. Indicates a value of "OFF" indicating that the transmission of the ADV signal is not resumed immediately after the stoppage of. 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と、に分けられる。
(PS group concept; Fig. 2)
The concept of the PS group included in the protocol stack 138 will be described with reference to FIG. The table in FIG. 2 conceptually shows the PS group for ease of understanding, and is different from the specific data structure of the PS group. The data structure of the PS group will be described with reference to FIGS. 3 to 5 after the description of FIG. 2 is completed. 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. In the following, GAP Service is simply referred to as "GA". GA138A is a PS for transmitting information regarding BTI / F116. The information includes, for example, a device name DN indicating BTI / F116, information indicating a standard supported by BTI / F116, and the like. The GA138A is assigned a UUID "0x1800" that is predetermined by the BT method standard as an identifier that identifies the PS corresponding to the GA. GA138A includes a plurality of Characteristic. Characteristic is information that defines a specific function of PS. The plurality of Characteristics included in GA138A include the Characteristic "Device Name" that defines the transmission of the device name DN. The "Device Name" is assigned a UUID "0x2A00" that is predetermined by the BT standard as an identifier that identifies the Characteristic. In FIG. 2, the description of other Characteristics included in GA138A is omitted.

(第2種のPS)
第2種のPSは、Function Service138Bと、AP Connection138Cと、WFD Connection138Dと、BT Control138Eと、Error Service138Fと、を含む。
(Type 2 PS)
The second kind of PS includes Function Service 138B, AP Connection 138C, WFD Connection 138D, BT Control 138E, and Eror 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)
In the following, Function Service will be simply referred to as "FS". The FS 138B is a PS for transmitting functional information FI indicating a plurality of functions that can be executed by the printer 100. The function information FI includes information indicating a printing function, information indicating a function for establishing a wireless connection (hereinafter referred to as "AP connection") with an AP (for example, AP200), and information indicating a function for establishing a WFD connection. , Information indicating the function of transmitting the error URL, and the like. The FS138B is assigned a UUID "aaa0" defined by the vendor of the printer 100 as an identifier that identifies the PS corresponding to the FS. Also below, the UUID that identifies the second type of PS is determined by the vendor of the printer 100. The UUID "aaa0" has a number of digits larger than the number of digits of the UUID (for example, UUID "0x1800") predetermined by the standard of the BT method, and is described in a simplified manner in the present specification. There is.

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

(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)
In the following, AP Connection will be simply referred to as "AC". AC138C is a PS for establishing an AP connection. A UUID "bbb0" is assigned to the AC138C. 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 the transmission of AP status information indicating the status related to the AP connection of the printer 100. The AP state information indicates any of a plurality of states including "File", "Enable", "Busy", and "Error". “Disable” indicates that the printer 100 is set to a state in which the establishment of the AP connection is not permitted. "Enable" indicates that the printer 100 is set to allow the establishment of the AP connection. “Busy” indicates that the process for establishing the AP connection is being executed. "Error" indicates that the process for establishing the AP connection has failed.

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

「Connection Information」は、通信相手(例えば端末10)が無線接続を確立しているAP(例えばAP200)のSSID及びパスワードの受信を定義するCharacteristic(UUID「bbb3」)である。 The "Connection Information" is a Characteristic (UUID "bbb3") that defines the reception of the SSID and password of the AP (for example, AP200) to which the communication partner (for example, the 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 the reception of instructions for changing the value of Attribute Permission, which will be described later. The Change Permission is used in the third and fourth embodiments, and is 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)
In the following, WFD Connection is simply referred to as "WC". WC138D is a PS (UUID "ccc0") for establishing a WFD connection. WC138D includes four Characteristic including "Connection Characteristic", "Connection Information", "Public Key", and "Change Characteristic".

「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接続を確立するための処理が失敗したことを示す。 The “Connection Status” is a Characteristic (UUID “ccc1”) that defines the transmission of WFD status information indicating the status of the printer 100 regarding the WFD connection. The WFD state information indicates any of a plurality of states including "Disable", "Enable", "Ready", "Start", and "Error". “Disable” indicates that the printer 100 is set to a state in which the establishment of the WFD connection is not permitted. "Enable" indicates that the printer 100 is set to allow the 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」)である。 The "Connection Information" is a Characteristic (UUID "ccc2") that defines the transmission of WFD information encrypted using a public key (hereinafter referred to as "encrypted WFD information").

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

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

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

「Pairing Control」は、確立済みのL2CAP Linkを切断するための指示の受信を定義するCharacteristic(UUID「ddd1」)である。 The "Pailing Control" is a Characteristic (UUID "ddd1") that defines the reception of instructions for disconnecting an established L2CAP Link.

「Advertising Control」は、再開フラグ162を「ON」から「OFF」に変更するための指示の受信を定義するCharacteristic(UUID「ddd2」)である。 The "Advertising Control" is a Characteristic (UUID "ddd2") that defines the reception of an instruction to change the restart 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)
In the following, Eror Service is simply referred to as "ES". ES138F is a PS (UUID "eeee0") for transmitting an error URL. The error URL is a URL indicating a Web page in which a method for clearing an error state (for example, a paper jam) in which the printer 100 cannot execute the printing function is described. The ES138F includes a Characteristic "Error Information (UUID" eee1 ")" that defines the transmission of an 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. Subsequently, a specific data structure of the PS group will be described with reference to FIGS. 3 to 5.

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". In FIGS. 3 to 5, some data structures after "0x0002" are omitted. Therefore, Handle after "0x0002" is represented by the symbol "nk (k = 1, 2, 3, ...)" Instead of the actual value. The 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 "AColor") 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, the APer stores values indicating each of the four items. The first item is an item indicating whether or not to allow reading or writing of information, and one value indicating one of "Readable", "Writeable", and "Readable and writeable" is stored in APer. Will be done. The second item is an item indicating whether or not to request Encryption when reading or writing information, and one value indicating either "Encryption required" or "No encryption required" is set to APer. Be 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" is set to APer. Be remembered. The fourth item is an item indicating whether or not Authentication is required when reading or writing information, and one value indicating either "Authorization required" or "No authorization required" is set to APer. Will be remembered. If a value indicating any of "Encryption required", "Authentication required", and "Authorization required" is stored in APer, the information is provided on condition that authentication communication according to SMP is executed. Read or write is allowed. In addition, when the values indicating "No encryption required", "No authentication required", and "No authorization required" are stored in APer, information can be read or written without executing authentication communication according to SMP. Allowed. These are simplified and described in FIGS. 3 to 5. For example, when 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 the APer. Is actually remembered in. Further, the description of APer in FIGS. 3 to 5 is omitted for the second item and the fourth item. Actually, a value indicating "No encryption required" as the second item and a value indicating "No authorization required" as the fourth item are stored in each APer. In the following, 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. When APer stores each value indicating "Readable without authentication when discoverable", the value indicating "Readable" is used as the first item and "No authentication required" is used as the third item. A value indicating "" and a value indicating "No authorization required" as the fourth item above are stored in the APer, and a condition that the state of the server is the Discoverable state described later (that is, "when"). When "discoverable") is satisfied, a value indicating that the reading of information is permitted in accordance with "No authentication required" and "No authorization required" without executing authentication communication according to SMP is given to the APer. It is remembered. As described above, it should be noted that the description of Aper in the drawings does not completely match 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 "0x0001" to a predetermined value (value immediately before "n2") of Handle. The AType corresponding to Handle "0x0001" includes a UUID "0x2800" indicating that it is the first data in the data group constituting one PS. The AVale corresponding to the Handle "0x0001" includes a UUID "0x1800" to distinguish the GA138A from other PSs. The APer corresponding to Handle "0x0001" includes each value indicating "Readable without authentication". Each of these values 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 a UUID "0x2803" indicating Characteristic Specification. Characteristic Declaration is data that defines the properties of Characteristic, UUID, and the like. Here, the property includes a plurality of information including "Read" indicating that the Characteristic defines the information to be read, "Write" indicating that the Characteristic defines the information to be written, and the like. Any one of them is shown. The AVALe corresponding to the Handle "0x0002" includes a property indicating "Read", a Handle "n1" corresponding to the Characteristic information, and a UUID "0x2A00" of the Characteristic. The 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状態であることに関する所定の値が含まれているものとする。 The Type corresponding to the Handle "n1" includes the UUID "0x2A00" of the Characteristic "Dvice Name". AColor corresponding to Handle "n1" includes the device name DN. The APer corresponding to Handle "n1" includes each value indicating "Readable without authentication when discoverable". Each of these values can read information (here, device name DN) without executing encryption of information according to SMP when the state of the BT peripheral (that is, the printer 100) is the Discoverable state. It means that it is possible. In other words, if the peripheral state is not the Discoverable state (that is, the non-Discoverable state), the information can be read on condition that the information is encrypted according to SMP. Means. Here, the Discoverable state is a state in which the peripheral repeatedly executes the transmission of the ADV signal. In other words, the Discoverable state is a state in which the central can detect the presence of the peripheral when the ADV signal is received by the BT type central. 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" defined in the BT system standard, or the LE General Discoverable Mode flag "1" defined in the BT system standard. is there. On the other hand, in the non-discoverable state, the peripheral does not execute the transmission of the ADV signal, or the peripheral repeatedly executes the transmission of the ADV signal, and the ADV signal contains the above-mentioned predetermined value. In other words, the ADV signal includes both the LE Limited Discoverable Mode flag "0" and the LE General Discoverable Mode flag "0"). "Readable without authentication when discoverable" is an item defined in the standard of version 4.2 or later. In the following, unless otherwise specified, it is assumed that the ADV signal contains a predetermined value relating to 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 the GA138A has the above data structure, the device name DN in the GA138A is read as follows. When the CPU 132 (that is, the server) receives the Read By Type Request signal with the UUID "0x2803" specified from the client, the client changes to the UUID "0x2803" according to the "Readable without authentication" shown in the APer corresponding to the UUID "0x2803". Allows reading of the corresponding AVale (ie, properties "Read", Handle "n1", and UUID "0x2A00"). As a result, the client can read (that is, receive) this information, and can execute "Read" of the information corresponding to the Handle "n1" and the UUID "0x2A00" based on the information. Can be known. Then, the client transmits a Read By Type Request signal with the UUID "0x2A00" specified 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 the UUID "0x2A00" according to the "Readable without authentication when discoverable" indicated by the APer corresponding to the 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 of PS, among the above items such as "Readable without authentication", the item predetermined by SIG is adopted. That is, for example, for the 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, with respect to the second type of 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 a UUID "0x2800" indicating that it is the head data of FS138B. The AVALe corresponding to the Handle "n2" includes a UUID "aaa0" to distinguish the FS138B from other PSs. The 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 a UUID "0x2803" indicating that it is a Characteristic Specification. The AValue corresponding to the Handle "n3" includes the property "Read", the Handle "n4", and the UUID "aaa1". The 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」を示す各値を含む。 The Type corresponding to the Handle "n4" includes the UUID "aaa1" of the Characteristic "Function Information". AColor corresponding to Handle "n4" includes functional information FI. The 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 range “n5” to “n13” of Handle. The ATtype corresponding to Handle "n5" includes a UUID "0x2800" indicating that it is the head data of AC138C. The AVALe corresponding to Handle "n5" includes a UUID "bbb0" to distinguish the AC138C from other PS. The 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 ATtype corresponding to Handle "n6" to "n9" includes a UUID "0x2803" indicating that it is a Characteristic Declaration. The AValue corresponding to the Handle "n6" includes the property "Read", the Handle "n10", and the UUID "bbb1". Similarly, each AValue corresponding to Handle "n7" to "n9" includes a property, a Handle, and a UUID. The property corresponding to Handle "n8" and "n9" is not "Read" but "Write". Further, each APer corresponding to Handle "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」を示す各値を含む。 The Type corresponding to the Handle "n10" includes the UUID "bbb1" of the Characteristic "Connection Characteristic". AColor corresponding to Handle "n10" includes AP status information (for example, "Disable"). The 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」を示す各値を含む。 The Type corresponding to the Handle "n11" includes the UUID "bbb2" of the Characteristic "IP Address". The AVALe corresponding to Handle "n11" includes the IP address IA. The 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とパスワード)が書き込まれることが可能であることを意味する。 The Type corresponding to the Handle "n12" includes the UUID "bbb3" of the Characteristic "Connection Information". The SSID and password of the AP (for example, 200) are written from the client to the AVale corresponding to the Handle "n12". Before the information is written, the AColor includes empty information. The APer corresponding to Handle "n12" includes each value indicating "Writeable without authentication". Each of these values means that the information (here, the 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」を示す各値を含む。 The Type corresponding to the Handle "n13" includes the UUID "bbb4" of the Characteristic "Change Permission". A Permission change instruction for changing the value of the Attribute Permission is written in the AColor corresponding to the Handle "n13". The 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 AC138C has the above-mentioned data structure, for example, information is written in the AVALe corresponding to the UUID "n12" in the AC138C as follows. When the CPU 132 (that is, the server) receives the Read By Type Request signal for which the UUID "0x2803" is specified from the client, the client causes each UUID "0x2803" according to the "Readable without authentication" indicated in the APer corresponding to each UUID "0x2803". (Ie, the property "Read (or Write)", Handle "n10" to "n13", and UUID "bbbb1" to "bbbb4") corresponding to "" are allowed to be read. As a result, the client can read out such information, and knows that it is possible to execute "Write" of the information corresponding to, for example, Handle "n12" and UUID "bbb3" based on the information. Can be done. Then, the client specifies Handle "n12" and transmits a Write Request signal including information to be written (that is, SSID and password) to the server. When the server receives the signal, it permits the information to be written to the AColor corresponding to the Handle "n12" according to the "Writeable without authentication" indicated by the APer corresponding to the 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 range “n14” to “n22” of Handle. The AType corresponding to Handle "n14" includes a UUID "0x2800" indicating that it is the head data of WC138D. The AVALe corresponding to Handle "n14" includes a UUID "ccc0" to distinguish the WC138D from other PS. The 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 ATtype corresponding to Handle "n15" to "n18" includes a UUID "0x2803" indicating that it is a Characteristic Declaration. The AVALe corresponding to the Handle "n15" includes the property "Read", the Handle "n19", and the UUID "ccc1". Similarly, each AValue corresponding to Handle "n16-" to "n18" includes a property, a Handle, and a UUID. Note that each property corresponding to Handle "n17" and "n18" is not "Read" but "Write". Further, each APer corresponding to Handle "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」を示す各値と、を含む。 The Type corresponding to Handle "n19" includes the UUID "ccc1" of the Charactisti "Connection Status". AColor corresponding to Handle "n19" includes WFD state information (eg, "Disable"). The 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 ATtype corresponding to the Handle "n20" includes the UUID "ccc2" of the Characteristic "Connection Information". The AVALe corresponding to Handle "n20" may include encrypted WFD information. Here, before the WFD information 160 is encrypted, the AVBlue does not include the encrypted WFD information but includes empty information. Further, the 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 the Handle "n21" includes the UUID "ccc3" of the Characteristic "Public Key". The public key is written in the AColor corresponding to the Handle "n21". In addition, the AType corresponding to the Handle "n22" includes the UUID "ccc4" of the Characteristic "Change Characteristic". Each instruction for changing the state related to the WFD connection (for example, an table instruction for changing the state of the printer 100 from "Discable" to "Enable", and the printer 100 as a G / O are given to the AVale corresponding to the Handle "n22". The Start instruction for operation) is written. Each APer corresponding to each Handle "n21" and "n22" includes a 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 a UUID "0x2800" indicating that it is the head data of BC138E. The AVALe corresponding to the Handle "n23" includes a UUID "ddd0 ..." to distinguish the BC138E from other PSs. The 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 ATtype corresponding to Handle "n24" and "n25" includes a UUID "0x2803" indicating that it is a Characteristic Declaration. The AVALE corresponding to the Handle "n24" includes the property "Write", the Handle "n26", and the UUID "ddd1", and similarly, the AVALE corresponding to the Handle "n25" includes the property, the Handle, and the property. Includes UUID and.

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 the Handle "n26" includes the UUID "ddd1" of the Characteristic "Paring Control". A disconnection instruction for disconnecting the L2CAP Link is written in the AVale corresponding to the Handle "n26". The AType corresponding to the Handle "n27" includes the UUID "ddd2" of the Characteristic "Advertising Control". A restart flag OFF instruction for changing the restart flag 162 from "ON" to "OFF" is written in the AColor corresponding to the Handle "n27". Each APer corresponding to each Handle "n26" and "n27" includes a 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 a UUID "0x2800" indicating that it is the head data of ES138F. The AVale corresponding to the Handle "n28" includes a UUID "eee0" for distinguishing the ES138F from other PSs. The 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 the Handle "n29" includes a UUID "0x2803" indicating that it is a Characteristic Specification. The AVale corresponding to the Handle "n29" includes the property "Read", the Handle "n30", and the UUID "eee1". The 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 the Handle "n30" includes the UUID "eee1" of the Characteristic "Error Information". The AValue corresponding to Handle "n30" may include an error URL. Here, when the printer 100 is not in an error state, the AVBlue does not include the error URL but includes empty information. Further, the 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 explaining the process executed by the terminal 10 and the printer 100 of this embodiment, the process executed by the mobile 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 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 includes a program different from the program 136 for realizing the processing of this embodiment, and does not store the restart flag 162. In addition, the PS group of the comparative example contains at least GA138A and FS138B. In the following, from the viewpoint of ease of understanding, the processing executed by the CPU of the terminal 300 according to the OS 36 and the application 338 will be described mainly for the OS 36 and the application 338, respectively. Further, since all the communication of the comparative example is executed via the BTI / F of the terminal 300 and the printer 500, the description of "via the BTI / F" will be omitted below.

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

また、T14では、プリンタ500の電源を投入する操作がユーザによってプリンタ500に実行される。T20では、プリンタ500は、ADV信号のブロードキャスト送信を開始する。当該信号は、BT方式の規格によって予め決められている接続許可パラメータ「ADV_IND」を含む。当該パラメータは、ADV信号を受信したデバイスとのL2CAP Linkを確立することを許可することを示す。なお、変形例では、接続許可パラメータは、「ADV_DIRECT_IND」であってもよい。 Further, in T14, the operation of turning on the power of the printer 500 is executed by the user on the printer 500. At T20, the printer 500 starts broadcast transmission of the ADV signal. The signal includes the connection permission parameter "ADV_IND" which is predetermined by the BT system standard. The parameter indicates that it is allowed to establish an L2CAP Link with the device that received the ADV signal. In the modified example, 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 the Scan start command from the application 338 (T12) and receives the ADV signal from the printer 500 (T20), the OS 36 transmits the Scan Request signal to the printer 500 at T22. The signal is a signal for requesting information on the device (here, printer 500) that is the source of the ADV signal.

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 as a response to the Scan Request signal. The signal includes the model name "model0" of the printer 500. When the OS 36 receives the signal, the OS 36 supplies the signal to the 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 application 338 displays the connection confirmation screen on the display unit of the terminal 300 at the 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 a model name "model0" included in the Scan Response signal and a connection button for receiving 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 the selection of the connection button in the connection confirmation screen at T28, the application 338 supplies the connection start command to the OS 36 at T30. The connection start command is a command for starting transmission of the CONNECT_IND signal. The signal is a signal for requesting the establishment of L2CAP Link. Of the processes T30 to T80 described later, which are started by the acquisition of the connection start command as a trigger, the processes executed by the OS 36 are automatically executed by the OS 36 and cannot be stopped by the 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 in the T30, the OS 36 transmits the CONNECT_IND signal to the printer 500 in the T32. When the signal is transmitted to the printer 500, an L2CAP Link is established between the terminal 300 and the printer 500 at the T34.

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

また、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群の構成を示す情報を読み出すための信号である。 In addition, OS36 uses the L2CAP Link established in T34 to execute the processes from T38 to T78, which will be described later. The processing of T38 to T78 is executed according to the specifications of iOS. That is, iOS has a specification that automatically acquires PS group information when L2CAP Link is established. At T38, the OS 36 transmits a Read By Group Type Request signal (hereinafter simply referred to as a “Group_Req signal”) defined by the ATT to the printer 500. The Group_Req signal is a signal for reading information indicating the configuration of the PS group in 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 receives the UUID of each PS, the first Handle of each PS, and the last Handle of each PS as a response to the signal at T40. Send to. Specifically, the printer 500 acquires the AValue corresponding to the UUID "0x2800" indicating that it is the head data from the PS group. As shown in FIG. 3, the UUID "0x1800" of GA138A, the "aaa0" of FS138B, and the like are acquired as the UUID corresponding to the UUID "0x2800". Further, the printer 500 has a first Handle of each PS (for example, the first Handle "0x0001" of GA138A, a first Handle "n2" of FS138B, etc.) and a last Handle of each PS (for example, the last Handle of GA138A). (Value before n2), the last Handle "n4" of FS138B, etc.) and. Then, the printer 500 transmits each acquired information to the terminal 300. As a result, the terminal 300 can 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 sequentially transmits a plurality of Read By Type Request signals (hereinafter, simply referred to as “Type_Req signals”) corresponding to the plurality of PSs to the printer 500 by using each information received by the T40. To do. The Type_Req signal is a signal for which AType is specified, and is a signal for reading the AColor corresponding to the specified AType. Specifically, the OS 36 executes the following processing.

まず、OS36は、T42Aにおいて、最も小さい値を有するHandle「0x0001」に対応するPSであるGA138Aについて、Type_Req信号をプリンタ500に送信する。具体的には、OS36は、T42Aにおいて、UUID「0x2803」(即ちCharacteristic Declaration)と、GA138Aの最初のHandle「0x0001」と、GA138Aの最後のHandle(記載省略)と、を含むType_Req信号をプリンタ500に送信する。 First, the OS 36 transmits a Type_Req signal to the printer 500 for GA138A, which is a PS corresponding to Handle “0x0001” having the smallest value in T42A. Specifically, in T42A, the OS 36 prints a Type_Req signal including a UUID "0x2803" (that is, Characteristic Classification), a first Handle "0x0001" of GA138A, and a last Handle of GA138A (omitted). 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 in the T42A, the printer 500 selects the Type_Req signal from the data group included in the range of the first Handle "0x0001" included in the Type_Req signal and the Handle indicated by the last Handle. The Handle "0x0002" corresponding to the included UUID "0x2803" is specified. The printer 500 then identifies the VALUE and APer corresponding to the identified Handle "0x0002". Here, the identified APer indicates "Readable without authentication". Therefore, in the T42B, the printer 500 does not perform the encryption of the information according to the SMP, and the specified Handle “0x0002” and the specified AValue (that is, the property “Read”, Handle “n1”, And, UUID "0x2A00") and are transmitted 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とを含む。 When the OS 36 receives the Handle "0x0002" and the AColor from the printer 500 in the T42B, the OS 36 transmits the Type_Req signal including the UUID "0x2A00" in the ABlue to the printer 500 in the T42C. The signal further includes the first Handle "0x0001" of GA138A and the last Handle of GA138A.

プリンタ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 in the T42C, the printer 500 selects the Type_Req signal from the data group included in the range of the first Handle "0x0001" included in the signal and the Handle indicated by the last Handle. The Handle "n1" corresponding to the included UUID "0x2A00" is specified. The printer 500 then identifies the VALUE and APer corresponding to the identified Handle "n1". Here, the identified APer indicates "Readable without authentication when discoverable". As mentioned above, at this time, the printer 500 is in a non-discoverable state. Therefore, the printer 500 is permitted to read the information on condition that the information is encrypted according to the SMP. At present, a key for executing information encryption according to SMP (Long Term Key, which will be described later in this comparative example) has not been generated. For this reason, the printer 500 cannot execute the encryption of the information according to the SMP, and as a result, the Error Response signal is transmitted to the terminal 300 at the T46.

OS36は、T46において、プリンタ500からError Response信号を受信すると、T48において、Pairing Request信号をプリンタ500に送信する。当該信号は、SMPに関する処理を開始させるための信号である。 When the OS36 receives the Error Response signal from the printer 500 at the T46, the OS36 transmits the Pairing Request signal to the printer 500 at the T48. The 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」を知ることができる。 When the printer 500 receives the Pairing Request signal from the terminal 300 at T48, the printer 500 transmits the Pairing Response signal to the terminal 300 at T50. Then, the printer 500 displays the PIN code "1234" at T52. As a result, the user can know the PIN code "1234".

OS36は、T50において、プリンタ500からPairing Response信号を受信すると、T54において、PINコードを入力するためのPIN入力画面を端末300の表示部に表示させる。 When the OS 36 receives the Pairing Response signal from the printer 500 at the T50, the OS 36 causes the display unit of the terminal 300 to display a PIN input screen for inputting the PIN code at the 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, in T60, the OS 36 accepts the input of the PIN code "1234" on the PIN input screen. As a result, in the T62, authentication communication according to SMP is executed between the OS 36 and the printer 500. In at least a part of the process of the authentication communication, the encrypted information which is the information encrypted by the input PIN code "1234" is communicated. 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 processing after T72, which will be described later, the information BLE-communicated between the OS 36 and the printer 500 is encrypted by the Key. In FIG. 7, the thin line arrow and the thick line arrow indicate communication of unencrypted information and communication of information encrypted according to SMP, respectively. The same applies to the following figure.

T62の認証通信が完了すると、OS36は、T72において、図6のT42Cと同様のType_Req信号をプリンタ500に再び送信する。ただし、上述したように、当該信号内の情報は、Keyによって暗号化されている。 When the authentication communication of the T62 is completed, the OS36 retransmits the Type_Req signal similar to the T42C of FIG. 6 to the printer 500 at the T72. However, as described above, the information in the signal is encrypted by 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 on the T72, the printer 500 decodes the information in the signal by Key, and the range of the first Handle "0x0001" included in the decoded information and the Handle indicated by the last Handle. The Handle "n1" corresponding to the UUID "0x2A00" included in the Type_Req signal is specified from the data group included in the data group. The printer 500 then identifies the VALUE and APer corresponding to the identified Handle "n1". Here, the identified APer indicates "Readable without authentication when discoverable". Although the printer 500 is in a non-discoverable state, since the T62 authentication process has already been executed, it is possible to perform information encryption according to SMP. Therefore, the printer 500 is allowed to read the information (that is, the device name DN) contained in the AVBlue. Therefore, the printer 500 encrypts the device name DN by using 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, the OS 36 transmits a Type_Req signal to the printer 500 in the T76A for the PS corresponding to the Handle, which is the second smallest after the Handle “0x0001” in the PS group. That is, the Type_Req signal is transmitted to the printer 500 for FS138B (Handle “n2”), which is the next PS of GA138A (Handle “0x0001”). The signal includes a UUID "0x2803", the first Handle "n2" of the FS138B, and the last Handle "n4" of the FS138B. In the T76B, the Handle "n3" corresponding to the UUID "0x2803" and the AValue corresponding to the Handle "n3" (that is, the properties "Read", Handle "n4", and UUID "aaa1") are transmitted 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」を含む。 When the OS 36 receives the Handle "n3" and the AColor from the terminal 300 in the T76B, the OS 36 transmits a Type_Req signal including the UUID "aaa1" to the printer 500 in the 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 in the T76C, the printer 500 decodes the information in the signal by Key, and is indicated by the first Handle "n2" and the last Handle "n4" included in the decoded information. From the data group included in the range of Handle, the Handle "n4" corresponding to the UUID "aaa1" included in the Type_Req signal is specified. The printer 500 then identifies the VALUE and APer corresponding to the identified Handle "n4". Here, the identified APer indicates "Readable without authentication". Therefore, the printer 500 is permitted to read the information (that is, the function information FI) contained in the AVBlue. Therefore, the printer 500 uses the Key to encrypt the function information FI, and at T78, the encrypted function information FI is transmitted to the terminal 300.

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

OS36は、複数個のPSに対応する複数個のType_Req信号の全ての送信が完了すると、T80において、接続完了通知をアプリ338に供給する。接続完了通知は、図6のT30の接続開始命令に対する応答である。 When all transmissions of the plurality of Type_Req signals corresponding to the plurality of PSs are completed, the OS 36 supplies a connection completion notification to the application 338 at the T80. The connection completion notification is a response to the connection start command of 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 obtains the connection completion notification from the OS36 in the T80, the application 338 supplies the OS36 with a list request for requesting a first list indicating each UUID of each PS in the T81A. As a result, the application 338 acquires the first list from the OS 36 in the T81B. Next, the app 338 selects the UUID "aaa0" of the FS138B from the first list in the T81C, and supplies the selected UUID "aaa0" to the OS36. As a result, in T81D, the application 338 is a second list including each property of each Characteristic in FS138B from OS36 and each UUID (here, a list containing only one set of properties "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 OS36 in the T81D, the application 338 selects the UUID "aaa1" from the second list in the T82, and has been selected according to the property "Read" corresponding to the UUID "aaa1". Requests the OS 36 to transmit a Type_Req signal including the UUID "aaa1". As a result, the OS 36 transmits a Type_Req signal including the UUID "aaa1", the first Handle "n2" of the FS138B, and the last Handle "n4" to the printer 500.

プリンタ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 the T82, the printer 500 transmits the function information FI to the terminal 300 as a response to the Type_Req signal at the T84, similarly to the T78.

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

アプリ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 in the T84, the application 338 displays the function screen showing the function of the printer 500 in the T90. The function screen includes the model name "model0" of the printer 500 and character information indicating a printing function among a plurality of functions of the printer 500 indicated by the function information FI. Further, in this case, the functional information FI indicates that the printer 500 can execute the establishment of the AP connection, the establishment of the WFD connection, and the transmission of the 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 receiving an instruction to establish an AP connection. The WFD connection button is a button for receiving an instruction for establishing a WFD connection. The error information button is a button for receiving an instruction to display an error URL. The function screen also includes a Cancel button. The Candle button is a button for receiving an instruction for canceling the subsequent processing.

本比較例では、プリンタ500が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望む機能が存在しない。この場合、ユーザは、T92において、機能画面内のCancelボタンを選択する。この結果、機能画面の表示が終了し、図7の処理が終了する。 In this comparative example, the function desired by the user does not exist among the plurality of functions that the printer 500 can execute (that is, the printing function, the AP connection, and the WFD connection). 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, the authentication communication of the T62 is executed before the function screen is displayed on the terminal 300 at the T90. That is, unless the user inputs the PIN code into the terminal 300 (T60), the function screen is not displayed on the terminal 300. Then, in this comparative example, the function desired by the user is not included in the plurality of functions shown in the function screen. That is, according to this comparative example, the user must input the PIN code even when the function desired by the user is not included in the plurality of functions that can be executed by the printer 500. Therefore, in the present embodiment, when the function desired by the user is not included in the plurality of functions that can be executed by the printer 100, it is suppressed that the authentication communication is executed between the printer 100 and the terminal 10. Realize that. As a result, when the function desired by the user is not included in the plurality of functions that can be executed by the printer 100, the user does not have to execute the work of inputting the PIN code. As a result, the convenience of the user 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)を介して」という説明を省略する。
(Cancel case; FIGS. 8 and 9)
A case where the Cancel button on the function screen is selected in this embodiment will be described with reference to FIGS. 8 and 9. In the following, from the viewpoint of ease of understanding, the processes executed by the CPU 32 of the terminal 10 according to the OS 36 and the application 38 will be described mainly for the OS 36 and the application 38, respectively. The process executed by the CPU 132 of the printer 100 according to the program 136 will be described mainly for the printer 100. Further, since the communication of this embodiment is executed via each BTI / F of the terminal 10 and the printer 100, unless otherwise specified, it is referred to as "via the BTI / F16 (or 116)" below. The explanation 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. The printer 100 sets the restart flag 162 to "ON" at T116 when the operation of turning on the power of the printer 100 is executed by the user at T114. Then, the printer 100 starts broadcast transmission of the ADV signal including the connection permission parameter "ADV_IND" at T120.

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), the OS 36 transmits the Scan Request signal to the printer 100 at T122, and receives the Scan Response signal including the model name "model 1" from the printer 100 at T124. Supply the signal to the app 338.

T126〜T132は、接続確認画面がモデル名「model1」を含む点を除いて、図6のT26〜T32と同様である。OS36は、T132において、CONNECT_IND信号をプリンタ100に送信し、T134において、端末10とプリンタ100の間にL2CAP Linkを確立する。 T126 to T132 are the same as T26 to T32 in FIG. 6 except that the connection confirmation screen includes the model name “model1”. The OS 36 transmits 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 mentioned above, at this time, the restart flag 162 indicates "ON". Therefore, the printer 100 resumes the transmission of the ADV signal at T137 immediately after stopping the transmission of the ADV signal at T136. That is, the printer 100 shifts to the Discoverable state again immediately after shifting from the Discoverable state to the non-Discoverable state. Here, the ADV signal after resumption does not include the connection permission parameter "ADV_IND" but includes the connection disapproval parameter "ADV_NONCONN_IND". The parameter indicates that it does not allow the establishment of an L2CAP Link with the device that received the ADV signal. The device that receives the ADV signal including the parameter does not transmit the Scan_Request signal, and as a result, the L2CAP Link is not established between the device and the 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と同様である。 In addition, OS36 uses the L2CAP Link established in T134 to execute the processes of T138 to T178 described later. T138 to T142C are the same as T38 to 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 in the T142C, the printer 100 is a group of data included in the range of the first Handle "0x0001" included in the signal and the Handle indicated by the last Handle. From the inside, the Handle "n1" corresponding to the UUID "0x2A00" included in the Type_Req signal is specified. The printer 500 then identifies the VALUE and APer corresponding to the identified Handle "n1". Here, the identified APer indicates "Readable without authentication when discoverable". As described above, at present, the printer 100 is in the Discoverable state (T137). Therefore, the printer 100 is allowed to read the information without executing the encryption of the information according to the SMP. As a result, in T144, the printer 100 transmits the device name DN, which is the AValue corresponding to the UUID "0x2A00", to the terminal 10 without executing the encryption of the information according to SMP. In this way, since the printer 100 shifts to the Discoverable state again at T137, when receiving the Type_Req signal at T142C, it does not transmit the Error Response signal to the terminal 10 as in T46 of FIG. 6, that is, PIN. The device name DN can be transmitted to the terminal 10 without asking the terminal 10 to input the code.

OS36は、T144において、プリンタ100からデバイス名DNを受信すると、T176Aにおいて、FS138Bに対応するType_Req信号をプリンタ100に送信する。T176A〜T176Cは、Keyを利用した暗号化が実行されない点を除いて、図7のT76A〜T76Cと同様である。 When the OS 36 receives 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 to T176C are the same as T76A to T76C in FIG. 7, except that encryption using Key is not executed.

プリンタ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 in the T176C, the printer 100 is selected from the data group included in the range of the Handle indicated by the first Handle "n2" and the last Handle "n4" included in the signal. The Handle "n4" corresponding to the UUID "aaa1" included in the Type_Req signal is specified. Next, the printer 100 identifies the VALUE and APer corresponding to the identified Handle "n4". Here, the identified APer indicates "Readable without authentication". Therefore, the printer 100 is permitted to read the information (that is, the function information FI) contained in the AVBlue. As a result, the printer 100 transmits the function information FI to the terminal 10 at T178 without executing the encryption of the information according to the SMP.

OS36は、T178において、プリンタ100から機能情報FIを受信すると、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ100に順次送信し、プリンタ100から残りの各PSのプロパティ「Read」に対応する各AValueを受信する。そして、OS36は、T180において、接続完了通知をアプリ38に供給する。 When the OS 36 receives the function information FI from the printer 100 in T178, the OS 36 sequentially transmits each Type_Req signal corresponding to each of the remaining PSs in the PS group to the printer 100, and the property "Read" of each remaining PS from the printer 100. ", Each Property corresponding to" is received. Then, the OS 36 supplies the 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 in T180, it executes the same processing as in T81A to T81D in FIG. 7, and in T182, the Type_Req signal including the UUID "aaa1". Requests transmission from OS36. As a result, the OS 36 transmits a Type_Req signal including the UUID "aaa1", the first Handle "n2" of the FS138B, and the last Handle "n4" to the printer 100.

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

アプリ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」を含むリスト)を取得する。 When the application 38 acquires the function information FI from the OS36 in T184, it selects the UUID "ddd0" of BC138E from the first list including each UUID of each PS in T185C, and selects the selected UUID "ddd0". Is supplied to OS36. As a result, in T185D, the application 38 acquires a second list of each UUID of each Characteristic in BC138E from OS36 (that is, a list including two UUIDs "dddd1" and "ddd2").

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

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

プリンタ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, in T189A, the printer 100 cuts the L2CAP Link established in T134 in FIG. 8 according to the stored cutting instruction.

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

また、端末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, the terminal 10 displays a function screen indicating the function of the printer 100 at T190. The function screen of the T190 is the same as the function screen of the T90 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 plurality of functions that the printer 100 can execute (that is, the printing function, the AP connection, and the 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 in the T142C (T142C), the printer 100 transmits the device name DN to the terminal 10 without executing the encryption of the information according to the SMP (T144). That is, unlike the comparative example of FIG. 6, the authentication communication is not executed before the function screen is displayed on the terminal 10. As a result, it is possible to prevent the authentication communication from being executed between the printer 100 and the terminal 10 when the function desired by the user is not included in the plurality of functions that can be executed by the printer 100. That is, when the function desired by the user is not included in the plurality of functions that can be executed by the printer 100, the user does not have to execute the work of inputting the PIN code. As a result, the convenience of the user is improved.

(AP接続のケース;図10〜図12)
図10〜図12を参照して、本実施例において機能画面のAP接続ボタンが選択されるケースを説明する。本ケースでは、プリンタ100が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望むAP接続の機能が存在する。この場合、ユーザは、T200において、機能画面内のAP接続ボタンを選択する。
(AP connection case; FIGS. 10 to 12)
A case where the AP connection button on the function screen is selected in this embodiment will be described with reference to FIGS. 10 to 12. In this case, the AP connection function desired by the user exists among the plurality of functions that the printer 100 can execute (that is, the print function, the AP connection, and the 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 receives the selection of the AP connection button in the T200, the application 38 supplies the connection start command to the OS 36 in the T212. As a result, the OS 36 transmits the 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. Then, since the restart flag 162 indicates “ON”, the 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に送信する。 Further, the OS 36 uses the L2CAP Link established in T234 to execute the same communication as T138 to T142B in FIG. 8 (that is, transmission of Group_Req signal and transmission of Type_Req signal including UUID "0x2803"). .. Then, in T242C, the OS 36 transmits a Type_Req signal including the UUID “0x2A00” to the printer 100, similarly to the 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 in the T242C, the APer indicates "Readable without authentication when discoverable", and the printer 100 is in the Discoverable state, as in the case of the T144 in FIG. , T244, the device name DN is transmitted to the terminal 10.

OS36は、T244において、プリンタ100からデバイス名DNを受信すると、図8のT176A〜T178と同様の通信を実行するとともに、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ100に順次送信する。そして、OS36は、図8のケースと同様に、Error Response信号を受信することなく、プリンタ100から残りの各PSのプロパティ「Read」に対応する各AValueを受信し、T250において、接続完了通知をアプリ38に供給する。 When the OS 36 receives the device name DN from the printer 100 in T244, it executes the same communication as T176A to T178 in FIG. 8 and transmits each Type_Req signal corresponding to each remaining PS in the PS group to the printer 100. Send in sequence. Then, as in the case of FIG. 8, the OS 36 receives each VALUE corresponding to the property “Read” of the remaining PS from the printer 100 without receiving the Error Response signal, and notifies the connection completion at the T250. Supply to app 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 in the T250, the application 38 acquires the second list indicating each UUID of each Characteristic in the BC138E from the OS 36 in the T252. Then, the application 38 transmits a Write Request signal including the Handle “n27” corresponding to the UUID “ddd2” in the second list and the restart flag OFF instruction to the printer 100 via the OS 36.

プリンタ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 in the T252, the APer corresponding to the Handle "n27" indicates "Writeable without authentication", so that the restart flag OFF instruction corresponds to the Handle "n27". Store in the ABlue. Then, the printer 100 transmits the 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に記憶される。 Further, at T256, the application 38 transmits a Write Request signal including a Handle “n26” and a disconnection instruction to the printer 100 as in T186 of FIG. 9, and at T258, as in T188 of FIG. 9, the printer 100 Receives a Write Response signal from. As a result, the disconnection instruction is stored in the VALUE corresponding to the 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 ABlue, the printer 100 disconnects the L2CAP Link established in T234 according to the stored disconnection instruction in T260A, and sets the connection permission parameter "ADV_IND" in T260B. The transmission of the including ADV signal is started. Further, in T262, the printer 100 changes the restart flag 162 from "ON" to "OFF" according to the stored restart flag OFF instruction. As a result, the transmission of the ADV signal is not restarted in the 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 OS 36 at T312. T322 to T336 are the same as T132 to T134 in FIG. Here, since the restart flag 162 is changed to "OFF" at T262 in FIG. 10, the printer 100 does not restart the transmission of the ADV signal. That is, the printer 100 is in a non-discoverable state.

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

T342Cで端末10からType_Req信号を受信した時点において、Keyは生成されていない。このため、プリンタ100は、APerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100が非Discoverable状態であることに起因して、T346において、Error_Response信号を端末10に送信する。 Key is not generated at the time when the Type_Req signal is received from the terminal 10 by the T342C. Therefore, the printer 100 transmits an Error_Response signal to the terminal 10 at T346 due to the fact that the 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に表示する。 When the OS 36 receives the Error Response signal from the printer 100 at the T346, the OS 36 transmits the Pairing Request signal to the printer 100 at the T348, and receives the Pairing Response signal from the printer 100 at the 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 OS36 receives the input of the PIN code "1234" on the PIN input screen in the T360, the OS36 executes the authentication communication according to the SMP between the OS36 and the printer 100 in the T362. In the authentication communication, the encryption information encrypted by the input PIN code "1234" is successfully decrypted, and the Key is transmitted from the printer 100 to the terminal 10. As a result, in the processing after T372, which will be described later, the information communicated between the OS 36 and the printer 100 according to the BT method is encrypted by Key.

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

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

OS36は、T374において、プリンタ100からデバイス名DNを受信すると、Keyによる暗号化が実行される点を除いて、図8のT176A〜T178と同様の通信を実行するとともに、PS群のうちの残りの各PSに対応する各Type_Req信号をプリンタ100に順次送信する。この結果、OS36は、プリンタ100から残りの各PSのプロパティ「Read」に対応する各AValueを受信し、T380において、接続完了通知をアプリ38に供給する。 OS36 executes the same communication as T176A to T178 in FIG. 8 except that when the device name DN is received from the printer 100 in T374, encryption by Key is executed, and the rest of the PS group. Each Type_Req signal corresponding to each PS of is sequentially transmitted to the printer 100. As a result, the OS 36 receives each AValue corresponding to the property "Read" of each of the remaining PSs from the printer 100, and supplies a connection completion notification to the application 38 at the 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 in the T380, the application 38 acquires the second list indicating each UUID of each Characteristic in the AC138C from the OS 36 in the T402. Then, the application 38 transmits a Type_Req signal including the UUID “bbb1” in the second list, the first Handle “n5” of the AC138C, and the last Handle “n13” in the second list to the printer 100 via the OS36.

本ケースでは、T402でType_Req信号がプリンタ100に送信される時点において、プリンタ100のAP状態情報は「Enable」に設定されている。このため、アプリ38は、T402において、Type_Req信号をプリンタ100に送信すると、T404において、OS36を介して、プリンタ100からUUID「bbb1」に対応するAP状態情報「Enable」を受信する。 In this case, the AP status information of the printer 100 is set to "Enable" at the time when the Type_Req signal is transmitted to the printer 100 by T402. Therefore, when the application 38 transmits the Type_Req signal to the printer 100 in the T402, the application 38 receives the AP state information "Enable" corresponding to the UUID "bbb1" from the printer 100 via the OS36 in the 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 application 38 displays the SSID screen on the display unit 12 in T406. The SSID screen includes a list of SSIDs that identify the AP network of the AP200 to which the terminal 10 is currently participating, and an input field for entering a password. The list includes the AP200 SSID "ap01".

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によって暗号化されている。 In T408, the application 38 accepts an instruction to select the SSID "ap01" from the list in the SSID screen, and also accepts to enter the password "xxx" of the AP200 in the input field in the SSID screen. As a result, the application 38 selects the UUID "bbb3" from the acquired second list, and via OS36, the Handle "n12" and the SSID "ap01" corresponding to the selected UUID "bbb3" are displayed. A Write Request signal including the password "xxx" is transmitted to the printer 100. Here, the information in the Write Request signal (that is, 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」に変更する。 When the printer 100 receives the Write Request signal from the terminal 10 in the 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 AVale corresponding to the Handle "n12". Next, at T412, the printer 100 transmits a Write Response signal to the terminal 10, and at T414, an AP connection process for establishing an AP connection is performed using the stored SSID "ap01" and password "xxx". Start and change the AP status 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 OS36 in the T412, the application 38 transmits the Type_Req signal including the UUID "bbb1" to the printer 100 via the OS36 in the T416. In T416, the app 38 transmits a Type_Req signal containing the UUID "bbb1" to the printer 100 before the AP connection process is completed. As a result, in T418, the application 38 receives the AP status information "Busy" in the AVale 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 acquires the "Busy", it can know that the AP connection process has not been completed, and in the T422, the Type_Req signal including the UUID "bbb1" is transmitted to the printer 100 again via the OS36. Here, the AP connection process is completed at T420, and the AP connection is established between the printer 100 and the AP200. In FIG. 12, the broken line arrow indicates Wi-Fi communication (that is, communication via wireless LANI / F114) using the AP network. When the AP connection is established, the printer 100 changes the AP status information from "Busy" to "Enable". Then, at T422, the app 38 transmits a Type_Req signal containing the UUID "bbb1" to the printer 100. As a result, in the T424, the application 38 receives the AP state information "Enable" in the AVale 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 OS36 at the T424, the UUID "bbb2" of the "IP Address" of the AC138C and the first of the AC138C via the OS36 at the T426. A Type_Req signal including the Handle "n5" of the above and the last Handle "n13" is transmitted to the printer 100. As a result, the application 38 receives the IP address IA in the AVale corresponding to the UUID "bbb2" from the printer 100 via the OS 36 in the 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 destined for the IP address IA in T430. As a result, the OS 36 transmits a confirmation signal via the wireless LANI / F14 using the AP network of the AP200. As described above, an AP connection has been established between the printer 100 and the AP 200. Therefore, the confirmation signal is received by the printer 100 via the AP 200.

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

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

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

また、アプリ38は、T436において、プリンタ100から、OS36を介して、Write Response信号を受信すると、T450において、印刷画面を表示部12に表示する。そして、アプリ38は、印刷画面において、ユーザから印刷操作を受け付ける。印刷操作は、印刷対象の画像を選択する操作と、印刷設定(用紙サイズ、色数等)の入力を受け付ける操作と、を含む。 Further, when the application 38 receives the Write Response signal from the printer 100 via the OS36 in the T436, the print screen is displayed on the display unit 12 in the T450. Then, the application 38 accepts 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 prints print data including image information corresponding to the selected image and setting information indicating the input print setting via the OS36, the wireless LANI / F14, and the AP200 to the printer 100. Send to. As a result, in T454, the printer 100 prints the image corresponding to the image information received from the terminal 10 according to the print setting indicated by the setting information received from the terminal 10.

本ケースの構成によれば、プリンタ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, the printer 100 changes the restart flag 162 from "ON" to "OFF" when the AP connection button in the function screen is selected (T200 in FIG. 10) (T262). As a result, the printer 100 does not resume the transmission of the ADV signal after stopping the transmission of the ADV signal in response to the establishment of the L2CAP Link. Then, the printer 100 executes the authentication communication because the 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 AP200 by Key and transmit 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; FIGS. 13 and 14)
A case where the WFD connection button on the function screen is selected in this embodiment will be described with reference to FIGS. 13 and 14. In this case, among the plurality of functions that the printer 100 can execute (that is, the printing function, the AP connection, and the WFD connection), the WFD connection function desired by the user exists. 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 accepts the selection of the WFD connection button in the T500, the application 38 supplies the connection start command to the OS36 in the T512. T532 to T537 is the same as T232 to T237 in FIG. 10 (that is, establishment of 2CAP Link, resumption of transmission of ADV signal). 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 Type_Req signal corresponding to the PS group). That is, since the printer 100 is in the Discoverable state due to the resumption of the transmission of the ADV signal, the Error Response signal is not received and the authentication communication according to the 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に送信する。 When the application 38 acquires the connection completion notification from the OS 36 to the connection start command of the T 512 in the T550, the application 38 acquires the second list indicating each UUID of each Characteristic in the WC138D from the OS 36 in the T552. Then, the application 38 transmits a Write Request signal including the Handle “n22” corresponding to the UUID “ccc4” in the second list and the Enable instruction to the printer 100 via the OS 36.

プリンタ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 in the T552, the APer corresponding to the Handle "n22" indicates "Writeable without authentication", so that the Enable instruction is given to the AValue corresponding to the Handle "n22". Remember in. Then, the printer 100 transmits the Write Response signal to the terminal 10 at T554.

また、アプリ38は、T556において、OS36を介して、取得済みの第2のリスト内のUUID「ccc3」に対応するHandle「n21」と公開鍵とを含むWrite Request信号をプリンタ100に送信する。なお、公開鍵は、アプリ38の起動時にアプリ38によって予め生成されてもよいし、WFD接続ボタンが選択される場合等にアプリ38によって生成されてもよい。 Further, in T556, the application 38 transmits a Write Request signal including the Handle “n21” corresponding to the UUID “ccc3” in the acquired second list and the public key to the printer 100 via the OS36. The public key may be generated in advance by the application 38 when the application 38 is started, 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 in the T556, the APer corresponding to the Handle "n21" indicates "Writeable without authentication", so that the public key is the AValue corresponding to the Handle "n21". Remember in. 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 Character corresponding to the 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 ABlue, the printer 100 disconnects the L2CAP Link established in T534 according to the stored disconnection instruction in T564A, and in T564B, the connection permission parameter " The transmission of the ADV signal including "ADV_IND" is started. Further, in T566, the printer 100 changes the state of the printer 100 from "Device" to "Enable" according to the stored Enable instruction. As a result, the WFD status information is changed from "Discable" to "Enable". In addition, the printer 100 encrypts the WFD information 160 by using the stored public key in T568. 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 the T562, the application 38 supplies a connection start command to the OS 36 at the T570. T572-T577 is the same as T532-T537 in FIG. Then, the OS 36 executes the same communication as T138 to T142B in FIG. 8 and T242C and T244 in FIG. That is, as in FIG. 13, the 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に送信する。 When the application 38 acquires the connection completion notification from OS36 to the connection start command of T570 in T580, the application 38 acquires a second list indicating each UUID of each Characteristic in WC138D from OS36 in T582. Then, the application 38 transmits a Type_Req signal including the UUID "ccc1" in the second list, the first Handle "n14" of the WC138D, and the last Handle "n22" to the printer 100 via the OS36.

本ケースでは、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" at the time when the Type_Req signal is transmitted to the printer 100 at T582. Therefore, when the application 38 transmits the Type_Req signal to the printer 100 via the OS36 in T582, the application 38 receives the WFD state information "Ready" corresponding to the UUID "ccc1" from the printer 100 via the OS36 in T584. To 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 state information "Ready" from the OS36 in T584, the UUID "ccc2" in the acquired second list and the first Handle "n14" of the WC138D are displayed in T586 via the OS36. A Type_Req signal including the last Handle "n22" is transmitted to the printer 100. As a result, the application 38 receives the encrypted WFD information from the printer 100 via the OS 36 in the T588.

T590では、アプリ38は、公開鍵を利用して、受信済みの暗号化済みのWFD情報を復号する。これにより、アプリ38は、WFD情報160を取得する。 In the T590, the app 38 uses the public key to decrypt the received encrypted WFD information. As a result, 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 app 38 transmits a Write Request signal including the Handle "n22" corresponding to the UUID "ccc4" in the acquired second list and the Start instruction to the printer 100 via the OS 36. As a result, the Start instruction is stored in the ALPHA corresponding to the Handle "n22", and the 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 the operation as the G / O state according to the stored Start instruction. As a result, the state 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接続を確立する。 Further, in T598, the application 38 supplies the WFD information 160 acquired in T590 to the OS36, and requests the OS36 to establish a WFD connection. As a result, the OS 36 operates as a WFD client in the T600 and uses the WFD information 160 to establish a WFD connection with the printer 100.

また、プリンタ100は、T600において、端末10との間でWFD接続を確立すると、T602において、プリンタ100の状態を「Start」から「Enable」に変更する。 Further, when the printer 100 establishes a WFD connection with the terminal 10 at the T600, the printer 100 changes the state of the printer 100 from "Start" to "Enable" at the 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」を受信する。 Further, when the WFD information 160 is supplied 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, similarly to the T582. In this case, the app 38 transmits a Type_Req signal containing the UUID "ccc1" to the printer 100 after the establishment of the WFD connection is completed. As a result, in the T606, the application 38 receives the WFD state information "Enable" in the AVale 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 the T606, it determines that the establishment of the WFD connection is completed. T608 to T612B executed after T606 are the same as T560 to T564B in FIG.

T620〜T622は、印刷データがWFD接続を利用して端末10からプリンタ100に直接送信される点を除いて、図12のT450〜T454と同様である。 T620 to T622 are the same as T450 to T454 in FIG. 12, except that the print data is directly transmitted 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). Then, the printer 100 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 restarts the transmission of the ADV signal after establishing the L2CAP Link (T537 in FIG. 13). Due to the fact that the APer indicates "Readable without authentication when discoverable" and the printer 100 is in the Discoverable state, the public key is transmitted to the printer 100 without executing the authentication communication according to the SMP (T556). ). Therefore, when the encryption by the public key should be executed, it is possible to suppress the execution of the encryption according to the SMP Key.

(エラー情報の場合;図15)
図15を参照して、本実施例において機能画面のエラー情報ボタンが選択されるケースを説明する。本ケースでは、ユーザは、プリンタ100がエラー状態であるのか否かを確認するために、機能画面内のエラー情報ボタンを選択する。
(In the case of error information; Fig. 15)
A case where 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 an error information button in the function screen to confirm whether or not 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 receives the selection of the error information button in T630, the application 38 supplies the connection start command to the OS 36 in T632. T642 to T647 are the same as T232 to T237 in FIG. Then, the OS 36 executes the same communication as T138 to T142B in FIG. 8 and T242C and T244 in FIG. That is, as in FIG. 10, the 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に送信する。 When the application 38 acquires the connection completion notification for the connection start command from OS36 to T632 in T660, the application 38 acquires a second list indicating each UUID of each Characteristic in ES138F from OS36 in T662. Then, the application 38 transmits a Type_Req signal including the UUID "eee1" in the second list, the first Handle "n28" of the ES138F, and the last Handle "n30" to the printer 100 via the OS36.

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

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

アプリ38は、T668において、OS36からWrite Request信号を取得すると、T672において、エラーURLを表示部12に表示する。これにより、ユーザは、表示済みのエラーURLを選択し、エラー状態(例えば紙詰まり)を解消するための方法が記載されているWebページを見ることができる。 When the application 38 acquires the Write Request signal from the OS 36 in T668, the application 38 displays the error URL on the display unit 12 in T672. As a result, the user can select the displayed error URL and see the Web page in which the method for clearing the error state (for example, a paper jam) is described.

また、本ケースの構成によれば、プリンタ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 restarts the transmission of the ADV signal after establishing the L2CAP Link (T647). Since the APer indicates "Readable without authentication when discoverable" and the printer 100 is in the Discoverable state, the authentication communication according to the SMP is not executed and the error URL is transmitted to the terminal 10 (T664). .. An error URL that is less confidential than the SSID "ap01" and the password "xxx" of the first embodiment can be transmitted to the terminal 10 without executing the authentication communication according to the SMP.

(対応関係)
プリンタ100、端末10、BTI/F116、無線LANI/F114が、それぞれ、「機能実行装置」、「端末装置」、「第1の無線インターフェース」、「第2の無線インターフェース」の一例である。AP接続を確立する機能又はWFD接続を確立する機能が、「第1の機能」の一例である。図9のT190の機能画面、当該機能画面内のAP接続ボタン又はWFD接続ボタンを選択する指示、機能情報FIが、それぞれ、「機能画面」、「第1の実行指示」、「画面表示情報」の一例である。印刷データが、「関係データ」の一例である。接続不許可パラメータ「ADV_NONCONN_IND」が、「不許可情報」の一例である。接続開始命令が、「命令」の一例である。エラーURLを送信する機能、機能画面内のエラー情報ボタンを選択する指示、図15のT662のType_Req信号が、それぞれ、「第2の機能」、「第2の実行指示」、「第2の機能実行情報」の一例である。図15のT644のL2CAPLinkが、「第5の無線接続(及び特定の無線接続)」の一例である。
(Correspondence)
The printer 100, the terminal 10, the BTI / F116, and the wireless LANI / F114 are examples of the "function execution device", the "terminal device", the "first wireless interface", and the "second wireless interface", respectively. The function of establishing an AP connection or the 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 the "function screen", the "first execution instruction", and the "screen display information", respectively. This is an example. Print data is an example of "relationship data". The connection disapproval parameter "ADV_NONCONN_IND" is an example of "disapproval information". The connection start instruction is an example of an "instruction". The function to send the error URL, the instruction to select the error information button in the function screen, and the Type_Req signal of T662 in FIG. 15 are the "second function", "second execution instruction", and "second function", respectively. 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が「外部装置」の一例である。図10のT234のL2CAP Link、図11のT334のL2CAPLinkが、それぞれ、「第1の無線接続」、「第2の無線接続」の一例である。再開フラグ「ON」である状態、再開フラグ「OFF」である状態が、それぞれ、「第1の状態」、「第2の状態」の一例である。図10のT252のフラグOFF指示が、「実行要求(及び設定変更要求)」の一例である。Type_Req信号が、「特定のRead要求」の一例である。図12のT410のSSID「ap01」とパスワード「xxx」が、「第1の機能実行情報」の一例である。 The correspondence between FIGS. 10 to 12 (in the case of AP connection) is as follows. The PIN code and the encrypted information are examples of "specific authentication information (and the first (or second) code)" and "related information", respectively. The printer 100 and the terminal 10 are examples of "one device" and "the other device", respectively. AP200 is an example of an "external device". The L2CAP Link of T234 in FIG. 10 and the L2CAP Link of T334 in FIG. 11 are examples of "first wireless connection" and "second 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 flag OFF instruction of T252 in FIG. 10 is an example of an “execution request (and 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 examples of "first function execution information".

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

AP接続の場合において、図10のT234、図10のT252、図11のT362、図12のT410が、それぞれ、「第1の確立部」、「受信部」、「対象処理実行部」、「第1の通信実行部」によって実現される処理の一例である。WFD接続の場合において、図13のT534、図13のT556、図13のT568、図14のT588が、それぞれ、「第1の確立部」、「受信部」、「対象処理実行部」、「第1の通信実行部」によって実現される処理の一例である。図9のT184、図9のT190が、それぞれ、「受信部」、「表示制御部」によって実現される処理の一例である。AP接続の場合において、図10のT212、図12のT410が、それぞれ、「供給部」、「通信実行部」によって実現される処理の一例である。WFD接続の場合において、図13のT512、図14のT588が、それぞれ、「供給部」、「通信実行部」によって実現される処理の一例である。 In the case of AP connection, T234 in FIG. 10, T252 in FIG. 10, T362 in FIG. 11, and T410 in FIG. 12 are "first establishment unit", "reception unit", "target processing execution unit", and "target processing execution unit", respectively. This is an example of processing realized by the "first communication execution unit". In the case of WFD connection, T534 in FIG. 13, T556 in FIG. 13, T568 in FIG. 13, and T588 in FIG. 14 are "first establishment unit", "reception unit", "target processing execution unit", and "target processing execution unit", respectively. This is an example of processing realized by the "first communication execution unit". T184 in FIG. 9 and T190 in FIG. 9 are examples of processing realized by the “reception unit” and the “display control unit”, respectively. In the case of AP connection, T212 in FIG. 10 and T410 in FIG. 12 are examples of processes realized by the "supply unit" and the "communication execution unit", respectively. In the case of WFD connection, T512 in FIG. 13 and T588 in FIG. 14 are examples of processes realized by the "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 Example)
(For WFD connection; FIGS. 13 and 14)
The second embodiment is a modification of the first embodiment. The second embodiment is the same as that of the first embodiment except that a 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 of T560 to T564B in FIG. 13 and the processes of T570 to T580 in FIG. That is, the printer 100 encrypts the WFD information 160 without disconnecting the L2CAP Link established in T534, while maintaining the establishment of the Link (T568). Then, the printer 100 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 processing capacity of the CPU 132 of the printer 100 is relatively high. When the processing capacity of the CPU 132 is relatively high, the CPU 132 can encrypt the WFD information 160 while the establishment of the L2CAP Link is maintained. For example, when the processing capacity of the CPU 132 is relatively low, the CPU 132 cannot encrypt the WFD information 160 while the establishment of the L2CAP Link is maintained. In such a case, it is effective to adopt a configuration in which the WFD information 160 is encrypted after the L2CAP Link is disconnected (see T564A in FIG. 13) as in the first embodiment. On the other hand, in this embodiment, in consideration of the relatively high processing capacity of the CPU 132, the process of disconnecting the L2CAP Link and establishing the L2CAP Link again (that is, the process of T560 to T580 in FIG. 13). Can be omitted to prevent unnecessary processing from being executed.

(第3実施例)
(AP接続の場合;図16、図17)
第3実施例は、AP接続の場合の処理の一部が異なる点を除いて、第1実施例と同様である。
(Third Example)
(In the case of AP connection; FIGS. 16 and 17)
The third embodiment is the same as the first embodiment except that a 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 (that is, establishment of 2CAP Link, resumption of ADV signal transmission, that is, sequential transmission of each Type_Req signal corresponding to the PS group). That is, since the printer 100 is in the Discoverable state due to the resumption of the transmission of the ADV signal, the Error Response signal is not received and the authentication communication according to the 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」を示す各値に変更されてもよい。 When the application 38 acquires the connection completion notification from the OS36 to the connection start command of the T712 in the T720, the application 38 acquires the second list indicating each UUID of each Characteristic in the AP138C from the OS36 in the T722. Then, the application 38 transmits a Write Request signal including the Handle “n13” corresponding to the UUID “bbb4” in the second list and the Permission change instruction to the printer 100 via the OS 36. The Permission change instruction changes each value indicating "Readable without authentication" in AP138C to each value indicating "Readable with authentication" and changes each value indicating "Writeable without authentication" in AP138C to "Writeable with authentication". It is an instruction to change to each value indicating. Specifically, the instruction is an instruction for changing the value indicating "No authentication required" to the value indicating "Authentication required". In the modified example, the value indicating "No encryption required" may be changed to the value indicating "Encryption required", and the value indicating "No authorization required" may be changed to the value indicating "Authorization required" according to the instruction. May be changed to. Here, "Readable with authentication" means that the information can be read on condition that the information is encrypted according to SMP. Further, "Writeable with authentication" means that the information can be written on condition that the information is encrypted according to SMP. In the modified example, not only all the data in the AP138C but also, for example, "Readable without authentication" in at least one data (for example, the data corresponding to Handle "n10") in each data in the AP138C. 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 the T722, the APer corresponding to the Handle "n13" indicates "Writeable without authentication", so that the Permission change instruction corresponds to the Handle "n13". Store in ABlue. Then, the printer 100 transmits the 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 Character corresponding to the 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 Parameter change instruction and the disconnection instruction are stored in the VALUE, the printer 100 disconnects the L2CAP Link established in response to the connection start instruction of the T712 according to the stored disconnection instruction in the T730A, and permits the connection in the T730B. The transmission of the ADV signal including the parameter "ADV_IND" is started. Further, in T732, the printer 100 changes each value indicating "Readable without authentication" in the APer corresponding to Handle "n11" and "n12" to each value indicating "Readable with authentication" according to the stored Permission change instruction. At the same time, each value indicating "Writeable without authentication" in the APer corresponding to Handle "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 the T728, the application 38 supplies a connection start command to the OS 36 at the T742. As a result, the same processing as in T332 to T336 of FIG. 11 (that is, establishment of 2CAP Link and stop of transmission of ADV signal) is executed.

プリンタ100は、再開フラグ162が「ON」を示すので、T747において、ADV信号の送信を再開する。即ち、プリンタ100は、Discoverable状態に再び移行する。 Since the restart flag 162 indicates "ON", the printer 100 restarts the 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信号の送信)を実行する。 Further, the OS 36 uses the L2CAP Link established in response to the connection start command of the T712 to perform the same communication as the T138 to T178 of FIG. 8 (that is, the transmission of the Group_Req signal and the Type_Req signal including the UUID "0x2803". (Transmission of Type_Req signal corresponding to GA138A, Transmission of Type_Req signal corresponding to FS138B) is executed.

アプリ38は、GA138AのAPerが「Readable without authentication when discoverable」を示し、かつ、プリンタ100がDiscoverable状態であることに起因して、プリンタ100からデバイス名DNを受信する。また、アプリ38は、FS138BのAPerが「Readable without authentication」を示すことに起因して、プリンタ100から機能情報FIを受信する。 The application 38 receives the device name DN from the printer 100 because the APer of the GA138A indicates "Readable without authentication when discoverable" and the printer 100 is in the Discoverable state. Further, the application 38 receives the function information FI from the printer 100 because the APer of the FS138B 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」と、を含む。 When the OS 36 receives the function information FI from the printer 100, the OS 36 transmits a Type_Req signal to the printer 100 for AC138C, which is a PS corresponding to the Handle “n5” having the next smallest value after the Handle “n1” in the T756A. The signal includes a UUID "0x2803", the first Handle "n5" of AC138C, and the last Handle "n13" of AC138C.

プリンタ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 the T756A, the printer 100 is selected from the data group included in the range of the first Handle "n5" and the last Handle "n13" included in the Type_Req signal. The Handles "n6" to "n9" corresponding to the UUID "0x2803" included in the Type_Req signal are specified. The printer 100 has the specified Handles "n6" to "n9" in T756B because the APer corresponding to each of the specified Handles "n6" to "n9" indicates "Readable without authentication". , AColor (property "Read", Handle "n6", and UUID "bbb1") to AVALe (property "Write", Handle "n9", and corresponding to each identified Handle "n6" to "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」とを含む。 When the OS 36 receives each Handle and each ABlue from the printer 500 in the T756B, the OS 36 sends a Type_Req signal including the UUID "bbb1" corresponding to the Handle "n10" having the smallest value among the AColors to the printer 100 in the T756C. Send. The signal further includes the first Handle "n5" of AC138C and the last Handle "n13" of AC138C.

プリンタ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 the T756C, the printer 500 is selected from the data group included in the range of the Handle indicated by the first Handle "n5" and the last Handle "n13" included in the signal. The Handle "n10" corresponding to the UUID "bbb1" included in the Type_Req signal is specified. Here, the 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 execute the encryption of the information according to the SMP, and as a result, the Error Response signal is transmitted to the terminal 10 at the T758.

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

T782の認証通信が完了すると、OS36は、T790において、T756Cと同様のType_Req信号をプリンタ100に再び送信する。ただし、上述したように、当該Type_Req信号内の情報は、Keyによって暗号化されている。 When the authentication communication of T782 is completed, the OS 36 retransmits the Type_Req signal similar to that of the T756C to the printer 100 at the T790. However, as described above, the information in the Type_Req signal is encrypted by 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 the T790, the Key is generated and the information can be encrypted according to the SMP. Therefore, the printer 100 encrypts the AP state information (here, "Enable") by using the Key in T792 due to the APer indicating "Readable without authentication", and the encrypted AP state. The information is transmitted to the terminal 10. T794 is the same as 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, the 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, the printer 100 changes the APer of AC138C from "Readable without authentication" to "Readable with authentication" when the AP connection button in the function screen is selected (T700 in FIG. 16). (T732). As a result, the printer 100 executes the authentication communication because the APer of the 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 AP200 by Key and transmit 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変更指示が、「実行要求(設定変更要求)」の一例である。図16で引用する図10のT234のL2CAP Link、図17で引用する図11のT334のL2CAP Linkが、それぞれ、「第1の無線接続」、「第2の無線接続」の一例である。図17のT782が、「対象処理実行部」によって実現される処理の一例である。図17のT742が、「供給部」によって実現される処理の一例である。
(Correspondence)
The states in which the restart flag is "ON" and the APer indicates "Readable without authentication" and the restart flag is "ON" and the APer indicates "Readable with authentication" are the "first state" and the "second state", respectively. This 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 of T722 in FIG. 16 is an example of an “execution request (setting change request)”. The L2CAP Link of T234 of FIG. 10 cited in FIG. 16 and the L2CAP Link of T334 of FIG. 11 cited in FIG. 17 are examples of a “first wireless connection” and a “second wireless connection”, respectively. T782 in FIG. 17 is an example of the processing realized by the “target processing execution unit”. T742 in FIG. 17 is an example of processing realized by the “supply unit”.

(第4実施例)
(AP接続の場合;図16、図18)
第4実施例は、第3実施例の変形例である。第4実施例は、AP接続の場合の処理の一部が異なる点を除いて、第3実施例と同様である。
(Fourth Example)
(For AP connection; FIGS. 16 and 18)
The fourth embodiment is a modification of the third embodiment. The fourth embodiment is the same as the third embodiment except that a 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 processes of T726 to T739B of FIG. That is, the printer 100 does not disconnect the L2CAP Link established in response to the connection start command of the T712, and the APer "Readable with authentication (or Writeable with authentication)" of the AC138C is maintained in a state where the establishment of the Link is maintained. (T732).

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

プリンタ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 in the T800, the printer 100 is selected from the data group included in the range of the Handle indicated by the first Handle "n5" and the last Handle "n13" included in the signal. The Handle "n10" corresponding to the UUID "bbb1" included in the Type_Req signal is specified. Here, the 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 execute the encryption of the information according to the SMP, and as a result, the Error Response signal is transmitted to the terminal 10 at the T802.

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

T892においてOS36から暗号化済みのAP状態情報が取得されると、図12のT406〜T454と同様の処理が実行される。これにより、AP接続の確立と印刷が実行される。 When the encrypted AP status information is acquired from the OS 36 in T892, the same processing as in T406 to T454 in FIG. 12 is executed. As a result, the 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 processing capacity of the CPU 132 of the printer 100 is relatively high. When the processing capacity of the CPU 132 is relatively high, the CPU 132 can change the value in the APer while the establishment of the L2CAP Link is maintained. For example, when the processing capacity of the CPU 132 is relatively low, the CPU 132 cannot change the value in the APer while the establishment of the L2CAP Link is maintained. In such a case, it is effective to adopt a configuration in which the value in APer is changed after disconnecting the L2CAP Link as in the third embodiment. On the other hand, in this embodiment, considering that the processing capacity of the CPU 132 is relatively high, the process of disconnecting the L2CAP Link and establishing the L2CAP Link again is omitted, and unnecessary processing is suppressed. can do.

(対応関係)
図16で引用する図10のT234のL2CAP Linkが、「第1の無線接続」の一例である。図18のT882が、「対象処理実行」によって実現される処理の一例である。図16のT712が、「供給部」によって実現される処理の一例である。
(Correspondence)
The L2CAP Link of T234 of FIG. 10 cited in FIG. 16 is an example of the “first wireless connection”. T882 in FIG. 18 is an example of the processing realized by the “target processing execution”. T712 in FIG. 16 is an example of the processing realized by the “supply unit”.

(第5実施例)
第5実施例は、BLE通信を利用した印刷が実行可能な点を除いて第1実施例と同様である。図9、図10に示すように、本実施例では、機能画面にBLE接続ボタンが含まれる。BLE接続ボタンは、BLEのKeyによる暗号化を実行して、印刷データをプリンタ100に送信する指示を受け付けるボタンである。また、図示は省略するが、本実施例のPS群は、各PS138A〜138Fに加えて、端末10から印刷データを受信するためのPS(以下、「PPS」と記載)を含む。PPSは、印刷データの受信(即ち書き込み)を定義するCharacteristicを含む。
(Fifth Example)
The fifth embodiment is the same as the first embodiment except that printing using BLE communication can be performed. 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 that executes encryption by the BLE Key and receives an instruction to transmit print data to the printer 100. Although not shown, the PS group of this embodiment includes PSs (hereinafter, referred to as “PPS”) for receiving print data from the terminal 10 in addition to the PS138A to 138F. The PPS includes a Characteristic that defines the reception (ie, write) of print data.

(印刷の場合;図10、図11)
本ケースでは、プリンタ100が実行可能な複数個の機能(即ち、印刷機能、AP接続、WFD接続)の中にユーザが望む印刷の機能が存在する。この場合、ユーザは、T200において、機能画面内のBLE接続ボタンを選択する。
(In the case of printing; FIGS. 10 and 11)
In this case, among the plurality of functions that the printer 100 can execute (that is, printing function, AP connection, WFD connection), there is a printing function desired by the user. 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 app 38 accepts the selection of the BLE connection button at T200. As a result, the processes of T212 to T262 and the processes of T312 to T380 of FIG. 11 are executed as in the first embodiment.

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

T390では、アプリ38は、OS36からPPS内の第2のリストを取得し、OS36を介して、当該第2のリスト内のUUIDに対応するHandleと印刷データとを含むWrite Request信号をプリンタ100に送信する。ここで、当該信号内の印刷データは、Keyによって暗号化されている。 In T390, the app 38 acquires a 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 print data to the printer 100 via the OS 36. Send. Here, the print data in the signal is encrypted by Key.

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

本ケースによれば、端末10は、印刷データをKeyによって暗号化してプリンタ100に送信することができる(T392)。このために、印刷データ内の情報が第三者によって取得されることを抑制することができる。 According to this case, the terminal 10 can encrypt the print data by Key and transmit 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)
The print function, the instruction to select the BLE connection button in the function screen, and the print data of 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 claims. The techniques described in the claims include various modifications and modifications 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" does not have to be the printer 100, and may be, for example, a scanner, a fax device, or a multifunctional device. For example, when 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. You may. Then, in T394, the scanner may execute a scan according to the scan setting in the scan request to generate scan data, encrypt the generated scan data with Key, and transmit the scan data to the terminal 10. In this modification, the function of transmitting scan data and the scan data are examples of "first function" and "first function execution information", respectively.

(変形例2)「端末装置」は、端末10でなくてもよく、例えば、デスクトップPC等の据え置き型の端末装置であってもよい。 (Modification 2) The "terminal device" does not have to be the terminal 10, and 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 a BTI / F, and wireless communication according to a communication method other than the BT method (for example, Zigbee (registered trademark) method, Wi-Fi method) is performed. It may be an I / F to perform. For example, when the "first wireless interface" is an I / F for executing 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 a function screen including the character information indicated by the function information FI (T190). .. Instead of this, the terminal 10 receives specific information (for example, a model name) from the printer 100, and uses the received specific information to select the printer 100 from among a plurality of functional information stored in the terminal 10. The function information FI corresponding to may be specified. Then, the terminal 10 may display a function screen including the character information indicated by the specified function information FI. In this modification, 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 the input of the PIN code "1234" (T354). Instead, the printer 100 displays a code image (for example, a barcode, a QR code (registered trademark)) in which the PIN code “1234” is coded, and the terminal 10 decodes the code image and PINs. You may get the code "1234". Further, the terminal 10 may acquire the PIN code "1234" from the IC tag of the printer 100 by using NFC (abbreviation of Near field communication) communication or the like.

(変形例6)上記の第1実施例では、プリンタ100がPINコード「1234」を準備する(図11のT352)。これに代えて、端末10がPINコード「1234」を準備し、当該PINコード「1234」がプリンタ100に入力されてもよい。一般的に言えば、「特定の認証情報」及び「第1のコード」は、機能実行装置及び前記端末装置のうちの一方の装置によって準備されればよい。また、例えば、端末10がPINコード「1234」を準備する場合に、プリンタ100は、SMPに従った認証通信を実行する前に、Pairing Request信号を端末10に送信し、端末10からPairing Response信号を受信する。そして、プリンタ100は、Pairing Response信号を受信することに応じて、SMPに従った認証通信を実行する。本変形例では、Pairing Response信号が「実行要求」の一例である。 (Modification 6) In the above first embodiment, the printer 100 prepares the PIN code “1234” (T352 in FIG. 11). Instead of this, 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. Further, for example, when the terminal 10 prepares the PIN code "1234", the printer 100 transmits a Pairing Request signal to the terminal 10 before executing the authentication communication according to the SMP, and the Terminal 10 sends the Pairing Response signal. To receive. Then, the printer 100 executes the authentication communication according to the SMP in response to receiving the Pairing Response signal. In this modification, the Pairing Response signal is an example of an "execution request".

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

(変形例8)「特定のRead要求」は、Type_Req信号でなくてもよく、ATTによって定義される他の信号(例えば、Read Request信号、Read Blob Request信号、Read Multiple Request信号)であってもよい。 (Modification 8) The "specific Read request" does not have to be a Type_Req signal, and may be another signal defined by the ATT (for example, a Read Request signal, a Read Blob Request signal, a 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 above embodiments, the application 38 transmits a Write Request signal to the printer 100 at T186 or the like in FIG. Alternatively, the app 38 may transmit other signals defined by the ATT (eg, Write Command signal, Signed Write Command signal) to the printer 100.

(変形例10)上記の第1実施例では、プリンタ100は、機能画面内のエラー情報ボタンが選択される場合(図15のT630)に、SMPに従った情報の暗号化を実行することなく、エラーURLを端末10に送信する(T664)。これに代えて、例えば、機能画面内に印刷ボタンが含まれており、プリンタ100は、機能画面内の印刷ボタンが選択される場合に、SMPに従った情報の暗号化を実行することなく、端末10から印刷データを受信してもよい。本変形例では、印刷機能、印刷データが、「第2の機能」、「第2の機能実行情報」の一例である。 (Modification 10) In the above first embodiment, when the error information button in the function screen is selected (T630 in FIG. 15), the printer 100 does not perform information encryption according to SMP. , The error URL is transmitted to the terminal 10 (T664). Instead, for example, a print button is included in the function screen, and the printer 100 does not perform information encryption according to SMP when the print button in the function screen is selected. Print data may be received from the terminal 10. In this modification, the print function and the 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 above first embodiment, the terminal 10 displays an error URL (T672 in FIG. 15). Instead of this, the terminal 10 may display a message indicating an error state. In this modification, the message is an example of "error information". Further, 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 make a printer out of a plurality of error URLs stored in the terminal 10. The error URL corresponding to the current error state of 100 may be specified. Then, the terminal 10 may display the specified error URL. In this modification, 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-mentioned fourth embodiment, the printer 100 receives the Permission change instruction from the terminal 10 (T722 in FIG. 16) and changes the value in the APer (T732). Instead, the printer 100 may receive a stop instruction for stopping the transmission of the ADV signal from the terminal 10 and stop the transmission of the ADV signal according to the received stop instruction. Then, the printer 100 may receive the Type_Req signal including the UUID "0x2A00" from the terminal 10 instead of the T800 in FIG. As a result, the authentication communication may be executed because the APer indicates "Readable without authentication when discoverable" and the printer 100 is in the non-discoverable state. 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 a PS of the first type (for example, T142A in FIG. 8) and a Type_Req signal to a PS of the second type (for example, T176A in FIG. 8). ) Is executed. Instead, the OS 36 may only transmit the Type_Req signal to the Type 1 PS and may not execute the Type_Req signal to the Type 2 PS.

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

(変形例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 third and fourth embodiments described above, the printer 100 sets each value indicating "Readable (or Writeable) without authentication" in APer in AP138C 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のT812で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) OS36 may be, for example, Android (registered trademark). In this case, T138, T142A, T142C, T176A, T176C in FIG. 8, T242C in FIG. 10, T342C, T372 in FIG. 11, T652C in FIG. 15, T756A, T756C, T790 in FIG. 17 and the like are not executed. Therefore, for example, in the above-mentioned fourth embodiment, the process of T137 (the same applies to T137 to T178 of FIG. 8 cited in FIG. 16) may not be executed. That is, since the OS 36 does not automatically acquire the PS group information in response to the acquisition of the connection start command, the transmission of the ADV signal does not have to be restarted. In this modification, by indicating "Readable without authentication" by the APer of FS138B, for example, even if the Type_Req signal is received at T812 in FIG. 9, the Error Response signal is not transmitted and authentication is performed before the function screen is displayed. Communication is not executed. Then, authentication communication is executed due to the change of APer of AC138C to "Readable with authentication" by T732 of FIG. 16 (T802 to T880 of FIG. 18). In this modification, the APer of FS138B indicates "Readable without authentication" and the APer of AC138C indicates "Readable with authentication", which are examples of "first state" and "second state", respectively. is there. Further, as a further modification, the APer corresponding to Handle "n1" of FS138B is invariant with "Readable without authentication", and the APer corresponding to Handle "n10" of AC138C is invariant with "Readable with authentication". May be good. Then, the processes of T722, T724, and T732 of FIG. 16 do not have to be executed. In this modification, the "setting change request" can be omitted.

(変形例17)図8のT137では、プリンタ100は、接続不許可パラメータ「ADV_NONCONN_IND」を含むADV信号を送信する。これに代えて、プリンタ100は、接続許可パラメータ「ADV_IND」を含むADV信号を送信してもよい。本変形例では、「不許可情報」を省略可能である。 (Modification 17) In T137 of FIG. 8, the printer 100 transmits an ADV signal including the connection disallowance parameter “ADV_NONCONN_IND”. Instead, the printer 100 may transmit an ADV signal including the connection permission parameter "ADV_IND". In this modification, "disapproval information" 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 first and second embodiments described above, the OS 36 is iOS, and after the WFD connection button is selected, the transmission of the ADV signal is restarted (T537 in FIG. 13 or FIG. 14). T572), authentication communication is not executed. Instead, when the OS 36 is, for example, Android (registered trademark), the OS 36 does not automatically acquire the PS group information in response to the acquisition of the connection start command, so that the transmission of the ADV signal is restarted (that is, that is). The process of T537 of FIG. 13 or T572 of FIG. 14) is not executed. In this case, the authentication communication is not executed because the APer of the WC138C indicates "Readable (or Writeable) without authentication". In this modification, "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 above embodiments, the printer 100 and the terminal 10 can execute both the establishment of the AP connection and the establishment of the WFD connection. Instead, the printer 100 and the terminal 10 may be capable of establishing either an AP connection or a WFD connection.

(変形例20)図15の処理は、実行されなくてもよい。本変形例では、「第4の確立部」、「第2の通信実行部」を省略可能である。 (Modification 20) The process of FIG. 15 does not have to be executed. In this modification, the "fourth establishment unit" and the "second 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 above first embodiment, the printer 100 changes the restart flag 162 from “ON” to “OFF” in order to execute the authentication communication (T262 in FIG. 10), and transmits the ADV signal. Does not resume transmission of the ADV signal after stopping (T336 in FIG. 11). Instead, even if the printer 100 keeps the restart flag 162 "ON", stops the transmission of the ADV signal, and then starts transmitting the ADV signal that does not include a predetermined value related to the Discoverable state. Good. Even in this case, the state of the printer 100 becomes a non-discoverable state, and as a result, the authentication communication is executed. In this modification, the state in which the ADV signal that does not include the above-mentioned predetermined value is transmitted is an example of the “second state”.

(変形例22)上記の各実施例では、プリンタ100は、L2CAP Linkを確立し(図8のT134)、確立済みのL2CAP Linkを利用して、機能情報FIを端末10に送信する(T184)。これに代えて、プリンタ100は、機能情報FIを含むADV信号を端末10に送信してもよい。この場合、図8のT130〜T180の処理が実行せずに、接続確認画面内の接続ボタンが選択される場合に、T182以降の処理が実行され、ADV信号内の機能情報FIを利用して、機能画面が表示されてもよい。本変形例では、機能情報FIを含むADV信号を受信することが、「対象処理を実行することなく、画面表示情報を端末装置に送信する送信部」によって実現される処理の一例であり、ADV信号内の機能情報FIが、「画面表示情報」の一例である。 (Modification 22) In each of the above embodiments, the printer 100 establishes an L2CAP Link (T134 in FIG. 8), and uses the established L2CAP Link to transmit the function information FI to the terminal 10 (T184). .. Instead, the printer 100 may transmit an ADV signal including the function information FI to the terminal 10. In this case, when the connection button in the connection confirmation screen is selected without executing the processes of T130 to T180 in FIG. 8, the processes after T182 are executed, and the function information FI in the ADV signal is used. , The function screen may be displayed. In this modification, receiving the ADV signal including the function information FI is an example of the process realized by the "transmitter that transmits the screen display information to the terminal device without executing the target process", and the ADV. The functional information FI in the signal is an example of "screen display information".

(変形例23)上記の各実施例では、プリンタ100のCPU132がプログラム136(即ちソフトウェア)を実行すること及び端末10のCPU32がプログラム36、38を実行することによって、図7〜図18の各処理が実現される。これに代えて、いずれかの処理は、論理回路等のハードウェアによって実現されてもよい。 (Modification 23) 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, respectively. Processing is realized. Instead, any of the processes may be realized by hardware such as a logic circuit.

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, 114: Wireless LAN I / F, 116: BTI / F, 130: Control, 132: CPU, 134: Memory, 136: Program, 138: Protocol stack, 138A: GA: GA, 138B : FS, 138C: AC, 138D: WD, 138E: BC, 138F: ES, 160: WFD information, 162: Resume flag, 200: AP, 300: Mobile terminal, 338: App, 500: Printer, DN: Device name , FI: Function information, IA: IP address

Claims (24)

機能実行装置であって、
第1の無線インターフェースと、
前記機能実行装置及び端末装置のうちの一方の装置によって準備される特定の認証情報を利用した対象処理を実行することなく、前記第1の無線インターフェースを介して、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を前記端末装置に送信する送信部と、
前記機能画面が前記端末装置に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第1の無線接続を確立する第1の確立部と、
前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記特定の認証情報を利用した前記対象処理を実行することなく、前記端末装置から実行要求を受信する受信部であって、前記実行要求は、前記特定の認証情報を利用した前記対象処理を前記機能実行装置に実行させるための要求である、前記受信部と、
前記端末装置から前記実行要求が受信されることに応じて、前記特定の認証情報を利用した前記対象処理を実行する対象処理実行部と、
前記特定の認証情報を利用した前記対象処理が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための第1の機能実行情報の通信を前記端末装置と実行する第1の通信実行部と、
を備える、機能実行装置。
It is a function execution device
The first wireless interface and
The function execution device can be executed via the first wireless interface without executing the target process using the specific authentication information prepared by one of the function execution device and the terminal device. A transmitter that transmits screen display information to the terminal device for displaying a function screen indicating one or more functions on the terminal device, and a transmission unit.
After the function screen is displayed on the terminal device, when the first execution instruction for causing the function executing device to execute the first function is input to the terminal device, the first wireless interface is used. Through the first establishment unit for establishing the first wireless connection with the terminal device,
A receiving unit that receives an execution request from the terminal device via the first wireless interface via the first wireless connection without executing the target process using the specific authentication information. Therefore, the execution request is a request for causing the function executing device to execute the target process using the specific authentication information.
A target process execution unit that executes the target process using the specific authentication information in response to receiving the execution request from the terminal device.
After the target process using the specific authentication information is executed, communication of the first function execution information for executing the first function is performed with the terminal device via the first wireless interface. The first communication execution unit to be executed and
A function execution device.
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースである、請求項1に記載の機能実行装置。 The function executing device according to claim 1, wherein the first wireless interface is an interface for executing wireless communication according to a Bluetooth (registered trademark) method. 前記機能実行装置は、さらに、
前記第1の無線インターフェースとは異なる第2の無線インターフェースを備え、
前記第1の機能は、前記第2の無線インターフェースを介した無線接続を外部装置と確立する機能であり、
前記第1の機能実行情報は、前記第2の無線インターフェースを介した前記無線接続を前記外部装置と確立するための情報を含む、請求項1又は2に記載の機能実行装置。
The function executing device further
It has a second wireless interface that is 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.
The function execution device according to claim 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.
前記1個以上の機能は、印刷機能及びスキャン機能のうちの少なくとも一方の機能を含み、
前記第1の機能は、前記少なくとも一方の機能に関係する関係データの通信を前記端末装置と実行するために、前記第2の無線インターフェースを介した前記無線接続を前記外部装置と確立する機能である、請求項3に記載の機能実行装置。
The one or more functions include at least one of a printing function and a scanning 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 related data related to the at least one function with the terminal device. The function executing device according to claim 3.
前記第1の機能は、印刷機能及びスキャン機能のうちの少なくとも一方の機能であり、
前記第1の機能実行情報は、前記少なくとも一方の機能に関係する関係データを含む、請求項1又は2に記載の機能実行装置。
The first function is at least one of a printing function and a scanning function.
The function execution device according to claim 1 or 2, wherein the first function execution information includes relational data related to at least one of the functions.
前記機能実行装置は、
前記特定の認証情報を利用した前記対象処理を実行不可能な第1の状態と、
前記特定の認証情報を利用した前記対象処理を実行可能な第2の状態と、
のうちのどちらかの状態に設定され、
前記送信部は、前記機能実行装置が前記第1の状態に設定されている間に、前記画面表示情報を前記端末装置に送信し、
前記実行要求は、前記機能実行装置を前記第1の状態に代えて前記第2の状態に設定するための設定変更要求であり、
前記対象処理実行部は、前記端末装置から前記設定変更要求を受信することに応じて、前記機能実行装置が前記第1の状態に代えて前記第2の状態に設定された後に、前記特定の認証情報を利用した前記対象処理を前記端末装置と実行する、請求項1から5のいずれか一項に記載の機能実行装置。
The function executing device is
The first state in which the target process using the specific authentication information cannot be executed, and
A second state in which the target process using the specific authentication information can be executed, and
Set to one of the states,
The transmitting unit transmits the screen display information to the terminal device while the function executing device is set to the first state.
The execution request is a setting change request for setting the function executing device to the second state instead of the first state.
In response to receiving the setting change request from the terminal device, the target processing execution unit sets the function execution device to the second state instead of the first state, and then the specific function execution unit is set to the second state. The function execution device according to any one of claims 1 to 5, which executes the target process using the authentication information with the terminal device.
前記機能実行装置は、さらに、
前記端末装置から前記設定変更要求が受信される場合に、前記第1の無線接続を切断する第1の切断部と、
前記第1の無線接続が切断された後に、前記第1の無線インターフェースを介して、前記端末装置との第2の無線接続を確立する第2の確立部と、
を備え、
前記第1の通信実行部は、前記第2の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項6に記載の機能実行装置。
The function executing device further
When the setting change request is received from the terminal device, the first disconnection portion that disconnects the first wireless connection and the first disconnection portion.
A second establishment unit that establishes a second wireless connection with the terminal device via the first wireless interface after the first wireless connection is disconnected.
With
6. The first communication execution unit executes communication of the first function execution information with the terminal device via the first wireless interface by using the second wireless connection. The function execution device described in.
前記第1の通信実行部は、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項6に記載の機能実行装置。 6. The first communication execution unit executes communication of the first function execution information with the terminal device via the first wireless interface by using the first wireless connection. The function execution device described in. 前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記第1の状態は、前記第1の無線インターフェースが前記Bluetooth方式に従ったAdvertise信号を繰り返し送信する状態を含む、請求項6から8のいずれか一項に記載の機能実行装置。
The first wireless interface is an interface for executing wireless communication according to the Bluetooth (registered trademark) method.
The function executing device according to any one of claims 6 to 8, wherein the first state includes a state in which the first wireless interface repeatedly transmits an Advanced signal according to the Bluetooth method.
前記端末装置から前記Bluetooth方式に従った特定のRead要求が受信され、かつ、前記第1の無線インターフェースが前記Advertise信号の送信を停止している場合に、前記特定の認証情報を利用した前記対象処理は実行され、
前記端末装置から前記特定のRead要求が受信され、かつ、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する場合に、前記特定の認証情報を利用した前記対象処理は実行されず、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する前記第1の状態に設定されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記対象処理を実行することなく、前記画面表示情報を前記端末装置に送信する、請求項9に記載の機能実行装置。
When a specific Read request according to the Bluetooth method is received from the terminal device and the first wireless interface has stopped transmitting the Advanced signal, the target using the specific authentication information. The process is executed,
When the specific Read request is received from the terminal device and the first wireless interface repeatedly transmits the Advance signal, the target process using the specific authentication information is not executed.
The transmitting unit receives the specific Read request from the terminal device while the function executing device is set to the first state in which the first wireless interface repeatedly transmits the Advanced signal. The function execution device according to claim 9, wherein the screen display information is transmitted to the terminal device without executing the target process using the specific authentication information.
前記第1の状態は、前記第1の無線インターフェースが前記Bluetooth方式に従った無線接続の確立を許可しない不許可情報を含むAdvertise信号を繰り返し送信する状態を含む、請求項10に記載の機能実行装置。 The function execution according to claim 10, wherein the first state includes a state in which the first wireless interface repeatedly transmits an Advanced signal including disapproval information that does not allow the establishment of a wireless connection according to the Bluetooth method. apparatus. 前記第1の無線インターフェースが前記Advertise信号の送信を停止している場合に、前記特定の認証情報を利用した前記対象処理は実行され、
前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する場合に、前記特定の認証情報を利用した前記対象処理は実行されず、
前記第2の状態は、前記第1の無線インターフェースが前記Advertise信号の送信を停止している状態を含み、
前記設定変更要求は、前記Advertise信号の送信を前記第1の無線インターフェースに実行させないための要求であり、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する前記第1の状態に設定されている間に、前記特定の認証情報を利用した前記対象処理を実行することなく、前記画面表示情報を前記端末装置に送信し、
前記対象処理実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号の送信を停止している前記第2の状態に設定されている間に、前記特定の認証情報を利用した前記対象処理を実行する、請求項9から11のいずれか一項に記載の機能実行装置。
When the first wireless interface has stopped transmitting the Advanced signal, the target process using the specific authentication information is executed.
When the first wireless interface repeatedly transmits the Advanced signal, the target process using the specific authentication information is not executed, and the target process is not executed.
The second state includes a state in which the first radio interface has stopped transmitting the Advanced signal.
The setting change request is a request for preventing the first wireless interface from executing the transmission of the Advanced signal.
The transmitting unit performs the target processing using the specific authentication information while the function executing device is set to the first state in which the first wireless interface repeatedly transmits the Advanced signal. The screen display information is transmitted to the terminal device without execution.
The target processing execution unit uses the specific authentication information while the function execution device is set to the second state in which the first wireless interface has stopped transmitting the Advanced signal. The function execution device according to any one of claims 9 to 11, which executes the target process.
前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記第1の状態は、第1の設定情報がメモリに記憶されている状態を含み、
前記第1の設定情報は、前記端末装置から前記Bluetooth方式に従った特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記対象処理を実行することなく、前記特定のRead要求に対する応答を送信する設定を示し、
前記第2の状態は、第2の設定情報が前記メモリに記憶されている状態を含み、
前記第2の設定情報は、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記対象処理を実行し、前記特定の認証情報を利用した認証が成功する場合に、前記特定のRead要求に対する前記応答を送信する設定を示し、
前記設定変更要求は、前記メモリ内の前記第1の設定情報を前記第2の設定情報に変更する要求であり、
前記送信部は、前記メモリに前記第1の設定情報が記憶されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記対象処理を実行することなく、前記特定のRead要求に対する前記応答として前記画面表示情報を前記端末装置に送信し、
前記対象処理実行部は、前記メモリに前記第2の設定情報が記憶されている間に、前記端末装置から前記特定のRead要求が受信される場合に、前記特定の認証情報を利用した前記対象処理を実行する、請求項6から11のいずれか一項に記載の機能実行装置。
The first wireless interface is an interface for executing wireless communication according to the Bluetooth (registered trademark) method.
The first state includes a state in which the first setting information is stored in the memory.
The first setting information is the specific Read without executing the target process using the specific authentication information when a specific Read request according to the Bluetooth method is received from the terminal device. Shows the settings to send a response to a request,
The second state includes a state in which the second setting information is stored in the memory.
In the second setting information, when the specific Read request is received from the terminal device, the target process using the specific authentication information is executed, and the authentication using the specific authentication information is successful. If so, the setting to send the response to the specific Read request is shown.
The setting change request is a request for changing the first setting information in the memory to the second setting information.
When the specific Read request is received from the terminal device while the first setting information is stored in the memory, the transmission unit performs the target process using the specific authentication information. The screen display information is transmitted to the terminal device as the response to the specific Read request without being executed.
The target processing execution 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. The function execution device according to any one of claims 6 to 11, which executes processing.
前記特定の認証情報は、前記機能実行装置及び前記端末装置のうちの前記一方の装置によって準備される第1のコードであり、
前記特定の認証情報を利用した前記対象処理は、前記第1のコードが前記一方の装置に表示された後に、第2のコードが前記機能実行装置及び前記端末装置のうちの他方の装置に入力される場合に、前記第2のコードに関係する関係情報を前記他方の装置から前記一方の装置に送信することを含み、
前記第1の通信実行部は、前記関係情報の通信が実行された後に、前記第1のコードと前記第2のコードとが一致すると前記一方の装置によって判断される場合に、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項1から13のいずれか一項に記載の機能実行装置。
The specific authentication information is a first code prepared by the one of the function executing device and the terminal device.
In the target process using the specific authentication information, after the first code is displayed on the one device, the second code is input to the other device of the function executing device and the terminal device. When the relevant information related to the second code is transmitted from the other device to the one device,
The first communication execution unit is the first when it is determined by the one device that the first code and the second code match after the communication of the related information is executed. The function execution device according to any one of claims 1 to 13, which executes communication of the first function execution information with the terminal device via a wireless interface.
前記特定の認証情報は、前記機能実行装置及び前記端末装置のうちの前記一方の装置によって準備される公開鍵であり、
前記実行要求は、前記公開鍵を前記一方の装置から前記機能実行装置及び前記端末装置のうちの他方の装置に送信するための要求であり、
前記第1の機能実行情報は、前記公開鍵を利用する前記対象処理が実行されることによって前記他方の装置によって生成される情報である、請求項1から5のいずれか一項に記載の機能実行装置。
The specific authentication information is a public key prepared by the one of the function executing device and the terminal device.
The execution request is a request for transmitting the public key from the one device to the function executing device and the other device of the terminal device.
The function according to any one of claims 1 to 5, wherein the first function execution information is information generated by the other device when the target process using the public key is executed. Execution device.
前記機能実行装置は、さらに、
前記端末装置から前記実行要求が受信される場合に、前記第1の無線接続を切断する第2の切断部と、
前記第1の無線接続が切断された後に、前記第1の無線インターフェースを介して、前記端末装置との第3の無線接続を確立する第3の確立部と、
を備え、
前記第1の通信実行部は、前記第3の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項15に記載の機能実行装置。
The function executing device further
When the execution request is received from the terminal device, the second disconnection portion that disconnects the first wireless connection and
A third establishment unit that establishes a third wireless connection with the terminal device via the first wireless interface after the first wireless connection is disconnected.
With
15. The first communication execution unit uses the third wireless connection to execute communication of the first function execution information with the terminal device via the first wireless interface. The function execution device described in.
前記第1の通信実行部は、前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項15に記載の機能実行装置。 15. The first communication execution unit uses the first wireless connection to execute communication of the first function execution information with the terminal device via the first wireless interface. The function execution device described in. 前記第1の無線インターフェースは、Bluetooth(登録商標)方式に従った無線通信を実行するためのインターフェースであり、
前記送信部は、前記特定の認証情報である前記公開鍵を利用した前記対象処理と、前記Bluetooth方式に従った特定のコードを利用した通信と、のどちらも実行することなく、前記画面表示情報を前記端末装置に送信し、
前記対象処理実行部は、前記特定のコードを利用した前記通信を実行することなく、前記公開鍵を利用した前記対象処理を実行する、請求項15から17のいずれか一項に記載の機能実行装置。
The first wireless interface is an interface for executing wireless communication according to the Bluetooth (registered trademark) method.
The transmission unit does not execute either the target process using the public key, which is the specific authentication information, or the communication using the specific code according to the Bluetooth method, and the screen display information. To the terminal device
The function execution according to any one of claims 15 to 17, wherein the target processing execution unit executes the target processing using the public key without executing the communication using the specific code. apparatus.
前記第1の無線インターフェースが前記Bluetooth方式に従ったAdvertise信号を繰り返し送信する場合に、前記特定のコードを利用した前記通信は実行されず、
前記送信部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記画面表示情報を前記端末装置に送信し、
前記対象処理実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記公開鍵を利用した前記対象処理を実行し、
前記第1の通信実行部は、前記機能実行装置が、前記第1の無線インターフェースが前記Advertise信号を繰り返し送信する状態に設定されている間に、前記特定のコードを利用した前記通信を実行することなく、前記第1の機能実行情報の通信を前記端末装置と実行する、請求項18に記載の機能実行装置。
When the first wireless interface repeatedly transmits an Advantage signal according to the Bluetooth method, the communication using the specific code is not executed, and the communication is not executed.
The transmitting unit does not execute the communication using the specific code while the function executing device is set to the state in which the first wireless interface repeatedly transmits the Advanced signal. The screen display information is transmitted to the terminal device,
The target processing execution unit does not execute 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 Advance signal. , Execute the target process using the public key,
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 Advance signal. The function execution device according to claim 18, which executes communication of the first function execution information with the terminal device without any need.
前記機能実行装置は、さらに、
前記機能画面が前記端末装置に表示された後に、前記機能実行装置に前記第1の機能とは異なる第2の機能を実行させるための第2の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との第4の無線接続を確立する第4の確立部と、
前記特定の認証情報を利用した前記対象処理を実行することなく、前記第4の無線接続を利用して、前記第1の無線インターフェースを介して、前記第2の機能を実行するための第2の機能実行情報の通信を前記端末装置と実行する第2の通信実行部と、
を備える、請求項1から19のいずれか一項に記載の機能実行装置。
The function executing device further
When the function screen is displayed on the terminal device and then a second execution instruction for causing the function executing device to execute a second function different from the first function is input to the terminal device. A fourth establishment unit that establishes a fourth wireless connection with the terminal device via the first wireless interface.
A second function for executing the second function via the first wireless interface by using the fourth wireless connection without executing the target process using the specific authentication information. A second communication execution unit that executes communication of function execution information with the terminal device, and
The function executing device according to any one of claims 1 to 19.
前記第2の機能は、前記機能実行装置がエラー状態である場合に、前記エラー状態に関係するエラー情報を前記端末装置に表示させるためのエラー表示情報を前記端末装置に送信する機能であり、
前記第2の通信実行部は、前記端末装置から、前記エラー表示情報を前記端末装置に送信するための要求を前記第2の機能実行情報として受信する、請求項20に記載の機能実行装置。
The second function is a function of transmitting error display information for displaying error information related to the error state to the terminal device when the function executing device is in an error state.
The function execution device according to claim 20, wherein the second communication execution unit receives a request for transmitting the error display information to the terminal device from the terminal device as the second function execution information.
端末装置のためのコンピュータプログラムであって、
前記端末装置のコンピュータを、以下の各部、即ち、
機能実行装置及び前記端末装置のうちの一方の装置によって準備される特定の認証情報を利用した対象処理を実行することなく、前記端末装置の第1の無線インターフェースを介して、前記機能実行装置から、前記機能実行装置が実行可能な1個以上の機能を示す機能画面を前記端末装置に表示させるための画面表示情報を受信する受信部と、
前記機能実行装置から前記画面表示情報が受信される場合に、前記機能画面を前記端末装置の表示部に表示させる表示制御部と、
前記機能画面が前記表示部に表示された後に、第1の機能を前記機能実行装置に実行させるための第1の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記機能実行装置との第1の無線接続を確立するための命令を前記端末装置のOS(Operating Systemの略)プログラムに供給する供給部と、
前記第1の無線接続を利用して、前記第1の無線インターフェースを介して、実行要求を前記機能実行装置に送信する送信部であって、前記実行要求は、前記特定の認証情報を利用した前記対象処理を前記機能実行装置に実行させるための要求である、前記送信部と、
前記特定の認証情報を利用した前記対象処理が実行された後に、前記第1の無線インターフェースを介して、前記第1の機能を実行するための機能実行情報の通信を前記機能実行装置と実行する通信実行部と、
として機能させるコンピュータプログラム。
A computer program for terminal equipment
The computer of the terminal device is referred to as the following parts, that is,
From the function executing device via the first wireless interface of the terminal device without executing the target process using the specific authentication information prepared by the function executing device and one of the terminal devices. A receiver that receives screen display information for displaying a function screen indicating one or more functions that can be executed by the function executing device on the terminal device.
A display control unit that displays the function screen on the display unit of the terminal device when the screen display information is received from the function execution device.
After the function screen is displayed on the display unit, when a first execution instruction for causing the function executing device to execute the first function is input to the terminal device, the first wireless interface is used. A supply unit that supplies an instruction for establishing a first wireless connection with the function executing device to the OS (abbreviation of Operating System) program of the terminal device via the supply unit.
A transmission unit that transmits an execution request to the function execution device via the first wireless interface by using the first wireless connection, and the execution request utilizes the specific authentication information. The transmitter, which is a request for causing the function execution device to execute the target process,
After the target process using the specific authentication information is executed, the function execution information for executing the first function is communicated with the function execution device via the first wireless interface. Communication execution part and
A computer program that acts as.
前期コンピュータプログラムは、前記コンピュータを、さらに、
前記機能画面が前記端末装置に表示された後に、前記機能実行装置に前記第1の機能とは異なる第2の機能を実行させるための第2の実行指示が前記端末装置に入力される場合に、前記第1の無線インターフェースを介して、前記端末装置との特定の無線接続を確立する特定の確立部と、
前記特定の認証情報を利用した前記対象処理を実行することなく、前記特定の無線接続を利用して、前記第1の無線インターフェースを介して、前記第2の機能を実行するための第2の機能実行情報の通信を前記端末装置と実行する特定の通信実行部と、として機能させる、請求項22のいずれか一項に記載の機能実行装置。
The first term computer program is the computer,
When the function screen is displayed on the terminal device and then a second execution instruction for causing the function executing device to execute a second function different from the first function is input to the terminal device. A specific establishment unit that establishes a specific wireless connection with the terminal device via the first wireless interface.
A second function for executing the second function via the first wireless interface by using the specific wireless connection without executing the target process using the specific authentication information. The function execution device according to any one of claims 22, which functions as a specific communication execution unit that executes communication of function execution information with the terminal device.
前記第2の機能は、前記機能実行装置がエラー状態である場合に、前記エラー状態に関係するエラー情報を前記端末装置に表示させるためのエラー表示情報を前記端末装置に送信する機能であり、
前記特定の通信実行部は、前記端末装置から、前記エラー表示情報を前記端末装置に送信するための要求を前記第2の機能実行情報として受信する、請求項20に記載の機能実行装置。
The second function is a function of transmitting error display information for displaying error information related to the error state to the terminal device when the function executing device is in an error state.
The function execution device according to claim 20, wherein the specific communication execution unit receives a request for transmitting the error display information to the terminal device from the terminal device as the second function execution information.
JP2019023930A 2019-02-13 2019-02-13 Computer program for function execution device and terminal device Active JP7293705B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019023930A JP7293705B2 (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
JP2019023930A JP7293705B2 (en) 2019-02-13 2019-02-13 Computer program for function execution device and terminal device

Publications (2)

Publication Number Publication Date
JP2020135071A true JP2020135071A (en) 2020-08-31
JP7293705B2 JP7293705B2 (en) 2023-06-20

Family

ID=72263071

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP7293705B2 (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
JP7293705B2 (en) 2023-06-20

Similar Documents

Publication Publication Date Title
US20230300585A1 (en) Function Execution Device and Communication Terminal
JP7155581B2 (en) Communication device and computer program for the communication device
JP7183559B2 (en) Printers and computer programs for printers
JP7359273B2 (en) Communication devices and computer programs for communication devices
US11579824B2 (en) Function executing device for executing communication of function execution information with terminal device
JP7196602B2 (en) Communication device, computer program for communication device, and computer program for first external device
JP7135635B2 (en) Computer program for printers and terminals
JP2023168594A (en) Communication device and computer program therefor
JP2021190862A (en) Computer program for terminal device and communication device
JP2022160527A (en) Communication device and computer program therefor
JP2024019266A (en) Communication devices and computer programs for communication devices
JP6879155B2 (en) Communication equipment and terminal equipment
US20220279605A1 (en) Information processing apparatus, control method thereof, and storage medium
US20220279438A1 (en) Information processing apparatus, control method thereof, and storage medium
JP6866700B2 (en) Terminal equipment and computer programs for it
JP7293704B2 (en) Computer program for function execution device and terminal device
JP7293705B2 (en) Computer program for function execution device and terminal device
JP7419728B2 (en) Communication devices and computer programs for communication devices
JP7424013B2 (en) Computer programs for function execution devices and terminal devices
JP7322669B2 (en) Computer program for function execution device and terminal device
US20230171682A1 (en) Communication apparatus, control method therefor, and storage medium
US20230091461A1 (en) Information processing apparatus, communication apparatus, control method therefor, and storage medium
JP2022117043A (en) Communication system, communication device, and computer program for server
JP2021190863A (en) Computer program for terminal device and communication 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: 7293705

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150