Communication device, control method, and program
The communication device addresses the challenge of wireless setup convenience by enabling the wireless LAN interface temporarily and managing connection information to prevent unintended reconnections, enhancing usability.
Patent Information
- Application Number
- JP2023021869
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-08-27
AI Technical Summary
Communication devices with disabled wireless LAN interfaces face challenges in wireless setup convenience due to potential unintended network reconnections and the need for manual input on devices with limited interfaces, leading to reduced usability.
A communication device with detection and restriction processes to enable the wireless LAN interface temporarily, allowing for wireless setup while preventing unintended network reconnections by managing connection information and interface states.
Enables convenient wireless setup without reconnecting to unintended networks, simplifying the process by managing interface states and connection information effectively.
Smart Images

Figure 2024115945000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication device, a control method, and a program. [Background technology]
[0002] 2. Description of the Related Art In a communication device having a function for connecting to a wireless local area network (wireless LAN), there is known a technique for controlling enabling and disabling of the wireless LAN connection function depending on the state of the communication device. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 6432231 Summary of the Invention [Problem to be solved by the invention]
[0004] Meanwhile, there is a technology for a communication device having a wireless LAN connection function, in which an information processing device and the communication device establish a temporary connection via a wireless direct connection, so that the communication device can be easily connected to an access point (hereinafter referred to as AP). More specifically, the communication device establishes a connection with the AP by transmitting wireless setting information of the AP from the information processing device to the communication device via wireless direct communication. This makes it possible to perform a simpler wireless setup since it is not necessary for the user to operate the communication device and the AP. However, in this technology, if the wireless LAN interface of the information processing device is disabled, the information processing device cannot execute the setup process.
[0005] In addition, an operating system (hereinafter, referred to as OS) holds a wireless profile of an AP previously connected via a wireless LAN interface. When the wireless LAN interface is enabled, the OS has a function of automatically connecting to a previously connected AP using a wireless profile. Therefore, by enabling the wireless LAN interface of the information processing device, the information processing device may be reconnected to an unintended network by the function of the OS. In the setup process, if the information processing device transmits information of the currently connected AP to the communication device with priority, there is a possibility that the information of the reconnected AP may be transmitted unintentionally. However, if the wireless LAN interface is intentionally disabled, the user may not necessarily want to connect the automatically reconnected AP to the communication device. For example, if the setting is set to automatically reconnect to a pay-as-you-go network, the user may disable the wireless LAN interface to reduce the amount of charges.
[0006] Thus, in a communication device in which the wireless LAN interface has been disabled, there has been a problem in that the convenience of the wireless setup process may be reduced by reconnecting to a network that is not intended by the user.
[0007] The present invention has been made in consideration of the above-mentioned problems, and has an object to provide a technique for improving the convenience of wireless setup processing. [Means for solving the problem]
[0008] In order to solve the above problems, a communication device according to the present invention comprises: a detection means for detecting a state of a wireless communication interface of the communication device; an enabling means for enabling the wireless communication interface by executing a restriction process for restricting establishment of a connection via the wireless communication interface when the detecting means detects that the wireless communication interface is disabled; an establishment means for establishing a wireless connection with a first other communication device via the enabled wireless communication interface; a transmitting means for transmitting connection information usable for connecting to a second other communication device different from the first other communication device to the first other communication device via the wireless connection; The present invention is characterized by having the following. Effect of the Invention
[0009] According to the present invention, it is possible to provide a technique for improving the convenience of wireless setup processing. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram showing an example of a system configuration according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a diagram showing an example of a hardware configuration according to the present embodiment. [Diagram 3] 1 is a flowchart showing an example of a process for connecting a printer to a network according to a first embodiment; [Figure 4] A flowchart showing an example of a process for determining whether or not a P2P wireless setting process can be executed according to the first embodiment. [Diagram 5] FIG. 13 is a diagram showing combinations of whether or not the P2P wireless setting process can be executed according to the first embodiment; [Figure 6] A flowchart showing an example of a reconnection control process according to the first embodiment. [Figure 7] 1A to 1B are flowcharts illustrating an example of a P2P wireless setting process according to a first embodiment. [Figure 8] A flowchart showing an example of wireless setting instruction processing according to the first embodiment. [Figure 9] A flowchart showing an example of a setting standby process according to the first embodiment. [Figure 10] (a) to (d) Examples of screens displayed on the display device 208 of the PC 101 according to this embodiment [Figure 11] 10A to 10B are examples of screens displayed on the display device 208 of the PC 101 according to this embodiment. [Figure 12] An example of a screen displayed on the display device 208 of the PC 101 according to this embodiment. [Figure 13] 10A to 10C are examples of screens displayed on the display device 208 of the PC 101 according to this embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0012] In the following, a PC (personal computer) and a printer will be described as examples of communication devices in this embodiment, but a tablet terminal or other communication devices may also be used.
[0013] In this embodiment, a wireless setup process is executed in which the PC transmits a wireless setting instruction to the printer in order to establish a wireless infrastructure connection (hereinafter referred to as a wireless infrastructure connection) between the PC and the printer via an access point (AP) and perform communication. The wireless infrastructure connection is a method of connection via an AP, such as a PC and a printer connecting to the same AP and communicating. Through the wireless setup process, the PC temporarily connects to the printer in wireless setting mode (described later) and transmits information about the AP to be connected to the printer, so that the printer can be connected to the AP. For example, the PC obtains from the printer a list of APs to which the printer can connect, automatically determines whether the AP to which the PC was connected is included in the list, and transmits information to the printer that is used to connect to the AP. The printer then uses that information to connect to the AP. Information used to connect to the AP includes AP specific information (such as SSID) and authentication information (such as a password) used in the AP authentication process.
[0014] Here, in order for a PC to establish a temporary connection with a printer in wireless setting mode, the PC needs to have a wireless LAN interface. However, a PC may not have a wireless communication interface such as a wireless LAN interface, or the wireless communication interface may be disabled. In this case, a temporary connection cannot be established with a printer in wireless setting mode, and the PC cannot send a wireless setting instruction to the printer. In this case, the user connects the printer to the AP by inputting the AP setting information on the printer screen. However, in the case of inexpensive printers, due to limitations on the output interface such as a small screen and limitations on the input interface such as a small number of key buttons, it is difficult to input characters such as a password, and the connection process may fail due to a typing error.
[0015] Also, by enabling the wireless LAN interface of a PC, it may be reconnected to an unintended network. For example, when a user is out, he or she may connect the mobile router and PC via wireless LAN, and when in the office, he or she may connect to a fixed AP installed in the office via a wired LAN cable. In this case, if the mobile router communication is billed according to the amount of packets, the user may turn off the wireless LAN function when connecting to the wired LAN. Therefore, when the wireless LAN function is enabled in the wireless setup of a printer, reconnection to the mobile router occurs, resulting in unintended packet consumption by the user. Also, if the PC is a mobile PC, it may be reconnected to an unintended network, and the battery may be unintendedly consumed by switching the connection to the printer, etc. In this way, there has been a problem that the convenience of the wireless setup process may be reduced by enabling the wireless LAN interface of the PC and reconnecting to an unintended network.
[0016] In this embodiment, a restriction process is executed in the wireless setup process to restrict reconnection to the wireless LAN, thereby enabling the wireless LAN interface without reconnecting to an unintended network. This allows the PC to easily establish a wireless connection, such as a temporary wireless connection, with a printer in wireless setting mode and transmit a wireless setting instruction to the printer. An example of a configuration for implementing this embodiment will be described in detail below.
[0017] <System configuration> FIG. 1 is a diagram showing an example of the configuration of a communication system according to the present embodiment. FIG. 1(a) shows a state in which an infrastructure connection is established between a PC 101 and an AP 102 via a wireless LAN. In addition, a printer 103 is also connected to the AP 102. That is, the PC 101 is in a state in which it can communicate with the printer 103 via the AP 102, and a wireless infrastructure connection is established. In the infrastructure connection, a network environment in which a PC can communicate with a plurality of devices can be constructed. Note that the example of FIG. 1(a) shows a state in which the printer 103 and the AP 102, and the PC 101 and the AP 102 are each infrastructure-connected via a wireless LAN. However, as long as the PC 101 and the printer 103 are in a state in which they can communicate with each other via the AP 102, the PC 101 may be connected to the AP 102 by a wired LAN.
[0018] On the other hand, there is also a connection method called wireless direct connection that allows communication only between two devices. The PC 101 and the printer 103 can also be connected to each other via a wireless direct connection in a peer-to-peer manner (hereinafter referred to as a P2P connection). However, during the wireless direct connection, both the PC 101 and the printer 103 use a wireless LAN interface (described later) for the wireless direct connection, and therefore cannot communicate with devices other than each other via the wireless LAN interface. For this reason, the wireless direct connection is often used as a temporary connection. In this embodiment, the PC 101 performs a P2P wireless setting process in the wireless setup process to instruct the printer 103 to connect to the AP 102 via a wireless connection such as a wireless direct connection. To this end, the PC 101 transmits connection information for connecting to a wireless network to the printer 103 using the wireless direct connection. In this embodiment, the method in which the PC 101 transmits information (connection information) used for connecting to a wireless network to the printer 103 using the wireless direct connection is defined as a "wireless setting process". In addition, the state in which the printer 103 accepts the wireless setting process is defined as a "wireless setting mode". In other words, in the wireless setting mode, the printer 103 waits for a wireless direct connection. Note that FIG.
[0019] 2 is a configuration diagram of a communication system including the hardware configuration of a PC 101 and a printer 103 according to this embodiment. The PC 101 has a CPU (Central Processing Unit) 201, a ROM (Read Only Memory) 202, a RAM (Random Access Memory) 206, an external storage device 207, a display device 208, and an input interface (IF) 209. The PC 101 also has a USB (Universal Serial Bus) IF 205, a wired LAN IF 210, and a wireless LAN IF 211. However, the PC 101 does not necessarily have to have the USB IF 205 and the wired LAN IF 210.
[0020] The CPU 201 includes one or more processors, and loads the program 203 stored in the ROM 202 into the RAM 206 and executes it to execute various processes including the instruction process. The ROM 202 stores the program 203 corresponding to various processes including the program for wireless setting process, and information used by the program 203 such as a wireless profile 204 described later. The external storage device 207 stores an operating system (OS), a printer driver, and various other data. The display device 208 displays a screen according to the control of the OS and the program 203. The input interface 209 accepts input by the user and enables input of various data and instruction of operations. The input interface 209 may include a keypad and buttons. In one example, the display device 208 and the input IF 209 may be formed integrally like a touch panel display. The wired LAN IF 210 is a wired communication interface for performing communication conforming to a wired communication standard such as Ethernet. The wireless LAN IF 211 is a wireless communication interface for performing communication conforming to a wireless communication standard such as the IEEE 802.11 standard.
[0021] The PC 101 can perform P2P communication with the printer 103 via a USB cable 221 connected to the USB IF 205, or via a wireless direct connection 224 established by the wireless LAN IF 211. The PC 101 can also connect to the LAN 222 via a wired LAN cable 225 connected to the wired LAN IF 210. In this case, if the printer 103 can also be connected to the same LAN 222 as the PC 101, the PC 101 and the printer 103 can communicate with each other on the same LAN 222. Furthermore, the PC 101 can connect to the AP 223 via the wireless LAN interface (IF) 211, and the AP 223 can connect to the LAN 222 via a wired LAN cable 226, thereby allowing the PC 101 to connect to the LAN 222. If the printer 103 can also be connected to the AP 223, the PC 101 and the printer 103 can communicate with each other via the AP 223.
[0022] Here, the wireless profile 204 is information including specific information (such as SSID) of the AP 223 connected by the wireless LAN IF 211 and authentication information (such as password) used in the authentication process, and including one or more pieces of connection information usable for establishing a wireless connection with the AP 223. If the wireless network can be connected without authentication information, the connection information may be only the specific information. The wireless profile 204 is stored and managed by the OS executed by the CPU 201. The OS is stored in a storage device such as the external storage device 207, and is read and executed by the CPU 201. At this time, the OS stores and manages the priority of the AP 223 to be connected and settings for controlling automatic connection as information associated with the wireless profile 204. In this embodiment, the settings for controlling automatic connection are included in the wireless profile 204 as a flag associated with the connection information. In such a case, the PC 101 can determine whether or not to automatically attempt to establish a connection for each SSID specified in the connection information based on the flag. In another example, the settings for controlling automatic connection can be set as a flag for all connection information. In such a case, if the flag is set to automatically attempt to establish a connection, PC 101 automatically attempts to establish a connection in a predetermined order, whereas if the flag is set to not attempt to automatically establish a connection, PC 101 does not attempt to automatically establish a connection using the connection information.
[0023] FIG. 13(a) shows a list screen 1300 of wireless profiles 204 displayed by the OS. The list screen 1300 is displayed by the user operating a setting screen of the OS. The list screen 1300 displays the service set identifiers (SSIDs) of the wireless profiles 204 according to the priority of the wireless profiles 204 managed by the OS. In FIG. 13(a), the wireless network 301 with the SSID "SSID1" has a higher connection priority than the wireless network 1302 with the SSID "SSID2", so the wireless network 1301 is displayed at the top. In addition, when the user selects a wireless profile of any wireless network on the list screen 1300, an operation screen 1310 shown in FIG. 13(b) is displayed. When the user presses a "Delete" button 1312 on the operation screen 1310, the OS can delete information of the wireless profile. In addition, when the user presses a "Properties" button 1311 on the operation screen 1310, the OS displays associated information of the wireless profile 204. FIG. 13C shows an associated information display screen 1320 of the wireless profile 204 displayed by the OS. The associated information display screen 1320 includes a setting UI 1321 for controlling the automatic connection setting of the wireless profile 204. When the user turns on the automatic connection setting in the setting UI 1321, the OS enables an attempt to automatically establish a connection of the wireless profile 204. Alternatively, when the user turns off the automatic connection setting in the setting UI 1321, the OS disables an attempt to automatically establish a connection of the wireless profile 204. When a network reconnection is required, the OS attempts to reconnect to an appropriate network based on the associated information of the wireless profile 204. For example, when multiple wireless profiles 204 are saved, the OS reconnects to the network according to the priority order of the connection of the wireless profile 204. At this time, when the automatic connection of the wireless profile 204 is enabled, the OS attempts to automatically reconnect to the network in a predetermined order based on the information of the wireless profile 204.On the other hand, if automatic connection of the wireless profile 204 is disabled, the OS will not reconnect to the network unless the user selects a specific wireless network at any time and performs an operation to reconnect the wireless LAN IF 211 to that network.
[0024] The printer 103 includes a CPU 252, a ROM 253, a RAM 258, a display device 259, an input IF 260, a USB IF 251, a wireless LAN IF 256, and a wired LAN IF 257. The CPU 252 reads a program 254 from the ROM 253 to the RAM 258 and executes it to execute various controls by the printer 103. The ROM 253 stores the program 254, a wireless profile 255, MIB (Management Information Base) information 261, and the like. The display device 259 displays a screen of the program 254 to present to the user the status of processing and the state of accepting input of data. The input IF 260 accepts input by the user, and enables the user to input data and give operation instructions to the program 254. The USB IF 251, the wireless LAN IF 256, and the wired LAN IF 257 are similar to the USB IF 205, the wireless LAN IF 211, and the wired LAN IF 210, respectively, and therefore will not be described. The printer 103 does not necessarily have to include the USB IF 251 and the wired LAN IF 257 .
[0025] The printer 103 can perform P2P communication with the PC 101 via a USB cable 221 connected to the USB IF 251, or via a wireless direct connection 224 established by the wireless LAN IF 256. The printer 103 can also be connected to the LAN 222 via a wired LAN cable 227 connected to the wired LAN IF 257, and if the PC 101 is also connected to the LAN 222, the PC 101 and the printer 103 can communicate with each other on the same LAN 222. The printer 103 can connect to the AP 223 via the wireless LAN IF 256, and the AP 223 can connect to the LAN 222 via the wired LAN cable 226, thereby allowing the printer 103 to connect to the LAN 222. The wireless profile 255 is information including one or more combinations of specific information (such as SSID) and authentication information (such as password) of the AP 223 connected via the wireless LAN IF 256. The wireless profile 255 is stored and managed by the CPU 252 executing the program 254 included in the ROM 253. For example, when the printer 103 is turned on, the printer 103 can use the wireless profile 255 to reconnect to a wireless network that was previously connected and is included in the wireless profile 255. For example, the printer 103 may be configured to manage specific information and authentication information for multiple wireless networks, like the OS of the PC 101. As described above, the MIB information 261 is a standard for managing network devices, and holds information that can be used by the network management protocol SNMP (Simple Network Management Protocol). The MIB is defined in a tree structure, and each piece of information is linked to a unique OID (Object Identifier). The system is such that the required information can be obtained by specifying the OID when requesting data using the SNMP protocol.
[0026] The ROM 253 also stores a unique SSID that is uniquely set for the printer 103. The unique SSID is uniquely determined for the printer manufacturer or printer model, and the wireless LAN interface 256 of the printer 103 can operate as an AP corresponding to this unique SSID. Therefore, the PC 101 can directly connect to the printer 103 operating as an AP, similar to the case of connecting to the AP 223.
[0027] In the explanation of FIG. 2, the division of processing between the PC 101 and the printer 103 is as described above, but other division of processing may also be adopted.
[0028] First Embodiment The first embodiment will be described in detail below with reference to FIG. 3 to FIG. 12. FIG. 3 is a flowchart showing a wireless setup process in which the PC 101 according to this embodiment connects the printer 103 to a network formed by the AP 102. The process by the PC 101 is realized by the CPU 201 executing the program 203, and similarly, the process by the printer 103 is realized by the CPU 252 executing the program 254. FIG. 4 is a flowchart showing the execution possibility determination process of the wireless setting process executed in S302 of FIG. 3. Similarly, FIG. 5 is a table showing the determination result according to the state of the wired LAN IF and the wireless LAN IF in the determination process shown in FIG. 4. Similarly, FIG. 6 is a flowchart showing the process of the "reconnection control process" executed in S410 of FIG. 4. Similarly, FIG. 7 is a flowchart showing the process of the "wireless setting process" executed in S305 of FIG. 3. Similarly, FIG. 8 is a flowchart showing the process of the "wireless setting instruction process" executed in S704 of FIG. 7. Similarly, FIG. 9 is a flowchart showing the process of the "setting standby process" executed in S754 of FIG. 7. Similarly, Fig. 10 shows a screen displayed on the display device 208 of PC 101 in the process shown in Fig. 3. Similarly, Fig. 11 shows a screen displayed on the display device 208 of PC 101 in the determination process shown in Fig. 5. Finally, Fig. 12 shows a screen displayed on the display device 208 of PC 101 in the wireless setting instruction process shown in Fig. 8.
[0029] A wireless setup process for connecting the printer 103 to the AP 102, which is executed by the PC 101 according to this embodiment, will be described with reference to FIG. 3. If the PC 101 is currently connected to a network, the PC 101 connects the printer 103 to the same network. The PC 101 starts the wireless setup process for the printer 103 shown in FIG. 3 by executing an application program for network setting process (hereinafter, a setting application) included in the program 203 in the PC 101. The setting application may be capable of executing not only the network setting process but also other processes. Specifically, for example, the setting application may be capable of executing a process of acquiring capability information from the printer 103 that has been the target of the network setting process, and a process of transmitting a print job to the printer 103 that has been the target of the network setting process to execute printing. The communication between the PC 101 and the printer 103 by the setting application in the above process may be executed via a network between the PC 101 and the printer 103 that has been set and established by the network setting process. It is assumed here that the PC 101 is already connected to the external AP 102, and the printer 103 is in a wireless setting mode. FIG. 1(b) shows the system configuration at this time.
[0030] The PC 101 executes an execution possibility determination process (S301) for determining whether or not wireless setting processing via a P2P connection is possible based on the connection states of the wireless LAN IF 211 and the wired LAN IF 210. Details of S301 will be described later with reference to FIG.
[0031] If the PC 101 determines that there is no network that can be connected to for wireless setup of the printer 103 (No in S302), it displays an undetected screen 1010 indicating that no network has been detected on the display device 208 (S312), as shown in Fig. 10(a). The undetected screen 1010 waits until the user selects an "Exit" button 1011. When the user presses the "Exit" button 1011, the PC 101 ends the printer wireless setting process shown in Fig. 3.
[0032] When the PC 101 determines in S301 that there is a valid network for wirelessly setting the printer 103 (Yes in S302), it checks whether wireless setting processing is possible (S303).
[0033] If the PC 101 determines based on the result of S301 that the wireless setting process can be executed (Yes in S303), it executes (S304) the wireless setting process of the printer 103. The details of the wireless setting process will be described later with reference to FIG.
[0034] If the settings of PC 101 have been changed in S301 (Yes in S305), PC 101 restores the settings of PC 101 to the state before the processing of S301 was executed (S306) based on the settings (described later) temporarily stored in RAM 206. If the settings of PC 101 have not been changed in S301 (No in S305), PC 101 advances the processing to S307.
[0035] The PC 101 searches for printers on the network (S307), and when it detects the printer 103 that has performed the wireless setting process (Yes in S308), it considers the wireless setting process to be successful. For example, the PC 101 stores the MAC (Media Access Control) address of the wireless LAN IF 256 of the printer 103 during the wireless direct connection in the wireless setting process. Thereafter, in S809, after connecting to the AP 102, it sends an ARP (Address Resolution Protocol) packet, and when the MAC address of the printer 103 is detected in the response to the ARP packet, it can be determined that the wireless setup of the printer 103 is successful. Note that the MAC address is not limited to the MAC address, and any identifier that can uniquely identify the printer 103 may be used. For example, a similar determination may be made when the serial number of the printer 103 is detected. At this time, a connection success screen 1020 indicating the success of the connection as shown in FIG. 10(b) is displayed on the display device 208 (S309). The connection success screen 1020 is an example of a screen that notifies the user that the connection to the printer 103 via the infrastructure connection has been successful by the wireless setting process. On the successful connection screen 1020, the PC 101 waits until the user selects an "Exit" button 1021. When the user presses the "Exit" button 1021, the PC 101 ends the wireless setting process for the printer 103 shown in FIG.
[0036] If the printer 103 that has performed the wireless setting process is not detected (No in S308), the PC 101 considers that the wireless setting process has failed. At this time, a connection failure screen 1030 as shown in FIG. 10C is displayed on the display device 208 (S310). The connection failure screen 1030 is an example of a screen that notifies the user that the connection to the printer 103 via the infrastructure connection has failed and the wireless setting process has failed. In the connection failure screen 1030, the PC 101 waits until the user selects an "Exit" button 1031. When the user presses the "Exit" button 1031, the PC 101 ends the wireless setting process of the printer 103 shown in FIG. 3. Note that, in one example, after displaying the connection failure screen 1030 in S310, the printer search process of S307 may be executed again, or the process may be executed again from S301.
[0037] If the PC 101 determines based on the result of S301 that the wireless setting process cannot be executed (No in S303), the PC 101 guides the user on an operation method for connecting the printer 103 and the AP 102. At this time, the guide screen 1040 as shown in FIG. 10(d) is displayed on the display device 208 (S311). A "Manual" button 1042 is arranged on the guide screen 1040, and when the user selects the "Manual" button 1042, an operation method for the printer 103 and the AP 102 is displayed by a Web browser or the like. Although the display by pressing the "Manual" button 1042 is shown as an example, this is not the only possible example. For example, the PC 101 may display the guide screen 1040 and simultaneously start a Web browser to present the content to the user. Alternatively, the content may be embedded and displayed in the guide screen 1040. Alternatively, a message corresponding to the content may be displayed in the guide screen 1040. The guide screen 1040 guides the user on how to connect the printer 103 to the AP 102, and then waits until the user presses the "Next" button 1041. When the user presses the "Next" button 1041 in accordance with the guidance on the guide screen 1040, the PC 101 executes a printer search process on the network (S307). The subsequent processes of S308 to S310 are the same as those described above.
[0038] The execution availability determination process for the wireless setting process executed by the PC 101 in this embodiment (S301 in FIG. 3) will be described with reference to FIG.
[0039] When the PC 101 starts the execution possibility determination process, it acquires the status of the wireless LAN IF 211 and the wired LAN IF 210 (they may be referred to as "IF" without distinction in the following description) (S401). Specifically, the PC 101 executes the API (Application Programming Interface) of the OS to acquire information on whether an IF is installed and on the network to which each IF is currently connected. The PC 101 classifies the IF into four states based on the acquired IF detection result. As the first state, the PC 101 determines that the IF is in a "not installed" state when the IF is not installed. For example, in a desktop PC that does not have a wireless LAN IF, the PC 101 determines that the wireless LAN IF is in a "not installed" state. As the second state, the PC 101 determines that the IF is in a "disabled" state when the IF is disabled. For example, if the PC 101 is equipped with the wireless LAN IF 211 but the OS is set to not establish a connection via the wireless LAN IF 211 (off), the PC 101 determines that the wireless LAN IF 211 is in the "disabled" state. As a third state, if the IF is enabled but not connected to a network, the PC 101 determines that the IF is in the "not connected" state. As a fourth state, if the IF is enabled and connected to a network, the PC 101 determines that the IF is in the "connected" state. For example, if the wireless LAN IF is enabled but not connected to the AP 102, the PC 101 determines that the wireless LAN IF is in the "not connected" state. Alternatively, if the wireless LAN IF 211 is enabled and connected to the AP 102 via the wireless LAN IF 211, the PC 101 determines that the wireless LAN IF 211 is in the "connected" state. More specifically, when the PC 101 can normally transmit and receive packets to and from the IP address (Internet Protocol Address) of the default gateway of the IF, the PC 101 determines that the IF is connected to the network.
[0040] Based on the acquired IF state, the PC 101 determines whether or not wireless setting processing can be executed (S402 to S404, S406).
[0041] Here, possible combinations based on the IF states will be described with reference to Fig. 6. Table 501 shown in Fig. 5 shows the results that PC 101 can determine based on the combination of four states for each type of IF. In the following description, with reference to Fig. 5, combinations of IF states will be shown when it is determined whether or not wireless setting processing can be performed (S402 to S404, S406).
[0042] If both the wired LAN IF and the wireless LAN IF are not in the "connected" state (Yes in S402), the PC 101 determines that there is no network that the PC 101 can set on the printer 103 and that the wireless setting process cannot be executed (S413), and ends the process in Fig. 4. 502 in Fig. 5 shows a combination for which the PC 101 determines that there is no network that the PC 101 can set on the printer 103.
[0043] On the other hand, if any one of the IFs is in the "connected" state (No in S402), a network exists that PC 101 can set to the printer, so PC 101 decides to execute wireless setting processing and advances the process to S403.
[0044] If the wireless LAN IF is in the “connected” state (Yes in S403), the PC 101 decides to execute the wireless setting process with the current configuration (S412) and ends the process shown in Fig. 5. 506 in Fig. 5 shows a combination for which the PC 101 determines that the wireless setting process can be executed with the current configuration.
[0045] On the other hand, if the wireless LAN IF is not in a "connected" state (No in S403), PC 101 advances the process to S404. If the wireless LAN IF is not in a "connected" state (No in S403), this corresponds to the case where the wired LAN IF is in a "connected" state. That is, the determination in S403 is whether or not the wireless LAN IF is in a "connected" state, and whether or not the wired LAN IF is not in a "connected" state. That is, if any of 503 to 505 in FIG. 5 applies, PC 101 executes the process from S404 onwards.
[0046] If the wireless LAN IF is not in the "disabled" state or the "not installed" state (No in S404), the PC 101 determines that the wireless setting process can be executed in the current configuration (S412), and ends the process shown in Fig. 4. 505 in Fig. 5 indicates a combination for which the PC 101 determines that the wireless setting process is possible in the current configuration.
[0047] On the other hand, if the wireless LAN IF is in either the "disabled" state or the "not installed" state (Yes in S404), the PC 101 acquires all the wireless profiles 204 stored in the ROM 202 (S405). Specifically, the PC 101 acquires the wireless profiles 204 stored in the ROM 202 by executing an API of the OS. Alternatively, the PC 101 acquires a list of the wireless profiles 204 from a folder or registry in which the OS stores the wireless profiles 204, without executing the API.
[0048] If the wireless LAN IF is in a "not installed" state (No in S406), and if there is at least one acquired wireless profile (Yes in S407), PC 101 determines that a wireless LAN IF was previously installed in PC 101. In other words, the user may own a device that adds a wireless LAN IF to PC 101, such as an add-on device. For this reason, PC 101 checks with the user whether or not the user owns a wireless LAN IF (S408).
[0049] At this time, a confirmation screen 1100 for confirming the ownership of a wireless LAN IF as shown in FIG. 11(a) is displayed on the display device 208. The confirmation screen 1100 is provided with a "Yes" button 1101 indicating consent to the confirmation message on the screen, and a "No" button 1102 indicating non-consent to the confirmation message on the screen. The confirmation screen 1100 prompts the user to press the "Yes" button 1101 or the "No" button 1102 depending on whether or not the user owns a wireless LAN IF. For example, if the user does not have a wireless LAN interface, the user presses the "No" button 1102, and the PC 101 determines that the user does not own a wireless LAN IF (No in S408), and the process proceeds to S415. In S415, the PC 101 determines that the wireless setting process cannot be executed, and ends the process shown in FIG. 4. 503 in FIG. 5 indicates a combination in which the PC 101 determines that the wireless setting process cannot be executed in the current configuration.
[0050] On the other hand, if the user has a wireless LAN IF, the user presses the "Yes" button 1101, and PC 101 determines that the user has a wireless LAN IF (Yes in S408). In this case, PC 101 notifies the user to connect the wireless LAN IF to PC 101 (S414).
[0051] At this time, the PC 101 displays an attachment instruction screen 1110 as shown in FIG. 11B on the display device 208. A "Next" button 1111 is arranged on the attachment instruction screen 1110. The attachment instruction screen 1110 guides the user to instruct the PC 101 to attach a wireless LAN interface and then prompts the user to press the "Next" button 1111. When the user presses the "Next" button 1111 according to the guidance on the attachment instruction screen 1110, the PC 101 acquires the status of the various IFs again (S401). After that, the PC 101 proceeds with the process based on the status of the various IFs acquired again. On the other hand, if there is no acquired wireless profile (No in S407), the PC 101 determines that the PC has not used a wireless LAN IF in the past. In this case, since the PC 101 has no wireless profile to transmit, the PC 101 determines that the wireless setting process cannot be executed in the current configuration (S415) and ends the process shown in FIG. 4. 503 in FIG. 5 shows combinations for which it is determined that the wireless setting process is not possible.
[0052] On the other hand, when the PC 101 determines that the wireless LAN IF is in the "disabled" state (Yes in S406), the PC 101 determines that the wireless setting process can be executed by enabling the wireless LAN IF 211. However, by enabling the wireless LAN IF, the OS may automatically connect the PC 101 to a network to which it was previously connected. That is, the OS may connect the PC 101 to one or more networks via the wired LAN IF and the wireless LAN IF. At this time, a reconnection to a network that the user intentionally disconnected may be performed, and the PC 101 may set a wireless profile that should not be set to the printer 103, which may cause the connection process to fail. Therefore, the PC 101 executes a reconnection control process for controlling the reconnection of the wireless LAN IF before enabling the wireless LAN IF (S409). Note that the process of S409 is executed when the result of S403 is No, and therefore the process of S409 is executed when the wired LAN IF is in the "connected" state.
[0053] Here, the reconnection control process will be described with reference to FIG. 6. The reconnection control process shown in FIG. 6 is a restriction process that restricts communication devices that automatically reconnect when the wireless LAN IF 211 of the PC 101 is enabled. When the PC 101 starts the reconnection control process (S409), it determines whether or not reconnection control is necessary in the OS that the PC 101 is running (S601). For example, depending on the version of the OS, the OS itself has a mechanism for controlling not to reconnect to the wireless LAN. That is, in a specific version, if the PC 101 is already connected to another network (for example, a network to which a wired LAN IF is connected) at the time the wireless LAN IF is enabled, the OS does not automatically connect the PC 101 to the network to which it was previously connected. In such a case, the PC 101 determines that the OS does not require reconnection control. That is, S601 is specifically a process for determining whether or not the OS owned by the PC 101 is a specific version. Note that the specific version is, for example, Windows 10, and the non-specific version is Windows 7. If the OS does not require reconnection control (No in S601), PC101 ends the reconnection control process shown in FIG. 6. That is, the control to turn off the automatic connection is not executed. As described above, in this embodiment, this determination is executed when the wired LAN IF is in the "connected" state. That is, in this embodiment, when the wired LAN IF is in the "connected" state and the OS of PC101 is a specific version, the control to turn off the automatic connection is not executed. However, even if the OS of PC101 is a specific version, if the wired LAN IF is not in the "connected" state, PC101 may automatically connect to the network to which it was previously connected by the OS. Therefore, if the wired LAN IF is not in the "connected" state, the control to turn off the automatic connection may be executed regardless of the OS of PC101. Whether the OS requires reconnection control depends on the specifications of the OS, so PC101 may execute the reconnection control process from S602 onwards regardless of the version of the OS. That is, in the reconnection control process, the determination of whether or not the OS of the PC 101 requires reconnection control (S601) may be omitted.That is, even if the wired LAN IF is in a "connected" state and regardless of the OS that the PC 101 has, the processing of S602 and the subsequent steps may be executed.
[0054] If the OS requires reconnection control (Yes in S601), the PC 101 determines whether the wireless profile acquired in S405 includes a wireless profile 204 for establishing a P2P connection with the printer 103 to be connected (S602). For example, if the wireless profile includes a character string associated with the model name of the printer to be connected, the PC 101 determines that it has a wireless profile for connecting to the printer 103 to be connected. Alternatively, if the wireless profile includes a character string that has been agreed upon in advance with the printer side, the PC 101 determines that it has a wireless profile for connecting to the printer 103 to be connected. When performing wireless setting processing, the PC 101 performs a P2P connection with the printer 103 by wireless direct connection. At this time, the wireless profile 204 of the printer 103 can be stored in the ROM 202 in association with the priority of connection by the OS. In such a situation, even if the PC 101 automatically reconnects to the printer 103 in the wireless setting processing, user convenience is not reduced. Therefore, when the wireless profile 204 related to the printer 103 to be connected is included (No in S602), the PC 101 changes the connection priority of the wireless profile 204 to the highest priority, saves it (S608), and ends the processing shown in Fig. 6. That is, the reconnection restriction processing includes a process of setting to reconnect only to the printer 103, and a process of changing the priority of an attempt to establish a connection to the printer 103. Note that the processing of S602 may be omitted. That is, the processing from S603 onwards may be executed regardless of whether the wireless profile 204 for establishing a P2P connection with the printer 103 to be connected is included.
[0055] As a result, when the wireless LAN IF is enabled, the PC 101 can automatically reconnect to the printer 103 to be connected if reconnection to the printer 103 to be connected is possible. Furthermore, the PC 101 can avoid reconnecting to a printer other than the printer 103 to be connected even if connection to the printer 103 to be connected is possible. Depending on the specifications of the application of the wireless setting process, the PC 101 may delete the wireless profile 204 of the printer 103 after the wireless setting process is completed. Therefore, in the reconnection control process, the PC 101 may omit the determination (S602) of whether or not the wireless profile 204 related to the printer 103 to be connected is included. In such a case, as described below, the reconnection destination restriction process includes a process of setting so as not to attempt automatic connection establishment when the wireless LAN IF 211 of the PC 101 is enabled.
[0056] If the wireless profile 204 related to the printer 103 to be connected is not included (Yes in S602), the PC 101 acquires information regarding the automatic connection setting of the wireless profile 204 (S603). If the automatic connection setting of the acquired wireless profile 204 is "off" (No in S605), the PC 101 determines that reconnection control is unnecessary. On the other hand, if the automatic connection setting of the acquired wireless profile 204 is "on" (Yes in S604), the PC 101 considers that it is necessary to perform reconnection control processing. Therefore, the PC 101 temporarily stores in the RAM 206 that the automatic connection of the wireless profile 204 is "on" (S605), and changes and saves the automatic connection of the wireless profile 204 to "off" (S606). In S605, the acquired wireless profile 204 is stored in the RAM 206, and the automatic connection setting of the wireless profile 204 stored in the ROM 202 in S606, i.e., referenced by the OS, may be changed. Alternatively, in S605, some information such as the SSID of a wireless profile for which the automatic connection setting is "on" may be stored, and in S606, the automatic connection setting of the wireless profile 204 in the ROM 202 may be changed. Also, the setting app may not directly execute the process of changing the automatic connection of the wireless profile 204 to "off" and saving it. In other words, the setting app may instruct the OS to execute the process, and the OS may execute the process.
[0057] In this way, in S606, the automatic connection setting of the wireless profile 204 that does not correspond to the printer 103 to be connected is changed to "off." This makes it possible to avoid automatic connection to a network formed by a communication device other than the printer 103 to be connected when the PC 101 enables the wireless LAN IF 211. Also, in S607, the PC 101 can obtain the same effect even if it instructs the OS to turn "off" automatic connection for the wireless profile 204 using the API of the OS. In other words, the reconnection restriction process includes a process of turning "off" automatic connection.
[0058] If there are other wireless profiles 204 (No in S607), the PC 101 acquires information about the next wireless profile 204 and checks the automatic connection settings (S603 to S606). After checking all wireless profiles 204 (Yes in S607), the PC 101 ends the reconnection control process shown in FIG.
[0059] After performing wireless LAN reconnection control in S409, PC 101 enables the wireless LAN IF (S410). Specifically, PC 101 switches the state of the wireless LAN IF 211 from disabled to enabled via the API of the OS. Alternatively, PC 101 may display on the display device 208 a screen (not shown) that instructs the user to enable the wireless LAN IF 211 in PC 101.
[0060] The PC 101 determines that wireless setting processing is possible by enabling the wireless LAN IF 211 (S411), and ends the processing shown in Fig. 4. 504 in Fig. 5 indicates a combination in which the PC 101 determines that wireless setting processing is possible by changing the PC configuration.
[0061] By the above process, in this embodiment, the PC 101 can execute the wireless setting process by switching the wireless LAN IF 211 from an invalid state to an valid state. This makes it possible for the user to connect the printer 103 to the network in a simpler manner without operating the printer 103 and the AP 102. At this time, by performing reconnection control, the PC 101 can control the wireless LAN IF 211 so that it does not automatically connect to another network. This allows the user to execute the wireless setting process without connecting to an unintended network.
[0062] Here, with reference to Fig. 7(A) and Fig. 7(B), the wireless setting process executed by the PC 101 in this embodiment and the setting standby process executed by the printer 103 will be described. There is a method for instructing the execution of the wireless setting process of the printer 103 from the PC 101, and Fig. 7(A) and Fig. 7(B) explain the processing flow of that method. Note that, here, when the PC 101 is connected to the external AP 102, it is assumed that specific information such as the SSID of the AP 102 and authentication information such as a password are stored in the wireless profile 204. Also, when the PC 101 is connected to the external AP 102 via a wired LAN interface, it is assumed that the SSID and password of the AP 102 are not stored in the wireless profile 204. Fig. 1(b) shows a system configuration in which the PC 101 is connected to the external AP 102 via a wired LAN interface.
[0063] 7A shows the wireless setting process executed by the setting application and executed by the PC 101. When the PC 101 starts the wireless setting process (S304), it searches for the printer 103 in the wireless setting mode (S701) and determines whether the printer 103 has been detected based on the search result (S702). Specifically, the SSID of the surrounding communication device is identified based on the beacon detected by the wireless LAN IF 211, and when the PC 101 detects the SSID unique to the printer 103, it determines that the printer 103 has been detected. When the PC 101 detects the printer 103 in the wireless setting mode in S702 (Yes in S702), the PC 101 starts the wireless setting instruction process to instruct the printer 103 to execute the wireless setting process (S703). On the other hand, when the PC 101 does not detect the printer 103 in the wireless setting mode (No in S702), it displays a screen (not shown) that prompts the user to check the state and installation location of the printer 103 (S704). For example, the PC 101 displays a screen (not shown) prompting the user to confirm whether the printer 103 is in the wireless setting mode and whether the printer 103 and the PC 101 are installed nearby. After that, the PC 101 searches again for the printer 103 in the wireless setting mode (S701).
[0064] Here, the wireless setting instruction process will be described with reference to FIG. 8. When the PC 101 starts the wireless setting instruction process (S703), it disconnects the wireless connection with the AP 102 (S801), and then establishes a wireless direct connection with the printer 103 (S802). Specifically, the PC 101 connects the wireless LAN IF 211 to a communication device with a unique SSID corresponding to the printer 103. Note that if the PC 101 is wired connected to the AP 102 via the wired LAN IF 210, that is, if there is no wireless connection, the PC 101 skips S801. Next, the PC 101 makes an information acquisition request to the printer 103, and receives an SSID list by receiving a response from the printer 103 (S803). The SSID list received here indicates the APs searched for by the printer 103.
[0065] Next, PC 101 refers to the wireless profile 204 (S804) and acquires the wireless profile 204 including the SSID of AP 102 that was connected when the wireless setting instruction process started and whose wireless connection was disconnected in S801. If the wireless profile exists, PC 101 checks whether the SSID of AP 102 acquired in S804 is included in the SSID list obtained in S803 (S805). If it is confirmed that the wireless profile exists in the SSID list (Yes in S806), PC 101 determines to send a wireless setting instruction to printer 103 to connect to AP 102 using the wireless profile. In other words, by selecting the wireless profile of AP 102 that was connected when the wireless setting instruction process started, the user can save the trouble of selecting or inputting wireless profile information (including SSID and password).
[0066] If the PC 101 is unable to confirm in S805 that the SSID of the AP 102 exists in the SSID list (No in S806), it instructs the user to input wireless profile information (including the SSID and password) of the AP 102 (S807). For example, if the PC 101 is connected to the AP 102 via a wired LAN interface, it is determined that the profile does not exist and therefore does not exist in the SSID list (No in S806). In S807, the PC 101 displays a network information input screen 1200 as shown in FIG. 12 on the display device 208. The network information input screen 1200 has a drop-down list 1202 for selecting an "SSID name," an input area 1203 for inputting a "password," and an encryption method display area 1204 for displaying the encryption method of the selected SSID. The drop-down list 1202 lists information of the SSID list acquired from the printer 103 in S803. When an SSID is selected from the drop-down list 1202, the encryption method display area 1204 displays encryption method information acquired from the printer 103 as associated information related to the SSID. Although the selection of an SSID using the drop-down list 1202 is shown as an example, this is not limiting. For example, instead of the drop-down list 1202, a form in which the user can input an arbitrary SSID using a keypad may be used. In this case, the encryption method display area 1204 may be a form in which the user can select an arbitrary encryption method. The password input area 1203 is an area for inputting a password character string for connecting to the selected SSID. The password is a key used for encryption in the encryption method displayed in the encryption method display area 1204. For security reasons, the password input area 1203 displays the input password on the screen by replacing it with other characters such as ● so that it cannot be seen from the outside. In order for the user to confirm the input characters, the network information input screen 1200 may have a UI (not shown) that switches the password character string to be displayed exactly as it is input. The network information input screen 1200 prompts the user to input network information for connecting the printer 103 to the AP 102 and then prompts the user to press a “Next” button 1201 .When the user follows the instructions on the network information input screen 1200 and presses the "Next" button 1201, the PC 101 internally stores the input network information as information equivalent to the wireless profile of the AP 102. At this time, the PC 101 may perform a process to verify whether the input network information is correct. Specifically, the PC 101 may verify whether the input password matches the format of the specified encryption method. If the result of the verification indicates that the combination of the password and encryption method is an error, the PC 101 displays the network information input screen 1200 again and prompts the user to input the correct information.
[0067] When the PC 101 confirms that the SSID of the AP 102 exists in the SSID list acquired from the printer 103 (Yes in S806), or when the PC 101 acquires wireless profile information of the AP 102 by user input (S807), the PC 101 transmits a wireless setting instruction to the printer 103 (S808). Specifically, in S808, the PC 101 transmits wireless profile information of the AP 102 (including the SSID and password) to the printer 103. Next, the PC 101 disconnects the wireless direct connection with the printer 103, and reconnects to the AP 102 whose wireless connection was disconnected in S801 (S809). Since the wireless profile 204 of the AP 102 is stored in the ROM 202 in the PC 101, the PC 101 can reconnect to the AP 102 in S809 without the user having to re-enter a password or the like. On the other hand, when the PC 101 is connected to the AP 102 via the wired LAN IF 211, the PC 101 skips S809. Next, if there is a wireless profile remaining due to a temporary P2P connection, the PC 101 deletes it (S810). The process in S810 is performed to prevent a wireless profile of a connection unintended by the user from remaining so that a P2P connection to the printer 103 is not made other than for the wireless setting process. Then, the PC 101 ends the wireless setting instruction process shown in FIG. 8. Also, in S810, a reset process may be performed to save at least a part of the wireless profile 204 temporarily stored in the RAM 206 before the wireless setting process is executed again in the ROM 202. This allows automatic connection to the AP 102 or other communication devices to be performed with the original settings when the user enables the wireless LAN IF 211 after the wireless setup, and prevents the settings of the automatic connection from being changed by the wireless setup.
[0068] When the PC 101 ends the wireless setting instruction process in S703, the wireless setting process shown in FIG. 7A ends.
[0069] Next, the wireless setting process of the printer 103 will be described in detail with reference to FIG. 7B. For example, when the user turns on the printer 103 through the input IF 260 of the printer 103, the printer 103 automatically transitions to the wireless setting mode only at the first startup. In another example, when the user operates the printer 103 through the input IF 260 and instructs execution of the wireless setting process, the printer 103 transitions to the wireless setting mode. The printer 103 in the wireless setting mode operates the wireless LAN IF 256 as an AP having a unique SSID. In one example, the unique SSID includes a character string corresponding to the model name of the printer 103, or includes a character string such as "printer" that can be inferred to be the printer 103 from the SSID. The wireless setting mode is a mode in which the PC 101 can connect to the printer 103 without using authentication information (such as a password). Since the printer 103 operates as an AP with a low security level, the wireless setting mode is used temporarily when performing the wireless setting process of the printer 103. Furthermore, the transition to the wireless setting mode is triggered by a specific condition, such as when the user turns on the power when starting up the printer 103 for the first time after purchasing the printer 103. Note that other methods may be used as a trigger for transitioning to the wireless setting mode. For example, the transition to the wireless setting mode may be triggered by the user giving a predetermined instruction on the display device 259 or input IF 260 of the printer 103.
[0070] Before switching to the wireless setting mode, the printer 103 searches for surrounding SSIDs and creates an SSID list including the detected SSIDs (S751). The printer 103 then switches to the wireless setting mode (S752). The printer 103 then executes a setting standby process (S753).
[0071] Here, the setting standby process will be described with reference to FIG. 9. When the printer 103 starts the setting standby process of S754, it first checks whether it has received an information request from the PC 101 (S901). If the printer 103 determines in S902 that there has been an information request from the PC 101 (Yes in S902), it then performs information transmission processing requested by the PC 101 (S903) and returns to the process of S901. Specifically, if there has been an information request from the PC 101 in S803, the printer 103 transmits the SSID list created in S751 to the PC 101 in S903. If the printer 103 determines that it has not received an information request from the PC 101 (No in S902), it checks whether it has received a wireless setting instruction from the PC 101 (S904). If the printer 103 determines that it has received a wireless setting instruction from the PC 101 (Yes in S905), it ends the setting standby process shown in Fig. 9. On the other hand, if the printer 103 determines that it has not received a wireless setting instruction from the PC 101 (No in S905), it returns to the process of S901. Note that, in this embodiment, the printer 103 makes the determination in the order of S902 and S905, but this is not limiting and the printer 103 may make the determination in any order.
[0072] When the printer 103 ends the setting standby process of S753, it then executes connection processing to the AP 102 specified by the PC 101 (S754). Specifically, the printer 103 executes connection processing to the AP 102 using specific information (such as SSID) and authentication information (such as password) included in the wireless profile 204 received from the PC 101. The printer 103 then ends the wireless setting process shown in FIG. 7B.
[0073] As described above, by transmitting wireless profile information of the AP 102 owned by the PC 101 to the printer 103, it becomes possible to connect the printer 103 and the AP 102 without the user operating the printer 103. At this time, if the PC 101 has enabled the wireless LAN IF 211 and reconnected to another communication device, the PC 101 transmits wireless profile information of the other communication device to the printer 103 based on the determination in step S806. Therefore, the PC 101 controls the printer 103 not to connect to an unintended network before enabling the wireless LAN IF 211. This makes it possible to prevent the PC 101 from transmitting wireless profile information used to connect to a communication device other than the AP 102 to the printer 103.
[0074] <Other embodiments> The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0075] Needless to say, the object of the present invention can also be achieved by supplying a recording medium on which is recorded the program code of software that realizes the functions of the above-mentioned embodiments to a system or device, and having the computer (or CPU or MPU) of the system or device read and execute the program code stored in the recording medium. In this case, the program code itself read from the recording medium realizes the functions of the above-mentioned embodiments, and the recording medium on which the program code is stored constitutes the present invention.
[0076] Examples of storage media for supplying the program code include flexible disks, hard disks, optical disks, magneto-optical disks, CD-ROMs, CD-Rs, magnetic tapes, non-volatile memory cards, ROMs, and DVDs.
[0077] Furthermore, it goes without saying that the functions of the above-mentioned embodiments are not only realized by the computer executing the program code it has read, but also that the functions of the above-mentioned embodiments are realized by the OS running on the computer performing part or all of the actual processing based on the instructions of the program code.
[0078] Furthermore, it goes without saying that this also includes cases where the program code read from the storage medium is written into a memory provided on a function expansion board inserted into a computer or a function expansion unit connected to the computer, and then a CPU provided on the function expansion board or function expansion unit performs some or all of the actual processing based on the instructions of the program code, thereby realizing the functions of the above-mentioned embodiments.
[0079] (Summary of the embodiment) The disclosure of this embodiment is as follows.
[0080] (Item 1) A communication device, comprising: a detection means for detecting a state of a wireless communication interface of the communication device; an enabling means for enabling the wireless communication interface by executing a restriction process for restricting establishment of a connection via the wireless communication interface when the detecting means detects that the wireless communication interface is disabled; an establishment means for establishing a wireless connection with a first other communication device via the enabled wireless communication interface; a transmitting means for transmitting connection information usable for connecting to a second other communication device different from the first other communication device to the first other communication device via the wireless connection; A communication device comprising:
[0081] (Item 2) 2. The communication device according to item 1, wherein the restricting process includes a process of setting the establishing means to automatically connect only to the first other communication device.
[0082] (Item 3) The communication device further comprises a storage means for storing one or more pieces of connection information that can be used to establish a connection with another communication device to which the communication device has previously connected; The establishing means attempts to establish a connection in a predetermined order according to the one or more pieces of connection information stored in the storage means; The communication device described in item 2, characterized in that the restriction process is a process of setting the specified order so that, when connection information that can be used to connect to the first other communication device is available, a connection with the first other communication device is attempted with the highest priority.
[0083] (Item 4) The communication device further includes a storage means for storing one or more pieces of connection information usable for establishing a connection with another communication device to which the communication device has previously connected, and a flag indicating whether or not to automatically attempt to establish a connection in association with the one or more pieces of connection information; The establishing means automatically attempts to connect to another communication device according to the flag stored in the storage means; The communication device according to item 2, characterized in that the restriction process is a process of setting the flag stored in the storage means so as to prevent connection to a communication device other than the first other communication device.
[0084] (Item 5) The validation means temporarily stores the flag stored in the storage means, The communication device according to item 4, characterized in that after the connection information is transmitted by the transmission means, the validation means executes a reset process to reset the flag stored in the storage means to its original state using the temporarily stored flag.
[0085] (Item 6) 2. The communication device according to item 1, wherein the restriction process is a process of enabling the wireless communication interface by setting so that a connection is not automatically established by the establishment means.
[0086] (Item 7) The communication device further includes a storage means for storing one or more pieces of connection information usable for establishing a connection with another communication device and a flag indicating whether or not to automatically attempt to establish a connection; the establishing means automatically attempts to establish a connection with another communication device in accordance with the flag stored in the storage means; 7. The communication device according to item 6, wherein the restriction process is a process of setting the flag so as not to automatically attempt to establish a connection.
[0087] (Item 8) The enabling means temporarily stores whether the flag indicates whether to automatically attempt to establish a connection; 8. The communication device according to item 7, wherein the validation means resets the flag to its original state after the connection information is transmitted by the transmission means.
[0088] (Item 9) 9. The communication device according to any one of items 1 to 8, wherein the enabling means restricts the establishment of a connection via the wireless communication interface via an application programming interface of an operating system.
[0089] (Item 10) The communication device further comprises a storage means for storing one or more pieces of connection information that can be used to establish a connection with another communication device to which the communication device has previously connected; The detection means detects that the wireless communication interface is not installed in the communication device, The communication device described in any one of items 1 to 9, further comprising a notification means for issuing a notification urging the user to connect the wireless communication interface to the communication device when the detection means detects that the wireless communication interface is not installed and when the one or more pieces of connection information are stored in the storage means.
[0090] (Item 11) The communication device has an acquisition unit for acquiring one or more pieces of connection information for connecting to another communication device connected via the wireless communication interface, The communication device described in any one of items 1 to 10, characterized in that the transmission means transmits to the first other communication device, from the one or more connection information acquired by the acquisition means, the connection information that can be used to establish a connection with the second other communication device.
[0091] (Item 12) 12. The communication device according to any one of items 1 to 11, further comprising a decision unit that decides whether or not to attempt to establish the wireless connection based on a detection result of the detection unit.
[0092] (Item 13) 13. The communication device according to item 12, wherein the determination means determines to attempt to establish the wireless connection if a connection has been established via the wireless communication interface.
[0093] (Item 14) The detection means determines a state of a wired communication interface of the communication device; The communication device according to item 12 or 13, characterized in that the determination means determines not to attempt to establish the wireless connection if a connection is not established in both the wireless communication interface and the wired communication interface.
[0094] (Item 15) The communication device according to item 14, characterized in that the determination means determines to attempt to establish the wireless connection when a connection is established via the wired communication interface and the wireless communication interface is disabled.
[0095] (Item 16) The communication device according to item 14 or 15, characterized in that the determination means determines to attempt to establish the wireless connection when a connection has been established via the wired communication interface and when the wireless communication interface is enabled but a connection has not been established.
[0096] (Item 17) A control method executed by a communication device, comprising: Detecting a state of a wireless communication interface of the communication device; when detecting that the wireless communication interface is disabled, executing a restriction process for restricting establishment of a connection via the wireless communication interface to enable the wireless communication interface; establishing a wireless connection with a first other communication device via the enabled wireless communication interface; transmitting connection information usable for connecting to a second other communication device different from the first other communication device via the wireless connection to the first other communication device; A control method comprising:
[0097] (Item 18) 17. A program for causing a computer to operate as the communication device according to any one of items 1 to 16.
[0098] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0099] 101 PC, 102 AP, 103 printer, 201 CPU, 202 ROM, 203 program, 204 wireless profile, 205 USB IF, 206 RAM, 207 external storage device, 208 display device, 209 input IF, 210 wired LAN IF, 211 wireless LAN IF
Claims
1. 1. A communication device, comprising: a detection means for detecting a state of a wireless communication interface of the communication device; an enabling means for enabling the wireless communication interface by executing a restriction process for restricting establishment of a connection via the wireless communication interface when the detecting means detects that the wireless communication interface is disabled; establishing means for establishing a wireless connection with a first other communication device via the enabled wireless communication interface; a transmitting means for transmitting connection information usable for connecting to a second other communication device different from the first other communication device to the first other communication device via the wireless connection; A communication device comprising:
2. 2. The communication device according to claim 1, wherein the restricting process includes a process of setting the establishing means to automatically connect only to the first other communication device.
3. The communication device further comprises a storage means for storing one or more pieces of connection information that can be used to establish a connection with another communication device to which the communication device has previously connected; The establishing means attempts to establish a connection in a predetermined order according to the one or more pieces of connection information stored in the storage means; The communication device according to claim 2, characterized in that the restriction process is a process of setting the specified order so as to attempt a connection with the first other communication device as a top priority when the communication device has connection information that can be used to connect with the first other communication device.
4. The communication device further includes a storage means for storing one or more pieces of connection information usable for establishing a connection with another communication device to which the communication device has previously connected, and a flag indicating whether or not to automatically attempt to establish a connection in association with the one or more pieces of connection information; The establishing means automatically attempts to connect to another communication device according to the flag stored in the storage means; 3. The communication device according to claim 2, wherein the restriction process is a process of setting the flag stored in the storage means so as to prevent connection to a communication device other than the first other communication device.
5. The validation means temporarily stores the flag stored in the storage means, The communication device according to claim 4, characterized in that after the connection information is transmitted by the transmission means, the validation means executes a reset process to reset the flag stored in the storage means to its original state using the temporarily stored flag.
6. 2. The communication device according to claim 1, wherein the restriction process is a process of enabling the wireless communication interface by setting so that the connection is not automatically established by the establishment means.
7. The communication device further includes a storage means for storing one or more pieces of connection information usable for establishing a connection with another communication device and a flag indicating whether or not to automatically attempt to establish a connection; the establishing means automatically attempts to establish a connection with another communication device in accordance with the flag stored in the storage means; 7. The communication device according to claim 6, wherein the restriction process is a process of setting the flag so as not to automatically attempt to establish a connection.
8. The enabling means temporarily stores whether the flag indicates whether to automatically attempt to establish a connection; 8. The communication device according to claim 7, wherein the validation means resets the flag to its original state after the connection information is transmitted by the transmission means.
9. 2. The communication device according to claim 1, wherein the enabling means restricts establishment of a connection via the wireless communication interface through an application programming interface of an operating system.
10. The communication device further comprises a storage means for storing one or more pieces of connection information that can be used to establish a connection with another communication device to which the communication device has previously connected; The detection means detects that the wireless communication interface is not installed in the communication device, The communication device according to claim 1, further comprising a notification means for issuing a notification urging the user to connect the wireless communication interface to the communication device when the detection means detects that the wireless communication interface is not installed and when the one or more pieces of connection information are stored in the storage means.
11. The communication device has an acquisition unit for acquiring one or more pieces of connection information for connecting to another communication device connected via the wireless communication interface, The communication device according to claim 1, characterized in that the transmitting means transmits to the first other communication device, from the one or more connection information acquired by the acquiring means, the connection information that can be used to establish a connection with the second other communication device.
12. 2. The communication device according to claim 1, further comprising a determination unit that determines whether or not to attempt to establish the wireless connection based on a result of the detection by the detection unit.
13. The communication device according to claim 12 , wherein the determining means determines to attempt to establish the wireless connection when a connection has been established through the wireless communication interface.
14. The detection means determines a state of a wired communication interface of the communication device; 13. The communication device according to claim 12, wherein the determining means determines not to attempt to establish the wireless connection if a connection is not established through both the wireless communication interface and the wired communication interface.
15. 15. The communication device according to claim 14, wherein the determining unit determines to attempt to establish the wireless connection when a connection has been established via the wired communication interface and the wireless communication interface is disabled.
16. The communication device according to claim 14, characterized in that the determination means determines to attempt to establish the wireless connection when a connection has been established via the wired communication interface and when the wireless communication interface is valid but a connection has not been established.
17. A control method executed by a communication device, comprising: Detecting a state of a wireless communication interface of the communication device; when detecting that the wireless communication interface is disabled, executing a restriction process for restricting establishment of a connection via the wireless communication interface to enable the wireless communication interface; establishing a wireless connection with a first other communication device via the enabled wireless communication interface; transmitting connection information usable for connecting to a second other communication device different from the first other communication device via the wireless connection to the first other communication device; A control method comprising:
18. A program for causing a computer to operate as the communication device according to any one of claims 1 to 16.
Citation Information
Patent Citations
Mobile unit with bluetooth (r) communication function
JP2007116254A
Communication equipment and communication program
JP2018074381A
Printer
JP2019036793A
Computer program for terminal device, terminal device, and control method
JP2022181971A
Wireless communication setting method, wireless communication system, and recording device
JP6432231B2
