Computer program for a terminal device and a communication device

The computer program for a terminal device facilitates communication with an Internet server by managing LAN connections and providing user feedback, addressing the challenge of printer-server communication in existing technologies.

JP7715265B2Active Publication Date: 2025-07-30BROTHER KOGYO KK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024145224
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2025-07-30
Estimated Expiration
2040-05-22

AI Technical Summary

Technical Problem

Existing techniques do not consider the possibility of allowing a printer to communicate with a server on the Internet.

Method used

A computer program for a terminal device that includes a communication interface for LAN and a computer, enabling the terminal device to attempt communication with an Internet server, transmit connection information to a communication device, and manage communication attempts with a server using a specific LAN, allowing the communication device to connect to the LAN and communicate with the server when successful.

Benefits of technology

Enables the communication device to successfully communicate with an Internet server by managing communication attempts and providing user feedback on connection status, allowing for seamless setup and registration with the server when direct communication fails.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007715265000001
    Figure 0007715265000001
  • Figure 0007715265000002
    Figure 0007715265000002
  • Figure 0007715265000003
    Figure 0007715265000003
Patent Text Reader

Abstract

To provide a technique to allow a communication device to communicate with a server on the Internet.SOLUTION: A computer program for a terminal device causes a computer to function as the following units, namely, a first trial unit that executes first trial processing of trying to communicate with a server on the Internet via a communication interface with use of a specific LAN to which the terminal device is currently connected, and a connection information transmission unit that, when the trial to communicate with the server is successful in the first trial processing, transmits connection information to a communication device different from the terminal device, and when a specific condition is satisfied including a failure in the trial to communicate with the server in the first trial processing, does not transmit the connection information to the communication device, wherein the connection information is information for connecting the communication device to the specific LAN.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This specification relates to a technique for connecting a communication device to a LAN (Local Area Network) using a terminal device. [Background technology]

[0002] Patent Document 1 discloses a terminal device that transmits a printer configuration object conforming to the DPP (Device Provisioning Protocol) method to a printer. The printer uses the printer configuration object to establish a Wi-Fi connection with an access point. The terminal then transmits print data to the printer via the access point using the Wi-Fi connection. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 2019-180041 [Non-patent literature]

[0004] [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]

[0005] The above techniques do not take into consideration the possibility of allowing a printer to communicate with a server on the Internet.

[0006] SUMMARY OF THE INVENTION This specification provides techniques that allow a communication device to communicate with a server on the Internet.

Means for Solving the Problem

[0007] In a computer program for a terminal device disclosed by this specification, the terminal device includes a communication interface for executing communication using a LAN (abbreviation for Local Area Network) and a computer. The computer program causes the computer to function as the following parts: a first trial part that executes a first trial process of attempting to communicate with a server on the Internet via the communication interface using a specific LAN to which the terminal device is currently connected; and a connection information transmission part that, when a trial of communicating with the server in the first trial process is successful, transmits connection information to a communication device different from the terminal device, and when a specific condition including a failure of the trial of communicating with the server in the first trial process is satisfied, does not transmit the connection information to the communication device, where the connection information is information for connecting the communication device to the specific LAN.

[0008] According to the above configuration, when a trial of communicating with a server in the first trial process is successful, that is, when a specific LAN is a LAN capable of executing communication with the server, the terminal device transmits connection information to the communication device. As a result, the communication device can be connected to the specific LAN, and thus the communication device can communicate with a server on the Internet.

[0009] Also, in a computer program for a terminal device disclosed by this specification, the terminal device includes a communication interface for executing communication via a LAN (abbreviation for Local Area Network) and a computer. The computer program causes the computer to function as the following components: a connection information transmission unit that transmits connection information to a communication device different from the terminal device via the communication interface, where the connection information is information for connecting the communication device to a specific LAN to which the terminal device is currently connected; a trial request transmission unit that transmits a trial request to the communication device via the communication interface after the connection information is transmitted to the communication device, where the trial request is a request for causing the communication device to attempt communication with a server using the specific LAN, the server exists on the Internet, and the result of the trial is output by a predetermined output unit.

[0010] According to the above configuration, the communication device attempts communication with the server, and the result of the attempt is output. As a result, the user can know whether the communication device succeeds in attempting communication with the server on the Internet using the specific LAN. For this purpose, when the communication device fails to attempt communication with the server on the Internet using the specific LAN, the user can perform an operation for connecting the communication device to, for example, a LAN different from the specific LAN and capable of communicating with the server on the Internet. As a result, the communication device can communicate with the server on the Internet.

[0011] In addition, the communication device disclosed by this specification includes a communication interface for performing communication using a LAN (abbreviation for Local Area Network), a connection information receiving unit that receives connection information from a terminal device different from the communication device via the communication interface, where the connection information is information for connecting the communication device to a specific LAN to which the terminal device is currently connected, the connection information receiving unit, a connection control unit that uses the received connection information to connect the communication interface to the specific LAN, a trial request receiving unit that receives a trial request from the terminal device via the communication interface after the connection information is received from the terminal device, where the trial request is a request for causing the communication device to attempt communication with a server using the specific LAN, the server existing on the Internet, the trial request receiving unit, a trial unit that attempts communication with the server via the communication interface using the specific LAN after the trial request is received from the terminal device, and a second output control unit that causes result information indicating the result of the trial to be output to an output unit of the communication device.

[0012] According to the above configuration, the communication device outputs result information. As a result, the user can know whether the attempt by the communication device to communicate with a server on the Internet using a specific LAN is successful. For this purpose, when the attempt by the communication device to communicate with a server on the Internet using a specific LAN fails, the user can, for example, perform an operation for connecting the communication device to a LAN different from the specific LAN and capable of communicating with a server on the Internet. As a result, the communication device can communicate with a server on the Internet.

[0013] A computer-readable recording medium storing a computer program for the above-described terminal device, the terminal device itself, and a method executed by the terminal device are also novel and useful. A computer program for the above-described communication device, a computer-readable recording medium storing the computer program, and a method executed by the communication device are also novel and useful. Further, a communication system including a terminal device and a communication device is also novel and useful.

Brief Description of the Drawings

[0014]

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Embodiments for Carrying Out the Invention

[0015] (Configuration of Communication System 2; FIG. 1) As shown in FIG. 1, the communication system 2 includes an AP (abbreviation for Access Point) 6, a terminal 10, and two printers 100 and 200. The AP 6 can form a wireless LAN (abbreviation for Local Area Network), and by being connected to the Internet 8, it relays communication between devices on the wireless LAN (for example, the terminal 10) and devices on the Internet 8 (for example, the server 500). Each of the devices 10, 100, and 200 can communicate with the server 500 via the AP 6 and the Internet 8 by connecting to the wireless LAN. The server 500 is installed on the Internet 8 by the vendor of the printer (for example, 100). In a modified example, the server 500 may be installed on the Internet 8 by an operator different from the vendor of the printer (for example, 100).

[0016] The server 500 is a server for providing services related to the printer to the users of the printer. The services include, for example, a management service that receives information indicating the state of the printer (for example, the remaining amount of the coloring agent used in the printer) from the printer and manages the information. The management service is, for example, a service that sends a cartridge containing the coloring agent to the user of the printer when the current remaining amount of the coloring agent is below a predetermined threshold value.

[0017] In this embodiment, it is assumed that the AP 6, the printers 100 and 200 are installed in an office. The office administrator uses the terminal 10 to establish a wireless connection (hereinafter referred to as "Wi-Fi connection") according to the Wi-Fi method between the printer 100 and the AP 6 in order to receive the services provided by the server 500, and causes the printer 100 to execute communication for starting the services of the server 500.

[0018] (Configuration of the terminal 10; 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. In a modified example, the terminal 10 may be a stationary PC, a notebook PC, or the like. The terminal 10 includes an operation unit 12, a display unit 14, a Wi-Fi interface 16, a camera 18, and a control unit 30. Each unit 12 to 30 is connected to a bus line (reference numerals omitted). Hereinafter, the interface is simply referred to as "I / F". The camera 18 is a device for photographing an object, and in this embodiment, it is particularly used for photographing a QR code (registered trademark) for the AP6 and the printer 100.

[0019] The operation unit 12 includes a plurality of keys. The 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. Note that the display unit 14 may function as a touch panel (i.e., the operation unit 12).

[0020] The Wi-Fi I / F 16 is a wireless I / F for performing Wi-Fi communication according to the Wi-Fi standard. The Wi-Fi standard is a standard for performing wireless communication according to, for example, the 802.11 standard of the IEEE (abbreviation for The Institute of Electrical and Electronics Engineers, Inc.) and standards conforming thereto (e.g., 802.11a, 11b, 11g, 11n, etc.). The Wi-Fi I / F 16 supports the DPP (abbreviation for Device Provisioning Protocol) method established by the Wi-Fi Alliance. The DPP method is described in the standard document "Device Provisioning Protocol Specification Version 1.1.13" created by the Wi-Fi Alliance.

[0021] The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes according to programs 36 and 40 stored in the memory 34. The memory 34 is composed of a volatile memory, a non-volatile memory, etc. The OS (Operating System) program 36 is a program for executing basic control of the terminal 10. The connection application 40 (hereinafter simply referred to as "connection app 40") is a program for establishing a Wi-Fi connection between the printer 100 and the AP 6, and is installed on the terminal 10, for example, from a server (not shown) on the Internet provided by the vendor of the printer 100.

[0022] (Configuration of Printers 100 and 200; Figure 2) The printer 100 is a peripheral device capable of executing a printing function (e.g., a peripheral device of the terminal 10). In a modified example, the printer 100 may be a multifunctional device capable of executing a scanning function, a FAX function, etc. in addition to the printing function. The printer 100 includes an operation unit 112, a display unit 114, a Wi-Fi I / F 116, a printing execution unit 118, and a control unit 130. Each of the units 112 to 130 is connected to a bus line (reference numeral omitted). Note that the configuration of the printer 200 (see Figure 1) is the same as that of the printer 100.

[0023] 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 information. Note that the display unit 114 may function as a touch panel (i.e., the operation unit 112). 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 method. Also, the Wi-Fi I / F 116 has a MAC address "MACpr1". The printing execution unit 118 includes a printing mechanism such as an inkjet method or a laser method.

[0024] The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes according to the program 136 stored in the memory 134. The memory 134 is composed of a volatile memory, a non-volatile memory, etc.

[0025] (Setup of AP6; FIG. 3) Referring to FIG. 3, the setup of AP6 will be described. By this setup, a Wi-Fi connection is established between the terminal 10 and AP6. All the following communications executed by the terminal 10 are executed via the Wi-Fi I / F 16. Therefore, hereinafter, when describing the processes related to communications, the description of "via the Wi-Fi I / F 16" will be omitted. Also, hereinafter, for ease of understanding, the operations executed by the CPU of each device (e.g., CPU 32, etc.) will be described mainly with each device (e.g., terminal 10) as the subject instead of the CPU.

[0026] AP6 supports the DPP method. AP6 stores in advance the public key "PPKap" used for DPP method communications. And a QR code obtained by encoding the public key "PPKap" of AP6 and the MAC address "MACap" of AP6 is pasted on the housing of AP6.

[0027] When the terminal 10 receives a camera activation operation from the office administrator at T110, it activates the camera 18 and, at T112, takes a picture of the QR code of AP6. Then, at T114, the terminal 10 uses the connection app 40 to decode the captured QR code and obtains the public key "PPKap" and the MAC address "MACap". In other words, the processes at T112 and T114 are the DPP method Bootstrapping (hereinafter referred to as "BS") executed between the terminal 10 and the printer 100. Note that all the following processes executed by the terminal 10 are executed by the connection app 40.

[0028] When the BS ends, the terminal 10 executes DPP-based Authentication (hereinafter referred to as "Auth") with the AP6 at T120. Specifically, the terminal 10 first generates a shared key using the public key "PPKap" and the secret key of the terminal 10 (not shown), and generates encrypted data using the shared key. Then, the terminal 10 sends an Auth Request including the encrypted data and the public key of the terminal 10 (not shown) to the printer 100. The Request is a signal requesting the AP6 to execute authentication, and further includes information indicating that the terminal 10 operates as a Configurator. Hereinafter, the Request is referred to as "Req".

[0029] When the AP6 receives the Auth Req from the terminal 10, it executes authentication of the encrypted data included in the Auth Req. When the authentication is successful, the AP6 sends an Auth Response indicating success to the terminal 10. The Response includes information indicating that the AP6 operates as an Enrollee. Hereinafter, the Response is referred to as "Res". By executing the Auth, it is determined that the terminal 10 operates as a Configurator and the AP6 operates as an Enrollee.

[0030] When the AP6 sends the Auth Res to the terminal 10 (T120), at T130, it executes DPP-based Configuration (hereinafter referred to as "Config") with the terminal 10. Specifically, the AP6, which is an Enrollee, sends a Config Req to the terminal 10, which is a Configurator. The Req is a signal requesting the terminal 10 to send the AP CO. The AP CO is information used by the AP6 to establish a Wi-Fi connection between the terminal 10 and the AP6.

[0031] When the terminal 10 receives a Config Req from the AP6, it generates a CO for the AP. The CO for the AP includes an AP - specific Signed - Connector (hereinafter referred to as "SC"). Then, the terminal 10 transmits a Config Res including the CO for the AP to the AP6.

[0032] When the AP6 receives a Config Res from the terminal 10 (T130), at T132, it stores the CO for the AP in the memory (not shown) of the AP6.

[0033] Next, at T140, the terminal 10 executes DPP - based Network Access with the AP6. Specifically, first, the terminal 10 generates a CO for the terminal. The CO for the terminal includes a terminal - specific SC. The terminal 10 acquires the terminal - specific SC included in the generated CO for the terminal. Then, the terminal 10 transmits a DPP Peer Discovery Req including the SC to the AP6. The Req is a signal that requests the AP6 to execute authentication. Hereinafter, DPP Peer Discovery is simply referred to as "Discovery".

[0034] When the AP6 receives a Discovery Req from the terminal 10, it executes authentication using the terminal - specific SC included in the Req. When the authentication is successful, the AP6 generates a connection key and transmits a Discovery Res including the AP - specific SC in the CO for the AP to the terminal 10.

[0035] When the terminal 10 receives a Discovery Res from the AP6, it executes authentication using the AP - specific SC included in the Res. When the authentication is successful, the terminal 10 generates a connection key. The connection key generated here is the same as the connection key generated by the AP6. Thus, the connection key is shared between the terminal 10 and the AP6.

[0036] Terminal 10 uses the connection key to execute 4-way handshake communication with AP6. As a result, at T142, a Wi-Fi connection is established between terminal 10 and AP6. That is, terminal 10 (i.e., Wi-Fi I / F 16) is connected to the wireless LAN (hereinafter referred to as "specific wireless LAN") formed by AP6.

[0037] When AP6 establishes a Wi-Fi connection with terminal 10 at T142, at T150, it transmits a DPP Status Query Result in the DPP method (hereinafter simply referred to as "Result") to terminal 10. The Result includes information indicating that a Wi-Fi connection has been established between terminal 10 and AP6.

[0038] When terminal 10 receives the Result from AP6 at T150, at T160, it attempts to communicate with server 500 on the Internet 8 using the Wi-Fi connection of T142. Specifically, at T160A, terminal 10 transmits a PING signal destined for server 500 to AP6.

[0039] (Case A1) Case A1 is a case where the attempt to communicate with server 500 fails in the PING signal of T160A. The attempt fails when the response signal to the PING signal is not received by terminal 10. The reasons for failure include, for example, that AP6 is not connected to the Internet 8, that although AP6 is connected to the Internet 8, server 500 is disconnected from the Internet 8 due to maintenance of server 500, or that although AP6 and server 500 are connected to the Internet 8, the decryption or authentication of the PING signal fails.

[0040] When the terminal 10 determines that it does not receive a response signal to the PING signal of T160A, at T162, it causes the setup screen SR1 to be displayed on the display unit 14. The setup screen SR1 includes a message indicating that communication with the server 500 is unavailable, a "Cancel" button, and a "New" button. The "Cancel" button is a button for receiving an input of an instruction to cancel the setup of the printer 100 (Figure 4) described later. When the "Cancel" button is selected, the terminal 10 disconnects the Wi-Fi connection with the AP6 and restarts the camera 18 again to execute the AP and the BS with another AP.

[0041] Also, the "New" button is a button for receiving an input of an instruction for the setup of the printer (see Figure 4) described later. That is, even when communication with the server 500 is unavailable, the terminal 10 can receive an input of an instruction for the setup of the printer. According to such a configuration, the user can proceed with the setup of the printer before changing from a situation where communication with the server 500 is unavailable to a situation where communication is possible. The convenience for the user is improved.

[0042] (Case A2) Case A2 is a case where the attempt to communicate with the server 500 in the PING signal of T160A is successful. When the response signal to the PING signal is received by the terminal 10, the attempt is successful. For example, when the AP6 is connected to the Internet 8, at T160B, the AP6 transmits the PING signal received from the terminal 10 to the server 500. Then, at T164, the AP6 receives the response signal to the PING signal from the server 500 and transmits the response signal to the terminal 10. As a result, the response signal is received by the terminal 10.

[0043] When the terminal 10 determines that it has received a response signal to the PING signal of T160A, at T166, it causes the setup screen SR2 to be displayed on the display unit 14. The setup screen SR2 includes a message indicating that communication with the server 500 is possible and a "New" button. Here, the setup screen SR2 does not include a "Cancel" button. In other words, it is configured not to accept an input for instructing cancellation of the setup of the printer 100 (FIG. 4) described later. With such a configuration, it is possible to suppress the setup of the printer 100 described later from being erroneously canceled even though the attempt to communicate with the server 500 has been successful in the PING signal of T160A.

[0044] (Printer Setup; FIGS. 4 to 8) With reference to FIGS. 4 to 8, the setup of one or more printers will be described. In the printer setup, a Wi-Fi connection between the printer and the AP6 can be established. FIGS. 4 to 6 describe a case where the setup of the printer 100 is executed. FIG. 4 is a continuation of case A2 in FIG. 3 (i.e., a case where the attempt to communicate with the server 500 is successful). Also, in FIG. 7 described later, a case where the setup of the printer 200 is executed after the setup of the printer 100 will be described.

[0045] At T200, the printer 100 accepts a power-on operation from the office administrator, and at T202, it accepts a setting button operation for establishing a Wi-Fi connection between the printer 100 and the AP6. In this case, at T204, the printer 100 causes a QR code to be displayed on the display unit 114. The QR code is a code image in which information including the public key "PPKpr1" and the MAC address "MACpr1" that the printer 100 has stored is encoded.

[0046] At T210, the terminal 10 accepts an operation of selecting the "New" button in the setup screen SR2 of T166 in FIG. 3. T212 is the same as T112 in FIG. 3 except that the QR code of the printer 100 is photographed. T214 is the same as T114 in FIG. 3 except that the public key "PPKpr1" and the MAC address "MACpr1" are acquired.

[0047] T220 is the same as T120 in FIG. 3 except that Auth is executed between the terminal 10 and the printer 100. In T220, it is determined that the terminal 10 operates as a Configurator and the printer 100 operates as an Enrollee.

[0048] T230 is the same as T130 in FIG. 3 except that the first printer CO is transmitted from the terminal 10 to the printer 100. The first printer CO is information used by the printer 100 to establish a Wi-Fi connection between the printer 100 and the AP6. In other words, the first printer CO is information for connecting the printer 100 to a specific wireless LAN of the AP6. The first printer CO includes the first printer SC.

[0049] When the printer 100 receives the Config Res including the first printer CO from the terminal 10 (T230), at T232, it stores the first printer CO in the memory 134.

[0050] T240 is the same as T140 in FIG. 3 except that Network Access is executed between the printer 100 and the AP6 and the first printer SC is used.

[0051] (Case B1) Case B1 is a case where the Network Access in T240 fails. The cause of the Network Access failure is, for example, that the printer 100 is installed in a place where the radio wave of the AP6 cannot reach, the authentication method of the printer 100 is different from that of the AP6, etc.

[0052] When Network Access fails, the printer 100 transmits a Result including information indicating that the establishment of the Wi-Fi connection between the printer 100 and the AP6 has failed in T250 to the terminal 10.

[0053] When the terminal 10 receives the Result from the printer 100 in T250, in T252, it causes the setup screen SR3 to be displayed on the display unit 114. The setup screen SR3 includes a status table ST, a "Register" button, and a "New" button. The status table ST is a table for displaying the setup status of each of one or more printers. The status table ST in the setup screen SR3 includes a message "Connection failed" indicating that the establishment of the Wi-Fi connection with the AP6 has failed for the MAC address "MACpr1" of the printer 100.

[0054] The "Register" button is a button for receiving an input of a registration instruction. The registration instruction is an instruction for registering the MAC address of a printer (for example, the printer 100) in the server 500. The processing to be executed when the "Register" button is selected will be described later with reference to FIG. 8.

[0055] The "New" button in the setup screen SR3 is the same as the "New" button in the setup screen SR1 in FIG. 3. The processing when the "New" button in the setup screen SR3 is selected will be described later with reference to FIG. 7.

[0056] (Case B2) Case B2 is a case where Network Access in T240 is successful. In T262, a Wi-Fi connection is established between the printer 100 and the AP6. That is, the printer 100 (i.e., the Wi-Fi I / F 116) is connected to a specific wireless LAN of the AP6.

[0057] When Network Access is successful, the printer 100 transmits a Result containing information indicating the successful establishment of the Wi-Fi connection between the printer 100 and the AP6 to the terminal 10 at T270.

[0058] When the terminal 10 receives the Result from the printer 100 at T270, it causes the setup screen SR4 to be displayed on the display unit 114 at T272. The setup screen SR4 is the same as the setup screen SR3 except for the difference in the content of the status table ST. The status table ST in the setup screen SR4 includes a message "Setting up" indicating that the setup of the printer 100 is in progress for the MAC address "MACpr1" of the printer 100.

[0059] (Continuation of Case B2 in FIG. 4; FIG. 5) Subsequently, when the terminal 10 receives the Result from the printer 100 at T270 in FIG. 4, it attempts to communicate with the printer 100 at T280A using the Wi-Fi connection of T142 in FIG. 3 and the Wi-Fi connection of T262 in FIG. 4 (i.e., the specific wireless LAN of AP6). Specifically, at T280A, the printer 100 transmits a PING signal addressed to the printer 100 (i.e., the MAC address "MACpr1") to the AP6. Thereby, at T280B, the AP6 transmits the PING signal to the printer 100 using the specific wireless LAN of the AP6. Thereby, the terminal 10 can know whether communication with the printer 100 using the specific wireless LAN of the AP6 is possible.

[0060] (Case C1) Case C1 is a case where the attempt to communicate with the printer 100 fails in the PING signal at T280A. For example, when there is a defect in the network settings of the printer 100, the printer 100 does not transmit a response signal to the terminal 10 for the PING signal. As a result, the attempt to communicate with the printer 100 fails in the PING signal at T280A.

[0061] When the terminal 10 determines that it does not receive a response signal to the PING signal of T280A, at T282, it causes the setup screen SR5 to be displayed on the display unit 14. The setup screen SR5 is the same as the setup screen SR3 in FIG. 4, except for the difference in the content of the status table ST. The status table ST in the setup screen SR5 includes a message "Printer communication failure" indicating that communication with the printer 100 is not possible for the MAC address "MACpr1" of the printer 100.

[0062] (Case C2) Case C2 is a case where the attempt to communicate with the printer 100 in the PING signal of T280A is successful. This attempt is successful when the response signal to the PING signal is received by the terminal 10. For example, when there is no defect in the network settings of the printer 100, the printer 100 transmits a response signal to the PING signal to the terminal 10 using a specific wireless LAN of the AP6 at T284A and T284B. As a result, the response signal is received by the terminal 10. In this case, the display of the setup screen SR4 in FIG. 4 continues.

[0063] (Continuation of Case C2 in FIG. 5; FIG. 6) Subsequently, when the terminal 10 receives a response signal from the printer 100 at T284B in FIG. 5, at T300A and T300B, the terminal 10 transmits a PING transmission instruction to the printer 100 using a specific wireless LAN of AP6. The PING transmission signal is a request for causing the printer 100 to attempt communication with the server 500 using a specific wireless LAN of AP6. For example, a comparative example is assumed in which the PING transmission instruction is transmitted to the printer 100 using a P2P connection between the terminal 10 and the printer 100 without using a specific wireless LAN of AP6. In this comparative example, it is necessary to establish a P2P connection between the terminal 10 and the printer 200. On the other hand, in the present embodiment, since a specific wireless LAN is used, it is not necessary to establish a P2P connection. Therefore, the processing loads of the terminal 10 and the printer 200 can be reduced. The form of the P2P connection is, for example, WFD (abbreviation for Wi-Fi Direct (registered trademark)), SoftAP, or the like. In a modified example, the configuration of this comparative example may be adopted.

[0064] When the printer 100 receives a PING transmission instruction from the terminal 10 at T300B, at T302A, the printer 100 attempts communication with the server 500 on the Internet 8 using a specific wireless LAN of AP6. Specifically, at T302A, the printer 100 transmits a PING signal addressed to the server 500 to AP6.

[0065] (Case D1) Case D1 is a case where the attempt to communicate with the server 500 fails in the PING signal at T302A. The attempt fails when a response signal to the PING signal is not received by the printer 100. The causes of the failure are, for example, that AP6 is not connected to the Internet 8, that although AP6 is connected to the Internet 8, the server 500 is disconnected from the Internet 8 due to maintenance of the server 500 or the like, or that although AP6 and the server 500 are connected to the Internet 8, the decoding or authentication of the PING signal fails.

[0066] When the printer 100 determines that it does not receive a response signal to the PING signal of T302A, in T304A and T304B, it uses a specific wireless LAN of AP6 to send a no-response notification indicating that the response signal is not received to the terminal 10.

[0067] When the terminal 10 receives a no-response notification from AP6 in T304B, in T306, it causes the setup screen SR6 to be displayed on the display unit 14. The setup screen SR6 is the same as the setup screen SR3 in FIG. 4 except for the different contents of the status table ST. The status table ST in the setup screen SR6 includes a message "Server communication failure" indicating that communication with the server 500 is impossible for the MAC address "MACpr1" of the printer 100.

[0068] (Case D2) Case D2 is a case where the attempt to communicate with the server 500 in the PING signal of T302A is successful. When the response signal to the PING signal is received by the printer 100, the attempt is successful. For example, when AP6 is connected to the Internet 8, in T302B, AP6 sends the PING signal to the server 500. Then, in T308, AP6 receives the response signal to the PING signal from the server 500 and sends the response signal to the terminal 10. As a result, the response signal is received by the terminal 10.

[0069] When the printer 100 determines that it has received a response signal to the PING signal of T302A, in T310A and T310B, it uses a specific wireless LAN of AP6 to send a response notification indicating that the response signal has been received to the terminal 10.

[0070] When the terminal 10 receives a response notification from the AP6 in T310B, it causes the setup screen SR7 to be displayed on the display unit 14 in T312. The setup screen SR7 is the same as the setup screen SR3 in FIG. 4, except that the content of the status table ST is different. The status table ST in the setup screen SR7 includes a message "Setup completed" indicating that the setup of the printer 100 has been completed for the MAC address "MACpr1" of the printer 100.

[0071] (Setup of the second printer and the access point; FIG. 7) FIG. 7 is a continuation of case B1 in FIG. 4 (i.e., the case where the establishment of the Wi-Fi connection between the printer 100 and the AP6 fails). In this embodiment, even when the setup of the printer 100 fails, the setup of another printer 200 can be executed. Since the setup of another printer 200 can be executed without waiting for the completion of the setup of the printer 100, the convenience for the user is improved.

[0072] In T410, the terminal 10 receives an operation of selecting the "New" button in the setup screen SR3 of T252 in FIG. 4. As a result, the BS is executed in the same manner as T212 and T214 in FIG. 4. In the BS, the public key "PPKpr2" of the printer 200 and the MAC address "MACpr2" of the printer 200 are acquired.

[0073] T420 is the same as T220 in FIG. 4, except that the Auth is executed with the printer 200. T430 is the same as T230 in FIG. 4, except that the second printer CO is transmitted from the terminal 10 to the printer 200. The second printer CO is information used by the printer 200 to establish a Wi-Fi connection between the printer 200 and the AP6. In other words, the second printer CO is information for connecting the printer 200 to a specific wireless LAN of the AP6. The second printer CO includes the second printer SC. T432 is the same as T232 in FIG. 4, except that the second printer CO is stored in the memory 134.

[0074] T440 is the same as T240 in FIG. 4, except that Network Access is executed between the printer 200 and AP6 and the SC for the second printer is used. In T442, a Wi-Fi connection is established between the printer 200 and AP6.

[0075] T450 is the same as T270 in FIG. 4, except that the sender of Result is the printer 200. T472 is the same as T272 in FIG. 4, except that the setup screen SR14 is displayed. The setup screen SR14 is the same as the setup screen SR4, except for the different contents of the status table ST. The setup screen SR14 includes the message "Connection failed" for the MAC address "MACpr1" of the printer 100 and the message "Setting up" for the MAC address "MACpr2" of the printer 200.

[0076] T480A to T484B are the same as T280A to T284B in FIG. 5. When the response signal is received in T484B, the display of the setup screen SR14 continues.

[0077] T500A to T510B are the same as T300A to T302B, T308, T310A, and T310B in FIG. 6, except that the sender of the PING signal and the response notification is the printer 200. T512 is the same as T312 in FIG. 6, except that the setup screen SR17 is displayed. The setup screen SR17 includes the message "Connection failed" for the MAC address "MACpr1" of the printer 100 and the message "Setup completed" for the MAC address "MACpr2" of the printer 200.

[0078] (Registration to the server 500; FIG. 8) With reference to FIG. 8, after the setup of the printers 100 and 200, the process of registering the MAC address "MACpr2" of the printer 200 to the server 500 will be described. FIG. 8 is a continuation of FIG. 7.

[0079] When the terminal 10 receives, at T600, an operation of selecting the "Registration" button in the setup screen SR17 of T512 in FIG. 7, the terminal 10 causes the login screen SR20 to be displayed on the display unit 14. The login screen SR20 is a screen for inputting account information (i.e., account name and password) used for login authentication. The account information AI of the user (i.e., the administrator) of the terminal 10 is pre-registered in the server 500.

[0080] When the terminal 10 receives, at T602, the input of the account information AI in the login screen SR20, the terminal 10 transmits, at T604, a login request including the account information AI to the server 500.

[0081] When the server 500 receives, at T604, the login request from the terminal 10, the server 500 executes, at T606, the authentication of the account information AI in the login request. In this case, the authentication of the account information AI is successful. At T608, the server 500 transmits a success notification indicating that the authentication of the account information AI has been successful to the terminal 10.

[0082] When the terminal 10 receives, at T608, the success notification from the server 500, the terminal 10 transmits, at T610, a PIN (Personal Identification Number) request for requesting the generation of a PIN code to the server 500. The PIN code is a code used for the authentication for registering the MAC address "MACpr2" of the printer 200 in the server 500.

[0083] When the server 500 receives, at T610, the PIN request from the terminal 10, the server 500 generates, at T612, the PIN code "1234". Then, the server 500 stores the PIN code "1234" in the memory (not shown) of the server 500 in association with the account information AI during login.

[0084] At T614, the server 500 transmits the PIN code "1234" generated at T612 to the terminal 10.

[0085] When the terminal 10 receives the PIN code "1234" from the server 500 at T614, at T620A and T620B, it transmits the PIN code "1234" to the printer 200 using a specific wireless LAN of AP6. According to such a configuration, compared with the comparative example in which the operation unit (not shown) of the printer 200 is operated to input the PIN code "1234" into the printer 200, the work load of the user is reduced. In addition, in a modified example, the configuration of this comparative example may be adopted.

[0086] In addition, the processing from T602 to T620A is executed using the terminal 10 (i.e., the DPP Configurator) used for the setup of the printer 200. The user can execute registration to the server 500 without using another terminal different from the terminal 10 used for the setup of the printer 200. The convenience of the user is improved.

[0087] In addition, for example, a comparative example is assumed in which the PIN code "1234" is transmitted to the printer 200 using a communication path different from the specific wireless LAN of AP6. The other communication path is, for example, a wireless LAN formed by an AP different from AP6, a P2P connection formed between the terminal 10 and the printer 200, and the like. The P2P connection is a connection according to a form such as WFD, SoftAP, Bluetooth (registered trademark), NFC (abbreviation for Near Field Communication), etc. In contrast, in this embodiment, since the specific wireless LAN established in the setup of the printer 200 is used, other communication paths are unnecessary. The processing of connecting the terminal 10 and the printer 200 to other communication paths is not executed, or it is not necessary to maintain other communication paths, so the processing load of the terminal 10 and the printer 200 can be reduced. In addition, in a modified example, the configuration of this comparative example may be adopted.

[0088] When the printer 200 receives the PIN code "1234" from the terminal 10 in T620B, it transmits a registration request to the server 500 in T622, using the specific wireless LAN of the AP6, to register the MAC address "MACpr2" of the printer 200 with the server 500. The registration request includes the MAC address "MACpr2" and the PIN code "1234." With this configuration, by selecting the "Register" button on the setup screen SR17, the MAC address "MACpr2" of the printer 200 can be registered following the setup of the printer 200. This improves user convenience.

[0089] When the server 500 receives the registration request from the printer 200 in T622, it authenticates the PIN code "1234" in the registration request in T624. In this case, the PIN code "1234" is stored in the memory (not shown) of the server 500, so the authentication is successful. The server 500 then identifies the account information AI stored in association with the PIN code "1234" from the memory of the server 500, and stores the MAC address "MACpr2" in the registration request in association with the identified account information AI in the memory of the server 500. This completes the registration of the MAC address "MACpr2" of the printer 200 to the server 500, and the user can receive services provided by the server 500.

[0090] (Effects of this embodiment) According to the configuration of this embodiment, when a Wi-Fi connection with the AP 6 is established, the terminal 10 attempts to communicate with the server 500 by using the specific wireless LAN of the AP 6 to send a PING signal addressed to the server 500 to the AP 6 (T160A in FIG. 3). If the attempt is successful (case A2 in FIG. 3), the terminal 10 executes setup of the printer 100 and sends a first printer CO to the printer 100 (T230 in FIG. 4). This allows the printer 100 to connect to the specific wireless LAN of the AP 6 (i.e., a wireless LAN capable of communicating with the server 500), and as a result, the printer 100 can communicate with the server 500 on the Internet 8.

[0091] After transmitting the first printer-specific CO to the printer 100, the terminal 10 transmits a PING transmission instruction to the printer 100 (T300A in FIG. 6). As a result, the printer 100 attempts to communicate with the server 500 using the specific wireless LAN of the AP 6 (T302A in FIG. 6). A notification indicating the result of the attempt (i.e., a no-response notification or a response notification) is transmitted to the terminal 10. As a result, the terminal 10 displays a setup screen (i.e., SR6 or SR7) containing a message corresponding to the notification (i.e., "Server communication unavailable" or "Setup complete"). By viewing the setup screen, the user can know whether the printer 100's attempt to communicate with the server 500 on the Internet 8 using the specific wireless LAN will be successful. Therefore, if the printer 100's attempt to communicate with the server 500 using the specific wireless LAN fails, the user can perform an operation to connect the printer 100 to a wireless LAN other than the specific wireless LAN that can communicate with the server 500 on the Internet 8. As a result, the printer 100 can communicate with a server 500 on the Internet 8 .

[0092] Here, a comparative example is assumed in which the printer 100 causes the display unit 114 to display a message in response to the notification of no response from T304A or the response notification from T310A. In this comparative example, in order to view the message, the user needs to move near the printer 100. In contrast, in the present embodiment, the user can view the setup screens SR6 and SR7 of the terminal 10 and read the message. The convenience of the user is improved.

[0093] Also, in the present embodiment, the terminal 10 displays setup screens including different messages in various cases. Specifically, in case C1 where the terminal 10 cannot communicate with the printer 100 using a specific wireless LAN of AP6, the setup screen SR5 includes the message "Printer communication failed" (T182 in FIG. 5). In case D1 where the printer 100 cannot communicate with the server 500 using a specific wireless LAN of AP6, the setup screen SR6 includes the message "Server communication failed" (T306 in FIG. 6). And in case D2 where the printer 100 can communicate with the server 500 using a specific wireless LAN of AP6, the setup screen SR7 includes the message "Setup completed" (T312 in FIG. 6). According to such a configuration, the user can know whether communication with the server 500 is possible and the cause of the inability to communicate with the server 500.

[0094] (Corresponding relationship) The terminal 10, the connection application 40, and the CPU 32 are examples of a "terminal device," a "computer program," and a "computer," respectively. The display unit 14 is an example of a "display unit (and a predetermined output unit)." The Wi-Fi I / F 16 is an example of a "communication interface" of the "terminal device." The printer 100 is an example of a "communication device." The Wi-Fi I / F 116 is an example of a "communication interface (and output unit)" of the "communication device." The AP6 and a specific wireless LAN are examples of an "access point" and a "specific LAN." The processing of T160A in FIG. 3 is an example of a "first trial processing." Selection of the "Cancel" button in the setup screen SR1 in FIG. 3 is an example of "a specific condition being satisfied." The setup screen SR1 in FIG. 3, the "New" button in the screen SR1, and selection of the "New" button are examples of a "first screen," a "first button," and a "first instruction," respectively. The "Cancel" button in setup screen SR1 in FIG. 3 and the selection of the "Cancel" button are examples of a "second button" and a "second instruction," respectively. Setup screen SR2 in FIG. 3 and the "New" button in screen SR2 are examples of a "second screen" and a "third button." The QR code in FIG. 4 and Auth Req and Auth Res in T220 in FIG. 4 are examples of "specific information," "authentication request," and "authentication response," respectively. The CO for the first printer is an example of "connection information." The process in T280A, the PING signal in T280B, and the response signal in T284A in FIG. 5 are examples of a "second trial process," "predetermined signal," and "response signal," respectively. Setup screen SR5 in FIG. 5 and setup screens SR6 and SR7 in FIG. 6 are examples of a "third screen," "fourth screen," and "fifth screen," respectively. The no-response notification in T304B or the response notification in T310 in FIG. 6 are examples of "result information." The PIN code "1234" in T620 and the registration request in T622 in FIG. 8 are examples of a "registration signal" and a "registration request", respectively.

[0095] T160 in FIG. 3, T230 in FIG. 4, and T300A in FIG. 6 are examples of processing realized by the "first attempt unit," "connection information transmission unit," and "attempt request transmission unit," respectively.

[0096] T230 in Fig. 4, T240 in Fig. 4, and T300A and T302 in Fig. 6 are examples of processing realized by a "connection information receiving unit," a "connection control unit," an "attempt request receiving unit," and an "attempt unit," respectively. T304 or T310 in Fig. 6 is an example of processing realized by a "second output control unit."

[0097] Although specific examples of the technology disclosed in this specification have been described in detail above, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and variations of the specific examples exemplified above. Modifications of the above examples are listed below.

[0098] (Variation 1) In the above embodiment, the terminal 10 transmits a PING signal to the AP 6 using the specific wireless LAN of the AP 6 (T160A in FIG. 3). Alternatively, the terminal 10 may transmit a PING signal to the AP 6 using a wired LAN between the terminal 10 and the AP 6. In this variation, a LAN including the above wired LAN and the specific wireless LAN of the AP 6 is an example of a "specific LAN." Furthermore, an I / F for performing communication using the wired LAN is an example of a "communication interface."

[0099] (Variation 2) In the above embodiment, the terminal 10 transmits the first printer CO to the printer 100 via the Wi-Fi I / F 16 (T230 in FIG. 4). Alternatively, the terminal 10 may transmit the first printer CO to the printer 100 using a wired LAN between the terminal 10 and the AP 6. Furthermore, in this variation, Auth in T220 and Result in T250 may also be executed using the wired LAN. Furthermore, in this variation, the PING transmission instruction in T300A in FIG. 6 may be sent to the printer 100 using the wired LAN. In this variation, the I / F for executing communication using the wired LAN is an example of a "communication interface."

[0100] (Variation 3) The "communication device" is not limited to the printer 100, but may be, for example, a scanner, a multi-function device, a fax machine, a PC, or the like.

[0101] (Variant 4) The "first instruction" is not limited to selecting the "New" button in the setup screen SR1 of Figure 3, but may also be, for example, selecting a specific button on the operation unit 12 of the terminal 10 (for example, a button other than the touch panel), a voice instruction, etc.

[0102] (Variation 5) The setup screen SR1 in Fig. 3 may not include the "New" button. If the attempt to communicate with the server 500 fails in response to the PING signal from T160A, the terminal 10 may not execute the processes in Fig. 4 and subsequent steps. In this variation, the "first instruction" may be omitted.

[0103] (Variant 6) The "second instruction" is not limited to selecting the "Cancel" button in the setup screen SR1 of Figure 3, but may also be, for example, selecting a specific button on the operation unit 12 of the terminal 10 (for example, a button other than the touch panel), a voice instruction, etc.

[0104] (Variation 7) The setup screen SR2 in Fig. 3 may include a "Cancel" button. Generally speaking, the terminal device may be configured to accept input of a second instruction if the attempt to communicate with the server in the first attempt process is successful.

[0105] (Variation 8) In the above embodiment, the setup screens SR1 and SR2 in FIG. 3 each include the same "New" button. Alternatively, either of the setup screens SR1 and SR2 in FIG. 3 may include another button different from the "New" button for receiving input of printer setup instructions. In this variation, the other button is an example of a "third button."

[0106] (Variant 9) The "predetermined output unit" is not limited to the display unit 14 of the terminal 10, but may be, for example, a microphone, a light, an I / F for communicating with other devices (for example, an I / F for sending e-mail), etc. of the terminal 10. Furthermore, the "predetermined output unit" is not limited to the display unit 14 provided in the terminal 10, but may be, for example, the display unit 114 provided in the printer 100. In this variant, displaying the result of the communication attempt with the server 500 in response to the PING signal T302A in FIG. 6 on the display unit 114 is an example of processing realized by the "second output control unit."

[0107] (Variation 10) The process of T300A in FIG. 6 does not need to be executed. In this variation, the "trial request" can be omitted. In other words, the "computer of the terminal device" only needs to function as a "first trial unit" and a "connection information transmission unit."

[0108] (Variation 11) The process of T160A in FIG. 3 does not have to be executed. In this variation, the "first trial process" can be omitted. In other words, the "computer of the terminal device" only needs to function as a "connection information sending unit" and an "trial request sending unit."

[0109] (Variation 12) The "trial request" may be sent to the receiving device using a communication path other than the "specific LAN." The other communication path may be, for example, a P2P connection conforming to WFD or the like.

[0110] (Modification 13) The setup screens of Figures 4 to 8 do not have to include the status table ST. In this modification, the "third screen," "fourth screen," and "fifth screen" can be omitted.

[0111] (Modification 14) The process of T280A in Fig. 5 does not have to be executed. In this modification, the "second trial process", "predetermined signal", and "response signal" can be omitted.

[0112] (Modification Example 15) Instead of displaying the QR code in T204 of FIG. 4, the printer 100 may execute the processes of the following Modification Examples 15-1 and 15-2.

[0113] (Modification Example 15-1) The printer 100 may cause the print execution unit 118 to execute the printing of the QR code. In this case, the terminal 10 acquires information such as the public key "PPKpr1" by photographing the printed QR code. In this modification example, the printing of the QR code is an example of "specific information being output by a communication device", and the print execution unit 118 is an example of the "output unit" of the "communication device".

[0114] (Modification Example 15-2) The printer 100 may establish a P2P connection (for example, a connection according to the WFD method, Bluetooth method, or NFC method) with the terminal 10. In this case, the printer 100 may transmit information such as the public key "PPKpr1" to the terminal 10 using the established P2P connection. In this modification example, the transmission of information such as the public key "PPKpr1" is an example of "specific information being output by a communication device", and the I / F for executing wireless communication using a P2P connection (for example, a connection according to the WFD method, Bluetooth method, or NFC method) is an example of the "output unit" of the "communication device".

[0115] (Modification Example 16) In the above embodiment, each process (Auth, etc.) of DPP is executed, and the CO for the first printer is transmitted to the printer 100. Instead of this, each process of DPP may not be executed, and the wireless profile of the AP6 (that is, the SSID and password) may be transmitted from the terminal 10 to the printer 100. In this modification example, the above wireless profile is an example of "connection information", and the "public key", "authentication request", and "authentication response" can be omitted.

[0116] (Modification Example 17) The "registration signal" is not limited to a signal including a PIN code, and may be, for example, a signal including a command for instructing the transmission of a registration request and not including a PIN code.

[0117] (Modification 18) The process in Fig. 8 does not have to be executed. In this modification, the "registration signal" and "registration request" can be omitted.

[0118] (Modification 19) In the above embodiment, the processes in FIGS. 3 to 8 are implemented by software (for example, connection application 40), but at least one of these processes may be implemented by hardware such as a logic circuit.

[0119] The technical elements described in this specification or drawings may exhibit technical utility either alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. Furthermore, the technologies illustrated in this specification or drawings may achieve multiple objectives simultaneously, and achieving one of those objectives alone is technically useful. The features of the technology disclosed in this specification are listed below. (Item 1) A computer program for a terminal device, wherein the terminal device comprises a communication interface for performing communication using a LAN (abbreviation for Local Area Network), a computer, and, the computer program causes the computer to function as the following respective parts, namely, a first trial unit that executes a first trial process of attempting to communicate with a server on the Internet via the communication interface using a specific LAN to which the terminal device is currently connected; a connection information transmission unit that, when a trial of communicating with the server in the first trial process is successful, transmits connection information to a communication device different from the terminal device, and when a specific condition including a failure of the trial of communicating with the server in the first trial process is satisfied, does not transmit the connection information to the communication device, where the connection information is information for connecting the communication device to the specific LAN; A computer program that functions as such. (Item 2) The connection information transmission unit transmits the connection information to the communication device when a trial of communicating with the server in the first trial process fails and a first instruction is input. The specific condition includes a failure of the trial of communicating with the server in the first trial process and no input of the first instruction, for the computer program according to Item 1. (Item 3) The terminal device further comprises a display unit, and the computer program further causes the computer to function as a first display control unit that, when a trial of communicating with the server in the first trial process fails, displays a first screen including a first button for receiving an input of the first instruction on the display unit, for the computer program according to Item 2. (Item 4) The specific condition includes a failure of the trial of communicating with the server in the first trial process, no input of the first instruction, and an input of a second instruction different from the first instruction. ​ The terminal device is configured not to accept the input of the second instruction when the trial of communication with the server in the first trial process is successful. The computer program according to item 2 or 3. (Item 5) The terminal device further includes a display unit. The computer program further causes the computer to When the trial of communication with the server in the first trial process fails, a first display control unit that causes the display unit to display a first screen including a first button for accepting the input of the first instruction and a second button for accepting the input of the second instruction. When the trial of communication with the server in the first trial process is successful, a second display control unit that causes the display unit to display a second screen including a third button for accepting an instruction to transmit the connection information to the communication device and not including the second button. The computer program according to item 4, which functions as (Item 6) The computer program further causes the computer to After the connection information is transmitted to the communication device, a trial request transmission unit that transmits a trial request to the communication device. The trial request is a request for the communication device to trial communication with the server using the specific LAN, and the result of the trial is output by a predetermined output unit. The computer program according to any one of items 1 to 5, which functions as the trial request transmission unit. (Item 7) A computer program for a terminal device, The terminal device A communication interface for executing communication via a LAN (abbreviation for Local Area Network), A computer, And is provided with The computer program causes the computer to perform the following units, namely, A connection information transmission unit that transmits connection information to a communication device different from the terminal device via the communication interface. The connection information is information for connecting the communication device to a specific LAN to which the terminal device is currently connected. The connection information transmission unit A trial request transmission unit that transmits a trial request to the communication device via the communication interface after the connection information is transmitted to the communication device. The trial request is a request for the communication device to attempt communication with a server using the specific LAN. The server exists on the Internet, and the result of the trial is output by a predetermined output unit. The trial request transmission unit A computer program that functions as (Item 8) The computer program according to item 6 or 7, wherein the trial request transmission unit transmits the trial request to the communication device via the communication interface using the specific LAN after the connection information is transmitted to the communication device and the communication device is connected to the specific LAN. (Item 9) The terminal device further includes the predetermined output unit. The computer program further causes the computer to A result information receiving unit that receives, from the communication device via the communication interface, result information indicating the result of the trial in response to the trial request being transmitted to the communication device. A first output control unit that causes the predetermined output unit to output the result indicated by the received result information. The computer program according to any one of items 6 to 8 that functions as (Item 10) The predetermined output unit is a display unit. The computer program further causes the computer to A second trial unit that executes a second trial process of attempting communication with the communication device via the communication interface using the specific LAN after the connection information is transmitted to the communication device. A third display control unit that causes the display unit to display a third screen when the attempt to communicate with the communication device in the second trial process fails. Function as The first output control unit When the attempt to communicate with the communication device in the second trial process is successful and the result information indicating that the attempt to communicate with the server from the communication device fails is received, causes the display unit to display a fourth screen. When the attempt to communicate with the communication device in the second trial process is successful and the result information indicating that the attempt to communicate with the server from the communication device is successful is received, causes the display unit to display a fifth screen. The computer program according to item 9, wherein the third screen, the fourth screen, and the fifth screen include different messages from each other. (Item 11) The computer program further causes the computer to function as a second trial unit that executes a second trial process of attempting to communicate with the communication device via the communication interface using the specific LAN after the connection information is transmitted to the communication device, according to any one of items 1 to 9. (Item 12) The communication interface is an interface for performing communication using a wireless LAN, The specific LAN is a wireless LAN formed by an access point, according to any one of items 1 to 11. (Item 13) The computer program further causes the computer to an acquisition unit that acquires the public key when specific information obtained using the public key of the communication device is output by the communication device, an authentication request transmission unit that transmits an authentication request using the acquired public key to the communication device, an authentication response reception unit that receives an authentication response from the communication device in response to the authentication request being transmitted to the communication device, function as, The connection information transmission unit transmits the connection information to the communication device after the authentication response is received from the communication device, according to item 12. (Item 14) The computer program further causes the computer to function as a registration signal transmission unit that transmits a registration signal to the communication device after the connection information is transmitted to the communication device, where the registration signal is a signal for registering the identification information of the communication device with the server, according to any one of items 1 to 13. (Item 15) A communication device, a communication interface for performing communication using a LAN (abbreviation for Local Area Network), a connection information reception unit that receives connection information from a terminal device different from the communication device via the communication interface, where the connection information is information for connecting the communication device to a specific LAN to which the terminal device is currently connected, the connection information reception unit A connection control unit that uses the received connection information to connect the communication interface to the specific LAN; A trial request receiving unit that receives a trial request from the terminal device via the communication interface after the connection information is received from the terminal device. The trial request is a request for the communication device to attempt communication with a server using the specific LAN. The server exists on the Internet. The trial request receiving unit; A trial unit that attempts communication with the server via the communication interface using the specific LAN after the trial request is received from the terminal device; A second output control unit that causes the output unit of the communication device to output result information indicating the result of the trial; A communication device comprising: (Item 16) The output unit is the communication interface; The second output control unit transmits the result information to the terminal device via the communication interface. The communication device according to Item 15. (Item 17) The trial request receiving unit receives the trial request from the terminal device via the communication interface using the specific LAN after the communication device is connected to the specific LAN. The communication device according to Item 15 or 16. (Item 18) The communication device further comprises: A signal receiving unit that receives a predetermined signal from the terminal device via the communication interface using the specific LAN after the connection information is received from the terminal device; A response signal transmitting unit that transmits a response signal to the terminal device via the communication interface using the specific LAN in response to the reception of the predetermined signal from the terminal device. The communication device according to any one of Items 15 to 17. (Item 19) The communication interface is an interface for performing communication using a wireless LAN; The specific LAN is a wireless LAN formed by an access point. The communication device according to any one of Items 15 to 18. (Item 20) The communication device further comprises: An output control unit that causes the output unit to output specific information obtained using a public key; An authentication request receiving unit that receives an authentication request using the public key from the terminal device via the communication interface after the specific information is output; An authentication response transmission unit that transmits an authentication response to the terminal device via the communication interface in response to receiving the authentication request from the terminal device; comprising; The communication device according to any one of items 15 to 19, wherein the connection information receiving unit receives the connection information from the terminal device after the authentication response is transmitted to the terminal device. (Item 21) The communication device further; The communication device according to any one of items 15 to 20, comprising a registration request transmission unit that transmits a registration request for registering the identification information of the communication device to the server via the communication interface using the specific LAN when the communication with the server is possible in the trial.

Explanation of Symbols

[0120] 2: Communication system, 6: AP, 8: Internet, 10: Terminal, 12: Operation unit, 14: Display unit, 16: Wi-Fi I / F, 18: Camera, 30: Control unit, 32: CPU, 34: Memory, 36: OS program, 40: Connection app, 100: Printer, 112: Operation unit, 114: Display unit, 116: Wi-Fi I / F, 118: Printing execution unit, 130: Control unit, 132: CPU, 134: Memory, 136: Program, 200: Printer, 500: Server, AI: Account information, SR1~SR17: Setup screen, ST: Status table, SR20: Login screen

Claims

1. A computer program for a terminal device, wherein the terminal device comprises a communication interface for executing communication via a LAN (abbreviation for Local Area Network), a computer, and the computer program causes the computer to function as each of the following parts, namely, a connection information transmission unit that transmits connection information to a communication device different from the terminal device via the communication interface, wherein the connection information is information for connecting the communication device to a specific LAN to which the terminal device is currently connected, the connection information transmission unit; a trial request transmission unit that transmits a trial request to the communication device via the communication interface after the connection information has been transmitted to the communication device, wherein the trial request is a request for causing the communication device to attempt communication with a server using the specific LAN, the server exists on the Internet, and the result of the trial is output by a predetermined output unit, the trial request transmission unit; A computer program that functions as such.

2. The computer program according to claim 1, wherein the trial request transmission unit transmits the trial request to the communication device via the communication interface using the specific LAN after the connection information has been transmitted to the communication device and the communication device has been connected to the specific LAN.

3. The terminal device further comprises the predetermined output unit, and the computer program further causes the computer to function as a result information receiving unit that receives, from the communication device via the communication interface, result information indicating the result of the trial in response to the trial request being transmitted to the communication device, a first output control unit that causes the result indicated by the received result information to be output to the predetermined output unit, The computer program according to claim 1 or 2.

4. The predetermined output unit is a display unit, and the computer program further causes the computer to function as a second trial unit that executes a second trial process of attempting communication with the communication device via the communication interface using the specific LAN after the connection information has been transmitted to the communication device, a third display control unit that causes a third screen to be displayed on the display unit when the attempt to communicate with the communication device in the second trial process fails. function to act as The first output control unit When the result information indicating that the attempt to communicate with the communication device in the second trial process is successful and the attempt to communicate with the server from the communication device fails is received, cause the display unit to display a fourth screen. When the result information indicating that the attempt to communicate with the communication device in the second trial process is successful and the attempt to communicate with the server from the communication device is successful is received, cause the display unit to display a fifth screen. The computer program according to claim 3, wherein the third screen, the fourth screen, and the fifth screen include different messages from each other.

5. The computer program further causes the computer to After the connection information is transmitted to the communication device, function as a second trial unit that executes a second trial process of attempting to communicate with the communication device via the communication interface using the specific LAN. The computer program according to any one of claims 1 to 3.

6. The communication interface is an interface for performing communication using a wireless LAN. The specific LAN is a wireless LAN formed by an access point. The computer program according to any one of claims 1 to 5.

7. The computer program further causes the computer to When specific information obtained using the public key of the communication device is output by the communication device, an acquisition unit that acquires the public key; An authentication request transmission unit that transmits an authentication request using the acquired public key to the communication device; An authentication response reception unit that receives an authentication response from the communication device in response to the authentication request being transmitted to the communication device; function to act as The connection information transmission unit transmits the connection information to the communication device after the authentication response is received from the communication device. The computer program according to claim 6.

8. The computer program further causes the computer to A registration signal transmission unit that transmits a registration signal to the communication device after the connection information is transmitted to the communication device, wherein the registration signal is a signal for registering the identification information of the communication device with the server, and function as the registration signal transmission unit. The computer program according to any one of claims 1 to 7.

9. A communication device, a communication interface for performing communication using a LAN (abbreviation for Local Area Network), a connection information receiving unit that receives connection information from a terminal device different from the communication device via the communication interface, where the connection information is information for connecting the communication device to a specific LAN to which the terminal device is currently connected, the connection information receiving unit, a connection control unit that uses the received connection information to connect the communication interface to the specific LAN, a trial request receiving unit that receives a trial request from the terminal device via the communication interface after the connection information is received from the terminal device, where the trial request is a request for the communication device to attempt communication with a server using the specific LAN, and the server exists on the Internet, the trial request receiving unit, a trial unit that attempts communication with the server via the communication interface using the specific LAN after the trial request is received from the terminal device, a second output control unit that causes result information indicating the result of the trial to be output to an output unit of the communication device, A communication device comprising:

10. The output unit is the communication interface, The second output control unit transmits the result information to the terminal device via the communication interface. The communication device according to claim 9.

11. The trial request receiving unit receives the trial request from the terminal device via the communication interface using the specific LAN after the communication device is connected to the specific LAN. The communication device according to claim 9 or 10.

12. The communication device further includes: a signal receiving unit that receives a predetermined signal from the terminal device via the communication interface using the specific LAN after the connection information is received from the terminal device, a response signal transmitting unit that transmits a response signal to the terminal device via the communication interface using the specific LAN in response to the reception of the predetermined signal from the terminal device. The communication device according to any one of claims 9 to 11.

13. The communication interface is an interface for performing communication using a wireless LAN, The communication device according to any one of claims 9 to 12, wherein the specific LAN is a wireless LAN formed by an access point.

14. The communication device further comprises an output control unit that causes the output unit to output specific information obtained using a public key; an authentication request receiving unit that receives, from the terminal device via the communication interface, an authentication request in which the public key is used after the specific information is output; an authentication response transmitting unit that transmits an authentication response to the terminal device via the communication interface in response to receiving the authentication request from the terminal device; and the connection information receiving unit receives the connection information from the terminal device after the authentication response is transmitted to the terminal device. The communication device according to any one of claims 9 to 13.

15. The communication device further comprises a registration request transmitting unit that, when it is possible to communicate with the server in the trial, transmits a registration request for registering identification information of the communication device to the server via the communication interface using the specific LAN. The communication device according to any one of claims 9 to 14.

Citation Information

Patent Citations

  • Communication system

    JP2014127739A

  • Communication terminal, communication system, communication method and program

    JP2016213630A

  • Radio network setting system, communication terminal, and radio network setting method

    JP2017046025A

  • Home appliance, home appliance network connection system, and home appliance network connection method

    JP2017512396A

  • Communication device, communication control method and program

    JP2018148470A