Computer program for terminal device and communication device
The described program enhances wireless connection establishment by using IP addresses and public keys within the DPP protocol, addressing communication gaps and improving network integration efficiency.
Patent Information
- Application Number
- JP2020094818
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-05-29
AI Technical Summary
Existing communication technologies, such as those described in Non-Patent Document 1, do not provide detailed methods for establishing wireless connections using IP addresses beyond authentication, leaving gaps in secure and efficient communication protocols.
A computer program for a terminal device that facilitates communication by transmitting IP addresses, public keys, and authentication responses over a shared network to establish secure wireless connections with external devices, utilizing the Device Provisioning Protocol (DPP) for authentication and key exchange.
Enables secure and efficient wireless connections between devices by using IP addresses and public keys, reducing user workload and ensuring seamless integration of multiple devices into a network.
Smart Images

Figure 0007532904000004 
Figure 0007532904000001 
Figure 0007532904000005
Abstract
Description
[Technical field]
[0001] Disclosed herein are techniques in the context of establishing a wireless connection between a communication device and an external device. [Background technology]
[0002] Non-Patent Document 1 discloses a technique for establishing a Wi-Fi connection between a pair of devices according to the DPP (Device Provisioning Protocol) method of the Wi-Fi standard. In particular, it discloses that authentication and other procedures can be performed by wired communication using IP addresses. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] “Device Provisioning Protocol Specification Version 1.1.13” Wi-Fi Alliance, 2019 Summary of the Invention [Problem to be solved by the invention]
[0004] Non-Patent Document 1 discloses details of authentication for wired communication using IP addresses, but does not disclose details of other communications using IP addresses.
[0005] This specification discloses a technique for appropriately executing communication using address information between a terminal device and a communication device in a situation where a wireless connection should be established between the communication device and an external device. [Means for solving the problem]
[0006] This specification discloses a computer program for a first terminal device. The first terminal device may include one or more communication interfaces and a computer. The computer program causes the computer to include a first address information transmitting unit that transmits address information, which is an IP address of the first terminal device, to the first communication device via a first communication interface of the one or more communication interfaces by using a communication network to which the first terminal device and a first communication device belong, a first public key transmitting unit that transmits a public key of the first terminal device to the first communication device via the first communication interface by using the communication network, and a first authentication request that is transmitted from the first communication device via the first communication interface by using the communication network when the address information and the public key are transmitted to the first communication device, the first authentication request being transmitted to the first communication device via the first communication interface by using the communication network. The wireless communication device may function as a first authentication request receiving unit that receives the first authentication request using the public key, a first authentication response transmitting unit that transmits a first authentication response to the first communication device via the first communication interface using the communication network in response to receiving the first authentication request from the first communication device, and a first connection information transmitting unit that transmits first connection information to the first communication device via the first communication interface using the communication network when the first authentication response is transmitted to the first communication device, wherein the first connection information is information used by the first communication device to establish a first wireless connection between the first communication device and an external device.
[0007] According to the above configuration, the first terminal device transmits address information, which is the IP address of the first terminal device, and the public key of the first terminal device to the first communication device, using the communication network to which the first terminal device and the first communication device belong. Therefore, the first terminal device can receive a first authentication request transmitted from the first communication device to the address information (i.e., the IP address) as a destination, the first authentication request using the public key. Then, the first terminal device transmits a first authentication response to the first communication device, and further transmits the first connection information to the first communication device. For this reason, the first terminal device can appropriately establish a first wireless connection between the first communication device and the external device.
[0008] This specification also discloses another computer program for a first terminal device. The first terminal device may include one or more communication interfaces and a computer. The computer program includes a first address information transmitting unit that transmits address information of the first terminal device to the first communication device via a first communication interface of the one or more communication interfaces by using a communication network to which the first terminal device and a first communication device belong, and a first transmission request receiving unit that receives a first transmission request transmitted from the first communication device via the first communication interface by using the communication network when the address information is transmitted to the first communication device, the first transmission request being a signal requesting the first terminal device to transmit a public key of the first terminal device, and a first transmission request receiving unit that receives the public key via the first communication interface by using the communication network in response to receiving the first transmission request from the first communication device. a first authentication request receiving unit that receives a first authentication request using the public key from the first communication device via a second communication interface among the one or more communication interfaces when the public key is transmitted to the first communication device; a first authentication response transmitting unit that transmits a first authentication response to the first communication device via the second communication interface in response to receiving the first authentication request from the first communication device; and a first connection information transmitting unit that transmits first connection information to the first communication device via the second communication interface when the first authentication response is transmitted to the first communication device, wherein the first connection information is information used by the first communication device to establish a first wireless connection between the first communication device and an external device.
[0009] According to the above configuration, the first terminal device transmits address information of the first terminal device to the first communication device by using a communication network to which the first terminal device and the first communication device belong. Therefore, the first terminal device can receive a first transmission request transmitted from the first communication device to which the address information is addressed. For this purpose, the first terminal device can transmit a public key to the first communication device and can receive a first authentication request using the public key from the first communication device. Then, the first terminal device transmits a first authentication response to the first communication device and further transmits the first connection information to the first communication device. For this purpose, the first terminal device can appropriately establish a first wireless connection between the first communication device and the external device.
[0010] This specification also discloses a communication device, the communication device including one or more communication interfaces, an address information receiving unit that receives address information, which is an IP address of the terminal device, from the terminal device via a first communication interface of the one or more communication interfaces by using a communication network to which the communication device and a terminal device belong, a public key receiving unit that receives a public key of the terminal device from the terminal device via the first communication interface by using the communication network, an authentication request transmitting unit that, when the address information and the public key are received from the terminal device, transmits the authentication request using the public key to the terminal device via the first communication interface by using the communication network, and the authentication request transmitting unit transmits the authentication request using the public key to the terminal device, with the address information as the destination, The communication device may further include a connection information receiving unit that receives connection information from the terminal device via the first communication interface using the communication network when an authentication response is received from the terminal device via the first communication interface using the communication network in response to the authentication request being sent to the terminal device, the connection information being information used by the communication device to establish a wireless connection between the communication device and an external device, and an establishment unit that uses the connection information to establish the wireless connection between the communication device and the external device via a third communication interface among the one or more communication interfaces when the connection information is received from the terminal device.
[0011] According to the above configuration, the communication device receives address information, which is the IP address of the terminal device, and the public key of the terminal device from the terminal device using the communication network to which the communication device and the terminal device belong. Therefore, the communication device can transmit an authentication request using the public key to the terminal device, with the address information (i.e., the IP address) as the destination, and can further receive connection information from the terminal device. For this reason, the communication device can appropriately establish a wireless connection between the communication device and an external device using the connection information.
[0012] This specification also discloses another communication device. The communication device includes one or more communication interfaces, an address information receiving unit that receives address information of the terminal device from the terminal device via a first communication interface of the one or more communication interfaces by using a communication network to which the communication device and a terminal device belong, a transmission request transmitting unit that transmits a transmission request to the terminal device via the first communication interface by using the communication network when the address information is received from the terminal device, the transmission request being a signal requesting the terminal device to transmit a public key of the terminal device, the public key receiving unit that receives the public key from the terminal device via the first communication interface by using the communication network in response to the transmission request being transmitted to the terminal device, and a public key receiving unit that receives the public key from the terminal device via the first communication interface by using the communication network in response to the transmission request being transmitted to the terminal device. The communication device may further include an authentication request sending unit that sends an authentication request using the public key to the terminal device via a second communication interface among the one or more communication interfaces when a key is received; a connection information receiving unit that receives connection information from the terminal device via the second communication interface when an authentication response is received from the terminal device via the second communication interface in response to the authentication request being sent to the terminal device, the connection information being information used by the communication device to establish a wireless connection between the communication device and an external device; and an establishment unit that uses the connection information to establish the wireless connection between the communication device and the external device via a third communication interface among the one or more communication interfaces when the connection information is received from the terminal device.
[0013] According to the above configuration, the communication device receives address information of the terminal device from the terminal device by using a communication network to which the communication device and the terminal device belong. Therefore, the communication device can transmit a transmission request to the terminal device with the address information as the destination and receive a public key from the terminal device. For this reason, the communication device can transmit an authentication request using the public key to the terminal device, and further receive connection information from the terminal device. For this reason, the communication device can appropriately establish a wireless connection between the communication device and an external device by using the connection information.
[0014] A computer-readable recording medium storing a computer program for the above-mentioned first terminal device, the first terminal device itself, and a method executed by the first terminal device are also novel and useful. A computer program for the above-mentioned communication device, a computer-readable recording medium storing the computer program, and a method executed by the communication device are also novel and useful. Also, a communication system including two or more devices (e.g., the first terminal device and the first communication device) is novel and useful. [Brief description of the drawings]
[0015] [Figure 1] 1 shows the configuration of a communication system. [Diagram 2] The hardware configuration of each device is shown. [Diagram 3] A sequence diagram of the processes executed by each device is shown. [Figure 4] The sequence diagram continues from Figure 3. [Diagram 5] The sequence diagram continues from Figure 4. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] (Configuration of communication system 2: Figure 1) As shown in FIG. 1, the communication system 2 includes a terminal 10, an AP (abbreviation of Access Point) 80, a PC (abbreviation of Personal Computer) 100, and a plurality of printers 200A to 200D.
[0017] The terminal 10, AP 80, PC 100, and printers 200C and 200D are present in company XXX. The terminal 10 and PC 100 are used by a network administrator of company XXX. The AP 80, PC 100, and printer 200C are connected with wired cables. That is, the AP 80, PC 100, and printer 200C belong to a wired LAN (abbreviation of Local Area Network) 6. The printer 200D establishes a wireless connection (hereinafter referred to as "Wi-Fi connection") conforming to the Wi-Fi standard with the AP 80. That is, the printer 200D belongs to a wireless LAN 8 formed by the AP 80. The AP 80 and PC 100 are connected to the Internet 4.
[0018] The printers 200A and 200B are purchased by a company XXX and delivered to the company XXX. In this embodiment, a situation in which a Wi-Fi connection is established between each of the printers 200A and 200B and the AP 80 using the terminal 10 and the PC 100 will be described.
[0019] (Configuration of terminal 10: Figure 2) Next, the hardware configuration of each of the devices 10, 100, 200A will be described with reference to Fig. 2. The terminal 10 is a portable terminal device such as a mobile phone (e.g., a smartphone), a PDA, or a tablet PC. The terminal 10 includes an operation unit 12, a display unit 14, a camera 16, a Wi-Fi interface 20, and a control unit 30. Each of the units 12 to 30 is connected to a bus line (reference numbers omitted).
[0020] The operation unit 12 includes a plurality of keys. A user can input various instructions to the terminal 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The camera 16 is a device for photographing an object. In this embodiment, the camera 16 is used to photograph a QR code (registered trademark) of the AP 80.
[0021] The Wi-Fi interface 20 is a wireless interface for performing Wi-Fi communication according to the Wi-Fi standard. The Wi-Fi standard is a wireless communication standard for performing wireless communication according to, for example, the IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards equivalent thereto (for example, 802.11a, 11b, 11g, 11n, 11ac, etc.). In particular, the Wi-Fi interface 20 supports the DPP (abbreviation of Device Provisioning Protocol) method established by the Wi-Fi Alliance. Details of the DPP method are described in the specification "Device Provisioning Protocol Specification Version 1.1.13" created by the Wi-Fi Alliance.
[0022] The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes in accordance with programs 40, 42 stored in the memory 34. The memory 34 is composed of a volatile memory, a non-volatile memory, and the like. The OS (short for Operating System) program 40 is a program for implementing basic operations of the terminal 10. The DPP application 42 (hereinafter, referred to as "DPP app 42") is a program for establishing a Wi-Fi connection between the terminal 10 and the AP 80 in accordance with the DPP method. The DPP app 42 is installed in the terminal 10 from a server (not shown) on the Internet provided by a vendor of the printer 200A or the like, for example.
[0023] (PC100 configuration) The PC 100 is a stationary terminal device such as a desktop PC. In a modified example, the PC 100 may be a portable terminal device such as a notebook PC. The PC 100 includes an operation unit 112, a display unit 114, a Wi-Fi interface 120, a wired interface 122, and a control unit 130. The units 112 to 130 are connected to a bus line (reference numerals omitted).
[0024] The operation unit 112 includes a plurality of keys. A user can input various instructions to the PC 100 by operating the operation unit 112. The display unit 114 is a display for displaying various information. The Wi-Fi interface 120 is a wireless interface for performing Wi-Fi communication, and supports the DPP method.
[0025] The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes according to the programs 140 and 142 stored in the memory 134. The memory 134 is composed of a volatile memory, a non-volatile memory, and the like. The OS program 140 is a program for realizing the basic operations of the PC 100. The printer application 142 (hereinafter, referred to as the "printer app 142") is a program for searching for a printer and for establishing a Wi-Fi connection between each of the printers 200A and 200B and the AP 80 according to the DPP method. The printer app 142 may be installed in the PC 100 from a server (not shown) on the Internet provided by a vendor of the printer 200A or the like, or may be installed in the PC 100 from a medium shipped together with the printer 200A or the like.
[0026] (Printer 200A Configuration) The printer 200A is a peripheral device (for example, a peripheral device of the terminal 10) capable of executing a printing function. The printer 200A includes an operation unit 212, a display unit 214, a print execution unit 218, a Wi-Fi interface 220, a wired interface 222, and a control unit 230. Each unit 212 to 230 is connected to a bus line (reference numerals omitted).
[0027] The operation unit 212 has a plurality of keys. A user can input various instructions to the printer 200A by operating the operation unit 212. The display unit 214 is a display for displaying various information. The print execution unit 218 has a printing mechanism such as an inkjet type or a laser type. The Wi-Fi interface 220 is a wireless interface for performing Wi-Fi communication, and supports the DPP method.
[0028] The control unit 230 includes a CPU 232 and a memory 234. The CPU 232 executes various processes in accordance with a program 240 stored in the memory 234. The memory 234 is configured by a volatile memory, a non-volatile memory, or the like.
[0029] Each of the printers 200B and 200D has a similar hardware configuration to the printer 200A and supports the DPP method. Each of the printers 200C has a similar hardware configuration to the printer 200A and does not support the DPP method.
[0030] (Processing performed by each device: Figures 3 to 5) Next, the processes executed by each of the devices 10, 80, 100, 200A to 200D will be described with reference to Figures 3 to 5. In the following, for ease of understanding, the operations executed by the CPU of each device (such as CPU 32) will be described with reference to each device (such as terminal 10) rather than the CPU. Also, in Figures 3 to 5, wired communication and wireless communication between each device are represented by solid lines and dashed lines, respectively.
[0031] (Establishing a Wi-Fi connection between terminal 10 and AP 80: Figure 3) As described above, each of the printers 200A, 200B is delivered to the company XXX. Before a Wi-Fi connection is established between each of the printers 200A, 200B and the AP 80 at the company XXX, a Wi-Fi connection is established between the terminal 10 and the AP 80. A process for establishing a Wi-Fi connection between the terminal 10 and the AP 80 will be described with reference to FIG. 3. In FIG. 3, all communications performed by the terminal 10 are performed via the Wi-Fi interface 20. Therefore, in the following, when describing communications performed by the terminal 10, the description "via the Wi-Fi interface 20" will be omitted.
[0032] At T100, the terminal 10 accepts an operation from a user (that is, a network administrator of company XXX) to start up the DPP application 42. All of the following processes executed by the terminal 10 are realized by the DPP application 42.
[0033] The AP80 stores two sets of authentication information of the AP80 in advance. The first set of authentication information includes a first public key PKap1 and a corresponding first secret key skap1 (i.e., a secret key skap1 paired with the public key PKap1). The second set of authentication information includes a second public key PKap2 and a corresponding second secret key skap2. A QR code is attached to the housing of the AP80. The QR code is encoded information such as the first public key PKap1 of the AP80 and the MAC address of the AP80. At T102, the terminal 10 accepts an operation from the user to read the QR code using the camera 16.
[0034] In T104, the terminal 10 reads the QR code and decodes the QR code. As a result, the terminal 10 obtains information such as the first public key PKap1 of the AP 80 and the MAC address of the AP 80. The processing in T104 corresponds to Bootstrapping in the DPP method.
[0035] In T106, the terminal 10 generates a first set of authentication information for the terminal 10 using the MAC address of the Wi-Fi interface 20. The authentication information includes a first public key PKte1 and a first secret key skte1 corresponding to the first public key PKte1.
[0036] In T110, the terminal 10 transmits an Authentication Request using the first public key PKap1 acquired in T104 to the AP 80, addressed to the MAC address of the AP 80 acquired in T104. Hereinafter, Authentication will be referred to as "Auth" and Request will be referred to as "Req". The Auth Req is a signal requesting the execution of authentication. Specifically, the terminal 10 first generates a first shared key using the first public key PKap1 acquired in T104 and the first secret key skte1 generated in T106, and generates first encrypted data by encrypting a random value using the first shared key. Then, the terminal 10 transmits an Auth Req including the first public key PKte1 generated in T106, the first encrypted data, and the Capability of the terminal 10 to the AP 80. The Capability of the terminal 10 includes a value indicating that the terminal 10 can operate only as a Configurator of the DPP method.
[0037] The above Auth Req is communication that uses the physical layer and data link layer of the OSI (short for Open Systems Interconnection) reference model, but does not use the layers above the network layer, i.e., communication that does not use IP addresses. Until a Wi-Fi connection is established between the terminal 10 and the AP 80 (i.e., until communication of T132 described later), communication that does not use IP addresses is executed between the terminal 10 and the AP 80.
[0038] When the AP80 receives an Auth Req from the terminal 10 in T110, the AP80 performs authentication of the Auth Req. Specifically, the AP80 generates a first shared key using a first public key PKte1 included in the Auth Req and a first private key skap1 stored in advance, and decrypts the first encrypted data using the first shared key. If the AP80 succeeds in decrypting the first encrypted data, that is, if the authentication of the Auth Req is successful, the AP80 performs the processes from T112 onward.
[0039] If authentication of the Auth Req is successful, the AP80 generates a second shared key using the first public key PKte1 included in the Auth Req and a second secret key skap2 stored in advance, and generates second encrypted data by encrypting a random value using the second shared key. Then, at T112, the AP80 transmits an Auth Response including the second public key PKap2 stored in advance, the second encrypted data, and the Capability of the AP80 to the terminal 10. Hereinafter, the Response will be referred to as "Res". The Capability of the AP80 includes a value indicating that it can operate only as an Enrollee of the DPP method.
[0040] When the terminal 10 receives Auth Res from the AP 80 in T112, it performs authentication of Auth Res. Specifically, the terminal 10 generates a second shared key using the second public key PKap2 included in Auth Res and the first private key skte1 generated in T106, and decrypts the second encrypted data using the second shared key. If the terminal 10 succeeds in decrypting the second encrypted data, that is, if the authentication of Auth Res is successful, it performs the processes from T113 onwards.
[0041] The terminal 10 further determines that there is no conflict between the capability of the AP 80 included in the Auth Res (i.e., Enrollee) and the capability of the terminal 10 itself (i.e., Configurator). In this case, the terminal 10 transmits a Confirm to the AP 80 in T113, indicating that the authentication was successful and that there is no conflict between the roles. Then, the terminal 10 determines to operate as a Configurator in T114. The Configurator is a device responsible for transmitting a Configuration Object (hereinafter referred to as "CO"), which will be described later, to the Enrollee.
[0042] When the AP 80 receives Confirm from the terminal 10 in T113, the AP 80 decides to operate as an Enrollee in T116. The Enrollee is a device that plays a role in receiving a CO from a Configurator. The processing from T110 to T116 corresponds to Auth in the DPP method.
[0043] In T120, the AP 80 transmits a Configuration Req to the terminal 10. Hereinafter, the Configuration will be referred to as "Config." The Config Req is a signal requesting the transmission of a CO.
[0044] When the terminal 10 receives a Config Req from the AP 80 in T120, the terminal 10 generates a second set of authentication information for the terminal 10 in T122 by using the MAC address of the Wi-Fi interface 20. The authentication information includes a second public key PKte2 and a second secret key skte2 corresponding to the second public key PKte2. The terminal 10 further generates a GroupID "xxx". The GroupID "xxx" is information for identifying the wireless LAN 8 formed by the AP 80.
[0045] Next, the terminal 10 generates a CO for the AP. Specifically, the terminal 10 first generates a Signed Connector for the AP, which is information to be used by the AP 80 to establish a Wi-Fi connection. Hereinafter, the Signed Connector is referred to as "SC". The SC for the AP includes, for example, the second public key PKap2 included in the Auth Res received in T112, the GroupID "xxx" generated in T122, and an electronic signature obtained using the second private key skte2 generated in T122. Then, the terminal 10 generates a CO for the AP including the SC for the AP and the second public key PKte2 generated in T122, and transmits the Cofig Res including the CO for the AP to the AP 80 in T124.
[0046] When the AP 80 receives a Cofig Res from the terminal 10 in T124, the AP 80 transmits a Cofig Result indicating that the AP CO has been received to the terminal 10 in T126. The processing from T120 to T126 corresponds to Cofig in the DPP method.
[0047] Next, the terminal 10 generates a terminal SC, which is information to be used by the terminal 10 to establish a Wi-Fi connection. The terminal SC includes, for example, a second public key PKte2 generated in T122, a GroupID "xxx" that is the same as the GroupID included in the AP SC, and an electronic signature obtained by using a second secret key skte2 generated in T122. Then, in T130, the terminal 10 transmits a Discovery Req including the terminal SC to the AP 80. The Discovery Req is a signal that requests the transmission of the other party's SC.
[0048] When the AP80 receives a Discovery Req from the terminal 10 in T130, the AP80 executes authentication of the Discovery Req. Specifically, the AP80 uses the second public key PKte2 included in the CO for AP to decrypt the electronic signature included in the SC for the terminal. When the authentication of the SC for the terminal is successful in response to the decryption of the electronic signature, the AP80 generates a connection key using the second public key PKte2 included in the CO for AP and the second private key skap2 stored in advance. Then, the AP80 transmits a Discovery Res including the SC for AP to the terminal 10 in T132.
[0049] When the terminal 10 receives a Discovery Res from the AP 80 in T132, it executes authentication of the Discovery Res. Specifically, the terminal 10 uses the second public key PKte2 generated in T122 to decrypt the electronic signature included in the SC for AP. When the authentication of the SC for AP is successful in response to the decryption of the electronic signature, the terminal 10 generates a connection key using the second public key PKap2 included in the SC for AP and the second secret key skte2 generated in T122. The connection key generated here is the same as the connection key generated by the AP 80. That is, the connection key is shared by the terminal 10 and the AP 80. The processing of T130 and T132 corresponds to Network Access in the DPP method.
[0050] Next, the terminal 10 uses the connection key to execute 4-way handshake communication with the AP 80. As a result, at T140, a Wi-Fi connection is established between the terminal 10 and the AP 80. As a result, the terminal 10 belongs to the wireless LAN 8 formed by the AP 80 as a child station. As a result, the terminal 10 and the AP 80 can mutually execute communication using the network layer or higher layers of the OSI reference model, that is, communication using IP addresses.
[0051] Thereafter, in response to an instruction from the user, the terminal 10 transmits, at T150, the specific information to the transfer server 300 on the Internet 4 via the AP 80 by using the Wi-Fi connection established at T140. The specific information includes each piece of information generated at T122 (i.e., the second public key PKte2, the second private key skte2, and the GroupID “xxx”).
[0052] In response to an instruction from a user, the PC 100 uses the printer application 142 to receive specific information from the transfer server 300 via the AP 80 at T152. Since the transfer server 300 is used, the communication of the specific information is executed securely. Note that the wired LAN 6 is used for communication between the PC 100 and the AP 80. Since the PC 100 receives the specific information from the terminal 10, in the process described below, the PC 100 operates as a configurator in place of the terminal 10 and can use the specific information to establish a Wi-Fi connection between each of the printers 200A, 200B and the AP 80.
[0053] (Identifying the target printer: Figure 4) 4, a process will be described in which the PC 100 identifies, from among the printers 200A to 200D, the target printers (200A and 200B in this case) that should establish a Wi-Fi connection with the AP 80. All of the following processes executed by the PC 100 are realized by the DPP application 42.
[0054] In FIG. 4 and FIG. 5, all communications performed by the PC 100 are performed via the wired interface 122. Therefore, in the following, when describing communications performed by the PC 100, the description "via the wired interface 122" is omitted. In FIG. 4, all communications performed by each of the printers 200A to 200C are performed via a wired interface (e.g., 222). Therefore, in FIG. 4, when describing communications performed by each of the printers 200A to 200C, the description "via the wired interface" is omitted. In addition, all communications performed by the printer 200D are performed via a Wi-Fi interface. Therefore, when describing communications performed by the printer 200D, the description "via the Wi-Fi interface" is omitted. Note that the communications between the PC 100 and the printer 200D include wired communications between the PC 100 and the AP 80 and wireless communications between the AP 80 and the printer 200D. However, in FIG. 4, the communications between the PC 100 and the printer 200D are represented by solid lines.
[0055] When the printers 200A, 200B are delivered to the company XXX, the printers 200A, 200B are connected to the wired LAN 6. This allows the PC 100 and the printers 200A-200D to mutually execute communications using the network layer or higher layers of the OSI reference model, that is, communications using IP addresses. The IP addresses of the PC 100 and the printers 200A-200D may be so-called static IP addresses set by the user, or may be IP addresses assigned by an IP address assignment server such as DHCP (abbreviation for Dynamic Host Configuration Protocol).
[0056] In T200, PC100 transmits a search signal including the IP address IPpc of PC100 as a source address to wired LAN6. The search signal is a signal with no specific IP address specified as the destination address, that is, a broadcast signal. The search signal is a signal conforming to SNMP (abbreviation of Simple Network Management Protocol) and is a signal requesting transmission of information indicating whether the DPP method is supported, information indicating whether a Wi-Fi connection with AP80 has been established, and the node name of the printer. In a modified example, the search signal may be, for example, a multicast signal conforming to mDNS (abbreviation of multicast Domain Name System). Also, in a modified example, a serial number may be used instead of the node name.
[0057] When the printer 200A receives a search signal from the PC 100 in T200, the printer 200A transmits a response signal including the IP address IPpc of the PC 100 as a destination address in T201. That is, the printer 200 transmits a response signal to the PC 100 with the IP address IPpc as the destination. The response signal includes the IP address IPpra of the printer 200A as a source address. The response signal further includes information indicating that the DPP method is supported (hereinafter referred to as "support information"), information indicating that a Wi-Fi connection with the AP 80 has not been established (hereinafter referred to as "unconnected information"), and the node name "123" of the printer 200A.
[0058] Similarly, in T202 to T204, each of printers 200B to 200D transmits a response signal to PC 100. The response signal from printer 200B (see T202) includes the IP address IPprb of printer 200B as the source address, as well as support information, unconnected information, and the node name of printer 200B, "234." The response signal from printer 200C (see T203) includes the IP address IPprc of printer 200C as the source address, as well as information indicating that the DPP method is not supported (hereinafter referred to as "unsupported information"), unconnected information, and the node name of printer 200C, "345." The response signal from printer 200D (see T204) includes the IP address IPprd of printer 200D as the source address, as well as support information, information indicating that a Wi-Fi connection with AP80 has been established (hereinafter referred to as "connected information"), and the node name of printer 200D, "456."
[0059] In steps T201 to T204, the PC 100 receives a response signal from each of the printers 200A to 200D, and thereby acquires each piece of information in each response signal (i.e., the printer's IP address, supported or unsupported information, connected or unconnected information, and the printer's node name).
[0060] Next, in T210, the PC 100 identifies, from among the printers 200A to 200D, a target printer with which a Wi-Fi connection with the AP 80 should be newly established. In case A, the PC 100 identifies, as the target printers, the printers 200A and 200B that have transmitted a response signal including support information and unconnected information. The PC 100 does not identify, as the target printer, the printer 200C that has transmitted a response signal including unsupported information. This makes it possible to avoid performing the process described below for establishing a Wi-Fi connection for the printer 200C that cannot establish a Wi-Fi connection with the AP 80 according to the DPP method. Furthermore, the PC 100 does not identify, as the target printer, the printer 200D that has transmitted a response signal including connected information. This makes it possible to avoid performing the process described below for establishing a Wi-Fi connection for the printer 200D that has already established a Wi-Fi connection with the AP 80.
[0061] In T212, the PC 100 displays on the display unit 114 a selection screen including the node names "123" and "234" of the printers 200A and 200B identified in T210. The selection screen includes a message prompting the user to select a device with which a Wi-Fi connection with the AP 80 should be established. Since the selection screen is displayed in this manner, the user can select a printer with which a Wi-Fi connection with the AP 80 should be established. In T214, the PC 100 accepts an operation from the user to select the two node names "123" and "234". When T214 ends, the process proceeds to the process of FIG. 5 for establishing a Wi-Fi connection between the printers 200A and 200B and the AP 80.
[0062] Here, assume a case B in which only the printer 200A of the printers 200A and 200B is connected to the wired LAN 6. In this case, the PC 100 does not receive the response signal of T202, and as a result, in T210, only the printer 200A is specified as the target printer. In this case, the PC 100 does not display the selection screen (see T212), does not accept an operation to select a node name, and proceeds to the process of FIG. 5. In this case, the process to establish a Wi-Fi connection between the printer 200B and the AP 80 is not executed, and only the process to establish a Wi-Fi connection between the printer 200A and the AP 80 is executed. In this way, when only the printer 200A is specified as the target printer, the process to establish a Wi-Fi connection between the printer 200A and the AP 80 is executed without displaying the selection screen. Since the user does not need to select the printer 200A, the user's convenience is improved.
[0063] (Establishing a Wi-Fi connection between each printer 200A, 200B and AP80: Figure 5) Next, the process following case A in Fig. 4 will be described with reference to Fig. 5. The process in Fig. 5 is a process for connecting each of the printers 200A and 200B to the AP 80 using the PC 100.
[0064] 5, all communications with the PC 100 performed by each of the printers 200A and 200B are performed via a wired interface (e.g., 222). Also, all communications with the AP 80 performed by each of the printers 200A and 200B are performed via a Wi-Fi interface (e.g., 220). Therefore, in FIG. 5, when describing communications performed by each of the printers 200A and 200B, the descriptions "via a wired interface" and "via a Wi-Fi interface" are omitted.
[0065] First, in T250, the PC 100 generates authentication information for the PC 100 by using the MAC address of the Wi-Fi interface 120. The authentication information includes a public key PKpc and a private key skpc corresponding to the public key PKpc.
[0066] Next, PC 100 identifies the IP address IPpra contained in the response signal (see T201) received from printer 200A having the node name "123" selected in T214 of Fig. 4. Then, in T300, PC 100 transmits a DPP start request to printer 200A, which includes IP address IPpc as the source address and the identified IP address IPpra as the destination address. Hereinafter, all signals transmitted from PC 100 to printer 200A include IP address IPpc as the source address and IP address IPpra as the destination address. Therefore, a description of this point will be omitted below. The DPP start request is a signal that requests printer 200A to start processing according to the DPP method.
[0067] In response to receiving a DPP start request from PC 100 in T300, printer 200A acquires the IP address IPpc of PC 100. Then, printer 200A recognizes that processing according to the DPP method should be started, and in T302 transmits a transmission request to PC 100. The transmission request includes IP address IPpra as the source address and the acquired IP address IPpc as the destination address. Hereinafter, all signals transmitted from printer 200A to PC 100 include IP address IPpra as the source address and IP address IPpc as the destination address. Therefore, the following description of this point will be omitted. The transmission request is a signal that requests PC 100 to transmit PC 100's public key PKpc.
[0068] When the PC 100 receives a transmission request from the printer 200A in T302, the PC 100 transmits response information including the public key PKpc to the printer 200A in T304.
[0069] In T304, the printer 200A receives response information from the printer 200A, thereby acquiring the public key PKpc of the PC 100. Next, in T306, the printer 200A generates a first set of authentication information and a second set of authentication information for the printer 200A using the MAC address of the Wi-Fi interface 220. The first set of authentication information includes a first public key PKpra1 and a first private key skpra1 corresponding to the first public key PKpra1. The second set of authentication information includes a second public key PKpra2 and a second private key skpra2 corresponding to the second public key PKpra2. The printer 200A further transitions the state of the printer 200A from a state in which Auth Res cannot be transmitted to a state in which Auth Res can be transmitted in response to receiving Auth Req.
[0070] Next, in T310, printer 200A transmits an Auth Req using the public key PKpc received in T304 to PC 100. This Auth Req is similar to the Auth Req in T110 in Fig. 3, except that it uses the public key PKpc of PC 100 and the first set of authentication information for printer 200A generated in T306 (i.e., public key PKpra1 and private key skpra1). The Capability of printer 200A includes a value indicating that it can operate only as an Enrollee.
[0071] When the PC 100 receives an Auth Req from the printer 200A in T310, it executes authentication of the Auth Req. This authentication is similar to the authentication of the Auth Req in T110 of Fig. 3, except that the public key PKpra1 included in the Auth Req and the private key skpc generated in T250 are used. Next, the PC 100 transmits an Auth Res to the printer 200A in T312. This Auth Res is similar to the Auth Res in T112 of Fig. 3, except that the public key PKpra1 included in the Auth Req and the second set of authentication information of the terminal 10 received in T152 of Fig. 3 (i.e., the public key PKte2 and the private key skte2) are used. The Capability of the PC 100 includes a value indicating that it can operate only as a Configurator.
[0072] When printer 200A receives Auth Res from PC 100 in T312, it executes authentication of Auth Res. This authentication is the same as the authentication of Auth Res in T112 in Fig. 3, except that public key PKte2 included in Auth Res and private key skpra1 generated in T306 are used. T313 to T320 executed thereafter are the same as T113 to T120 in Fig. 3.
[0073] When the PC100 receives a Cofig Req from the printer 200A in T320, it generates a CO for the printer. The method of generating the CO for the printer is the same as the method of generating the CO for the AP in response to the Cofig Req in T120 in FIG. 3. The CO for the printer includes the SC210A for the printer and the second public key PKte2 received in T152 in FIG. 3. The SC210A for the printer includes, for example, the second public key PKpra2 included in the Cofig Req received in T320, the GroupID "xxx" received in T152 in FIG. 3, and an electronic signature obtained using the second private key skte2 received in T152. Then, the PC100 transmits a Cofig Res including the CO for the printer to the printer 200A in T324. T326 is the same as T126 in FIG. 3.
[0074] 3, except that the printer SC 210A is used instead of the terminal SC. Then, in T340, a Wi-Fi connection is established between the printer 200A and the AP 80. As a result, the printer 200A belongs as a child station to the wireless LAN 8 in which the AP 80 operates as a parent station.
[0075] When the printer 200A establishes a Wi-Fi connection with the AP 80 in T340, the printer 200A transmits a Status Query Result (hereinafter, referred to as "Result") indicating that the Wi-Fi connection has been established to the PC 100 without going through the AP 80 (i.e., by using the wired LAN 6) in T350. This enables the printer 200A to notify the PC 100 that the Wi-Fi connection has been established.
[0076] When the PC 100 receives a Result from the printer 200A in T350, it executes communication with the printer 200B in the same manner as in T300 to T324. In this manner, the PC 100 starts processing for establishing a Wi-Fi connection between the printer 200B and the AP 80 after a Wi-Fi connection is established between the printer 200A and the AP 80. This makes it possible to prevent the occurrence of an event in which a plurality of printers 200A and 200B simultaneously execute Network Access (i.e., the processing of T330 and T332) with the AP 80. If this event were to occur, the communication load and processing load of the AP 80 would increase, and as a result, there is a possibility that the AP 80 would not be able to establish a Wi-Fi connection with any of the printers. According to this embodiment, it is possible to prevent the occurrence of this event, and therefore it is possible to appropriately establish a Wi-Fi connection between each of the printers 200A and 200B and the AP 80.
[0077] Printer 200B establishes a Wi-Fi connection with AP 80 at T360 by executing the same processes as those in T300 to T332. As a result, printer 200B also belongs as a child station to wireless LAN 8 in which AP 80 operates as a parent station. Therefore, each of printers 200A and 200B can receive print data from terminal 10 via AP 80, for example, and print an image represented by the print data. Also, each of printers 200A and 200B can communicate with a server (not shown) on Internet 4 via AP 80.
[0078] T370 is the same as T350. When the PC 100 receives Results from all the printers 200A, 200B selected in T214 of FIG. 4, it displays a completion screen on the display unit 114 (not shown). This allows the user to know that a Wi-Fi connection has been established between each of the printers 200A, 200B and the AP 80. Then, the user disconnects the wired cables from each of the printers 200A, 200B, thereby disconnecting the printers 200A, 200B from the wired LAN 6. This ends the processing of this embodiment.
[0079] (Effects of the embodiment) The PC 100 uses the wired LAN 6 to send a DPP start request including the IP address IPpc to the printer 200A (T300 in FIG. 5). Therefore, the PC 100 can receive a transmission request sent from the printer 200A with the IP address IPpc as the destination (T302), and send the public key PKpc to the printer 200A (T304). For this reason, the PC 100 can receive an Auth Req sent from the printer 200A with the IP address IPpc as the destination, which uses the public key PKpc (T310). Then, the PC 100 uses the wired LAN 6 to send an Auth Res to the printer 200A (T312), and further sends the printer SC 210A to the printer 200A (T324). For this reason, the PC 100 can appropriately establish a Wi-Fi connection between the printer 200A and the AP 80 (T340). Similarly, the PC 100 uses the wired LAN 6 to send a DPP start request including the IP address IPpc to the printer 200B (T300 in FIG. 5 which refers to the printer 200B). Therefore, the PC 100 can execute communication with the printer 200B using the wired LAN 6, and as a result, a Wi-Fi connection can be properly established between the printer 200B and the AP 80 (T360).
[0080] For example, the following comparative example is assumed in which the PC 100 is not used. In the comparative example, the user of the terminal 10 displays the public key PKpra1, etc. on each of the printers 200A, 200B, and has the terminal 10 read the displayed public key PKpra1, etc. In this case, the terminal 10 can obtain the public key PKpra1, etc. of each of the printers 200A, 200B, and can transmit the Auth Req and the printer SC to each of the printers 200A, 200B. However, according to the configuration of the comparative example, the user must perform an operation to display the public key and an operation to read the displayed public key for each of the multiple printers 200A, 200B. This places a heavy workload on the user. In contrast, according to the present embodiment, the user does not need to perform these operations, and can easily establish a Wi-Fi connection between the multiple printers 200A, 200B and the AP 80 using the PC 100.
[0081] (Correspondence) The PC100, the terminal 10, the printer 200A, the printer 200B, and the AP80 are examples of a "first terminal device (or terminal device)", a "second terminal device", a "first communication device (or communication device)", a "second communication device", and an "external device". The printers 200A to 200D are examples of a "multiple communication devices", and the printers 200A and 200B are examples of "two or more communication devices". The wired LAN 6 is an example of a "communication network". The wired interface 122 of the PC100 is an example of a "first communication interface", a "second communication interface", and a "third communication interface" of the "first terminal device". The wired interface 222 of the printer 200A is an example of a "first communication interface" and a "second communication interface" of the "communication device". The Wi-Fi interface 220 of the printer 200A is an example of a "third communication interface" of the "communication device".
[0082] The IP address IPpc is an example of "address information" and "IP address". The public key PKpc is an example of "public key". The DPP start request of T300 in FIG. 5 is an example of "processing start request". The transmission request of T302 is an example of "first transmission request". The transmission request of T302 citing printer 200B is an example of "second transmission request". The Auth Req of T310 is an example of "first authentication request (or authentication request)". The Auth Req of T310 citing printer 200B is an example of "second authentication request". The Auth Res of T312 is an example of "first authentication response (or authentication response)". The Auth Res of T312 citing printer 200B is an example of "second authentication response". The printer-SC210A of T324 is an example of "first connection information (or connection information)". The printer SC of T324 that refers to printer 200B is an example of "second connection information."
[0083] The two node names "123" and "234" in the selection screen displayed by T210 in FIG. 4 are examples of "two or more device information." The node name "123" is an example of "specific device information." The DPP method is an example of a "predetermined wireless connection method." The SC for the AP of T132 in FIG. 3 is an example of "third connection information." The public key PKte2, private key skte2, and GroupID "xxx" included in the email of T150 are examples of "specific information."
[0084] The correspondence relationship regarding the "first terminal device" is as follows. The process of T152 in FIG. 3 is an example of a process executed by the "specific information receiving unit". The processes of T200 and T212 in FIG. 4 are examples of a process executed by the "search signal transmitting unit" and the "display control unit", respectively. The processes of T300, T302, T304, T310, T312, and T324 in FIG. 5 are examples of a process executed by the "first address information transmitting unit", "first transmission request receiving unit", "first public key transmitting unit", "first authentication request receiving unit", "first authentication response transmitting unit", and "first connection information transmitting unit", respectively. The processes T300, T302, T304, T310, T312, and T324 cited for printer 200B are examples of processes executed by a "second address information transmitting unit," a "second transmission request receiving unit," a "second public key transmitting unit," a "second authentication request receiving unit," a "second authentication response transmitting unit," and a "second connection information transmitting unit," respectively.
[0085] The correspondence relationship regarding the "communication device" is as follows. The process of T200 and the process of T201 in Fig. 4 are examples of the process executed by the "search signal receiving unit" and the "response signal transmitting unit", respectively. The process of T300, the process of T302, the process of T304, the process of T310, the process of T324, and the process of T340 in Fig. 5 are examples of the process executed by the "address information receiving unit", the "transmission request transmitting unit", the "public key receiving unit", the "authentication request transmitting unit", the "connection information receiving unit", and the "establishment unit", respectively.
[0086] Although specific examples of the present invention have been described above in detail, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and alterations of the specific examples exemplified above. Modifications of the above-mentioned embodiments are listed below.
[0087] (Modification 1) In T300 of FIG. 5, the PC 100 may send a DPP start request including the IP address IPpc and the public key PKpc to the printer 200A. In this case, T302 and T304 of FIG. 5 may be omitted. Generally speaking, the "first address information transmission unit" and the "first public key transmission unit" of the "first terminal device" may transmit the address information and the public key at different times as in the above embodiment, or may transmit the address information and the public key at the same time as in this modification. Also, the "address information reception unit" and the "public key reception unit" of the "communication device" may receive the address information and the public key at different times or at the same time. In this modification, the "first transmission request reception unit" of the "first terminal device" and the "transmission request transmission unit" of the "communication device" are not essential components.
[0088] (Variation 2) The PC 100 and the printer 200A may belong to, for example, a wireless network of Wi-Fi Direct (registered trademark) instead of the wired LAN 6. In this case, the PC 100 may transmit the IP address IPpc and the public key PKpc to the printer 200A via the Wi-Fi interface 120. Then, the PC 100 may execute communication with the printer 200A, such as a DPP start request, an Auth Req, and a printer CO, via the Wi-Fi interface 120. In this variation, the wireless network is an example of a "communication network." Also, the Wi-Fi interface 120 of the PC 100 is an example of a "first communication interface" of a "first terminal device," and the Wi-Fi interface 220 of the printer 200A is an example of a "first communication interface" of a "communication device."
[0089] (Variation 3) PC 100 and printer 200A may not execute communication using layers above the network layer of the OSI reference model (i.e., communication using IP addresses) in T200 and T201 of Fig. 4. That is, PC 100 and printer 200A may execute communication using only layers below the data link layer (i.e., communication without using IP addresses). In this case, PC 100 receives the printer wired MAC address, which is the MAC address of the wired interface 222 of printer 200A, in T201 of Fig. 4, and sends a DPP start request to printer 200A with the printer wired MAC address as the destination in T300 of Fig. 5. The DPP start request includes the PC wired MAC address, which is the MAC address of the wired interface 122 of PC 100, as the sender address. In this case, in each communication from T302 onwards, the printer wired MAC address and the PC wired MAC address are used, without using IP addresses. In this variation, the PC wired MAC address is an example of "address information".
[0090] (Modification 4) In T201 of FIG. 4, the PC 100 may further receive a wireless MAC address, which is the MAC address of the Wi-Fi interface 220 of the printer 200A. In this case, the PC 100 may execute wireless communication using the wireless MAC address (i.e., communication using only the layers below the data link layer of the OSI reference model) instead of wired communication in T310 to T324. That is, the PC 100 may execute communication of Auth Req and printer SC 210A with the printer 200A via the Wi-Fi interface 120. In this modification, the Wi-Fi interface 120 of the PC 100 is an example of a "second communication interface" of the "first terminal device", and the Wi-Fi interface 220 of the printer 200A is an example of a "second communication interface" of the "communication device". Generally speaking, the "second communication interface" may be the same interface as the "first communication interface" as in the above embodiment, or may be an interface different from the "first communication interface" as in this modification.
[0091] (Variation 5) The PC 100 may establish a Wi-Fi connection with the AP 80. The AP 80 and the printers 200A and 200B may be connected to a wired network. In this case, the PC 100 transmits a DPP start request to the AP 80 using the wireless network at T300 in FIG. 5. As a result, the AP 80 transmits a DPP start request to the printer 200A using the wired network. Subsequent communications between the PC 100 and the printer 200A (T302, T304, T310, etc.) also use both the wireless network and the wired network. Generally speaking, the "communication network" may include only a wired communication path as in the above embodiment, or may include both a wired communication path and a wireless communication path as in this variation.
[0092] (Variation 6) As shown in case B of Fig. 4, printer 200B does not have to be used. In this case, in Fig. 5, T300 to T332 cited for printer 200B can be omitted, and T360 and T370 can be omitted. In this variation, the "second address information transmitter", "second transmission request receiver", "second public key transmitter", "second authentication request receiver", "second authentication response transmitter", and "second connection information receiver" of the "first terminal device" can be omitted.
[0093] (Variation 7) In T200 of FIG. 4, the printer 200A may periodically transmit information including the IP address IPpra to the wired LAN 6 without receiving a search signal from the PC 100. In this case, the PC 100 can receive the IP address IPpra from the printer 200A without transmitting a search signal to the wired LAN 6. In this variation, the "search signal transmitting unit" of the "first terminal device" and the "search signal receiving unit" of the "communication device" can be omitted.
[0094] (Variation 8) T350 in Fig. 5 can be omitted. In this case, after PC 100 transmits Config Res to printer 200A in T324 in Fig. 5, PC 100 may execute communication from T300 to T324 with printer 200B without receiving Result from printer 200A. That is, PC 100 may execute communication from T300 to T324 with printer 200B before the Wi-Fi connection in T340 in Fig. 5 is established. Generally speaking, the "second connection information transmission unit" of the "first terminal device" may transmit the second connection information to the second communication device before the first wireless connection is established.
[0095] (Modification 9) T212 and T214 in Fig. 4 can be omitted. In this modification, the "display control unit" of the "first terminal device" can be omitted.
[0096] (Variation 10) Printer 200A etc. that supports the DPP method may be configured to transmit response signals such as T201 in Fig. 4 to PC 100, and printer 200C that does not support the DPP method may be configured not to transmit response signal T203 to PC 100. In this way, when a configuration is adopted in which only printers that support the DPP method transmit response signals, the response signal does not need to include information indicating whether or not the DPP method is supported. Generally speaking, the "first terminal device" does not need to receive a response signal that includes support information.
[0097] (Variation 11) Printer 200A, etc. that has not established a Wi-Fi connection with AP 80 may be configured to transmit a response signal such as T201 in FIG. 4 to PC 100, and printer 200D that has established a Wi-Fi connection with AP 80 may be configured not to transmit a response signal of T204 to PC 100. In this way, when a configuration is adopted in which only printers that have not established a Wi-Fi connection with AP 80 transmit response signals, the response signal does not need to include information indicating whether or not a Wi-Fi connection with AP 80 has been established. Generally speaking, the "first terminal device" does not need to receive a response signal that includes connected information.
[0098] (Variation 12) In case B of Fig. 4, the PC 100 may display a selection screen including only the node name "123." Generally speaking, the "display control unit" of the "first terminal device" may display a device selection screen when a response signal is received only from the first communication device.
[0099] (Modification 13) The PC 100 may execute the processes of T100 to T140 in Fig. 3 instead of the terminal 10. In this case, the processes of T150 and T152 can be omitted. In this modification, the "specific information receiving unit" of the "first terminal device" can be omitted.
[0100] (Modification 14) Instead of T150 and T152 in FIG. 3, the PC 100 may execute wireless communication such as NFC (abbreviation of Near Field Communication) communication or BT (abbreviation of Bluetooth (registered trademark)) communication to receive the public key PKte2, the secret key skte2, and the GroupID "xxx" from the terminal 10. In this modification, a wireless communication interface such as an NFC interface or a BT interface is an example of a "third communication interface" of the "first terminal device". In another modification, the communication of specific information between the PC 100 and the terminal 10 may be communication of an e-mail including specific information with a password, or may be network communication using HTTPS (abbreviation of Hyper Text Transfer Protocol Secure) (i.e., communication using the wired LAN 6 and the wireless LAN 8). Here, the above network communication may be realized, for example, by the terminal 10 operating as a client and the PC 100 operating as a server.
[0101] (Modification 15) The "first communication device (or communication device)" does not have to be a printer, and may be other devices such as a scanner, a multi-function device, a mobile terminal, a PC, or a server.
[0102] (Modification 16) The "external device" does not have to be the AP 80, and may be, for example, the PC 100. That is, in this modification, a Wi-Fi connection is established between the PC 100 and the printer 200A.
[0103] 3 to 5 are realized by software (i.e., programs 40, 42, 140, 142, and 240). Alternatively, at least one of these processes may be realized by hardware such as a logic circuit.
[0104] In addition, the technical elements described in this specification or drawings exert technical utility alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technologies exemplified in this specification or drawings achieve multiple objectives simultaneously, and achieving one of those objectives is itself technically useful. [Explanation of symbols]
[0105] 2: communication system, 4: Internet, 6: wired LAN, 10: terminal, 12: operation unit, 14: display unit, 16: camera, 20: Wi-Fi interface, 30: control unit, 32: CPU, 34: memory, 40: OS program, 42: DPP application, 100: PC, 112: operation unit, 114: display unit, 120: Wi-Fi interface, 122: wired interface, 130: control unit, 132: CPU, 134: memory, 140: OS program, 142: printer application, 200A to 200D: printer, 212: operation unit, 214: display unit, 218: print execution unit, 220: Wi-Fi interface, 222: wired interface, 230: control unit, 232: CPU, 234: memory, 240: program
Claims
1. A computer program for a first terminal device, comprising: The first terminal device comprises one or more communication interfaces and a computer; The computer program causes the computer to: a first address information transmitting unit that transmits address information, which is an IP address of the first terminal device, to the first communication device via a first communication interface of the one or more communication interfaces by utilizing a communication network to which the first terminal device and the first communication device belong; a first public key transmission unit that transmits a public key of the first terminal device to the first communication device via the first communication interface by using the communication network; a first authentication request receiving unit that receives, when the address information and the public key are transmitted to the first communication device, a first authentication request transmitted from the first communication device via the first communication interface using the communication network and addressed to the address information, the first authentication request using the public key; a first authentication response transmission unit that transmits a first authentication response to the first communication device via the first communication interface, using the communication network, in response to receiving the first authentication request from the first communication device; a first connection information transmission unit that transmits first connection information to the first communication device via the first communication interface by using the communication network when the first authentication response is transmitted to the first communication device, the first connection information being information used by the first communication device to establish a first wireless connection between the first communication device and an external device; A computer program that functions as a
2. The computer program further causes the computer to a second address information transmitting unit that transmits the address information to the second communication device via the first communication interface by utilizing the communication network to which a second communication device different from the first communication device also belongs; a second public key transmission unit that transmits the public key to the second communication device via the first communication interface by using the communication network; a second authentication request receiving unit that receives, when the address information and the public key are transmitted to the second communication device, a second authentication request transmitted from the second communication device via the first communication interface over the communication network and addressed to the address information, the second authentication request using the public key; a second authentication response transmission unit that transmits a second authentication response to the second communication device via the first communication interface, using the communication network, in response to receiving the second authentication request from the second communication device; a second connection information transmission unit that transmits second connection information to the second communication device via the first communication interface by using the communication network when the second authentication response is transmitted to the second communication device, the second connection information being information used by the second communication device to establish a second wireless connection between the second communication device and the external device; The computer program product of claim 1 .
3. A computer program for a first terminal device, comprising: The first terminal device comprises one or more communication interfaces and a computer; The computer program causes the computer to: a first address information transmitting unit that transmits address information of the first terminal device to the first communication device via a first communication interface of the one or more communication interfaces by utilizing a communication network to which the first terminal device and a first communication device belong; a first transmission request receiving unit that receives a first transmission request transmitted from the first communication device via the first communication interface using the communication network when the address information is transmitted to the first communication device, the first transmission request being a signal requesting the first terminal device to transmit a public key of the first terminal device; a first public key transmission unit that transmits the public key to the first communication device via the first communication interface, using the communication network, in response to receiving the first transmission request from the first communication device; a first authentication request receiving unit that receives a first authentication request using the public key from the first communication device via a second communication interface of the one or more communication interfaces when the public key is transmitted to the first communication device; a first authentication response transmission unit that transmits a first authentication response to the first communication device via the second communication interface in response to receiving the first authentication request from the first communication device; a first connection information transmission unit that transmits first connection information to the first communication device via the second communication interface when the first authentication response is transmitted to the first communication device, the first connection information being information used by the first communication device to establish a first wireless connection between the first communication device and an external device; A computer program that functions as a
4. The computer program product of claim 3 , wherein the second communication interface is the first communication interface.
5. The computer program product according to claim 3 , wherein the address information is an IP address of the first terminal device.
6. The computer program further causes the computer to a second address information transmitting unit that transmits the address information to the second communication device via the first communication interface by utilizing the communication network to which a second communication device different from the first communication device also belongs; a second transmission request receiving unit that receives a second transmission request transmitted from the second communication device via the first communication interface using the communication network when the address information is transmitted to the second communication device, the second transmission request being a signal requesting the first terminal device to transmit the public key; a second public key transmission unit that transmits the public key to the second communication device via the first communication interface, using the communication network, in response to receiving the second transmission request from the second communication device; a second authentication request receiving unit that receives a second authentication request using the public key from the first communication device via the second communication interface when the public key is transmitted to the second communication device; a second authentication response transmission unit that transmits a second authentication response to the second communication device via the second communication interface in response to receiving the second authentication request from the second communication device; a second connection information transmission unit that transmits second connection information to the second communication device via the second communication interface when the second authentication response is transmitted to the second communication device, the second connection information being information used by the second communication device to establish a second wireless connection between the second communication device and the external device; 6. The computer program product according to claim 3, which causes the computer to function as follows:
7. 7. The computer program product according to claim 2, wherein the second connection information transmission unit transmits the second connection information to the second communication device after the first wireless connection is established between the first communication device and the external device.
8. The first terminal device further includes a display unit, The computer program further causes the computer to a search signal transmitting unit configured to transmit a search signal to the communication network via the first communication interface; a display control unit that, when a response signal is received from each of a plurality of communication devices via the first communication interface using the communication network in response to the transmission of the search signal, causes the display unit to display a device selection screen including two or more pieces of device information corresponding to two or more communication devices among the plurality of communication devices; Function as a 8. The computer program product according to claim 1, wherein the first address information sending unit sends the address information to the first communication device when specific device information corresponding to the first communication device is selected from the two or more device information on the device selection screen.
9. The device selection screen includes: The response signal includes the two or more pieces of device information corresponding to the two or more communication devices that are the transmission sources of the response signal including the support information, does not include device information corresponding to a communication device that is a source of the response signal that does not include the support information; 9. The computer program product according to claim 8, wherein the support information is information indicating that the communication device that transmitted the response signal supports a predetermined wireless connection method for executing communication of an authentication request using a public key.
10. The device selection screen includes: the two or more pieces of device information corresponding to the two or more communication devices that are transmission sources of the response signal that includes the support information and does not include connected information; does not include device information corresponding to a communication device that is a transmission source of the response signal including the connected information, The computer program product according to claim 9 , wherein the already-connected information is information indicating that a communication device that is a source of the response signal has already established a wireless connection with the external device.
11. When the response signal is received only from the first communication device in response to the transmission of the search signal, the device selection screen is not displayed; 11. The computer program product according to claim 9 or 10, wherein the first address information sending unit sends the address information to the first communication device without the specific device information being selected on the device selection screen when the response signal is received only from the first communication device.
12. the first address information transmission unit transmits the address information to the first communication device when support information is received from the first communication device via the first communication interface by using the communication network; if the support information is not received from the first communication device, the address information is not transmitted; 12. The computer program product according to claim 1, wherein the support information is information indicating that the first communication device supports a predetermined wireless connection method for executing communication of an authentication request using a public key.
13. The computer program product of claim 1 , wherein the communications network includes a wired communications path.
14. The computer program product of claim 13 , wherein the first communication interface is a wired interface for performing wired communication.
15. The computer program further causes the computer to a specific information receiving unit that receives specific information from a second terminal device different from the first terminal device via a third communication interface among the one or more communication interfaces, the second terminal device generating third connection information using the specific information and transmitting the generated third connection information to the external device that is an access point, the third connection information being information used by the external device to establish the first wireless connection between the first communication device and the external device; 15. The computer program product according to claim 1, wherein the first connection information transmission unit generates the first connection information by using the identification information and transmits the generated first connection information to the first communication device.
16. A communication device, comprising: one or more communication interfaces; an address information receiving unit that receives address information, which is an IP address of the terminal device, from the terminal device via a first communication interface of the one or more communication interfaces by utilizing a communication network to which the communication device and the terminal device belong; a public key receiving unit that receives a public key of the terminal device from the terminal device via the first communication interface by using the communication network; an authentication request sending unit that, when the address information and the public key are received from the terminal device, sends an authentication request using the public key to the terminal device via the first communication interface, using the communication network and address information as a destination; a connection information receiving unit that receives connection information from the terminal device via the first communication interface using the communication network when an authentication response is received from the terminal device via the first communication interface using the communication network in response to the authentication request being transmitted to the terminal device, the connection information being information used by the communication device to establish a wireless connection between the communication device and an external device; an establishment unit that, when the connection information is received from the terminal device, establishes the wireless connection between the communication device and the external device via a third communication interface among the one or more communication interfaces by using the connection information; A communication device comprising:
17. 1. A communication device, comprising: one or more communication interfaces; an address information receiving unit that receives address information of the terminal device from the terminal device via a first communication interface of the one or more communication interfaces by utilizing a communication network to which the communication device and the terminal device belong; a transmission request transmitting unit that, when the address information is received from the terminal device, transmits a transmission request to the terminal device via the first communication interface using the communication network, with the address information as a destination, the transmission request being a signal requesting the terminal device to transmit a public key of the terminal device; a public key receiving unit that receives the public key from the terminal device via the first communication interface, using the communication network, in response to the transmission request being transmitted to the terminal device; an authentication request sending unit that, when the public key is received from the terminal device, sends an authentication request using the public key to the terminal device via a second communication interface among the one or more communication interfaces; a connection information receiving unit that receives connection information from the terminal device via the second communication interface when an authentication response is received from the terminal device via the second communication interface in response to the authentication request being transmitted to the terminal device, the connection information being information used by the communication device to establish a wireless connection between the communication device and an external device; an establishment unit that, when the connection information is received from the terminal device, establishes the wireless connection between the communication device and the external device via a third communication interface among the one or more communication interfaces by using the connection information; A communication device comprising:
18. The communication device of claim 17 , wherein the second communication interface is the first communication interface.
19. 19. The communication device according to claim 17, wherein the address information is an IP address of the terminal device.
20. The communication device according to any one of claims 16 to 19, wherein the address information receiving unit receives the address information by receiving, from the terminal device, a processing start request for requesting the start of processing according to a predetermined wireless connection method, the processing start request including the address information as a source address.
21. The communication device further comprises: a search signal receiving unit that receives a search signal from the terminal device via the first communication interface by using the communication network; a response signal transmitting unit configured to transmit a response signal to the terminal device in response to receiving the search signal from the terminal device; the address information receiving unit receives the process start request from the terminal device when the response signal not including connected information is transmitted to the terminal device; When the response signal including the connected information is transmitted to the terminal device, the process start request is not received, The communication device according to claim 20 , wherein the connected information is information indicating that the communication device has already established a wireless connection with the external device.
22. 22. The communications device of claim 16, wherein the communications network includes a wired communications path.
23. the first communication interface is a wired interface for performing wired communication; The communication device according to claim 22, wherein the third communication interface is a wireless interface for performing wireless communication in accordance with the Wi-Fi standard.
Citation Information
Patent Citations
Communication device, control of the same, and program
JP2018046435A
Computer program for terminal, and terminal
JP2020053934A
Communication device, control method, and program
JP2020072442A
Device default WIFI credentials for simplified and secure configuration of networked transducers
US20190313246A1
Communication device, communication method, and program
WO2020054365A1
