A communication device and a computer program for terminal.
The communication device uses the Wi-Fi Aware method to transmit capability and public key information for secure DPP connections, addressing challenges in identifying compatible devices and ensuring secure key exchange, thereby establishing reliable and efficient wireless connections.
Patent Information
- Application Number
- JP2024104262
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2026-01-16
AI Technical Summary
Existing communication devices face challenges in establishing secure and efficient wireless connections using the Device Provisioning Protocol (DPP) method, particularly in identifying compatible devices and ensuring secure key exchange without establishing a full Wi-Fi connection.
A communication device equipped with a Wi-Fi interface and transmitters to transmit capability and public key information using the Wi-Fi Aware method, enabling secure authentication and connection establishment with external devices via the DPP method, including distance-based key transmission to ensure secure and efficient connections.
Enables secure and efficient wireless connections between devices using the DPP method by identifying compatible devices and securely exchanging keys only when within a specified range, improving connection reliability and security.
Smart Images

Figure 2026005737000001_ABST
Abstract
Description
[Technical Field]
[0001] This specification discloses a technique for establishing a wireless connection between a communication device and an external device. [Background technology]
[0002] When a communication device in Patent Document 1 receives an authentication request based on the Device Provisioning Protocol (DPP) method from another communication device, it transmits communication parameters to the other communication device. The communication parameters are used by the other communication device to join the wireless network. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-064910 Summary of the Invention [Problem to be solved by the invention]
[0004] This specification provides a novel technique for establishing a wireless connection between a communication device and an external device according to the DPP method. [Means for solving the problem]
[0005] This specification discloses a communication device, the communication device including a Wi-Fi interface, a first transmitter configured to transmit, via the Wi-Fi interface, capability information indicating that the communication device is capable of using the Device Provisioning Protocol (DPP) method of the Wi-Fi standard to a terminal device in accordance with the Wi-Fi Aware method of the Wi-Fi standard, and a second transmitter configured to transmit, via the Wi-Fi interface, relevant information relating to a public key of the communication device in accordance with the DPP method to the Wi-Fi a second transmission unit that transmits the capability information to the terminal device according to the DPP method; a first communication execution unit that executes a first communication with the terminal device according to the DPP method via the Wi-Fi interface after the capability information has been transmitted to the terminal device and the related information has been transmitted to the terminal device, wherein the first communication includes communication of an authentication request using the public key from the terminal device to the communication device, communication of an authentication response from the communication device to the terminal device, and communication of connection information from the terminal device to the communication device; and a first establishment unit that, when the connection information is received from the terminal device, establishes a first wireless connection between the communication device and an external device using the connection information via the Wi-Fi interface.
[0006] According to the above configuration, the communication device transmits capability information indicating that the communication device can use the DPP scheme to the terminal device in accordance with the Wi-Fi Aware scheme. This allows the terminal device to recognize communication devices capable of performing communication in accordance with the DPP scheme. The communication device also transmits related information relating to the public key of the communication device in accordance with the DPP scheme to the terminal device in accordance with the Wi-Fi Aware scheme, and performs first communication with the terminal device in accordance with the DPP scheme. This allows a first wireless connection to be established between the communication device and an external device in accordance with the DPP scheme.
[0007] This specification also discloses the following communication device: The communication device includes a Wi-Fi interface, and a device provisioning interface for providing a Wi-Fi standard signal to the communication device via the Wi-Fi interface. a first transmission unit that transmits capability information indicating that a Dedicated Public Key Protocol (DPP) method is available to the terminal device before establishing a wireless connection of the Wi-Fi standard; a second transmission unit that transmits related information related to a public key of the communication device according to the DPP method to the terminal device via the Wi-Fi interface; a first communication execution unit that executes a first communication according to the DPP method with the terminal device via the Wi-Fi interface after the capability information has been transmitted to the terminal device and the related information has been transmitted to the terminal device, the first communication including a communication of an authentication request using the public key from the terminal device to the communication device, a communication of an authentication response from the communication device to the terminal device, and a communication of connection information from the terminal device to the communication device; and a first establishment unit that, when the connection information is received from the terminal device, establishes a first wireless connection between the communication device and an external device using the connection information via the Wi-Fi interface.
[0008] According to the above configuration, the communication device transmits capability information indicating that the communication device can use the DPP method to the terminal device before establishing a Wi-Fi standard wireless connection. This allows the terminal device to recognize communication devices capable of performing communication according to the DPP method. The communication device also transmits related information relating to the public key of the communication device according to the DPP method to the terminal device, and performs first communication with the terminal device according to the DPP method. This allows a first wireless connection to be established between the communication device and the external device according to the DPP method.
[0009] This specification also discloses a computer program for a terminal device, which may include a wireless interface for performing wireless communication in accordance with the Wi-Fi Aware method of the Wi-Fi standard and the Device Provisioning Protocol (DPP) method of the Wi-Fi standard. The computer program may cause the computer of the terminal device to function as the following units: a first receiving unit that receives, from the communication device via the wireless interface, capability information indicating that the communication device can use the DPP method in accordance with the Wi-Fi Aware method; a second receiving unit that receives, from the communication device via the wireless interface, related information related to the public key of the communication device in accordance with the DPP method in accordance with the Wi-Fi Aware method; and a first communication executing unit that executes a first communication with the communication device in accordance with the DPP method in accordance with the Wi-Fi Aware ...
[0010] According to the above configuration, the terminal device receives, from the communication device, capability information indicating that the communication device can use the DPP method, in accordance with the Wi-Fi Aware method. This allows the terminal device to recognize communication devices capable of performing communication in accordance with the DPP method. The terminal device also receives, from the communication device, related information relating to the public key of the communication device in accordance with the DPP method, in accordance with the Wi-Fi Aware method, and performs first communication with the communication device in accordance with the DPP method. This allows a first wireless connection to be established between the communication device and an external device in accordance with the DPP method.
[0011] A computer program for implementing the above-described communication device, a computer-readable storage medium storing the computer program, and a method executed by the above-described communication device are also novel and useful. A computer storage medium storing a computer program for the above-described terminal device and a method executed by the above-described terminal device are also novel and useful. Also novel and useful is a system including the communication device and the terminal device. [Brief explanation of the drawings]
[0012] [Figure 1] 1 shows the configuration of a communication system. [Figure 2] 1 shows a sequence diagram of a first embodiment. [Figure 3] The sequence diagram continues from Figure 2. [Figure 4] 10 shows a sequence diagram of a second embodiment. [Figure 5] The sequence diagram continues from Figure 4. [Figure 6] 10 shows a sequence diagram of the third embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0013] (Outline of communication system 2: Figure 1) As shown in FIG. 1, the communication system 2 includes a mobile terminal 10, a printer 100, and an access point 6. Hereinafter, the access point will be referred to as "AP." In this embodiment, a technique is disclosed that allows a user of the mobile terminal 10 to use the mobile terminal 10 to establish a wireless connection between the AP 6 and the printer 100 in accordance with the Wi-Fi standard. Hereinafter, the wireless connection in accordance with the Wi-Fi standard will be referred to as "Wi-Fi connection."
[0014] (Configuration of mobile terminal 10) The mobile terminal 10 is a portable terminal device such as a smartphone, tablet PC, or laptop PC. A stationary terminal device may be used instead of the mobile terminal 10. The mobile terminal 10 includes an operation unit 12, a display unit 14, a Wi-Fi interface 18, and a control unit 30. Each unit 12 to 30 is connected to a bus line. Hereinafter, the interface will be referred to as "I / F."
[0015] The operation unit 12 is an I / F that allows the user to input various information to the mobile terminal 10, and includes, for example, a touch screen and buttons. The display unit 14 is a display for displaying various information.
[0016] The Wi-Fi I / F 18 is a wireless interface for performing Wi-Fi communication in accordance with the Wi-Fi standard. The Wi-Fi standard is a wireless communication standard for performing wireless communication in accordance with, for example, the 802.11 standard of the Institute of Electrical and Electronics Engineers, Inc. (IEEE) and its equivalent standards, such as 802.11a, 11b, 11g, 11n, and 11ac. In particular, the Wi-Fi I / F 18 supports the Device Provisioning Protocol (DPP) method established by the Wi-Fi Alliance and the Wi-Fi Aware method established by the Wi-Fi Alliance. Details of the DPP are described in the Wi-Fi Easy Connect Specification Version 2.0 standard created by the Wi-Fi Alliance. Details of Wi-Fi Aware are described in the Wi-Fi Aware Specification Version 4.0 standard created by the Wi-Fi Alliance. Wi-Fi Aware is also known as a Wi-Fi Neighbor Awesomeness Network (NAN).
[0017] The mobile terminal 10 can establish a Wi-Fi connection with the AP 6 by using the Service Set Identifier (SSID) and password of the wireless network formed by the AP 6. Hereinafter, the password will be referred to as "PW."
[0018] In the Wi-Fi Aware method, each device first joins a Neighbor Awareness Network (NAN) cluster. Each device in the same NAN cluster synchronizes its Discovery Window, which is the period during which signals are sent and received.
[0019] Each device participating in a NAN cluster is assigned one of three roles: Master, Anchor Master, or Non-Master. A Master can share timer information, search for services, and invite other devices to the NAN cluster. An Anchoring Master can set timer information for synchronization in addition to the functions that a Master can perform. A Non-Master can share timer information and search for services, but cannot invite other devices to the cluster.
[0020] Each device participating in a NAN cluster can search for other devices in the NAN cluster (more specifically, for services provided by those other devices). The signal used to search for services is called Subscribe. A device that receives Subscribe sends a response signal called Publish. In this embodiment, the mobile terminal 10 sends Subscribe to search for other devices that can provide the DPP service. The DPP service is a service for establishing a wireless connection in accordance with the Device Provisioning Protocol method of the Wi-Fi standard. Since the printer 100 can use the DPP service, when it receives Subscribe from the mobile terminal 10, it sends Publish to the mobile terminal 10, indicating that the DPP service is available. This allows the mobile terminal 10 to find the printer 100 that can provide the DPP service.
[0021] The Subscribe and Publish operations described above are communications at a layer lower than the network layer of the OSI reference model. In other words, the above searches are performed without any communications at or above the network layer of the OSI reference model. A pair of devices belonging to the same NAN cluster cannot communicate at or above the network layer of the OSI reference model unless they establish a connection.
[0022] The control unit 30 includes a CPU 32 and a memory 34. The memory 34 includes a main storage device and an auxiliary storage device. The main storage device includes, for example, RAM and cache memory. The auxiliary storage device may be, for example, a flash memory, a solid state drive (SSD), or a ROM, or a combination thereof. An OS program 40 and a setting application program 42 are stored in the auxiliary storage device. The CPU 32 performs various processes in accordance with the programs 40 and 42 loaded from the auxiliary storage device to the main storage device. Hereinafter, the OS program will be referred to as "OS." Furthermore, the setting application program will be referred to as "app."
[0023] The memory 34 further stores an SSID “AAA” and a PW “XXX.” The SSID “AAA” and the PW “XXX” are information used in the wireless network formed by the AP 6.
[0024] The OS 40 controls the basic operations of the mobile terminal 10. The application 42 can establish a Wi-Fi connection between the AP 6 and the printer 100 by causing the OS 40 to execute processing in accordance with the Wi-Fi Aware method and the DPP method.
[0025] (Configuration of printer 100) The printer 100 is a peripheral device capable of executing a printing function, such as a peripheral device for the mobile terminal 10. In a modified example, the printer 100 may be a multi-function device capable of executing a scanning function, a facsimile function, etc. in addition to the printing function. The printer 100 includes an operation unit 112, a display unit 114, a Wi-Fi I / F 118, a print execution unit 116, and a control unit 130. Each unit 112 to 130 is connected to a bus line.
[0026] The operation unit 112 is an interface that allows the user to input various information to the printer 100, and includes, for example, a touch screen and buttons. The display unit 114 is a display for displaying various information. The Wi-Fi interface 118 is similar to the Wi-Fi I / F 18 of the mobile terminal 10, and supports the DPP and Wi-Fi Aware methods. The print execution unit 116 includes, for example, an inkjet or laser printing mechanism.
[0027] The control unit 130 includes a CPU 132 and a memory 134. The memory 134 includes a main storage device and an auxiliary storage device. A program 140 is stored in the auxiliary storage device. The CPU 132 performs various processes in accordance with the program 140 loaded from the auxiliary storage device to the main storage device.
[0028] Next, the processing executed by the mobile terminal 10 and the printer 100 will be described with reference to FIG. 2. In the following, for ease of understanding, the processing executed by the CPUs 32, 132 of the mobile terminal 10 and the printer 100 will be described as the processing subjects, rather than the CPUs being described as the processing subjects. Furthermore, communication between the mobile terminal 10 and the printer 100 is performed via the Wi-Fi I / Fs 18, 118. Therefore, in the following description, when describing communication, the phrase "via the Wi-Fi I / F" will be omitted.
[0029] In the initial state of FIG. 2, the printer 100 belongs to a certain NAN cluster and operates as the Anchor Master of the NAN cluster. Also, in the initial state of FIG. 2, the app 42 is not running on the mobile terminal 10, and the mobile terminal 10 is in a state in which it is unable to receive signals conforming to the Wi-Fi Aware method. Here, "a state in which it is unable to receive signals conforming to the Wi-Fi Aware method" refers to a state in which the Wi-Fi I / F 18 does not receive signals conforming to the Wi-Fi Aware method from an external device. In a modified example, "a state in which it is unable to receive signals conforming to the Wi-Fi Aware method" may refer to a state in which the Wi-Fi I / F 18 receives signals conforming to the Wi-Fi Aware method from an external device, but the CPU 32 does not execute processing conforming to the signals (i.e., a state in which the signals are discarded). Hereinafter, the state in which it is unable to receive signals conforming to the Wi-Fi Aware method will be referred to as a "NAN disabled state."
[0030] The printer 100 broadcasts a NAN Discovery Beacon frame (hereinafter referred to as "Discovery"). Discovery is a signal conforming to the Wi-Fi Aware method, and is a signal for notifying the outside world of information about the NAN cluster to which the printer 100 belongs. A device that does not belong to the NAN cluster can join the NAN cluster in response to receiving Discovery. In other words, Discovery can be said to be a signal for inviting a device that does not belong to the NAN cluster to join the NAN cluster. The printer 100 periodically transmits Discovery. In the initial state of FIG. 2, the mobile terminal 10 is in a NAN-disabled state and does not receive Discovery from the printer 100.
[0031] At T10, the mobile terminal 10 receives an application activation operation from the user. As a result, the mobile terminal 10 activates the application 42 and executes the following processes in accordance with the application 42. When the application 42 is activated, the mobile terminal 10 transitions from a NAN-disabled state to a state in which it can receive signals conforming to the Wi-Fi Aware method. Here, the "state in which it can receive signals conforming to the Wi-Fi Aware method" refers to a state in which the Wi-Fi I / F 18 receives signals conforming to the Wi-Fi Aware method from the outside and the CPU 32 can execute processing conforming to the signals. Hereinafter, the state in which it can receive signals conforming to the Wi-Fi Aware method will be referred to as a "NAN-enabled state."
[0032] At T20, the printer 100 transmits a Discovery message conforming to the Wi-Fi Aware method. At the stage T20, the mobile terminal 10 is in a NAN-enabled state, and therefore receives a Discovery message from the printer 100. In this case, the mobile terminal 10 joins the NAN cluster at T22. As a result, the mobile terminal 10 and the printer 100 belong to the same NAN cluster. However, as described above, at this point, the mobile terminal 10 cannot communicate with the printer 100 at the network layer or above of the OSI reference model. In other words, the mobile terminal 10 does not belong to the same Wi-Fi network as the printer 100. Although not shown, once the mobile terminal 10 joins the NAN cluster, it communicates with the printer 100 to determine its role within the NAN cluster.
[0033] At T30, the mobile terminal 10 broadcasts a Subscribe in accordance with the Wi-Fi Aware standard to the NAN cluster. Subscribe is a signal for searching for devices that provide DPP services, and is received by the printer 100 in the NAN cluster.
[0034] When the printer 100 receives a Subscribe from the portable terminal 10 in T30, the printer 100 transmits a Publish indicating that it provides the DPP service to the portable terminal 10 in accordance with the Wi-Fi Aware method in T32.
[0035] At T32, the mobile terminal 10 receives Publish from the printer 100, thereby being able to find the printer 100 that provides the DPP service. If the mobile terminal 10 finds multiple printers, including the printer 100, that provide the DPP service, it may display a screen for selecting the printer that should perform printing from among the multiple printers. The following explanation will continue using the example where the printer that should perform printing is the printer 100.
[0036] At T40, the mobile terminal 10 displays on the display unit 14 a notification screen SC1 for urging the user to bring the mobile terminal 10 within 1 meter of the printer 100. This allows the user to approach the printer 100 while holding the mobile terminal 10.
[0037] At the same time as displaying the notification screen SC1, the mobile terminal 10 sends a wireless connection start request using Follow-up according to the Wi-Fi Aware method to the printer 100 at T42. This wireless connection start request is a start request for a wireless connection according to the Wi-Fi Aware method. Follow-up is a signal for sending further information about the DPP service to the printer 100, and includes Service Managed Bootstrapping information and an Initiator Bootstrapping key Request. The Service Managed Bootstrapping information is information necessary to start a wireless connection according to the Wi-Fi Aware method. Specifically, the Service Managed Bootstrapping information is information for requesting the transmission of information about DPP-based Bootstrapping. The Service Managed Bootstrapping information indicates the method for starting the connection. The Initiator Bootstrapping key Request is information for requesting the transmission of a Bootstrapping key (i.e., a public key). Follow-up is a signal at a layer lower than the network layer of the OSI reference model.
[0038] When the printer 100 receives a Follow-up from the mobile terminal 10 in T42, it determines the distance between the printer 100 and the mobile terminal 10 in T44. Specifically, the printer 100 determines the received radio wave strength of the received Follow-up, and determines the distance between the mobile terminal 10 and the printer 100 based on the received radio wave strength. Specifically, the printer 100 stores in advance a formula for determining the distance from the received radio wave strength, and determines the distance by applying the received radio wave strength to the formula.
[0039] In T50, the printer 100 determines whether the distance determined in T44 is within 1 meter, which is a predetermined distance. Here, the predetermined distance of 1 meter is an example, and the predetermined distance may be less than 1 meter or greater than 1 meter. The predetermined distance is shorter than the maximum distance (e.g., 50 to 100 meters) over which communication with the mobile terminal 10 is possible via the Wi-Fi I / F 18. If the determined distance is within 1 meter (YES in T50), the printer 100 proceeds to the process of T70 in FIG. 3 without executing T60 and T62. If the determined distance is greater than 1 meter (NO in T50), the printer 100 proceeds to T60.
[0040] At T60, the printer 100 transmits a Wi-Fi Aware Follow-up to the mobile terminal 10. The Follow-up includes comeback information. The comeback information is a signal for requesting the mobile terminal 10 to retransmit the wireless connection start request.
[0041] In T60, when the mobile terminal 10 receives a Follow-up message including comeback information from the printer 100, it determines the received radio wave strength of the received Follow-up message and determines the distance between the printer 100 and the mobile terminal 10 based on the received radio wave strength. Specifically, the mobile terminal 10 stores in advance a formula for determining the distance from the received radio wave strength, and determines the distance by applying the received radio wave strength to the formula. The mobile terminal 10 then determines whether the distance is within 1 meter.
[0042] At the stage of T61, the distance is greater than 1 meter, so in T62, the mobile terminal 10 further displays a notification screen SC2 on the display unit 14 to urge the user to approach the printer 100. This allows the user to approach the printer 100 while holding the mobile terminal 10. After displaying the notification screen SC2, the mobile terminal 10 returns to the processing of T42. That is, the processing of T42 to T62 is repeatedly executed until the distance between the mobile terminal 10 and the printer 100 is within 1 meter.
[0043] In T70, the printer 100 transmits a Follow-up in accordance with the Wi-Fi Aware method to the mobile terminal 10, similar to T60. The Follow-up includes comeback information.
[0044] When the mobile terminal 10 receives a Follow-up including comeback information from the printer 100 in T70, the mobile terminal 10 identifies the received radio wave intensity of the received Follow-up, and identifies the distance between the printer 100 and the mobile terminal 10 based on the received radio wave intensity. Then, the mobile terminal 10 determines whether the distance is within 1 meter.
[0045] At the stage of T71, the distance is within 1 meter, so at T72, the mobile terminal 10 displays on the display unit 14 a notification screen SC3 for urging the user to move the mobile terminal 10 closer to the printer 100. Then, at T74, the mobile terminal 10 transmits a Follow-up to the printer 100, similar to T36.
[0046] When the printer 100 receives the Follow-up from the mobile terminal 10 in T74, the printer 100 determines the distance between the printer 100 and the mobile terminal 10 in T76, in the same way as in T44.
[0047] In T80, printer 100 determines whether the distance determined in T76 (hereinafter referred to as the "second distance") is smaller than the distance determined in T50 (hereinafter referred to as the "first distance"). If the second distance is smaller than the first distance (YES in T80), printer 100 proceeds to processing T100 without executing T90 and T92. If the second distance is equal to or greater than the first distance (NO in T80), printer 100 proceeds to processing T90.
[0048] In T90, the printer 100 transmits a Follow-up in accordance with the Wi-Fi Aware method to the mobile terminal 10, similar to T60. The Follow-up includes comeback information.
[0049] When the mobile terminal 10 receives a Follow-up including comeback information from the printer 100 in T90, it identifies the received radio wave intensity of the received Follow-up and identifies the distance between the printer 100 and the mobile terminal 10 based on the received radio wave intensity. Then, the mobile terminal 10 determines whether the distance is within 1 meter.
[0050] At the stage of T91, the distance is within 1 meter and the notification screen SC3 has already been displayed (T72), so at T92 the mobile terminal 10 displays a notification screen SC4 on the display unit 14 in place of the notification screen SC3. The notification screen SC4 is a screen for urging the user to bring the mobile terminal 10 closer to the printer 100. Then, at T74, the mobile terminal 10 sends a Follow-up to the printer 100. That is, the processes of T74 to T92 are repeatedly executed until the distance between the mobile terminal 10 and the printer 100 (i.e., the second distance) becomes shorter than the first distance.
[0051] In T100, printer 100 transitions from a DPP-disabled state to a DPP-enabled state. Specifically, the DPP-disabled state is a state in which communication in accordance with DPP is disabled. The DPP-enabled state is a state in which communication in accordance with DPP is enabled. By transitioning to the DPP-enabled state, printer 100 can execute communication in accordance with DPP.
[0052] At T102, the printer 100 sends a Wi-Fi Aware Follow-up to the mobile terminal 10. The Follow-up includes Accept information and a DPP Bootstrapping Key that includes the printer 100's public key "PKpr." The Accept information indicates that the request to send the Bootstrapping Key has been accepted. The DPP Bootstrapping Key that includes the public key "PKpr" is described in the extended information of the Follow-up. Hereinafter, the DPP Bootstrapping Key that includes the public key "PKpr" may be referred to simply as the public key "PKpr."
[0053] When the mobile terminal 10 receives a Follow-up including the Accept information and the public key “PKpr” from the printer 100 in T102, the mobile terminal 10 displays a connection start screen on the display unit 14 in T104. The connection start screen includes a message indicating that a Wi-Fi connection is being established between the printer 100 and the AP 6.
[0054] Meanwhile, in T106, the printer 100 displays a connection screen on the display unit 114. The connection screen includes a message indicating that a Wi-Fi connection is being established between the printer 100 and the AP 6. This allows the user to know that a Wi-Fi connection is being established.
[0055] At T110, the mobile terminal 10 sends an Authentication Request in accordance with the DPP method to the printer 100. The Authentication Request is a signal that uses the public key "PKpr." Hereinafter, Authentication will be referred to as "Auth." Furthermore, Request will be referred to as "Req."
[0056] The Auth Req is a signal requesting the execution of authentication of the mobile terminal 10 that sent it. Specifically, the mobile terminal 10 generates a shared key using the private key of the mobile terminal 10 and the public key "PKpr" of the printer 100, and generates encrypted data by encrypting a random value using the shared key. The mobile terminal 10 then transmits the Auth Req in accordance with the DPP method to the printer 100. The Auth Req includes the public key of the mobile terminal 10, the encrypted data, and the capability of the mobile terminal 10. The capability of the mobile terminal 10 includes a value indicating that it can operate only as a DPP configurator.
[0057] When the printer 100 receives an Auth Req from the mobile terminal 10 in T110, it authenticates the encrypted data included in the Auth Req in T111. Specifically, the printer 100 generates a shared key using the public key of the mobile terminal 10 and the private key of the printer 100, both of which are included in the Auth Req, and decrypts the encrypted data using the shared key. If the decryption of the encrypted data is successful, the printer 100 determines that the authentication is successful and executes the processes from T112 onwards.
[0058] At T112, the printer 100 sends an Auth Response including the printer 100's Capability to the mobile terminal 10 in accordance with the DPP method. Hereinafter, the Response will be referred to as "Res." The printer 100's Capability includes a value indicating that it can operate only as a DPP Enrollee.
[0059] When the mobile terminal 10 receives an Auth Res from the printer 100 in T112, it determines that the capability of the printer 100 included in the Auth Res (i.e., Enrollee) does not match the capability of the mobile terminal 10 itself (i.e., Configurator). Then, in T114, the mobile terminal 10 sends an Auth Confirm in accordance with the DPP method to the printer 100. The Auth Confirm includes information indicating that the mobile terminal 10 operates as a Configurator and that the printer 100 operates as an Enrollee. As a result, in T116, the mobile terminal 10 decides to operate as a Configurator. The Configurator is a device responsible for sending a Configuration Object, described below, to the Enrollee. Hereinafter, the Configuration Object will be referred to as "CO."
[0060] In addition, in T118, the printer 100 decides to operate as an Enrollee. The Enrollee is a device that receives a CO from the Configurator. The processing of T110 to T118 corresponds to Auth in DPP.
[0061] In T120, the printer 100 transmits a Configuration Req in accordance with the DPP method to the mobile terminal 10. Hereinafter, the Configuration will be referred to as "Config." The Config Req is a signal requesting the transmission of a CO.
[0062] When the portable terminal 10 receives a Config Req from the printer 100 in T120, it generates a printer CO. Specifically, the portable terminal 10 generates a printer CO, which is information to be used by the printer 100 to establish a Wi-Fi connection. The printer CO includes the SSID "AAA" and PW "XXX" of the wireless network formed by the AP 6. Then, in T122, the portable terminal 10 transmits a Config Res including the printer CO according to the DPP method to the printer 100.
[0063] In T122, the printer 100 receives the Config Res from the mobile terminal 10. In T130, the printer 100 broadcasts a Probe Req including the SSID “AAA” in the printer CO according to the DPP method. The Probe Req is received by the AP 6.
[0064] When the AP 6 receives a Probe Req from the printer 100 in T130, it sends a Probe Res to the printer 100 in T132. As a result, in T134, a Wi-Fi connection is established between the printer 100 and the AP 6. Note that the processes in T130 and T132 correspond to Network Access in DPP.
[0065] At T140, the printer 100 sends a Config Result according to the DPP method to the mobile terminal 10. The Config Result includes information indicating that a Wi-Fi connection has been established between the printer 100 and the AP 6. The processes of T120, T122, and T140 correspond to the DPP Config. Then, at T142, the printer 100 transitions from a DPP-enabled state to a DPP-disabled state.
[0066] In this way, various communications according to the DPP method are performed between the mobile terminal 10 and the printer 100, and a Wi-Fi connection is established between the printer 100 and the AP 6. As a result, the printer 100 belongs as a slave station to the wireless network in which the AP 6 operates as the master station. As a result, both the mobile terminal 10 and the printer 100 belong to the wireless network formed by the AP 6.
[0067] (Effects of the first embodiment) According to the above configuration, the printer 100 transmits a Publish to the portable terminal 10 in accordance with the Wi-Fi Aware method, indicating that the printer 100 can use the DPP method (T30). This allows the portable terminal 10 to recognize the printer 100 capable of communicating in accordance with the DPP method via the Wi-Fi I / F 18, even when a Wi-Fi connection has not been established. The printer 100 also transmits a Follow-up to the portable terminal 10 in accordance with the Wi-Fi Aware method, including the printer 100's public key "PKpr" in accordance with the DPP method (T102), and communicates with the portable terminal 10 in accordance with the DPP method (T110, T112, and T122). This allows a Wi-Fi connection to be established between the printer 100 and the AP 6 in accordance with the DPP method. Furthermore, the use of the Wi-Fi Aware method ensures that communication is short-range, allowing the printer 100 to transmit the public key to the portable terminal 10 in a more secure manner than communication with a communication terminal whose physical location is unknown.
[0068] According to the above configuration, the printer 100 transmits capability information indicating that the printer 100 can use the DPP method to the portable terminal 10 in accordance with the Wi-Fi Aware method before establishing a Wi-Fi standard wireless connection (T30). The portable terminal 10 can recognize the printer 100 as being capable of performing communication in accordance with the DPP method. The printer 100 also transmits a Follow-up including the printer 100's public key "PKpr" in accordance with the DPP method to the portable terminal 10 in accordance with the Wi-Fi Aware method (T102), and performs first communication in accordance with the DPP method with the portable terminal 10 (T110, T112, and T122). This allows a Wi-Fi connection to be established between the printer 100 and the AP 6 in accordance with the DPP method.
[0069] According to the above configuration, the mobile terminal 10 receives, from the printer 100, a Publish indicating that the printer 100 can use the DPP method, in accordance with the Wi-Fi Aware method (T30). This allows the mobile terminal 10 to recognize the printer 100 that can execute communication in accordance with the DPP method. The mobile terminal 10 also receives, from the printer 100, a Follow-up including the printer 100's public key "PKpr" in accordance with the DPP method, in accordance with the Wi-Fi Aware method, and executes communication in accordance with the DPP method with the communication device (T110, T112, and T122). This allows a Wi-Fi connection to be established between the printer 100 and the AP 6 in accordance with the DPP method.
[0070] According to the above configuration, the printer 100 determines the distance between the printer 100 and the portable terminal 10 based on the received radio wave intensity (T50). If the determined distance is within 1 meter (YES in T50), the printer 100 transmits a Follow-up message containing the public key "PKpr" to the portable terminal 10 (T102). If the determined distance is greater than 1 meter (NO in T50), the printer 100 does not transmit the Follow-up message containing the public key "PKpr" to the portable terminal 10. In this manner, the printer 100 can determine whether to transmit a Follow-up message containing the public key "PKpr" to the portable terminal 10 depending on the distance from the portable terminal 10. This allows the printer 100 to transmit the public key only to portable terminals (e.g., the portable terminal 10) that are physically within a distance where the printer 100 can be operated (i.e., 1 meter), and does not transmit the public key to portable terminals that are not physically within a distance where the printer 100 can be operated (i.e., 1 meter). Therefore, the printer 100 can exclude operations from portable terminals that are far away. In other words, the printer 100 can infer that the user operating the portable terminal 10 has intentionally approached the printer 100, and can eliminate unintentional communications from portable terminals located far away. This can improve the reliability of identifying the communication partner.
[0071] According to the above configuration, the printer 100 determines in T80 whether the distance determined in T76 (i.e., the second distance) is shorter than the distance determined in T50 (i.e., the first distance). If the second distance is shorter than the first distance (YES in T80), the printer 100 transmits a Follow-up message containing the public key "PKpr" to the portable terminal 10 (T102). On the other hand, if the second distance is equal to or greater than the first distance (NO in T80), the printer 100 does not transmit a Follow-up message containing the public key "PKpr" to the portable terminal 10. In this way, the printer 100 transmits a Follow-up message containing the public key "PKpr" when a portable terminal 10 approaches within 1 meter of the printer 100 and then approaches the printer 100. According to this configuration, the public key "PKpr" can be appropriately transmitted to the portable terminal 10 even when multiple terminal devices are present within 1 meter of the printer 100. In other words, the printer 100 can identify the portable terminal 10 used to establish a wireless connection according to the DPP method (T80) and send the public key "PKpr" to the portable terminal 10.
[0072] (Correspondence) The printer 100, the mobile terminal 10, and the AP 6 are examples of a "communication device," a "terminal device," and an "external device," respectively. Publish, which indicates that the DPP service is provided, is an example of "possible information." The public key "PKpr" and the printer CO are examples of "related information" and "connection information," respectively. The Wi-Fi connection between the printer 100 and the AP 6 is an example of a "first wireless connection." The distance specified by T44 in FIG. 2 is an example of a "first distance." 1 meter is an example of a "predetermined distance." The distance specified by T76 in FIG. 3 is an example of a "second distance." Follow-up in T42 is an example of a "request signal."
[0073] T32 in FIG. 2 and T102 in FIG. 3 are examples of processing executed by a "first transmitting unit" and a "second transmitting unit", respectively. A combination of T110, T112, and T122 in FIG. 3 is an example of processing executed by a "first communication executing unit". T134 is an example of processing executed by a "first establishing unit". T44 in FIG. 2 and T76 in FIG. 3 are examples of processing executed by a "first identifying unit" and a "second identifying unit", respectively. T42 in FIG. 2 is an example of processing executed by a "request receiving unit". T100 in FIG. 3 is an example of processing executed by a "state transition unit".
[0074] T32 in FIG. 2 and T102 in FIG. 3 are examples of processing executed by the "first receiving unit" and the "second receiving unit", respectively.
[0075] (Second embodiment; Figure 4) Next, a second embodiment will be described with reference to Fig. 4. This embodiment differs from the first embodiment in that a wireless connection is established between the printer 100 and the mobile terminal 10, and that the public key "PKpr" is transmitted using this wireless connection.
[0076] The same processes as those from T10 to T40 in Fig. 2 are executed. At the same time as displaying the notification screen SC1 in T40, the mobile terminal 10 transmits a Follow-up in accordance with the Wi-Fi Aware method to the printer 100 in T242. The Follow-up includes a connection request for requesting establishment of a wireless connection with the mobile terminal 10. The Follow-up is a signal in a layer lower than the network layer of the OSI reference model. Next, the same processes as those from T44 in Fig. 2 to T92 in Fig. 3 are executed.
[0077] In T300, the printer 100 sends a Follow-up in accordance with the Wi-Fi Aware method to the mobile terminal 10. The Follow-up includes Accept information and a connection response. The Accept information indicates that the connection request has been accepted. The connection response is described in the extended information of the Follow-up. Next, in T302, pairing is performed between the mobile terminal 10 and the printer 100. Pairing is also communication at a layer lower than the network layer of the OSI reference model.
[0078] By pairing with the portable terminal 10, the printer 100 establishes a wireless connection with the portable terminal 10 via the Wi-Fi I / F 118 in accordance with the Wi-Fi Aware standard in T304. The communication performed via this wireless connection is known as NAN Data Path (NDP). NDP is communication related to applications that comply with the NAN standard. This allows the printer 100 to perform secure communication with the portable terminal 10.
[0079] In T306, the printer 100 transmits the public key "PKpr" to the mobile terminal 10 using the wireless connection established in T304 (i.e., on NDP). Thereafter, in T310, the printer 100 transitions from the DPP-disabled state to the DPP-enabled state. By transitioning to the DPP-enabled state, the printer 100 can execute communications in accordance with the DPP. Next, processing similar to T104 to T142 in FIG. 3 is executed. Note that the communications of T110, T112, T114, T120, T122, and T140 cited below are executed using the wireless connection established in T304 (i.e., on NDP).
[0080] (Effects of the second embodiment) In this embodiment, pairing is performed between the mobile terminal 10 and the printer 100, thereby establishing a wireless connection between the mobile terminal 10 and the printer 100 in accordance with the Wi-Fi Aware method (T302). This allows the mobile terminal 10 and the printer 100 to communicate at or above the network layer of the OSI reference model. By using the wireless connection, the printer 100 can securely transmit the public key "PKpr" to the mobile terminal 10.
[0081] The printer 100 also uses the wireless connection to communicate with the mobile terminal 10 in accordance with the DPP method (T110, T112, and T122 in FIG. 3). This allows a Wi-Fi connection to be established between the printer 100 and the AP 6 (T134 in FIG. 3). In this embodiment, the wireless connection of T304 is an example of a "second wireless connection." T304 in FIG. 5 is an example of processing executed by a "second establishment unit."
[0082] (Third embodiment; Figure 6) Next, a third embodiment will be described with reference to Fig. 6. This embodiment differs from the first and second embodiments in the method of identifying the distance between the printer 100 and the mobile terminal 10.
[0083] 2 are executed. Next, at T350, the printer 100 transmits a Fine Timing Measurement (FTM) request to the mobile terminal 10. FTM is a mechanism for measuring the distance between devices via the Wi-Fi I / F 118. The FTM request is a signal requesting the start of FTM, and includes, for example, information on the frequency bands used in various FTM communications.
[0084] When the mobile terminal 10 receives an FTM request from the printer 100 in T350, it transmits an ACK to the printer 100 in T352. As a result, FTM is executed in T354 and thereafter.
[0085] In the FTM, first, at T354, the mobile terminal 10 transmits an FTM response to the printer 100. At this time, the mobile terminal 10 stores the transmission time t1 of the FTM response.
[0086] At T354, the printer 100 receives an FTM response from the portable terminal 10. At this time, the printer 100 stores the time t2 at which the FTM response was received. Then, at T356, the printer 100 sends an ACK to the portable terminal 10. At this time, the printer 100 stores the time t3 at which the ACK was sent.
[0087] At T356, the mobile terminal 10 receives an ACK from the printer 100. At this time, the mobile terminal 10 stores the time t4 at which the ACK was received.
[0088] Thereafter, at T358, the mobile terminal 10 transmits an FTM response to the printer 100. The FTM response transmitted here includes the stored times t1 and t4. The mobile terminal 10 also stores the transmission time t5 of the FTM response transmitted at T358.
[0089] At T358, the printer 100 receives the FTM response from the mobile terminal 10. At this time, the printer 100 stores the time t6 at which the FTM response was received.
[0090] At T370, the printer 100 calculates the distance between the printer 100 and the portable terminal 10 using the stored times t2 and t3 and the times t1 and t4 included in the FTM response at T358. Specifically, the printer 100 first calculates RTT1 = (t4 - t1) - (t3 - t2). RTT1 is the sum of the time required to send the FTM response at T354 and the time required to send the ACK at T356. In other words, RTT1 is the time required for one round-trip communication between the printer 100 and the portable terminal 10. The printer 100 then calculates the distance between the printer 100 and the portable terminal 10 using the formula ((c × RTT1) / 2), where c is the speed of light. In this way, the printer 100 can calculate the distance between the printer 100 and the mobile terminal 10 by using the times t1 and t2 related to the communication of the FTM response and the times t3 and t4 related to the communication of the ACK.
[0091] At T360, the printer 100 transmits an ACK to the mobile terminal 10. At this time, the printer 100 stores the transmission time t7 of the ACK.
[0092] At T360, the mobile terminal 10 receives an ACK from the printer 100. At this time, the mobile terminal 10 stores the time t8 at which the ACK was received.
[0093] The printer 100 and the portable terminal 10 continue to repeat the communication of FTM responses and ACKs a predetermined number of times. The printer 100 calculates the distance between the printer 100 and the portable terminal 10 for each round-trip communication of FTM responses and ACKs. For example, for the FTM response at T358 and the ACK at T360, the distance between the printer 100 and the portable terminal 10 is calculated using the formula ((c×RTT2) / 2), where RTT2 = (t8-t5)-(t7-t6). At T370, the printer 100 determines the distance between the printer 100 and the portable terminal 10 by calculating the average of the distances calculated in this manner for a predetermined number of times.
[0094] (Effects of the third embodiment) According to the above configuration, the printer 100 transmits a Publish indicating that the printer 100 can use the DPP method to the portable terminal 10 in accordance with the Wi-Fi Aware method (T30 in FIG. 2 ), and then receives an FTM response from the portable terminal 10 (T354) and transmits an ACK to the portable terminal 10 (T356). This allows the printer 100 to appropriately determine the distance between the printer 100 and the portable terminal 10 based on the times related to these signals (T370). In this embodiment, the FTM response of T354 and the ACK of T356 are examples of a "first signal" and a "second signal," respectively. The combination of T354 and T356 is an example of processing executed by a "second communication execution unit."
[0095] 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 variations of the specific examples exemplified above. Modifications of the above-mentioned embodiments are listed below.
[0096] (Variation 1) At T102 in FIG. 3, the printer 100 may accept a push button operation from the user without sending a follow-up to the mobile terminal 10. In this case, the printer 100 accepts a DPP start instruction in response to the push button operation. The mobile terminal 10 may also accept a DPP start instruction in response to accepting a push button operation from the user. The mobile terminal 10 transmits a code exchange request to the printer 100, including the generated cryptographic element Qa, information element M, and an identifier (e.g., MAC address) of the mobile terminal 10. This initiates the authentication phase of the public key exchange protocol in the IETF draft. Thereafter, the mobile terminal 10 and the printer 100 execute predetermined communication and share the same common key Z. Next, the reveal phase of the public key exchange protocol in the IETF draft begins. The mobile terminal 10 and the printer 100 execute a public key exchange (PKEX) process using the common key Z and the authentication public key, and share each other's public keys. That is, the mobile terminal 10 can acquire the public key "PKpr" of the printer 100. In this modification, the authentication public key is an example of "related information."
[0097] (Variation 2) After a Follow-up message conforming to the Wi-Fi Aware method is communicated in T300 of Fig. 5, the mobile terminal 10 or the printer 100 may display a screen including a message indicating whether or not pairing may be performed. Then, the mobile terminal 10 and the printer 100 may perform pairing in response to receiving a pairing execution operation from the user.
[0098] (Variation 3) The public key "PKpr" may be included in Subscribe of T30 in Fig. 2. In this case, T32 in Fig. 2 is an example of the "second transmitting unit." That is, in this variation, the process of the "first transmitting unit" transmitting the possible information and the process of the "second transmitting unit" transmitting the related information are executed simultaneously.
[0099] (Modification 4) T30 in Fig. 2 may be omitted. That is, the mobile terminal 10 may receive a Publish from the printer 100 without sending a Subscribe.
[0100] (Variation 5) The printer 100 may establish a Wi-Fi connection with a device other than the AP 6 (for example, a terminal device other than the mobile terminal 10). In this variation, the device other than the AP 6 is an example of an "external device."
[0101] (Variation 6) At T44 and T76 in FIG. 2 , the printer 100 may communicate with the mobile terminal 10 according to, for example, Bluetooth (registered trademark) technology and determine the distance between the mobile terminal 10 and the printer 100 based on the received radio wave strength of the Bluetooth signal. That is, the printer 100 may determine the distance based on the received radio wave strength of communication using a communication method other than Wi-Fi. In another example, the printer 100 may receive a Follow-up message from the mobile terminal 10 that includes GPS information of the mobile terminal 10. In this case, the printer 100 may determine the distance between the mobile terminal 10 and the printer 100 based on the GPS information of the printer 100 and the GPS information of the mobile terminal 10. In yet another example, the printer 100 may receive a Follow-up message from the mobile terminal 10 that includes the distance between the mobile terminal 10 and the printer 100 that was determined by the mobile terminal 10. That is, the printer 100 may determine the distance by acquiring the distance from the mobile terminal 10 without calculating the distance itself.
[0102] (Variation 7) The processes from T44 in Fig. 2 to T92 in Fig. 3 may be omitted. In this case, when the printer 100 receives a Follow-up from the mobile terminal 10 at T42, it transmits the Follow-up including the public key "PKpr" to the mobile terminal 10 at T102 without specifying the distance between the mobile terminal 10 and the printer 100. In this variation, the "first specification part" and the "second specification part" can be omitted.
[0103] (Variation 8) T100 in Fig. 3 may be omitted. In this case, the printer 100 is set to the DPP-enabled state in the initial state in Fig. 2. In this variation, the "state transition unit" can be omitted.
[0104] (Variation 9) The processes of T110, 112, and 122 in Fig. 3 cited in Fig. 5 do not need to use the wireless connection established in T304. In other words, the wireless connection established in T304 may be disconnected after the public key "PKpr" is transmitted from the printer 100 to the mobile terminal 10 in T306.
[0105] (Variation 10) Instead of T10 in FIG. 2 to T106 in FIG. 3, the printer 100 may transmit a service discovery response in response to receiving a service discovery request from the mobile terminal 10 in accordance with the WFD (abbreviation for Wi-Fi Direct) system. The service discovery response includes capability information indicating that the DPP system is available. By receiving a service discovery response including the capability information from the printer 100, the mobile terminal 10 can recognize the printer 100 as being capable of communication in accordance with the DPP system. The printer 100 may then transmit the public key "PKpr" of the printer 100 in accordance with the DPP system to the mobile terminal 10 via a connection in accordance with the WFD system. Generally speaking, the "capability information" may be transmitted "before establishing a wireless connection in accordance with the Wi-Fi standard." Furthermore, the "related information" may be transmitted "via the Wi-Fi interface." In other words, the "related information" may be transmitted in a state where it is included in communication in accordance with the Wi-Fi standard. In another example, the printer 100 may transmit a beacon signal conforming to the Wi-Fi standard. The beacon signal includes capability information indicating that the DPP method is available. By receiving a beacon signal including the capability information from the printer 100, the mobile terminal 10 can recognize the printer 100 as being capable of communication conforming to the DPP method. The printer 100 may then include the printer 100's public key "PKpr" conforming to the DPP method in the communication conforming to the Wi-Fi standard and transmit it to the mobile terminal 10.
[0106] (Variant 11) In the above embodiment, the processing of each step in Figures 2 to 6 is realized by software (e.g., program 140 of printer 100, OS program 40 of mobile terminal 10), but at least one of these processes may be realized by hardware such as a logic circuit.
[0107] Furthermore, the technical elements described in this specification or drawings may exhibit technical utility either alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. Furthermore, the technologies illustrated in this specification or drawings may achieve multiple objectives simultaneously, and achieving one of those objectives alone is technically useful.
[0108] In the scope of the claims at the time of filing, even if each claim depends on only some of the claims, it is not limited to the fact that each claim can depend on only those some of the claims. To the extent that there is no technical contradiction, each claim can also depend on other claims that were not dependent at the time of filing. In other words, the technology of each claim can be combined in various ways as follows: (Item 1) A communication device, Wi-Fi interface and a first transmitter that transmits capability information indicating that the communication device can use a Device Provisioning Protocol (DPP) method of the Wi-Fi standard to a terminal device via the Wi-Fi interface in accordance with a Wi-Fi Aware method of the Wi-Fi standard; a second transmission unit that transmits related information related to the public key of the communication device according to the DPP method to the terminal device according to the Wi-Fi Aware method via the Wi-Fi interface; a first communication execution unit that executes a first communication with the terminal device according to the DPP method via the Wi-Fi interface after the capability information is transmitted to the terminal device and the related information is transmitted to the terminal device, the first communication including a communication of an authentication request using the public key from the terminal device to the communication device, a communication of an authentication response from the communication device to the terminal device, and a communication of connection information from the terminal device to the communication device; a first establishment unit that, when the connection information is received from the terminal device, establishes a first wireless connection between the communication device and an external device via the Wi-Fi interface by using the connection information; A communication device comprising: (Item 2) The communication device further comprises: a first determination unit that determines a first distance between the terminal device and the communication device; the second transmission unit transmits the related information to the terminal device when the first distance is within a predetermined distance; 2. The communication device according to claim 1, wherein the related information is not transmitted to the terminal device if the first distance is greater than the predetermined distance. (Item 3) The communication device further comprises: a second determination unit that determines a second distance between the terminal device and the communication device after the first distance is determined; the second transmission unit transmits the related information to the terminal device when the first distance is within the predetermined distance and the second distance is shorter than the first distance; 3. The communication device according to claim 2, wherein the related information is not transmitted to the terminal device when the first distance is within the predetermined distance and the second distance is equal to or greater than the first distance. (Item 4) The communication device further comprises: a request receiving unit that receives, after the capability information is transmitted to the terminal device, a request signal requesting transmission of the public key from the terminal device via the Wi-Fi interface; 4. The communication device according to item 2 or 3, wherein the first determination unit determines the first distance based on received radio wave intensity of the request signal. (Item 5) The communication device further comprises: a second communication execution unit that executes second communication with the terminal device via the Wi-Fi interface after the capability information is transmitted to the terminal device, the second communication including a process of receiving a first signal from the terminal device and a process of transmitting a second signal to the terminal device; 4. The communication device according to claim 2, wherein the first determination unit determines the first distance based on a time related to the first signal and a time related to communication of the second signal. (Item 6) The communication device further comprises: 6. The communication device according to any one of items 2 to 5, further comprising a state transition unit that transitions the state of the communication device from a disabled state in which communication according to the DPP method is disabled to an enabled state in which communication according to the DPP method is enabled when the first distance is within the specified distance after the capability information is transmitted to the terminal device. (Item 7) the first transmission unit transmits a Publish conforming to the Wi-Fi Aware method including the capability information to the terminal device; 7. The communication device according to any one of items 1 to 6, wherein the second transmission unit transmits a Follow-up signal conforming to a Wi-Fi Aware method including the related information to the terminal device. (Item 8) The communication device further comprises: a second establishment unit that establishes a second wireless connection with the terminal device in accordance with the Wi-Fi Aware scheme via the Wi-Fi interface after the capability information is transmitted to the terminal device; 8. The communication device according to claim 1, wherein the second transmission unit transmits the related information to the terminal device using the second wireless connection. (Item 9) Item 9. The communication device according to item 8, wherein the first communication execution unit executes the first communication with the terminal device using the second wireless connection. (Item 10) A computer program for a terminal device, comprising: The terminal device Equipped with a Wi-Fi interface, The computer of the terminal device, a first receiving unit that receives, from a communication device via the Wi-Fi interface, capability information indicating that the communication device can use a Device Provisioning Protocol (DPP) method of the Wi-Fi standard in accordance with a Wi-Fi Aware method of the Wi-Fi standard; a second receiving unit configured to receive, from the communication device via the Wi-Fi interface, related information related to the public key of the communication device according to the DPP method in accordance with the Wi-Fi Aware method; a first communication execution unit that executes a first communication in accordance with the DPP method with the communication device via the Wi-Fi interface after receiving the capability information from the communication device and the related information from the communication device, the first communication including communication of an authentication request using the public key from the terminal device to the communication device, communication of an authentication response from the communication device to the terminal device, and communication of connection information from the terminal device to the communication device, the connection information being used to establish a wireless connection between the communication device and an external device; A computer program that functions as a (Item 11) A communication device, Wi-Fi interface and a first transmitting unit that transmits, via the Wi-Fi interface, capability information indicating that the communication device can use a Device Provisioning Protocol (DPP) method of the Wi-Fi standard to a terminal device before establishing communication of the Wi-Fi standard; a second transmission unit that transmits related information related to the public key of the communication device according to the DPP method to the terminal device via the Wi-Fi interface; a first communication execution unit that executes a first communication with the terminal device according to the DPP method via the Wi-Fi interface after the capability information is transmitted to the terminal device and the related information is transmitted to the terminal device, the first communication including a communication of an authentication request using the public key from the terminal device to the communication device, a communication of an authentication response from the communication device to the terminal device, and a communication of connection information from the terminal device to the communication device; a first establishment unit that, when the connection information is received from the terminal device, establishes a first wireless connection between the communication device and an external device via the Wi-Fi interface by using the connection information; A communication device comprising: [Explanation of symbols]
[0109] 2: Communication system, 6: Access point, 10: Mobile terminal, 12: Operation unit, 14: Display unit, 18: Wi-Fi I / F, 30: Control unit, 32: CPU, 34: Memory, 40: OS program, 42: Setting application program, 100: Printer, 112: Operation unit, 114: Display unit, 116: Print execution unit, 130: Control unit, 132: CPU, 134: Memory, 140: Program
Claims
1. A communication device, a Wi-Fi interface; a first transmitting unit that transmits capability information indicating that the communication device can use a Device Provisioning Protocol (DPP) method of the Wi-Fi standard to a terminal device via the Wi-Fi interface in accordance with a Wi-Fi Aware method of the Wi-Fi standard; a second transmission unit that transmits related information related to the public key of the communication device according to the DPP method to the terminal device according to the Wi-Fi Aware method via the Wi-Fi interface; a first communication execution unit that executes a first communication with the terminal device according to the DPP method via the Wi-Fi interface after the capability information is transmitted to the terminal device and the related information is transmitted to the terminal device, the first communication including a communication of an authentication request using the public key from the terminal device to the communication device, a communication of an authentication response from the communication device to the terminal device, and a communication of connection information from the terminal device to the communication device; a first establishment unit that, when the connection information is received from the terminal device, establishes a first wireless connection between the communication device and an external device via the Wi-Fi interface by using the connection information; A communication device comprising:
2. The communication device further comprises: a first determination unit that determines a first distance between the terminal device and the communication device; the second transmission unit transmits the related information to the terminal device when the first distance is within a predetermined distance; The communication device according to claim 1 , wherein the associated information is not transmitted to the terminal device if the first distance is greater than the predetermined distance.
3. The communication device further comprises: a second determination unit that determines a second distance between the terminal device and the communication device after the first distance is determined; the second transmission unit transmits the related information to the terminal device when the first distance is within the predetermined distance and the second distance is shorter than the first distance; The communication device according to claim 2 , wherein the related information is not transmitted to the terminal device when the first distance is within the predetermined distance and the second distance is equal to or greater than the first distance.
4. The communication device further comprises: a request receiving unit that receives a request signal requesting transmission of the public key from the terminal device via the Wi-Fi interface after the capability information is transmitted to the terminal device; The communication device according to claim 2 , wherein the first determination unit determines the first distance based on received radio wave intensity of the request signal.
5. The communication device further comprises: a second communication execution unit that executes second communication with the terminal device via the Wi-Fi interface after the capability information is transmitted to the terminal device, the second communication including a process of receiving a first signal from the terminal device and a process of transmitting a second signal to the terminal device; The communication device according to claim 2 , wherein the first determination unit determines the first distance based on a time related to the first signal and a time related to communication of the second signal.
6. The communication device further comprises:
3. The communication device according to claim 2, further comprising a state transition unit that transitions the state of the communication device from a disabled state in which communication according to the DPP method is disabled to an enabled state in which communication according to the DPP method is enabled when the first distance is within the predetermined distance after the possible information is transmitted to the terminal device.
7. the first transmission unit transmits a Publish conforming to the Wi-Fi Aware method including the capability information to the terminal device; The communication device according to claim 1 , wherein the second transmission unit transmits a Follow-up signal conforming to a Wi-Fi Aware standard and including the related information to the terminal device.
8. The communication device further comprises: a second establishing unit that establishes a second wireless connection with the terminal device in accordance with the Wi-Fi Aware scheme via the Wi-Fi interface after the capability information is transmitted to the terminal device; The communication device according to claim 1 , wherein the second transmission unit transmits the related information to the terminal device using the second wireless connection.
9. The communication device according to claim 8 , wherein the first communication execution unit executes the first communication with the terminal device by using the second wireless connection.
10. A computer program for a terminal device, comprising: The terminal device Equipped with a Wi-Fi interface, The computer of the terminal device, a first receiving unit that receives, from a communication device via the Wi-Fi interface, capability information indicating that the communication device can use a Device Provisioning Protocol (DPP) method of the Wi-Fi standard in accordance with a Wi-Fi Aware method of the Wi-Fi standard; a second receiving unit that receives, from the communication device via the Wi-Fi interface, related information related to the public key of the communication device according to the DPP method in accordance with the Wi-Fi Aware method; a first communication execution unit that executes a first communication according to the DPP method with the communication device via the Wi-Fi interface after receiving the capability information from the communication device and the related information from the communication device, the first communication including communication of an authentication request using the public key from the terminal device to the communication device, communication of an authentication response from the communication device to the terminal device, and communication of connection information from the terminal device to the communication device, the connection information being used to establish a wireless connection between the communication device and an external device; A computer program that functions as a
11. A communication device, a Wi-Fi interface; a first transmitting unit that transmits, via the Wi-Fi interface, capability information indicating that the communication device can use a Device Provisioning Protocol (DPP) method of the Wi-Fi standard to a terminal device before establishing a wireless connection of the Wi-Fi standard; a second transmission unit that transmits related information related to the public key of the communication device according to the DPP method to the terminal device via the Wi-Fi interface; a first communication execution unit that executes a first communication with the terminal device according to the DPP method via the Wi-Fi interface after the capability information is transmitted to the terminal device and the related information is transmitted to the terminal device, the first communication including a communication of an authentication request using the public key from the terminal device to the communication device, a communication of an authentication response from the communication device to the terminal device, and a communication of connection information from the terminal device to the communication device; a first establishment unit that, when the connection information is received from the terminal device, establishes a first wireless connection between the communication device and an external device via the Wi-Fi interface by using the connection information; A communication device comprising:
Citation Information
Patent Citations
Communication device, control method, and program
JP2021064910A