COMMUNICATION DEVICE, CONTROL METHOD THEREOF, AND PROGRAM

The communication device implements timed operations in connection settings to address inefficiencies and security risks in soft AP mode, ensuring timely completion and enhanced usability.

JP7577624B2Active Publication Date: 2024-11-05CANON KK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021117578
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2024-11-05
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

Existing communication devices do not appropriately control the timeout period in soft AP mode, leading to potential inefficiencies and security risks in connection setting processes.

Method used

A communication device with mechanisms to initiate and complete connection settings based on user operation, including a first and second timeout period for different modes of operation to ensure timely completion and security.

Benefits of technology

This approach allows for efficient and secure control of connection settings, enhancing usability and security by ensuring timely completion of connection processes without unnecessary prolonged exposure to potential vulnerabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007577624000001
    Figure 0007577624000001
  • Figure 0007577624000002
    Figure 0007577624000002
  • Figure 0007577624000003
    Figure 0007577624000003
Patent Text Reader

Abstract

To appropriately performing control for stopping an operation in a state for receiving setting information, as the object of the present invention.SOLUTION: The problem is solved by providing changing means for executing, when a predetermined process is completed during a communication apparatus is operating in a first state, a first change process that executes at least one of a change to increase a counted first value and a change to decrease a first threshold.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication device, a control method thereof, and a program. [Background technology]

[0002] There are known communication devices such as printers that communicate with terminal devices such as personal computers (PCs) and smartphones. Such communication devices execute a connection setting process for communicating with the terminal devices by a predetermined communication method such as WiFi (registered trademark). In addition, at that time, the communication devices operate in a connection setting state (connection setting mode) which is a state for executing the connection setting process.

[0003] Patent Document 1 describes that a communication device operating in soft AP mode receives a device information setting command and sets an operation mode based on the received command. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Publication No. 2015-023440 Summary of the Invention [Problem to be solved by the invention]

[0005] However, Patent Document 1 does not take into consideration appropriate control of the timeout period in the soft AP mode.

[0006] Therefore, an object of the present invention is to appropriately execute control for stopping operation in a state for receiving configuration information. [Means for solving the problem]

[0007] The present invention provides a communication device, comprising: a start means for causing the communication device to start an operation in a predetermined mode for receiving setting information from an information processing device; a setting means for executing a connection setting of the communication device based on the setting information when the setting information is received from the information processing device during operation in the predetermined mode; An execution means for executing a predetermined process that is completed based on a user operation; During operation in said predetermined mode In the communication device The predetermined process is completed. There was none In the case, based on a first time period having elapsed since the operation in the predetermined mode was started in the communication device without the connection setup being performed, In the communication device The operation in the predetermined mode end death, During operation in said predetermined mode In the communication device The predetermined process is completed. Ta In the case where the communication device starts operation in the predetermined mode, the communication device stops operation in the predetermined mode based on a second time period that is shorter than the first time period having elapsed without the connection setup being performed since the communication device started operation in the predetermined mode. end vinegar Regulation With your means, The present invention is characterized by having the following. Effect of the Invention

[0008] According to the present invention, it is possible to appropriately execute control for stopping operation in a state for receiving configuration information. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram illustrating a configuration of an information processing device and a communication device included in a communication system. [Diagram 2] FIG. 2 is a diagram illustrating an example of an operation display unit of the communication device. [Diagram 3] 11 is a flowchart showing a process executed by the communication device when the communication device receives a press of a power button. [Figure 4] 10 is a flowchart showing an initial setting process executed by the communication device. [Diagram 5] 10 is a flowchart showing a process executed by an information processing device for causing a communication device to execute a connection setting process. [Figure 6] 10 is a flowchart showing a process executed by an information processing device for causing a communication device to execute a connection setting process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Preferred embodiments of the present invention will be described below with reference to the drawings. However, it should be understood that the scope of the present invention includes any modifications and improvements to the embodiments described below that are made based on the ordinary knowledge of those skilled in the art without departing from the spirit of the present invention.

[0011] (First embodiment) An information processing device and a communication device included in the communication system of the present embodiment will be described. In the present embodiment, a smartphone is exemplified as the information processing device, but is not limited thereto, and various devices such as a mobile terminal, a notebook PC, a tablet terminal, a PDA (Personal Digital Assistant), and a digital camera can be applied. In addition, in the present embodiment, a printer is exemplified as the communication device, but is not limited thereto, and various devices that can perform wireless communication with the information processing device can be applied. For example, if it is a printer, it can be applied to an inkjet printer, a full-color laser beam printer, a monochrome printer, and the like. In addition to printers, it can also be applied to copiers, facsimile machines, mobile terminals, smartphones, notebook PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, smart speakers, and the like. In addition, it can also be applied to a multifunction machine having multiple functions such as a copy function, a FAX function, and a print function.

[0012] First, the configuration of an information processing device included in the communication system of this embodiment and a communication device capable of communicating with the information processing device will be described with reference to the block diagram of Fig. 1. In addition, the following configuration will be described as an example in this embodiment, but the functions are not particularly limited to those shown in this diagram.

[0013] The information processing device 101 includes an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, an operation display unit 108, a communication unit 109, a short-range wireless communication unit 110, an image capturing device 111, and the like.

[0014] The input interface 102 is an interface for receiving data input and operational instructions from a user, and is composed of a physical keyboard, buttons, a touch panel, etc. Note that the output interface 107 described below and the input interface 102 may be configured in the same manner, so that the screen output and the reception of operations from the user are performed by the same configuration.

[0015] The CPU 103 is a system control unit, and controls the entire information processing device 101 .

[0016] The ROM 104 stores fixed data such as control programs and data tables executed by the CPU 103, and embedded operating system (hereinafter referred to as OS) programs. In this embodiment, each control program stored in the ROM 104 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in the ROM 104.

[0017] The RAM 105 is composed of a static random access memory (SRAM) that requires a backup power source. Since the RAM 105 holds data using a primary battery (not shown) for data backup, it can store important data such as program control variables without volatilizing the data. The RAM 105 also has a memory area for storing setting information for the information processing device 101, management data for the information processing device 101, and the like. The RAM 105 is also used as the main memory and work memory for the CPU 103.

[0018] The external storage device 106 includes an application program (hereinafter, referred to as a print application) that provides a function of transmitting a print job to the communication device 151 to execute printing. In this embodiment, the print application also operates as a setup program for the communication device 151, which will be described later. The setup program for the communication device 151 is an application program that has a function of transmitting setting information, which will be described later, to the communication device 151. The setup program for the communication device 151 is a program that the user installs in the information processing device 101 from a store application program or the like, and is provided by the vendor of the communication device 151. The external storage device 106 also includes various programs, such as a print information generation program that generates print information that can be interpreted by the communication device 151, and an information transmission / reception control program that transmits and receives information to and from the communication device 151 connected via the communication unit 109. The external storage device 106 stores various information used by these programs. In addition, the external storage device 106 also stores image data obtained from other information processing devices or the Internet via the communication unit.

[0019] The output interface 107 is an interface that controls the operation display unit 108 to display data and notify the status of the information processing device 101 .

[0020] The operation display unit 108 is composed of an LED (light emitting diode) and an LCD (liquid crystal display), and displays data and notifies the status of the information processing device 101. Note that a soft keyboard having keys such as numeric input keys, a mode setting key, a decision key, a cancel key, and a power key may be provided on the operation display unit 108 to accept input from the user via the operation display unit 108.

[0021] The communication unit 109 is a component for connecting to a device such as the communication device 151 and performing data communication. For example, the communication unit 109 can be connected to an access point (AP) in the communication device 151. By connecting the communication unit 109 to the access point in the communication device 151, the information processing device 101 and the communication device 151 can communicate with each other. The communication unit 109 may directly communicate with the communication device 151 by wireless communication, or may communicate via an access point 131 that is outside the information processing device 101 and outside the communication device 151. Examples of the wireless communication method include the IEEE802.11 series of communication standards and Bluetooth (registered trademark). The IEEE802.11 series of communication standards is Wi-Fi (Wireless Fidelity) (registered trademark). Examples of the access point 131 include devices such as a wireless LAN router. In this embodiment, a method in which the information processing device 101 and the communication device 151 are directly connected without going through an external access point is called a direct connection method. Moreover, a method in which the information processing device 101 and the communication device 151 are connected via an external access point 131 is called an infrastructure (hereinafter, simply referred to as infrastructure) connection method.

[0022] The short-range wireless communication unit 110 is a component for wirelessly connecting to a device such as the communication device 151 at a short distance and executing data communication, and performs communication by a communication method different from that of the communication unit 109. The short-range wireless communication unit 110 is connectable to the short-range wireless communication unit 157 in the communication device 151.

[0023] The photographing device 111 is a device that converts an image photographed by a photographing element into digital data. The digital data is temporarily stored in the RAM 105. After that, the digital data is converted into a predetermined image format by a program executed by the CPU 154, and is stored in the external storage device 106 as image data.

[0024] The ROM 152 stores fixed data such as the control program executed by the CPU 154, data tables, and the OS program.

[0025] The communication device 151 has a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, a short-range wireless communication unit 157, an input interface 158, an output interface 159, an operation display unit 160, etc. The communication device 151 can operate in a connection mode (communication mode) that is set by the connection mode being set.

[0026] The communication unit 156 is a component that allows the communication device 151 to communicate with other devices, and in this embodiment, the communication unit 156 communicates according to the communication standard of the IEEE802.11 series. The communication unit 156 has an access point for connecting to devices such as the information processing device 101 as an access point inside the communication device 151. The access point can be connected to the communication unit 109 of the information processing device 101. The communication unit 156 may directly communicate with the information processing device 101 by wireless communication, or may communicate via the access point 131. The communication unit 156 may be provided with hardware that functions as an access point, or may operate as an access point by software for functioning as an access point.

[0027] The RAM 153 is composed of a DRAM or the like that requires a backup power source. Since the RAM 153 holds data by being supplied with a power source for data backup (not shown), important data such as program control variables can be stored without volatilization. The RAM 153 is also used as the main memory and work memory of the CPU 154, and stores various information and a reception buffer for temporarily storing print information received from the information processing device 101 or the like. The RAM 153 is also provided with a memory area that stores information indicating whether the communication device 151 is being set for the first time after power is turned on (hereinafter, referred to as the initial setting time). The initial setting time is, in other words, when the communication device 151 is in an initial setting state in which the later-described initial setting process has never been completed. The initial setting process is a process that proceeds based on a user operation.

[0028] ROM 152 stores fixed data such as control programs, data tables, and OS programs executed by CPU 154. In this embodiment, each control program stored in ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of an embedded OS stored in ROM 152. ROM 152 also has a memory area for storing data that needs to be held even when power is not supplied, such as setting information for communication device 151 and management data for communication device 151.

[0029] The CPU 154 is a system control unit, and controls the entire communication device 151 .

[0030] Based on the information stored in the print engine 155 and the RAM 153 and the print job received from the information processing device 101, etc., an image is formed on a recording medium such as paper using a recording agent such as ink, and the print result is output. At this time, the print job transmitted from the information processing device 101, etc., has a large amount of transmission data and requires high-speed communication, so it is received via a communication unit 156 that can communicate faster than the short-range wireless communication unit 157.

[0031] The input interface 158 is an interface for receiving data input and operation instructions from the user, and is composed of a physical keyboard, buttons, a touch panel, etc. Note that the output interface 159 described below and the input interface 158 may have the same configuration, and may output the screen and receive operations from the user with the same configuration. The output interface 159 is an interface that controls the operation display unit 160 to display data and notify the status of the communication device 151.

[0032] The operation display unit 160 is composed of a display unit such as an LED (light emitting diode) or an LCD (liquid crystal display), and displays data and notifies the state of the communication device 151. Note that a soft keyboard having keys such as numeric input keys, a mode setting key, a decision key, a cancel key, and a power key may be provided on the operation display unit 160 to accept input from the user via the operation display unit 160.

[0033] <About the direct connection method> A direct connection refers to a form in which devices are directly (i.e., peer-to-peer) wirelessly connected to each other without going through an external device such as the access point 131. The communication device 151 can operate in a mode for communicating via a direct connection (direct connection mode) as one of the connection modes. In Wi-Fi communication, there are multiple modes for communicating via a direct connection, such as a soft AP mode and a Wi-Fi Direct (WFD) mode.

[0034] The mode in which a direct connection is performed by WFD is called WFD mode. WFD is a standard established by the Wi-Fi Alliance. In WFD mode, after the device to be the communication partner is searched for by the device search command, the roles of P2P group owner and P2P client are determined, and the remaining wireless connection processing is performed. This role determination corresponds to, for example, GO Negotiation in P2P. Specifically, first, one device issues a device search command between the devices to communicate and searches for a device to connect in WFD mode. When the other device to be the communication partner is searched for, the two devices confirm information about the services and functions that can be provided by each other. Note that this device provision information confirmation is optional and not required. This device provision information confirmation phase corresponds to, for example, P2P Provision Discovery. Next, by mutually confirming this device provision information, it is determined which one will be the P2P client and which one will be the P2P group owner. Next, once the client and group owner are determined, the two devices exchange parameters for communication by WFD. Based on the exchanged parameters, the remaining wireless connection processing and IP connection processing are performed between the P2P client and the group owner. Note that in the WFD mode, the communication device 151 may always operate as a GO without executing the above-mentioned GO Negotiation. In other words, the communication device 151 may operate in a WFD mode, which is an autonomous GO mode. In addition, the state in which the communication device 151 operates in the WFD mode means, for example, a state in which a WFD connection is not established but the communication device 151 operates as a GO, or a state in which a WFD connection is established and the communication device 151 operates as a GO.

[0035] In the soft AP mode, between devices that communicate (for example, the information processing device 101 and the communication device 151), one device (for example, the information processing device 101) becomes a client that plays a role of requesting various services. Then, the other device realizes the function of an access point in Wi-Fi by software settings. In the soft AP mode, the client searches for a device that becomes a soft AP by a device search command. When a soft AP is searched, the remaining wireless connection processing (establishment of a wireless connection, etc.) between the client and the soft AP is performed, and then, IP connection processing (assignment of an IP address, etc.) is performed. Note that commands and parameters transmitted and received when realizing a wireless connection between a client and a soft AP may be those specified in the Wi-Fi standard, and description thereof will be omitted here. In addition, a state in which the communication device 151 operates in the soft AP mode is, for example, a state in which a connection by Wi-Fi is not established but the communication device 151 operates as a soft AP, or a state in which a connection by Wi-Fi is established and the communication device 151 operates as a soft AP.

[0036] In this embodiment, when the communication device 151 operates in a direct connection, it operates as a parent station in the network to which the communication device 151 belongs. The parent station is a device that constructs a wireless network and provides a child station with parameters used for connecting to the wireless network. The parameters used for connecting to the wireless network are, for example, parameters related to the communication channel used by the parent station. By receiving the parameters, the child station connects to the wireless network constructed by the parent station using the communication channel used by the parent station. In the direct connection mode, the communication device 151 operates as a parent station, so that the communication device 151 can determine which communication channel to use for communication in the direct connection mode. For example, when the communication device 151 operates in parallel in the infrastructure connection mode and the direct connection mode, the communication device 151 controls so that the communication channel used for communication in the infrastructure connection mode is also used for communication in the direct connection mode. In addition, the communication device 151 may, for example, preferentially select the communication channel used for connection to the access point 131 as the channel to be used for communication in the direct connection mode over other channels.

[0037] Furthermore, the connection information (SSID and password) for connecting to the communication device 151 in the direct connection mode may be changed arbitrarily by a user operation on an operation unit of the communication device 151, or the like.

[0038] <About infrastructure connection method> The infrastructure connection is a form in which devices that communicate (for example, the information processing device 101 and the communication device 151) are connected to an access point (for example, the access point 131) that manages a network of the devices, and the devices communicate with each other via the access point. The communication device 151 can also operate in a mode for communicating via an infrastructure connection (infrastructure connection mode) as one of the connection modes.

[0039] In infrastructure connections, each device searches for an access point using a device search command. Once an access point has been found, the remaining wireless connection processing (establishment of a wireless connection, etc.) between the device and the access point is carried out, and then IP connection processing (assignment of an IP address, etc.) is carried out. Note that commands and parameters sent and received when establishing a wireless connection between a device and an access point can be those specified in the Wi-Fi standard, and so a description of these will be omitted here.

[0040] In this embodiment, when the communication device 151 operates in an infrastructure connection, the access point 131 operates as a parent station, and the communication device 151 operates as a child station. Communication is possible between the communication device 151 and the information processing device 101 via the access point 131. Note that the channel used for communication in the infrastructure connection here may be a frequency band other than 2.4 GHz (such as the 5.0 GHz band). Note that, in order to communicate with the communication device 151 via the access point 131, the information processing device 101 needs to recognize that the communication device 151 belongs to a network formed by the access point 131 and to which the information processing device 101 belongs.

[0041] In this embodiment, a state in which the information processing device 101 and the communication device 151 are simply connected to the same access point is regarded as an infrastructure connection state. That is, in the infrastructure connection state, the information processing device 101 and the communication device 151 only need to be connected to the same access point, and they do not need to recognize that the other device belongs to the network to which they belong. In this embodiment, the communication device 151 can establish a direct connection and an infrastructure connection in parallel. In other words, the communication device 151 can establish a Wi-Fi connection in which the communication device 151 is a child device and a Wi-Fi connection in which the communication device 151 is a parent device in parallel. In this way, operating in a state in which the above-mentioned two connections are established in parallel is called a simultaneous operation. When performing the simultaneous operation, the communication device 151 matches the frequency band and communication channel used for the infrastructure connection with the frequency band and communication channel used for the direct connection. However, in this embodiment, when the communication device 151 uses a 5 GHz frequency band for the infrastructure connection, it does not operate as a direct connection and does not perform the simultaneous operation. This is because when the 5 GHz frequency band is used, the communication channel to be used may be changed due to DFS (Dynamic Frequency Selection) or the like.

[0042] <Connection setup process> In this embodiment, the information processing device 101 executes settings (connection settings) for operating the communication device 151 in at least one of the communication methods of infrastructure connection and direct connection, using wireless communication with the communication device 151. The connection setting process in this embodiment is also called cable-less setup (CLS) because it is executed by wireless communication. Note that the connection setting process may also be executed by wired communication.

[0043] The communication device 151 is operable in a connection setup mode (connection setup state) which is a mode for executing a connection setup process, and executes the connection setup process while operating in the connection setup mode. The connection setup mode will be described in detail later.

[0044] When the information processing device 101 operates the communication device 151 in the infrastructure connection mode, the information processing device 101 wirelessly transmits infrastructure setting information, which is setting information for operating the communication device 151 in the infrastructure connection mode, to the communication device 151. The infrastructure setting information includes information on the access point 131. The information on the access point 131 includes, for example, an SSID (Service Set Identifier), a password, and information on a frequency band.

[0045] On the other hand, when the information processing device 101 operates the communication device 151 in the direct connection mode, the information processing device 101 wirelessly transmits direct setting information, which is setting information for operating the communication device 151 in the direct connection mode, to the communication device 151. The direct setting information includes instructions for enabling the WFD function to operate the communication device 151 as a Group Owner and for enabling the access point setting of the communication device 151. Furthermore, the information processing device 101 acquires connection information required for directly connecting to the communication device 151 from the communication device 151. The connection information for directly connecting to the communication device 151 includes information such as the SSID and password of the communication device 151, for example.

[0046] In this embodiment, a direct connection for connection setting between the information processing device 101 and the communication device 151 is used for transmitting infrastructure setting information and direct setting information in the connection setting process, and for acquiring information for directly connecting to the communication device 151. In this embodiment, the connection setting process is executed using Wi-Fi as the direct connection for connection setting, but a wireless communication standard other than Wi-Fi, such as Bluetooth, may be used, or a wired communication standard, such as a wired LAN or USB (Universal Serial Bus), may be used.

[0047] After a Wi-Fi infrastructure connection or a direct connection is established between the information processing device 101 and the communication device 151 by the connection setting process, communication becomes possible between the information processing device 101 and the communication device 151 via the established connection. Specifically, for example, the information processing device 101 can transmit, to the communication device 151, a print job for causing the communication device 151 to execute printing or a scan job for causing the communication device 151 to execute scanning, via the established connection.

[0048] In this embodiment, the connection setting process can cause the communication device 151 to operate in either the infrastructure connection mode or the direct connection mode, but is not limited to this. For example, the connection setting process can cause the communication device 151 to operate only in the infrastructure connection mode (i.e., the communication device 151 cannot operate in the direct connection mode).

[0049] In addition, in this embodiment, in the connection setting process by setting method 1 described later, it is possible to operate the communication device 151 in the infrastructure connection mode or to operate the communication device 151 in the direct connection mode. In other words, in setting method 1, it is assumed that infrastructure setting information is transmitted from the information processing device 101 and direct setting information is transmitted from the information processing device 101. However, in the connection setting process by setting method 2 described later, it is assumed that it is possible to operate the communication device 151 in the infrastructure connection mode but it is assumed that it is not possible to operate the communication device 151 in the direct connection mode. In other words, in setting method 2, it is assumed that infrastructure setting information is transmitted from the information processing device 101 but direct setting information is not transmitted from the information processing device 101.

[0050] <About connection setting mode> As described above, the communication device 151 can operate in the connection setting mode. A trigger for the communication device 151 to start operating in the connection setting mode may be, for example, a user pressing a button for the connection setting mode, or the communication device 151 starting up (transitioning to a soft-on state). The button for the connection setting mode may be a hardware button provided in the communication device 151, or may be a software button displayed on the operation display unit 160 by the communication device 151. When the communication device 151 starts operating in the connection setting mode, it enables Wi-Fi communication. Specifically, the communication device 151 is operated as an AP dedicated to the connection setting mode. This puts the communication device 151 in a state in which it is possible to establish a direct connection with the information processing device 101 by Wi-Fi. It is assumed that connection information (SSID, etc.) for connecting to an AP dedicated to the connection setting mode is held in advance in a setup program for the communication device 151 installed in the information processing device 101, and the information processing device 101 recognizes in advance the connection information for connecting to a soft AP dedicated to the connection setting mode. Therefore, unlike the connection information of the access point enabled in the direct connection mode, at least a part of the connection information (at least a part of the SSID, etc.) for connecting to the soft AP mode dedicated to the connection setting mode cannot be arbitrarily changed by the user. In addition, in this embodiment, there is no password for connecting to the soft AP dedicated to the connection setting mode, and the information processing device 101 can connect to the communication device 151 operating in the connection setting mode without a password as long as it recognizes the SSID. This is not limited to this form, and for example, the password for connecting to the soft AP dedicated to the connection setting mode may be stored in advance in the setup program for the communication device 151, and the password may be used to connect to the communication device 151 operating in the connection setting mode.

[0051] In the connection setting mode, the communication device 151 may connect to the information processing device 101 by WFD instead of normal Wi-Fi. That is, the communication device 151 may operate as a Group Owner and receive setting information from the information processing device 101 by communication by WFD. In addition, in the connection setting mode, the communication device 151 may connect to the information processing device 101 by Bluetooth. That is, the communication device 151 may operate as a slave device in Bluetooth and receive setting information from the information processing device 101 by communication by Bluetooth (communication via Bluetooth connection). Note that Bluetooth may be Bluetooth Classic or Bluetooth Low Energy (BLE). In the case where BLE is used, when the communication device 151 starts operating in the connection setting mode, it starts transmitting advertisement information based on the BLE standard and becomes in a state where a BLE connection with the information processing device 101 that has received the advertisement information is possible. In addition, the connection setting mode may be in a state where both Wi-Fi and Bluetooth are available. In other words, when the communication device 151 operating in the connection setting mode receives a connection request from the information processing device 101 via Wi-Fi, it may receive setting information via a Wi-Fi connection, and when the communication device 151 receives a connection request from the information processing device 101 via Bluetooth, it may receive setting information via a Bluetooth connection.

[0052] In this embodiment, the communication device 151 operating in the connection setting mode is capable of receiving setting information from the information processing device 101 by at least two methods (setting method 1 and setting method 2).

[0053] First, the setting method 1 will be described. The setting method 1 is a method of receiving setting information from the information processing device 101 using a communication protocol different from the communication protocol used in the setting method 2. The communication protocol used in the setting method 1 is, specifically, for example, SNMP (Simple Network Management Protocol). As described above, in this embodiment, in order to set the communication device 151 to the infrastructure connection mode, the information processing device 101 transmits to the communication device 151 infrastructure setting information for connecting to the access point 131, for example. That is, in order to set the communication device 151 to the infrastructure connection mode, the information processing device 101 needs to obtain a password for connecting to the access point 131. However, in this embodiment, when the information processing device 101 transmits setting information to the communication device 151 by the setup program for the communication device 151 in the setting method 1, even if the information processing device 101 has connected to the access point 131 or is currently connected to the access point 131, the information processing device 101 obtains the password by accepting input of the password from the user on a screen displayed by the setup program for the communication device 151. This is because, when the setup program for the communication device 151 transmits the setting information to the communication device 151 in the setting method 1, the setup program for the communication device 151 cannot obtain a password for connecting to the access point 131 from the OS of the information processing device 101. In other words, the setting method 1 is a method for receiving a password input from the user on a screen displayed by the setup program for the communication device 151 after a setting instruction for setting the connection mode of the communication device 151 is received from the user on a screen displayed by the setup program for the communication device 151. Furthermore, the setting method 1 is a method for executing a connection setting process of the communication device 151 by transmitting infrastructure setting information including the password thus received to the communication device 151 by the setup program for the communication device 151. Moreover, the setting method 1 is assumed to be capable of transmitting infrastructure setting information for connecting to the AP to the communication device 151 regardless of whether the security method of the AP is WEP, WPA, WPA2, or WPA3.In addition, the setting method 1 is to transmit infrastructure setting information including information indicating the security method of the AP. Note that the protocol used in the setting method 1 is not limited to SNMP, and other protocols may be used.

[0054] Next, the setting method 2 will be described. A communication protocol used in the setting method 2 is, for example, HTTP (Hyper Text Transfer Protocol). In this embodiment, when the information processing device 101 transmits setting information to the communication device 151 in the setting method 2, if the information processing device 101 has connected to the access point 131 or is currently connected to the access point 131, it is possible to acquire the password from the OS of the information processing device 101 without accepting the input of the password from the user. In other words, the setting method 2 is a method in which, after a setting instruction is accepted from the user on a screen displayed by the setup program for the communication device 151, the password is not accepted from the user on the screen displayed by the setup program for the communication device 151, and the password is acquired from the OS of the information processing device 101. Furthermore, the setting method 2 is a method for executing a connection setting process of the communication device 151 by transmitting infrastructure setting information including the password accepted in this way to the communication device 151. Note that, when the information processing device 101 first connects to the access point 131, it accepts the user input of the password for connecting to the access point 131 before connecting to the access point 131. In setting method 2, the password is input by the user before connection to the access point 131 and is held by the OS, and the password is transmitted by obtaining the password from the OS. In other words, setting method 2 is a method in which the password is communicated without the user inputting the password to the information processing device 101 after the information processing device 101 connects to the access point 131. Transmission of setting information by setting method 2 is executed by a predetermined setting application program for transmitting infrastructure setting information by setting method 2. The predetermined setting application program is a program pre-installed in the information processing device 101 and provided by the OS vendor of the information processing device 101.Therefore, a predetermined setting application program can obtain information (for example, a password for connecting to an AP) from the OS that cannot be obtained by other application programs. The transmission of setting information by setting method 2 may be performed by a setup program for communication device 151. In this case, for example, the setup program for communication device 151 may execute an API for setting method 2, so that the setup program for communication device 151 obtains the password from the OS. Furthermore, in setting method 2, when the security method of the AP is WPA or WPA2, it is possible to transmit infrastructure setting information for connecting to the AP to communication device 151, but when the security method of the AP is WEP or WPA3, it is not possible to transmit infrastructure setting information for connecting to the AP to communication device 151. In addition, setting method 2 transmits infrastructure setting information that does not include information indicating the security method of the AP. The protocol used in setting method 2 is not limited to HTTP. For example, Device Provisioning Protocol (DPP) established by the Wi-Fi Alliance may be used. That is, setting method 2 may be a setting method using a function called Wi-Fi Easy Connect. The information processing device 101 can also obtain the password included in the infrastructure setting information transmitted using DPP from the OS of the information processing device 101 without accepting any user input after a setting instruction is accepted from the user on a screen displayed by the setup program for the communication device 151. Also, for example, the communication device 151 may be capable of receiving further setting information by a setting method 3 different from setting methods 1 and 2, and the DPP may be used in setting method 3.

[0055] In addition, in this embodiment, the communication device 151 operating in the connection setting mode operates in at least one of a state in which it is possible to receive setting information by setting method 1 (a state for setting method 1) and a state in which it is possible to receive setting information by setting method 2 (a state for setting method 2). In addition, it is possible to set a condition for terminating the state for setting method 1 (a condition for setting method 1) and a condition for terminating the state for setting method 2 (a condition for setting method 2) separately. That is, the communication device 151 may operate, for example, in a connection setting mode in which it is possible to receive setting information by setting method 1 and in which it is possible to receive setting information by setting method 2, or in which it is possible to receive setting information by setting method 1 but not by setting method 2.

[0056] In this embodiment, in the state for setting method 2, the communication device 151 transmits a predetermined beacon to the surroundings. The information processing device 101 recognizes that the communication device 151 is in the state for setting method 2 by receiving the predetermined beacon. Also, in this embodiment, when the information processing device 101 is equipped with a predetermined OS compatible with setting method 2, it can cause the communication device 151 to execute a connection setting process by setting method 2.

[0057] In this embodiment, the conditions for setting method 1 and the conditions for setting method 2 include, for example, the end of the operation in the connection setting mode. The condition for ending the operation in the connection setting mode is, for example, the setting of the connection mode (direct connection mode or infrastructure connection mode) of the communication device 151 based on the setting information received from the information processing device 101. The conditions for setting method 1 include the elapsed time in the state for setting method 1 exceeding a threshold (timeout time), and the conditions for setting method 2 include the elapsed time in the state for setting method 2 exceeding the timeout time. Here, the timeout time determined for the conditions for setting method 1 is called the timeout time for setting method 1, and the timeout time determined for the conditions for setting method 2 is called the timeout time for setting method 2. The elapsed time in the state for setting method 1 is the time that has elapsed since the operation in the state for setting method 1 was started without the operation in the state for setting method 1 being ended. That is, the count of the mode elapsed time in the state for setting method 1 is stopped when the operation in the state for setting method 1 is ended. In addition, when both the elapsed time of the state for setting method 1 and the elapsed time of the state for setting method 2 exceed the respective timeout times and the state for setting method 1 and the state for setting method 2 end, the connection setting mode itself is also ended. The elapsed time of the state for setting method 1 is not limited to this form, and may be, for example, the time that has elapsed since the operation in the state for setting method 1 has started without the information processing device 101 and the communication device 151 being connected by the AP for the connection setting mode. That is, the count of the elapsed time of the state for setting method 1 may be stopped when the information processing device 101 and the communication device 151 are connected by the AP for the connection setting mode. In addition, the elapsed time of the state for setting method 1 may be the time that has elapsed since the operation in the connection setting mode has started without the communication device 151 receiving the setting information transmitted from the information processing device 101. That is, the count of the elapsed time of the state for setting method 1 may be stopped when the communication device 151 receives the setting information transmitted from the information processing device 101. The definition of the elapsed time of the state for setting method 2 is the same as the elapsed time of the state for setting method 1.The reason why a timeout period is set is that the connection setting mode is a mode in which connection is possible without a password or with a password that is stored in advance in the setup program for communication device 151. That is, the connection setting mode has the advantage of being easy to connect, but has low security, and if the connection setting mode is maintained for a long period of time, there is a high possibility that a connection unintended by the user of communication device 151 will be established.

[0058] As described above, in this embodiment, when the communication device 151 is caused to execute the connection setting process by the setting method 1 to set the infrastructure connection mode, the information processing device 101 needs to accept the input of a password from the user after the setting instruction is received. On the other hand, when the communication device 151 is caused to execute the connection setting process by the setting method 2 to set the infrastructure connection mode, the information processing device 101 does not need to accept the input of a password from the user after the setting instruction is received. That is, since it is not necessary to accept the input of a password from the user, the information processing device 101 can transmit infrastructure setting information to the communication device 151 more quickly when the communication device 151 is caused to execute the connection setting process by the setting method 2 than when the communication device 151 is caused to execute the connection setting process by the setting method 1. That is, the communication device 151 can complete the connection setting process more quickly when the communication device 151 executes the connection setting process by the setting method 2 than when the communication device 151 executes the connection setting process by the setting method 1. Considering the improvement of security and the fact that the connection setting process can be completed quickly in the setting method 2, it is preferable to set the timeout time for the setting method 2 to be short. Therefore, in this embodiment, the timeout period for setting method 2 is controlled to be set shorter than the timeout period for setting method 1 during at least a portion of the period.

[0059] In addition, in this embodiment, one of the conditions for starting the operation in the connection setting mode is, for example, accepting pressing of the power button in a state in which the communication device 151 has not completed the initial settings. After starting the operation in the connection setting mode by satisfying this condition, the communication device 151 executes the initial setting process. However, since the initial setting process proceeds by the communication device 151 accepting a user operation, the time from the start of the initial setting process to its completion varies depending on the user who executes the operation. Then, depending on the user, the operation of the information processing device 101 for the connection setting process is started after the communication device 151 completes the initial setting process. Then, in this embodiment, the communication device 151 starts the operation in the connection setting mode before the initial setting process is completed. Therefore, if the user operation for the initial setting process takes time and the completion of the initial setting process by the communication device 151 is delayed, there is a problem that the connection setting mode elapsed time counted up to that point may be a large value at the timing when the initial setting process is completed. In other words, there may be only a little time left until the connection setting mode elapsed time exceeds the timeout time after the initial setting process is completed.

[0060] Therefore, in this embodiment, after the initial setting process is completed, the timeout time for setting method 1 and the timeout time for setting method 2 are appropriately controlled. Specifically, in this embodiment, each timeout time is controlled according to the elapsed time for each setting method 1 at the timing when the initial setting process is completed. This makes it possible to secure sufficient time for the user to perform operations for the connection setting process even if the completion of the initial setting process by communication device 151 is delayed.

[0061] <Configuration of the operation display unit 160 of the communication device 151> FIG. 2 is a diagram showing a schematic example of the configuration of the operation display unit 160 of the communication device 151. In FIG. 2(a), the panel 208 is touch-type, and the user can operate the communication device 151 by touching the panel 208. The power button 201 is a physical button arranged around the panel 208. When the communication device 151 is in a soft-off state, the user presses the power button 201, so that power is shared by the entire communication device 151, and the communication device 151 transitions to a soft-on state. Note that the soft-off state is a state in which power is supplied to the minimum components of the communication device 151, such as the CPU 154, but power is not supplied to, for example, the print engine 155 or a display unit included in the operation display unit 160. The soft-on state is a state in which power is supplied to the entire components of the communication device 151, including the print engine 155 and the operation display unit 160.

[0062] When the communication device 151 transitions to the soft-on state, a home screen, which is the highest level of a menu that can be operated by the user, is displayed on the panel 208. The home screen includes a copy area 205 for receiving an instruction to execute a copy process, a scan area 206 for receiving an instruction to execute a scan process, and a print area 207 for receiving an instruction to execute a print process. In addition, the home screen also includes a status display area 202 that shows the settings and connection status of the infrastructure connection or direct connection of the communication device 151, a connection setting mode area 203 that allows the user to start operation in the connection setting mode at any timing, a setting area 204 for changing various settings, and the like.

[0063] FIG. 2(b) is an example of the configuration of the operation display unit 160 in a form in which the display unit is smaller than that in FIG. 2(a). In this example, the buttons 209 to 211 and 213 to 218 are physical buttons. The user turns on the power of the communication device 151 by pressing the power button 210. When the communication device 151 is turned on, a home screen, which is the top layer of the menu that the user can operate, is displayed on the panel 212. The user can operate the cursor displayed on the panel 212 by pressing the operation buttons 213 and 214. If the user wants to execute an operation, he presses the OK button 216, and if he wants to return to the previous menu screen, he presses the back button 215. In addition, when the QR button 209 is pressed, the panel 212 can also display a QR code (registered trademark) including information required for a direct connection with the communication device 151. When this QR code is read from the information processing device 101, the information processing device 101 and the communication device 151 are directly connected, and wireless communication between them becomes possible. That is, the information included in the QR code is connection information for connecting to the communication device 151 operating in the direct connection mode. When the QR button 209 is pressed, the communication device 151 starts operating in the direct connection mode. When the connection setting mode button 211 is pressed, the communication device 151 starts operating in the connection setting mode. When the stop button 217 is pressed, the communication device 151 cancels various processes currently being executed. When the copy start button 218 is pressed, the communication device 151 starts the copy process.

[0064] <Processing performed by each device in this system> Fig. 3 is a flowchart showing a process executed when communication device 151 receives a press of the power button. The flowchart shown in Fig. 3 is realized, for example, by CPU 154 reading a program stored in ROM 152 or the like into RAM 153 and executing it. The flowchart shown in Fig. 3 is started in response to communication device 151 in a soft-off state receiving a press of the power button from the user.

[0065] First, in S301, the CPU 154 starts supplying power to the entire communication device 151, and transitions the communication device 151 from the soft-off state to the soft-on state.

[0066] Next, in S302, the CPU 154 judges whether or not the communication device 151 is in the initial setting by referring to information indicating whether or not the communication device 151 is in the initial setting, which is stored in the RAM 153. Specifically, when the user starts the communication device 151 for the first time after the communication device 151 arrives (shifting to the soft-on state by pressing the power button), the initial setting flag is ON in the RAM 153. On the other hand, when the communication device 151 is started after the initial setting process is completed and is started for the second or subsequent time, the initial setting flag is OFF in the RAM 153. That is, the CPU 154 realizes the judgment of S302 by referring to the ON / OFF of the initial setting flag. Note that this judgment may be realized, for example, by judging whether or not the communication device 151 has executed the initial setting process in the past. If the judgment is YES, the CPU 154 proceeds to S303, and if the judgment is NO, the CPU 154 proceeds to S326. Note that in this embodiment, the processing of S302 is executed using the ON / OFF of the initial setting flag, but information other than the flag may be used. In that case, for example, it is assumed that information indicating that the communication device 151 is in the initial setting is stored in the RAM 153 from the time of arrival.

[0067] If S302 is NO, CPU 154 may end the process of this flowchart without executing the connection setting process. At this time, CPU 154 may display a UI or the like asking the user whether or not to execute the process of setting the connection mode, and control whether to proceed to S326 or end the process of this flowchart depending on the user's response.

[0068] Furthermore, if S302 is YES, CPU 154 displays a screen for the initial setting process by the initial setting process started in S303, but if S302 is NO, CPU 154 displays, for example, a home screen. Note that even if S302 is NO, if operation in the connection setting mode is subsequently started by communication device 151, a connection setting mode screen indicating that communication device 151 is in the connection setting mode may be displayed.

[0069] In S303, the CPU 154 starts the initial setting process. Note that the processes from S304 onwards start without waiting for the completion of the initial setting process, and are executed in parallel with the initial setting process started at this time. The details of the initial setting process will be described with reference to FIG.

[0070] Fig. 4 is a flowchart showing an initial setting process executed by the communication device 151 in this embodiment. The flowchart shown in Fig. 4 is realized, for example, by the CPU 154 reading a program stored in the ROM 152 or the like into the RAM 153 and executing it. The flowchart shown in Fig. 4 is started when S303 is executed.

[0071] In S401, CPU 154 determines whether or not an ink cartridge is attached to communication device 151 based on the detection result by a detection unit (not shown) included in communication device 151. If the print head and the ink tank are formed as separate entities, CPU 154 determines whether or not at least the print head is attached to communication device 151. If the determination is YES, CPU 154 proceeds to S402, and if the determination is NO, proceeds to S403. The operation of attaching the ink cartridge or print head is an operation that the user should perform on communication device 151.

[0072] Therefore, in S403, CPU 154 notifies the user about the ink cartridge by blinking an LED (light emitting diode) of operation display unit 160 or displaying a specific screen on operation display unit 160. Specifically, CPU 154 notifies the user that communication device 151 is in a state waiting for installation of an ink cartridge, and notifies the user of how to install the ink cartridge. Note that the method of notification is not particularly limited, and for example, CPU 154 may execute notification by voice using a speaker (not shown).

[0073] Thereafter, in S404, the CPU 154 judges whether or not an ink cartridge is attached to the communication device 151 based on the detection result by a detection unit (not shown) included in the communication device 151. Note that, similarly to S401, if the print head and the ink tank are formed as separate bodies, the CPU 154 judges whether or not at least the print head is attached to the communication device 151. If the judgment is YES, the CPU 154 proceeds to S402, and if the judgment is NO, the CPU 154 executes the process of S404 again. Note that in this embodiment, there is no timeout in the judgment of S403, and the judgment of S403 is repeated until the ink cartridge is installed by the user or the communication device 151 transitions to a soft-off state. Therefore, if it takes a long time for the user to accurately complete the installation of the ink cartridge, it will also take a long time to complete the initial setting process. Note that the CPU 154 may judge YES in S404 when the user performs a skip operation or the like to skip the installation of the ink cartridge. Furthermore, the CPU 154 may continue to execute the notification in S403 until the determination in S404 becomes YES.

[0074] In S402, the CPU 154 starts the initial setting cleaning process. Specifically, first, the CPU 154 moves the carriage to a position where cleaning members such as a waste ink absorption band and a capping mechanism for capping the nozzles of the print head are installed. After that, the CPU 154 caps the nozzles of the print head with the capping mechanism and operates a pump connected to the capping mechanism. As a result, the CPU 154 refreshes the ink in the nozzles by generating negative pressure inside the capping mechanism to suck and discharge foreign matter such as viscous ink and air bubbles from the nozzles. The CPU 154 also wipes (wipes and cleans) foreign matter such as ink adhering to the nozzle surface of the print head with a wiper. The cleaning process is also executed at timings other than the initial setting, such as before the start of printing, when a predetermined time has passed since the previous printing, and during soft-on after abnormal termination. Such normal cleaning process may be different from the initial setting cleaning process. Specifically, in the initial setting, in order to fill the flow path from the head to the nozzles or from the ink tank to the head with ink, the negative pressure suction force may be made stronger than in the normal cleaning operation, the amount of suction may be increased, or the number of suctions may be increased. Alternatively, the ink in the recording head may be heated to reduce its viscosity.

[0075] When performing the initial setting cleaning process, the CPU 154 detects any errors occurring in the communication device 151. The errors detected at this time include, for example, a head incomplete attachment error and a carriage position error.

[0076] The head incomplete installation error is an error in which the ink cartridge (recording head) is incompletely installed on the carriage. For example, if the ink cartridge is incompletely installed on the carriage, the ink cartridge may protrude into the drive path of the carriage. In this case, the ink cartridge may hit a specific component inside the communication device 151 during the movement of the carriage, and the carriage may stop at the position of the component. For example, the CPU 154 detects the amount of movement of the carriage, and if the detected amount of movement corresponds to the amount of movement from the cartridge installation position to the position of the component, it detects that a head incomplete installation error has occurred. Also, for example, if the ink cartridge is incompletely installed on the carriage, the ink cartridge may come off the carriage during the movement of the carriage or during a cleaning process. For example, the CPU 154 detects whether the ink cartridge is installed on the carriage by a cartridge sensor. Then, if the cartridge sensor detects that the ink cartridge is not installed on the carriage during the movement of the carriage or during a cleaning process, the CPU 154 detects that a head incomplete installation error has occurred. The head incomplete installation error can be resolved by the user opening the cover again and correctly re-installing the ink cartridge.

[0077] A carriage position error is an error caused by a foreign object in the drive path of the carriage. For example, if there is a foreign object in the drive path of the carriage, the foreign object will hinder the movement of the carriage, reducing the amount of movement of the carriage. Therefore, the CPU 154 detects, for example, the actual amount of movement of the carriage and the force (driving force) required to drive the carriage, and if the actual amount of movement is smaller than the driving force, detects that a carriage position error has occurred. The carriage position error can be resolved by the user removing the foreign object.

[0078] When the CPU 154 detects an error, it executes an error notification process for notifying the detected error. Specifically, for example, a screen for notifying the detected error is displayed on the operation display unit 160. Note that when an error is detected, if the communication device 151 is connected to the information processing device 101 due to the start of the connection setting process, the CPU 154 transmits information to the information processing device 101 for displaying the detected error on a display unit provided in the information processing device 101. Note that the CPU 154 may be configured to execute the error notification process when an inquiry is received from the information processing device 101 to which the communication device 151 is connected.

[0079] Next, in S410, the CPU 154 determines whether each process included in the initial setting process has been completed. If each process included in the initial setting process has not been completed, the CPU 154 repeats S410 until each process included in the initial setting process is completed, and if each process included in the initial setting process has been completed, the process proceeds to S411. Note that, if the above-mentioned error occurs, the initial setting process includes a process for detecting the resolution of the error. Therefore, if the error is resolved by a user operation or the like, one of the processes included in the initial setting process is considered to be completed. Also, as described above in this embodiment, the initial setting process includes a process for detecting that an ink cartridge is attached and a cleaning process during initial setting. However, this is not limited to this form. For example, the initial setting process may include the reception of a user operation for setting the language used by the communication device 151 for display, the reception of a user operation for answering a questionnaire about the environment in which the communication device 151 is used, and a register adjustment. Also, the order in which each process included in the initial setting process is executed is not particularly limited.

[0080] If S410 is YES, CPU 154 changes the information indicating whether or not it is the time of the initial setup so that it can indicate that the next time communication device 151 transitions to the soft-on state is not the time of the initial setup. Specifically, CPU 154 changes the content of the initial setup flag. The timing at which the information indicating whether or not it is the time of the initial setup is changed is not limited to this timing, and may be changed at any time after the determination of whether or not it is the time of the initial setup.

[0081] Next, in S406, CPU 154 notifies the user that the initial setting process is complete by blinking an LED (light emitting diode) of operation display unit 160 or displaying a specific screen on operation display unit 160. Specifically, for example, CPU 154 displays a screen on operation display unit 160 that notifies the user that the initial setting process is complete. Note that the method of notification is not particularly limited, and for example, CPU 154 may execute the notification by voice using a speaker (not shown).

[0082] Next, in S407, the CPU 154 displays the home screen on the operation display unit 160. E. After that, the CPU 154 ends the processing of this flowchart.

[0083] As described above, in order to complete the initial setting process, the user needs to perform operations such as installing an ink cartridge. If the user has just unpacked communication device 151, the user also needs to remove the packaging material from communication device 151. As such, various user operations are required to complete the initial setting process, so the time it takes to complete the initial setting process varies depending on the user.

[0084] Let us return to the explanation given in FIG.

[0085] In S304, the CPU 154 determines whether any connection mode has been set in the communication device 151. The communication device 151 may be able to set a connection mode other than the above-mentioned direct connection mode and infrastructure connection mode, for example, may be able to set a wired LAN connection mode. The wired LAN connection mode is a mode for connecting to another device via a wired LAN. In this embodiment, when the wired LAN connection mode is set in the communication device 151, the direct connection mode and infrastructure connection mode cannot be set, and the communication device 151 cannot perform wireless LAN communication (communication according to the IEEE802.11 series communication standard). Even if the wired LAN is not connected to the communication device 151, the wired LAN connection mode may be set in advance in the communication device 151. Furthermore, here, the CPU 154 may determine whether the communication device 151 has previously connected to an external access point in the infrastructure connection mode. Specifically, the communication device 151 stores information on external access points to which it has previously connected in a predetermined storage area. If the information of an external access point that has been previously connected is stored in the corresponding storage area, it is determined in this determination that the communication device 151 has previously connected to an external access point. If the information of an external access point that has been previously connected is not stored in the corresponding storage area, and a default value is stored, it is determined in this determination that the communication device 151 has not previously connected to an external access point. Note that the information stored in the corresponding storage area may be reset to a default value by a reset operation, which is an operation for resetting the connection setting of the communication device 151 and is different from pressing the power button, executed on the communication device 151. Note that when the reset operation is executed, the communication device 151 resets the connection mode set therein and returns to a state in which no connection mode is set. If the determination is YES, it means that a connection mode has already been set in the communication device 151 (or that a connection mode has been set in the past).Therefore, if the determination is YES, CPU 154 determines that connection setup processing is not necessary and proceeds to S317 without causing communication device 151 to start operation in the connection setup mode. On the other hand, if the determination is NO, CPU 154 proceeds to S305.

[0086] In S305, the CPU 154 determines whether or not a USB cable is connected to the communication device 151. If a USB cable is connected, the communication device 151 is likely to communicate with other devices via USB rather than via a wireless network. Therefore, if the determination is YES, the CPU 154 determines that a connection setting process is unnecessary and proceeds to S317 without causing the communication device 151 to start operating in the connection setting mode. Note that, although it is determined here whether or not a USB cable is connected, it may also be determined whether or not a wired LAN cable is connected. Also, it may also be determined whether or not both a USB cable is connected and a wired LAN cable are connected. Also, if it is determined that a wired LAN cable is connected, the wired LAN connection mode may be set to the communication device 151. On the other hand, if the determination is NO, the CPU 154 proceeds to S306.

[0087] In S306, CPU 154 causes communication device 151 to start operation in the connection setting mode. That is, after the power button is pressed, communication device 151 automatically starts operation in the connection setting mode without operating connection setting mode area 203 or connection setting mode button 211. At this time, CPU 154 may display a screen indicating that the connection setting mode has been started on operation display unit 160. Also, in this embodiment, it is assumed that operation in the state for setting method 1 and operation in the state for setting method 2 are started simultaneously at this time.

[0088] In S307, the CPU 154 starts timer measurement for measuring (counting) the elapsed time from the state for setting method 1 to the state for setting method 2, and waits for the setting information to be transmitted from the information processing device 101. In this embodiment, the value counted by the timer measurement is incremented every minute, and is a value in minutes, but is not limited to this form. For example, it may be a value in seconds, incremented every second. Then, in S308, the CPU 154 determines whether or not the setting information has been received from the information processing device 101. The method for receiving the setting information here may be setting method 1 or setting method 2.

[0089] When the result of the determination in S308 is YES, in S309, the CPU 154 ends the operation of the communication device 151 in the connection setting mode. That is, the operation in the state for setting method 1 and the operation in the state for setting method 2 are also ended. Then, in S310, the CPU 154 stops both the timer measurement that measures the elapsed time in the state for setting method 1 and the timer measurement that measures the elapsed time in the state for setting method 2. Note that, if the connection setting mode is ended in a state in which the connection between the information processing device 101 and the communication device 151 is established by an AP dedicated to the connection setting mode, the connection between the information processing device 101 and the communication device 151 is disconnected. Then, in S311, the CPU 154 executes a connection setting process of the communication device 151 based on the received setting information. That is, the CPU 154 sets the connection mode based on the received setting information. The connection setting process of the communication device 151 will be described in detail below.

[0090] When the CPU 154 receives information (such as AP information) corresponding to the infrastructure connection mode as the setting information, the CPU 154 registers the AP corresponding to the setting information in the RAM 153 as an AP to be used in the infrastructure connection mode by a connection setting process, and connects the AP to the communication device 151. If an encryption key is required to use the AP, the CPU 154 performs registration of the encryption key, etc. Then, when the registration and connection of the AP are properly completed, the CPU 154 sets the communication device 151 to the infrastructure connection mode in which communication via the registered AP is possible. As a result, the communication device 151 operates in a state in which wireless connection with the information processing device 101 via the registered AP is possible. When the CPU 154 receives information corresponding to the WFD mode or the soft AP mode as the setting information, the CPU 154 transmits connection information for connecting to the AP corresponding to the WFD mode or the soft AP mode to the information processing device 101 before terminating the connection setting mode of the communication device 151. Therefore, when the CPU 154 receives information corresponding to the WFD mode or the soft AP mode as the setting information, it ends the connection setting mode and then activates the AP corresponding to the WFD mode or the soft AP mode by the connection setting process, and sets the communication device 151 to the WFD mode or the soft AP mode. In this state, when the CPU 154 receives a connection request including the connection information transmitted before ending the connection setting mode from the information processing device 101 that is the transmission source of the setting information, it connects the communication device 151 and the information processing device 101 by the P2P method. As a result, the communication device 151 operates in a state in which it can wirelessly connect to the information processing device 101 by P2P. After the connection setting process is completed, the CPU 154 proceeds to S317.

[0091] The contents of the connection setting process are not limited to the above-mentioned form. For example, the direct connection mode may not be set and only the infrastructure connection mode may be set depending on the setting information received from the information processing device 101. For example, when information (such as AP information) corresponding to the infrastructure connection mode is received as the setting information, the communication device 151 may not only be set to the infrastructure connection mode but also be set to the WFD mode or the soft AP mode at the same time.

[0092] On the other hand, if the determination in S308 is NO, the CPU 154 determines in S312 whether or not a USB cable is connected to the communication device 151. This is because, after the communication device 151 starts operating in the connection setting mode, the user may connect a USB cable to the communication device 151 in order to use the communication device 151 via USB communication. The details of this process are the same as those of S305. If the determination in S312 is YES, the CPU 154 ends the operation of the communication device 151 in the connection setting mode in S315, and stops the timer measurement in S316. Thereafter, the CPU 154 proceeds to S317.

[0093] On the other hand, if the determination in S312 is NO, the CPU 154 determines in S313 whether each elapsed time measured by the timer measurement exceeds each timeout time. Since the state for setting method 1 and the state for setting method 2 are started at the same time, the two elapsed times are the same at this time. In this embodiment, the timeout time before being changed by the timeout time change process described later is 60 minutes for both setting method 1 and setting method 2. However, this is not limited to this form, and any value may be used. If the determination in S312 is YES, the CPU 154 proceeds to S315, and if the determination in S312 is NO, the CPU 154 proceeds to S314.

[0094] In S314, the CPU 154 determines whether or not the initial setting process is complete. Completion of the initial setting process is as described with reference to Fig. 4. If the determination is NO, the CPU 154 waits for setting information to be transmitted from the information processing device 101, and proceeds to S308. On the other hand, if the determination is YES, the CPU 154 proceeds to S318.

[0095] In S317, the CPU 154 determines whether the initial setting process is complete, similarly to S314. If the determination is NO, the CPU 154 waits for the initial setting process to be completed and executes S317 again. On the other hand, if the determination is YES, the CPU 154 proceeds to S318.

[0096] In S318, CPU 154 determines whether communication device 151 is operating in the connection setting mode. If the determination is YES, CPU 154 proceeds to S319, and if the determination is NO, proceeds to S326. Note that the determination is YES when the initial setting process is completed without the state for setting method 1 and the state for setting method 2 timing out (if the determination is YES in S314). Also, the determination is NO when, for example, the initial setting process is completed after the state for setting method 1 and the state for setting method 2 timing out, or when the initial setting process is completed without starting operation in the connection setting mode (if the determination is YES in S317).

[0097] In S319, the CPU 154 judges whether each elapsed time measured by the timer measurement is short or not. In other words, this process is a process for judging whether the remaining time until the state for setting method 1 and the state for setting method 2 are terminated due to a timeout is long or not. Specifically, the CPU 154 judges whether the value obtained by subtracting the elapsed time of the state for setting method 1 from the timeout time for setting method 1 is smaller than a predetermined threshold value or not. In this embodiment, the predetermined threshold value used for this judgment is 15 minutes, but is not limited to this form and any value may be used. In addition, this judgment may be, for example, whether the elapsed time of the state for setting method 1 is larger than a certain threshold value or not. Note that here, the judgment was made by referring to the timeout time for setting method 1 and the elapsed time of the state for setting method 1, but at present, the timeout time for setting method 1 and the timeout time for setting method 2 are the same. In addition, the elapsed time of the state for setting method 1 and the elapsed time of the state for setting method 2 are also the same. Therefore, the judgment may be made by referring to the timeout time for setting method 2 and the elapsed time of the state for setting method 2.

[0098] If the determination is YES, the CPU 154 determines that there is sufficient time left until the state for setting method 1 and the state for setting method 2 are terminated due to a timeout. Therefore, the process proceeds to S320, and executes a timeout time change process 1. This process is a process for changing the timeout time for setting method 2 so that it is shorter than before the change. At this time, the timeout time for setting method 1 may or may not be changed, but the timeout time for setting method 2 is changed so that it is shorter than the timeout time for setting method 1. Furthermore, the timeout time for setting method 2 is changed so that it is longer than the elapsed time of the state for setting method 2. Specifically, for example, if the timeout time for setting method 2 before the change is 60 minutes and the elapsed time of the state for setting method 2 is 30 minutes, the CPU 154 changes the timeout time for setting method 2 to 45 minutes. At this time, the timeout time for setting method 2 is changed by subtracting a predetermined value from the value before the change. The value to be subtracted may be a fixed value, or may be a value that changes according to the elapsed time of the state for setting method 2. Also, the timeout time for setting method 2 may be changed to a value obtained by adding a predetermined value to the elapsed time of the state for setting method 2. The value to be added may be a constant value, or may be a value that changes according to the elapsed time of the state for setting method 2. Also, this process may be a process that controls the remaining time until the state for setting method 2 is terminated due to a timeout to be shortened. Therefore, for example, this process is not limited to a process in which the timeout time for setting method 2 is changed, but may be a process in which the elapsed time of the state for setting method 2 is changed so that the remaining time until the state for setting method 2 is terminated due to a timeout is lengthened. That is, for example, the elapsed time of the state for setting method 2 may be changed so that the value obtained by subtracting the elapsed time of the state for setting method 2 from the timeout time for setting method 2 becomes a predetermined value. In this embodiment, specifically, for example, if the timeout time for setting method 2 before the change is 60 minutes and the elapsed time of the state for setting method 2 before the change is 30 minutes, the elapsed time of the state for setting method 2 is changed to 45 minutes. Also, for example, the process may be a process in which the elapsed time of the state for setting method 2 is changed to be longer than before the change, regardless of the timeout time for setting method 2.At this time, for example, a certain value is added to the elapsed time in the state for setting method 2, but the value added at this time may be a constant value or a value that changes depending on the elapsed time in the state for setting method 2. Also, for example, both the timeout time for setting method 2 and the elapsed time in the state for setting method 2 may be changed. Then, the CPU 154 proceeds to S322.

[0099] On the other hand, if this determination is NO, there is not much time left until the state for setting method 1 and the state for setting method 2 are terminated due to a timeout. Therefore, the CPU 154 proceeds to S321 and executes a timeout time change process 2. Specifically, this process is a process of changing the timeout time for setting method 1 so that the value obtained by subtracting the elapsed time of the state for setting method 1 from the timeout time for setting method 1 becomes a predetermined value. The predetermined value is, for example, 15 minutes, but is not limited to this form and any value may be used. Specifically, in this form, for example, if the timeout time for setting method 1 is 60 minutes and the elapsed time of the state for setting method 1 is 50 minutes, the timeout time for setting method 1 is changed to 65 minutes. Also, this process may be a process of changing the timeout time for setting method 1 to be longer than before the change, regardless of the elapsed time of the state for setting method 1. At this time, for example, a value is added to the timeout time for setting method 1, but the value added may be a constant value or a value that changes depending on the elapsed time of the state for setting method 1. At this time, the timeout time for setting method 2 is also changed in the same manner as the timeout time for setting method 1. This process may be a process that controls the remaining time until the state for setting method 1 and the state for setting method 2 are terminated by a timeout to be longer. Therefore, for example, this process is not limited to a process in which the timeout time is changed, but may be a process in which the elapsed time is changed so that the remaining time until the state for setting method 1 and the state for setting method 2 are terminated by a timeout is longer. That is, for example, the elapsed time of the state for setting method 1 may be changed so that the value obtained by subtracting the elapsed time of the state for setting method 1 from the timeout time for setting method 1 becomes a predetermined value. In this embodiment, specifically, for example, if the timeout time for setting method 1 is 60 minutes and the elapsed time of the state for setting method 1 is 50 minutes, the elapsed time of the state for setting method 1 is changed to 45 minutes. For example, the process may be a process in which the elapsed time of the state for setting method 1 is changed to be shorter than before the change, regardless of the timeout time for setting method 1.At this time, for example, a certain value is subtracted from the elapsed time of the state for setting method 1, and the value subtracted at this time may be a fixed value or may be a value that changes according to the elapsed time of the state for setting method 1. Also, for example, a process of resetting (setting to 0) the elapsed time of the state for setting method 1 may be performed. At this time, the elapsed time of the state for setting method 2 is also changed in the same manner as the elapsed time of the state for setting method 1. Also, for example, a form in which both the timeout time for setting method 1 and the elapsed time of the state for setting method 1 are changed may be performed. Specifically, in this form, for example, if the timeout time for setting method 1 is 60 minutes and the elapsed time of the state for setting method 1 is 50 minutes, the elapsed time of the state for setting method 1 is reset and the timeout time for setting method 1 is changed to 15 minutes. In this manner, in a form in which both the timeout time and the elapsed time are changed, the timeout time may be changed to be smaller than the value before the change. At this time, the timeout time for setting method 2 and the elapsed time of the state for setting method 2 are also changed in the same manner as the timeout time for setting method 1 and the elapsed time of the state for setting method 1. Thereafter, the CPU 154 proceeds to S322.

[0100] In S326, which is executed when S302 is NO or when S318 is NO, CPU 154 determines whether any connection mode has been set in communication device 151. Details of this process are similar to those of S304. If the determination is YES, CPU 154 ends the process of this flowchart without causing communication device 151 to start operation in the connection setting mode. On the other hand, if the determination is NO, CPU 154 proceeds to S327.

[0101] In S327, CPU 154 determines whether a USB cable is connected to communication device 151. Details of this process are similar to those of S305. If the determination is YES, CPU 154 ends the process of this flowchart without causing communication device 151 to start operation in the connection setting mode. On the other hand, if the determination is NO, CPU 154 proceeds to S328.

[0102] In S328, the CPU 154 starts operation in the connection setting mode for the communication device 151. Details of this process are similar to those in S306.

[0103] In S329, the CPU 154 starts a timer measurement for measuring the elapsed time in the connection setting mode, and waits for the setting information to be transmitted from the information processing device 101. Details of this process are similar to those of S307. After that, the CPU 154 proceeds to S322.

[0104] In S322, the CPU 154 determines whether or not the setting information has been received from the information processing device 101. If the determination is YES, the CPU 154 proceeds to S330, and if the determination is NO, the CPU 154 proceeds to S323.

[0105] Details of S330 to S332 are the same as those of S309 to S311. After S332, the CPU 154 ends the processing of this flowchart.

[0106] In S323, the CPU 154 determines whether or not a USB cable is connected to the communication device 151. Details of this process are similar to those of S312. If the determination is YES, the CPU 154 proceeds to S333, and if the determination is NO, the CPU 154 proceeds to S324.

[0107] In S324, CPU 154 determines whether the elapsed time in the state for setting method 1 measured by the timer exceeds the timeout time for setting method 1. At this time, if the timeout time for setting method 1 has been changed in S321, this determination is made based on the changed timeout time. If the determination is YES, CPU 154 proceeds to S333, and if the determination is NO, proceeds to S325.

[0108] Details of S333 and S334 are similar to those of S315 and S316. After S334, the CPU 154 ends the processing of this flowchart.

[0109] In S325, CPU 154 determines whether the elapsed time in the state for setting method 2 measured by the timer exceeds the timeout time for setting method 2. At this time, if the timeout time for setting method 2 has been changed in S320 or S321, this determination is made based on the changed timeout time. If the determination is YES, CPU 154 proceeds to S335, and if the determination is NO, returns to S322.

[0110] In step S335, the CPU 154 instructs the communication device 151 to operate in the setting method 2 state. end At this time, since the elapsed time in the state for setting method 1 has not exceeded the timeout time for setting method 1, operation in the state for setting method 1 will continue.

[0111] In S336, the CPU 154 stops the timer measurement that is measuring the elapsed time in the state for setting method 2. At this time, the timer measurement that is measuring the elapsed time in the state for setting method 1 is not stopped. After that, the CPU 154 returns to S322.

[0112] In this manner, in this embodiment, if the time remaining until the operation in the connection setting mode ends after the completion of the initial setting process is short due to the time taken to complete the initial setting process (if NO in S319), the timeout time is extended. This allows the user to connect the information processing device 101 and the communication device 151 with plenty of time, and to set the connection mode in the communication device 151 with plenty of time. Note that in this embodiment, if the connection setting mode is started without starting the initial setting process (if S328 is executed after S302-NO), neither the timeout time for setting method 1 nor the timeout time for setting method 2 is extended.

[0113] Also, in this embodiment, if the initial setting process does not take much time to complete, and therefore there is a lot of time remaining until the operation in the connection setting mode ends after the initial setting process is completed (if S319-YES), the timeout time for setting method 1 is shortened. This makes it possible to prevent the state for setting method 2, which is a state in which setting method 2, which is likely to take less time for setting, from continuing unnecessarily long, and ensure security regarding the connection of the communication device 151. Note that in this embodiment, for example, if there is a lot of time remaining until the operation in the connection setting mode ends after the initial setting process is completed (if S319-YES), the timeout time for setting method 1 is not changed. This allows the user to connect the information processing device 101 and the communication device 151 with plenty of time when using setting method 1, which is likely to take more time for setting. Also, for example, if the connection setting mode is started without starting the initial setting process (if S328 is executed after S302-NO), neither the timeout time for setting method 1 nor the timeout time for setting method 2 is shortened.

[0114] 5 is a flowchart showing processing executed by the information processing device 101 for causing the communication device 151 to execute a connection setting process. Note that this flowchart is realized by the CPU 103 loading a setup program for the communication device 151 stored in the ROM 104 or an external storage device (not shown) into the RAM 105 and executing the setup program for the communication device 151. Note that this flowchart is started when a setting instruction is received from the user on a screen displayed by the setup program for the communication device 151.

[0115] First, in S501, CPU 103 executes a search for a device operating in the state for setting method 2. As described above, a device operating in the state for setting method 2 transmits a predetermined beacon. Therefore, for example, CPU 103 searches for a device operating in the state for setting method 2 by searching for a predetermined beacon transmitted by a device operating in the state for setting method 2.

[0116] Next, in S502, CPU 103 determines whether or not a device operating in a state for setting method 2 has been found (whether a predetermined beacon has been received) in the search of S501. If the determination is YES, the process proceeds to S510, and if the determination is NO, the process proceeds to S503. Note that if the determination is YES, it is assumed that communication device 151 has been found as a device operating in a state for setting method 2.

[0117] In S503, CPU 103 executes a search for a device operating in the state for setting method 1. As described above, communication device 151 operating in the connection setting mode has a soft AP dedicated to the connection setting mode enabled. Therefore, for example, CPU 103 searches for a device operating in the state for setting method 2 by searching for a beacon emitted by a soft AP dedicated to the connection setting mode enabled by communication device 151 operating in the state for setting method 1.

[0118] Next, in S504, CPU 103 determines whether or not a device operating in a state for setting method 1 has been found in the search of S503. If the determination is YES, the process proceeds to S505, and if the determination is NO, the process of this flowchart ends. Note that if the determination is NO, CPU 103 may display, for example, a manual showing a method for causing communication device 151 to execute the connection setting process.

[0119] In S505, the CPU 103 displays a connection mode selection screen for selecting a connection mode to be set in the communication device 151. The CPU 103 then selects a connection mode corresponding to an input received from a user on the connection mode selection screen as a connection mode to be set in the communication device 151. The connection mode to be set in the communication device 151 may be automatically selected by a setup program based on the communication environment of the information processing device 101. For example, when the information processing device 101 is connected to any AP when the connection mode is set in the communication device 151, the infrastructure connection mode is selected as the connection mode to be set in the communication device 151. Also, for example, when the information processing device 101 is not connected to any AP when the connection mode is set in the communication device 151, a direct connection mode such as a WFD mode or a soft AP mode is selected as the connection mode to be set in the communication device 151.

[0120] In S506, the CPU 103 determines whether or not the infrastructure connection mode was selected in S505 (whether the direct connection mode was selected). If the determination is YES, the process proceeds to S507, and if the determination is NO, the process proceeds to S509.

[0121] In S507, which is executed when the determination in S506 is YES, the CPU 103 transmits infrastructure setting information to the communication device 151 by the setting method 1. Specifically, the CPU 103 first temporarily stores AP information of the AP to which the information processing device 101 is currently connected (i.e., when a predetermined operation is accepted) in the RAM 105. Then, the connection between the AP and the information processing device 101 is disconnected. At this time, if there is no AP to which the information processing device 101 is currently connected, this process is skipped. Then, the information processing device 101 is connected to an AP dedicated to the connection setting mode. That is, the information processing device 101 is connected to the communication device 151 operating in the connection setting mode. Then, the CPU 103 transmits the AP information temporarily stored in the RAM 105 to the communication device 151 as infrastructure setting information via the AP dedicated to the connection setting mode. By receiving the AP information, the communication device 151 is set to an infrastructure connection mode in which connection is possible via an AP based on the AP information. Here, AP information other than the AP information temporarily stored in the RAM 105 may be transmitted. For example, AP information selected from a list of APs found by the communication device 151 through a search may be transmitted, or AP information selected from a list of APs found by the information processing device 101 through a search may be transmitted. For example, AP information corresponding to an SSID input by a user may be transmitted. In addition, in S506, the CPU 103 accepts input of a password corresponding to the AP information to be transmitted from the user, and the input password is also transmitted as infrastructure setting information. As described above, the communication protocol used in communication in the setting method 1 is SNMP. After the infrastructure setting information is transmitted, the CPU 103 disconnects the connection between the information processing device 101 and the AP dedicated to the connection setting mode.

[0122] In S508, the CPU 103 reconnects to the AP to which the information processing device 101 was connected immediately before connecting to the communication device 151 in the connection setting mode, and to which the information processing device 101 was connected when a predetermined operation was accepted. If there is no such AP, this process is omitted. Then, the process of this flowchart ends.

[0123] On the other hand, in S509, which is executed when the determination in S506 is NO, the CPU 103 transmits direct setting information to the communication device 151 by the setting method 1. Specifically, first, the CPU 103 disconnects the connection between the information processing device 101 and the AP to which the information processing device 101 is currently connected (i.e., when a predetermined operation is accepted). At this time, if there is no AP to which the information processing device 101 is currently connected, this process is skipped. Thereafter, the information processing device 101 is connected to an AP dedicated to the connection setting mode. In other words, the information processing device 101 is connected to the communication device 151 operating in the connection setting mode. Then, the CPU 103 transmits direct setting information to the communication device 151. Thereafter, the CPU 103 receives connection information (SSID and password) for connecting to the communication device 151 operating in the direct connection mode from the communication device 151. Thereafter, the CPU 103 disconnects the connection between the information processing device 101 and the AP dedicated to the connection setting mode, and establishes a connection between the information processing device 101 and the communication device 151 operating in the direct connection mode, using the received connection information. As described above, the communication protocol used in the communication in the setting method 1 is assumed to be SNMP. Thereafter, the CPU 103 ends the processing of this flowchart.

[0124] In S510, which is executed if the determination in S502 is YES, CPU 103 displays a connection mode selection screen for selecting a connection mode to be set in communication device 151. CPU 103 then selects a connection mode corresponding to an input received from the user on the connection mode selection screen, as the connection mode to be set in communication device 151. This process is similar to that of S505.

[0125] In S511, the CPU 103 determines whether or not the infrastructure connection mode was selected in S510 (whether the direct connection mode was selected). If the determination is YES, the process proceeds to S512, and if the determination is NO, the process proceeds to S509.

[0126] In S512, the CPU 103 transmits infrastructure setting information to the communication device 151 by the setting method 2. Specifically, first, the CPU 103 temporarily stores AP information of the AP to which the information processing device 101 is currently connected (i.e., when the predetermined operation is accepted) in the RAM 105. At this time, if there is no AP to which the information processing device 101 is currently connected, this process is skipped. Thereafter, the CPU 103 starts a predetermined setting application program and displays a screen of the program in the foreground. As a result, the setup program for the communication device 151 moves to the background. After the predetermined setting application program is started, the setup program for the communication device 151 appropriately acquires information on the process executed in the predetermined setting application program. The predetermined setting application program displays a screen for selecting an AP to be connected to the communication device 151. If there is an AP to which the information processing device 101 is currently connected, the screen includes the AP. Then, when the AP to which the information processing device 101 is currently connected is selected by the user, the predetermined setting application program acquires a password for connecting to the AP from the OS. That is, the password is acquired without the user inputting a password to a setup program for the communication device 151 or a predetermined setting application program. When an AP other than the AP to which the information processing device 101 is currently connected is selected by the user, if the OS holds a password for connecting to the selected AP, the password is acquired from the OS. If the OS does not hold a password for connecting to the selected AP, the password is acquired by the user inputting a password to a predetermined setting application program. Then, the predetermined setting application program disconnects the connection between the information processing device 101 and the AP to which the information processing device 101 is currently connected (i.e., when the predetermined operation is accepted). Then, the predetermined setting application program connects the communication device 151 operating in a state for setting method 2 to the information processing device 101, and connection information (the acquired password and SSID) of the selected AP is transmitted.Thereafter, the predetermined setting application program disconnects the connection between the communication device 151 and the information processing device 101, and establishes a connection between the selected AP and the information processing device 101. Thereafter, a screen of the setup program for the communication device 151 is displayed in the foreground. As described above, the communication protocol used in the communication in setting method 2 is assumed to be HTTP. Thereafter, the processing of this flowchart ends.

[0127] With the above configuration, the user can set the timeout time for the connection setting mode when executing the connection setting of the communication device 151 using the information processing device 101. This increases the opportunities for the user to more easily execute the change of the connection setting, thereby improving usability.

[0128] As described above, in this embodiment, the communication device 151 can start operating in the connection setting mode under various conditions. Specifically, for example, the communication device 151 starts operating in the connection setting mode in S306 based on the fact that the communication device 151 has transitioned to a soft-on state and the initial settings have not been completed (condition 1). For example, the communication device 151 starts operating in the connection setting mode in S326 based on the fact that the communication device 151 has transitioned to a soft-on state and the initial settings have been completed (condition 2). For example, the communication device 151 starts operating in the connection setting mode based on the fact that a predetermined operation for starting the connection setting mode (operation of the connection setting mode area 203 or operation of the connection setting mode button 211) has been accepted (condition 3). For example, the communication device 151 starts operating in the connection setting mode based on the fact that a reset operation has been accepted (condition 4). For example, the communication device 151 starts operating in the connection setting mode based on the fact that the initial setting process has been completed after the connection setting mode started based on condition 1 has been stopped due to a timeout (condition 5). Thus, the communication device 151 may vary the timeout time depending on the condition under which the operation in the connection setting mode has been started. In this embodiment, the timeout time for setting method 1 and the timeout time for setting method 2 before the change, which are used when the connection setting mode is started under condition 1, are longer than the timeout time for setting method 1 and the timeout time for setting method 2 used when the connection setting mode is started under other conditions. For example, the timeout time for setting method 1 and the timeout time for setting method 2 before the change, which are used when the connection setting mode is started under condition 1, are set to 60 minutes, and the timeout time for setting method 1 and the timeout time for setting method 2 used when the connection setting mode is started under other conditions are set to 15 minutes. Note that the timeout time for setting method 1 and the timeout time for setting method 2 may be uniformly the same regardless of the start condition of the operation in the connection setting mode.In this embodiment, the timeout time for setting method 1 and the timeout time for setting method 2 used when the connection setting mode is started under condition 1 may be changed by the timeout time change process, but the timeout time for setting method 1 and the timeout time for setting method 2 used when the connection setting mode is started under other conditions are not changed. Note that it is not necessary to start the operation in the connection setting mode in all of the above cases, and there may be a condition among the above conditions in which the operation in the connection setting mode is not started. As described above, in this embodiment, a switching process is executed to switch whether or not the communication device 151 is operated in the connection setting mode depending on whether or not the USB cable or the wired LAN cable is connected. For example, the switching process is executed in the connection setting mode started under condition 1, condition 2, condition 4, and condition 5, but the switching process is not executed in the connection setting mode started under condition 3, and the communication device 151 may always be operated in the connection setting mode when a predetermined operation for starting the connection setting mode is executed.

[0129] Second embodiment In the second embodiment, a process different from that in the first embodiment will be described as a process executed by the information processing device 101 to cause the communication device 151 to execute a connection setting process. Note that the process on the communication device 151 side is the same as that in the first embodiment unless otherwise specified.

[0130] 6 is a flowchart showing processing executed by the information processing device 101 for causing the communication device 151 to execute a connection setting process. Note that this flowchart is realized by the CPU 103 loading a setup program for the communication device 151 stored in the ROM 104 or an external storage device (not shown) into the RAM 105 and executing the setup program for the communication device 151. Note that this flowchart is started when a setting instruction is received from the user on a screen displayed by the setup program for the communication device 151.

[0131] First, in S601, the CPU 103 temporarily stores AP information of the AP to which the information processing device 101 is currently connected (i.e., when a predetermined operation is accepted) in the RAM 105. At this time, if there is no AP to which the information processing device 101 is currently connected, this process is skipped.

[0132] Next, in S602, the CPU 103 searches for APs accessible by the information processing device 101 via the communication unit 109. The AP search may be performed automatically when the setup program is started, or may be performed in response to an instruction from the user. The AP search is performed by the communication unit 109 receiving a beacon transmitted by each AP.

[0133] In S603, CPU 103 causes operation display unit 108 to display a list of APs found by the AP search in S602 (AP search results). At this time, for example, CPU 103 causes a list of SSIDs of each AP to be displayed. Note that in S603, CPU 103 may be configured to automatically extract and display APs having SSIDs in a format conforming to the above-mentioned rules that constitute the SSID of an AP dedicated to the connection setting mode. At this time, if there are multiple SSIDs in a format conforming to the above-mentioned rules, the multiple SSIDs are displayed and the user is allowed to select from among them. Also, in this configuration, the process in S605 described below does not need to be performed.

[0134] When the APs are displayed in S603, the user selects from the search results an AP corresponding to a communication device for which the connection mode is to be set, and the CPU 103 accepts the selection of the AP.

[0135] In S604, the CPU 103 judges whether the AP selected in S603 corresponds to the communication device to be set by the setup program. Specifically, the CPU 103 judges whether the selected AP has an SSID in a format conforming to the above-mentioned rules constituting the SSID of the AP dedicated to the connection setting mode. If it is judged that the AP is not an AP in the communication device to be set, the CPU 103 waits again to detect the selection of the AP by the user. At this time, the CPU 103 may display a screen on the operation display unit 108 to inform the user that an inappropriate AP has been selected. Also, if there is no AP corresponding to the communication device to be set or there is no AP in the communication device desired by the user, the CPU 103 returns to S603, but may be configured to end the processing of this flowchart.

[0136] In the above description, the configuration in which the user manually selects the AP of the communication device for which the connection mode is to be set by the processes in S603 to S604 has been described, but the present invention is not limited to this. For example, the CPU 103 may automatically select, from the APs searched in S602, an AP having an SSID in a format conforming to the above-mentioned rules as the AP of the communication device for which the connection mode is to be set.

[0137] When a communication device to be set (here, communication device 151) is selected in S603, CPU 103 exchanges parameters (connection information) for wireless connection between information processing device 101 and communication device 151. Note that connection information for connecting to an AP dedicated to the connection setting mode is held in advance by a setup program. In this way, information processing device 101 connects to an AP dedicated to the connection setting mode and establishes communication with communication device 151.

[0138] Next, in S605, the CPU 103 displays a connection mode selection screen that accepts from the user the selection of a connection mode to be set in the communication device 151. In this embodiment, the options displayed on the connection mode selection screen are the infrastructure connection mode and the direct connection mode. For example, a button for the setup program to automatically select the connection mode to be set in the communication device 151 from the infrastructure connection mode and the direct connection mode may be displayed on the connection mode selection screen. When the button is pressed, the CPU 103 selects the infrastructure connection mode if the information processing device 101 is connected to the AP when the predetermined operation is accepted. On the other hand, the CPU 103 selects the direct connection mode if the information processing device 101 is not connected to the AP when the predetermined operation is accepted.

[0139] In S606, the CPU 103 determines whether or not the infrastructure connection mode has been selected on the connection mode selection screen. If the determination is YES, the process proceeds to S607, and if the determination is NO, the process proceeds to S610.

[0140] In S607, the CPU 103 determines whether the communication device 151 supports the setting method 2. As described above, the communication device 151 transmits a predetermined beacon when operating in the state for the setting method 2. Therefore, for example, when the CPU 103 receives a predetermined beacon transmitted by the communication device 151, the CPU 103 determines that the communication device 151 supports the setting method 2. Then, when the CPU 103 cannot receive the predetermined beacon transmitted by the communication device 151, the CPU 103 determines that the communication device 151 does not support the setting method 2. The method of determination in this determination is not limited to this method. For example, the CPU 103 may receive information indicating whether the communication device 151 supports the setting method 2 from the communication device 151 via the connection between the information processing device 101 and the communication device 151, and perform this determination based on the contents of the information. The fact that the communication device 151 supports the setting method 2 corresponds to the communication device 151 operating in the state for the setting method 2. And, the fact that communication device 151 does not support setting method 2 corresponds to the fact that communication device 151 is a model that cannot use a protocol for setting method 2, or that communication device 151 can use a protocol for setting method 2 but is not operating in a state for setting method 2. If this determination is YES, proceed to S608, and if this determination is NO, proceed to S610.

[0141] In S608, CPU 103 displays a setting method selection screen for selecting one of a plurality of setting methods (here, setting method 1 and setting method 2). Thereafter, the user selects one of the setting methods on the setting method selection screen, and CPU 103 accepts the selection result.

[0142] In S609, CPU 103 determines whether or not setting method 1 has been selected by the user (whether setting method 2 has been selected) based on the selection result accepted in S608. If this determination is YES, the process proceeds to S610, and if this determination is NO, the process proceeds to S611.

[0143] In S610, the CPU 103 transmits the setting information to the communication device 151 by the setting method 1. Specifically, the CPU 103 transmits the AP information temporarily stored in the RAM 105 in S601 as infrastructure setting information to the communication device 151 via the AP dedicated to the connection setting mode connected after S604. By receiving the AP information, the communication device 151 is set to the infrastructure connection mode that can be connected via the AP based on the AP information. Note that here, AP information other than the AP information temporarily stored in the RAM 105 in S601 may be transmitted. For example, AP information selected from a list of APs found by the communication device 151 through a search may be transmitted, or AP information selected from a list of APs found by the information processing device 101 through a search may be transmitted. For example, AP information corresponding to an SSID input by a user may be transmitted. In addition, in S610, the CPU 103 accepts input of a password corresponding to the AP information to be transmitted from the user, and the input password is also transmitted as infrastructure setting information. Note that here, instead of the infrastructure setting information, setting information for setting another connection mode, such as WFD mode or soft AP mode, to the communication device 151 may be transmitted. The connection mode to be set to the communication device 151 may be determined, for example, by accepting a user's selection via a screen displayed by a setup program, or may be automatically determined by a setup program based on the communication environment of the information processing device 101. For example, when setting the connection mode to the communication device 151, if the information processing device 101 is connected to any AP, the infrastructure connection mode is selected as the connection mode to be set to the communication device 151. Also, for example, when setting the connection mode to the communication device 151, if the information processing device 101 is not connected to any AP, a P2P connection mode, such as WFD mode or soft AP mode, is selected as the connection mode to be set to the communication device 151.

[0144] In S611, CPU 103 transmits setting information to communication device 151 by setting method 2. Note that, as described above, the password included in the setting information transmitted at this time is not obtained by the setup program for communication device 151 accepting a user input, but is automatically obtained from the OS.

[0145] In S612, CPU 103 disconnects the connection to the AP dedicated to the connection setting mode, and reconnects to the AP based on the AP information temporarily stored in RAM 105 in S601. As a result, if the AP information has been transmitted to communication device 151 and communication device 151 has been connected to the AP based on the AP information, communication with communication device 151 becomes possible via the AP. When communication becomes possible, CPU 103 registers communication device 151 in RAM 105 as a communication device to which information processing device 101 will connect in the future. Thereafter, CPU 103 ends the setup program.

[0146] The processes from S602 to S604 do not necessarily have to be performed by the setup program. Alternatively, an AP dedicated to the connection setting mode may be searched for by another application already installed in the information processing device 101, and the setup program may obtain the results.

[0147] Also, in the above description, since CPU 103 communicates with communication device 151 via an AP dedicated to the connection setting mode, CPU 103 transmits the setting information to communication device 151 using a communication standard conforming to the IEEE802.11 series (i.e., Wi-Fi (registered trademark)). However, without being limited to this form, CPU 103 may transmit the setting information to communication device 151 using, for example, a communication standard different from the communication standard conforming to the IEEE802.11 series. The communication standard used at this time is, for example, Bluetooth Classic (registered trademark), Bluetooth Low Energy (registered trademark), Near Field Communication, Wi-Fi Aware, etc. By adopting such a form, CPU 103 can transmit the setting information to communication device 151 using another communication standard while maintaining a Wi-Fi connection with the AP used in the infrastructure connection mode.

[0148] (Other embodiments) In the above, if the device is still operating in the connection setting mode after the initial setting process, at least one of the two timeout time change processes is executed, but this is not limiting. There may be cases where the change process is not executed depending on the remaining time. Specifically, if the determination in S319 is YES, the timeout time change process 1 is executed, but if the determination in S319 is NO, the timeout time change process 2 is not executed and the process may proceed to S322.

[0149] In the above description, the timeout time for setting method 1 and the timeout time for setting method 2 before the timeout time change process is executed are the same, but this is not limited to the above. That is, the timeout time for setting method 1 and the timeout time for setting method 2 may be different from each other. In this case, the timeout time for setting method 2 may be set to be shorter than the timeout time for setting method 1.

[0150] In the above, the timeout time change process 1 is described as being changed in such a manner that at least one of the timeout time for the setting method 2 and the elapsed time of the setting method 2 is changed, and the timeout time for the setting method 1 and the elapsed time of the setting method 1 are not changed, but the present invention is not limited to this. For example, the timeout time change process 1 may be changed in such a manner that at least one of the timeout time for the setting method 1 and the elapsed time of the setting method 1 are changed, and the timeout time for the setting method 2 and the elapsed time of the setting method 2 are not changed. Also, the timeout time change process 1 may be changed in such a manner that at least one of the timeout time for the setting method 1 and the elapsed time of the setting method 1, and at least one of the timeout time for the setting method 2 and the elapsed time of the setting method 2 are changed. When at least one of the timeout time for the setting method 1 and the elapsed time of the setting method 1 are changed, the method of change is the same as the method of change of at least one of the timeout time for the setting method 2 and the elapsed time of the setting method 2, described in the timeout time change process 1.

[0151] In the above, the communication device 151 is described as being capable of performing both the operation in the state for setting method 1 and the operation in the state for setting method 2, but is not limited to this form. For example, the communication device 151 may be capable of performing only the operation in the state for setting method 2. In that case, the elapsed time for setting method 1 is not counted, and only the timeout time for setting method 2 is changed in the timeout time change process. In that case, the determination in S319 may not be executed, and the elapsed time minus the timeout time may be controlled to always be a predetermined value (for example, 15 minutes). The above-mentioned embodiment can also be realized by executing the following process. That is, the software (program) that realizes the functions of the above-mentioned embodiment is supplied to a system or device via a network or various storage media, and a computer (CPU, MPU, etc.) of the system or device reads and executes the program. The program may be executed by one computer, or may be executed by multiple computers in cooperation with each other. In addition, it is not necessary to realize all of the above-mentioned processes by software, and some or all of the processes may be realized by hardware such as ASIC. In addition, the CPU is not limited to one that performs all processes by one CPU, and multiple CPUs may perform processes while appropriately coordinating with each other. [Explanation of symbols]

[0152] 101 Information processing device 151 Communication equipment

Claims

1. A communication device, comprising: a start means for causing the communication device to start an operation in a predetermined mode for receiving setting information from an information processing device; a setting means for executing a connection setting of the communication device based on the setting information when the setting information is received from the information processing device during operation in the predetermined mode; An execution means for executing a predetermined process that is completed based on a user operation; if the predetermined process is not completed in the communication device during operation in the predetermined mode, terminate the operation in the predetermined mode in the communication device based on a first time period having elapsed since the operation in the predetermined mode in the communication device was started without the connection setup being performed; a control means for terminating operation in the predetermined mode based on a fact that a second time period, which is shorter than the first time period, has elapsed since the start of operation in the predetermined mode in the communication device without the connection setup being executed, when the predetermined process is completed in the communication device during operation in the predetermined mode; A communication device comprising:

2. a counting means for counting a value corresponding to a time since the communication device started to operate in the predetermined mode; and a determination means for determining whether or not to stop the operation in the predetermined mode based on the counted value and a predetermined threshold value, if the predetermined process is not completed in the communication device during operation in the predetermined mode, a process is executed to determine whether or not to terminate the operation in the predetermined mode based on the counted value and the predetermined threshold value corresponding to the first time period; The communication device described in claim 1, characterized in that when the specified processing is completed in the communication device while operating in the specified mode, a change processing including at least one of a change to increase the counted value and a change to decrease the specified threshold value is executed, and a process of determining whether or not to terminate operation in the specified mode is executed based on the counted value after the change processing and the specified threshold value.

3. The communication device according to claim 1 or 2, characterized in that when the specified processing is completed in the communication device while operating in the specified mode, whether or not to execute specified control to terminate operation in the specified mode based on the fact that the second time has elapsed since the communication device started operating in the specified mode without the connection setting being executed is controlled based on the time that has elapsed since the communication device started operating in the specified mode.

4. when the predetermined process is completed in the communication device while operating in the predetermined mode, and the time that has elapsed since the operation of the communication device in the predetermined mode started is greater than a specific threshold, the predetermined control is not executed; The communication device according to claim 3, characterized in that the specified control is executed when the specified processing is completed in the communication device while operating in the specified mode and the time elapsed since the communication device started operating in the specified mode is not greater than the specific threshold value.

5. The communication device described in Claim 4, characterized in that when the specified processing is completed in the communication device while operating in the specified mode and the time that has elapsed since the communication device started operating in the specified mode is greater than a specific threshold, the control means terminates operation in the specified mode based on the fact that a third time that is longer than the first time has elapsed since the communication device started operating in the specified mode without the connection setting being executed.

6. a second starting means for starting the communication device in a specific mode, which is a mode different from the predetermined mode and is a mode for receiving setting information from the information processing device; A communication device as described in any one of claims 1 to 5, characterized in that if the specified processing is not completed in the communication device during operation in the specific mode, the control means terminates operation in the specific mode based on the fact that a fourth time has elapsed since the communication device started operating in the specific mode without the connection setting being executed.

7. The communication device described in Claim 6, characterized in that even if the specified processing is completed in the communication device while operating in the specific mode, control to terminate operation in the specific mode is not executed based on the fact that a fifth time, which is shorter than the fourth time, has elapsed since the communication device started operating in the specific mode without the connection setting being executed.

8. The communication device described in Claim 6 or 7, characterized in that when the specified processing is completed in the communication device while operating in the specific mode and the time that has elapsed since the communication device started operating in the specific mode is greater than a specific threshold, the control means terminates operation in the specific mode based on the elapse of a sixth time that is longer than the fourth time without the connection setting being executed since the communication device started operating in the specific mode.

9. 9. The communication device according to claim 6, wherein the first time period and the fourth time period are the same.

10. 10. The communication device according to claim 6, wherein the operation in the predetermined mode and the operation in the specific mode are started based on the same condition.

11. 11. The communication device according to claim 6, wherein the predetermined mode is a mode for communicating the setting information by a first protocol, and the specific mode is a mode for communicating the setting information by a second protocol.

12. 12. The communication device according to claim 11, wherein the first protocol is Hyper Text Transfer Protocol (HTTP) or Device Provisioning Protocol (DPP), and the second protocol is Simple Network Management Protocol (SNMP).

13. the predetermined mode is a mode for receiving the setting information including a password from a first application program of the information processing device without a user inputting a password for the first application program, The communication device according to any one of claims 6 to 12, characterized in that the specific mode is a mode for receiving the setting information including the password from a second application program of the information processing device after a user inputs a password for the first application program.

14. A communication device as described in any one of claims 1 to 13, characterized in that the communication device starts operating in the specified mode based on the power button of the communication device being pressed when the specified processing has not been completed in the communication device.

15. causing the communication device to start operation in the predetermined mode, based on the fact that a power button of the communication device is pressed and a USB (Universal Serial Bus) cable is not connected to the communication device in a state in which the predetermined process has not been completed in the communication device; The communication device according to claim 14, characterized in that when the power button of the communication device is pressed and a USB cable is connected to the communication device without the specified processing being completed in the communication device, the communication device is not caused to start operation in the specified mode.

16. The communication device described in Claim 14 or 15, characterized in that when operation in the specified mode is initiated based on conditions other than pressing the power button of the communication device without the specified processing being completed in the communication device, the control means terminates operation in the specified mode based on the passage of a time different from the first time and the second time without the connection setting being executed since operation in the specified mode was initiated in the communication device.

17. The communication device described in claim 16, characterized in that the other condition is at least one of: a power button of the communication device is pressed when the specified processing has been completed in the communication device; a specified operation is performed in the communication device to start operation in the specified mode, which is an operation other than pressing the power button; and the specified processing is completed after operation in the specified mode is terminated based on the first time having elapsed since operation in the specified mode was started in the communication device without the connection setting being executed.

18. 18. The communication device according to claim 1, wherein the predetermined process is an initial setting process for performing an initial setting of the communication device.

19. The communication device according to claim 18, characterized in that the initial setting process includes at least one of a process for cleaning components provided in the communication device, a process for accepting user operations for setting the language used by the communication device for display, a process for accepting user operations regarding the environment in which the communication device is used, and a registration adjustment.

20. 20. The communication device according to claim 1, wherein the connection setting of the communication device includes a process of connecting the communication device to an access point external to the communication device and external to the information processing device.

21. 21. The communication device according to claim 1, wherein the predetermined mode is a mode in which a predetermined access point of the communication device is enabled.

22. The communication device according to any one of claims 1 to 21, characterized in that the specified mode is a mode for receiving the setting information including a password from a specified application program of the information processing device without a user inputting a password for the specified application program.

23. 23. The communication device according to claim 1, wherein the predetermined mode is a mode for receiving the configuration information by Hyper Text Transfer Protocol (HTTP).

24. 24. The communication device according to claim 1, wherein the predetermined mode is a mode for receiving the setting information by Device Provisioning Protocol (DPP).

25. 25. The communication device according to claim 1, wherein the first period of time is 60 minutes.

26. A printing means for executing printing by a printing unit; 26. The communication device according to any one of claims 1 to 25, further comprising:

27. a receiving unit for receiving a print job from the information processing device after the connection setting of the communication device is completed; and 27. The communication device according to claim 26, wherein printing is performed based on the print job.

28. 28. The communication device according to claim 1, wherein the predetermined mode is a state in which a predetermined beacon corresponding to the predetermined mode is transmitted.

29. 29. The communication device according to claim 1, wherein the connection setting of the communication device includes a process for connecting the information processing device and the communication device in a peer-to-peer manner.

30. A communication device as described in any one of claims 1 to 29, characterized in that after operation in the specified mode is terminated based on the first time having elapsed since operation in the specified mode was started in the communication device without the connection setting being executed, when the specified processing is completed, the communication device is caused to start operation in the specified mode again.

31. a display unit for performing display control of a display unit of the communication device to display a menu that can be operated by a user; 31. The communication device according to any one of claims 1 to 30, further comprising:

32. A method for controlling a communication device, comprising: a start step of causing the communication device to start an operation in a predetermined mode for receiving setting information from an information processing device; a setting step of executing a connection setting of the communication device based on the setting information when the setting information is received from the information processing device during operation in the predetermined mode; An execution step of executing a predetermined process that is completed based on a user operation; if the predetermined process is not completed in the communication device during operation in the predetermined mode, terminate the operation in the predetermined mode in the communication device based on a first time period having elapsed since the operation in the predetermined mode in the communication device was started without the connection setup being performed; a control step of terminating operation in the predetermined mode based on a second time period that is shorter than the first time period having elapsed since operation in the predetermined mode was started in the communication device without the connection setup being executed, when the predetermined process is completed in the communication device during operation in the predetermined mode; A control method comprising the steps of:

33. The computer of the communication device a start step of causing the communication device to start an operation in a predetermined mode for receiving setting information from an information processing device; a setting step of executing a connection setting of the communication device based on the setting information when the setting information is received from the information processing device during operation in the predetermined mode; An execution step of executing a predetermined process that is completed based on a user operation; if the predetermined process is not completed in the communication device during operation in the predetermined mode, terminate the operation in the predetermined mode in the communication device based on a first time period having elapsed since the operation in the predetermined mode in the communication device was started without the connection setup being performed; a control step of terminating operation in the predetermined mode based on a second time period that is shorter than the first time period having elapsed since operation in the predetermined mode was started in the communication device without the connection setup being executed, when the predetermined process is completed in the communication device during operation in the predetermined mode; A program characterized by executing the above.

Citation Information

Patent Citations

  • Communication device, communication method, and program

    JP2015023440A

  • Communication apparatus, control method, and program

    JP2021022876A

  • Method for controlling wireless communication between a mobile device and an electronic device

    US20190021133A1