Communication device and computer program product

By introducing an output control and authentication request receiving mechanism into communication equipment, and using encoded images and public keys for authentication, the security issue of third-party wireless connections is solved and legal and controllable connections between devices are achieved.

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

Patent Information

Application Number
CN202410767918.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-09-27
Filing Date
2020-09-25
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing technologies cannot effectively inhibit third parties from using external devices to establish wireless connections between communication devices and other devices, leading to security and privacy issues.

Method used

A communication device is designed. Through the output control unit and the authentication request receiving unit, specific information is output only when the user authentication is successful, otherwise it is not output, ensuring that only authenticated users can establish a wireless connection, and through the encoded image (such as QR code ) and public key for authentication and connection settings.

Benefits of technology

It effectively inhibits third parties from using external devices to establish wireless connections between communication devices and other devices, improves security and privacy protection, and ensures the legitimacy and controllability of the connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764859A_ABST
    Figure CN118764859A_ABST
Patent Text Reader

Abstract

A communication device may accept input of user authentication information, and cause an output unit to output specific information obtained by using a public key in a case where authentication using the input user authentication information is successful. When the authentication using the input user authentication information fails, the specific information is not output. A communication device may receive an authentication request using a public key from a first external device, transmit an authentication response to the first external device, receive first connection information from the first external device, and establish a first wireless connection between the communication device and a second external device by using the first connection information.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the following patent application:

[0002] Application number: 202011027058.7

[0003] Application date: September 25, 2020

[0004] Invention Title: Communication Device Technical Field

[0005] The disclosure herein discloses a technology of a communication device capable of establishing a wireless connection with an external device. Background Art

[0006] A technology for establishing a wireless connection between a camera and an AP using a smart phone is disclosed in Japanese Patent Application Publication No. 2017-28454. The camera displays a QR code (registered trademark) including information for performing communication parameter settings in response to receiving a user's operation, and starts monitoring the reception of a search signal. The smart phone obtains information for performing communication parameter settings 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 search signal to the smart phone. In the case of receiving a response from the camera, the smart phone sets communication parameters by using the obtained information, and sends the set communication parameters to the camera. In addition, the smart phone performs predetermined processing with the AP and sends the communication parameters to the AP. Therefore, the camera can establish a wireless connection with the AP using the received communication parameters. Summary of the invention

[0007] In the above technology, the wireless connection between the camera and the AP may be established by a third party other than the user of the camera using a smartphone.

[0008] The description herein discloses a technology configured to inhibit a third party from establishing a wireless connection between a communication device and a second external device using a first external device.

[0009] The communication device disclosed herein may include: an output unit; a wireless interface; a receiving unit configured to accept input of user authentication information for authenticating a user of the communication device; an output control unit configured to cause the output unit to output specific information obtained by using a public key if authentication using the input user authentication information is successful, the public key being obtained by a first external device in response to outputting the specific information, wherein the specific information is not output if authentication using the input user authentication information fails; and an authentication request receiving unit configured to receive an authentication request using the public key from the first external device via the wireless interface after the specific information has been output. request; an authentication response sending unit, which is configured to send an authentication response to the first external device via the wireless interface when the authentication request is received from the first external device; a connection information receiving unit, which is configured to receive first connection information from the first external device via the wireless interface after the authentication response has been sent to the first external device, the first connection information being used to establish a first wireless connection between the communication device and the second external device via the wireless interface; and an establishing unit, which is configured to establish a first wireless connection between the communication device and the second external device via the wireless interface by using the first connection information when the first connection information is received from the first external device.

[0010] According to the above configuration, in the case where the authentication using the input user authentication information is successful, the communication device outputs the specific information obtained by using the public key, and in the case where the authentication using the input user authentication information fails, the communication device does not output the specific information. As a result, each process in response to the output of the specific information is not performed. Therefore, it is possible to suppress a third party different from the user from establishing a wireless connection between the communication device and the second external device using the first external device.

[0011] The accepting unit may be configured to accept input of user authentication information when second connection information is stored in the memory, the second connection information being information for establishing a second wireless connection between the communication device and a third external device via a wireless interface, and the output control unit may be configured to: when the second connection information is stored in the memory and authentication using the user authentication information is successful, cause the output unit to output specific information, and when the second connection information is not stored in the memory, cause the output unit to output specific information without accepting input of user authentication information.

[0012] The accepting unit may be configured to accept input of user authentication information when the state of the communication device is the second state of a first state and a second state, the first state being a state in which use of the communication device is not restricted, and the second state being a state in which use of the communication device is restricted, and the output control unit may be configured to: when the state of the communication device is the second state and authentication using the user authentication information is successful, cause the output unit to output specific information, and when the state of the communication device is the first state, cause the output unit to output specific information without accepting input of user authentication information.

[0013] The specific information may be a coded image obtained by encoding the public key.

[0014] The coded image may be a QR code (registered trademark), and the public key may be obtained by the first external device by capturing the QR code by the first external device.

[0015] The output unit may be a display unit for displaying an image, and the output control unit is configured to cause the output unit as the display unit to display specific information.

[0016] The communication device may also include: a first conversion unit, which is configured to convert the state of the communication device from a non-responder state to a responder state when authentication using the input user authentication information is successful, wherein, in the case where authentication using the input user authentication information fails, the state of the communication device is maintained in the non-responder state, the non-responder state is a state in which no authentication response is sent, and the responder state is a state in which an authentication response is sent to the first external device in response to receiving an authentication request from the first external device, wherein, in the case where an authentication request is received from the first external device after the state of the communication device has been converted to the responder state, the authentication response sending unit is configured to send an authentication response to the first external device via the wireless interface.

[0017] The specific information may be information obtained by using a public key and communication channel information indicating a first communication channel predetermined in the communication device, the communication channel information may be obtained by the first external device by outputting the specific information, the responder state may include monitoring an authentication request received from the first external device using the first communication channel, and the authentication response sending unit is configured to send an authentication response to the first external device via the wireless interface when an authentication request is received from the first external device using the first communication channel after the state of the communication device has been converted to the responder state.

[0018] The establishing unit may be configured to establish the first wireless connection between the communication device and the second external device via the wireless interface by using a second communication channel different from the first communication channel.

[0019] The communication device may further include a second conversion unit configured to convert the state of the communication device from the responder state to the non-responder state if a specific condition is satisfied after the state of the communication device has been converted to the responder state.

[0020] The communication device may further include: a specific signal receiving unit configured to receive a specific signal from the first external device; and a notification unit configured to notify the user that input of user authentication information can be accepted when the specific signal is received from the first external device.

[0021] The notification unit may be configured to cause a display unit of the communication device to display a notification screen for notifying the user that input of the user authentication information is acceptable.

[0022] The second external device may be a parent device to operate as a parent of the wireless network, the second external device is different from the first external device, and the establishing unit is configured to cause the communication unit to participate in the wireless network by establishing the first wireless connection.

[0023] The first connection information may include authentication information for authenticating reception information received from the second external device.

[0024] The communication device may further include: an operation control unit configured to cause the communication device to operate as a registrant according to the Wi-Fi scheme after having sent the authentication response to the first external device, wherein the first external device may operate as a configurator according to the Wi-Fi scheme.

[0025] In addition, the communication device may include: an output unit; a wireless interface; a receiving unit, the receiving unit being configured to receive input of user authentication information for authenticating a user of the communication device; a first conversion unit, the first conversion unit being configured to convert the state of the communication device from a non-responder state to a responder state in a case where authentication using the input user authentication information is successful, wherein in a case where authentication using the input user authentication information fails, the state of the communication device is maintained in a non-responder state, the non-responder state being a state in which an authentication response in response to an authentication request is not sent, and the responder state being a state in which an authentication response is sent to the first external device in response to receiving an authentication request from the first external device; an authentication request receiving unit, the authentication request receiving unit being configured to receive an authentication request from the first external device via the wireless interface. The communication device receives an authentication request from the first external device; an authentication response sending unit, which is configured to send an authentication response to the first external device via the wireless interface when the authentication request is received from the first external device after the state of the communication device has been converted to the responder state; a connection information receiving unit, which is configured to receive first connection information from the first external device via the wireless interface after the authentication response has been sent to the first external device, the first connection information being used to establish a first wireless connection between the communication device and the second external device via the wireless interface; and an establishing unit, which is configured to establish a first wireless connection between the communication device and the second external device via the wireless interface by using the first connection information when the first connection information is received from the first external device.

[0026] According to the above configuration, in the case where the authentication using the input user authentication information is successful, the communication device converts the state of the communication device to the responder state, and in the case where the authentication using the input user authentication information fails, it maintains the state of the communication device in the non-responder state. As a result, in the case of authentication failure, an authentication response in response to the authentication request from the first external device is not sent, whereby a wireless connection is not established between the communication device and the second external device. Therefore, it is possible to suppress a third party different from the user from establishing a wireless connection between the communication device and the second external device using the first external device.

[0027] The receiving unit may be configured to accept input of user authentication information when second connection information is stored in a memory of the communication device, the second connection information being information for establishing a second wireless connection between the communication device and a third external device via a wireless interface, and the first conversion unit may be configured to convert the state of the communication device from a non-responder state to a responder state when the second connection information is stored in the memory and authentication using the user authentication information is successful, wherein the communication device may further include: an operation control unit configured to operate in the responder state without accepting input of user authentication information when the second connection information is not stored in the memory.

[0028] The receiving unit may be configured to accept input of user authentication information when the state of the communication device is the second state of a first state and a second state, the first state being a state in which use of the communication device is not restricted, and the second state being a state in which use of the communication device is restricted, the first conversion unit may be configured to convert the state of the communication device from a non-responder state to a responder state when the state of the communication device is the second state and authentication using the user authentication information is successful, and wherein the communication device may further include: an operation control unit configured to operate in the responder state without accepting input of user authentication information when the state of the communication device is the first state.

[0029] The responder state may include monitoring an authentication request received from a first external device using a first communication channel predetermined in the communication device, and the authentication response sending unit may be configured to send an authentication response to the first external device via a wireless interface when an authentication request using the first communication channel is received from the first external device after the state of the communication device has been transitioned to a non-responder state.

[0030] The method implemented by the above communication device, the computer program and the non-transitory computer-readable medium storing the computer program are also novel and useful. A communication system including the above communication device and other devices (eg, a first external device, a second external device) is also novel and useful. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 shows the configuration of the communication system;

[0032] Figure 2 An explanatory diagram for explaining an overview of the embodiment is shown;

[0033] Figure 3 A sequence diagram showing an overview of bootstrapping;

[0034] Figure 4 A sequence diagram showing the authentication process;

[0035] Figure 5 A sequence diagram showing a configuration process;

[0036] Figure 6 A sequence diagram showing a network access process;

[0037] Figure 7 shows the details of the bootstrap; and

[0038] Figure 8 A sequence diagram is shown for a case where the QR code is not captured. DETAILED DESCRIPTION

[0039] (Configuration of communication system 2; Figure 1 )

[0040] like Figure 1 As shown, the communication system 2 includes two access points (APs) 6 and 7, a terminal 10 and a printer 100. In this embodiment, it is assumed that a user uses the terminal 10 to establish a wireless connection (hereinafter referred to as "Wi-Fi connection") between the printer 100 and the AP 6 according to the Wi-Fi scheme.

[0041] (Configuration of Terminal 10)

[0042] The terminal 10 is a portable terminal device such as a mobile phone (e.g., a smart phone), a PDA, and a tablet PC. In a variant, the terminal 10 may be a desktop PC, a laptop PC, etc. The terminal 10 includes a camera 15 and a Wi-Fi interface 16. Hereinafter, the interface will be referred to as "I / F". The camera 15 is a device for capturing images of an object, and in the present embodiment, the camera 15 is particularly used to capture the QR code of the AP 6, 7, and the printer 100. In addition, the terminal 10 stores a connection application 40 (hereinafter referred to as "application 40"). The application 40 is a program for establishing a Wi-Fi connection between the printer 100 and an AP (e.g., AP 6), and is installed in the terminal 10, for example, from a server on the Internet provided by a supplier of the printer 100.

[0043] The Wi-Fi I / F 16 is a wireless interface configured to perform Wi-Fi communication according to the Wi-Fi scheme. The Wi-Fi scheme is a wireless communication scheme for performing wireless communication according to the standard 802.11 of the IEEE (Institute of Electrical and Electronics Engineers) and standards conforming thereto (e.g., 802.11a, 11b, 11g, 11n, 11ac, etc.). The Wi-Fi I / F 16 particularly supports the Device Configuration Protocol (DPP) scheme to be established by the Wi-Fi Alliance. The DPP scheme is described in the standard “Device Configuration Protocol Technical 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., between the printer 100 and the AP 6) by using the terminal 10.

[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 units 112 to 130 are connected to a bus (reference numerals omitted).

[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 for displaying various types of information. The Wi-Fi I / F 116 is the same as the Wi-Fi I / F 16 of the terminal 10. That is, the Wi-Fi I / F 116 supports the DPP scheme. In addition, the Wi-Fi I / F 116 has a MAC address "abc". The print execution unit 118 includes a printing mechanism of an inkjet scheme, a laser scheme, etc.

[0047] The controller 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes according to a program 136 stored in the memory 134. The memory 134 is composed of a volatile memory, a nonvolatile memory, or the like.

[0048] (Overview of this embodiment; Figure 2 )

[0049] Next, we will refer to Figure 2An overview of the present embodiment is described. It has been mentioned above that the terminal 10 and the printer 100 support the DPP scheme, and the AP 6 also supports the DPP scheme. In addition, in the present embodiment, the establishment of a Wi-Fi connection between the printer 100 and the AP 6 is achieved by each of the devices 6, 10, 100 that communicate according to the DPP scheme. In the following, for ease of understanding, the operations performed by the CPUs of the respective devices (e.g., the CPU 32) will be described with their corresponding devices (e.g., the printer 100) as the object of the action, rather than describing the operations with their corresponding CPUs as the object of the action.

[0050] In T5, the terminal 10 performs bootstrapping (hereinafter referred to as "BS") with the AP 6 according to the DPP scheme. The BS is a process in which, in response to the QR code attached to the AP 6 being captured by the terminal 10, the AP 6 provides the terminal 10 with information used in authentication (hereinafter referred to as "Auth") of T10 to be described later.

[0051] 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.

[0052] In T15, the terminal 10 and the AP 6 perform configuration (hereinafter referred to as "Config") 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 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. As a result, the first CO is stored in the AP 6.

[0053] 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 described later from the printer 100 to the terminal 10 in response to the QR code displayed on the printer 100 being captured by the terminal 10 .

[0054] In T25, the terminal 10 uses the information obtained in the BS of T20 to perform Auth according to the DPP scheme with the printer 100. This Auth is a process in which the terminal 10 and the printer 100 authenticate their communication counterparts.

[0055] 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. As a result, the second CO is stored in the printer 100.

[0056] In T35 , the printer 100 and the AP 6 use the stored first and second COs to perform network access (hereinafter referred to as “NA”) according to the DPP scheme. NA is a process of sharing a connection key for establishing a Wi-Fi connection between the printer 100 and the AP 6 .

[0057] In T40, the printer 100 and the AP 6 perform a 4-way handshake communication. In at least a portion of the processing in the 4-way handshake communication, the printer 100 and the AP 6 communicate encrypted information encrypted using the connection key shared in the NA of T35. Then, 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 participates in the wireless network formed by the AP 6 as a slave station, as a result of which it is possible to communicate with other devices participating in the wireless network via the AP 6. In a variation, the printer 100 and the AP 6 may perform Simultaneous Authentication of Equals (SAE, so-called "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), a password, etc.) 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] (Description of each treatment; Figures 3 to 8 )

[0060] Next, we will refer to Figures 3 to 8 Described in Figure 2 Since the processing of T5 to T15 is similar to the processing of T20 to T30 except that the AP 6 is used instead of the printer 100, its detailed description will be omitted. In addition, regarding the BS, its overview will be described in Figure 3 The details will be shown in Figure 7 In addition, Figure 8 A case where BS is performed between the terminal 10 and the printer 100 is also shown. Figure 3 , 7and 8 are processes performed in one embodiment.

[0061] (Overview of Bootstrapping (BS); Figure 3 )

[0062] First, refer to Figure 3 describe Figure 2 An overview of the processing of the BS in T20. Figure 3 In the initial state of the printer 100, the memory 134 of the printer 100 prestores the public key PPK1 and the private key psk1 of the printer 100. Furthermore, when the power of the printer 100 is turned on, the printer 100 starts the operation of the non-responder state described later.

[0063] In T100, the terminal 10 activates the application 40 in response to receiving an activation operation of the application 40 from the user, and further activates the camera 15. Various processes executed by the terminal 10 thereafter are implemented by the application 40. Since the application 40 is activated, the communication described later is implemented between the terminal 10 and the printer 100. Figure 7 Processing of T102 to T112.

[0064] When the process of T112 is completed, in T122, the printer 100 transitions from the non-responder state to the responder state. The non-responder state is a state in which the Wi-Fi I / F 116 does not send a DPP authentication response (hereinafter referred to as "ARes") (see T200 described later) even if a DPP authentication request (hereinafter referred to as "AReq") is received from the terminal 10 (see T200 described later). Figure 4 That is, the non-responder state is a state in which ARes as a response to AReq is not sent. The responder state is a state in which the Wi-Fi I / F 116 sends ARes to the terminal 10 in response to receiving AReq from the terminal 10. That is, the printer 100 enters a state capable of performing Auth (see Figure 2Specifically, in the present embodiment, the non-responder state is a state in which the Wi-Fi I / F 116 does not provide the signal to the CPU 132 even if a signal is received from an external device. In addition, the responder state is a state in which the Wi-Fi I / F 116 provides the signal to the CPU 132 in response to receiving the signal from the external device, and sends a response to the signal. Since the responder state is a state in which the CPU 132 processes the signal received from the external device, the processing load of the responder state is higher than that of the non-responder state. In a variation, the non-responder state may be a state in which power is not supplied to the Wi-Fi I / F 116, and the responder state may be a state in which power is supplied to the Wi-Fi I / F 116. In addition, in another variation, the non-responder state may be a state in which the Wi-Fi I / F 116 receives an AReq from an external device but does not provide a notification indicating that the AReq has been received to the CPU 132, and the responder state may be a state in which the Wi-Fi I / F 116 provides a notification indicating that the AReq has been received to the CPU 132 in response to receiving the AReq from the external device.

[0065] Next, in T124, the printer 100 causes the display unit 114 to display a QR code. The QR code is a coded image obtained by encoding the public key PPK1 pre-stored in the memory 134, the channel list pre-stored in the memory 134, and the MAC address "abc" of the Wi-Fi I / F 116. The channel list is to be displayed in the Auth (see Figure 2 The QR code may be created by the printer 100 when executing the process of T124, or may be pre-stored in the memory 134 when the printer 100 is shipped.

[0066] In T132, the terminal 10 captures an image of the QR code displayed on the printer 100 using the camera 15. Then, in T134, the terminal 10 decodes the captured QR code and obtains the public key PPK1, the channel list, and the MAC address "abc".

[0067] (Authentication(Auth); Figure 4 )

[0068] Next, we will refer to Figure 4 describe Figure 2 T25 Auth processing. In response to Figure 3The terminal 10 obtains the public key PPK1 and the like in T134, and creates the public key TPK1 and the private key tsk1 of the terminal 10 in T141. Then, in T142, the terminal 10 creates the shared key SK1 according to the elliptic curve Diffie-Hellman key exchange (ECDH) by using the created private key tsk1 and the obtained public key PPK1. Thereafter, in T144, the terminal 10 encrypts the random value RV1 by using the created shared key SK1 to create the encrypted data ED1.

[0069] In T200, the terminal 10 uses the Wi-Fi I / F 16 to Figure 3 The terminal 10 sends AReq to the printer 100 with the MAC address "abc" obtained in T134 as the destination. AReq is a signal requesting the printer 100 to perform authentication. Here, the terminal 10 sequentially uses a plurality of connection channels in the channel list obtained in T134 and repeatedly sends AReq to the printer 100. Each AReq includes the public key TPK1 of the terminal 10 created in T141, the encrypted data ED1 created in T144, and the capability of the terminal 10.

[0070] Capability is information pre-specified in a device supporting the DPP scheme, and includes one 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 both a configurator and a registrant. A configurator is a device that is configured to Figure 2 T30) will be in NA ( Figure 2 On the other hand, the registrant refers to a device that receives a CO to be used in NA from the configurator in Config. As described above, in this embodiment, the terminal 10 creates the first or 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.

[0071] In T200, the printer 100 receives the AReq from the terminal 10 via the Wi-Fi I / F 116. As described above, the AReq is sent with the MAC address "abc" of the printer 100 as the destination. Therefore, the printer 100 can receive the AReq from the terminal 10 appropriately.

[0072] In addition, when the printer 100 is Figure 3When the printer 100 switches to the responder state in T124 of the printer 100, it monitors the reception of AReq, in which a communication channel among the plurality of communication channels included in the list is used. As described above, the AReq of T200 is transmitted by sequentially using the plurality of communication channels in the channel list. In this way, the printer 100 can properly receive the AReq from the terminal 10.

[0073] Next, the printer 100 performs the following processing to authenticate the sender of AReq (i.e., the terminal 10). Specifically, in T202, 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 private key psk1 of the printer 100 pre-stored in the memory 134. Here, the shared key SK1 created by the terminal 10 in T142 is the same as the shared key SK1 created by the AP 6 in T204. Therefore, in T204, the printer 100 can appropriately decrypt the encrypted data ED1 in AReq by using the created shared key SK1, and as a result, the printer 100 can obtain the random value RV1. In the case where the decryption of the encrypted data ED1 is successful, the printer 100 determines that the sender of AReq is a device that captures the QR code displayed on the printer 100, that is, determines that the authentication is successful, and performs the processing starting from T206. On the other hand, when decryption of the encrypted data ED1 is unsuccessful, the printer 100 determines that the sender of AReq is not a device that captures the QR code displayed on the printer 100, ie, determines that authentication has failed, and does not execute the processing from T206.

[0074] In T206, the printer 100 creates a new public key PPK2 and a new private key psk2 of the printer 100. In a variation, the public key PPK2 and the private key psk2 are pre-stored in the memory 134. Next, in T207, the printer 100 creates a shared key SK2 according to ECDH by using the public key TPK1 of the terminal 10 in the AReq of T200 and the created private key psk2 of the printer 100. Then, in T208, the printer 100 encrypts the obtained random value RV1 and the new random value RV2 by using the created shared key SK2 to create encrypted data ED2.

[0075] In T210, the printer 100 sends ARes to the terminal 10 via the Wi-Fi I / F 116. The ARes includes the public key PPK2 of the printer 100 created in T206, the encrypted data ED2 created in T208, and the capabilities of the printer 100. The capabilities include a value indicating that the printer 100 can operate only as a registrant.

[0076] In T210, the terminal 10 performs the following processing for authenticating the sender of the ARes (i.e., the printer 100) in response to receiving the ARes from the printer 100 via the Wi-Fi I / F 16. Specifically, in T212, the terminal 10 creates a shared key SK2 according to ECDH by using the private key tsk1 of the terminal 10 created in T141 and the public key PPK2 of the printer 100 in the ARes. Here, the shared key SK2 created by the printer 100 in T207 is the same as the shared key SK2 created by the terminal 10 in T212. Therefore, in T214, the terminal 10 can appropriately decrypt the encrypted data ED2 in the ARes by using the created shared key SK2, and as a result, the terminal 10 can obtain random values ​​RV1 and RV2. In the case where the decryption of the encrypted data ED2 is successful, the terminal 10 determines that the sender of the ARes is the device that displays the captured QR code, that is, determines that the authentication is successful, and performs the processing starting from T220. 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 the processing from T220.

[0077] In T220, the terminal 10 sends Confirm to the printer 100 via the Wi-Fi I / F 16. 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 T222, and the printer 100 determines to operate as a registrant in T224. When the processing of T224 is completed, Figure 4 The processing is terminated.

[0078] (Config; Figure 5 )

[0079] 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 via the Wi-Fi I / F 116 . The CReq is a signal requesting transmission of a CO (ie, information for establishing a Wi-Fi connection between the printer 100 and the AP 6 ).

[0080] In T300, the terminal 10 receives CReq from the printer 100 via the Wi-Fi I / F 16. In this case, the terminal 10 obtains the group ID "Group1", the public key TPK2 and the private key tsk2 from the memory (not shown) of the terminal 10 in T301. As described above, the terminal 10 has performed a Figure 2 Config of T15 of the terminal 100, and in doing so, it creates a group ID "Group1", a public key TPK2 and a private key tsk2, and stores them in the memory. The group ID "Group1" is information that identifies a wireless network formed by establishing a Wi-Fi connection between the printer 100 and the AP 6. In a variation, an alphabetic string specified by the user may be used as the group ID. That is, in T301, the terminal 10 obtains the group ID stored in Figure 2 Then, in T302, the terminal 10 creates a second CO (see Figure 2 Specifically, the terminal 10 performs the following processing.

[0081] 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 4 The combination of the public key PPK2 of the printer 100 in the ARes of T210 is hashed to create a specific value. Then, the terminal 10 creates a digital signature DS1 by encrypting the created specific value according to the elliptic curve digital signature algorithm (ECDSA) using the private key tsk2 of the terminal 10. As a result, the terminal 10 can create a signature-connector for the printer (hereinafter, the signature-connector is referred to as "SCont"), including the hash value HV, the group ID "Group1", the public key PPK2 of the printer 100 and the digital signature DS1. Then, the terminal 10 creates a second CO, including the SCont for the printer and the public key TPK2 of the terminal 10.

[0082] In T310 , the terminal 10 transmits a DPP configuration response (hereinafter referred to as “CRes”) including the second CO to the printer 100 via the Wi-Fi I / F 16 .

[0083] In T310, the printer 100 receives CRes from the terminal 10 via the Wi-Fi I / F 116. In this case, in T312, the printer 100 stores the second CO in the CRes in its memory 134. When the processing of T312 is completed, Figure 5 The processing is terminated.

[0084] (Network Access (NA); Figure 6 )

[0085] Next, we will refer to Figure 6 Described in Figure 2 The NA process is performed between the printer 100 and the AP 6 in T35. Figure 2T20 to T30 have been executed between terminal 10 and AP 6. Figure 2 However, AP 6 does not perform Figure 7 The AP 6 stores the public key APK1 and the private 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 body of the AP 6. By capturing an image of the QR code by the terminal 10, 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 private key ask2 of the AP 6 (see Figure 4 T206), and further stores the first CO received from the terminal 10 (see Figure 5 T312 of). The first CO includes SCont for AP and the 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, SCont 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" as described above are 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 private 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.

[0086] In T400, the printer 100 transmits a DPP peer discovery request (hereinafter referred to as "DReq") including SCont for the printer to the AP 6 via the Wi-Fi I / F 116. The DReq is a signal requesting the AP 6 to perform authentication and transmit SCont for the AP.

[0087] In response to receiving DReq from the printer 100 in T400, the AP 6 performs processing for authenticating the sender of DReq (i.e., the printer 100) and the various information in 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 process related to whether the hash value HV1 and the group ID "Group1" in the received SCont for the printer match the hash value HV1 and the group ID "Group1" in the SCont for the AP included in the stored first CO, respectively. Figure 6In this case, AP 6 determines "match" in the first AP determination process, and therefore determines that the authentication of the sender of DReq (i.e., printer 100) is successful. The hash value HV in the received SCont for the printer and the hash value HV in the SCont for AP included in the stored first CO match, which means that the SCont for the printer and the SCont for 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 SCont for the printer (i.e., terminal 10) is successful. In addition, AP 6 decrypts the digital signature DS1 in the received SCont for the printer using the public key TPK2 of the terminal 10 included in the stored first CO. Figure 6 In the case of , the decryption of the digital signature DS1 is successfully completed, so the AP 6 performs the second AP determination processing related to whether the specific value obtained by decrypting the digital signature DS1 matches the value obtained by hashing the respective information in the SCont for the printer (i.e., the hash value HV, "Group1" and the public key PPK2). Figure 6 In the case of "match", AP 6 determines "match" in the second AP determination process, and thus determines that the authentication of each information in DReq is successful, and executes the process from T404. Determination of "match" in the second AP determination process means that each information in the received SCont for the printer (i.e., hash value HV, "Group1", and public key PPK2) has not been tampered with by a third party after the second CO is stored in the printer 100. On the other hand, in any of the cases of determination of "mismatch" in the first AP determination process, failure in decryption of the digital signature DS1, and determination of "mismatch" in the second AP determination process, AP 6 determines that the authentication has failed, and does not execute the process from T404.

[0088] Next, in T404, the AP 6 creates a connection key (ie, a shared key) CK according to ECDH using the obtained public key PPK2 of the printer 100 and the private key ask2 of the AP 6.

[0089] In T410 , the AP 6 sends a DPP peer discovery response (hereinafter referred to as “DRes”) including SCont for the AP to the printer 100 .

[0090] In response to receiving DRes from AP 6 via Wi-Fi I / F 116 in T410, the printer 100 performs processing for authenticating the sender of DR (i.e., AP 6) and the various information in DRes (i.e., hash value HV, "Group1" and public key APK2). Specifically, the printer 100 first performs a first PR determination process in T412 regarding whether the hash value HV and group ID "Group1" in the received SCont for AP match the hash value HV and group ID "Group1" in the SCont for the printer included in the stored second CO, respectively. Figure 6 In this case, since the printer 100 determines "match" in the first PR determination process, it determines that the authentication of the sender of DRes (i.e., AP 6) is successful. The hash value HV in the received SCont for AP and the hash value HV in the SCont for the printer included in the stored second CO match, which means that the SCont for the printer and the SCont 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 SCont for AP (i.e., terminal 10) is successful. In addition, the printer 100 decrypts the digital signature DS2 in the received SCont for AP using the public key TPK2 of the terminal 10 included in the stored second CO. Figure 6 In the case of , 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 matches the value obtained by hashing the respective information in SCont for AP (i.e., the hash value HV, "Group1" and the public key APK2). Figure 6 In the case where "match" is determined in the second PR determination process, the printer 100 determines that the authentication of each information in DRes is successful, and executes the process from T414. Determination of "match" in the second PR determination process means that each information in SCont for AP (i.e., hash value HV, "Group1", and public key APK2) has not been tampered with by a third party after the first CO was stored in AP 6. On the other hand, in any of the cases where "mismatch" is determined in the first PR determination process, decryption of the digital signature DS2 fails, and "mismatch" is determined in the second PR determination process, the printer 100 determines that the authentication has failed, and does not execute the process from T414.

[0091] In T414, the printer 100 creates a connection key CK according to ECDH using the stored private key psk2 of the printer 100 and the public key APK2 of the AP 6 in the received SCont for 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 the same. Therefore, the connection key CK for establishing a Wi-Fi connection is shared between the printer 100 and the AP 6. When T414 is completed, Figure 6 The processing is terminated.

[0092] As described above, after the connection key CK is shared between the printer 100 and the AP 6, the printer 100 and the AP 6 use the connection key CK to communicate with each other. Figure 2 4-way handshake communication is performed in T40 of the printer 100. 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 using one of the plurality of communication channels included in the channel list of the printer 100. Figure 4 That is, the printer 100 uses a communication channel that can be used by both the printer 100 and the terminal 10 to receive the AReq in T200 from the terminal 10. Figure 2 In T40 of FIG. 1 , the printer 100 establishes a Wi-Fi connection with the AP 6 using a communication channel that can be used by both the printer 100 and the AP 6. Here, the communication channel that can be used by the terminal 10 and the communication channel that can be used by the AP 6 may be different from each other. Figure 4 The communication channel in T200 used for the printer 100 to receive AReq from the terminal 10 and Figure 2 The communication channels used by the printer 100 to establish a Wi-Fi connection with the AP 6 in the T40 are different. However, in a variation, the communication channel of the former and the communication channel of the latter may be the same.

[0093] (Details of Bootstrapping (BS); Figure 7 )

[0094] Next, we will refer to Figure 7 describe Figure 3 In particular, the processing of T102 to T112 will be described.

[0095] When the application 40 is activated in T100, the terminal 10 broadcasts PReq via the Wi-Fi I / F 16 in T102. The PReq includes the SSID "DISPLAY" predetermined in the application 40. The letter string of the SSID in PReq is not limited to "DISPLAY" and may be any letter string that the printer 100 can understand.

[0096] When receiving the PReq from the terminal 10 via the Wi-Fi I / F 116 in T102, the printer 100 obtains the SSID "DISPLAY" from the Wi-Fi I / F 116. In this case, since the SSID included in the received PReq includes the predetermined letter string "DISPLAY", the printer 100 performs the processing starting from T104. If the SSID does not include the predetermined letter string "DISPLAY", the printer 100 skips the processing starting from T104 and terminates. Figure 7 processing.

[0097] At T104, the printer 100 determines whether the second CO is stored in the memory 134. As described above, after executing the Config process with the terminal 10 and performing NA with the AP using the second CO (see Figure 6 ), the printer 100 stores the second CO in the memory 134 (see Figure 5 That is, the second CO is stored in the memory 134 means that NA has been performed between the printer 100 and an AP (such as AP 7 which is different from AP 6), and a Wi-Fi connection has been established between the printer 100 and the AP. In the case where it is determined that the second CO is stored in the memory 134, that is, in the case where it is determined that a Wi-Fi connection has been established between the printer 100 and the AP (T104 Yes), the printer 100 proceeds to T108. On the other hand, in the case where it is determined that the second CO is not stored in the memory 134, that is, in the case where it is determined that a Wi-Fi connection has not been established between the printer 100 and any AP (T104 No), the printer 100 proceeds to T106.

[0098] In T106, the printer 100 determines whether the state of the printer 100 is a default state. The default state is a state in which a default password is stored in the memory 134 as a password for authenticating a user. The default password is pre-stored in the memory 134 when the printer 100 is shipped from the factory, and is described, for example, in the manual of the printer 100. The default password is used to log in to the printer 100. Specifically, the printer 100 operates as a server on a wired local area network (LAN). In the case of receiving a login request from a terminal (e.g., 10) via the wired LAN, the printer 100 causes a password input screen to be displayed on the terminal. In the case where the password input to the password input screen matches the default password, the login of the terminal to the printer 100 is completed. In the logged-in state, the terminal can access the printer 100 and display a change screen for changing a setting value (e.g., a default password, a value related to a network setting, etc.) in the printer 100. For example, in the case of inputting a new password on the change screen, the terminal sends the new password to the printer 100. Therefore, the printer 100 stores the new password in the memory 134 in place of the default password. In a state where the new password is stored in the memory 134 , only a user who knows the new password can change the setting values ​​of the printer 100 .

[0099] In the case where it is determined that the state of the printer 100 is the default state (T106: Yes), the printer 100 skips the processing of T108 to T112 described later, and performs the processing of T122. On the other hand, in the case where it is determined that the state of the printer 100 is not the default state, that is, in the state with the new password stored in the memory 134 (T106: No), the printer 100 proceeds to T108.

[0100] At T108 , the printer 100 causes the display unit 114 to display a notification screen notifying the user that password input is acceptable.

[0101] At T110 , the printer 100 accepts a password input through a plurality of keys in the operation unit 112 being operated by the user.

[0102] In T112, the printer 100 performs authentication using the password input in T110. In the case where the input password matches the password in the memory 134 (T112 Yes), the printer 100 determines that the authentication is successful, and proceeds to T122. Therefore, as described above, the state of the printer 100 transitions to the responder state (T122), the QR code is displayed (T124), and BS with the terminal 10 is performed. On the other hand, in the case where the input password does not match the password in the memory 134, the printer 100 determines that the authentication has failed (T112 No), skips the processing from T122, and terminates. Figure 7 That is, the BS with the terminal 10 is not performed.

[0103] According to this configuration, in the case where the authentication using the input password succeeds (T112 Yes), the printer 100 displays the QR code obtained by encoding the public key PPK1 (T124). On the other hand, in the case where the authentication using the input password fails (T112 No), the printer 100 does not display the QR code. As a result, the processing from the BS is not performed. Therefore, it is possible to suppress a third party other than the user of the printer 100 (i.e., a user who does not know the password) from using the terminal 10 to establish a Wi-Fi connection between the printer 100 and the AP 6.

[0104] Furthermore, according to this configuration, in the case where the authentication using the input password is successful (T112 Yes), the printer 100 converts the state of the printer 100 to the responder state (T122). On the other hand, in the case where the authentication using the input password fails (T112 No), the printer 100 maintains the state of the printer 100 in the non-responder state. That is, in the case where the password authentication fails, ARes in response to AReq is not sent from the terminal 10, and the processing of Auth cannot be completed. As a result, a Wi-Fi connection is not established between the printer 100 and the AP 6. Therefore, it is possible to suppress a third party other than the user of the printer 100 (i.e., a user who does not know the password) from using the terminal 10 to establish a Wi-Fi connection between the printer 100 and the AP 6.

[0105] Furthermore, in the case where the second CO is stored in the memory 134 and the authentication using the input password is successful (T104 is yes and T112 is yes), the printer 100 transitions to the responder state and displays the QR code (T122, T124). That is, in the case where a Wi-Fi connection has been established between the printer 100 and an AP (particularly another AP), the user must enter a password to transition to the responder state and display the QR code. Therefore, for example, in the case where a Wi-Fi connection has been established between the printer 100 and the AP 7, the Wi-Fi connection established without permission with another AP 6 can be suppressed.

[0106] In addition, in the case where the state of the printer 100 is not the default state and the authentication using the input password is successful (T106 is yes and T112 is yes), the printer 100 transitions to the responder state and displays the QR code (T122, T124). The new password is stored in the memory 134, which means that the use of the printer 100 is limited to the user who has entered the new password. In the case where the use of the printer 100 is restricted, the Wi-Fi connection established without permission with the AP (e.g., AP 6) can be suppressed.

[0107] In addition, in the case where the second CO is not stored in the memory 134 and the state of the printer 100 is the default state (T104 No and T106 No), the printer 100 switches to the responder state and displays the QR code (T122, T124) without accepting the input of the password. This situation means that the printer 100 has not established a Wi-Fi connection with any AP and the default password is stored in the memory 134. That is, the printer 100 is likely to still be in the state at the time of shipment. In this case, the convenience of the user can be improved by canceling the password input.

[0108] In addition, upon receiving the PReq ( Figure 7 In the case of the error message (T102), the printer 100 displays a notification screen (T108). According to such a configuration, the user can confirm that a password should be input simply by activating the application 40 in the terminal 10 without operating the printer 100.

[0109] (If the QR code is not captured: Figure 8 )

[0110] Next, we will refer to Figure 8 The processing in another case of the BS is described. In the current case, it is assumed that the terminal 10 does not capture the QR code displayed on the printer 100. In addition, the current case is Figure 6 That is, the second CO is stored in the memory 134 of the printer 100.

[0111] T500 and T502 are similar to Figure 7 At T504, the printer 100 determines that the second CO is stored in the memory 134 ( Figure 7 T104 is). T508 and T510 are similar to Figure 7 In T512, the printer 100 determines that the authentication of the password input in T510 is successful (T112 is yes). T522 and T524 are similar to Figure 7 In the current case, the QR code displayed on the printer 100 is not captured by the terminal 10, so AReq (see Figure 4In this case, the printer 100 determines in T526 that it has not received the AReq within a predetermined period of time since it has switched to the responder state in T522, and switches from the responder state to the non-responder state in T528. Therefore, it is possible to suppress the responder state from being maintained in the printer 100 for a long time. That is, it is possible to suppress the maintenance of the state in which the Wi-Fi I / F 116 provides the signal received from the external device to the CPU 132, that is, the state in which the CPU 132 processes the signal received from the external device. Therefore, the processing load of the printer 100 can be reduced. Then, in T530, the printer 100 causes the display unit 114 to display an error screen indicating that the AReq from the terminal 10 has not been received. When the processing of T530 is completed, Figure 8 The processing is terminated.

[0112] (Corresponding relationship)

[0113] The printer 100, the terminal 10, and the AP 6 are examples of a "communication device," a "first external device," and a "second external device," respectively. The display unit 114 and the Wi-Fi I / F 116 are examples of an "output unit" and a "wireless interface," respectively. The password is an example of "user authentication information." The public key PPK1 of the printer 100 and the QR code are examples of a "public key" and "specific information," respectively. AReq, ARes, and Figure 5 The second CO in T310 are examples of “authentication request”, “authentication response” and “first connection information” respectively. Figure 2 The Wi-Fi connection established in the T40 is an example of a "first wireless connection".

[0114] AP 7, the second CO stored in the memory 134 in the Config of AP 7, and the Wi-Fi connection with AP 7 are examples of the “third external device”, “second connection information”, and “second wireless connection”, respectively. The default state and the state in which the new password is stored in the memory 134 are examples of the “first state” and the “second state”, respectively. Channel list, in Figure 4 The communication channels used in the T200 and Figure 2 The communication channels used in T40 are examples of "communication channel information", "first communication channel" and "second communication channel" respectively. Figure 8 The predetermined time that has passed in T526 is an example of a “specific condition”.

[0115] Figure 7 T110 and T124, Figure 4 The T200 and T210, Figure 5 T310 and Figure 2T40 are examples of the “accepting unit”, “output control unit”, “authentication request receiving unit”, “authentication response sending unit”, “connection information receiving unit” and “establishing unit” respectively.

[0116] Figure 7 T110 and T122, Figure 4 The T200 and T210, Figure 5 T310 and Figure 2 T40 are examples of an “accepting unit”, a “first converting unit”, an “authentication request receiving unit”, an “authentication response sending unit”, a “connection information receiving unit” and an “establishing unit” respectively.

[0117] (Variant 1) For example, it is possible not to configure the channel list and the MAC address "abc" by encoding Figure 7 The QR code displayed on the printer 100 in T124 of FIG. That is, the QR code may be simply a coded image obtained by encoding at least the public key PPK1. In this case, in response to the transition from the non-responder state to the responder state in T122, the printer 100 monitors the reception of AReq using one of all the wireless channels that the printer 100 can use. In addition, the terminal 10 sequentially uses all the wireless channels that the terminal 10 can use to receive the AReq in the non-responder state. Figure 4 That is, the "specific information" only needs to be information obtained using at least the public key.

[0118] (Variant 2) Processing for creating a shared key (eg, SK1) (eg, Figure 4 T142, T202) is not limited to the processing according to ECDH as described in the above embodiments, and may be another processing according to ECDH. In addition, the processing for creating a shared key is not limited to the processing according to ECDH, and processing according to another scheme (for example, DH (Diffie-Hellman key exchange) etc.) may be performed. In addition, in the above embodiments, the digital signatures DS1 and DS2 are created according to ECDSA, however, they may be created according to another scheme (for example, DSA (Digital Signature Algorithm), RSA (Rivest-Shamir-Adleman Cryptography System) etc.).

[0119] (Variant 3) For example, in Figure 7In T102 of , the terminal 10 may send a service discovery request instead of PReq according to the Wi-Fi Direct (registered trademark, WFD) scheme. The request includes information for inquiring whether the printer 100 is capable of displaying the QR code. In this variation, the service discovery request is an example of a “specific signal”. In another variation, the terminal 10 may send a signal to the printer 100 instead of PReq using another scheme different from the Wi-Fi scheme (e.g., a near field communication (NFC) scheme and a Bluetooth (registered trademark) scheme). In this variation, the signal using the other scheme is an example of a “specific signal”.

[0120] (Variant 4) In the above embodiment, when receiving PReq from the terminal 10, the printer 100 displays the notification screen ( Figure 7 T108 of ). Instead of this, in the case where a predetermined operation is performed on the operation unit 112, the printer 100 may display a notification screen. In this variation, "receiving a specific signal" may be omitted. Furthermore, in another variation, the printer 100 may output audio notifying the user that the password input is acceptable instead of a notification screen, and / or may turn on a light indicating such notification. In this variation, the output of audio and / or the turning on of a light are examples of a "notification unit".

[0121] (Variant 5) In the above embodiment, the printer 100 determines whether the second CO is stored in the memory 134 ( Figure 7 Instead of this, the printer 100 may determine whether the SSID and password used in establishing the Wi-Fi connection with the AP 7 are stored in the memory 134. In this modification, the SSID and password are examples of the "second connection information".

[0122] (Variant 6) It is not necessary to execute Figure 7 In this modification, the "second connection information" may be omitted.

[0123] (Variant 7) In the above embodiment, the printer 100 determines whether the status of the printer 100 is the default status ( Figure 7T106). Instead of this, for example, when the printer 100 is shipped, the password may not be stored in the memory 134. Furthermore, in the case where the password is not stored in the memory 134, the printer 100 may not display the notification screen, and in the case where the password is stored in the memory 134, the printer 100 may display the notification screen. In this variation, the state where the password is not stored and the state where the password is stored are examples of the “first state” and the “second state”, respectively. In another variation, the printer 100 may store one of a setting “ON” that restricts the use of the print function by a specific user and a setting “OFF” that does not restrict the use of the print function by a specific user. Furthermore, in the case where the setting “OFF” is stored, the printer 100 may not display the notification screen, and in the case where the setting “ON” is stored, the printer 100 may display the notification screen. In this variation, the state where the setting “OFF” is stored and the state where the setting “ON” is stored are examples of the “first state” and the “second state”, respectively.

[0124] (Variant 8) It is not necessary to execute Figure 7 In this modification, the "first state" and the "second state" may be omitted.

[0125] (Variant 9) In the above embodiment, in the case where the power of the printer 100 is turned on, the printer 100 starts the operation in the non-responder state. Then, in the case where PReq is received from the terminal 10 and it is determined that the second CO is stored in the memory 134 (T104 is), the printer 100 transitions from the non-responder state to the responder state (T122). Instead of this, the printer 100 may determine in which of the non-responder state and the responder state it should operate in the case where the power of the printer 100 is turned on. For example, the printer 100 may start the operation in the responder state in the case where it is determined that the second CO is not stored in the memory 134, and may start the operation in the non-responder state in the case where it is determined that the second CO is stored in the memory 134. Then, in the case where PReq is received from the terminal 10 and the second CO is not stored in the memory 134, the printer 100 may maintain its operation in the responder state without displaying the notification screen, and in the case where PReq is received from the terminal 10 and the second CO is stored in the memory 134, the printer 100 may display the notification screen and may transition from the non-responder state to the responder state depending on whether the subsequent authentication is successful. It may be determined in which of the non-responder state and the responder state the printer 100 will operate based on whether the printer 100 is in the default state. In this variation, maintaining the operation in the responder state is an example of an “operation control unit”.

[0126] (Variant 10) For example, the printer 100 may cause the print execution unit 118 to Figure 7 The QR code is printed in T124 of the printer 100 instead of displaying the QR code on the display unit 114. According to this variation, for example, even if the printer 100 is not provided with the display unit 114, communication according to the DPP scheme can be performed and a Wi-Fi connection can be established between the printer 100 and the AP 6. 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 (such as an NFC I / F and a Bluetooth I / F) other than the Wi-Fi I / F 116. The Bluetooth I / F includes a wireless interface for performing communication according to the Bluetooth scheme version 4.0 or higher. In this case, the printer 100 can send the public key PPK1, the channel list and the MAC address “abc” to the terminal 10 via the wireless interface in T124. In this variation, the wireless interface other than the Wi-Fi I / F 116 is an example of an “output unit”. In addition, in this variation, the “specific information” may not be an “encoded image”.

[0127] (Variant 11) The standard "Device Configuration Protocol Technical Specification Version 1.1" created by the Wi-Fi Alliance describes that shared codes, keys, phrases, and words are referred to as "codes." In T124, instead of the QR code, the printer 100 may display an image including the shared code, key, phrase, or word obtained by encoding the public key PPK1, the channel list, and the MAC address "abc" on the display unit 114.

[0128] (Variant 12) Figure 2 In T35 of , the NA process may be performed between the terminal 10 and the printer 100, and a Wi-Fi connection may be established between the terminal 10 and the printer 100. That is, the "second external device" may be the same device as the "first external device".

[0129] (Variant 13) It is not necessary to execute Figure 8 That is, in the case where a predetermined time has passed since the transition to the responder state, the printer 100 may not transition from the responder state to the non-responder state. In this variation, the “second transition unit” may be omitted. In addition, in another variation, Figure 8 In T526 of , the printer 100 may monitor the acceptance of an instruction from the user to transition to the non-responder state, instead of monitoring the lapse of a predetermined time. In this modification, the acceptance of an instruction from the user is an example of a “specific condition”.

[0130] (Variant 14) In the above embodiment, the terminal 10 is used to establish a Wi-Fi connection between the printer 100 and the AP 6. Instead of this, for example, the terminal 10 may be used to establish a Wi-Fi connection between the printer 100 operating as a group owner (G / O) according to the WFD scheme (i.e., a device operating as a parent station) and another device (i.e., a device operating as a child station). That is, the "second external device" may not be the "parent station device".

[0131] (Variant 15) 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.

[0132] (Variant 16) It is not necessary to execute Figure 7 In this modification, the printer 100 can always operate in the responder state. In addition, the printer 100 can display a notification screen when a predetermined operation (such as a login operation) is performed on the operation unit 112, and can display a QR code when the authentication is successful. In this modification, the processing of the "acceptance unit" can be executed with the execution of a predetermined operation on the printer 100 as a trigger, and the "first conversion unit" can be omitted.

[0133] (Variant 17) It is not necessary to execute Figure 7 In this variation, the printer 100 may display a notification screen when a predetermined operation (e.g., a login operation) is performed on the operation unit 112. In addition, after the state of the printer 100 has been converted to the responder state due to successful authentication, the terminal 10 may capture the QR code attached to the body of the printer 100 and obtain the public key PPK1, etc. In this variation, the processing of the "accepting unit" may be executed with the execution of a predetermined operation on the printer 100 as a trigger, and the "display unit" may be omitted.

[0134] (Variant 18) The processing of the "accepting unit" is not limited to the processing of inputting a password to the operation unit 112 of the printer 100 ( Figure 7 For example, the password may be stored in an IC card, and the password may be input to the printer 100 by reading the password in the IC card by a card reader of the printer 100. In addition, the password may be stored in a terminal, and the password may be input to the printer 100 by receiving the password from the terminal by the printer 100. Here, the password may be received using a wireless connection according to various communication schemes such as an NFC scheme, a Bluetooth scheme, and a WFD scheme.

[0135] (Variant 19) In the above embodiment, Figures 2 to 8The various processes of are implemented by software (eg, program 136). Alternatively, one or more processes may be implemented by hardware such as a logic circuit.

Claims

1. A communication device, It is characterized in that include: Output unit; Wireless interface; a determining unit configured to determine whether the state of the communication device is a first state that does not restrict the use of the communication device or a second state that restricts the use of the communication device; an accepting unit configured to accept input of user authentication information for authenticating a user of the communication device when determining that the state of the communication device is the second state; an output control unit configured to, in a case where it is determined that the state of the communication device is the second state and authentication using the input user authentication information is successful, cause the output unit to output specific information obtained by using a public key obtained by a first external device in response to outputting the specific information, wherein in a case where the authentication using the input user authentication information fails, the specific information is not output, wherein, in a case where it is determined that the state of the communication device is the first state, the output control unit causes the output unit to output the specific information without accepting input of the user authentication information; an authentication request receiving unit configured to receive an authentication request using the public key from the first external device via the wireless interface after the specific information has been output; an authentication response sending unit, the authentication response sending unit being configured to send an authentication response to the first external device via the wireless interface when the authentication request is received from the first external device; a connection information receiving unit configured to receive first connection information from the first external device via the wireless interface after the authentication response has been sent to the first external device, the first connection information being used to establish a first wireless connection between the communication device and a second external device via the wireless interface; and An establishing unit configured to establish the first wireless connection between the communication device and the second external device via the wireless interface by using the first connection information when the first connection information is received from the first external device.

2. The communication device according to claim 1, It is characterized in that in, The first state is a state in which the memory of the communication device stores default information as the user authentication information, The second state is a state in which the memory stores information updated from the default information as the user authentication information.

3. The communication device according to claim 1, It is characterized in that in, The first state is a state in which the memory of the communication device does not store the user authentication information, The second state is a state in which the memory stores the user authentication information.

4. The communication device according to claim 1, It is characterized in that in, The communication device includes a printing function, The communication device includes a memory storing a setting value, the setting value indicating any one of a first value indicating that use of the printing function by a specific user is not restricted, and a second value indicating that use of the printing function by the specific user is restricted, The first state is a state in which the setting value in the memory indicates the first value, The second state is a state in which the set value in the memory indicates the second value.

5. The communication device according to claim 1, It is characterized in that in, The user authentication information is a password.

6. The communication device according to claim 1, It is characterized in that in, The specific information is a coded image obtained by encoding the public key.

7. The communication device according to claim 6, It is characterized in that in, The encoded image is a QR code, and The public key is obtained by the first external device through capturing the QR code by the first external device.

8. The communication device according to claim 1, It is characterized in that in, The output unit is a display unit for displaying an image, and The output control unit is configured to cause the output unit as the display unit to display the specific information.

9. The communication device according to claim 1, It is characterized in that Further including: a first conversion unit, the first conversion unit being configured to, in a case where the authentication using the input user authentication information is successful, convert the state of the communication device from a non-responder state to a responder state, wherein, in a case where the authentication using the input user authentication information fails, the state of the communication device is maintained in the non-responder state, the non-responder state being a state in which the authentication response is not sent, and the responder state being a state in which the authentication response is sent to the first external device in response to receiving the authentication request from the first external device; Wherein, in a case where the authentication request is received from the first external device after the state of the communication device has been converted to the responder state, the authentication response sending unit is configured to send the authentication response to the first external device via the wireless interface.

10. The communication device according to claim 9, It is characterized in that in, The specific information is information obtained by using the public key and communication channel information indicating a first communication channel predetermined in the communication device, The communication channel information is obtained by the first external device by outputting the specific information; The responder state includes monitoring a state of receiving the authentication request using the first communication channel from the first external device, and The authentication response sending unit is configured to, upon receiving the authentication request using the first communication channel from the first external device after the state of the communication device has transitioned to the responder state, send the authentication response to the first external device via the wireless interface.

11. A communication device, It is characterized in that include: Wireless interface; a determining unit configured to determine whether the state of the communication device is a first state that does not restrict the use of the communication device or a second state that restricts the use of the communication device; an accepting unit configured to accept input of user authentication information for authenticating a user of the communication device when determining that the state of the communication device is the second state; a first conversion unit, the first conversion unit being configured to, in a case where it is determined that the state of the communication device is the second state and authentication using the input user authentication information is successful, convert the state of the communication device from a non-responder state to a responder state, wherein in a case where the authentication using the input user authentication information fails, the state of the communication device is maintained in the non-responder state, the non-responder state being a state in which the authentication response is not sent, and the responder state being a state in which the authentication response is sent to the first external device in response to receiving the authentication request from the first external device, wherein, in a case where it is determined that the state of the communication device is the first state, the first conversion unit converts the state of the communication device from the non-responder state to the responder state without accepting the input of the user authentication information; an authentication request receiving unit, the authentication request receiving unit being configured to receive an authentication request from the first external device via the wireless interface; an authentication response sending unit configured to send the authentication response to the first external device via the wireless interface in a case where an authentication request is received from the first external device after the state of the communication device has been transferred to the responder state; a connection information receiving unit configured to receive first connection information from the first external device via the wireless interface after the authentication response has been sent to the first external device, the first connection information being used to establish a first wireless connection between the communication device and a second external device via the wireless interface; and An establishing unit configured to establish the first wireless connection between the communication device and the second external device via the wireless interface by using the first connection information when the first connection information is received from the first external device.

12. The communication device according to claim 11, It is characterized in that in, The responder state includes monitoring reception of the authentication request from the first external device using a first communication channel predetermined in the communication device, and The authentication response sending unit is configured to send the authentication response to the first external device via the wireless interface upon receiving the authentication request using the first communication channel from the first external device after the state of the communication device has transitioned to the non-responder state.

13. The communication device according to claim 12, It is characterized in that in, The establishing unit is configured to establish the first wireless connection between the communication device and the second external device via the wireless interface by using a second communication channel different from the first communication channel.

14. The communication device according to claim 11, It is characterized in that in, The communication device further comprises: A second conversion unit is configured to convert the state of the communication device from the responder state to the non-responder state if a specific condition is satisfied after the state of the communication device has been converted to the responder state.

15. The communication device according to any one of claims 1 to 11, It is characterized in that in, The communication device further comprises: a specific signal receiving unit configured to receive a specific signal from the first external device; and A notification unit configured to notify the user that the input of the user authentication information can be accepted when the specific signal is received from the first external device.

16. The communication device according to claim 15, It is characterized in that in, The notification unit is configured to cause a display unit of the communication device to display a notification screen for notifying the user that the input of the user authentication information can be accepted.

17. The communication device according to any one of claims 1 to 11, It is characterized in that in, The second external device is a parent station device to be operated as a parent station of the wireless network, the second external device is different from the first external device, and The establishing unit is configured to enable the communication unit to participate in the wireless network by establishing the first wireless connection.

18. The communication device according to any one of claims 1 to 11, It is characterized in that in, The first connection information includes authentication information for authenticating reception information received from the second external device.

19. The communication device according to any one of claims 1 to 11, It is characterized in that in, The communication device further comprises: An operation control unit configured to cause the communication device to operate as a registrant according to a Wi-Fi scheme after the authentication response has been sent to the first external device, wherein the first external device may operate as a configurator according to the Wi-Fi scheme.

20. A computer program product, It is characterized in that include: a determining unit configured to determine whether the state of a communication device is a first state that does not restrict the use of the communication device or a second state that restricts the use of the communication device; an accepting unit configured to accept input of user authentication information for authenticating a user of the communication device when determining that the state of the communication device is the second state; an output control unit configured to, in a case where it is determined that the state of the communication device is the second state and authentication using the input user authentication information is successful, cause the output unit of the communication device to output specific information obtained by using a public key obtained by a first external device in response to outputting the specific information, wherein in a case where the authentication using the input user authentication information fails, the specific information is not output, wherein, in a case where it is determined that the state of the communication device is the first state, the output control unit causes the output unit to output the specific information without accepting input of the user authentication information; an authentication request receiving unit configured to receive an authentication request using the public key from the first external device via the wireless interface of the communication device after the specific information has been output; an authentication response sending unit, the authentication response sending unit being configured to send an authentication response to the first external device via the wireless interface when the authentication request is received from the first external device; a connection information receiving unit configured to receive first connection information from the first external device via the wireless interface after the authentication response has been sent to the first external device, the first connection information being used to establish a first wireless connection between the communication device and a second external device via the wireless interface; and An establishing unit configured to establish the first wireless connection between the communication device and the second external device via the wireless interface by using the first connection information when the first connection information is received from the first external device.

21. A computer program product, It is characterized in that include: a determining unit configured to determine whether the state of a communication device is a first state that does not restrict the use of the communication device or a second state that restricts the use of the communication device; an accepting unit configured to accept input of user authentication information for authenticating a user of the communication device when determining that the state of the communication device is the second state; a first conversion unit, the first conversion unit being configured to, in a case where it is determined that the state of the communication device is the second state and authentication using the input user authentication information is successful, convert the state of the communication device from a non-responder state to a responder state, wherein in a case where the authentication using the input user authentication information fails, the state of the communication device is maintained in the non-responder state, the non-responder state being a state in which the authentication response is not sent, and the responder state being a state in which the authentication response is sent to the first external device in response to receiving the authentication request from the first external device, wherein, in a case where it is determined that the state of the communication device is the first state, the first conversion unit converts the state of the communication device from the non-responder state to the responder state without accepting the input of the user authentication information; an authentication request receiving unit, the authentication request receiving unit being configured to receive an authentication request from the first external device via the wireless interface of the communication device; an authentication response sending unit configured to send the authentication response to the first external device via the wireless interface in a case where an authentication request is received from the first external device after the state of the communication device has been transferred to the responder state; a connection information receiving unit configured to receive first connection information from the first external device via the wireless interface after the authentication response has been sent to the first external device, the first connection information being used to establish a first wireless connection between the communication device and a second external device via the wireless interface; and An establishing unit configured to establish the first wireless connection between the communication device and the second external device via the wireless interface by using the first connection information when the first connection information is received from the first external device.

Citation Information

Patent Citations

  • Communication apparatus, sharing method, and program

    JP2017028454A