Computer program for terminal device
The computer program enhances user convenience by automating the storage and reuse of authentication information for wireless connections, enabling seamless connectivity across multiple devices.
Patent Information
- Application Number
- JP2021095400
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-07
- Publication Date
- 2025-09-25
- Estimated Expiration
- 2041-06-07
AI Technical Summary
Existing systems require repeated user input of authentication information for establishing wireless connections with multiple communication devices, leading to reduced user convenience.
A computer program for a terminal device that automates the storage and reuse of authentication information for wireless connections, allowing seamless establishment of connections with multiple devices without additional user input.
Improves user convenience by eliminating the need for repeated authentication input, facilitating efficient wireless connectivity across multiple communication devices.
Smart Images

Figure 0007743718000001 
Figure 0007743718000002 
Figure 0007743718000003
Abstract
Description
[Technical Field]
[0001] This specification discloses a technique relating to a terminal device capable of communicating with a plurality of communication devices. [Background technology]
[0002] Patent Document 1 discloses an information processing device that establishes a wireless connection between a printer and an access point (hereinafter referred to as "AP"). The information processing device stores connection information such as the SSID and password of the AP to which the information processing device itself is connected. The information processing device uses the stored connection information to establish a wireless connection between the printer and the AP. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2017-184169 Summary of the Invention [Problem to be solved by the invention]
[0004] Book The present specification provides a technique for improving user convenience in a situation where a predetermined process is executed by each of a plurality of communication devices. [Means for solving the problem]
[0005] The technology disclosed in this specification is embodied in a computer program for a terminal device. The terminal device may include a wireless interface for performing wireless communication, a memory, and a computer. The computer program causes the computer to include the following units: a first establishment process execution unit that executes a first establishment process for establishing a first wireless connection with a first communication device via the wireless interface; an acquisition unit that acquires authentication information necessary for causing a communication device to execute a predetermined process when a predetermined operation is performed by a user; a first transmission unit that, when the first wireless connection with the first communication device is established and the authentication information is acquired, transmits first information obtained using the authentication information to the first communication device via the wireless interface using the first wireless connection; The memory may also function as: a storage control unit that stores authentication information in a specified area in the memory when authentication information is acquired; a second establishment process execution unit that executes a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; and a second transmission unit that transmits second information obtained using the authentication information stored in the specified area in the memory to the second communication device when the second wireless connection with the second communication device is established, even if the specified operation is not performed again by the user.
[0006] According to the above configuration, when a predetermined process is to be executed by a first communication device, the terminal device acquires authentication information resulting from a predetermined operation performed by a user, and transmits first information obtained using the authentication information to the first communication device. The terminal device then stores the authentication information in a predetermined area in its memory. Thereafter, when a predetermined process is to be executed by a second communication device, the terminal device transmits second information obtained using the authentication information stored in the predetermined area in its memory to the second communication device, even if the predetermined operation is not performed again by the user. Therefore, the terminal device can improve user convenience in situations where the predetermined process is to be executed by each of multiple communication devices.
[0007] A terminal device implemented by the above computer program, a computer-readable storage medium storing the computer program, and a method executed by the terminal device are also novel and useful. [Brief explanation of the drawings]
[0008] [Figure 1] 1 shows the configuration of a communication system. [Figure 2] The sequence of the BT connection establishment process is shown below. [Figure 3] 1 shows a flowchart of a setup process. [Figure 4] The sequence of a specific case is shown below. [Figure 5] The sequence continues from FIG. [Figure 6] The sequence continues from FIG. [Figure 7] 10 shows a flowchart of a password deletion process. [Figure 8] 10 shows a sequence of the second embodiment. [Figure 9] 10 shows a sequence of the third embodiment. [Figure 10] 13 shows a sequence of a WFD connection establishment process according to the fourth embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0009] (First Example) (Configuration of communication system 2; Figure 1) 1, the communication system 2 includes a mobile terminal 10, a plurality of printers 100, 200, and an AP (abbreviation of Access Point) 6. The technology of this embodiment is a technology that uses the mobile terminal 10 to establish a wireless connection (hereinafter referred to as "Wi-Fi connection") in accordance with the Wi-Fi standard between each of the plurality of printers 100, 200 and the AP 6.
[0010] (Configuration of mobile terminal 10) The mobile 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 mobile terminal 10 may be a stationary terminal device such as a desktop PC. Hereinafter, the mobile terminal 10 will be simply referred to as "terminal 10." The terminal 10 includes a display unit 12, a wireless LAN interface 14, a BT (short for Bluetooth (registered trademark)) interface 16, and a control unit 30. Each unit 12 to 30 is connected to a bus line (reference numeral omitted). Hereinafter, the interface will be referred to as "I / F."
[0011] The display unit 12 is a display for displaying various information. The display unit 12 also functions as a touch panel (i.e., an operation unit) that accepts instructions from a user. The user can input various instructions to the terminal 10 by operating the touch panel of the display unit 12.
[0012] The wireless LAN I / F 14 is an I / F for performing Wi-Fi communication in accordance with the Wi-Fi standard, which is a wireless communication standard for performing wireless communication in accordance with, for example, the IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and its equivalent standards (e.g., 802.11a, 11b, 11g, 11n, 11ac, etc.).
[0013] BTI / F16 is an interface for performing Bluetooth communication in accordance with the Bluetooth standard. Examples of Bluetooth standards include the IEEE802.15.1 standard and standards that conform to it. More specifically, BTI / F16 supports BLE (Bluetooth Low Energy). BLE is implemented in Bluetooth standard version 4.0 and later.
[0014] The differences between Wi-Fi communication and BT communication will be described below. The communication speed of Wi-Fi communication (for example, a maximum communication speed of 600 Mbps) is faster than the communication speed of BT communication (for example, a maximum communication speed of 24 Mbps). The carrier frequency in Wi-Fi communication is the 2.4 GHz band or the 5.0 GHz band. The carrier frequency in BT communication is the 2.4 GHz band. In other words, when the 5.0 GHz band is used as the carrier frequency in Wi-Fi communication, the carrier frequency in Wi-Fi communication differs from the carrier frequency in BT communication. In addition, the maximum distance over which Wi-Fi communication can be performed (for example, approximately 100 m) is greater than the maximum distance over which BT communication can be performed (for example, approximately several tens of meters).
[0015] The control unit 30 includes a CPU 32 and a memory 34. The memory 34 includes a ROM 40, which is a non-volatile memory, and a RAM 50, which is a volatile memory. The CPU 32 is a computer that executes various processes in accordance with programs 42 and 44 stored in the ROM 40. The ROM 40 stores an OS (short for Operating System) program 42 (hereinafter simply referred to as "OS 42") and an application 44 (hereinafter simply referred to as "app 44").
[0016] The OS 42 is a program for controlling the basic operations of the terminal 10, and is, for example, iOS (registered trademark) or Android (registered trademark). The app 44 is an application for performing BT communication to search for printers around the terminal 10 and for transmitting information about the AP 6 to the printer. The app 44 is also an application for performing Wi-Fi communication to transmit print data to the printer. The app 44 may be installed on the terminal 10 from a server on the Internet provided by a vendor of the printer 100 or the like, or may be installed on the terminal 10 from media shipped together with the printer 100 or the like.
[0017] (Configuration of printer 100) The printer 100 is a peripheral device (for example, a peripheral device of the terminal 10) that can execute a printing function. The printer 100 has a model name "PR01." The printer 100 includes a display unit 112, a wireless LAN I / F 114, a BTI / F 116, a print execution unit 118, and a control unit 130.
[0018] The display unit 112 is a display for displaying various information. The display unit 112 also functions as a touch panel (i.e., an operation unit) that accepts instructions from a user. The wireless LAN I / F 114 is the same as the wireless LAN I / F 14 of the terminal 10. The BTI / F 116 is the same as the BTI / F 16 of the terminal 10. The print execution unit 118 is a printing mechanism such as an inkjet type or a laser type.
[0019] The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes in accordance with a program 146 stored in the memory 134. The memory 134 is configured by a volatile memory, a non-volatile memory, or the like.
[0020] Printer 200 has the same configuration as printer 100, except that printer 200 has a model name "PR02" that is different from the model name "PR01."
[0021] (AP6 configuration) AP6 is a typical access point known as a wireless access point or wireless LAN router. AP6 relays communications between a pair of devices that belong to a Wi-Fi network in which AP6 acts as the master station. AP6 stores the SSID (Service Set Identifier) "ID06" and password "PW06" as information for establishing a Wi-Fi connection with AP6.
[0022] (Processing performed by each device 10, 100, 200: Figures 2 to 7) Next, the processing executed by each of the devices 10, 100, and 200 will be described with reference to FIGS. 2 to 7. In the following, the processing will be described with each device (e.g., terminal 10, printer 100, etc.) as the subject, instead of the CPU of each device (e.g., CPU 32, 132). Also, instead of describing the terminal 10 as the subject, the OS 42 or the application 44 may be described as the subject. All communications between the terminal 10 and each of the printers 100 and 200 are performed via the BTI / F 16 and 116. Therefore, when describing communications between the terminal 10 and each of the printers 100 and 200, the phrase "via the BTI / F 16 (or 116)" will be omitted.
[0023] (Establishing a BT connection between the terminal 10 and the printer 100: Figure 2) First, referring to Figure 2, a process for establishing a wireless connection (hereinafter sometimes referred to as "BT connection") conforming to the BT standard between the terminal 10 and the printer 100 will be described. In the initial state of Figure 2, the terminal 10 has already established a Wi-Fi connection with the AP 6. Each of the printers 100 and 200 has not yet established a Wi-Fi connection with the AP 6.
[0024] At T2, the printer 100 receives a power-on operation from the user. In this case, at T4, the printer 100 starts repeatedly transmitting an Advertise signal conforming to the BT standard. The Advertise signal includes the model name of the printer 100, "PR01."
[0025] At T10, the application 44 receives an operation from the user to launch the application 44. As a result, at T12, the application 44 displays a top screen D2 on the display unit 12. The top screen D2 includes a setup button B2 and an end button B4. In this embodiment, "setup" means establishing a BT connection between the terminal 10 and a printer (e.g., 100), and then establishing a Wi-Fi connection between the printer and the AP 6. The end button B4 is a button for ending the application 44.
[0026] At T14, the application 44 accepts the selection of the setup button B2 from the user. In this case, the application 44 supplies a scan start command to the OS 42 at T16.
[0027] When the OS 42 receives the scan start command from the application 44, it scans the Advertise signal. As a result, at T20, the OS 42 receives an Advertise signal including the model name "PR01" from the printer 100. Then, the OS 42 provides the application 44 with a notification indicating that the Advertise signal has been scanned.
[0028] When the application 44 receives the notification from the OS 42, at T22, the application 44 displays a connection confirmation screen D4 on the display unit 12. The connection confirmation screen D4 includes the model name "PR01" in the Advertise signal received at T20.
[0029] In T24, the application 44 accepts from the user the selection of the model name "PR01" included in the connection confirmation screen D4. In this case, in T30, the application 44 supplies to the OS 42 a connection start instruction for instructing the establishment of a BT connection with the device having the model name "PR01" (i.e., the printer 100).
[0030] When the OS 42 receives the connection start instruction from the application 44, it sends a CONNECT_IND signal to the printer 100 at T32. This signal requests the establishment of a BT connection (i.e., an L2CAP link). As a result, at T34, a BT connection is established between the terminal 10 and the printer 100.
[0031] (Setup process: Figure 3) Next, the setup process executed by the CPU 32 in accordance with the application 44 will be described with reference to Fig. 3. The process of Fig. 3 is triggered by the establishment of a BT connection (i.e., an L2CAP Link) between the terminal 10 and a printer (e.g., 100) (e.g., T34 in Fig. 2). Below, the printer with which a BT connection with the terminal 10 is established will be referred to as the "target printer."
[0032] In S10, the application 44 (i.e., the CPU 32) uses a BT connection to send an SSID search instruction to the target printer. The SSID search instruction is an instruction requesting a search for APs present around the target printer. In S12, the application 44 monitors whether a predetermined time has elapsed since the process of S10 was executed. Here, the predetermined time is set taking into consideration the time required for the target printer to search for APs. If the application 44 determines that the predetermined time has elapsed (YES in S12), it proceeds to S14.
[0033] In S14, the application 44 uses the BT connection to send an SSID request to the target printer. The SSID request is an instruction to request transmission of the SSID found by the search. In S16, the application 44 uses the BT connection to receive one or more SSIDs from the target printer and displays an SSID list screen including one or more SSIDs on the display unit 12.
[0034] In S18, the application 44 accepts, from the user, selection of one SSID included in the SSID list screen. In S20, the application 44 determines whether or not a password corresponding to the SSID selected in S18 (hereinafter referred to as the "target password") is stored in a predetermined area in the RAM 50. Here, the predetermined area is a work area for the application 44, and is allocated to the application 44 by the OS 42 when the application 44 is started up. If the application 44 determines that the target password is stored in the predetermined area (YES in S20), the process proceeds to S40. If the application 44 determines that the target password is not stored in the predetermined area (NO in S20), the process proceeds to S30.
[0035] In S30, the application 44 displays a password entry screen on the display unit 12. In S32, the application 44 accepts a password entry from the user. Hereinafter, the password entered here will also be referred to as the "target password." When S32 ends, the process proceeds to S40.
[0036] In S40, the application 44 uses a Bluetooth connection to send the selected SSID and target password to the target printer. The target password is the password entered in S32 (if NO in S20) or the password stored in the specified area (if YES in S20). This causes the target printer to attempt to establish a Wi-Fi connection with the AP identified by the selected SSID (hereinafter referred to as the "target AP") using the selected SSID and target password.
[0037] In S42, the application 44 receives a setup result from the target printer using the BT connection. The setup result is information indicating whether the target printer was able to establish a Wi-Fi connection with the target AP. The setup result includes either success information indicating that the Wi-Fi connection was established, or failure information indicating that the Wi-Fi connection could not be established. If the setup result includes failure information, it also includes error information indicating the cause of the failure. The cause of the failure may be, for example, a password error or a communication failure error.
[0038] In S44, the application 44 uses the setup result to determine whether the setup of the target printer was successful. If the setup result includes success information, the application 44 determines that the setup of the target printer was successful (YES in S44) and proceeds to S46. On the other hand, if the setup result includes failure information, the application 44 determines that the setup of the target printer was unsuccessful (NO in S44) and proceeds to S50.
[0039] In S46, the application 44 determines whether the target password is stored in the above-mentioned predetermined area in the RAM 50. If the application 44 determines that the target password is stored in the predetermined area (YES in S46), it skips S48 and ends the processing in FIG. 3. On the other hand, if the application 44 determines that the target password is not stored in the predetermined area (NO in S46), it proceeds to S48.
[0040] In S48, the application 44 stores the selected SSID and the target password in association with each other in the predetermined area. Therefore, when the application 44 executes the process of Fig. 3 again before the target password is deleted from the predetermined area, the application 44 does not require the user to input the target password (YES in S20). When S48 ends, the process of Fig. 3 ends.
[0041] In S50, the application 44 determines whether the error information included in the setup result indicates a password error. If the application 44 determines that the error information does not indicate a password error (NO in S50), the application 44 proceeds to S46. This allows the application 44 to store the selected SSID and target password in the above-mentioned predetermined area (NO in S46, S48). In other words, even if the target printer cannot establish a Wi-Fi connection with the target AP, the application 44 can store the target password in the predetermined area if there is a possibility that the target password is correct. On the other hand, if the application 44 determines that the error information indicates a password error (YES in S50), the application 44 proceeds to S52.
[0042] The above password error means that a Wi-Fi connection with the target AP could not be established because the target password does not match the password of the target AP. For example, if the determination in S20 is NO and the target password entered in S32 does not match the password of the target AP, the determination in S50 is YES. Also, for example, if the determination in S20 is YES and the target password stored in the above-mentioned predetermined area does not match the password of the target AP, the determination in S50 is YES. This event can occur in the following situations.
[0043] For example, when the process of FIG. 3 is executed in response to the establishment of a BT connection with a certain printer, the target password matches the password of the target AP, and a Wi-Fi connection between the certain printer and the target AP is successfully established. Therefore, the target password is stored in the predetermined area (S48). Thereafter, for example, the password of the target AP is changed by an administrator of the target AP. Then, the process of FIG. 3 is executed in response to the establishment of a BT connection with a printer different from the certain printer, and the stored target password is sent to the different printer (YES in S20, S40). However, because the password of the target AP has already been changed, the target password does not match the password of the target AP. Therefore, the different printer cannot establish a Wi-Fi connection with the target AP.
[0044] In S52, the application 44 determines whether the target password is stored in the predetermined area. If the application 44 determines that the target password is not stored in the predetermined area (NO in S52), it skips S54 and ends the processing of FIG. 3. If the application 44 determines that the target password is stored in the predetermined area (YES in S52), it deletes the target password from the predetermined area in S54 and ends the processing of FIG. 3. In this way, if the target printer cannot establish a Wi-Fi connection with the target AP (NO in S44), the application 44 deletes the target password from the predetermined area. In particular, if the target printer cannot establish a Wi-Fi connection with the target AP due to a password error (YES in S50), the application 44 deletes the target password from the predetermined area. This makes it possible to prevent a target password that does not match the password of the target AP from being reused.
[0045] (Figure 4 shows a specific case realized by the process in Figure 3) Next, a specific case will be described that is realized by the processing in Fig. 3. The processing in Fig. 4 is a continuation of the processing in Fig. 2, and a BT connection has already been established between the terminal 10 and the printer 100 (T34 in Fig. 2).
[0046] At T40, the application 44 uses the BT connection to send an SSID search instruction to the printer 100 (S10).
[0047] When the printer 100 receives an SSID search instruction from the terminal 10 at T40, it broadcasts a Probe request at T50 via the wireless LAN I / F 114. As a result, at T52, the printer 100 receives a Probe response including the SSID "ID06" of the AP 6 from the AP 6 via the wireless LAN I / F 114. This allows the printer 100 to acquire the SSID "ID06."
[0048] In T60, the application 44 uses the BT connection to send an SSID request to the printer 100 (S14).
[0049] When the printer 100 receives an SSID request from the terminal 10 in T60, the printer 100 transmits the SSID "ID06" acquired in T52 to the terminal 10 using a BT connection in T62.
[0050] When the application 44 receives the SSID "ID06" from the printer 100 in T62, it displays the SSID list screen D6 including the SSID "ID06" in T64 (S16). Then, in T66, the application 44 accepts selection of the SSID "ID06" from the user (S18).
[0051] The application 44 has not yet stored the password corresponding to the SSID "ID06" (i.e., the password "PW06" of AP6) (NO in S20), so in T70, it displays the password entry screen D8 (S30). The password entry screen D8 includes the SSID "ID06" of AP6, a password entry field, and a setup button. In T72, the application 44 accepts input of the password "PW06" from the user (S32). Then, in T80, the application 44 uses the BT connection to send the SSID "ID06" and the password "PW06" to the printer 100 (S40).
[0052] In T80, the printer 100 receives the SSID "ID06" and password "PW06" from the terminal 10. In T82, the printer 100 attempts to establish a Wi-Fi connection with the AP 6 using the SSID "ID06" and password "PW06." Specifically, the printer 100 performs various communications with the AP 6 via the wireless LAN I / F 114. These communications include Probe, Authentication, Association, 4-Way Handshake, and the like. During these communications, the SSID "ID06" and password "PW06" are used, and the AP 6 authenticates the SSID "ID06" and password "PW06." In this case, the authentication is successful, and a Wi-Fi connection is established between the printer 100 and the AP 6.
[0053] In T84, the application 44 uses the BT connection to send a setup result request to the printer 100. The setup result request is an instruction to request the transmission of the setup result.
[0054] When the printer 100 receives the setup result request from the terminal 10 in T84, in T86 the printer 100 uses the BT connection to send the setup result to the application 44. The setup result includes success information indicating that the Wi-Fi connection was successfully established.
[0055] When the application 44 receives the setup result from the printer 100 in T86 (S42), it determines that the setup result includes success information (YES in S44), and further determines that the password "PW06" is not stored in the above-mentioned predetermined area (NO in S46). In this case, the application 44 associates the SSID "ID06" with the password "PW06" and stores them in the predetermined area in T90 (S48).
[0056] Next, at T92, the application 44 starts measuring the storage time H1. The storage time H1 is the time during which the SSID "ID06" and the password "PW06" are stored in the predetermined area. The storage time H1 is used to delete the SSID "ID06" and the password "PW06" from the predetermined area in the process of FIG. 7 described later.
[0057] In T94, the application 44 displays the setup result screen D10. The setup result screen D10 includes a message indicating that the connection with the AP 6 has been completed, and a button for displaying the top screen D2. Next, in T96, the application 44 uses the BT connection to send a setup process end instruction to the printer 100. The setup process end instruction is an instruction requesting that the BT connection be disconnected.
[0058] When the printer 100 receives a setup process end instruction from the terminal 10 in T96, it disconnects the BT connection (ie, the L2CAP Link) in T98.
[0059] As described above, the terminal 10 can establish a Wi-Fi connection between the printer 100 and the AP 6. This allows both the terminal 10 and the printer 100 to belong to a wireless network formed by the AP 6. This allows the terminal 10 to send print data representing an image to be printed to the printer 100 via the AP 6. As a result, the printer 100 can print the image.
[0060] (Printer 200 setup process: Figure 5) Next, with reference to Fig. 5, a case will be described in which a Wi-Fi connection is established between the printer 200 and the AP 6 after a Wi-Fi connection is established between the printer 100 and the AP 6. The processing in Fig. 5 is a continuation of the processing in Fig. 4.
[0061] In T102, the printer 200 receives a power-on operation from the user. In this case, in T104, the printer 200 starts repeatedly transmitting an Advertise signal including the model name of the printer 200, "PR02."
[0062] In T110, the application 44 receives from the user a selection of a button indicating "Go to Top Screen" included in the setup result screen D10 (T94 in FIG. 4). In this case, the application 44 displays the top screen D2 in T112. The subsequent processing from T114 to T134 is the same as the processing from T14 to T34 in FIG. 2, except that the target of the establishment of the BT connection is the printer 200.
[0063] Thereafter, the same processes as those in T40 to T64 in Fig. 4 are executed. In T166, the application 44 accepts selection of the SSID "ID06" from the user (S18). Because the application 44 has already stored the password "PW06" corresponding to the SSID "ID06" (NO in T90 in Fig. 4 and S20 in Fig. 3), the application 44 transmits the SSID "ID06" and the password "PW06" to the printer 200 in T180 (S40) without displaying the password entry screen (i.e., without accepting input of the password "PW06" from the user).
[0064] In T180, the printer 200 receives the SSID "ID06" and password "PW06" from the terminal 10, and in T182 attempts to establish a Wi-Fi connection with the AP 6 using the SSID "ID06" and password "PW06." This establishes a Wi-Fi connection between the printer 200 and the AP 6. The subsequent processes of T184 to T198 are the same as the processes of T84, T86, and T94 to T98 in FIG. 4.
[0065] (App 44 termination process by OS 42: Figure 6) Next, the process of terminating the application 44 executed by the OS 42 will be described with reference to Fig. 6. The process of Fig. 6 is a continuation of the process of Fig. 5.
[0066] At T200, the OS 42 receives an instruction from the user to display an application list screen. In this case, the OS 42 transitions the application 44 from a state where it is running in the foreground to a state where it is running in the background, and at T202, the OS 42 displays an application list screen D40 on the display unit 12. The application list screen D40 includes application screens 300, 310, and 320 corresponding to the applications running in the background. The application screen 300 is a screen corresponding to the application 44, and more specifically, is a screen corresponding to the setup result screen D10 displayed at T194 in FIG. 5 . Each of the application screens 300, 310, and 320 includes an application exit button 302, 312, or 322.
[0067] In T204, the OS 42 accepts, from the user, selection of the app end button 302 included in the app screen 300. In this case, the OS 42 terminates the app 44 in T206. Then, in T208, the OS 42 releases the work area (i.e., the above-mentioned predetermined area) corresponding to the app 44 in the RAM 50. As a result, the SSID "ID06" and the password "PW06" stored in the RAM 50 are deleted. As described above, the case in FIG. 6 is a case in which the app 44 running in the background is terminated, that is, a case in which the app 44 is forcibly terminated without selecting the end button B4 in the top screen D2 (see T12 in FIG. 2). In such a case, the OS 42 deletes the SSID "ID06" and the password "PW06" by releasing the above-mentioned predetermined area. This makes it possible to prevent the SSID "ID06" and the password "PW06" from being leaked.
[0068] (Password deletion process: Figure 7) Next, a password deletion process executed by the CPU 32 in accordance with the application 44 will be described with reference to Fig. 7. The process in Fig. 7 is triggered by the application 44 storing the SSID "ID06" and the password "PW06" in a predetermined area (for example, T90 in Fig. 4).
[0069] In S100, the application 44 (i.e., the CPU 32) starts measuring the storage time H1 (see T92 in FIG. 4). Next, in S102, the application 44 determines whether or not an end instruction has been received from the user. An end instruction is the selection of the end button B4 on the top screen D2 (see T12 in FIG. 2). If the end button B4 has been selected by the user, the application 44 determines that an end instruction has been received (YES in S102) and proceeds to S110. If the end button B4 has not been selected, the application 44 determines that an end instruction has not been received (NO in S102) and proceeds to S120.
[0070] In S110, the application 44 deletes the SSID "ID06" and the password "PW06" from a predetermined area in the RAM 50. This makes it possible to prevent the SSID "ID06" and the password "PW06" from being leaked. After that, in T112, the application 44 ends the application 44. This ends the processing in FIG. 7.
[0071] In S120, the application 44 determines whether the application 44 has transitioned from a state in which the application 44 is running in the foreground to a state in which the application 44 is running in the background. If the application 44 determines that the application 44 has not transitioned to a state in which the application 44 is running in the background (NO in S120), the process proceeds to S132, and if the application 44 determines that the application 44 has transitioned to a state in which the application 44 is running in the background (YES in S120), the process proceeds to S122.
[0072] In S132, the application 44 determines whether the storage time H1 is equal to or greater than a threshold time Th1 (e.g., 24 hours). If the application 44 determines that the storage time H1 is equal to or greater than the threshold time Th1 (YES in S132), the process proceeds to S140. If the application 44 determines that the storage time H1 is less than the threshold time Th1 (NO in S132), the process proceeds to S102.
[0073] In S140, the application 44 deletes the SSID "ID06" and the password "PW06" from the predetermined area. This prevents the SSID "ID06" and the password "PW06" from leaking. After that, in T142, the application 44 resets the storage time H1 to zero and ends the processing in FIG. 7.
[0074] In S122, the application 44 starts measuring a BG time H2. The BG time H2 is the time that has elapsed since the application 44 transitioned to a state in which it is running in the background. In S130, the application 44 determines whether the application 44 has transitioned from a state in which it is running in the background to a state in which it is running in the foreground. If the application 44 determines that the application 44 has transitioned to a state in which it is running in the foreground (YES in S130), the application 44 proceeds to S132, and if the application 44 determines that the application 44 has not transitioned to a state in which it is running in the foreground (NO in S130), the application 44 proceeds to S134.
[0075] In S134, the application 44 determines whether the BG time H2 is equal to or greater than a threshold time Th2 (e.g., 30 minutes). If the application 44 determines that the BG time H2 is equal to or greater than the threshold time Th2 (YES in S134), the application 44 proceeds to S140 and deletes the SSID "ID06" and the password "PW06" from the predetermined area. This makes it possible to prevent the SSID "ID06" and the password "PW06" from leaking. On the other hand, if the application 44 determines that the BG time H2 is equal to or greater than the threshold time Th2 (YES in S134), the application 44 proceeds to S130.
[0076] (Effects of this embodiment) In this embodiment, when the terminal 10 is to cause the printer 100 to establish a Wi-Fi connection with the AP 6, the terminal 10 acquires the password "PW06" due to the user inputting the password "PW06" (S32 in FIG. 3 , T72 in FIG. 4 ) and transmits the password "PW06" to the printer 100 (S40 in FIG. 3 , T80 in FIG. 4 ). The terminal 10 then stores the password "PW06" in a predetermined area in the RAM 50 (S48 in FIG. 3 , T90 in FIG. 4 ). Thereafter, when the terminal 10 is to cause the printer 200 to establish a Wi-Fi connection with the AP 6, the terminal 10 transmits the password "PW06" stored in the predetermined area to the printer 200, even if the user does not input the password "PW06" again (YES in S20 in FIG. 3 , S40, T180 in FIG. 5 ). Therefore, in a situation where the terminal 10 causes each of the multiple printers 100 and 200 to establish a Wi-Fi connection with the AP 6, it is possible to improve user convenience.
[0077] (Correspondence) The mobile terminal 10 is an example of a "terminal device." The app 44 is an example of a "computer program." The BTI / F 16 is an example of a "wireless interface." The CPU 32 is an example of a "computer." The printer 100 and the printer 200 are examples of a "first communication device" and a "second communication device," respectively. The BT connection with the printer 100 and the BT connection with the printer 200 are examples of a "first wireless connection" and a "second wireless connection," respectively. The operation of entering the password "PW06" in the password input field on the password input screen D8 is an example of a "predetermined operation." The process of establishing a Wi-Fi connection with the AP 6 is an example of a "predetermined process." The password "PW06" is an example of "authentication information," "first information," and "second information." The setup result is an example of "first result information" and "second result information." Receiving failure information including error information indicating a password error is an example of a "first condition" and a "second condition." The model names "PR01" and "PR02" are examples of "first identification information" and "second identification information", respectively. The connection confirmation screens D4 and D14 are examples of "first selection screen" and "second selection screen", respectively. The top screen D2 and the exit button B4 are examples of "specific screen" and "exit button", respectively. The threshold time Th1 and threshold time Th2 are examples of "first specified time" and "second specified time", respectively.
[0078] The process of T30 in FIG. 2 is an example of a process executed by a "first establishment process executing unit." The processes of S32 in FIG. 3 and T72 in FIG. 4 are an example of a process executed by an "acquisition unit." The processes of S40 in FIG. 3 and T80 in FIG. 4 are an example of a process executed by a "first transmission unit." The processes of S48 in FIG. 3 and T90 in FIG. 4 are an example of a process executed by a "storage control unit." The process of T130 in FIG. 5 is an example of a process executed by a "second establishment process executing unit." The processes of S40 in FIG. 3 and T180 in FIG. 5 are an example of a process executed by a "second transmission unit." The processes of S42 in FIG. 3 and T86 in FIG. 4 are an example of a process executed by a "first result information receiving unit." The processes of S42 in FIG. 3 and T186 in FIG. 5 are an example of a process executed by a "second result information receiving unit." The process of S54 in FIG. 3 is an example of a process executed by a "first deletion unit." The process of T22 in FIG. 2 and the process of T122 in FIG. 5 are examples of processes executed by a "first display control unit" and a "second display control unit", respectively. The process of T12 in FIG. 2 and the process of T112 in FIG. 5 are examples of processes executed by a "third display control unit". The process of S110 in FIG. 7 is an example of processes executed by a "second deletion unit". The process of S140 in FIG. 7 is an example of processes executed by a "third deletion unit" and a "fourth deletion unit".
[0079] (Second embodiment: Figure 8) Next, a second embodiment will be described. The terminal 10 of the second embodiment includes a camera 18 (see FIG. 1) in addition to the configuration of the terminal 10 of the first embodiment. Also, a QR code (registered trademark) obtained by encoding the SSID "ID06" and password "PW06" is attached to the housing of the AP 6 of the second embodiment.
[0080] The second embodiment differs from the first embodiment in that the processes of T270 to T284 in FIG. 8 are executed instead of the processes of T70 and T72 in FIG. 4. At T270, the application 44 displays a designation screen D50. The designation screen D50 includes a message prompting the user to photograph a QR code attached to the housing of the AP 6. At T272, the application 44 activates the camera 18. Then, at T282, the application 44 accepts from the user an operation to photograph the QR code Q2 attached to the housing of the AP 6 with the camera 18. At T284, the application 44 decodes the photographed QR code Q2. As a result, the application 44 acquires the SSID "ID06" and the password "PW06".
[0081] According to this embodiment, the application 44 can obtain the password "PW06" without requiring the user to enter the password "PW06" into the password entry field (see FIG. 4). In this embodiment, the QR code Q2 is an example of a "code image." The processing of T282 is an example of a "predetermined operation."
[0082] (Third Example: Figure 9) Next, a third embodiment will be described. In addition to the configuration of the terminal 10 of the first embodiment, the terminal 10 of the third embodiment includes an NFC (abbreviation of Near Field Communication) I / F 19 (see FIG. 1) for performing NFC communication according to the NFC standard.
[0083] The third embodiment differs from the first embodiment in that the processes of T370 to T374 in FIG. 9 are executed instead of the processes of T70 and T72 in FIG. 4. At T370, the application 44 displays a designation screen D60. The designation screen D60 includes a message prompting the user to bring the terminal 10 closer to the AP 6. At T372, the application 44 accepts an operation from the user to bring the terminal 10 closer to the AP 6. As a result, an NFC connection is established between the terminal 10 and the AP 6. At T374, the application 44 receives the SSID "ID06" and the password "PW06" from the AP 6 using the established NFC connection.
[0084] According to this embodiment, the application 44 can obtain the password "PW06" without requiring the user to enter the password "PW06" into the password entry field (see FIG. 4). In this embodiment, the NFC I / F 19 is an example of a "wireless interface different from the wireless interface." The processing of T372 is an example of a "predetermined operation."
[0085] (Fourth embodiment: Figure 10) Next, a fourth embodiment will be described. The wireless LAN I / F 14 of the fourth embodiment further supports the WFD (short for Wi-Fi Direct (registered trademark)) method established by the Wi-Fi Alliance. Details of the WFD method are described in the standard "Wi-Fi Peer-to-Peer (P2P) Technical Specification Version 1.1" created by the Wi-Fi Alliance. The WFD method defines a Group Owner state (hereinafter referred to as "G / O state") and a client state (hereinafter referred to as "CL state"). The G / O state is a state in which a station operates as a parent station in a wireless connection established according to the WFD method, and the CL state is a state in which a station operates as a child station in the wireless connection. Hereinafter, a Wi-Fi connection established according to the WFD method may be referred to as a "WFD connection."
[0086] In the fourth embodiment, the processing of Fig. 10 is executed instead of the processing of Fig. 2. Specifically, in the fourth embodiment, a WFD connection is established between the terminal 10 and the printer 100 instead of a BT connection.
[0087] In T400, the printer 100 receives a power-on operation from the user. In this case, in T402, the printer 100 transitions to a G / O state in the WFD system. The wireless network in which the printer 100 operates in the G / O state uses the SSID "ID10" and password "PW10."
[0088] At T410, the application 44 receives an operation from the user to start the application 44. As a result, at T412, the application 44 displays a top screen D70 on the display unit 12. The top screen D70 includes a setup button B12 and an end button B14. In this embodiment, "setup" refers to establishing a WFD connection between the terminal 10 and a printer (e.g., 100), and then establishing a Wi-Fi connection between the printer and the AP 6. The application 44 also stores in advance an SSID "ID10" and a password "PW10."
[0089] In T414, the application 44 accepts selection of the setup button B12 from the user. In this case, in T420, the application 44 supplies the pre-stored SSID "ID10" and password "PW10" to the OS 42. In this case, in T422, the OS 42 establishes a WFD connection with the printer 100 using the SSID "ID10" and password "PW10."
[0090] Thereafter, the terminal 10 uses the WFD connection established in T422 to execute each communication in FIG. 3 with the printer 100. The terminal 10 also establishes a WFD connection with the printer 200, which is in a G / O state, and uses this WFD connection to execute each communication in FIG. 3 with the printer 200. In this embodiment, the WFD connection in T422 and the WFD connection with the printer 200 (not shown) are examples of a "first wireless connection" and a "second wireless connection," respectively. The wireless LAN I / F 14 is an example of a "wireless interface."
[0091] 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.
[0092] (Variation 1) In the fourth embodiment, instead of the printer 100 transitioning to the G / O state, the terminal 10 may transition to the G / O state. In this case, the terminal 10 in the G / O state can establish a WFD connection with the printer 100. This WFD connection is an example of a "first wireless connection." Similarly, the terminal 10 in the G / O state may establish a WFD connection with the printer 200. This WFD connection is an example of a "second wireless connection."
[0093] (Variation 2) Instead of causing each printer 100, 200 to execute a process for establishing a Wi-Fi connection with the AP 6, the terminal 10 may cause each printer 100, 200 to execute a process for registering default print settings. Here, the default print settings include, for example, the number of colors, resolution, and paper size. A server provided by a vendor of the printer 100 or the like stores a setting file indicating the default print settings. The server stores an access token, which is authentication information for transmitting the setting file. The user of the terminal 10 obtains the access token from a retailer of the printer 100 or the like and enters the access token into the terminal 10. In this case, the terminal 10 receives the setting file from the server using the access token and transmits the setting file to the printer 100 using a BT connection. This allows the printer 100 to register the default print settings indicated by the setting file. After transmitting the setting file to the printer 100, the terminal 10 discards the setting file. The terminal 10 stores the access token in a predetermined area of the RAM 50. Thereafter, when the terminal 10 is to cause the printer 200 to execute the same default print setting registration process, the terminal 10 receives a setting file from the server using the access token stored in a predetermined area, without receiving an operation to input the access token from the user, and transmits the setting file to the printer 200 using a BT connection. This allows the printer 200 to register the default print settings indicated by the setting file. In this modification, the operation to input the access token is an example of a "predetermined operation," the access token is an example of "authentication information," and the setting file is an example of "first information" and "second information."
[0094] (Variation 3) S42 and S44 in Fig. 3 may be omitted. That is, the application 44 may execute S46 after executing S40, and if the answer to S46 is NO, it may execute S48. In this variation, the "first result information receiving unit" may be omitted.
[0095] (Variation 4) S50 in Fig. 3 can be omitted. That is, if the setup result includes failure information (NO in S44), the application 44 does not need to store the SSID and password (skip S48) regardless of the cause of the failure.
[0096] (Modification 5) It is possible to omit S52 and S54 in Fig. 3. In this modification, it is possible to omit the "first deletion unit."
[0097] (Variation 6) The application 44 can omit S50 in Fig. 3. That is, when the setup result includes failure information (NO in S44), the application 44 may delete the SSID and password regardless of the cause of the failure.
[0098] (Variation 7) It is possible to omit T22 and T24 in Fig. 2 and T122 and T124 in Fig. 5. In this variation, it is possible to omit the "first display control unit" and the "second display control unit".
[0099] (Variation 8) When the end button B4 is selected by the user, the application 44 does not need to delete the SSID “ID06” and the password “PW06” from a predetermined area in the RAM 50. In this variation, the “second deletion unit” can be omitted.
[0100] (Modification 9) The "predetermined area" may be an area in the ROM 40. In this case, when the application 44 is terminated, the OS 42 does not need to delete the SSID "ID06" and the password "PW06".
[0101] (Modification 10) It is possible to omit the processing in Fig. 7. In this modification, the "third deletion unit" and the "fourth deletion unit" can be omitted.
[0102] (Modification 11) The "first communication device" and the "second communication device" are not limited to printers, but may be other devices such as scanners, facsimiles, multifunction devices, PCs, servers, and mobile terminals.
[0103] (Modification 12) In the above embodiments, the processes in FIGS. 2 to 10 are implemented by software, but at least one of these processes may be implemented by hardware such as a logic circuit.
[0104] The technical elements described in this specification or drawings may exhibit technical utility 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 following items are the contents of the claims at the time of patent application. (Item 1) A computer program for a terminal device, comprising: The terminal device a wireless interface for performing wireless communication; Memory and a computer; The computer program controls the computer to operate as follows: a first establishment process execution unit that executes a first establishment process for establishing a first wireless connection with a first communication device via the wireless interface; an acquisition unit that acquires authentication information required to cause a communication device to execute a predetermined process when a predetermined operation is performed by a user; a first transmitting unit that, when the first wireless connection with the first communication device is established and the authentication information is acquired, transmits first information obtained using the authentication information to the first communication device via the wireless interface using the first wireless connection; a storage control unit that stores the authentication information in a predetermined area in the memory when the authentication information is acquired; a second establishment process execution unit that executes a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; a second transmitting unit that, when the second wireless connection with the second communication device is established, transmits second information obtained using the authentication information stored in the predetermined area in the memory to the second communication device even if the predetermined operation is not performed again by the user; A computer program that functions as a (Item 2) the first information is the authentication information, Item 2. The computer program of item 1, wherein the second information is the authentication information. (Item 3) the predetermined process is a process for establishing a Wi-Fi connection with an access point, 3. The computer program according to claim 1, wherein the authentication information is a password for the access point. (Item 4) a first result information receiving unit that receives, after the first information and the password, which is the authentication information, from the first communication device via the wireless interface using the first wireless connection, first result information indicating whether the first communication device has been able to establish the Wi-Fi connection with the access point; the storage control unit stores the password in the predetermined area when the first result information indicating that the Wi-Fi connection has been established is received from the first communication device; Item 4. The computer program of item 3, wherein the password is not stored in the specified area when a first condition is met, including receiving first result information from the first communication device indicating that the Wi-Fi connection could not be established. (Item 5) the storage control unit further stores the password in the predetermined area when the first result information indicating that the Wi-Fi connection could not be established is received from the first communication device due to the occurrence of an error different from the password error; Item 5. The computer program of item 4, wherein the password is not stored in the specified area when the first condition is met, including receiving the first result information from the first communication device indicating that the Wi-Fi connection could not be established due to an error in the password. (Item 6) The computer program further causes the computer to: a second result information receiving unit that receives, after the first information and the password, which is the authentication information, from the second communication device via the wireless interface using the second wireless connection, second result information indicating whether the second communication device has been able to establish the Wi-Fi connection with the access point; a first deletion unit that deletes the password from the predetermined area when a second condition is satisfied, the second condition including receiving second result information from the second communication device indicating that the Wi-Fi connection could not be established; 6. The computer program according to any one of items 3 to 5, which functions as (Item 7) the first deletion unit deletes the password from the predetermined area when the second condition is satisfied, the second condition including receiving the second result information from the second communication device indicating that the Wi-Fi connection could not be established due to an error in the password; Item 7. The computer program of item 6, wherein the password is not deleted from the specified area when the second result information is received from the second communication device indicating that the Wi-Fi connection could not be established due to the occurrence of an error other than an error in the password. (Item 8) The terminal device further includes a display unit, The computer program further causes the computer to: functioning as a first display control unit that, when first identification information identifying the first communication device is received from the first communication device via the wireless interface before the first wireless connection with the first communication device is established, causes the display unit to display a first selection screen including the first identification information; the first establishment process execution unit executes the first establishment process when the first identification information included in the first selection screen is selected by the user; The computer program further causes the computer to: functioning as a second display control unit that, when second identification information identifying the second communication device is received from the second communication device via the wireless interface before the second wireless connection with the second communication device is established, causes the display unit to display a second selection screen including the second identification information; 8. The computer program according to any one of items 1 to 7, wherein the second establishment process execution unit executes the second establishment process when the second identification information included in the second selection screen is selected by the user after the first information is transmitted to the first communication device. (Item 9) The terminal device further includes a display unit, The computer program further causes the computer to: a third display control unit that causes the display unit to display a specific screen including an end button for ending the computer program; a second deletion unit that deletes the authentication information from the predetermined area when the end button included in the specific screen is selected by the user; 9. The computer program according to any one of items 1 to 8, which functions as (Item 10) the predetermined area is an area in a volatile memory, A computer program according to any one of items 1 to 9, wherein when the computer program is terminated, the authentication information is deleted from the specified area in response to the specified area being released by an OS (short for Operating System) program different from the computer program of the terminal device. (Item 11) The computer program further causes the computer to: 11. The computer program according to any one of items 1 to 10, which functions as a third deletion unit that deletes the authentication information from the specified area when a first specified time has elapsed since the authentication information was stored in the specified area. (Item 12) The computer program further causes the computer to: 12. The computer program according to any one of items 1 to 11, wherein the computer program functions as a fourth deletion unit that deletes the authentication information from the specified area when a second specified time has elapsed since the computer program transitioned from a state in which the computer program was running in the foreground to a state in which the computer program was running in the background. (Item 13) The terminal device further includes an operation unit, 13. The computer program according to any one of items 1 to 12, wherein the acquisition unit acquires the authentication information when the user performs the predetermined operation, which is an operation of inputting the authentication information into the operation unit. (Item 14) the predetermined process is a process for establishing a Wi-Fi connection with an access point, the authentication information is a password for the access point, The terminal device further includes a camera. 13. The computer program according to any one of items 1 to 12, wherein the predetermined operation is an operation for photographing, with the camera, a code image attached to the access point, the code image being obtained by encoding the authentication information, which is the password. (Item 15) the predetermined process is a process for establishing a Wi-Fi connection with an access point, the authentication information is a password for the access point, the terminal device further includes a wireless interface different from the wireless interface; the predetermined operation is an operation for bringing the terminal device closer to the access point, 13. The computer program according to claim 1, wherein the acquisition unit acquires the authentication information, which is the password, by receiving the authentication information from the access point via the different wireless interface when the specified operation is performed by the user. (Item 16) 16. The computer program according to any one of items 1 to 15, wherein the wireless interface is an interface for performing wireless communication according to the Bluetooth standard. (Item 17) 16. The computer program of any one of items 1 to 15, wherein the wireless interface is an interface for performing wireless communication according to the Wi-Fi standard. (Item 18) A terminal device, a wireless interface for performing wireless communication; Memory and a first establishment process execution unit that executes a first establishment process for establishing a first wireless connection with a first communication device via the wireless interface; an acquisition unit that acquires authentication information required to cause a communication device to execute a predetermined process when a predetermined operation is performed by a user; a first transmitting unit that, when the first wireless connection with the first communication device is established and the authentication information is acquired, transmits first information obtained using the authentication information to the first communication device via the wireless interface using the first wireless connection; a storage control unit that stores the authentication information in a predetermined area in the memory when the authentication information is acquired; a second establishment process execution unit that executes a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; a second transmitting unit that, when the second wireless connection with the second communication device is established, transmits second information obtained using the authentication information stored in the predetermined area in the memory to the second communication device even if the predetermined operation is not performed again by the user; A terminal device comprising: (Item 19) A method performed by a terminal device, comprising: The terminal device a wireless interface for performing wireless communication; a memory; The method comprises: a first establishment processing step of executing a first establishment processing for establishing a first wireless connection with a first communication device via the wireless interface; an acquiring step of acquiring authentication information required to cause the communication device to execute a predetermined process when a predetermined operation is executed by a user; a first transmission step of transmitting, when the first wireless connection with the first communication device is established and the authentication information is acquired, first information obtained using the authentication information to the first communication device via the wireless interface using the first wireless connection; a storage control step of storing the authentication information in a predetermined area in the memory when the authentication information is acquired; a second establishment process execution step of executing a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; a second transmission step of transmitting, when the second wireless connection with the second communication device is established, second information obtained using the authentication information stored in the predetermined area in the memory to the second communication device, even if the predetermined operation is not performed again by the user; A method comprising: [Explanation of symbols]
[0105] 2: Communication system, 6: AP, 10: Mobile terminal, 12,112: Display unit, 14,114: Wireless LAN I / F, 16: BTI / F, 18: Camera, 19: NFC I / F, 30,130: Control unit, 32,132: CPU, 34,134: Memory, 40: ROM, 42: OS, 44: Application, 50: RAM, 100,200: Printer, 118: Print execution unit, 146: Program
Claims
1. A computer program for a terminal device, comprising: The terminal device a wireless interface for performing wireless communication; Memory and a computer; The computer program controls the computer to operate as follows: a first establishment process execution unit that executes a first establishment process for establishing a first wireless connection with a first communication device via the wireless interface; an acquisition unit that acquires authentication information required to cause a communication device to execute a predetermined process for establishing a Wi-Fi connection with an access point when a predetermined operation is executed by a user, the authentication information being a password for the access point; a first transmitting unit that, when the first wireless connection with the first communication device is established and the authentication information is acquired, transmits first information, which is the authentication information, to the first communication device via the wireless interface using the first wireless connection; a first result information receiving unit that receives, after the first information is transmitted to the first communication device, first result information indicating whether the first communication device has been able to establish the Wi-Fi connection with the access point via the wireless interface using the first wireless connection from the first communication device; a storage control unit that stores the authentication information in a predetermined area in the memory when the authentication information is acquired; a second establishment process execution unit that executes a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; a second transmitting unit that, when the second wireless connection with the second communication device is established, transmits second information obtained using the authentication information stored in the predetermined area in the memory to the second communication device even if the predetermined operation is not performed again by the user; It functions as the storage control unit stores the password in the predetermined area when the first result information indicating that the Wi-Fi connection has been established is received from the first communication device; When a first condition is satisfied, the first condition including receiving the first result information from the first communication device, the first result information indicating that the Wi-Fi connection could not be established, the password is not stored in the predetermined area. Computer program.
2. the storage control unit further stores the password in the predetermined area when the first result information indicating that the Wi-Fi connection could not be established is received from the first communication device due to the occurrence of an error different from the password error; 2. The computer program of claim 1, wherein the password is not stored in the predetermined area when the first condition is satisfied, the first condition including receiving the first result information from the first communication device indicating that the Wi-Fi connection could not be established due to an error in the password.
3. The computer program further causes the computer to: a second result information receiving unit that receives, after the first information is transmitted to the second communication device, second result information indicating whether the second communication device has been able to establish the Wi-Fi connection with the access point via the wireless interface using the second wireless connection from the second communication device; a first deletion unit that deletes the password from the predetermined area when a second condition is satisfied, the second condition including receiving second result information from the second communication device indicating that the Wi-Fi connection could not be established; 3. The computer program according to claim 1 or 2, which causes the computer program to function as follows:
4. the first deletion unit deletes the password from the predetermined area when the second condition is satisfied, the second condition including receiving the second result information from the second communication device indicating that the Wi-Fi connection could not be established due to an error in the password; The computer program of claim 3, wherein the password is not deleted from the predetermined area when the second result information is received from the second communication device indicating that the Wi-Fi connection could not be established due to the occurrence of an error other than an error in the password.
5. A computer program for a terminal device, comprising: The terminal device a wireless interface for performing wireless communication; Memory and a computer; The computer program controls the computer to operate as follows: a first establishment process execution unit that executes a first establishment process for establishing a first wireless connection with a first communication device via the wireless interface; an acquisition unit that acquires authentication information required to cause a communication device to execute a predetermined process for establishing a Wi-Fi connection with an access point when a predetermined operation is executed by a user, the authentication information being a password for the access point; a first transmitting unit that, when the first wireless connection with the first communication device is established and the authentication information is acquired, transmits first information, which is the authentication information, to the first communication device via the wireless interface using the first wireless connection; a storage control unit that stores the authentication information in a predetermined area in the memory when the authentication information is acquired; a second establishment process execution unit that executes a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; a second transmitting unit that, when the second wireless connection with the second communication device is established, transmits second information obtained using the authentication information stored in the predetermined area in the memory to the second communication device even if the predetermined operation is not performed again by the user; a second result information receiving unit that receives, after the first information is transmitted to the second communication device, second result information indicating whether the second communication device has been able to establish the Wi-Fi connection with the access point via the wireless interface using the second wireless connection from the second communication device; a first deletion unit that deletes the password from the predetermined area when a second condition is satisfied, the second condition including receiving second result information from the second communication device indicating that the Wi-Fi connection could not be established; A computer program that functions as a
6. A computer program for a terminal device, comprising: The terminal device a wireless interface for performing wireless communication; Memory and a computer; The computer program controls the computer to operate as follows: a first establishment process execution unit that executes a first establishment process for establishing a first wireless connection with a first communication device via the wireless interface; an acquisition unit that acquires authentication information required to cause a communication device to execute a predetermined process when a predetermined operation is performed by a user; a first transmitting unit that, when the first wireless connection with the first communication device is established and the authentication information is acquired, transmits first information obtained using the authentication information to the first communication device via the wireless interface using the first wireless connection; a storage control unit that stores the authentication information in a predetermined area in the memory when the authentication information is acquired; a second establishment process execution unit that executes a second establishment process to establish a second wireless connection with a second communication device different from the first communication device via the wireless interface after the first information is transmitted to the first communication device; a second transmitting unit that, when the second wireless connection with the second communication device is established, transmits second information obtained using the authentication information stored in the predetermined area in the memory to the second communication device even if the predetermined operation is not performed again by the user; a fourth deletion unit that deletes the authentication information from the predetermined area when a second predetermined time has elapsed since the computer program shifted from a state in which the computer program was running in the foreground to a state in which the computer program was running in the background; A computer program that functions as a
7. the first information is the authentication information, The computer program product according to claim 1 , wherein the second information is the authentication information.
8. The terminal device further includes a display unit, The computer program further causes the computer to: functioning as a first display control unit that, when first identification information identifying the first communication device is received from the first communication device via the wireless interface before the first wireless connection with the first communication device is established, causes the display unit to display a first selection screen including the first identification information; the first establishment process execution unit executes the first establishment process when the first identification information included in the first selection screen is selected by the user; The computer program further causes the computer to: functioning as a second display control unit that, when second identification information identifying the second communication device is received from the second communication device via the wireless interface before the second wireless connection with the second communication device is established, causes the display unit to display a second selection screen including the second identification information; 7. The computer program according to claim 1, wherein the second establishment process execution unit executes the second establishment process when the second identification information included in the second selection screen is selected by the user after the first information is transmitted to the first communication device.
9. The terminal device further includes an operation unit, The computer program product according to claim 1 , wherein the acquisition unit acquires the authentication information when the predetermined operation, which is an operation of inputting the authentication information into the operation unit, is performed by the user.
10. the predetermined process is a process for establishing a Wi-Fi connection with an access point, the authentication information is a password for the access point, The terminal device further includes a camera.
7. The computer program according to claim 1, wherein the predetermined operation is an operation for photographing, with the camera, a code image attached to the access point, the code image being obtained by encoding the authentication information, which is the password.
11. the predetermined process is a process for establishing a Wi-Fi connection with an access point, the authentication information is a password for the access point, the terminal device further includes a wireless interface different from the wireless interface; the predetermined operation is an operation for bringing the terminal device closer to the access point, 7. The computer program product according to claim 1, wherein the acquisition unit acquires the authentication information by receiving the authentication information, which is the password, from the access point via the different wireless interface when the predetermined operation is performed by the user.
12. The computer program according to claim 1 , wherein the wireless interface is an interface for performing wireless communication according to a Bluetooth standard.
13. 7. The computer program according to claim 1, wherein the wireless interface is an interface for performing wireless communication according to a Wi-Fi standard.
Citation Information
Patent Citations
Secure device, information processing terminal, integrated circuit, terminal application generation apparatus, application authentication method
JP2005071328A
Authentication method and system, and information processing method and device
JP2006135791A
Communication device, control method, program of communication device
JP2016213614A
Communication apparatus and master station apparatus
JP2017050612A
Information processing device, control method, and program
JP2017184169A