Function execution device and computer program for terminal device

The system adjusts radio field strength and proximity-based connections in BLE communication to secure and control information exchange between devices, addressing distance-based vulnerabilities and enhancing security and convenience.

JP2024144676AActive Publication Date: 2024-10-11BROTHER KOGYO KK
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2024125948
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-11
Estimated Expiration
2039-11-13

AI Technical Summary

Technical Problem

Existing wireless communication technologies, such as Bluetooth Low Energy (BLE), face challenges in controlling communication of target information based on the distance between devices, leading to potential unauthorized access and security vulnerabilities.

Method used

A system and method that adjusts radio field strength for advertising signals and establishes wireless connections based on proximity, using Bluetooth Low Energy (BLE) to ensure secure communication only when devices are within a specific range, involving a function execution device and a terminal device with adaptive radio field intensity changes and connection requests.

Benefits of technology

Enhances security by ensuring communication of sensitive information only when devices are close together, preventing unauthorized access and improving user convenience by eliminating the need for manual PIN codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144676000001_ABST
    Figure 2024144676000001_ABST
Patent Text Reader

Abstract

To provide techniques for controlling communication of target information between a function execution device and a terminal device depending on the distance between the function execution device and the terminal device.SOLUTION: A function execution device comprises a first radio interface that can repeatedly transmit an advertising signal. The function execution device changes the field strength for advertising signal transmission from a first field strength to a second field strength that is weaker than the first field strength when receiving a particular signal from a terminal device that received a first advertising signal at the first field strength, receives a first connection request from a terminal device that received a second advertising signal at the second field strength, establishes a first radio connection with the terminal device, and uses the first radio connection to perform communication of target information for utilizing a particular function of the function execution device with the terminal device.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This specification discloses a technique for performing wireless communication between a function executing device and a terminal device in accordance with the BLE (abbreviation of Bluetooth (registered trademark) Low Energy) standard. [Background technology]

[0002] Patent Document 1 discloses a communication device that executes pairing with an information processing device according to the BLE method. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2017-182489 A [Patent Document 2] JP 2019-121930 A Summary of the Invention [Problem to be solved by the invention]

[0004] SUMMARY OF THE DISCLOSURE Provided herein is a technique for controlling communication of target information between a function performing device and a terminal device depending on the distance between the function performing device and the terminal device.

[0005] A function executing device disclosed in this specification includes a first wireless interface for executing wireless communication according to the BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system, the first wireless interface being capable of repeatedly transmitting an advertising signal; a specific signal receiving unit that receives a specific signal via the first wireless interface from a terminal device that has received a first advertising signal using a first radio wave strength after the first advertising signal is transmitted from the first wireless interface; a first change unit that changes the radio wave strength used for transmitting the advertising signal from the first radio wave strength to a second radio wave strength lower than the first radio wave strength when the specific signal is received from the terminal device; a first connection request receiving unit that receives a first connection request via the first wireless interface from the terminal device that has received the second advertising signal after a second advertising signal using the second radio wave intensity is transmitted from the terminal device; a first establishment unit that establishes a first wireless connection with the terminal device via the first wireless interface when the first connection request is received from the terminal device; and a target information communication unit that, when the first wireless connection with the terminal device is established, uses the first wireless connection to communicate target information with the terminal device via the first wireless interface to use a specific function of the function executing device.

[0006] According to the above configuration, when the function executing device receives a specific signal from the terminal device after transmitting a first advertising signal using the first radio wave strength, the function executing device changes the radio wave strength used for transmitting the advertising signal from the first radio wave strength to a second radio wave strength lower than the first radio wave strength. As a result, unless the distance between the function executing device and the terminal device is reduced, the terminal device cannot receive the second advertising signal using the second radio wave strength from the function executing device. When the function executing device receives a first connection request from the terminal device that has received the second advertising signal due to the reduction in the distance between the function executing device and the terminal device, the function executing device establishes a first wireless connection with the terminal device. Then, the function executing device uses the first wireless connection to execute communication of the target information with the terminal device. In this way, the function executing device can control communication of the target information with the terminal device according to the distance between the function executing device and the terminal device.

[0007] Another function executing device disclosed in this specification includes a first wireless interface for executing wireless communication according to a BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system, the first wireless interface being capable of repeatedly transmitting an advertising signal; a second connection request receiving unit that receives a second connection request via the first wireless interface from a terminal device that has received the first advertising signal after the first advertising signal using a first radio wave intensity has been transmitted from the first wireless interface; a second establishing unit that, when the second connection request is received from the terminal device, establishes a second wireless connection with the terminal device via the first wireless interface; and, when the second wireless connection with the terminal device is established, changes the radio wave intensity used for transmitting the advertising signal from the first radio wave intensity to the first radio wave intensity. a first change unit that changes the radio wave intensity to a second radio wave intensity lower than the radio wave intensity of the first wireless interface; a first connection request receiving unit that receives a first connection request via the first wireless interface from the terminal device that received the second advertising signal after a second advertising signal using the second radio wave intensity is transmitted from the first wireless interface; a first establishment unit that establishes a first wireless connection with the terminal device via the first wireless interface when the first connection request is received from the terminal device; and a target information communication unit that, when the first wireless connection with the terminal device is established, uses the first wireless connection to communicate target information with the terminal device via the first wireless interface to use a specific function of the function executing device.

[0008] According to the above configuration, when the function executing device receives a first connection request from the terminal device and establishes a second wireless connection with the terminal device after transmitting a first advertising signal using the first radio wave strength, the function executing device changes the radio wave strength used for transmitting the advertising signal from the first radio wave strength to a second radio wave strength lower than the first radio wave strength. As a result, unless the distance between the function executing device and the terminal device is reduced, the terminal device cannot receive the second advertising signal using the second radio wave strength from the function executing device. When the function executing device receives a first connection request from the terminal device that has received the second advertising signal due to the reduction in the distance between the function executing device and the terminal device, the function executing device establishes a first wireless connection with the terminal device. Then, the function executing device uses the first wireless connection to execute communication of the target information with the terminal device. In this way, the function executing device can control communication of the target information with the terminal device according to the distance between the function executing device and the terminal device.

[0009] A computer program for a terminal device disclosed in this specification includes a first advertising signal receiving unit that receives a first advertising signal using a first radio wave intensity from a function execution device via a wireless interface of the terminal device, the wireless interface being a BLE (Bluetooth (registered trademark) Low a specific signal transmission unit which transmits a specific signal to the function performing device via the wireless interface after the first advertising signal is received from the function performing device; a second advertising signal reception unit which receives a second advertising signal from the function performing device via the wireless interface after the specific signal is transmitted to the function performing device, the second advertising signal using a second radio wave intensity lower than the first radio wave intensity; a connection request transmission unit which transmits a connection request to the function performing device via the wireless interface after the second advertising signal is received from the function performing device, the connection request transmission unit transmitting a wireless connection request to the function performing device via the wireless interface in response to the connection request being transmitted to the function performing device, and a target information communication unit which, when the wireless connection with the function performing device is established, communicates target information with the function performing device via the wireless interface using the wireless connection.

[0010] According to the above configuration, the terminal device transmits a specific signal to the function performing device after receiving a first advertising signal using a first radio wave intensity from the function performing device. As a result, in the function performing device, the radio wave intensity used for transmitting the advertising signal is changed from the first radio wave intensity to a second radio wave intensity lower than the first radio wave intensity. As a result, unless the distance between the function performing device and the terminal device is reduced, the terminal device cannot receive the second advertising signal using the second radio wave intensity from the function performing device. Due to the reduction in the distance between the function performing device and the terminal device, the terminal device transmits a connection request to the function performing device after receiving the second advertising signal from the function performing device. As a result, a wireless connection with the function performing device is established. Then, the terminal device uses the wireless connection to execute communication of the target information with the function performing device. In this way, the terminal device can control communication of the target information with the function performing device according to the distance between the function performing device and the terminal device.

[0011] Another computer program for a terminal device disclosed in this specification causes a computer of the terminal device to include the following units: a first advertising signal receiving unit that receives a first advertising signal using a first radio wave intensity from a function performing device via a wireless interface of the terminal device, the wireless interface being an interface for performing wireless communication according to a BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system; a second connection request transmitting unit that transmits a second connection request to the terminal device via the wireless interface after the first advertising signal is received from the function performing device, such that a second wireless connection with the function performing device is established via the wireless interface in response to the second connection request being transmitted to the function performing device; and a second advertising signal receiving unit that transmits a second advertising signal using a second radio wave intensity lower than the first radio wave intensity from the function performing device via the wireless interface after the second wireless connection with the function performing device is established. a first connection request transmitting unit that transmits a first connection request to the function performing device via the wireless interface after the second advertising signal is received from the function performing device, wherein a first wireless connection with the function performing device is established via the wireless interface in response to the first connection request being transmitted to the function performing device; and a target information communication unit that, when the first wireless connection with the function performing device is established, communicates target information with the function performing device via the wireless interface by using the first wireless connection.

[0012] According to the above configuration, the terminal device transmits a second connection request to the function performing device after receiving a first advertising signal using a first radio wave intensity from the function performing device. As a result, a second wireless connection with the function performing device is established, and the radio wave intensity used for transmitting the advertising signal in the function performing device is changed from the first radio wave intensity to a second radio wave intensity lower than the first radio wave intensity. As a result, unless the distance between the function performing device and the terminal device is reduced, the terminal device cannot receive the second advertising signal using the second radio wave intensity from the function performing device. Due to the reduction in the distance between the function performing device and the terminal device, the terminal device transmits a first connection request to the function performing device after receiving the second advertising signal from the function performing device. As a result, a first wireless connection with the function performing device is established. Then, the terminal device uses the first wireless connection to execute communication of the target information with the function performing device. In this way, the terminal device can control communication of target information with the function performing device depending on the distance between the function performing device and the terminal device.

[0013] A computer program for implementing the above-mentioned function executing device, a computer-readable recording medium storing the computer program, and a method executed by the above-mentioned function executing device are also novel and useful. A computer-readable recording medium storing the computer program for the above-mentioned terminal device, the above-mentioned terminal device itself, and a method executed by the above-mentioned terminal device are also novel and useful. Also, a system including the above-mentioned function executing device and the above-mentioned terminal device is novel and useful. [Brief description of the drawings]

[0014] [Figure 1] 1 shows the configuration of a communication system. [Diagram 2] A conceptual diagram of the printer's Primary Services is shown. [Diagram 3] The data structure of the printer's Primary Services is shown below. [Figure 4]FIG. 4 shows a sequence diagram of a process executed by a mobile terminal and a printer. [Diagram 5] A continuation of Figure 4 is shown. [Figure 6] A continuation of Figure 5 is shown. [Figure 7] A continuation of Figure 6 is shown. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] (Configuration of communication system 2: Figure 1) As shown in FIG. 1, the communication system 2 includes a mobile terminal 10 (hereinafter simply referred to as "terminal 10") and a printer 100. In this embodiment, first, a wireless connection (hereinafter referred to as "BT connection") according to the BLE (abbreviation of Bluetooth Low Energy) method is established between the terminal 10 and the printer 100, and information for establishing a wireless connection (hereinafter referred to as "Wi-Fi connection") according to the Wi-Fi method is transmitted from the printer 100 to the terminal 10. After that, a Wi-Fi connection is established between the terminal 10 and the printer 100. In this manner, in this embodiment, the communication between the terminal 10 and the printer 100 is shifted from communication according to the BT connection to communication according to the Wi-Fi connection. That is, in this embodiment, a so-called handover (hereinafter sometimes referred to as "HO") from the BT connection to the Wi-Fi connection is realized.

[0016] (Terminal 10 Configuration) The terminal 10 is a portable terminal device such as a mobile phone (e.g., a smartphone), a PDA, or a tablet PC. The terminal 10 includes a display unit 12, a Wi-Fi interface 14, a BT (abbreviation of Bluetooth (registered trademark)) interface 16, and a control unit 30. The units 12 to 30 are connected to a bus line (reference numerals omitted). In the following, the interface will be simply referred to as "I / F".

[0017] The display unit 12 is a display for displaying various information, and also functions as a touch panel (i.e., an operation unit) for receiving instructions from a user.

[0018] The Wi-Fi I / F 14 is a wireless interface for performing wireless communication according to the Wi-Fi method. The Wi-Fi method is a wireless communication method for performing wireless communication according to, for example, the IEEE (abbreviation of The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards equivalent thereto (for example, 802.11a, 11b, 11g, 11n, 11ac, etc.). The Wi-Fi I / F 14 particularly supports the WFD (abbreviation of Wi-Fi Direct (registered trademark)) method established by the Wi-Fi Alliance. The WFD method is a wireless communication method described in the specification "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" created by the Wi-Fi Alliance. The terminal 10 can operate in any one of the G / O (abbreviation of Group Owner) state, CL (abbreviation of Client) state, and device state of the WFD method. For example, the terminal 10 operates as a CL in the WFD system and can participate as a child station in a wireless network formed by an external device (eg, the printer 100) operating as a G / O in the WFD system.

[0019] BTI / F16 is an I / F for performing wireless communication according to the BT method. The BT method is a wireless communication method based on the IEEE802.15.1 standard and standards equivalent thereto. More specifically, BTI / F16 supports the BLE method. The BLE method is a standard realized in BT method version 4.0 and later versions.

[0020] The differences between the Wi-Fi system and the BT system will be described below. The communication speed of the Wi-Fi system (for example, the maximum communication speed is 600 Mbps) is faster than the communication speed of the BT system (for example, the maximum communication speed is 24 Mbps). The carrier frequency in the Wi-Fi system communication is in the 2.4 GHz band or the 5.0 GHz band. The carrier frequency in the BT system communication is in the 2.4 GHz band. In addition, the maximum distance at which the Wi-Fi system communication can be performed (for example, about 100 m) is longer than the maximum distance at which the BT system communication can be performed (for example, about several tens of meters).

[0021] The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes in accordance with programs 36, 38 stored in the memory 34. The memory 34 is composed of a volatile memory, a non-volatile memory, etc., and stores an OS (short for Operating System) program 36 (hereinafter simply referred to as "OS 36") and a print application 38 (hereinafter simply referred to as "app 38").

[0022] The OS 36 is a program for controlling basic operations of the terminal 10, and is, for example, iOS (registered trademark) or Android (registered trademark). The app 38 is an application for executing HO with the printer 100 and then transmitting image data representing an image to be printed to the printer 100 using a Wi-Fi connection. The app 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 media shipped together with the printer 100.

[0023] (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 vendor name, model name, and device name of the printer 100 are “AAA”, “BBB”, and “CCC”, respectively. The printer 100 includes a display unit 112, a Wi-Fi I / F 114, a BTI / F 116, a print execution unit 118, and a control unit 130.

[0024] The display unit 112 is a display for displaying various information. The display unit 112 also functions as a touch panel (i.e., an operation unit) that accepts instructions from a user. The Wi-Fi I / F 114 is the same as the Wi-Fi I / F 14 of the terminal 10. That is, the Wi-Fi I / F 114 supports the WFD method. The Wi-Fi I / F 114 is assigned a MAC address "WF5678-AAA". The MAC address includes the vendor name "AAA" of the printer 100. The BTI / F 116 is the same as the BTI / F 16 of the terminal 10. That is, the BTI / F 116 supports the BLE method. The BTI / F 116 is assigned a MAC address "BT1234-AAA". The MAC address includes the vendor name "AAA" of the printer 100. The print execution unit 118 has a printing mechanism such as an inkjet method or a laser method.

[0025] The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes in accordance with a program 136 stored in the memory 134. The memory 134 is configured with a volatile memory, a non-volatile memory, etc., and stores a protocol stack 138 in addition to the program 136.

[0026] The protocol stack 138 includes a protocol stack conforming to the BLE method and has a hierarchical structure shown in FIG. 1. L2CAP (short for Logical Link Control and Application Protocol) is a stack for establishing a BT connection (hereinafter, also referred to as "L2CAP Link"). SMP (short for Security Manager Protocol) and ATT (short for Attribute Protocol) are upper layers of L2CAP. SMP is a protocol for encrypting information communicated using a BT connection. ATT is a protocol for defining an access method between a server and a client in communication using a BT connection. GATT (short for Generic Attribute Profile) is a higher layer of ATT and is a protocol for defining the functions of a server and a client. GAP (short for Generic Access Profile) is a higher layer of L2CAP, SMP, ATT, and GATT, and is a protocol for defining functions common to each device capable of performing communication in the BLE method. The Primary Service group is a higher layer of GAP and is an application for defining specific operations related to communication in the BLE method. In the following, Primary Service will simply be referred to as "PS."

[0027] (PS group concept: Figure 2) The concept of the PS group included in the protocol stack 138 will be described with reference to Fig. 2. The table in Fig. 2 conceptually illustrates the PS group for ease of understanding, and differs from the specific data structure of the PS group. The data structure of the PS group will be described with reference to Fig. 3 after the explanation of Fig. 2 is finished. The PS group is divided into a first type PS defined by the Bluetooth SIG (i.e., determined in advance by the BT system standard) and a second type PS defined by the vendor of the printer 100.

[0028] (First-class PS) The first type of PS includes a GAP Service 138A (hereinafter simply referred to as "GA138A"). GA138A is a PS for transmitting information related to the BTI / F 116. The information includes, for example, a device name "CCC". A predetermined UUID "0x1800" is assigned to GA138A. GA138A includes a plurality of Characteristics (hereinafter simply referred to as "CHs"). A CH is information that defines a specific function of a PS. The plurality of CHs included in GA138A include a CH "Device Name" that defines the transmission of the device name "CCC". A predetermined UUID "0x2A00" is assigned to the CH "Device Name". In FIG. 2, the description of other CHs included in GA138A is omitted.

[0029] (2nd type PS) The second type of PS includes a WFD Connection 138B (hereinafter simply referred to as "WC138B") and a BT Control 138C (hereinafter simply referred to as "BC138C").

[0030] WC138B is a PS for defining communication of each piece of information for establishing a Wi-Fi connection according to the WFD method, and is assigned the UUID "aaa0" defined by the vendor of the printer 100. The CHs included in WC138B include "Power Control", "Handover Mode MAC Address", "Public Encryption Key", "Connection Information", and "Change Status".

[0031] "Power Control" is a CH (UUID "aaa1") that defines the reception of a Low Power instruction to lower the radio wave strength used by the BTI / F 116 (i.e., writing information to the printer 100). "Handover Mode MAC Address" is a CH (UUID "aaa2") that defines the reception of a MAC address for HO. "Public Encryption Key" is a CH (UUID "aaa3") that defines the reception of an encryption key. "Connection Information" is a CH (UUID "aaa4") that defines the transmission of information to establish a Wi-Fi connection (i.e., reading information from the printer 100). "Change Status" is a CH (UUID "aaa5") that defines the reception of a WFD start instruction to operate the printer 100 as a G / O.

[0032] The BC138C is a PS for receiving an instruction to change the state of the BTI / F 116, and is assigned the UUID "bbb0" defined by the vendor of the printer 100. The CHs included in the BC138C include "Pairing Control." The "Pairing Control" is a CH (UUID "bbb1") that defines the reception of a disconnection instruction to disconnect the BT connection (i.e., the L2CAP Link).

[0033] (PS group data structure: Figure 3) Next, a specific data structure of the PS group will be described with reference to FIG. 3. The PS group has a table structure in which Handle, Attribute Type, Attribute Value, and Attribute Permission are associated with each other. Handles are consecutive numbers starting from "0x0001". In FIG. 3, a part of the data structure after "0x0002" is omitted. For this reason, Handles after "0x0002" are expressed by the symbol "nk (k is an integer equal to or greater than 1)" instead of actual values. Attribute Type (hereinafter simply referred to as "AType") is an identifier (i.e., UUID) indicating the type of information to be communicated. Attribute Value (hereinafter simply referred to as "AValue") indicates the information to be communicated. Attribute Permission (hereinafter simply referred to as "APer") is an item related to SMP, and more specifically indicates the conditions for permitting reading of information from the printer 100 or writing to the printer 100.

[0034] In this embodiment, APer describes "Readable without authentication (hereinafter abbreviated as "RWA")" or "Writeable without authentication (hereinafter abbreviated as "WWA")." RWA indicates that authentication is not required when reading information from printer 100. WWA indicates that authentication is not required when writing information to printer 100. Note that although the descriptions "without encryption" and "without authorization" are omitted, RWA and WWA indicate that neither encryption nor authorization is required when reading or writing information.

[0035] (First-class PS) GA138A contains a data group that corresponds to the Handle range from "0x0001" to a specified value (the value immediately preceding "n10"). The data that corresponds to Handle "0x0001" is as follows: AType contains UUID "0x2800" indicating that this is the first data in PS. AValue contains UUID "0x1800". APer contains RWA.

[0036] The data corresponding to the Handle "0x0002" is as follows: AType includes UUID "0x2803" indicating CH Declaration. AValue includes a property indicating "Read", Handle "n1", and UUID "0x2A00". APer includes RWA.

[0037] The data corresponding to the Handle "n1" is as follows: Atype includes the UUID "0x2A00" of the CH "Device Name". AValue includes the device name "CCC". APer includes the RWA.

[0038] Since GA138A has the above data structure, the device name "CCC" in GA138A is read as follows. When the printer 100 (i.e., the BT server) receives a Read By Type Request signal with UUID "0x2803" specified from a BT client (e.g., the mobile terminal 10), it permits reading of the AValue (i.e., the property "Read", Handle "n1", and UUID "0x2A00") corresponding to UUID "0x2803" according to the RWA indicated in the APer corresponding to UUID "0x2803". As a result, the client can receive this information, and based on this information, can know that it is possible to read information corresponding to Handle "n1" and UUID "0x2A00". Then, the client can receive (i.e., read) the device name "CCC" from the printer 100 by sending a Read By Type Request signal with UUID "0x2A00" specified to the printer 100.

[0039] (2nd type PS) WC138B is a data group corresponding to the handle range "n10" to "n20". The data corresponding to handle "n10" is as follows: AType includes UUID "0x2800". AValue includes UUID "aaa0". APer includes RWA.

[0040] The data corresponding to the Handles "n11" to "n15" is as follows: AType includes a UUID "0x2803". AValue includes a property "Write" or "Read", a Handle (e.g., "n16"), and a UUID (e.g., "aaa1"). APer includes an RWA.

[0041] The data corresponding to the Handle "n16" is as follows: Atype includes the UUID "aaa1" of the CH "Power Control". AValue is written with a Low Power command from the client. Note that before information is written, the AValue includes null information. For this reason, the information to be written is indicated by dashed lines in FIG. 3. APer includes WWA.

[0042] Since Handle "n16" of WC138B has the above data structure, a Low Power instruction is written to the AValue corresponding to Handle "n16" as follows. When the printer 100 (i.e., the BT type server) receives a Read By Type Request signal with UUID "0x2803" specified from a client (e.g., the mobile terminal 10), the printer 100 permits the client to read each AValue (i.e., property "Read" or "Write", Handle "n16" to "n20", and UUID "aaa1" to "aaa5") corresponding to UUID "0x2803" according to the RWA indicated in the APer corresponding to UUID "0x2803". As a result, the client can start reading out this information, and based on this information, it can know that it is possible to write information corresponding to Handle "n16" and UUID "aaa1". Then, the client can write a Low Power instruction to the printer 100 by sending a Write Request signal to the printer 100 in which the Handle “n16” is specified and which includes a Low Power instruction.

[0043] The data corresponding to the handles "n17" to "n20" are as shown in the figure. The HO MAC address, the encryption key 200, and the WFD start command are written in the AValue corresponding to the handles "n17", "n18", and "n20", respectively. The AValue corresponding to the handle "n19" includes information for establishing a Wi-Fi connection with the printer 100. This information includes the SSID "XXX" of the wireless network in which the printer 100 operates as a G / O, the password "YYY" for the wireless network, the MAC address "WF5678-AAA" of the Wi-Fi I / F 114 of the printer 100, and the IP address "192.168.1.1" of the printer 100.

[0044] BC138C is a data group corresponding to the Handle range "n30" to "n32". The data corresponding to Handle "n30" to "n32" is as shown in the figure. A disconnection instruction is written to AValue corresponding to Handle "n32".

[0045] (Detailed processing: Figure 4) Next, specific processing executed by the terminal 10 and the printer 100 will be described with reference to Figs. 4 to 7. In particular, since the PS group of the printer 100 has the data structure of Fig. 3, the CPU 132 of the printer 100 can realize the following processing according to the PS group. In the following, when describing processing executed by the CPU 32 of the terminal 10 according to the OS 36 or the application 38, the OS 36 or the application 38 will be mainly described. In Figs. 4 to 7, the communication according to the BT method and the communication according to the Wi-Fi method between the terminal 10 and the printer 100 are shown by solid lines and dashed lines, respectively. Also, all communications in Figs. 4 to 6 are executed via the BTI / F 16 and 116. Therefore, when describing each communication in Figs. 4 to 6, the description "via the BTI / F 16 (or 116)" will be omitted.

[0046] At T100, the power of the printer 100 is turned on by the user. In this case, the CPU 132 of the printer 100 starts the BTI / F 116, and as a result, at T102, the BTI / F 116 repeatedly transmits a first advertising signal using a first radio wave strength. Here, the first radio wave strength is a strength that allows the advertising signal to be transmitted for ten meters or more. Hereinafter, the advertising signal will be referred to as an "AD signal." The first AD signal includes the MAC address "BT1234-AAA."

[0047] At T110, the user executes an operation to start up the application 38, and at T112, the user executes an operation to select an image file representing an image to be printed. The image file selected here may be, for example, a file stored in the memory 34 of the terminal 10, or may be a file acquired from outside.

[0048] In T114, the application 38 supplies a reception instruction to the OS 36 to instruct reception of an AD signal. In this case, the OS 36 starts the BTI / F 16, and in T120 receives the first AD signal from the printer 100. In this case, the OS 36 transmits a Scan Request signal to the printer 100 in T122. This signal is a signal for requesting transmission of information from the printer 100.

[0049] When the CPU 132 of the printer 100 receives a Scan Request signal from the terminal 10 (T122), it transmits a Scan Response signal including the model name "BBB" and the MAC address "BT1234-AAA" to the terminal 10 at T124.

[0050] When the OS 36 receives a Scan Response signal from the printer 100 (T124), in T126, it supplies the model name "BBB" and the MAC address "BT1234-AAA" contained in the signal to the application 38.

[0051] Using the information acquired in T126, the application 38 determines in T130 whether the printer 100 has a power change function. Specifically, the application 38 first determines whether the acquired MAC address includes the vendor name "AAA" of the printer 100. In the case of FIG. 4, the application 38 determines that the acquired MAC address includes the vendor name "AAA", and then determines whether the acquired model name is the model name of a printer that has a power change function. This determination is made based on a model list pre-stored in the application 38. The model list includes each model name of a printer that has a power change function. In the case of FIG. 4, the application 38 determines that the acquired model name is the model name of a printer that has a power change function, and as a result, determines YES in T130 and proceeds to T140.

[0052] If the application 38 determines that the acquired MAC address does not include the vendor name "AAA" or that the acquired model name is not the model name of a printer having a power change function, it determines NO in T130 and proceeds to normal processing. Although not shown in the figure, the normal processing is a process for executing pairing between the terminal 10 and the printer and communicating information for establishing a Wi-Fi connection without the printer, which is the communication partner of the terminal 10, lowering the radio wave intensity of the AD signal. Specifically, the terminal 10 displays, for example, a screen for inputting a PIN code and accepts input of the PIN code displayed on the printer. Then, when the authentication of the PIN code is successful, the terminal 10 establishes a BT connection with the printer. Then, the terminal 10 receives information for establishing a Wi-Fi connection from the printer using the BT connection, and establishes a Wi-Fi connection with the printer using the information. After that, the terminal 10 transmits the image file selected in T112 to the printer using the Wi-Fi connection.

[0053] The processing from T140 onwards is for establishing a BT connection between the terminal 10 and the printer 100 without the user having to input a PIN code into the terminal 10. Since the user does not have to input a PIN code, user convenience is improved. In T140, the application 38 displays a connection confirmation screen on the display unit 12. The connection confirmation screen is a screen for inquiring of the user as to whether or not to establish a BT connection with the printer 100 having the model name "BBB" acquired in T126, and includes a YES button and a Cancel button.

[0054] In T142, the user selects the YES button in the connection confirmation screen. In this case, in T143, the application 38 supplies a connection instruction for instructing the establishment of a BT connection to the OS 36. In this case, in T144, the OS 36 transmits a CONNECT_IND signal to the printer 100.

[0055] When the CPU 132 receives a CONNECT_IND signal from the terminal 10 (T144), at T146, the CPU 132 establishes an L2CAP link (i.e., a BT connection) with the terminal 10. Next, at T148, the CPU 132 instructs the BTI / F 116 to stop transmitting the first AD signal.

[0056] (Continuation of Figure 4: Figure 5) In T200 of Fig. 5, the OS 36 uses the L2CAP Link established in T146 of Fig. 4 to execute communication of structural information with the printer 100. Specifically, the OS 36 receives from the printer 100 each piece of data (i.e., Handle, AValue, and Aper; see Fig. 3) corresponding to the AType indicating UUID "0x2800" or "0x2803" in the PS group. Next, in T210, the OS 36 supplies the application 38 with a completion notification indicating that the establishment of the L2CAP Link and the communication of structural information have been completed.

[0057] When the application 38 acquires a completion notification from the OS 36 (T210), in T212, the application 38 supplies an information request for requesting the supply of structure information to the OS 36. Then, in T214, the application 38 acquires the structure information from the OS 36. This allows the application 38 to know the type of information to be communicated (i.e., Read or Write), the Handle, and the UUID by referring to the acquired structure information (especially AValue) (see AValue in FIG. 3).

[0058] The application 38 generates the HO MAC address "9876-DDD" in the T220. The HO MAC address is generated, for example, by randomly selecting multiple characters. This generates a unique HO MAC address.

[0059] In T230, the application 38 supplies a write instruction including the handle “n16” and a low power instruction to the OS 36. In response to this, in T232, the OS 36 transmits a Write Request signal including this information to the printer 100.

[0060] When the CPU 132 receives a Write Request signal from the terminal 10 (T232), it stores (i.e., writes) a Low Power instruction as the value of AValue corresponding to Handle "n16". Then, in T234, the CPU 132 supplies the Low Power instruction to the BTI / F 116. As a result, in the process described below, the BTI / F 116 can transmit a second AD signal using a second radio wave strength lower than the first radio wave strength (see T102 in FIG. 4).

[0061] In T240, the application 38 supplies a write instruction including the handle “n17” and the HO MAC address “9876-DDD” generated in T220 to the OS 36. As a result, in T242, the OS 36 transmits a Write Request signal including this information to the printer 100.

[0062] When the CPU 132 receives a Write Request signal from the terminal 10 (T242), it stores the HO MAC address "9876-DDD" as the value of AValue corresponding to Handle "n17".

[0063] In T250, the application 38 supplies the OS 36 with a write instruction including the Handle “n18” and the predetermined encryption key 200. In response, the OS 36 transmits a Write Request signal including this information to the printer 100 in T252.

[0064] When the CPU 132 receives a Write Request signal from the terminal 10 (T252), it stores the encryption key 200 as the value of AValue corresponding to the Handle "n18".

[0065] In T260, the application 38 supplies a write instruction including the Handle “n32” and a disconnection instruction to the OS 36. As a result, in T262, the OS 36 transmits a Write Request signal including this information to the printer 100.

[0066] When the CPU 132 receives a Write Request signal from the terminal 10 (T262), it stores a disconnection instruction as the value of AValue corresponding to Handle "n32." Then, in T264, the CPU 132 transmits a disconnection signal to the terminal 10, thereby disconnecting the L2CAP Link established in T146 of FIG.

[0067] When the application 38 has finished supplying each write instruction to the OS 36 (i.e., when T260 is terminated), in T270, the application 38 displays a notification screen on the display unit 12. The notification screen includes a message encouraging the user to approach the printer 100 having the model name "BBB" acquired in T126 of Fig. 4. This allows the user to know that he or she should approach the printer 100.

[0068] (Continuation of Figure 5: Figure 6) When the CPU 132 disconnects the L2CAP Link at T264 in Fig. 5, it supplies the HO MAC address "9876-DDD" received at T242 in Fig. 5 to the BTI / F 116. As a result, the BTI / F 116 repeatedly transmits the second AD signal including the HO MAC address "9876-DDD" at T302. At T234 in Fig. 5, a low power command has been supplied to the BTI / F 116. For this reason, the BTI / F 116 transmits the second AD signal using a second radio wave strength lower than the first radio wave strength (see T102 in Fig. 4). Here, the second radio wave strength is a strength that allows the AD signal to be transmitted for less than 10 m, and in this embodiment, is a strength that allows the AD signal to be transmitted for about 1 m.

[0069] In T304, the application 38 supplies a reception instruction to the OS 36. This instruction is similar to the instruction in T114 of FIG. 4. Then, in T310, the terminal 10 approaches the printer 100 until the distance between the terminal 10 and the printer 100 falls within the transmission range of the second AD signal. In this case, the OS 36 receives the second AD signal from the printer 100 in T320. T322 to T326 are similar to T122 to T126 in FIG. 4, except that "9876-DDD" is used as the MAC address instead of "BT1234-AAA".

[0070] Next, in T330, the application 38 uses the information acquired in T326 to determine whether the printer that is the source of the second AD signal is the printer to which the Low Power instruction is sent in T232 of FIG. 5. Specifically, the application 38 determines whether the MAC address acquired in T326 matches the HO MAC address generated in T220 of FIG. 5. In the case of FIG. 6, the application 38 determines that the acquired MAC address "9876-DDD" matches the HO MAC address (YES in T330) and proceeds to T343. On the other hand, if the application 38 determines that the acquired MAC address does not match the HO MAC address, it monitors further reception of the AD signal until a predetermined time has elapsed. If the above-mentioned predetermined time has elapsed without determining that the acquired MAC address matches the HO MAC address, the application 38 determines NO in T330 and ends the process. In this manner, this embodiment employs an aspect in which the MAC address included in the first AD signal is different from the MAC address included in the second AD signal, and the application 38 does not execute the process after T343 if the MAC address included in the second AD signal does not match the HO MAC address. Therefore, even if the terminal 10 receives an AD signal from a printer other than the printer 100 to which the Low Power instruction was sent, the terminal 10 does not execute the process after T343. This allows the process after T343 to be executed between the terminal 10 and the appropriate printer 100.

[0071] T343 to T346 are the same as T143 to T146 in Fig. 4. When the CPU 132 establishes the L2CAP Link at T346, at T348, it instructs the BTI / F 116 to stop transmitting the second AD signal. T400 to T414 are the same as T200 to T214 in Fig. 5.

[0072] In T420, the application 38 supplies a read instruction including the Handle "n19" to the OS 36. In response to this, in T422, the OS 36 transmits a Read by Type Request signal including the UUID "aaa4" corresponding to the Handle "n19" (see the AValue corresponding to the Handle "n14" in FIG. 3) to the printer 100.

[0073] When the CPU 132 receives a Read by Type Request signal from the terminal 10 (T422), it first acquires the value of AValue corresponding to UUID "aaa4" from the PS group. That is, the CPU 132 acquires SSID "XXX", password "YYY", MAC address "WF5678-AAA", and IP address "192.168.1.1" (see AValue corresponding to Handle "n19" in FIG. 3). Next, in T424, the CPU 132 generates encrypted data by encrypting each piece of acquired information using the encryption key 200 received in T252 in FIG. 5. Then, in T426, the CPU 132 transmits the generated encrypted data to the terminal 10. In this way, the printer 100 transmits encrypted data to the terminal 10, and thus it is possible to prevent information such as SSID "XXX" and password "YYY" from being acquired by a terminal other than the terminal 10.

[0074] When the OS 36 receives the encrypted data from the printer 100 (T426), it supplies the encrypted data to the application 38 in T428.

[0075] (Continuation of Figure 6: Figure 7) 7, the application 38 supplies a write instruction including the Handle "n20" and a WFD start instruction to the OS 36. As a result, the OS 36 transmits a Write Request signal including this information to the printer 100 in T432.

[0076] When the CPU 132 receives a Write Request signal from the terminal 10 (T432), it stores a WFD start instruction as the value of AValue corresponding to Handle "n20" in the PS group. Then, in T434, the CPU 132 transitions the state of the printer 100 from a state other than the G / O state of the WFD method (for example, a so-called device state) to the G / O state.

[0077] 6. In T500, the application 38 uses the encryption key 200 to decrypt the encrypted data acquired in T428 of Fig. 6. This allows the application 38 to acquire the SSID "XXX", the password "YYY", the MAC address "WF5678-AAA", and the IP address "192.168.1.1". Then, in T502, the application 38 supplies a Wi-Fi instruction including the SSID "XXX", the password "YYY", and the MAC address "WF5678-AAA" to the OS 36.

[0078] When the OS 36 acquires a Wi-Fi instruction from the application 38 (T502), it activates the Wi-Fi I / F 14, and transmits a Probe Request signal by broadcast via the Wi-Fi I / F 14 in T504.

[0079] When the CPU 132 receives a Probe Request signal from the terminal 10 via the Wi-Fi I / F 114 (T504), in T506, the CPU 132 transmits a Probe Response signal including the SSID “XXX” and the MAC address “WF5678-AAA” to the terminal 10 via the Wi-Fi I / F 114.

[0080] When the OS 36 receives a Probe Response signal from the printer 100 via the Wi-Fi I / F 14 (T506), it determines that the SSID "XXX" included in the signal matches the SSID already acquired by T500, and also determines that the MAC address "WF5678-AAA" included in the signal matches the MAC address already acquired by T500. In other words, the OS 36 determines that the printer 100 that sent the Probe Response signal is a device with which a Wi-Fi connection should be established.

[0081] In T510, the OS 36 executes connection establishment communication with the printer 100 via the Wi-Fi I / F 14. The connection establishment communication includes various types of communication such as authentication, association, and 4-way handshake. In the process of the connection establishment communication, data obtained using the SSID "XXX" and password "YYY" acquired in T500 is sent to the printer 100, and authentication is executed in the printer 100. In this case, the authentication is successful, so that a Wi-Fi connection is established between the terminal 10 and the printer 100 in T512. When the Wi-Fi connection with the printer 100 is established (T512), the OS 36 supplies a completion notification indicating that the establishment of the Wi-Fi connection has been completed to the application 38 in T514.

[0082] When the Wi-Fi connection with the terminal 10 is established (T512), the CPU 132 transmits a disconnection signal to the terminal 10 via the BTI / F 116 in T520, thereby disconnecting the L2CAP link already established in T346 of FIG. 6. Then, the CPU 132 supplies a High Power instruction to the BTI / F 116. As a result, the BTI / F 116 repeatedly transmits the first AD signal using the first radio wave strength in T524. The first AD signal transmitted here is the same as the first AD signal transmitted in T102 of FIG. 4, and includes the MAC address "BT1234-AAA" pre-assigned to the BTI / F 116, not the HO MAC address "9876-DDD". In this way, when the printer 100 finishes communication of information such as the SSID "XXX" and the password "YYY", it can restore the radio wave strength used for transmitting the AD signal. 7. Furthermore, although not shown, the CPU 132 erases the information stored in response to each of the Write Request signals already received at T232, T242, T252, and T262 in FIG. 5 and at T432 in FIG.

[0083] When the application 38 acquires a completion notification from the OS 36 (T514), in T530, the application 38 supplies a transmission instruction to the OS 36 to instruct transmission of the image file. The transmission instruction includes the IP address "192.168.1.1" acquired in T500 of Fig. 7 and the file name of the image file selected in T112 of Fig. 4. As a result, in T532, the OS 36 transmits the image file to the printer 100 with the IP address "192.168.1.1" as the destination, using the Wi-Fi connection established in T512.

[0084] When the CPU 132 receives an image file from the terminal 10 (T532), in T534 it instructs the print execution unit 118 to print the image represented by the image file. As a result, the print execution unit 118 executes printing of the image. Then, in T536, the CPU 132 transitions the state of the printer 100 from the G / O state to a state other than the G / O state. As a result, the Wi-Fi connection established in T512 is disconnected.

[0085] (Effects of this embodiment) According to this embodiment, after transmitting the first AD signal using the first radio wave strength (T102 in FIG. 4), when the printer 100 receives a CONNECT_IND signal from the terminal 10 (T144), it establishes an L2CAP link with the terminal 10 (T146). When the printer 100 receives a Write Request signal including a Low Power command from the terminal 10 using the L2CAP link (T232 in FIG. 5), it changes the radio wave strength used to transmit the AD signal from the first radio wave strength to a second radio wave strength lower than the first radio wave strength (T234). As a result, unless the distance between the printer 100 and the terminal 10 is reduced, the terminal 10 cannot receive the second AD signal using the second radio wave strength from the printer 100. Next, when the printer 100 receives a Write Request signal including a disconnection instruction from the terminal 10 (T262), the printer 100 disconnects the above-mentioned L2CAP Link and transmits a second AD signal using the second radio wave intensity (T302 in FIG. 6). When the printer 100 receives a CONNECT_IND signal from the terminal 10 that has received the second AD signal (T344) due to the distance between the printer 100 and the terminal 10 becoming shorter (becoming less than 1 m in this embodiment), the printer 10 establishes an L2CAP Link with the terminal 10 (T346). The printer 100 uses the L2CAP Link to communicate information such as SSID "XXX" and password "YYY" with the terminal 10 (T422). Then, the printer 100 establishes a Wi-Fi connection with the terminal 10 using the above information (T512 in FIG. 7), receives an image file from the terminal 10 using the Wi-Fi connection (T532), and executes printing of the image represented by the image file (T534).

[0086] Here, a comparative example is assumed in which communication of information such as SSID "XXX" is performed using the L2CAP Link established at T146 in FIG. 4. According to the comparative example, when the distance between the printer 100 and the terminal 10 is relatively large (10 m or more in this embodiment), the above information is communicated without PIN code authentication (i.e., without pairing). In this case, for example, when the printer 100 is installed in an office of a certain company, the terminal 10 located in a place other than the office (for example, an office of another company adjacent to the office) may receive information such as SSID "XXX" from the printer 100. Then, the terminal 10 can establish a Wi-Fi connection with the printer 100 using the information, and cause the printer 100 to print an image. In this way, in the comparative example, a third party who is not a regular user of the printer 100 may use the printer 100. In contrast, according to this embodiment, communication of information such as SSID "XXX" is not performed in the L2CAP Link established at T146 in FIG. 4. Then, the above information is communicated using an L2CAP Link (see T346 in FIG. 6) that is established as a result of the radio wave strength used to transmit the AD signal decreasing and the distance between the printer 100 and the terminal 10 decreasing. In other words, unless the user moves the terminal 10 closer to the printer 100, the above information is not communicated, so it is possible to prevent a third party from using the printer 100. Thus, according to this embodiment, the printer 100 and the terminal 10 can appropriately control the communication of the above information depending on the distance between the printer 100 and the terminal 10.

[0087] (Correspondence) The printer 100, the terminal 10, the BTI / F 116, the Wi-Fi I / F 114, and the BTI / F 16 are examples of a "function executing device," a "terminal device," a "first wireless interface," a "second wireless interface," and a "wireless interface," respectively. The Low Power instruction communicated at T232 in FIG. 5 is an example of a "specific signal." The CONNECT_IND signal at T344 in FIG. 6 and the CONNECT_IND signal at T144 in FIG. 4 are examples of a "first connection request (or connection request)" and a "second connection request," respectively. The L2CAP Link at T346 in FIG. 6, the L2CAP Link at T146 in FIG. 4, and the Wi-Fi connection at T512 in FIG. 7 are examples of a "first wireless connection (or wireless connection)," a "second wireless connection," and a "third wireless connection," respectively. Information such as the SSID "XXX" and the password "YYY" communicated at T426 in FIG. 6 are examples of "target information." The MAC address "BT1234-AAA" and the MAC address "9876-DDD" are examples of the "first identification information" and the "second identification information", respectively.

[0088] The processes of T144 and T146 in FIG. 4 are examples of processes executed by the "second connection request receiving unit" and the "second establishing unit", respectively. The processes of T232, T242, T252, and T264 in FIG. 5 are examples of processes executed by the "specific signal receiving unit", the "identification information communicating unit", the "encryption key communicating unit", and the "disconnecting unit", respectively. The processes of T302, T344, T346, and T426 in FIG. 6 are examples of processes executed by the "first changing unit", the "first connection request receiving unit", the "first establishing unit", and the "target information communicating unit", respectively. The processes of T522, T532, and T534 in FIG. 7 are examples of processes executed by the "second changing unit", the "image data receiving unit", and the "printing control unit", respectively.

[0089] The processes of T114 and T120 in FIG. 4 are an example of a process executed by a "first advertising signal receiving unit." The processes of T143 and T144 are an example of a process executed by a "second connection request transmitting unit." The processes of T230 and T232 in FIG. 5 are an example of a process executed by a "specific signal transmitting unit." The processes of T304 and T320 in FIG. 6 are an example of a process executed by a "second advertising signal receiving unit." The processes of T343 and T344 are an example of a process executed by a "connection request transmitting unit (or a first connection request transmitting unit)." The processes of T420, T422, and T426 are an example of a process executed by a "target information communication unit."

[0090] Although specific examples of the present invention have been described above in detail, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and alterations of the specific examples exemplified above. Modifications of the above-mentioned embodiments are listed below.

[0091] (Variation 1) The printer 100 may not receive the Low Power instruction of T232 in FIG. 5. In this case, the printer 100 may lower the radio wave strength used to transmit the AD signal, for example, on condition that the printer 100 receives the Scan Request signal of T122 in FIG. 4. In this modification, the Scan Request signal is an example of a "specific signal." In particular, in this modification, the L2CAP Link of T146 may not be established. That is, the "second connection request receiving unit," the "second establishing unit," and the "disconnecting unit" of the "function executing device" may be omitted. Also, the "second connection request transmitting unit" of the "terminal device" may be omitted. In another modification, the printer 100 may lower the radio wave strength used to transmit the AD signal, for example, on condition that the printer 100 receives the CONNECT_IND signal of T144 in FIG. 4. In this modification, the CONNECT_IND signal is an example of a "specific signal."

[0092] (Variation 2) The printer 100 may lower the radio wave intensity used for transmitting the AD signal, on the condition that the L2CAP Link of T146 in Fig. 4 is established, even if the printer 100 does not receive the Low Power command of T232 in Fig. 5. In this modification, the "specific signal receiving unit" of the "function executing device" can be omitted. Also, the "specific signal transmitting unit" of the "terminal device" can be omitted.

[0093] (Variation 3) Instead of the printer 100 transitioning to the G / O state, the terminal 10 may transition to the G / O state. In this case, instead of transmitting the SSID etc. to the terminal 10 at T426 in Fig. 6, the printer 100 receives from the terminal 10 the SSID, password etc. of the wireless network in which the terminal 10 operates as a G / O. Generally speaking, the "target information communication unit" of the "function performing device" and "terminal device" may transmit target information from the function performing device to the terminal device as in the above embodiment, or may transmit target information from the terminal device to the function performing device as in this modified example.

[0094] (Variation 4) 6, the printer 100 may transmit a login password for logging in to the printer 100 to the terminal 10 instead of the SSID or the like. In this case, the terminal 10 displays the login password, and the user can log in to the printer 100 by inputting the login password into the printer 100 (i.e., the printer 100 can be made available). In this modification, the login password is an example of "target information", and the "second wireless interface", "image data receiving unit", and "print control unit" of the "function performing device" can be omitted. In addition, the "target information" may be other information for using a specific function of the function performing device (for example, information indicating the status of the printer 100, information on the print history stored in the printer 100, etc.).

[0095] (Variation 5) The printer 100 may start transmitting the second AD signal with the L2CAP Link established after providing a Low Power instruction to the BTI / F 116 at T234 in Fig. 5. Generally speaking, the second advertising signal may be transmitted before the second wireless connection is disconnected.

[0096] (Variation 6) The printer 100 may disconnect the L2CAP link, for example, on the condition that the encryption key of T252 is received, even if the printer 100 does not receive the disconnection instruction of T262 in Fig. 5. In this modification, the "disconnection instruction receiving unit" of the "function executing device" can be omitted.

[0097] (Variation 7) The printer 100 may not receive the MAC address "9876-DDD" of T242 in FIG. 5 from the terminal 10. Then, the printer 100 may transmit a second AD signal including a MAC address that matches the MAC address "BT1234-AAA" included in the first AD signal in T302 in FIG. 6. In this case, the terminal 10 proceeds to T343 without executing the process of T330. In this modification, the "identification information communication unit" of the "function performing device" can be omitted, and the second advertising signal does not include the second identification information.

[0098] (Variation 8) Instead of receiving the MAC address "9876-DDD" of T242 in FIG. 5 from the terminal 10, the printer 100 may generate a unique MAC address and transmit the MAC address to the terminal 10. In this case, the printer 100 transmits a second AD signal including the MAC address in T302 in FIG. 6. The terminal 10 executes the determination in T330 using the MAC address already received from the printer 100. Generally speaking, the "identification information communication unit" may transmit the second identification information from the terminal device to the function executing device as in the above embodiment, or may transmit the second identification information from the function executing device to the terminal device as in this modified example.

[0099] (Variation 9) The printer 100 does not need to receive the encryption key 200 from the terminal 10 in T252 of Fig. 5. In this case, the printer 100 may transmit information such as the SSID "XXX" and the password "YYY" to the terminal 10 in T426 of Fig. 6 without encrypting this information. In this modification, the "encryption key communication unit" of the "function executing device" can be omitted.

[0100] (Variation 10) 5, the printer 100 may transmit the encryption key 200 to the terminal 10 instead of receiving the encryption key 200 from the terminal 10. Generally speaking, the "encryption key communication unit" may transmit the encryption key from the terminal device to the function performing device as in the above embodiment, or may transmit the encryption key from the function performing device to the terminal device as in this modified example.

[0101] (Variation 11) The "function performing device" does not have to be the printer 100, but may be, for example, a scanner, a FAX machine, a multi-function device, a PC, a server, or the like.

[0102] (Variation 12) In each of the above embodiments, the CPU 132 of the printer 100 executes the program 136 (i.e., software), and the CPU 32 of the terminal 10 executes the programs 36 and 38, thereby realizing each process in Fig. 4 to Fig. 7. Alternatively, any of the processes may be realized by hardware such as a logic circuit. [Explanation of symbols]

[0103] 2: communication system, 10: mobile terminal, 12: display unit, 14: Wi-Fi I / F, 16: BTI / F, 30: control unit, 32: CPU, 34: memory, 36: OS program, 38: print application, 100: printer, 112: display unit, 114: Wi-Fi I / F, 116: BTI / F, 130: control unit, 132: CPU, 134: memory, 136: program, 138: protocol stack

Claims

1. A function-performing device, comprising: A first wireless interface for performing wireless communication according to a BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system, the first wireless interface being capable of repeatedly transmitting an advertising signal; a specific signal receiving unit that receives a specific signal via the first wireless interface from a terminal device that has received a first advertising signal using a first radio wave intensity after the first advertising signal is transmitted from the first wireless interface; A first change unit that changes a radio wave intensity used for transmitting the advertising signal from the first radio wave intensity to a second radio wave intensity lower than the first radio wave intensity when the specific signal is received from the terminal device; a first connection request receiving unit that receives, after a second advertising signal using the second radio wave intensity is transmitted from the first wireless interface, a first connection request from the terminal device that has received the second advertising signal, via the first wireless interface; a first establishment unit that establishes a first wireless connection with the terminal device via the first wireless interface when the first connection request is received from the terminal device; a target information communication unit that, when the first wireless connection with the terminal device is established, uses the first wireless connection to communicate target information for using a specific function of the function executing device with the terminal device via the first wireless interface; A function performing device comprising:

2. The function execution device further comprises: a second connection request receiving unit that receives a second connection request from the terminal device that has received the first advertising signal, via the first wireless interface; a second establishment unit that establishes the second wireless connection with the terminal device via the first wireless interface when the second connection request is received from the terminal device; a disconnection unit that disconnects the second wireless connection, The function performing device according to claim 1 , wherein the second advertising signal using the second radio wave strength is transmitted from the first radio interface after the second wireless connection is disconnected.

3. The function performing device according to claim 2 , wherein the specific signal receiving unit receives the specific signal from the terminal device by using the second wireless connection.

4. 4. The function executing device according to claim 3, wherein the specific signal is a Write Request signal including an instruction to change radio wave intensity.

5. A function-performing device, comprising: A first wireless interface for performing wireless communication according to a BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system, the first wireless interface being capable of repeatedly transmitting an advertising signal; a second connection request receiving unit that receives, after a first advertising signal using a first radio wave intensity is transmitted from the first wireless interface, a second connection request from a terminal device that has received the first advertising signal, via the first wireless interface; a second establishment unit that establishes a second wireless connection with the terminal device via the first wireless interface when the second connection request is received from the terminal device; a first change unit that changes a radio wave intensity used for transmitting the advertising signal from the first radio wave intensity to a second radio wave intensity lower than the first radio wave intensity when the second wireless connection with the terminal device is established; a first connection request receiving unit that receives, after a second advertising signal using the second radio wave intensity is transmitted from the first wireless interface, a first connection request from the terminal device that has received the second advertising signal, via the first wireless interface; a first establishment unit that establishes a first wireless connection with the terminal device via the first wireless interface when the first connection request is received from the terminal device; a target information communication unit that, when the first wireless connection with the terminal device is established, uses the first wireless connection to communicate target information for using a specific function of the function executing device with the terminal device via the first wireless interface; A function performing device comprising:

6. The function execution device further comprises: a disconnection unit that disconnects the second wireless connection, The function performing device according to claim 5 , wherein after the second wireless connection is disconnected, the second advertising signal using the second radio wave intensity is transmitted from the first wireless interface.

7. The function execution device further comprises: a disconnection instruction receiving unit that receives a disconnection instruction from the terminal device via the first wireless interface by using the second wireless connection; The function executing device according to claim 2 , wherein the disconnection unit disconnects the second wireless connection when the disconnection instruction is received from the terminal device.

8. the first advertising signal includes first identification information that identifies the function-performing device; The function execution device further comprises: an identification information communication unit that communicates, via the first wireless interface by using the second wireless connection, second identification information for identifying the function performing device, the second identification information being different from the first identification information, with the terminal device; The function performing device according to claim 2 , wherein the second advertising signal includes the second identification information.

9. The function execution device further comprises: an encryption key communication unit that uses the second wireless connection to communicate an encryption key with the terminal device via the first wireless interface; The function executing device according to claim 2 , wherein the target information communication unit is configured to communicate the target information encrypted by the encryption key with the terminal device by using the first wireless connection.

10. The function execution device further comprises: a second wireless interface different from the first wireless interface; The function performing device according to claim 1 , wherein the target information includes information for establishing a third wireless connection between the function performing device and the terminal device via the second wireless interface.

11. The function execution device further comprises: A print execution unit, an image data receiving unit that receives image data representing an image to be printed from the terminal device via the second wireless interface by using the third wireless connection when the third wireless connection is established; a print control unit that, when the image data is received from the terminal device, causes the print execution unit to print the image represented by the image data; The function executing device according to claim 10 , wherein the specific function is a function for executing printing of the image.

12. The function execution device further comprises:

12. The function executing device according to claim 1, further comprising a second change unit that changes a radio wave intensity used for transmitting the advertising signal from the second radio wave intensity to the first radio wave intensity after the communication of the target information is executed.

13. A computer program for a terminal device, comprising: The terminal device computer is composed of the following parts: a first advertising signal receiving unit that receives a first advertising signal using a first radio wave intensity from a function executing device via a wireless interface of the terminal device, the wireless interface being an interface for performing wireless communication according to a BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system; a specific signal transmitting unit configured to transmit a specific signal to the function performing device via the wireless interface after the first advertising signal is received from the function performing device; a second advertising signal receiving unit that receives, after the specific signal is transmitted to the function performing device, from the function performing device via the wireless interface, a second advertising signal using a second radio wave intensity lower than the first radio wave intensity; a connection request transmission unit configured to transmit a connection request to the function performing device via the wireless interface after the second advertising signal is received from the function performing device, the connection request transmission unit configured to establish a wireless connection with the function performing device via the wireless interface in response to the connection request being transmitted to the function performing device; a target information communication unit that, when the wireless connection with the function performing device is established, uses the wireless connection to communicate target information with the function performing device via the wireless interface for using a specific function of the function performing device; A computer program that functions as a

14. A computer program for a terminal device, comprising: The terminal device computer is composed of the following parts: a first advertising signal receiving unit that receives a first advertising signal using a first radio wave intensity from a function executing device via a wireless interface of the terminal device, the wireless interface being an interface for performing wireless communication according to a BLE (abbreviation of Bluetooth (registered trademark) Low Energy) system; a second connection request transmission unit configured to transmit a second connection request to the terminal device via the wireless interface after the first advertising signal is received from the function performing device, wherein a second wireless connection with the function performing device is established via the wireless interface in response to the second connection request being transmitted to the function performing device; a second advertising signal receiving unit that receives, after the second wireless connection with the function performing device is established, from the function performing device via the wireless interface, a second advertising signal using a second radio wave strength lower than the first radio wave strength; a first connection request transmission unit configured to transmit a first connection request to the function performing device via the wireless interface after the second advertising signal is received from the function performing device, wherein a first wireless connection with the function performing device is established via the wireless interface in response to the first connection request being transmitted to the function performing device; a target information communication unit that, when the first wireless connection with the function performing device is established, uses the first wireless connection to communicate target information for using a specific function of the function performing device with the function performing device via the wireless interface; A computer program that functions as a

Citation Information

Patent Citations

  • Information processing device, information processing program, and information processing system

    JP2016174326A

  • Communication apparatus

    JP2016187090A

  • Log-in processing execution method, program, and portable terminal

    JP2017069903A

  • Radio communication device, electronic watch, transmission power setting method, and radio communication program

    JP2019062445A

  • Communication device, image forming apparatus, communication method, and program

    JP2019068338A