Communications equipment
Through the combination of Wi-Fi Direct and DPP protocols, smart devices automatically capture and decode the QR codes of APs and printers to implement wireless connection configuration, solving the problems of connection complexity and switching difficulty in existing technologies, and improving connection flexibility. sex and stability.
Patent Information
- Application Number
- CN202011044635.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-30
- Filing Date
- 2020-09-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-28
AI Technical Summary
When establishing a wireless connection between a smart device and an AP in the existing technology, there is a complex configuration process and security authentication process, which makes user operations cumbersome and difficult to flexibly switch connections between different devices.
Using a combination of Wi-Fi Direct and Device Configuration Protocol (DPP), the terminal device captures and decodes the QR codes of APs and printers, automatically performs the authentication and configuration process, realizes wireless connections, and switches connection modes between terminals and printers. .
It simplifies user operations, automates wireless connection configuration, improves the flexibility and stability of connections between devices, and reduces the complexity when users switch between different devices.
Smart Images

Figure CN112584381B_ABST
Abstract
Description
Technical Field
[0001] The disclosure herein discloses a technology related to a communication device capable of establishing a wireless connection with an external device. Background Art
[0002] U.S. Patent Application Publication No. 2017 / 0026833 describes a known technology for establishing a wireless connection between a camera and an AP using a smart phone. In response to accepting a user's operation, the camera displays a QR code (registered trademark) including information for performing settings of communication parameters, and starts monitoring the reception of a search signal. The smart phone obtains information for performing settings of communication parameters by reading the QR code displayed on the camera, and sends a search signal to the camera. In the case of receiving a search signal from the smart phone, the camera sends a response to the smart phone in response to the search signal. In the case of receiving a response from the camera, the smart phone uses the obtained information to set communication parameters and sends the set communication parameters to the camera. In addition, the smart phone performs similar processing with the AP and sends the communication parameters to the AP. In this way, the camera can establish a wireless connection with the AP by using the received communication parameters. Summary of the invention
[0003] The disclosure herein discloses a novel technique for establishing a wireless connection between a communication device and an external device.
[0004] The communication device disclosed herein may include: an output unit; a wireless interface; a first specific signal receiving unit, the first specific signal receiving unit being used to receive a first specific signal from a first external device via the wireless interface; a first output control unit, the first output control unit being used to, in the case of receiving the first specific signal from the first external device, enable the output unit to output first specific information obtained by using a first public key, wherein the first public key is obtained by the first external device due to outputting the first specific information; a first authentication request receiving unit, the first authentication request receiving unit being used to receive a first authentication request using the first public key from a first external device that has obtained the first public key via the wireless interface; a first authentication response sending unit, the first authentication response sending unit being used to, in the case of receiving the first authentication request from the first external device, send a first authentication response to the first external device via the wireless interface; and a first establishing unit, the first establishing unit being used to establish a first wireless connection with the first external device via the wireless interface in the case of sending the first authentication response to the first external device.
[0005] According to the above configuration, in the case of receiving a first specific signal from a first external device, the communication device outputs the first specific information obtained by using the first public key. Therefore, the first public key is obtained by the first external device. In addition, the communication device receives a first authentication request using the first public key from the first external device, sends a first authentication response to the first external device, and establishes a first wireless connection with the first external device. As described above, a wireless connection can be established between the communication device and the first external device by using a novel method.
[0006] The communication device may also include: a second specific signal receiving unit, which is used to receive a second specific signal different from the first specific signal from a second external device via a wireless interface; a second output control unit, which is used to cause the output unit to output second specific information obtained by using a second public key when the second specific signal is received from the second external device, wherein the second public key is obtained by the second external device due to the output of the second specific information; a second authentication request receiving unit, which is used to receive a second authentication request using the second public key from a second external device that has obtained the second public key via the wireless interface; a second authentication response sending unit, which is used to send a second authentication response to the second external device via the wireless interface when the second authentication request is received from the second external device; and a second establishment unit, which is used to establish a second wireless connection with the access point via the wireless interface when the second authentication response is sent to the second external device.
[0007] The first specific information can be obtained by using a first public key and a first MAC address assigned to the wireless interface, the first public key and the first MAC address can be obtained by a first external device due to outputting the first specific information, the first authentication request can include the first MAC address as a destination MAC address, the second specific information can be obtained by using a second public key and a second MAC address assigned to the wireless interface, the second MAC address is different from the first MAC address, the second public key and the second MAC address can be obtained by a second external device due to outputting the second specific information, and the second authentication request can include the second MAC address as the destination MAC address.
[0008] The communication device may also include: a third specific signal receiving unit, which is used to receive a third specific signal from a third external device via a wireless interface, wherein, when the third specific signal is received from the third external device, the first specific information is not output; and a third establishing unit, which is used to establish a third wireless connection with the third external device via the wireless interface when the third specific signal is received from the third external device and when no authentication request is received from the third external device.
[0009] The type of the first specific signal may be the same as that of the third specific signal, the first specific signal may include first predetermined information, and the third specific signal may include second predetermined information different from the first predetermined information.
[0010] In a case where a first specific signal is received from a fourth external device via a wireless interface during a period from when the first specific information is output to when the first wireless connection is established with the first external device, the first specific information may not be output.
[0011] The first specific information may be a QR code (registered trademark) obtained by encoding a first public key, and the first public key may be obtained by the first external device in response to the first external device capturing the QR code.
[0012] The output unit may be a display unit configured to display an image, and the first output control unit may cause the output unit as the display unit to display the first specific information.
[0013] The communication device may further include: a display control unit, which is used to cause the output unit serving as the display unit to display an instruction screen for indicating the display of first specific information when a first specific signal is received from a first external device, wherein when the display of the first specific information is indicated in the instruction screen, the first output control unit may cause the output unit serving as the display unit to display the first specific information.
[0014] The communication device may also include: a first state conversion unit, which is used to convert the operation state of the communication device from a non-responder state to a first responder state when a first specific signal is received from a first external device, the non-responder state being a state in which an authentication response is not sent, and the first responder state being a state in which a first authentication response is sent in response to receiving a first authentication request including a first MAC address assigned to the wireless interface as a destination MAC address, wherein, when the first authentication request is received from the first external device after the operation state of the communication device has been converted to the first responder state, the first authentication response sending unit may send the first authentication response to the first external device.
[0015] The first responder state may be a state of monitoring reception of a first authentication request using a predetermined communication channel, and sending a first authentication response in response to receiving the first authentication request using the predetermined communication channel, the predetermined communication channel having been predetermined in advance in the communication device, and in a case where a first authentication request using the predetermined communication channel is received from a first external device after the operating state of the communication device has been switched to the first responder state, the first authentication response sending unit may send the first authentication response to the first external device.
[0016] The communication device may further include: a third state conversion unit configured to convert the operation state of the communication device from the first responder state to the non-responder state if a specific condition is satisfied after the operation state of the communication device has been converted to the first responder state.
[0017] The communication device may also include: an operation control unit, which is used to enable the communication device to operate as a configurator according to the Device Configuration Protocol (DPP) scheme of the Wi-Fi standard when the first authentication response is sent to the first external device, wherein the first external device can operate as a registrant according to the DPP scheme.
[0018] Another communication device disclosed herein may include: a wireless interface; a first specific signal receiving unit, the first specific signal receiving unit being used to receive a first specific signal from a first external device via the wireless interface; a first state conversion unit, the first state conversion unit being used to convert the operation state of the communication device from a non-responder state to a first responder state in the case of receiving the first specific signal from the first external device, the non-responder state being a state in which no authentication response is sent, and the first responder state being a state in which a first authentication response is sent in response to receiving a first authentication request including a first MAC address assigned to the wireless interface as a destination MAC address; a first authentication request receiving unit, the first authentication request receiving unit being used to receive a first authentication request from the first external device via the wireless interface; a first authentication response sending unit, the first authentication response sending unit being used to send a first authentication response to the first external device via the wireless interface in the case of receiving a first authentication request from the first external device after the operation state of the communication device has been converted to the first responder state; and a first establishment unit, the first establishment unit being used to establish a first wireless connection with the first external device via the wireless interface in the case of sending the first authentication response to the first external device.
[0019] According to the above configuration, in the case of receiving a first specific signal from a first external device, the communication device switches to the first responder state. In this way, in the case of receiving a first authentication request from the first external device, the communication device can send a first authentication response to the first external device. Therefore, the communication device can establish a first wireless connection with the first external device. As described above, a wireless connection can be established between the communication device and the first external device by using a novel method.
[0020] The communication device may also include: a second specific signal receiving unit, which is used to receive a second specific signal different from the first specific signal from the second external device via the wireless interface; a second state conversion unit, which is used to convert the operation state of the communication device from the non-responder state to the second responder state in case of receiving the second specific signal from the second external device, the second responder state being a state in which a second authentication response is sent in response to receiving a second authentication request including a second MAC address as a destination MAC address, the second MAC address being assigned to the wireless interface and different from the first MAC address; a second authentication request receiving unit, which is used to receive a second authentication request from the second external device via the wireless interface; a second authentication response sending unit, which is used to send a second authentication response to the second external device via the wireless interface in case of receiving a second authentication request from the second external device after the operation state of the communication device has been converted to the second responder state; and a second establishment unit, which is used to establish a second wireless connection with the access point via the wireless interface in case of sending the second authentication response to the second external device.
[0021] The communication device may also include: a third specific signal receiving unit, which is used to receive a third specific signal from a third external device via a wireless interface, wherein, when the third specific signal is received from the third external device, the operating state of the communication device is not switched to a first responder state; and a third establishing unit, which is used to establish a third wireless connection with the third external device via the wireless interface when the third specific signal is received from the third external device and when no authentication request is received from the third external device.
[0022] The type of the first specific signal may be the same as that of the third specific signal, the first specific signal may include first predetermined information, and the third specific signal may include second predetermined information different from the first predetermined information.
[0023] A computer program or computer-readable instruction for implementing the above communication device, and a non-transitory computer-readable recording medium storing the computer program or computer-readable instruction are also novel and useful. In addition, a method performed by the above communication device is also novel and useful. In addition, a communication system including the above communication device and another device (e.g., a first external device, a second external device) is also novel and useful. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 shows the configuration of the communication system;
[0025] Figure 2 An explanatory diagram illustrating an overview of a case A in which a Wi-Fi connection is established between a printer and an AP and a case B in which a Wi-Fi connection is established between a printer and a terminal is shown;
[0026] Figure 3 A sequence diagram showing the bootstrapping process;
[0027] Figure 4 A sequence diagram showing the authentication process;
[0028] Figure 5 A sequence diagram showing a configuration process;
[0029] Figure 6 A sequence diagram showing a network access process;
[0030] Figure 7 A sequence diagram for case B is shown;
[0031] Figure 8 A sequence diagram showing the bootstrapping process;
[0032] Fig. 9 A sequence diagram for case A is shown;
[0033] Fig.10 A sequence diagram showing case B; and
[0034] Fig.11 A sequence diagram showing a case C in which a Wi-Fi connection is established between a printer and a terminal. DETAILED DESCRIPTION
[0035] (Configuration of communication system 2; Figure 1 )
[0036] like Figure 1As shown, the communication system 2 includes an access point (AP) 6, a terminal 10, and a printer 100. The present embodiment discloses a technology configured to enable a user of the terminal 10 to use the terminal 10 to switch between a case where a wireless connection according to the Wi-Fi scheme (hereinafter referred to as a "Wi-Fi connection") is established between the printer 100 and the AP 6 and a case where a Wi-Fi connection is established between the terminal 10 and the printer 100.
[0037] (Configuration of Terminal 10)
[0038] The terminal 10 is a mobile terminal device, such as a cellular phone (such as a smart phone), a PDA or a tablet PC. In a variant, the terminal 10 may be a stationary PC or a laptop PC. The terminal 10 includes a camera 15 and a Wi-Fi interface 16. Hereinafter, the interface will be simply represented as "I / F". The camera 15 is a device for capturing images of an object, and in this embodiment, the camera 15 is particularly used to capture QR codes for the AP 6 and the printer 100. In addition, the terminal 10 stores a connection application 40 (hereinafter referred to as "app 40"). The app 40 is a program for establishing a Wi-Fi connection between the printer 100 and the AP 6, and can be installed to the terminal 10, for example, from a server on the Internet provided by the supplier of the printer 100.
[0039] The Wi-Fi I / F 16 is a wireless interface configured to perform Wi-Fi communication according to the Wi-Fi scheme. For example, the Wi-Fi scheme is a wireless communication scheme for performing wireless communication according to the IEEE (Institute of Electrical and Electronics Engineers) standard 802.11 and standards conforming thereto (e.g., 802.11a, 11b, 11g, 11n, 11ac, etc.). The Wi-Fi I / F 16 particularly supports the Wi-Fi Direct (WFD) scheme and the Device Configuration Protocol (DPP) scheme established by the Wi-Fi Alliance.
[0040] The WFD scheme is a connection scheme described in the standard "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" established by the Wi-Fi Alliance. In WFD, the group owner state (hereinafter referred to as "G / O state") operating as a parent station of a wireless network and the client state (hereinafter referred to as "CL state") operating as a child station in a wireless network are defined.
[0041] The DPP scheme is described in the standard “Device Configuration Protocol Specification Version 1.1” created by the Wi-Fi Alliance, and is a wireless communication scheme for easily establishing a Wi-Fi connection between a pair of devices (e.g., the printer 100 and the AP 6 , or the printer 100 and the terminal 10 ) by using the terminal 10 .
[0042] (Configuration of Terminals 20 and 30)
[0043] The terminal 20 has the same configuration as the terminal 10. However, the terminal 20 supports the WFD scheme but does not support the DPP scheme. The terminal 30 has the same configuration as the terminal 10, and supports the WFD scheme and the DPP scheme.
[0044] (Configuration of Printer 100)
[0045] The printer 100 is a peripheral device (eg, a peripheral device of the terminal 10) capable of executing a printing function. The printer 100 includes an operation unit 112, a display unit 114, a Wi-Fi I / F 116, a print execution unit 118, and a controller 130. The respective units 112 to 130 are connected to a bus (no reference numerals are given).
[0046] The operation unit 112 includes a plurality of keys. The user can input various instructions to the printer 100 by operating the operation unit 112. The display unit 114 is a display configured to display various types of information. The Wi-Fi I / F 116 is similar to the Wi-Fi I / F 16 of the terminal 10. That is, the Wi-Fi I / F 116 supports the WFD scheme and the DPP scheme. In addition, the Wi-Fi I / F 116 is assigned two MAC addresses "MACa" and "MACb". "MACa" is a MAC address for establishing a Wi-Fi connection with the AP 6. "MACb" is a MAC address for establishing a Wi-Fi connection with the terminal 10. The print execution unit 118 includes a printing mechanism of an inkjet scheme or a laser scheme.
[0047] The controller 130 includes a CPU 132 and a memory 134. The CPU 132 performs various processes according to a program 136 stored in the memory 134. The memory 134 is composed of a volatile memory, a non-volatile memory, etc. The memory 134 also stores a MAC address "MACa", a public key PPK1a, and a secret key psk1a associated with each other, and stores a MAC address "MACb", a public key PPK1b, and a secret key psk1b associated with each other. The public key PPK1a and the secret key psk1a are information for establishing a Wi-Fi connection with the AP 6. The public key PPK1b and the secret key psk1b are information for establishing a Wi-Fi connection with the terminal 10.
[0048] (Overview of this embodiment; Figure 2 )
[0049] Next, we will refer to Figure 2An overview of the present embodiment is described. The AP 6 also supports the DPP scheme. In the present embodiment, in case A, the establishment of a Wi-Fi connection between the AP 6 and the printer 100 is achieved by each device 6, 10, 100 performing communication according to the DPP scheme. In addition, in case B, the establishment of a Wi-Fi connection between the terminal 10 and the printer 100 is achieved by the terminal 10 and the printer 100 performing communication according to the DPP scheme and the WFD scheme. In the following, for easier understanding, the operations performed by the CPU of each device (e.g., the CPU 132) will be described with the each device (e.g., the printer 100) as the object of the action, rather than describing the operations with the CPU as the object of the action.
[0050] (Overview of Scenario A)
[0051] First, an overview of case A will be described. In T5, the terminal 10 performs bootstrapping (hereinafter referred to as "BS") according to the DPP scheme with the AP 6. The BS is a process in which information used in authentication (hereinafter referred to as "Auth") of T10 (to be described later) is provided from the AP 6 to the terminal 10 in response to the QR code attached to the AP 6 being captured by the terminal 10.
[0052] In T10, the terminal 10 performs Auth according to the DPP scheme with the AP 6 by using the information obtained in the BS in T5. This Auth is a process in which the terminal 10 and the AP 6 authenticate their communication counterpart.
[0053] In T15, the terminal 10 performs configuration (hereinafter referred to as "Config") with the AP 6 according to the DPP scheme. The Config is a process of sending information for establishing a Wi-Fi connection between the printer 100 and the AP 6 to the AP 6. Specifically, in the Config, the terminal 10 creates a first configuration object (hereinafter, the configuration object is referred to as "CO") for establishing a Wi-Fi connection between the printer 100 and the AP 6, and sends the first CO to the AP 6.
[0054] Next, in T20, the terminal 10 and the printer 100 perform BS according to the DPP scheme. This BS is a process of providing information used in Auth of T25 (to be described later) from the printer 100 to the terminal 10 in response to the terminal 10 capturing the QR code displayed in the printer 100.
[0055] In T25, the terminal 10 performs Auth according to the DPP scheme with the printer 100 by using the information obtained in the BS of T20. This Auth is a process in which the terminal 10 and the printer 100 authenticate their communication counterparts.
[0056] In T30, the terminal 10 and the printer 100 perform Config according to the DPP scheme. This Config is a process of sending information for establishing a Wi-Fi connection between the printer 100 and the AP 6 to the printer 100. In this Config, the terminal 10 creates a second CO for establishing a Wi-Fi connection between the printer 100 and the AP 6, and sends the second CO to the printer 100.
[0057] In T35, the printer 100 and the AP 6 perform network access (hereinafter referred to as "NA") according to the DPP scheme using the stored first and second COs. NA is a process of sharing a connection key for establishing a Wi-Fi connection between the printer 100 and the AP 6. Next, the printer 100 and the AP 6 perform a 4-way handshake communication. In at least a part of the 4-way handshake communication, the printer 100 and the AP 6 communicate encrypted information encrypted by the shared connection key. In addition, in the event that the decryption of the encrypted information is successful, a Wi-Fi connection is established between the printer 100 and the AP 6. Therefore, the printer 100 can participate in the wireless network formed by the AP 6 as a substation, with the result that the printer 100 can communicate with other devices participating in the wireless network via the AP 6. In a variant, the printer 100 and the AP 6 can perform simultaneous authentication of equality (SAE, also known as "dragonfly") communication instead of the 4-way handshake communication.
[0058] In the DPP scheme, in order to establish a Wi-Fi connection between the printer 100 and the AP 6, the user does not need to input information (e.g., a service set identifier (SSID) and a password) of a wireless network in which the AP 6 operates as a parent station to the printer 100. Therefore, the user can easily establish a Wi-Fi connection between the printer 100 and the AP 6.
[0059] (Overview of Scenario B)
[0060] Next, an overview of case B will be described. In T40, the terminal 10 performs configuration discovery (hereinafter referred to as "PD") of the WFD scheme with the printer 100. PD is a process for jointly initiating communication between the terminal 10 and the printer 100 according to the WFD scheme.
[0061] In T45, the terminal 10 performs G / O negotiation (hereinafter referred to as "GN") of the WFD scheme with the printer 100. The GN is a process of determining which of the terminal 10 and the printer 100 is to transition to the G / O state.
[0062] In T50, the terminal 10 executes BS of the DPP scheme with the printer 100. The BS is a process in which the printer 100 provides the terminal 10 with information used in Auth of T55 to be described later.
[0063] In T55, the terminal 10 uses the information obtained in the BS of T50 to perform Auth of the DPP scheme with the printer 100. This Auth is a process in which the terminal 10 and the printer 100 authenticate their communication counterpart.
[0064] In T60, the terminal 10 and the printer 100 execute Config of the DPP scheme. The Config is a process of communicating information for establishing a Wi-Fi connection between the terminal 10 and the printer 100. CO is transmitted from one of the terminal 10 and the printer 100 to the other.
[0065] In T65 , the terminal 10 establishes a Wi-Fi connection with the printer 100 using the CO communicated in T60 .
[0066] (Handling of situation A; Figures 3 to 6 )
[0067] Next, we will refer to Figures 3 to 6 Described in Figure 2 The respective processes performed in T20 to T35 of case A of FIG. 1 are similar to those of T20 to T30 except that the AP 6 is used instead of the printer 100, so a detailed description thereof will be omitted. In the following processes, each communication performed by the terminal 10 and the printer 100 is performed via the Wi-Fi I / F 16, 116. Therefore, the description of "via the Wi-Fi I / F 16 (or 116)" will be omitted.
[0068] (Bootstrapping (BS) of T20; Figure 3 )
[0069] First, refer to Figure 3 To describe Figure 2 In T120, the printer 100 transitions from the non-responder state to the DPP responder state of the AP. The non-responder state is a state in which the printer 100 remains in the DPP state even if a DPP authentication request (hereinafter referred to as "AReq") is received from the terminal 10 (see Figure 4 The DPP responder state of AP is a state in which the Wi-Fi I / F 116 sends ARes to the terminal 10 in response to receiving AReq including the MAC address “MACa” as the destination MAC address for establishing a Wi-Fi connection with the AP 6 from the terminal 10. That is, by transitioning from the non-responder state to the DPP responder state of AP, the printer 100 enters a state in which Auth can be performed.
[0070] Next, in T122, the printer 100 causes the display unit 114 to display a QR code. This QR code is a code image obtained by encoding the public key PPK1a pre-stored in the memory 134, the channel list pre-stored in the memory 134, and the MAC address "MACa". The channel list is a list of values of a plurality of communication channels to be used in Auth. This QR code may be created by the printer 100 when executing the process of T122, or may be pre-stored in the memory 134 when the printer 100 is shipped. This is similar to the later described Figure 7 The QR code in the T522.
[0071] The following processing to be performed by the terminal 10 is implemented by the app 40. In T132, the terminal 10 captures the QR code displayed on the printer 100 in T122 by using the camera 15. In addition, in T134, the terminal 10 decodes the captured QR code and obtains the public key PPK1a, the channel list and the MAC address "MACa". When the processing of T130 is completed, Figure 2 The processing of the BS is terminated.
[0072] (T25 authentication (Auth); Figure 4 )
[0073] Next, we will refer to Figure 4 describe Figure 2 In T200, the terminal 10 creates a public key TPK1 and a secret key tsk1 of the terminal 10. Next, in T202, the terminal 10 uses the created secret key tsk1 and the Figure 3 The terminal 10 creates a shared key SK1 according to Elliptic Curve Diffie-Hellman Key Exchange (ECDH) using the public key PPK1a of the printer 100 obtained in T134. Then, in T204, the terminal 10 creates encrypted data ED1 by encrypting the random value RV1 using the created shared key SK1.
[0074] In T210, the terminal 10 Figure 3 The terminal 10 sends AReq to the printer 100 by setting the MAC address "MACa" obtained in T134 of the terminal 10 as its destination. AReq is a signal for requesting the printer 100 to perform authentication. Here, the terminal 10 repeatedly sends AReq to the printer 100 by sequentially using a plurality of communication channels in the channel list obtained in T134. AReq includes the public key TPK1 of the terminal 10 created in T200, the encrypted data ED1 created in T204, and the capability of the terminal 10.
[0075] The capability includes any of the following values: a value indicating that the device can only operate as a configurator according to the DPP scheme; a value indicating that the device can only operate as a registrant according to the DPP scheme; and a value indicating that the device can operate as either a configurator or a registrant. A configurator is a device that is configured to operate in the Config( Figure 2 On the other hand, the registrant is the device that receives the CO from the configurator in Config. Figure 2 In case A, the terminal 10 creates a first CO or a second CO and sends them to the AP 6 or the printer 100, respectively. In this way, the capability of the terminal 10 includes a value indicating that it can operate only as a configurator.
[0076] In T210, the printer 100 receives the AReq from the terminal 10. As described above, the AReq is sent with the MAC address "MACa" of the printer 100 as the destination. In this way, the printer 100 can receive the AReq from the terminal 10 appropriately.
[0077] In addition, when the printer 100 is Figure 3 When the printer 100 switches to the DPP responder state of the AP in T120, it monitors the reception of the AReq using one of the multiple communication channels in the channel list. As described above, the AReq in T210 is sent by sequentially using the multiple communication channels in the channel list. In this way, the printer 100 can properly receive the AReq from the terminal 10.
[0078] Next, the printer 100 performs the following processing for authenticating the sender of AReq (i.e., the terminal 10). Specifically, first, in T212, the printer 100 creates a shared key SK1 according to ECDH by using the public key TPK1 of the terminal 10 in AReq and the secret key psk1a of the printer 100 pre-stored in the memory 134. Here, the shared key SK1 created by the terminal 10 in T202 and the shared key SK1 created by the printer 100 in T212 are identical to each other. Therefore, the printer 100 can appropriately decrypt the encrypted data ED1 in AReq by using the created shared key SK1 in T204, as a result of which the random value RV1 can be obtained. In the case where the decryption of the encrypted data ED1 is successful, the printer 100 determines that the sender of AReq is the device that captures the QR code displayed on the printer 100, that is, determines that the authentication is successful, and performs subsequent processing starting from T216. On the other hand, when decryption of the encrypted data ED1 is unsuccessful, the printer 100 determines that the sender of AReq is not the device that captured the QR code displayed on the printer 100, ie, determines that the authentication has failed, and does not perform subsequent processing from T216.
[0079] In T216, the printer 100 creates a new public key PPK2 and a new secret key psk2 of the printer 100. In a variation, the public key PPK2 and the secret key psk2 may be pre-stored in the memory 134. Next, in T217, the printer 100 creates a shared key SK2 according to ECDH by using the public key TPK1 of the terminal 10 in AReq of T210 and the created secret key psk2 of the printer 100. Then, in T218, the printer 100 creates encrypted data ED2 by encrypting the obtained random value RV1 and the new random value RV2 using the created shared key SK2.
[0080] In T220, the printer 100 sends ARes to the terminal 10. The ARes includes the public key PPK2 of the printer 100 created in T216, the encrypted data ED2 created in T218, and the capabilities of the printer 100. Figure 2 In case A, the printer 100 receives the second CO from the terminal 10. Therefore, the capability of the printer 100 includes a value indicating that the printer 100 can operate only as a registrant.
[0081] In response to receiving ARes from the printer 100 in T220, the terminal 10 performs the following processing for authenticating the sender of ARes (i.e., the printer 100). Specifically, first, in T222, the terminal 10 creates a shared key SK2 according to ECDH by using the secret key tsk1 of the terminal 10 created in T200 and the public key PPK2 of the printer 100 in ARes. Here, the shared key SK2 created by the printer 100 in T217 and the shared key SK2 created by the terminal 10 in T222 are identical to each other. Therefore, the terminal 10 can appropriately decrypt the encrypted data ED2 in ARes by using the created shared key SK2 in T224, as a result of which random values RV1 and RV2 can be obtained. In the case where the decryption of the encrypted data ED2 is successful, the terminal 10 determines that the sender of ARes is the device that displays the captured QR code, that is, determines that the authentication is successful, and performs subsequent processing starting from T230. On the other hand, in the case where decryption of the encrypted data ED2 is unsuccessful, the terminal 10 determines that the sender of ARes is not the device displaying the captured QR code, that is, determines that the authentication has failed, and does not perform subsequent processing from T230.
[0082] In T230, the terminal 10 sends Confirm to the printer 100. The Confirm includes information indicating that the terminal 10 operates as a configurator and the printer 100 operates as a registrant. As a result, the terminal 10 determines to operate as a configurator in T232, and the printer 100 determines to operate as a registrant in T234. When the processing of T234 is completed, Figure 4 The processing is terminated.
[0083] (Config of T50; Figure 5 )
[0084] Next, we will refer to Figure 5 describe Figure 2 In T300, the printer 100 sends a DPP configuration request (hereinafter referred to as "CReq") to the terminal 10. The CReq is a signal requesting the transmission of a CO.
[0085] In T300, the terminal 10 receives CReq from the printer 100. In this case, the terminal 10 obtains the group ID "Group1", the public key TPK2 and the secret key tsk2 from the memory (not shown) of the terminal 10 in T301. As described above, the terminal 10 has already performed the Figure 2 Config in T15 of , and at that time the terminal 10 creates a group ID "Group1", a public key TPK2 and a secret key tsk2 and stores them in the memory. The group ID "Group1" is information for identifying a wireless network formed by a Wi-Fi connection established between the printer 100 and the AP 6. In a variation, a character string specified by a user may be used as the group ID. That is, in T301, the terminal 10 obtains the group ID in Figure 2 Next, in T302, the terminal 10 creates a second CO. Specifically, the terminal 10 performs the following processing.
[0086] The terminal 10 creates a hash value HV by hashing the public key TPK2 of the terminal 10. In addition, the terminal 10 creates a hash value HV by hashing the hash value HV, the group ID "Group1" and Figure 4The terminal 10 creates a specific value by hashing the combination of the public key PPK2 of the printer 100 in the ARes in the T220. Then, the terminal 10 encrypts the created specific value by using the secret key tsk2 of the terminal 10 to create a digital signature DS1 according to the elliptic curve digital signature algorithm (ECDSA). As a result, the terminal 10 can create a signature-connector for the printer (hereinafter, the signature-connector is referred to as "SC"), including the hash value HV, the group ID "Group1", the public key PPK2 of the printer 100 and the digital signature DS1. In addition, the terminal 10 creates a second CO, including the SC for the printer and the public key TPK2 of the terminal 10.
[0087] In T310 , the terminal 10 sends a DPP configuration response (hereinafter referred to as “CRes”) including the second CO to the printer 100 .
[0088] In T310, the printer 100 receives CRes from the terminal 10. In this case, the printer 100 stores the second CO in the CRes in the memory 134. When the processing of T310 is completed, Figure 5 The processing is terminated.
[0089] (Network Access (NA) for T35; Figure 6 )
[0090] Next, we will refer to Figure 6 Describes the process performed between the printer 100 and the AP 6 Figure 2 As mentioned above, similar to the NA treatment in T35 Figure 2 T20 to T30 have been executed between terminal 10 and AP 6 Figure 2 However, AP 6 does not perform Figure 3 The AP 6 stores the public key APK1 and the secret key ask1 of the AP 6 in advance. In addition, a QR code obtained by encoding the public key APK1 of the AP 6, the channel list of the AP 6, and the MAC address of the AP 6 is attached to the housing of the AP 6. When the terminal 10 captures the QR code, a process similar to the process starting from T134 is performed between the terminal 10 and the AP 6. As a result, the AP 6 stores the public key APK2 and the secret key ask2 of the AP 6 (see Figure 4 T216), and further receives a first CO from terminal 10 (see Figure 5T310 of). The first CO includes an SC for AP and a public key TPK2 of the terminal 10. The public key TPK2 is the same as the public key TPK2 included in the second CO. In addition, the SC for AP includes a hash value HV, a group ID "Group1", a public key APK2 of AP 6, and a digital signature DS2. The hash value HV and the group ID "Group1" are respectively the same as the hash value HV and the group ID "Group1" included in the second CO. The digital signature DS2 is information encrypted by the secret key tsk2 of the terminal 10 with a specific value obtained by hashing a combination of the hash value HV, the group ID "Group1" and the public key APK2, and is a value different from the digital signature DS1 included in the second CO.
[0091] In T400, the printer 100 transmits a DPP peer discovery request (hereinafter referred to as "DReq") including the SC for the printer to the AP 6. The DReq is a signal requesting the AP 6 to perform authentication and transmit the SC for the AP.
[0092] In response to receiving DReq from the printer 100 in T400, the AP 6 performs processing for authenticating the sender of the DReq (i.e., the printer 100) and the information in the DReq (i.e., the hash value HV, "Group1" and the public key PPK2). Specifically, in T402, the AP 6 first performs a first AP determination processing related to whether the hash value HV and the group ID "Group1" in the received SC for the printer are respectively the same as the hash value HV and the group ID "Group1" in the SC for the AP included in the stored first CO. Figure 6 In this case, AP 6 determines "same" in the first AP determination process, and therefore determines that the authentication of the sender of DReq (i.e., printer 100) is successful. Here, the fact that the hash value HV in the received SC for the printer is the same as the hash value HV in the SC for the AP included in the stored first CO means that the SC for the printer and the SC for the AP are created by the same device (i.e., terminal 10). In this way, AP 6 also determines that the authentication of the creator of the received SC for the printer (i.e., terminal 10) is successful. In addition, AP 6 decrypts the digital signature DS1 in the received SC for the printer by using the public key TPK2 of the terminal 10 included in the stored first CO. Since in Figure 6 In this case, the decryption of the digital signature DS1 is successful, so AP 6 performs a second AP determination process related to whether the specific value obtained by decrypting the digital signature DS1 is the same as the value obtained by hashing the information in the received SC for the printer (i.e., the hash value HV, "Group1" and the public key PPK2). Figure 6 In the case where AP 6 determines "same" in the second AP determination processing, AP 6 therefore determines that the authentication of the information in DReq is successful, and executes the processing from T404. The fact that AP 6 determines "same" in the second AP determination processing means that the information in the received SC for the printer (i.e., the hash value HV, "Group1", and the public key PPK2) has not been tampered with by a third party since the second CO was stored in the printer 100. On the other hand, in the case where AP 6 determines "not same" in the first AP determination processing, in the case where the decryption of the digital signature DS1 fails, or in the case where AP 6 determines "not same" in the second AP determination processing, AP 6 determines that the authentication has failed and does not execute the processing from T404.
[0093] Next, in T404 , the AP 6 creates a connection key CK (ie, a shared key) according to ECDH by using the obtained public key PPK2 of the printer 100 and the stored secret key ask2 of the AP 6 .
[0094] In T410 , the AP 6 sends a DPP peer discovery response (hereinafter referred to as “DRes”) including the SC for the AP to the printer 100 .
[0095] In response to receiving DRes from AP 6 in T410, the printer 100 performs processing for authenticating the sender of DRes (i.e., AP 6) and the information in DRes (i.e., the hash value HV, "Group1" and the public key APK2). Specifically, in T412, the printer 100 first performs a first PR determination process related to whether the hash value HV and the group ID "Group1" in the received SC for the AP are respectively the same as the hash value HV and the group ID "Group1" in the SC for the printer included in the stored second CO. Figure 6 In this case, the printer 100 determines "same" in the first PR determination process, thereby determining that the authentication of the sender of DRes (i.e., AP 6) is successful. The fact that the hash value HV in the received SC for AP and the hash value HV in the SC for the printer included in the stored second CO are the same means that the SC for the printer and the SC for AP are created by the same device (i.e., terminal 10). In this way, the printer 100 also determines that the authentication of the creator of the received SC for AP (i.e., terminal 10) is successful. In addition, the printer 100 decrypts the digital signature DS2 in the received SC for AP by using the public key TPK2 of the terminal 10 included in the stored second CO. Since in Figure 6In this case, the decryption of the digital signature DS2 is successful, so the printer 100 performs a second PR determination process related to whether the specific value obtained by decrypting the digital signature DS2 is the same as the value obtained by hashing the information in the received SC for AP (i.e., hash value HV, "Group1" and public key APK2). Figure 6 In the case where the printer 100 determines "same" in the second PR determination process, the printer 100 determines that the authentication of the information in DRes is successful, and executes the process starting from T414. The fact that the printer 100 determines "same" in the second PR determination process means that the information in the SC for AP (i.e., the hash value HV, "Group1" and the public key APK2) has not been tampered with by a third party since the first CO was stored in AP 6. On the other hand, in the case where the printer 100 determines "not same" in the first PR determination process, in the case where the decryption of the digital signature DS2 fails, or in the case where the printer 100 determines "not same" in the second PR determination process, the printer 100 determines that the authentication has failed and does not execute the process starting from T414.
[0096] In T414, the printer 100 creates a connection key CK in accordance with ECDH by using the stored secret key psk2 of the printer 100 and the received public key APK2 of the AP 6 in the SC for the AP. Here, the connection key CK created by the AP 6 in T404 and the connection key CK created by the printer 100 in T414 are identical to each other. Therefore, the connection key CK for establishing a Wi-Fi connection is shared between the printer 100 and the AP 6.
[0097] After the connection key CK is shared between the printer 100 and the AP 6, in T420, the printer 100 and the AP 6 perform 4-way handshake communication using the connection key CK. As a result, a Wi-Fi connection is established between the printer 100 and the AP 6. As described above, the printer 100 receives a Wi-Fi signal from the terminal 10 by using one of the plurality of communication channels included in the channel list of the printer 100. Figure 4 That is, the printer 100 receives the AReq in T210 from the terminal 10 by using a communication channel that both the printer 100 and the terminal 10 can use. On the other hand, the channel used in the Wi-Fi connection of T420 is determined by the AP 6. In this embodiment, the printer 100 receives the AReq in T210 from the terminal 10 by using a communication channel that both the printer 100 and the terminal 10 can use. Figure 4 The communication channel for receiving AReq from the terminal 10 in T210 is different from the communication channel for the printer 100 to establish a Wi-Fi connection with the AP 6 in T420. However, in a variation, the former communication channel may be the same as the latter communication channel.
[0098] (Handling of situation B; Figure 7 )
[0099] Next, we will refer to Figure 7 Described in Figure 2 The respective processes performed in T40 to T65 of case B.
[0100] exist Figure 2 In the PD at T40 of the WFD protocol, the terminal 10 transmits a configuration discovery request (hereinafter referred to as "PDReq") to the printer 100 at T500. The PDReq is a signal requesting the start of communication according to the WFD scheme.
[0101] In T500, the printer 100 receives PDReq from the terminal 10. In this case, the printer 100 sends a configuration discovery response (hereinafter referred to as "PDRes") to the terminal 10 in T502.
[0102] exist Figure 2 In the GN of T45, the terminal 10 sends a G / O negotiation request (hereinafter referred to as "GNReq") to the printer 100 in T510. GNReq includes an Intent value of the terminal 10. The Intent value is a value indicating the possibility of becoming a G / O and is predetermined to be within a predetermined range (e.g., from 1 to 15).
[0103] In T510 , the printer 100 receives GNRes from the terminal 10 . In this case, in T512 , the printer 100 sends a G / O negotiation response (hereinafter referred to as “GNRes”) to the terminal 10 . The GNRes includes the Intent value of the printer 100 .
[0104] Each of the terminal 10 and the printer 100 compares its own Intent value with the Intent value of the communication partner, determines that the device with the larger Intent value becomes the G / O (i.e., the parent station), and determines that the device with the smaller Intent value becomes the CL (i.e., the child station). Figure 7 In the case of , the printer 100 determines to become G / O at T514, and the terminal 10 determines to become CL at T516.
[0105] exist Figure 2In the BS of T50 of WFD, in T520, the printer 100 transits from the non-responder state to the DPP responder state of WFD. The DPP responder state of WFD is a state in which the Wi-Fi I / F 116 transmits ARes to the terminal 10 in response to receiving AReq including the MAC address "MACb" as the destination MAC address for establishing a Wi-Fi connection with the terminal 10 from the terminal 10. That is, by transiting from the non-responder state to the DPP responder state of WFD, the printer 100 enters a state capable of performing Auth.
[0106] Next, at T522, the printer 100 causes the display unit 114 to display a QR code. This QR code is a code image obtained by encoding the public key PPK1b, the channel list, and the MAC address "MACb". That is, the QR code is identical to Figure 3 The QR code displayed in the T122 is different.
[0107] T532 and T534 are similar except that the public key PPK1b and MAC address "MACb" are obtained in T534. Figure 3 T132 and T134.
[0108] exist Figure 2 The T55 Auth is executed similar to Figure 4 100. However, there are some differences, which will be described below. In T202, the terminal 10 uses the public key PPK1b obtained in T534 instead of the public key PPK1a. In T210, the terminal 10 sends AReq including the MAC address "MACb" obtained in T534 as the destination address instead of the MAC address "MACa" to the printer 100. In addition, the device ( Figure 7 The printer 100 in the case of ) becomes the configurator and is determined to be the device that becomes the CL in the GN ( Figure 7 Therefore, the capability of the terminal 10 in the AReq of T210 indicates that it can only operate as a registrant and not as a configurator.
[0109] In T212, the printer 100 uses the secret key psk1b instead of the secret key psk1a. Furthermore, the capability in ARes of T220 indicates that the printer 100 can operate only as a configurator and not as a registrant.
[0110] When executing something like Figure 4 During the processing from T200 to T230 of FIG. 1 , the terminal 10 determines to be a registrant in T632 . Furthermore, in T634 , the printer 100 determines to be a configurator.
[0111] exist Figure 2 The following operations are performed in the Config of T60 of . As described above, in the current case, the terminal 10 becomes the registrant ( T632 ), and the printer 100 becomes the configurator ( T634 ). Therefore, in T700 , the terminal 10 as the registrant sends CReq to the printer 100 .
[0112] In T700, the printer 100 receives the CReq from the terminal 10. In this case, in T701, the printer 100 creates a service set identifier (SSID) which is an identifier of a wireless network in which the printer 100 operates as a G / O and a password to be used in the wireless network. Then, in T702, the printer 100 creates a CO including the SSID and the password created in T701, instead of a CO including the SC. Then, in T710, the printer 100 sends the created CO to the terminal 10.
[0113] In T710, the terminal 10 receives the CO from the printer 100. Therefore, the terminal 10 can establish a Wi-Fi connection with the printer 100 by using the SSID and password included in the CO.
[0114] exist Figure 2 When establishing a Wi-Fi connection in T65 of the printer 100, various types of communications are performed between the terminal 10 and the printer 100: probe, association, authentication, 4-way handshake, etc., as shown in T730. In the communication process as described above, communication of the SSID and password is performed, and the printer 100 as the G / O performs password authentication. When the authentication is successful, a Wi-Fi connection is established between the terminal 10 and the printer 100. As described above, also in combination with case A, the printer 100 uses one of the multiple communication channels included in the channel list of the printer 100 to receive AReq from the terminal 10. On the other hand, the channel used in the Wi-Fi connection of T730 is determined by the G / O. In the current case, since the printer 100 becomes the G / O (T554), in T730, the printer 100 uses the same channel as the channel used when receiving AReq to establish a Wi-Fi connection with the terminal 10. That is, in this embodiment, the communication channel in which the printer 100 receives AReq from the terminal 10 in T55 and the communication channel in which the printer 100 establishes a Wi-Fi connection with the terminal 10 in T730 are the same. However, in a variation, the former communication channel and the latter communication channel may be different.
[0115] (Details of the bootstrap process of the printer 100; Figure 8 )
[0116] Next, we will refer to Figure 8The BS process executed by the CPU 132 of the printer 100 is described. When the power of the printer 100 is turned on, the BS process is started. Figure 8 processing.
[0117] In S100, the CPU 132 monitors reception of a probe request (hereinafter referred to as "PRReq") or PDReq from a terminal (eg, 10) via the Wi-Fi I / F 116. When receiving PRReq or PDReq from the terminal (S100 Yes), the CPU 132 proceeds to S110.
[0118] In S110, the CPU 132 determines a process for establishing a Wi-Fi connection with a device different from the terminal that is the sender of the signal received in S100 (ie, from Figure 8 The S120 starts the processing and Figures 3 to 7 In the case where it is determined that such processing is executed (S110 Yes), the CPU 132 returns to S100 without executing the processing starting from S120. As described above, in the case where the processing for establishing a Wi-Fi connection with a specific device is executed because the processing of S120 to S140 has been executed, even if PRReq or PDReq is received from another device while the Wi-Fi connection is being established (S100 Yes), the processing of S120 to S140 is not executed. Therefore, it is possible to suppress the processing for establishing a Wi-Fi connection with a specific device from being interrupted by another processing, with the result that the printer 100 can properly establish a Wi-Fi connection with the specific device as described above. On the other hand, in the case where it is determined that the processing for establishing a Wi-Fi connection is not executed (S110 No), the CPU 132 proceeds to S120.
[0119] In S120, the CPU 132 determines whether the signal received in S100 is a PRReq including the SSID "DISPLAY". In the case of determining that the received signal is such a PRReq (S120 Yes), the CPU 132 proceeds to S122. On the other hand, in the case of determining that the received signal is a PRReq (S120 No), the CPU 132 proceeds to S130.
[0120] In S122, the CPU 132 displays an instruction screen. The instruction screen is a screen for the user to instruct whether to display the QR code, and includes an OK button and a CANCEL button.
[0121] In S124, the CPU 132 determines whether the OK button in the instruction screen displayed in S122 has been selected. In the case where it is determined that the OK button has been selected (S124 Yes), the CPU 132 proceeds to S126, and in the case where it is determined that the CANCEL button has been selected (S124 No), the CPU 132 returns to the process of S100 without executing S126 and S128. As described above, in the present embodiment, in the case where the instruction screen is displayed and the OK button is selected, transition to the DPP responder state of the AP (S126) and display of the QR code (S128) are performed. On the other hand, in the case where the CANCEL button is selected, these processes are not performed. Therefore, the printer 100 can switch whether to display the QR code according to the user's intention.
[0122] In S126, the CPU 132 instructs the Wi-Fi I / F 116 to transition to the DPP responder state of the AP. Therefore, the CPU 132 enters a standby state to receive an AReq including the MAC address "MACa" as the destination MAC address.
[0123] In S128, the CPU 132 displays the QR code obtained by encoding the public key PPK1a, the channel list and the MAC address "MACa". When S128 is completed, Figure 8 The processing is terminated.
[0124] In addition, in S130, the CPU 132 checks the information described in the field of the Config method (hereinafter referred to as "CM") included in the PDReq. Then, the CPU 132 determines whether the CM includes the letter string "DPP" or the letter string "Push Button". Here, the CM including the letter string "DPP" means that the sender terminal of the PDReq is requesting to establish a Wi-Fi connection according to the WFD scheme by performing communication according to the DPP scheme. In addition, the CM including the letter string "Push Button" means that the sender terminal of the PDReq is requesting to establish a Wi-Fi connection according to the WFD scheme without using the DPP scheme. In the case of determining that the CM includes the letter string "DPP" (S130 Yes), the CPU 132 proceeds to S132, and in the case of determining that the CM includes the letter string "Push Button" (S130 No), the CPU 132 proceeds to S140.
[0125] S132, S134 and the effects achieved by these processes are similar to those of S122 and S124. In S136, the CPU 132 instructs the Wi-Fi I / F 116 to transition to the DPP responder state of the WFD. Therefore, the CPU 132 enters a standby state to receive an AReq including the MAC address "MACb" as the destination MAC address.
[0126] In S138, the CPU 132 displays the QR code obtained by encoding the public key PPK1b, the channel list and the MAC address "MACb". When the processing of S138 is completed, Figure 8 The processing is terminated.
[0127] In addition, if it is determined that S130 is no, the processing of S132 to S138 is not performed, and S140 is performed. In S140, the CPU 132 displays a PBC screen according to a button configuration (PBC) of Wi-Fi Protected Setup (WPS). The PBC screen includes a button that is a trigger for establishing a Wi-Fi connection according to the WFD scheme.
[0128] (Details of Situation A; Fig. 9 )
[0129] Next, we will refer to Figures 9 to 11 Description by Figure 8 treatment (and Figures 3 to 7 First, we will refer to Fig. 9 describe Figure 2 Case A (i.e., Figures 3 to 6 Situation A).
[0130] In response to accepting an operation from the user to activate the app 40 in T800, the terminal 10 displays a selection screen in T802. The selection screen includes a button B1 for establishing a Wi-Fi connection between the printer 100 and the AP 6 and a button B2 for establishing a Wi-Fi connection between the printer 100 and the terminal 10. For example, in a case where the terminal 10 has a Wi-Fi connection established with the AP 6, the user selects the button B1. In response to accepting the selection of the button B1 in T804, the terminal 10 sends a PRReq including the SSID "DISPLAY" to the printer 100 in T810.
[0131] When PRReq( Figure 8In response to the user selecting the OK button B3 at T814 (Yes at S124), the printer 100 switches to the DPP responder state of the AP at T820 (S126), and displays the QR code at T822 (S128). The processing at T820 and T822 corresponds to Figure 3 The processing of T120 and T122.
[0132] T824 and T826 are similar to Figure 3 T132 and T134. T830 Auth is similar to Figure 4 When the processing of Auth at T830 is completed, the printer 100 stops displaying the QR code at T835.
[0133] Here, when operations similar to T800 to T804 are performed in the terminal 30 different from the terminal 10, the printer 100 receives PRReq including SSID "DISPLAY" from the terminal 30 in T837 (S100 Yes). In this case, since the printer 100 is performing a process for establishing a Wi-Fi connection with the terminal 10 (S110 Yes), the QR code is not displayed.
[0134] The Config of T840 and NA of T850 are similar Figure 5 Config and Figure 6 Therefore, the printer 100 establishes a Wi-Fi connection with the AP 6. For example, in a case where the terminal 10 has a Wi-Fi connection established with the AP 6, the printer 100 can establish the same Wi-Fi connection with the AP 6. Therefore, the printer 100 can receive image data representing a print target image from the terminal 10 via the AP 6 and execute printing of the image.
[0135] When the NA of T850 is completed, the printer 100 transitions from the DPP responder state of the AP to the non-responder state in T860. Although not shown, even if the predetermined time has passed since the printer 100 transitioned to the DPP responder state of the AP in T820 and AReq has not been received, the printer 100 transitions from the DPP responder state of the AP to the non-responder state.
[0136] (Details of Situation B; Fig.10 )
[0137] Next, we will refer to Fig.10 describe Figure 2 Case B (i.e., Figure 7Details of case B). T900 and T902 with Fig. 9 The T800 and T802 are similar.
[0138] For example, the user selects button B2 in the case where the terminal 10 does not have a Wi-Fi connection established with the AP 6. In this case, in response to accepting the selection of button B2 in T904, the terminal 10 sends a PDReq including a CM describing the letter string "DPP" to the printer 100 in T910.
[0139] When PDReq( Figure 8 When S100 is YES, the printer 100 sends PDRes to the terminal 10 in T912. The processing of T910 and T912 corresponds to Figure 7 T500 and T502 processing. T914 GN and Figure 7 The T510 is similar to the T516.
[0140] Next, in T916, the printer 100 displays the instruction screen (S110 No, S120 No, S130 Yes, and S132). When the selection of the OK button B3 is accepted from the user in T918 (S134 Yes), the printer 100 transitions to the DPP responder state of WFD in T920 (S136), and displays the QR code in T922 (S138). The processing of T920 and T922 corresponds to Figure 7 The processing of T520 and T522.
[0141] T924 and T926 are similar to Figure 7 T532 and T534. T930 Auth is similar to Figure 7 When the process of Auth at T930 is completed, the printer 100 stops displaying the QR code at T935.
[0142] Here, when operations similar to T900 to T904 are performed in a terminal 30 different from the terminal 10, the printer 100 receives a PDReq including a CM describing the letter string "DPP" from the terminal 30 in T937 (S100 Yes). In this case, since the printer 100 is performing a process for establishing a Wi-Fi connection with the terminal 10 (S110 Yes), the QR code is not displayed.
[0143] The Config of T940 and the establishment of Wi-Fi connection of T950 are similar to Figure 7 Config and Figure 7The Wi-Fi connection of the T730 is established. Therefore, the printer 100 can establish a Wi-Fi connection with the terminal 10. Therefore, the printer 100 can receive image data representing a print target image from the terminal 10 without intervention of the AP 6, and execute printing of the image.
[0144] When the process of establishing the Wi-Fi connection in T950 is completed, the printer 100 transitions from the DPP responder state of WFD to the non-responder state in T960. Although not shown, even if a predetermined time has passed since the printer 100 transitioned to the DPP responder state of WFD in T920 and AReq has not been received, the printer 100 transitions from the DPP responder state of WFD to the non-responder state. As described above, since the printer 100 transitions to the non-responder state, the printer 100 does not need to perform standby processing to receive AReq, and the processing load on the printer 100 can be reduced.
[0145] (Details of Case C; Fig.11 )
[0146] Next, we will refer to Fig.11 Details of Case C are described which is different from Case A and Case B. In Case C, the terminal 20 which does not support the DPP scheme is used instead of the terminal 10.
[0147] The terminal 20 includes an app for establishing a Wi-Fi connection with the printer 100. The app is a program different from the app 40 of the terminal 10, and is a program for establishing a Wi-Fi connection according to the WFD scheme without using the DPP scheme. In response to accepting an operation for activating the app from the user in T1000, the terminal 20 displays an inquiry screen in T1002. The inquiry screen includes a message asking the user whether to establish a Wi-Fi connection between the printer 100 and the terminal 10 and an OK button B5. In response to accepting the selection of the button B5 in T1004, the terminal 20 sends a PDReq including a CM describing the letter string "PushButton" to the printer 100 in T1010.
[0148] When PDReq( Figure 8 When S100 is YES), at T1012, the printer 100 sends PDRes to the terminal 20. The GN at T1014 is Figure 7 That is, in case C as well, the printer 100 is determined to be G / O ( Figure 7 T514).
[0149] Next, in T1020, the printer 100 displays a PBC screen (S110 No, S120 No, S130 No, and S140). The PBC screen includes a message indicating the establishment of a Wi-Fi connection with the terminal 10 and a connection button B6. When the selection button B6 is accepted from the user in T1022, in T1030, the printer 100 performs WPS with the terminal 20. In the process of WPS, the printer 100 as the G / O creates an SSID and a password, and sends such information to the terminal 20.
[0150] Establishing a Wi-Fi connection in the T1050 is similar to Figure 7 The printer 100 can establish a Wi-Fi connection with the terminal 20. Therefore, the printer 100 can receive image data representing a print target image from the terminal 20 without intervention of the AP 6 and execute printing of the image.
[0151] (Effects of this embodiment)
[0152] Upon receiving the PDReq( Fig.10 In the case of receiving AReq using the public key PPK1b from the terminal 10 (T910), the printer 100 transitions to the DPP responder state of the WFD (T920) and displays a QR code obtained by encoding the public key PPK1b, etc. (T922). Therefore, the terminal 10 obtains the public key PPK1b, etc. (T926). In the case of receiving AReq using the public key PPK1b from the terminal 10, the printer 100 can send ARes to the terminal 10 (T930). Therefore, the printer 100 can establish a Wi-Fi connection with the terminal 10 (T950). As described above, by using this novel scheme, a Wi-Fi connection can be established between the printer 100 and the terminal 10.
[0153] For example, by performing a predetermined operation on the printer 100 (e.g., an operation in a setting screen), a user who is knowledgeable about the operation on the printer 100 can cause the printer 100 to display a QR code and transition to the DPP responder state of WFD. However, a user who does not know the operation on the printer 100 may not be able to perform the predetermined operation appropriately. According to the present embodiment, even if the above-mentioned predetermined operation is not performed, in the case where a PDReq is received from the terminal 10, the printer 100 displays a QR code and transitions to the DPP responder state of WFD. Therefore, the user can easily cause the printer 100 to display a QR code and transition to the DPP responder state of WFD by using the app 40 of the terminal 10.
[0154] In addition, upon receiving a PRReq ( Fig. 9 In the case of receiving an AReq using the public key PPK1a from the terminal 10 (T810), the printer 100 transitions to the DPP responder state of the AP (T820) and displays a QR code obtained by encoding the public key PPK1a, etc. (T822). Therefore, the terminal 10 obtains the public key PPK1a, etc. (T826). In the case of receiving an AReq using the public key PPK1a from the terminal 10, the printer 100 can send ARes to the terminal 10 (T830). Therefore, the printer 100 can establish a Wi-Fi connection with the terminal 10 (T850). As described above, in response to which of the PDReq and PRReq is received from the terminal 10, that is, in response to a request from the terminal 10, the printer 100 can establish a Wi-Fi connection with an appropriate device (that is, the terminal 10 or the AP 6).
[0155] In addition, Fig.10 In case B, the printer 100 switches to the standby state in T920 to receive AReq including the MAC address "MACb" as the destination MAC address, and displays the QR code encoding the MAC address "MACb" in T922. In this case, even if AReq including the MAC address "MACa" different from the MAC address "MACb" as the destination MAC address is received, the printer 100 does not send ARes. That is, since the printer 100 does not perform the processing for establishing a Wi-Fi connection with the AP 6, the printer 100 can properly establish a Wi-Fi connection with the terminal 10. On the other hand, in Fig. 9 In case A, the printer 100 transitions to the standby state in T820 to receive AReq including the MAC address "MACa" as the destination MAC address, and displays the QR code encoding the MAC address "MACa" in T822. In this case, even if AReq including the MAC address "MACb" different from the MAC address "MACa" as the destination MAC address is received, the printer 100 does not send ARes. That is, since the printer 100 does not perform the process for establishing a Wi-Fi connection with the terminal 10, the printer 100 can appropriately establish a Wi-Fi connection with the AP 6.
[0156] In addition, upon receiving a PDReq ( Fig.11In the case of the DPP responder state of WFD (T1010), the printer 100 does not switch to the DPP responder state of WFD and does not display the QR code. Therefore, the printer 100 can properly establish a Wi-Fi connection with the terminal 20 without using the DPP scheme (T1050). In particular, in the present embodiment, it is assumed that the printer 100 receives the PDReq which is the same type of signal from the terminal 10 and the terminal 20. In addition, the printer 100 switches to the DPP responder state of WFD and displays the QR code (T1050) according to the information described in the CM included in the PDReq. Fig.10 T920 and T922) and display PBC screen ( Fig.11 Therefore, the printer 100 can use an appropriate scheme for each of the terminal 10 and the terminal 20 to establish a Wi-Fi connection with the terminal 10 or the terminal 20.
[0157] (Corresponding relationship)
[0158] Printer 100 is an example of a “communication device”. Terminal 10 is an example of a “first external device” and a “second external device”. Terminal 20 and terminal 30 are examples of a “third external device” and a “fourth external device”, respectively. Display unit 114 and Wi-Fi I / F 116 are examples of an “output unit” and a “wireless interface”, respectively. Channels in the channel list are examples of “predetermined communication channels”. PDReq including a CM describing a letter string “DPP”, PRReq including an SSID “DISPLAY”, and PRReq including a CM describing a letter string “Push Button” are examples of a “first specific signal”, a “second specific signal”, and a “third specific signal”, respectively. The letter string “DPP” and the letter string “Push Button” are examples of a “first predetermined information” and a “second predetermined information”, respectively. In Fig.10 The DPP responder status, QR code, public key PPK1b, MAC address "MACb", AReq, ARes, and Wi-Fi connection of WFD in case B are examples of "first responder status", "first specific information", "first public key", "first MAC address", "first authentication request", "first authentication response", and "first wireless connection", respectively. Fig. 9 The DPP responder status, QR code, public key PPK1a, MAC address "MACa", AReq, ARes, and Wi-Fi connection of the AP in case A are examples of "second responder status", "second specific information", "second public key", "second MAC address", "second authentication request", "second authentication response", and "second wireless connection", respectively. Fig.11 The Wi-Fi connection in case C is an example of a "third wireless connection". Fig.10 The lapse of a predetermined time since the QR code was displayed in T922 is an example of a "specific condition".
[0159] Fig.10 T910, T916, T920, T922 and T950 are examples of "first specific signal receiving unit", "display control unit", "first state conversion unit", "first output control unit" and "first establishment unit" respectively. Figure 4 The T210 and T930 are referenced Figure 4 T220 of are examples of a “first authentication request receiving unit” and a “first authentication response sending unit”, respectively. In the case where a predetermined time has passed since the QR code was displayed in T922, the process of transitioning to the non-responder state similar to T960 is an example of a “third state transition unit”. Figure 7 The T634 is an example of an "operation control unit". Fig. 9 T810, T820, T822 and T850 are examples of "second specific signal receiving unit", "second state conversion unit" and "second establishment unit" respectively. Figure 4 The T210 and T830 are referenced Figure 4 T220 are examples of a “second authentication request receiving unit” and a “second authentication response sending unit”, respectively. Fig.11 T1010 and T1050 are examples of a “third specific signal receiving unit” and a “third establishing unit”, respectively.
[0160] (Variant 1) The “first specific signal” may not be PDReq but may be GNReq, or may be another signal according to the WFD scheme.
[0161] (Variant 2) Figure 8 In S100 of the embodiment, the reception of PRReq may not be monitored. In this case, S120 to S128 may be omitted. That is, Fig. 9 Case A. Generally speaking, the "second specific signal receiving unit", "second output control unit", "second state conversion unit", "second authentication request receiving unit", "second authentication response sending unit" and "second establishing unit" can be omitted.
[0162] (Variant 3) The printer 100 may not use two different public keys PPK1a, PPK1b, but may use only one public key. Fig. 9 The public key indicated by the QR code displayed on the T822 and by Fig.10The public key indicated by the QR code displayed in T922 may be the same. Generally speaking, as in the above embodiment, the "second public key" may be different from the first public key, or as in this variation, the "second public key" may be the same as the first public key.
[0163] (Variant 4) For example, Fig.10 The QR code displayed in T922 of may not be constituted by encoding the channel list and the MAC address. That is, the QR code only needs to be a coded image that encodes at least the public key. Generally speaking, the "first specific information" only needs to be information obtained by using at least the public key, and may not be information obtained by using the first MAC address. Similarly, the "second specific information" only needs to be information obtained by using at least the public key, and may not be information obtained by using the second MAC address.
[0164] (Variant 5) Only one MAC address may be assigned to the Wi-Fi I / F 116. Fig. 9 The MAC address indicated by the QR code displayed on the T822 can be compared with the Fig.10 The MAC address indicated by the QR code displayed in T922 is the same. Generally speaking, the "wireless interface" may not be assigned a second MAC address different from the first MAC address.
[0165] (Variant 6) Figure 8 In S100 of the embodiment, the reception of the PDReq including the CM describing the letter string "Push Button" may not be monitored. In this case, S140 may be omitted. That is, Fig.11 Case C. Generally speaking, the "third specific signal receiving unit" and the "third establishing unit" can be omitted.
[0166] (Variant 7) Figure 8 S110 may not be performed. Generally speaking, in the case where the first specific signal is received from the fourth external device, the first specific information may be output.
[0167] (Variant 8) It is not necessary to execute Figure 8 That is, the "display control unit" may be omitted.
[0168] (Variant 9) The printer 100 may be Figure 7 In this case, the printer 100 is determined to be the registrant instead of T634. That is, the "operation control unit" can be omitted.
[0169] (Variant 10) Fig. 9In T810 of the present invention, the terminal 10 may send a service discovery request of the WFD scheme instead of PRReq to the printer 100. The request includes information for inquiring whether the printer 100 is capable of displaying the QR code. In this modification, the service discovery request is an example of the “second specific signal”.
[0170] (Variant 11) Fig. 9 T822 and Fig.10 In T922 of , the printer 100 may cause the print execution unit 118 to print a QR code on a print medium instead of displaying the QR code on the display unit 114. According to this variation, for example, even in a case where the display unit 114 is not provided for the printer 100, communication according to the DPP scheme may be performed to establish a Wi-Fi connection between the printer 100 and the AP 6 or the terminal 10. In this variation, the print execution unit 118 is an example of an “output unit”. In another variation, the printer 100 may be provided with a wireless interface different from the Wi-Fi I / F 116 (such as a near field communication (NFC) I / F or a Bluetooth (registered trademark) I / F). In this case, the printer 100 may be provided with a wireless interface different from the Wi-Fi I / F 116. Fig. 9 T822 and / or Fig.10 The public key, the channel list and the MAC address are sent to the terminal 10 via the different wireless interface in T922. In this variation, the different wireless interface is an example of an "output unit". In addition, in this variation, the "first specific information" may not be an "encoded image".
[0171] (Variant 12) Figure 8 In the case where PDReq or PRReq is received in S100 , the printer 100 may calculate the received radio wave strength of the signal, and may execute the processing from S110 if the calculated received radio wave strength is equal to or greater than a preset threshold.
[0172] (Variant 13) The printer 100 may display an image including a shared code, a key, a phrase, and a word obtained by encoding a public key, a channel list, and a MAC address on the display unit 114 instead of a QR code.
[0173] (Variant 14) In the case where a predetermined time has passed since the printer 100 transitioned to the DPP responder state of WFD, the printer 100 may not transition to the non-responder state. That is, the "third state transition unit" may be omitted. Furthermore, in another variant, the printer 100 may monitor the acceptance of an instruction from a user to transition to the non-responder state instead of monitoring the passage of a predetermined time. In this variant, the acceptance of an instruction from a user is an example of a "specific condition".
[0174] (Variant 15) When Fig.10 When PDReq is sent in T910 of the terminal 10, there is a possibility that the QR code may be displayed in a printer different from the printer 100. In order to solve this situation, when the QR code is captured in T924 (that is, when the public key PPK1b, etc. is obtained in T926), the terminal 10 can send a signal (such as PRReq) including a predetermined letter string (SSID "NOT DISPLAY") for stopping displaying the QR code by broadcasting. In this case, the above-mentioned different printer stops displaying the QR code upon receiving the signal. Similarly, when the QR code is captured in T924 (that is, when the public key PPK1b, etc. is obtained in T926), the terminal 10 can send a signal (such as PRReq) including a predetermined letter string (SSID "NOT DISPLAY") for stopping displaying the QR code by broadcasting. In this case, the above-mentioned different printer stops displaying the QR code upon receiving the signal. Fig. 9 When the QR code is captured in T824 of the terminal 10, the terminal 10 may send a signal including the above-mentioned predetermined letter string by broadcasting. Fig.10 When receiving AReq in T930 of the printer 100, the printer 100 may send a signal including the above-mentioned predetermined letter string by broadcasting. Fig. 9 When AReq is received in T830, the printer 100 may send a signal including the above-mentioned predetermined letter string by broadcasting.
[0175] (Variant 16) When Fig.10 When PDRes is sent to the terminal 10 in T912 of the printer 100, the printer 100 can autonomously switch to the G / O state without executing GN. Fig.11 When PDRes is sent to the terminal 20 in T1012 of the printer 100, the printer 100 can autonomously transition to the G / O state without executing the GN.
[0176] (Variant 17) The "communication device" may not be a printer but may be another device such as a scanner, a multifunction peripheral, a portable terminal, a PC, and a server.
[0177] (Variant 18) In each of the above embodiments, Figures 2 to 11 The respective processes are executed by software (ie, program 136), however, at least one of the processes may be realized by hardware such as a logic circuit.
Claims
1. A communication device, characterized in that: include: Output unit; Wireless interface; a first specific signal receiving unit, the first specific signal receiving unit being configured to receive the first specific signal from a first external device via the wireless interface; a first output control unit configured to, in a case where the first specific signal is received from the first external device, cause the output unit to output first specific information obtained by using a first public key, wherein the first public key is obtained by the first external device as a result of outputting the first specific information; a first authentication request receiving unit, the first authentication request receiving unit being configured to receive, via the wireless interface, a first authentication request using the first public key from the first external device that has obtained the first public key; a first authentication response sending unit, configured to send a first authentication response to the first external device via the wireless interface when the first authentication request is received from the first external device; and A first establishing unit is configured to establish a first wireless connection with the first external device via the wireless interface when sending the first authentication response to the first external device.
2. The communication device according to claim 1, characterized in that Further including: a second specific signal receiving unit, the second specific signal receiving unit being configured to receive a second specific signal different from the first specific signal from a second external device via the wireless interface; a second output control unit configured to, in a case where the second specific signal is received from the second external device, cause the output unit to output second specific information obtained by using a second public key, wherein the second public key is obtained by the second external device as a result of outputting the second specific information; a second authentication request receiving unit, the second authentication request receiving unit being configured to receive, via the wireless interface, a second authentication request using the second public key from the second external device that has obtained the second public key; a second authentication response sending unit, configured to send a second authentication response to the second external device via the wireless interface when the second authentication request is received from the second external device; and A second establishing unit is configured to establish a second wireless connection with an access point via the wireless interface when sending the second authentication response to the second external device.
3. The communication device according to claim 2, characterized in that in, obtaining the first specific information by using the first public key and a first MAC address assigned to the wireless interface, The first public key and the first MAC address are obtained by the first external device due to outputting the first specific information; the first authentication request including the first MAC address as a destination MAC address; obtaining the second specific information by using the second public key and a second MAC address assigned to the wireless interface, the second MAC address being different from the first MAC address, the second public key and the second MAC address are obtained by the second external device as a result of outputting the second specific information, The second authentication request includes the second MAC address as a destination MAC address.
4. The communication device according to claim 1, characterized in that Further including: a third specific signal receiving unit, the third specific signal receiving unit being used to receive a third specific signal from a third external device via the wireless interface, wherein, in the case where the third specific signal is received from the third external device, the first specific information is not output; and A third establishing unit is configured to establish a third wireless connection with the third external device via the wireless interface when the third specific signal is received from the third external device and when no authentication request is received from the third external device.
5. The communication device according to claim 4, characterized in that in, The type of the first specific signal is the same as the type of the third specific signal, The first specific signal includes first predetermined information; and The third specific signal includes second predetermined information different from the first predetermined information.
6. The communication device according to claim 1, characterized in that in, In a case where the first specific signal is received from a fourth external device via the wireless interface during a period from when the first specific information is output to when the first wireless connection is established with the first external device, the first specific information is not output.
7. The communication device according to claim 1, characterized in that in, The first specific information is a QR code obtained by encoding the first public key, and The first public key is obtained by the first external device in response to the first external device capturing the QR code.
8. The communication device according to claim 1, characterized in that in, The output unit is a display unit configured to display an image, and The first output control unit causes the output unit as the display unit to display the first specific information.
9. The communication device according to claim 8, characterized in that Further including: a display control unit configured to, when receiving the first specific signal from the first external device, cause the output unit as the display unit to display an instruction screen for instructing display of the first specific information, When the instruction screen indicates that the first specific information is to be displayed, the first output control unit causes the output unit, which is the display unit, to display the first specific information.
10. The communication device according to claim 1, characterized in that Further including: a first state conversion unit configured to convert the operation state of the communication device from a non-responder state to a first responder state when the first specific signal is received from the first external device, the non-responder state being a state in which an authentication response is not sent, and the first responder state being a state in which the first authentication response is sent in response to receiving the first authentication request, the first authentication request including a first MAC address assigned to the wireless interface as a destination MAC address, Wherein, in a case where the first authentication request is received from the first external device after the operation state of the communication device has been converted to the first responder state, the first authentication response sending unit sends the first authentication response to the first external device.
11. The communication device according to claim 10, characterized in that in, The first responder state is a state of monitoring reception of the first authentication request using a predetermined communication channel and sending the first authentication response in response to receiving the first authentication request using the predetermined communication channel, the predetermined communication channel being previously determined in the communication device, and In a case where the first authentication request using the predetermined communication channel is received from the first external device after the operation state of the communication device has transitioned to the first responder state, the first authentication response transmission unit transmits the first authentication response to the first external device.
12. The communication device according to claim 10, characterized in that Further including: A third state conversion unit is used to convert the operation state of the communication device from the first responder state to the non-responder state if a specific condition is met after the operation state of the communication device has been converted to the first responder state.
13. A communication device, characterized in that: include: Wireless interface; a first specific signal receiving unit, the first specific signal receiving unit being configured to receive a first specific signal from a first external device via the wireless interface; a first state conversion unit configured to convert the operation state of the communication device from a non-responder state to a first responder state when the first specific signal is received from the first external device, the non-responder state being a state in which an authentication response is not transmitted, and the first responder state being a state in which a first authentication response is transmitted in response to receiving a first authentication request including a first MAC address assigned to the wireless interface as a destination MAC address; a first authentication request receiving unit, configured to receive the first authentication request from the first external device via the wireless interface; a first authentication response sending unit, configured to send the first authentication response to the first external device via the wireless interface in a case where the first authentication request is received from the first external device after the operation state of the communication device has been converted to the first responder state; and A first establishing unit is configured to establish a first wireless connection with the first external device via the wireless interface when sending the first authentication response to the first external device.
14. The communication device according to claim 13, characterized in that Further including: a second specific signal receiving unit, the second specific signal receiving unit being configured to receive a second specific signal different from the first specific signal from a second external device via the wireless interface; a second state transition unit configured to transition the operation state of the communication device from the non-responder state to a second responder state in response to receiving a second authentication request including a second MAC address as a destination MAC address, the second MAC address being assigned to the wireless interface and different from the first MAC address, in a case where the second specific signal is received from the second external device; a second authentication request receiving unit, the second authentication request receiving unit being configured to receive the second authentication request from the second external device via the wireless interface; a second authentication response sending unit, configured to send the second authentication response to the second external device via the wireless interface in a case where the second authentication request is received from the second external device after the operation state of the communication device has been converted to the second responder state; and A second establishing unit is configured to establish a second wireless connection with an access point via the wireless interface when sending the second authentication response to the second external device.
15. The communication device according to claim 13, characterized in that Further including: a third specific signal receiving unit, the third specific signal receiving unit being used to receive a third specific signal from a third external device via the wireless interface, wherein, in a case where the third specific signal is received from the third external device, the operation state of the communication device is not converted to the first responder state; and A third establishing unit is configured to establish a third wireless connection with the third external device via the wireless interface when the third specific signal is received from the third external device and when no authentication request is received from the third external device.
16. The communication device according to claim 15, characterized in that in The type of the first specific signal is the same as the type of the third specific signal, The first specific signal includes first predetermined information; and The third specific signal includes second predetermined information different from the first predetermined information.
