The present invention relates to an information processing apparatus, a method, and a storage medium for storing a program.
A plurality of information processing apparatuses, such as PCs, sharing a device, such as a printer serving as a communication device, via a local area network (LAN) connected to the Internet is known. In some cases, the LAN is constructed as a wireless network, and in such cases, it is more convenient than a wired network in that the installation location of the device is not limited.
Japanese Patent Laid-Open No. 2018-191252 describes that in order to facilitate participation of a printer in an already-constructed LAN, a PC temporarily connects with the printer by wireless direct connection to conveniently connect the printer to an access point. It is described that the PC transmits, to the printer, information for connecting the printer to a specific access point via wireless direct communication. It is also described that a user is prompted to designate setting information of an access point, such as a Service Set Identifier (SSID) and a password, on the PC for a desired access point to which the user wishes to connect the printer. Japanese Patent Laid-Open No. 2020-88428 describes that in order to allow communication between a printer and a PC that are connected to different LANs, the PC is automatically connected to the same network as the printer.
There is a demand for further improvement of user convenience in processing for allowing communication between a communication apparatus and an information processing apparatus via a network.
The present invention provides an information processing apparatus, a method, and a storage medium for storing a program for further improving user convenience in processing for allowing communication between a communication apparatus and an information processing apparatus via a network.
The present invention in one aspect provides a method of controlling an information processing apparatus, the method comprising: transmitting, to a communication apparatus, information related to a second network different from a first network to which the information processing apparatus was connected when a predetermined instruction for executing network setting of the communication apparatus was accepted; after transmitting the information related to the second network, searching for the communication apparatus via the first network; based on the communication apparatus not being discovered in the search via the first network, displaying a screen related to a connection destination of the information processing apparatus; and after displaying the screen, performing control such that the connection destination of the information processing apparatus is a network that is based on a user instruction on the screen among the first network and the second network.
According to the present invention, it is possible to further improve of user convenience in processing for allowing communication between a communication apparatus and an information processing apparatus via a network.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note, the following embodiments are not intended to limit the scope of the claimed invention. Multiple features are described in the embodiments, but limitation is not made an invention that requires all such features, and multiple such features may be combined as appropriate. Furthermore, in the attached drawings, the same reference numerals are given to the same or similar configurations, and redundant description thereof is omitted.
In the present embodiment, a system including an information processing apparatus and a communication apparatus will be described. A printer will be described as an example of the communication apparatus, but the communication apparatus may be a personal computer (PC), a tablet terminal, a smartphone, a camera, a smart speaker, a scanner, or the like. Further, a PC will be described as an example of the information processing apparatus, but the information processing apparatus may be a smartphone, a tablet terminal, or the like. In the present embodiment, a configuration in which the PC executes processing for connecting the printer to an already-constructed Local Area Network (LAN) is assumed. Such processing is also referred to as network setup and includes the following operations.
In order to establish a wireless infrastructure connection and perform communication between the PC and the printer, the PC transmits a network setup instruction to the printer. A wireless infrastructure connection is a connection through an access point (AP), such as the PC and the printer connecting to and communicating through the same AP, for example. The AP is included, for example, in a wireless LAN router. In printers that do not have a separate display, it is not easy for a user to input a Service Set Identifier (SSID) and a password, which are for the printer to connect to an AP, to the printer without making a mistake. Therefore, the PC temporarily connects to the printer which is in wireless setting mode (which will be described later), transmits information such as an SSID and a password (hereinafter referred to as setting information of an AP) related to a desired AP to which a connection can be established to the printer, and connects the printer to the AP. For example, the PC obtains, from the printer, a list of APs to which the printer can connect and, if the AP to which the PC had been connected is included in the list, transmits setting information of the AP to which the PC had been connected to the printer. Then, the printer connects to the AP using the setting information of the AP received from the PC. Since such processing does not require the user to operate the printer or the AP, the user can perform network setup of the printer more conveniently.
As described above, setting information of an AP includes identification information of the AP, such as an SSID, and authentication information used in authentication processing of the AP, such as a password. In other words, setting information of an AP is network information of the AP. Upon connecting the PC and an AP via a wireless LAN interface, an operating system (OS) of the PC holds setting information of the AP as a wireless profile. Here, the wireless profile is information that includes an SSID of the AP to which the wireless LAN interface has connected and authentication information (e.g., a password) to be used in authentication processing. Wireless profiles are stored and managed by the OS. Therefore, setting information of an AP to be transmitted from the PC to the printer can be obtained from a wireless profile stored in OS.
For example, assume that while the PC has designated a 5-GHz frequency band SSID and is connected to an AP, the printer only supports wireless LAN communication in a 2.4-GHz frequency band. Assume that network setup for connecting the printer to a network of an AP is performed in such a case. At this time, a wireless profile of the AP with the 5-GHz frequency band SSID is stored in the OS of the PC. Meanwhile, a wireless profile of an AP to which to connect the printer is not stored in the OS. Therefore, it is necessary that the user designates setting information of an AP, such as an SSID and a password, on the PC for an AP desired by the user, that is, an AP to which to connect the printer. For example, it is necessary that the user designates setting information of an AP, such as an SSID and a password, on the PC for an AP with a 2.4-GHz frequency band SSID. Then, in the network setup, the setting information of the AP designated by the user is transmitted to the printer. As described above, the setting information of the AP transmitted to the printer in a network setup is not necessarily the same as the setting information of the AP to which the PC had been connected.
Incidentally, in a case where one wireless LAN router supports a plurality of frequency bands, one wireless LAN router may be a plurality of APs, each supporting a different frequency band, and the plurality of APs, each having a different SSID, may be enabled. Further, depending on the wireless LAN router, some have a security function for blocking communication so as not to allow communication between devices that are connected using different SSIDs even if the devices are connected to the same wireless LAN router. That is, in a case where an AP supporting 2.4 GHz and an AP supporting 5 GHz are enabled in one wireless LAN router, when a security function is enabled, control is performed so as not to execute communication between devices connected to the AP supporting 2.4 GHz and devices connected to the AP supporting 5 GHz. Such a function is also referred to as an SSID separating function and a privacy separator function. For example, when the security function is enabled in an AP having a plurality of SSIDs (assumed to be a first SSID and a second SSID), if the PC is connected to the AP using the first SSID, the PC cannot communicate with the printer, which is connected to the AP using the second SSID. Further, in a case where an SSID that the PC uses for connection and an SSID that the printer uses for connection are different as in
Further, for example, even if the PC and the printer connect to the same AP by setting information of the same AP as an AP to which the PC had been connected being transmitted to the printer, if the privacy separator function is enabled in that AP, the PC cannot communicate with the printer via that AP. Therefore, in the present embodiment, appropriate control is executed in a case where the PC cannot communicate with the printer even though the printer and the AP has been connected by the PC transmitting setting information of the AP to the printer. Specifically, in the present embodiment, when the PC cannot discover the printer via a network of an AP to which the PC had been connected and discovers the printer in a network of an AP to which the printer is connected, the PC displays a confirmation screen to the user. Then, control is performed so as to set a network to which the PC is connected is the same network as the printer based on a user instruction on the confirmation screen. With this, control is performed so as to set a network to which the PC is connected to a network to which the printer is connected only when the user determines that the network to which the PC is connected may be changed. That is, it is possible to prevent a situation such as that in which communication with the printer cannot be performed as a result of the network to which the PC is connected being automatically switched without the user's intention. Further, the user does not need to, for example, return the network to which a switch has been made without the user's intention to an original connection destination network, and thereby, convenience can be improved.
There is a connection method called a wireless direct connection in which communication can only be performed between two devices. The PC 101 and the printer 103 can also be connected Peer to Peer (hereinafter referred to as a P2P connection) via a wireless direct connection. However, during the wireless direct connection, the PC 101 and the printer 103 each are using the wireless LAN interface therein for the wireless direct connection and thus cannot communicate with devices other than each other. Therefore, the wireless direct connection is often used as a temporary connection. In the present embodiment, the PC 101 performs network setup processing (P2P wireless setting processing) for connecting the printer 103 to the AP 102 or the AP 104 by a wireless LAN connection. Specifically, the PC 101 transmits setting information of the AP 102 (or the AP 104) to the printer 103 via the wireless direct connection and thereby causes the printer 103 to connect to the AP 102 (or the AP 104). In a network setup, the PC 101 transmits the setting information of the AP 102 (or the AP 104) to the printer 103 using the wireless direct connection. In the present embodiment, a state in which the printer 103 can receive a network setup instruction including setting information of an AP is defined as “wireless setting mode” or “network setup mode.”
The CPU 201 is a processor that reads and executes a control program stored in the ROM 202 and controls the entire PC 101 and executes processes indicated in flowcharts to be described later according to the control program. As a result of the control program being executed, various functions of the PC 101, such as control of communication with an external device such as the printer 103, generation of a print job to be outputted to the printer 103, and instruction of network setup, are realized. The RAM 206 is constituted by a DRAM, an SRAM, or the like, which requires a backup power supply, and is used as a memory area for storing temporary setting information, management data, and the like for when the PC 101 operates. Further, the RAM 206 is also used as a temporary storage area, such as a main memory, a work area, and the like of the CPU 201, and is also used as a transmission buffer for temporarily storing a print job generated to be transmitted to the printer 103.
The ROM 202 stores a program 203 corresponding to various processes including a program for network setup processing for transmitting setting information of an AP to a printer, a wireless profile 204 to be described later, and the like. The above network setup processing will be described later in detail. In addition, the external storage apparatus 207 stores an operating system (OS), a printer driver, and various other types of data. The display apparatus 208 is constituted by a light emitting diode (LED), a liquid crystal display (LCD), or the like and displays various user interface screens of the OS or the program 203 and notifies the state of the PC 101. The input interface 209 is an interface for receiving data input or a user instruction operation from the user by an operation being performed on an operation unit such as a keyboard. The operation unit may be a physical keyboard, a physical button, and the like or may be a software keyboard, a software button, and the like displayed on the display apparatus 208. That is, the input interface 209 may accept input from the user via the display apparatus 208.
The program for network setup processing is an application program for performing setting for connecting with an AP to which to connect the printer 103 and may include additional functions other than a network setup function. Hereinafter, the program for network setup processing will be referred to as the setup application. For example, the setup application may include a function that causes the printer 103 to perform printing, a function that causes the printer 103 to scan a document set therein, a function for confirming the state of the printer 103, and the like. The setup application may include a function for transmitting information obtained from the printer 103, personal information of the user obtained in the PC 101, and the like to a service management server (not illustrated). The external server 171 may be such a service management server. The setup application is stored in the ROM 202, for example, by being installed from the external server 171 by Internet communication via the wireless LAN interface 211. Assume that the setup application is an application program provided by a vendor of the printer 103.
The ROM 202 also stores network information. The network information contains IP addresses assigned to the wireless LAN interface 211 and the wired LAN interface 210 of the PC 101 as well as an IP address and a subnet mask of an AP to which the PC 101 is connected. The network information also contains a wireless profile of an AP to which the PC 101 has connected. In other words, the ROM 202 stores history information of APs to which the PC 101 had previously been connected. The wireless profile information contains an SSID, security settings, and a password of an AP to which the PC 101 had been connected.
The wired LAN interface 210 and the wireless LAN interface 211 are components for connecting to an external apparatus such as the printer 103 or the AP 102 to perform data communication. For example, the wireless LAN interface 211 can connect to an access point (not illustrated) in the printer 103. The wireless LAN interface 211 controls transmission and reception of data conforming to a communication standard defined in IEEE 802.11 in accordance with an instruction from the CPU 201. A wireless communication method to be used at that time is, for example, WirelessFidelity (Wi-Fi)® defined by a world organization, Wi-Fi Alliance, and is defined as a standard for wireless LANs. Further, the wireless LAN interface 211 includes an access point for connecting with an apparatus, such as the printer 103, as an access point inside the PC 101. Use of this access point is commonly called tethering. A wireless LAN interface 256 of the printer 103 can connect to that access point. By the wireless LAN interface 211 activating that access point, the PC 101 acts as an access point. By the wireless LAN interface 256 and the access point within the wireless LAN interface 211 connecting, the PC 101 and the printer 103 can communicate with each other. In addition, if the wireless LAN interface 211 of the PC 101 is connected to the Internet, the printer 103 can also connect to the Internet via the wireless LAN interface 211.
The PC 101 can connect peer-to-peer (connect P2P or connect directly) to the printer 103 via a USB cable 221 or via a wireless direct connection 224, which uses the wireless LAN interface 211. The PC 101 can also connect to a LAN 222 via an Ethernet cable 225, and if the printer 103 can also connect to the LAN 222, the PC 101 and the printer 103 can communicate with each other over the same LAN 222 environment. Further, the PC 101 can connect to the LAN 222 by connecting to the AP 102 using the wireless LAN interface 211 and the AP 102 connecting to the LAN 222 via an Ethernet cable 226. In addition, if the printer 103 can connect to the AP 102, the PC 101 and the printer 103 can communicate with each other via the AP 102.
The printer 103 includes a CPU 252, a ROM 253, a RAM 258, a display apparatus 259, an input interface 260, a USB interface 251, the wireless LAN interface 256, and a wired LAN interface 257. The CPU 252, the ROM 253, the RAM 258, and the like form a computer of the printer 103 for executing a program. The printer 103 is not limited to the configuration illustrated in
The CPU 252 is a processor that reads and executes a control program stored in the ROM 253 and controls the entire printer 103 and executes processes indicated in flowcharts to be described later according to the control program. As a result of the control program being executed, various functions of the printer 103, such as control of communication with an external apparatus such as the PC 101, are realized. The RAM 258 is constituted by a DRAM, an SRAM, or the like, which requires a backup power supply, and is used as a memory area for storing temporary setting information, management data, and the like for when the printer 103 operates. Further, the RAM 258 is also used as a temporary storage area, such as a main memory, a work area, and the like of the CPU 252, and may operate as a reception buffer, for example, for temporarily holding print information received from the PC 101 or the like.
The ROM 253 is a non-volatile flash memory that stores fixed data such as control programs to be executed by the CPU 252, data tables, and an embedded OS. In the present embodiment, each control program stored in the ROM 253 perform software execution control such as scheduling, task switching, and interrupt processing under the control of the embedded OS stored in the ROM 253.
The ROM 253 stores a program 254, a wireless profile 255, and the like. Here, the wireless profile 255 is information that includes an SSID of an AP to which the wireless LAN interface 256 has connected, authentication information (password, etc.), and the like. 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 powered on, the printer 103 can reconnect to a previous network by using the wireless profile 255. Further, for example, the printer 103 may be configured to manage a plurality of wireless profiles, similarly to the OS of the PC 101.
The ROM 253 also stores a unique SSID that is uniquely set to the printer 103. Here, the unique SSID is uniquely defined for a manufacturer of the printer or a printer model, and the wireless LAN interface 256 of the printer 103 can act as an AP corresponding to this unique SSID. Thus, the PC 101 can connect to the printer 103 operating as an AP corresponding to the unique SSID via the wireless direct connection 224 similarly to a case where it is connected to the AP 102.
The display apparatus 259 is constituted by a light emitting diode (LED), a liquid crystal display (LCD), or the like and displays various menus and notifies the state of the printer 103. The input interface 260 is an interface for receiving data input or a user instruction operation from the user by an operation being performed on an operation unit such as a keyboard. The operation unit may be a physical keyboard, a physical button, and the like or may be a software keyboard, a software button, and the like displayed on the display apparatus 259. That is, the input interface 260 may accept input from the user via the display apparatus 259.
A printing unit 261 discharges a printing agent, such as ink, onto a printing medium, such as a cut sheet, based on image data to form an image on the printing medium and outputs a printing result. In addition, when it is determined that a power-on is a power-on at the time of arrival, the printing unit 261 is configured to perform initial installation processing including cleaning of a print head and registration adjustment for adjusting a discharge position of ink. The printing unit 261 is not only limited to an inkjet printing method and may take a configuration in which another printing method such as an electrophotographic method is employed.
The printer 103 can perform P2P communication with the PC 101 via the USB cable 221 or via the wireless direct connection 224. Further, the printer 103 can connect to the LAN 222 by connecting to the AP 102 using the wireless LAN interface 256 and the AP 102 connecting to the LAN 222 via the Ethernet cable 226. In the description of
Modes and connection methods for executing wireless communication using wireless LAN interfaces will be described below.
Direct connection refers to a form in which apparatuses are directly connected wirelessly to each other without going through an external device, such as the AP 102. Direct connection is also referred to as Peer to Peer connection (P2P connection). The printer 103 is capable of operating in a mode (direct connection mode) for performing communication by direct connection as one of the connection modes. In Wi-Fi communication, there are a plurality of modes for performing communication by direct connection, such as software AP mode and Wi-Fi Direct (WFD) mode.
A mode in which direct connection is executed by WFD is called the WFD mode. WFD is a standard established by Wi-Fi Alliance and is a standard included in the IEEE 802.11 series communication standard. In the WFD mode, after a search for a device to be a communication partner has been performed according to a device search command, P2P group owner (GO) and P2P client roles are determined, and then remaining wireless connection processing is performed. A group owner corresponds to a Wi-Fi master station (master device), and a client corresponds to a Wi-Fi slave station (slave device). This role determination is also called GO Negotiation. In the WFD mode in a state prior to role determination, the printer 103 is in a state in which it is neither a master station nor a slave station. Specifically, between devices that perform communication, first, one device issues a device search command and searches for a device with which to connect in the WFD mode. When the other device to be a communication partner is discovered, information related to services and functions that each device can provide is confirmed between the two. This confirmation of device provision information is optional and not mandatory. This device provision information confirmation phase corresponds to, for example, P2P Provision Discovery. Next, by confirming each other's device provision information, it is determined which will be a P2P client and which will a P2P group owner. When the client and the group owner are determined, they exchange parameters for communicating with each other via WFD. Remaining wireless connection processing and IP connection processing are performed between the client and the group owner based on the exchanged parameters. In the WFD mode, the printer 103 may always operate as a GO without executing the above-described GO Negotiation in the printer 103. That is, the printer 103 may operate in WFD mode that is Autonomous GO mode. That is, a state in which the printer 103 is operating in the WFD mode is, for example, a state in which connection via WFD is not established but the printer 103 is operating as a GO or a state in which connection via WFD is established and the printer 103 is operating as a GO.
In the software AP mode, between devices (e.g., the PC 101 and the printer 103) that perform communication, one device (e.g., the PC 101) is a client that fulfills a role of requesting various services. The other device realizes a function of an access point in Wi-Fi according to software settings. The software AP corresponds to a Wi-Fi master station, and a client corresponds to a Wi-Fi slave station. In the software AP mode, a client searches for a device to be the software AP according to a device search command. When the software AP is discovered, remaining wireless connection processing (e.g., establishment of wireless connection) is performed between the client and the software AP, and then IP connection processing (e.g., assigning of an IP address) is performed. Regarding commands and parameters to be transmitted and received when realizing wireless connection between the client and the software AP, those specified in a Wi-Fi standard may be used, and the description thereof will be omitted here.
In the present embodiment, when the printer 103 establishes and maintains direct connection, the printer 103 operates as a master station in a network to which it belongs. A master station is a device that constructs a wireless network and is a device that provides parameters used to connect to the wireless network to a slave station. The parameters used to connect to the wireless network are, for example, parameters related to the channel used by the master station. By receiving the parameters, a slave station connects to the wireless network constructed by the master station using the channels used by the master station. In the direct connection mode, the printer 103 operates as a master station, and so, the printer 103 can determine which frequency bands and channels to use for communication in the direct connection mode. In the present embodiment, assume that the printer 103 can use channels corresponding to a 2.4-GHz frequency band and channels corresponding to a 5-GHz frequency band for communication in the direct connection mode.
Infrastructure connection is a connection form for devices (e.g., the PC 101 and the printer 103) that perform communication to connect with an access point (e.g., the AP 102) that controls a network of the devices and communicate with each other via the access point. The printer 103 is capable of operating in a mode (infrastructure connection mode) for performing communication by infrastructure connection as one of the connection modes.
In infrastructure connection, each device searches for an access point according to a device search command. When an access point is discovered, remaining wireless connection processing (e.g., establishment of wireless connection) is performed between the device and the access point, and then IP connection processing (e.g., assigning of an IP address) is performed. Regarding commands and parameters to be transmitted and received when realizing wireless connection between the device and the access point, those specified in a Wi-Fi standard may be used, and the description thereof will be omitted here.
In the present embodiment, when the printer 103 operates in infrastructure connection, the AP 102 operates as a master station and the printer 103 operates as a slave station. That is, in the present embodiment, infrastructure connection refers to connection between the printer 103 operating as the slave station and the AP 102 operating as the master station. When the printer 103 establishes an infrastructure connection and the PC 101 establishes an infrastructure connection with the AP 102, communication via the AP 102 becomes possible between the printer 103 and the PC 101. The channels used for communication in infrastructure connection are determined by the AP 102, and so, the printer 103 performs communication in infrastructure connection using the channels determined by the AP 102. In the present embodiment, assume that the printer 103 can use channels corresponding to a 2.4-GHz frequency band and channels corresponding to a 5-GHz frequency band for communication in infrastructure connection. The printer 103 can also use channels corresponding to a Dynamic Frequency Selection (DFS) band of the 5-GHz frequency band for communication in infrastructure connection. In order to communicate with the printer 103 via the AP 102, the PC 101 needs to recognize (search and discover) that the printer 103 belongs to a network that has been formed by the AP 102 and to which the PC 101 belongs.
The printer 103 can operate in network setup mode. A trigger for the printer 103 to start operation in the network setup mode may be, for example, that the user presses a button for the network setup mode or that the printer 103 activates (powers on) for the first time after arrival. The button for the network setup mode may be a hardware (physical) button provided in the printer 103 or a software button displayed by the printer 103 on the display apparatus 259.
The printer 103 enables Wi-Fi communication when it starts operating in the network setup mode. Specifically the printer 103 enables an AP (setup AP) inside the printer 103 dedicated to the network setup mode as Wi-Fi communication enabling processing. An SSID of the setup AP corresponds to the unique SSID described above. With this, the printer 103 enters a state in which it is possible to establish a direct connection with the PC 101 via Wi-Fi. Assume that connection information (SSID and password) for connecting with the setup AP is held in advance in a setup application (program 203) installed on the PC 101 and the PC 101 knows in advance the connection information for connecting with the setup AP. Assume that, therefore, unlike connection information of an AP that is enabled in the direct connection mode, the connection information for connecting to the setup AP cannot be changed as desired by the user. In the network setup mode, the printer 103 may connect with the PC 101 via Wi-Fi Direct (WFD) instead of traditional Wi-Fi. That is, the printer 103 may operate as a group owner and receive network information from the PC 101 via WFD communication. Further, in the network setup mode, the printer 103 may be connected to the PC 101 via Bluetooth. Here, Bluetooth includes Bluetooth Classic and Bluetooth Low Energy (BLE). That is, for example, the printer 103 may operate as a slave device in BLE in the network setup mode and receive network information from the PC 101 via communication over BLE. Further, in the network setup mode, the printer 103 may be capable of executing both network setup via Wi-Fi and network setup via BLE. That is, the printer 103 may enable both Wi-Fi communication and BLE communication when it starts operating in the network setup mode. Specifically, the printer 103 may perform both enabling of the setup AP and enabling of an advertising state, in which advertisement information is transmitted via BLE so as to allow BLE connection, when it starts operating in the network setup mode. Further, the printer 103 may receive network information from the PC 101 via a wired LAN or USB.
As described above, the printer 103 operates in the network setup mode for executing network setup of the printer 103 according to predetermined conditions including a press of a button by the user or whether it is the time of initial installation. When operating in the network setup mode, the printer 103 controls the wireless LAN interface 256 and operates as a setup AP, which is enabled only during operation in the network setup mode. The setup AP is an access point that is different from an access point that is enabled during the above-described soft AP mode. Further, assume that the SSID of the setup AP includes a predetermined character string that can be recognized by a setup application (program 203) of the PC 101.
Further, assume that the printer 103 operating in the network setup mode uses a predetermined communication protocol (setup communication protocol) in communication with the PC 101 connected with the setup AP. The setup communication protocol is, more specifically, Simple Network Management Protocol (SNMP), for example.
The printer 103 stops operation in the network setup mode and disables the setup AP after a predetermined period of time has elapsed after starting operation in the network setup mode. The setup AP is also disabled when connection information for connecting to an external AP and an instruction to change the wireless communication operation mode are received from the PC 101 during the network setup mode.
The operation of the present embodiment will be described in detail below with reference to
By the user executing the program 203 and performing a predetermined operation in the program 203, the CPU 201 initiates network setup processing. Here, assume that the PC 101 is already connected to the external AP 102 and the printer 103 is in the network setup mode.
In step S301, the CPU 201 searches for the printer 103 in the network setup mode. Specifically, for example, the CPU 201 searches for access points around the PC 101 and obtains SSIDs of the discovered access points. Then, in step S302, the CPU 201 determines whether a unique SSID known by the setup application is included in the discovered SSIDs. The unique SSID is an SSID emitted by an access point of the printer 103 in the network setup mode. The processing of steps S301 and S302 is repeated until it is determined that the unique SSID is included in the discovered SSIDs. If it is determined that the unique SSID is included in the discovered SSIDs, the processing proceeds to step S303.
In step S303, the CPU 201 stores setting information of the AP 102 to which the wireless LAN interface 211 is connected in the memory. Then, the CPU 201 disconnects the wireless connection between the wireless LAN interface 211 and the AP 102 and, in step S304, establishes a wireless direct connection with the printer 103. Specifically, the CPU 201 connects the wireless LAN interface 211 to the unique SSID of the AP. If the PC 101 is connected by a wire to the AP 102 via the wired LAN interface 210, that is, the PC 101 is not wirelessly connected to the AP 102, the processing of step S303 is skipped. Further, in a form in which the PC 101 performs various kinds of communication with the printer 103 using a communication method (Bluetooth, wired LAN, USB, etc.) other than Wi-Fi, the wireless connection between the wireless LAN interface 211 and the AP 102 need not be disconnected.
In step S305, the CPU 201 requests the printer 103 for a list of SSIDs of APs around the printer 103 and receives a list of SSIDs from the printer 103 as a response to the request. The list of SSIDs received here is a list of SSIDs of neighboring APs detected (discovered) by the printer 103. In other words, the list of SSIDs can be said to be a list of APs detected (discovered) by the printer 103. Further, in other words, it can also be said to be a list of networks detected (discovered) by the printer 103. The request for a list of SSIDs and the list of SSIDs are communicated via a wireless direct connection but may be communicated using a communication method (Bluetooth, wired LAN, USB, etc.) other than Wi-Fi.
In step S306, the CPU 201 obtains the wireless profile 204 stored in the PC 101. If there are a plurality of networks to which the PC 101 had connected in the past and there are a plurality of wireless profiles, a plurality of wireless profiles are obtained. Then, the setting information (including the SSID) of the AP 102 which was connected at the start of the network setup process and a wireless connection with which has been disconnected in step S303, is identified and obtained from the obtained wireless profiles.
In step S307, the CPU 201 confirms the list of SSIDs obtained in step S305 based on the SSID (first SSID) of the AP 102 obtained in step S306. In step S308, the CPU 201 determines whether the first SSID of the AP 102 is included in the list of SSIDs obtained in step S305 as a result of the confirmation. The determination as to whether the first SSID of the AP 102 is included in the list of SSIDs obtained in step S305 is, in other words, determination as to whether information corresponding to the network formed by the AP 102 is included in the list of SSIDs obtained in step S305.
If it is determined that the first SSID of the AP 102 is included in the list of SSIDs obtained in step S305, the CPU 201 sets the setting information (including the first SSID and password) of the AP 102 to be a target of a network setup instruction to be transmitted to the printer 103. That is, by automatically, without a user operation, selecting the setting information of the AP 102 that was connected to the PC 101 at the start of the network setup processing, the user can skip the operation of selecting or inputting setting information (including an SSID and a password) of an AP to which to connect the printer 103. Meanwhile, if it is determined in step S308 that the first SSID of the AP 102 is not included in the list of SSIDs obtained in step S305, in step S309, the CPU 201 prompts the user to input and instruct setting information (including an SSID and a password) of a desired AP.
For example, if the PC 101 is connected to the AP 102 via the wired LAN interface 210, there will be no wireless profile. In such a case, in step S308, it is determined that the first SSID of the AP 102 is not included in the list of SSIDs obtained in step S305, and the processing proceeds to step S309.
Further, for example, assume a case where the PC 101 designates a 5-GHz frequency band SSID (first SSID) and connects to the AP 102, while the printer 103 only supports wireless LAN communication in the 2.4-GHz frequency band. That is, in such a case, the printer 103 does not support wireless LAN communication in the 5-GHz frequency band. A printer that does support wireless LAN communication in the 5-GHz frequency band will be referred to as a 5-GHz-incompatible printer below. In some cases, a plurality of APs, each using a different frequency band, are enabled in a wireless LAN router in which the AP 102 is enabled, and in such cases, in step S305, the 5-GHz-incompatible printer only detects a 2.4-GHz frequency band SSID and transmits it to the PC 101 in a list of SSIDs. The PC 101 holds a wireless profile related to the 5-GHz frequency band SSID but does not hold a wireless profile related to the 2.4-GHz frequency band SSID. Therefore, in step S308, it is determined that the first SSID of the AP 102 is not included in the list of SSIDs obtained in step S305, and the processing proceeds to step S309.
If the processing proceeds to step S309, it is necessary that the user designates setting information of an AP, such as an SSID and a password, on the PC 101 for an AP that the user desires, that is, an AP to which to connect the printer 103. In step S309, the CPU 201 displays a network information input screen 400 as illustrated in
The password input region 403 is a region for accepting input of a password character string for connecting to a selected SSID. A password is a key used for encryption with an encryption method displayed in the encryption method display region 404. Regarding the password input region 403, an inputted password is replaced with another character such as “.” so that it cannot be seen from the outside in terms of security and displayed on the screen. However, in order to allow the user to confirm the inputted characters, the network information input screen 400 may constitute a UI (not illustrated) for switching to display the password character string as inputted characters. If an encryption method of an AP is not set, that is, if it is an open authentication network, the password input region 403 may be deactivated as input is unnecessary.
The network information input screen 400 is a screen that guides the user to input network information for connecting the printer 103 to a desired AP and prompts the user to press the “next” button 401. When the user presses the “next” button 401 in accordance with the guidance of the network information input screen 400, the CPU 201 temporarily holds therein the inputted network information (SSID, password, and encryption method) as information corresponding to a wireless profile of the AP. At this time, the CPU 201 may perform processing for verifying whether the inputted network information is correct. Specifically, for example, the CPU 201 may verify that the inputted password matches a predetermined format of an encryption method. As a result of the verification, for example, if it is determines that the password and the encryption method are a combination that results in an error, the CPU 201 displays the network information input screen 400 again and prompts the user to input correct information. A network to which a connection can be established using the network information obtained by input of the user on the network information input screen 400 and which is formed by an AP corresponding to the network information will be referred to as a “second network” below. Similarly, an SSID of an AP forming the second network which is an identifier of the second network will be referred to as a “second SSID” below. For example, the second network is a network formed by the AP 104, which is an AP different from the AP 102 as illustrated in
In step S310, the CPU 201 transmits a network setup instruction to the printer 103. If it is determined in step S308 that the first SSID of the AP 102 is included in the list of SSIDs of obtained in step S305, network information of an AP with the first SSID is transmitted to the printer 103 as the network setup instruction. Further, if network information of the second network is obtained according to input of the user in step S309, the network information of an AP with the second SSID is transmitted to the printer 103 as the network setup instruction. That is, in step S310, the setting information of the AP 102, which is identified by the first SSID, or the setting information of an AP identified by the second SSID is transmitted to the printer 103. The network setup instruction is transmitted via a wireless direct connection but may be transmitted using a communication method (Bluetooth, wired LAN, USB, etc.) other than Wi-Fi. Further, in a form in which a network setup instruction is transmitted using a communication method other than Wi-Fi, the network setup instruction may be transmitted while the PC 101 is connected to the first network by Wi-Fi.
In step S311, the CPU 201 disconnects the wireless direct connection with the printer 103 and reconnects with the AP 102 to which the PC 101 was connected in the wireless connection disconnected in step S303. If the wireless profile 204 of the AP 102 is stored in the ROM 202 in the PC 101, the CPU 201 obtains that in step S311 and thereby can reconnect to the AP 102 without needing the user to re-input a password or the like. Alternatively, if the encryption method is not set in the AP 102, the CPU 201 can reconnect to the AP 102 by designating the SSID of the AP 102 without needing re-input of a password or the like. If the PC 101 is connected to the AP 102 via the wired LAN interface 210, the processing of step S311 will be skipped.
In step S312, if there is a wireless profile remaining in the ROM 202 due to temporarily having established a wireless direct connection, the CPU 201 removes the wireless profile. With the processing of step S312, it is possible to prevent a wireless profile of a connection unintended by the user from remaining.
In step S313, the CPU 201 performs printer communication confirmation processing to determine whether communication between the printer 103 and the PC 101 is possible via the network to which the PC 101 is connected. The printer communication confirmation processing of step S313 will be described later with reference to
In step S314, the CPU 201 obtains information related to the model of the printer 103 from the printer 103 discovered in step S313 via the network to which the PC 101 is connected. Specifically, capability information, for example, is obtained from the printer 103. In step S315, the CPU 201 performs processing for installing a printer driver corresponding to the printer 103 in the PC 101 based on the information. Then, the processing of
Next, the processing of the printer 103 will be described in detail with reference to
The CPU 252 starts the processing of
The printer 103 in the network setup mode operates the wireless LAN interface 256 as the access point with the unique SSID described above. For example, the unique SSID includes a character string corresponding to the model name of the printer 103 or a character string with which it is possible to deduce that it is the printer 103, such as “printer”. The network setup mode is a mode in which the PC 101 can easily connect to the printer 103 without using authentication information (e.g., a password). Since the printer 103 operates as a low-security AP in the network setup mode, the network setup mode is temporarily used at the time of performing network setup of the printer 103.
In step S501, prior to causing the printer 103 to transition to the network setup mode, the CPU 252 searches for access points around the printer 103 and creates a list of SSIDs that includes SSIDs of discovered access points. The access points discovered here are access points to which the printer 103 can connect. In other words, access points to which the printer 103 cannot connect are not discovered by the search performed here. The access points to which the printer 103 cannot connect are, for example, access points using a frequency band that the printer 103 cannot use or access points using an encryption method that the printer 103 cannot use. In other words, the search for access points is a search for networks formed by access points. Thus, as described above, the list of SSIDs generated here is, in other words, a list of networks discovered by the search performed by the printer 103. In step S502, the CPU 252 causes the printer 103 to transition to the network setup mode and determines whether a request to obtain a list of SSIDs has been received from the PC 101. This processing corresponds to step S305 of
In step S504, the CPU 252 determines whether a network setup instruction has been received from the PC 101. This processing corresponds to step S310 of
The printer communication confirmation processing of step S313 of
In step S601, the CPU 201 searches for the printer 103 on the first network, which is formed by the AP 102 and to which the PC 101 belongs. Specifically, the printer 103 is searched for by transmitting a broadcast packet or a multicast packet, for example. For example, if the printer 103 and the PC 101 are connected to the same AP 102 and the security function (e.g., an SSID separating function) of the AP 102 is not enabled, a response to the packet transmitted in the search will be received from the printer 103 via the first network. That is, the printer 103 will be discovered by this search. The processing of searching for the printer 103 on the first network will be referred to as a first search below.
In step S602, the CPU 201 determines whether the printer 103 has been discovered in the first search of step S601. If it is determined that the printer 103 has been discovered, in step S603 the CPU 201 displays, on the display apparatus 208, a screen indicating that the printer 103 has been discovered by the first search of step S601. Here, for example, a screen 810 illustrated in
Meanwhile, if it is determined that the printer 103 has not been discovered in the first search, in step S604 the CPU 201 determines whether the first search has been performed a prescribed number of times. If it is determined that the first search has not been performed a prescribed number of times, the processing from step S601 is repeated. If it is determined that the first search has been performed a prescribed number of times, the processing proceeds to step S605.
In step S605, the CPU 201 determines whether network information of an AP with the first SSID has been transmitted or network information of an AP with the second SSID has been transmitted in step S310. If it is determined that network information of an AP with the first SSID has been transmitted in step S310, the processing proceeds to step S620, and a screen indicating a network connection failure of the printer 103 of
In step S606, the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the first SSID and attempts to establish a connection between the wireless LAN interface 211 and the network with the second SSID. That is, the CPU 201 attempts to change the connection destination of the wireless LAN interface 211. The attempt to establish a connection between the wireless LAN interface 211 and the network with the second SSID is performed according to an instruction from the setup application in a state in which the setup application is running. Then, in step S607, the CPU 201 determines whether the connection destination of the wireless LAN interface 211 has been successfully changed. A case where the connection destination of the wireless LAN interface 211 has been successfully changed is, in other words, a case where a connection between the wireless LAN interface 211 and the network with the second SSID has been successfully established.
If it is determined that the connection destination of the wireless LAN interface 211 has not been successfully changed, in step S617 the CPU 201 causes the wireless LAN interface 211 to reconnect to the network with the first SSID. In step S616, the CPU 201 displays a screen indicating a network connection failure of the printer 103 on the display apparatus 208. In the present embodiment, network connection of the printer 103 is deemed successful based on the PC 101 discovering the printer 103 on the network as a result of the network setup processing. Here, for example, a screen 820 illustrated in
If it is determined in step S607 that the destination of the wireless LAN interface 211 has been successfully changed, in step S608 the CPU 201 searches for the printer 103 on the second network. Specifically, the printer 103 is searched for by transmitting a broadcast packet or a multicast packet, for example. If the printer 103 and the PC 101 are connected to the same second network and the security function (e.g., an SSID separating function) of the AP 102 is not enabled, a response to the packet transmitted in the search will be received from the printer 103 via the second network. That is, the printer 103 will be discovered by this search. The processing of searching for the printer 103 on the second network will be referred to as a second search below. In addition, when the wireless LAN interface 211 is set to automatically obtain an IP address, the CPU 201 may deem that the connection destination has successfully been changed upon an IP address being assigned after connecting to the AP 102.
In step S609, the CPU 201 determines whether the printer 103 has been discovered in the second search of step S608. If it is determined that the printer 103 has not been discovered in the second search, in step S613 the CPU 201 determines whether the second search has been performed a prescribed number of times. If it is determined that the second search has not been performed a prescribed number of times, the processing from step S608 is repeated. If it is determined that the second search has been performed a prescribed number of times, the processing proceeds to step S614.
If it is determined in step S613 that the second search has been performed a prescribed number of times, in step S614, the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the second SSID and reconnects the wireless LAN interface 211 to the network with the first SSID. The connection between the wireless LAN interface 211 and the network with the first SSID is established according to an instruction from the setup application in a state in which the setup application is activated. Further, at this time, the state may be unstable due to the OS not being able to search for a neighboring SSID immediately after the connection has been disconnected, and so, reconnection may be unsuccessful. Therefore, the CPU 201 may re-establish a connection after a certain period of time has elapsed from when the connection was disconnected. Alternatively, connection failures may be reduced by retrying the reconnection processing when reconnection is unsuccessful. Then, in step S615, the CPU 201 deletes the wireless profile (including the second SSID and the password) of the second network and, in step S616, displays a screen indicating a network connection failure of the printer 103 of
If it is determined in step S609 that the printer 103 has been discovered in the second network, in step S610 the CPU 201 determines whether the PC 101 is in a state in which it can connect to the Internet, that is, whether the PC 101 can access the external server 171. Specifically, for example, the CPU 201 first executes an Application Programming Interface (API) of the OS, which is an API for confirming whether the PC 101 is in a state in which it can connect to the Internet. Then, by referencing a result obtained by executing that API, it is determined whether the PC 101 is in a state in which it can connect to the Internet. In the present embodiment, the execution of the API and the determination as to whether the PC 101 is in a state in which it can connect to the Internet are performed after the search in step S608 has ended and not in parallel with the search in step S608. In addition, when the above-described API is executed, if the PC 101 is in a state in which it can connect to the Internet via the second network, a result that the PC 101 is in a state in which it can connect to the Internet will, of course, be outputted. However, when the above-described API is executed, even if the PC 101 is in a state in which it can connect to the Internet via a network other than the second network, a result that the PC 101 is in a state in which it can to connect to the Internet will be outputted. That is, for example, if the PC 101 has established a connection with the second network by a wireless LAN and a connection with another network by a wired LAN, a result that the PC 101 is in a state in which it can connect to the Internet will be outputted in a state in which the PC 101 can connect to the Internet via the other network but cannot connect to the Internet via the second network. If it is determined that the PC 101 is not in a state in which it can connect to the Internet, in step S614 the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the second SSID and causes the wireless LAN interface 211 to reconnect to the network with the first SSID. Hereinafter, the processing of steps S614 to S616 will be the same as described above. With the determination processing of step S610, it is possible to prevent the printer driver from the external server 171 based on the model information obtainment processing of step S314, which is performed after the end of the processing of
If it is determined in step S610 that the PC 101 is in a state in which it can connect to the Internet, in step S611 the CPU 201 displays, on the display apparatus 208, a confirmation screen for confirming with the user whether to maintain the connection between the network (second network) to which the connection destination has been changed and the PC 101. Here, for example, a confirmation screen 700 illustrated in
When the connection between the PC 101 and the second network is maintained, the PC 101 may not be able to execute communication with other external devices connected to the first network. Therefore, when the “manual” button 704 included in the confirmation screen 700 is pressed, description of precautions against keeping the network to which the PC 101 is connected as changed is displayed as a web manual, which is Internet content, by a web browser or the like. Specifically, for example, the content includes a description that communication with an external device connected to the first network may be interrupted by keeping the PC 101 connected to the second network as changed. Although an example of display by a press of the “manual” button 704 has been described, the present invention is not limited thereto. For example, the content may be displayed so as to be embedded in the confirmation screen 700. Alternatively, a message corresponding to the details of the content may be displayed on the confirmation screen 700. The confirmation screen 700 is a screen that displays a message to confirm with the user whether to maintain the state in which the PC 101 is connected to the second network and prompts the user to press either the “yes” button 701 or the “no” button 702. In other words, the confirmation screen 700 can be said to be a selection screen capable of accepting a user instruction as to whether to connect the PC 101 to the first network or the second network. Further, in other words, the confirmation screen 700 is a screen for prompting the user to confirm whether to switch to the connection between the network (first network), which was the connection destination before the change, and the PC 101.
In step S612, the CPU 201 determines whether to maintain the connection to the second network. Specifically, for example, when the user presses the “yes” button 701, the CPU 201 determines to maintain the connection of the wireless LAN interface 211 to the second network and, in step S603, displays the screen illustrated in
In the processing of
In addition, when the first search is being performed, the printer 103 may be executing processing for connecting to an AP based on setting information of the AP transmitted from the PC 101. Therefore, it is necessary to determine a threshold for the first search in consideration of the time required for the processing being performed by the printer 103. Meanwhile, regarding the second search, since the search is performed after a sufficient time has elapsed, it is highly likely that the printer 103 has already completed the connection to the second network, and there is no need to determine a threshold in consideration of the time it takes for the printer 103 to connect to the AP 102. Therefore, the threshold for the second search is smaller in number than the threshold for the first search or shorter in time than the threshold for the first search. With this, it is possible to keep the processing time of
Further, a configuration may be taken so as to, if it is determined in step S610 that it is not possible to connect to the Internet even though the AP with the second SSID is connected, not display the screen of
In the present embodiment, a configuration in which the PC 101 obtains the printer driver from the external server 171 via the Internet after establishing communication with the printer 103 has been described as an example. The determination of step S610 as to whether Internet connection is possible is performed in
As described above, in the present embodiment, if communication with the printer 103 is possible when the PC 101 is connected to the second network, the user is first prompted to confirm whether to change to the second network. Thus, only when the user permits a change to the second network, the connection destination of the PC 101 is changed from the first network to the second network. Therefore, it is possible to prevent a case such as that in which the communication between the PC 101 and the printer 103 is no longer performed as a result of the connection destination network being automatically changed and thus a switch to the original network needs to be performed, and thereby, convenience can be improved. Furthermore, the PC 101 can establish a state in which it can communicate with the printer 103 on the second network and end the network setup processing. With this, for example, it is possible to successfully perform print processing without an error when the user executes processing, such as performing a print instruction to the printer 103, after the network setup process is completed. Furthermore, when changing the connection destination of the PC 101 from the first network to the second network, it is indicated to the user that the connection with an external device on the first network may be interrupted, thereby making it possible to prevent a case where a change is made without the user recognizing a possibility of that interruption.
A second embodiment will be described below on points of difference from the first embodiment. In the present embodiment, when the printer 103 is discovered in the second search, the connection destination of the PC 101 is returned to the first network prior to the confirmation screen being displayed. Then, the confirmation screen is displayed, and the user is prompted to select a network to which to connect the PC 101. With this, a network to which the PC is connected is switched to a network to which the printer is connected only when the user determines that the network to which the PC is connected may be changed. That is, it is possible to prevent a situation such as that in which the network to which the PC is connected is automatically switched without the user's intention and communication with the printer, which is connected to a network with a different SSID, cannot be performed. Further, it is possible to prevent a case where the network setup processing is ended in a state in which the connection destination network remains changed even if the user interrupts the network setup processing.
The printer communication confirmation processing of step S313 according to the present embodiment will be described with reference to
Since description for steps S901 to S911 and S930 is the same that for steps S601 to S610, S613, and S620 of
If it is determined in step S907 that the connection destination of the wireless LAN interface 211 has not been successfully changed, in step S920 the CPU 201 causes the wireless LAN interface 211 to reconnect to the network with the first SSID. Then, in step S919, the CPU 201 displays a screen indicating a network connection failure of the printer 103 on the display apparatus 208. Here, for example, the screen 820 illustrated in
If it is determined in step S910 that the second search has been performed a prescribed number of times, in step S912, the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the second SSID and reconnects the wireless LAN interface 211 to the network with the first SSID. The connection between the wireless LAN interface 211 and the network with the first SSID is established according to an instruction from the setup application in a state in which the setup application is activated. Further, at this time, the state may be unstable due to the OS not being able to search for a neighboring SSID immediately after the connection has been disconnected, and so, reconnection may be unsuccessful. Therefore, the CPU 201 may re-establish a connection after a certain period of time has elapsed from when the connection was disconnected. Alternatively, connection failures may be reduced by retrying the reconnection processing when reconnection is unsuccessful. Then, in step S913, the CPU 201 deletes the wireless profile (including the second SSID and the password) of the second network and, in step S919, displays the screen indicating a network connection failure of the printer 103 of
If it is determined in step S911 that Internet connection is not possible, the processing from step S912 described above will be performed. Meanwhile, if it is determined in step S911 that Internet connection is possible, in step S914 the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the second SSID and causes the wireless LAN interface 211 to reconnect to the network with the first SSID. Then, in step S915, the CPU 201 displays a confirmation screen for prompting confirmation as to whether to change the connection destination network on the display apparatus 208. Here, for example, a selection screen 1000 illustrated in
When the PC 101 is connected to the second network, the PC 101 may not be able to execute communication with other external devices connected to the first network. Therefore, when the “manual” button 1004 included in the confirmation screen 1000 is pressed, description of precautions against changing the network to which the PC 101 is connected is displayed as a web manual, which is Internet content, by a web browser or the like. This description is the same as the description to be displayed when the “manual” button 704 of
In step S916, the CPU 201 determines whether to change the connection destination of the wireless LAN interface 211 to the second network. Specifically, for example, when the user presses the “yes” button 1001, the CPU 201 determines to change the connection destination of the wireless LAN interface 211 to the second network and, in step S917, attempts to change the connection destination of the wireless LAN interface 211 to the network with the second SSID. Then, in step S918, the CPU 201 determines whether the connection destination of the wireless LAN interface 211 has been successfully changed.
If it is determined in step S918 that the destination of the wireless LAN interface 211 has been successfully changed, in step S903 the CPU 201 displays the screen illustrated in
Step S916 is referred to again. For example, when the user presses the “no” button 1002, in step S916 the CPU 201 determines not to change the connection destination of the wireless LAN interface 211 to the second network. Then, in step S913, the CPU 201 deletes the wireless profile (including the second SSID and the password) of the second network and, in step S919, displays the screen indicating a network connection failure of the printer 103 of
A configuration may be taken so as not to keep the wireless profile at the time of connection in the processing for connecting the wireless LAN interface 211 to the second network in step S905. Specifically, the above control is performed, for example, by allowing designation as to whether to hold a wireless profile used for connecting to an AP in the OS. If it is designated not to hold a wireless profile used for connecting to an AP in the OS and, in step S906, the wireless LAN interface 211 is connected to the second network, the processing for deleting the wireless profile of the second network in step S913 need not be executed.
As described above, according to the present embodiment, the connection destination of the wireless LAN interface 211 is returned to the original first network prior to step S915. Therefore, it is possible to prevent ending the processing in a state in which the connection destination network remains changed even if the user interrupts the network setup processing in step S915, for example.
A third embodiment will be described below on points of difference from the first and second embodiments. In the present embodiment, the user is prompted to select a network to which to connect the PC 101 prior to the execution of the second search. With this, it is possible to prevent the PC 101 from being connected, even if it is temporary, to the second network without the user's intention when a network administrator has intentionally restricted devices to be connected to the second network, for example.
The printer communication confirmation processing of step S313 according to the present embodiment will be described with reference to
Since description for steps S1101 to S1104 is the same as that for steps S601 to S604 of
If it is determined in step S1104 that the first search has been performed a prescribed number of times, in step S1105 the CPU 201 displays a prior confirmation screen for prompting confirmation of a change of the connection destination network on the display apparatus 208. Here, for example, a prior confirmation screen 1200 illustrated in
When the PC 101 is connected to the second network, the PC 101 may not be able to execute communication with other external devices connected to the first network. Therefore, when the “manual” button 1204 included in the prior confirmation screen 1200 is pressed, description of precautions against changing the network to which the PC 101 is connected is displayed by a web browser or the like. This description is the same as the description to be displayed when the “manual” button 704 of
In step S1106, the CPU 201 determines whether to change the connection destination of the wireless LAN interface 211 to the second network. Specifically, for example, when the user presses the “no” button 1202, the CPU 201 determines not to change the connection destination of the wireless LAN interface 211 to the second network. Then, in step S1116, the CPU 201 displays the screen 820 illustrated in
Meanwhile, when the user presses the “yes” button 1201, the CPU 201 determines to change the connection destination of the wireless LAN interface 211 to the second network. Then, in step S1107, the CPU 201 determines whether the network information of the AP with the first SSID has been transmitted or the network information of the AP with the second SSID has been transmitted in step S310. If it is determined that the network information of the AP with the first SSID has been transmitted in step S310, the processing proceeds to step S1120, and the screen indicating a network connection failure of the printer 103 of
In step S1108, the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the first SSID and attempts to establish a connection between the wireless LAN interface 211 and the network with the second SSID. The attempt to establish a connection between the wireless LAN interface 211 and the network with the second SSID is performed according to an instruction from the setup application in a state in which the setup application is running. Then, in step S1109, the CPU 201 determines whether the connection destination of the wireless LAN interface 211 has been successfully changed. A case where the connection destination of the wireless LAN interface 211 has been successfully changed is, in other words, a case where a connection between the wireless LAN interface 211 and the network with the second SSID has been successfully established.
If it is determined in step S1109 that the connection destination of the wireless LAN interface 211 has not been successfully changed, in step S1117 the CPU 201 causes the wireless LAN interface 211 to reconnect to the network with the first SSID and displays a screen indicating a network connection failure of the printer 103 on the display apparatus 208. If the end button 821 of the screen 820 illustrated in
If it is determined in step S1109 that the destination of the wireless LAN interface 211 has been successfully changed, in step S1110 the CPU 201 searches for the printer 103 on the second network. Specifically, the printer 103 is searched for by transmitting a broadcast packet or a multicast packet, for example.
In step S1111, the CPU 201 determines whether the printer 103 has been discovered in the second search of step S1110. If it is determined that the printer 103 has not been discovered in the second search, in step S1112 the CPU 201 determines whether the second search has been performed a prescribed number of times. If it is determined that the second search has not been performed a prescribed number of times, the processing from step S1110 is repeated. If it is determined that the second search has been performed a prescribed number of times, the processing proceeds to step S1114.
In step S1114, the CPU 201 disconnects the connection between the wireless LAN interface 211 and the network with the second SSID and reconnects the wireless LAN interface 211 to the network with the first SSID. Then, in step S1115, the CPU 201 deletes the wireless profile (including the second SSID and the password) of the second network and, in step S1116, displays the screen indicating a network connection failure of the printer 103 of
If it is determined in step S1111 that the printer 103 has been discovered in the second search, in step S1113, the CPU 201 determines whether Internet connection is possible via the second network, that is, whether an access to the external server 171 is possible. Description for step S1111 is the same as that for step S610 of
If it is determined in step S1113 that Internet connection is possible, the display apparatus 208 displays the screen 810 illustrated in
As described above, according to the present embodiment, the user is prompted for confirmation before changing the connection destination from the first network to the second network. With this, it is possible to prevent the PC 101 from being connected, even if it is temporary, to the second network without the user's intention when a network administrator has restricted devices to be connected to the second network, for example.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2023-181165, filed Oct. 20, 2023, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2023-181165 | Oct 2023 | JP | national |