Communication device and method for controlling the same, and program

JP2024149577A5Active Publication Date: 2024-11-01CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024123750
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-01
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

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

Method used

A communication device with mechanisms to count time in connection setting mode, adjust thresholds, and determine operation stop based on user interactions and process completion, ensuring secure and timely transitions out of connection setting mode.

Benefits of technology

Enables secure and efficient control over connection setting mode operations, preventing prolonged exposure to potential security vulnerabilities and enhancing user convenience by allowing sufficient time for setting completion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To appropriately execute control for stopping an operation in a connection setting mode.SOLUTION: A communication device has: changing means that, when predetermined processing is completed during an operation in a connection setting mode, executes at least one of a change to decrease a counted value and a change to increase a predetermined threshold; and determination means that, based on the counted value and the predetermined threshold, determines whether to stop the operation in the connection setting mode.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 the connection setting mode. [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 connection setting mode for receiving setting information from an information processing device; a counting means for counting a value corresponding to a time from when the communication device starts operating in the connection setting mode; An execution means for executing a predetermined process that proceeds based on a user operation; a change means for executing at least one of a change to decrease the counted value and a change to increase a predetermined threshold value when the predetermined process is completed during operation in the connection setting mode; a determination means for determining whether or not to stop operation in the connection setting mode based on the counted value and the predetermined threshold value; 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 connection setting mode; having When at least one of a change to decrease the counted value and a change to increase the specified threshold value is executed by the change means, the judgment by the judgment means is performed based on the counted value and the specified threshold value after at least one of a change to decrease the counted value and a change to increase the specified threshold value has been executed. Effect of the Invention

[0008] According to the present invention, it is possible to appropriately execute control for stopping operation in the connection setting mode. [Brief description of the drawings]

[0009] [Figure 1] 1 is a diagram showing the configuration of an information processing device and a communication device included in a communication system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of an operation display unit of the communication device according to the present embodiment. [Diagram 3] 6 is a flowchart showing a process executed by the communication device of the present embodiment when the communication device receives a press of a power button. [Figure 4] 5 is a flowchart showing an initial setting process executed by the communication device of the present embodiment. [Diagram 5] 10 is a flowchart showing a process executed by the information processing apparatus of the present embodiment for causing a communication apparatus 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 is provided with an application (hereinafter, referred to as a print application) that provides a print execution function. The external storage device 106 also has 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. It 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 executing data communication. For example, the communication unit 109 can be connected to an access point (not shown) 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] <About connection setting mode> As described above, communication device 151 can operate in the connection setting mode. A trigger for communication device 151 to start operating in the connection setting mode may be, for example, a user pressing a connection setting mode button, or communication device 151 starting up (transitioning to a soft-on state). Note that the connection setting mode button may be a hardware button included in communication device 151, or may be a software button that communication device 151 displays on operation display unit 160.

[0050] When the communication device 151 starts operating in the connection setting mode, it enables Wi-Fi communication. Specifically, it operates the communication device 151 as an AP dedicated to the connection setting mode. As a result, the communication device 151 is in a state in which it can establish a direct connection with the information processing device 101 by Wi-Fi. It is assumed that the connection information (SSID, etc.) for connecting to the AP dedicated to the connection setting mode is held in advance in a setup program installed in the information processing device 101, and the information processing device 101 recognizes in advance the connection information for connecting to the soft AP dedicated to the connection setting mode. Therefore, unlike the connection information of the access point enabled in the direct connection mode, it is assumed that 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 it is assumed that 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. However, this is not limited to the above embodiment, and for example, a password for connecting to a soft AP dedicated to the connection setting mode may also be stored in advance in the setup program, and the password may be used to connect to a 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 the present embodiment, the condition for ending the operation in the connection setting mode is, for example, that the connection mode (direct connection mode or infrastructure connection mode) of the communication device 151 is set based on the setting information received from the information processing device 101. Also, the connection setting mode elapsed time exceeds a predetermined threshold (timeout time). The connection setting mode elapsed time is the time that has elapsed since the operation in the connection setting mode was started without the operation in the connection setting mode being ended. That is, the counting of the connection setting mode elapsed time is stopped when the operation in the connection setting mode is ended. The connection setting mode elapsed time is not limited to this form, and may be, for example, the time that has elapsed since the operation in the connection setting mode was 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 counting of the connection setting mode elapsed time may be stopped when the information processing device 101 and the communication device 151 are connected by the AP for the connection setting mode. Also, the connection setting mode elapsed time may be the time that has elapsed since the operation in the connection setting mode was started without the setting information transmitted from the information processing device 101 being received by the communication device 151. That is, the count of the connection setting mode elapsed time may be stopped when the communication device 151 receives the setting information transmitted from the information processing device 101. The reason why the timeout time is set is that the connection setting mode is a mode in which connection is possible without a password or with a password stored in advance in the setup program. That is, although the connection setting mode has the advantage of being easy to connect, it has low security, and if the connection setting mode is maintained for a long time, there is a high possibility that a connection unintended by the user of the communication device 151 will be established.

[0053] 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 to the completion of the initial setting process 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 is a problem that the time until the connection setting mode elapsed time exceeds the timeout time may be only a little after the initial setting process is completed.

[0054] Therefore, in this embodiment, in order to solve the above-mentioned problem, the timeout time of the connection setting mode is appropriately controlled. Specifically, in this embodiment, the timeout time is controlled according to the elapsed time of the connection setting mode at the timing when the initial setting process is completed. More specifically, in this embodiment, if the elapsed time of the connection setting mode at the timing when the initial setting process is completed is long, the timeout time is extended. 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 the communication device 151 is delayed.

[0055] <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.

[0056] 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.

[0057] 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.

[0058] <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.

[0059] 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.

[0060] 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 S324. 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.

[0061] 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 S324 or end the process of this flowchart depending on the user's response.

[0062] 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.

[0063] In S303, the CPU 154 starts the initial setting process. Note that the process from S304 onwards starts without waiting for the completion of the initial setting process, and is 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.

[0064] 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.

[0065] 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.

[0066] 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).

[0067] 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.

[0068] 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.

[0069] 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.

[0070] 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.

[0071] 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.

[0072] 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.

[0073] 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 reception of a user operation for setting the language used by the communication device 151 for display, reception of a user operation for answering a questionnaire about the environment in which the communication device 151 is used, registration adjustment, and the like. Also, the order in which each process included in the initial setting process is executed is not particularly limited.

[0074] 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.

[0075] 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).

[0076] 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.

[0077] 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.

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

[0079] 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.

[0080] 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.

[0081] 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 on operation display unit 160 a screen indicating that the connection setting mode has been started.

[0082] In S307, the CPU 154 starts timer measurement for measuring (counting) the time elapsed in the connection setting mode, and waits for the setting information to be transmitted from the information processing device 101. Note that 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 the setting information has been received from the information processing device 101.

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

[0084] 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.

[0085] 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.

[0086] 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.

[0087] On the other hand, if the determination in S312 is NO, the CPU 154 determines in S313 whether the time elapsed in the connection setting mode measured by the timer measurement exceeds the timeout time. In this embodiment, the timeout time before being changed by the timeout time change process described later is 60 minutes, but 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.

[0088] 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.

[0089] 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.

[0090] 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 S324. Note that the determination is YES when the initial setting process is completed without the connection setting mode 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 connection setting mode times out, or when the initial setting process is completed without operation in the connection setting mode being started (if the determination is YES in S317).

[0091] In S319, the CPU 154 judges whether the connection setting mode 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 connection setting mode is terminated due to a timeout is long or not. Specifically, the CPU 154 judges whether the value obtained by subtracting the connection setting mode elapsed time from the timeout time 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 connection setting mode elapsed time is larger than a certain threshold value or not. If this judgment is YES, the CPU 154 proceeds to S321 without changing the timeout time and the connection setting mode elapsed time, since there is a sufficient time left until the connection setting mode is terminated due to a timeout.

[0092] On the other hand, if the determination is NO, the remaining time until the connection setting mode is terminated due to a timeout is not very long. Therefore, the CPU 154 proceeds to S320 and executes a timeout time change process. Specifically, for example, this process is a process of changing the timeout time so that the value obtained by subtracting the connection setting mode elapsed time from the timeout time 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 is 60 minutes and the connection setting mode elapsed time is 50 minutes, the timeout time is changed to 65 minutes. Also, for example, this process may be a process of changing the timeout time to be longer than before the change, regardless of the connection setting mode elapsed time. At this time, for example, a value is added to the timeout time, but the added value may be a fixed value or a value that changes depending on the connection setting mode elapsed time. Also, this process may be a process that is controlled so that the remaining time until the connection setting mode is terminated due to a timeout is 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 connection setting mode elapsed time is changed so that the remaining time until the connection setting mode is terminated due to a timeout is increased. That is, for example, the connection setting mode elapsed time may be changed so that the value obtained by subtracting the connection setting mode elapsed time from the timeout time becomes a predetermined value. Specifically, in this embodiment, for example, if the timeout time is 60 minutes and the connection setting mode elapsed time is 50 minutes, the connection setting mode elapsed time is changed to 45 minutes. Also, for example, the connection setting mode elapsed time may be changed to be smaller than before the change, regardless of the timeout time. In this case, for example, a certain value is subtracted from the connection setting mode elapsed time, but the value subtracted at this time may be a fixed value or a value that changes depending on the connection setting mode elapsed time. Also, for example, the connection setting mode elapsed time may be reset (set to 0). Also, for example, a form in which both the timeout time and the connection setting mode elapsed time are changed may be used.Specifically, in this embodiment, for example, if the timeout time is 60 minutes and the connection setting mode elapsed time is 50 minutes, the connection setting mode elapsed time is reset and the timeout time is changed to 15 minutes. In this manner, in an embodiment in which both the timeout time and the connection setting mode elapsed time are changed, the timeout time may be changed to a value smaller than the value before the change. Then, the CPU 154 proceeds to S321.

[0093] In S324, 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 S325.

[0094] In S325, 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 S326.

[0095] In S326, 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.

[0096] In S327, 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 S321.

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

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

[0099] In S322, 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 S331, and if the determination is NO, the CPU 154 proceeds to S323.

[0100] In S323, the CPU 154 judges whether the time elapsed in the connection setting mode measured by the timer measurement exceeds the timeout time. At this time, if the timeout time has been changed in S320, this judgment is made based on the changed timeout time. If the judgment is YES, the CPU 154 proceeds to S331, and if the judgment is NO, the CPU 154 returns to S321.

[0101] Details of S331 and S332 are similar to those of S315 and S316. After S332, the CPU 154 ends the processing of this flowchart.

[0102] In this manner, in this embodiment, if the time remaining until the operation in the connection setting mode is completed after the completion of the initial setting process is short due to the time taken to complete the initial setting process (in the case of S319-NO), 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 allows the user to set the connection mode to the communication device 151 with plenty of time. Note that in this embodiment, for example, if the time remaining until the operation in the connection setting mode is completed after the completion of the initial setting process is long (in the case of S319-YES), the timeout time is not changed. Also, for example, if the connection setting mode is started without starting the initial setting process (in the case of S326 being executed after S302-NO), the timeout time is not changed. This prevents the connection setting mode from continuing unnecessarily long, and ensures security regarding the connection of the communication device 151.

[0103] 5 is a flowchart showing a process 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 control program related to the flowchart stored in the ROM 104 or an external storage device (not shown) into the RAM 105 and executing the control program.

[0104] First, in S501, the CPU 103 accepts a user's operation and starts up a wireless LAN setting application. The wireless LAN setting application is an application for setting a connection mode in the communication device 151. The wireless LAN setting application may have other functions, such as a function for transmitting a print job to the communication device 151 to execute printing. The wireless LAN setting application is a program stored in an internal storage device (not shown) of the information processing device 101, and is installed in advance in the information processing device 101 by the user. The following process for setting the connection mode is realized by the CPU 103 executing the wireless LAN setting application.

[0105] Here, an example will be described in which an AP to be used in the infrastructure connection mode is registered in the communication device 151 by a wireless LAN setting application, thereby setting the communication device 151 to the infrastructure connection mode. Note that the registration of the AP may be performed by using a service on the Internet via a web browser or other functions of the information processing device 101 and the communication device 151, without using the wireless LAN setting application. At this time, the CPU 103 temporarily stores in the RAM 105 the AP information of the AP to which the information processing device 101 is connected.

[0106] Next, in S502, 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 wireless LAN setting application 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.

[0107] In S503, CPU 103 causes operation display unit 108 to display a list of APs found by the AP search in S502 (AP search results). At this time, for example, CPU 103 causes a list of SSIDs of each AP to be displayed. Note that in S503, 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 S505 described below does not need to be performed.

[0108] When the APs are displayed in S503, the user selects from the search results the AP corresponding to the communication device for which the connection mode is to be set.

[0109] In S504, the CPU 103 detects that the selection of an AP by the user has been accepted.

[0110] In S505, the CPU 103 judges whether the AP selected in S504 is an AP corresponding to the communication device to be set by the wireless LAN setting application. At this time, specifically, the CPU 103 judges whether the selected AP is an AP having 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 may be configured to end the process.

[0111] In the above, 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 of S503 to S505 has been described, but the present invention is not limited to this. For example, the CPU 103 may automatically select an AP having an SSID in a format conforming to the above-mentioned rule from the APs searched for in S502 as the AP of the communication device for which the connection mode is to be set.

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

[0113] Next, in S506, CPU 103 transmits the AP information temporarily stored in RAM 105 in S501 as setting information to communication device 151 via the AP dedicated to the connection setting mode connected in S505. By receiving the AP information, communication device 151 is set to the infrastructure connection mode that allows connection via the AP based on the AP information.

[0114] Finally, in S507, CPU 103 terminates 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 S501, thereby enabling communication with communication device 151 via that AP. At this time, 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 terminates the wireless LAN setting application.

[0115] Note that the processing from S502 to S504 does not necessarily have to be performed by the wireless LAN setting application, but may instead be configured such that an AP dedicated to the connection setting mode is searched for by another application already installed on the information processing device 101, and the wireless LAN setting application obtains the results.

[0116] 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.

[0117] In the above description, the CPU 103 sets the communication device 151 to the infrastructure connection mode, but the present invention is not limited to this. For example, other connection modes such as WFD mode and soft AP mode may be set to the communication device 151. The connection mode to be set to the communication device 151 may be determined by accepting a user's selection via a screen displayed by a wireless LAN setting application, or may be automatically determined by the wireless LAN setting application based on the communication environment of the information processing device 101. For example, when the communication device 151 is set to the connection mode, 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 the communication device 151 is set to the connection mode, 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.

[0118] 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.

[0119] 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 before the change of the connection setting mode started under condition 1 is set to be longer than the timeout time of the connection setting mode started under other conditions. For example, the timeout time before the change of the connection setting mode started under condition 1 is set to 60 minutes, and the timeout time of the connection setting mode started under other conditions is set to 15 minutes. The timeout time may be the same regardless of the start condition of the operation in the connection setting mode. Also, in this embodiment, the timeout time of the connection setting mode started under condition 1 may be changed by the timeout time change process, but the timeout time of the connection setting mode started under other conditions is not changed. It is not necessary for the operation in the connection setting mode to be started 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 to operate communication device 151 in the connection setting mode depending on whether a USB cable or a 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 communication device 151 may always operate in the connection setting mode when a predetermined operation for starting the connection setting mode is executed.

[0120] (Other embodiments) The above-mentioned embodiment can also be realized by executing the following process. That is, software (programs) that realize the functions of the above-mentioned embodiment are 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. 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. The CPU is also not limited to one that performs all processes by one CPU, and multiple CPUs may perform processes in cooperation with each other as appropriate. [Explanation of symbols]

[0121] 101 Information processing device 151 Communication equipment

Claims

1. A communication device, comprising: a first starting means for starting the communication device in a connection setting 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 connection setting mode; An execution means for executing a predetermined process that proceeds based on a user operation; a control means for executing a first control to stop operation in the connection setting mode based on a state in which the communication device is operating in the connection setting mode and the predetermined process has not been completed, and based on a state in which a first time has elapsed since the communication device started operating in the connection setting mode without the connection setting being executed; a second starting means for causing the communication device to restart the operation in the connection setting mode based on completion of the predetermined process after the operation in the connection setting mode is stopped by execution of the first control; A communication device comprising:

2. A second control is executed to stop operation in the connection setting mode based on the fact that the communication device is operating in the connection setting mode and the specified processing has been completed, and based on the fact that a second time period longer than the first time period has elapsed since the communication device started operating in the connection setting mode without the connection setting being executed.

2. The communication device according to claim 1 .

3. A counting means for counting a value corresponding to a time since operation in the connection setting mode has been started in the communication device; and a determination unit that determines whether or not to stop the operation in the connection setting mode based on the counted value and a predetermined threshold value, the first control includes a process of determining whether or not to stop the operation in the connection setting mode based on the counted value and the predetermined threshold corresponding to the first time period; The communication device described in claim 2, characterized in that the second control includes a change process that includes at least one of a change to decrease the counted value and a change to increase the specified threshold value, and a process that determines whether to stop operation in the connection setting mode based on the counted value after the change process and the specified threshold value.

4. A communication device as described in claim 3, characterized in that in the change process, both the counted value and the specified threshold value are changed.

5. A communication device as described in claim 4, characterized in that in the change process, a change to reduce the counted value and a change to reduce the specified threshold are performed.

6. A communication device as described in any one of claims 2 to 5, characterized in that when the specified processing is completed during operation in the connection setting mode, whether to execute the first control or the second control is controlled based on the time that has elapsed since operation in the connection setting mode was started in the communication device.

7. When the predetermined process is completed during operation in the connection setting mode, and the time that has elapsed since the operation in the connection setting mode was started in the communication device is not greater than a certain threshold, the first control is executed, The communication device according to claim 6, characterized in that the second control is controlled to be executed when the specified processing is completed while operating in the connection setting mode and the time elapsed since the communication device started operating in the connection setting mode is greater than the specific threshold value.

8. A communication device as described in any one of claims 1 to 7, characterized in that the communication device starts operating in the connection setting mode based on the power button of the communication device being pressed without the specified processing having been completed in the communication device.

9. When a power button of the communication device is pressed in a state in which the predetermined process has not been completed in the communication device, and a USB (Universal Serial Bus) cable is not connected to the communication device, causing the communication device to start operating in the connection setting mode; The communication device according to claim 8, 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 connection setting mode.

10. A communication device as described in claim 8 or 9, characterized in that when operation in the connection setting mode is initiated based on conditions other than the power button of the communication device being pressed without the specified processing being completed in the communication device, a third control is executed to stop operation in the connection setting mode based on the passage of a third time different from the first time without the connection setting being executed since operation in the connection setting mode was initiated in the communication device.

11. The communication device described in Claim 10, characterized in that the other condition includes the power button of the communication device being pressed while the specified processing has been completed in the communication device.

12. A communication device as described in claim 10 or 11, characterized in that the other condition includes a predetermined operation being performed in the communication device to start operation in the connection setting mode, the operation being an operation other than pressing the power button.

13. A communication device as described in any one of claims 10 to 12, characterized in that the other condition includes completion of the specified processing after operation in the connection setting mode is stopped by executing the first control.

14. A communication device as described in any one of claims 1 to 13, characterized in that when connection setting of the communication device is executed, operation in the connection setting mode is stopped.

15. A communication device as described in any one of claims 1 to 14, characterized in that the specified processing is an initial setting processing for performing initial settings of the communication device.

16. The communication device according to claim 15, characterized in that the initial setting process includes a process of cleaning the configuration provided in the communication device.

17. A communication device as described in any one of claims 1 to 16, characterized in that the connection setting of the communication device includes a process of connecting the communication device to an access point outside the communication device and outside the information processing device.

18. A communication device as described in any one of claims 1 to 17, characterized in that the connection setting mode is a mode in which a predetermined access point of the communication device is enabled.

19. A printing means for executing printing; 19. The communication device according to claim 1, further comprising: a receiving means for receiving a print job from the information processing device after the connection setting of the communication device is completed; and The communication device according to claim 19, wherein printing is performed based on the print job.

21. A communication device as described in any one of claims 1 to 20, characterized in that even if the specified processing is completed after operation in the connection setting mode is stopped by executing the first control, if a USB cable is connected to the communication device, the communication device is not caused to restart operation in the connection setting mode.

22. A method for controlling a communication device, comprising: a first start step of causing the communication device to start an operation in a connection setting 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 connection setting mode; an execution step of executing a predetermined process that proceeds based on a user operation; a control step of executing a first control for stopping operation in the connection setting mode based on a state in which the communication device is operating in the connection setting mode and the predetermined process has not been completed, and based on a state in which a first time has elapsed since the communication device started operating in the connection setting mode without the connection setting being executed; a second start step of causing the communication device to restart the operation in the connection setting mode based on completion of the predetermined process after the operation in the connection setting mode is stopped by the execution of the first control; A control method comprising the steps of:

23. A computer of a communication device, a first start step of causing the communication device to start an operation in a connection setting 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 connection setting mode; an execution step of executing a predetermined process that proceeds based on a user operation; a control step of executing a first control for stopping operation in the connection setting mode based on a state in which the communication device is operating in the connection setting mode and the predetermined process has not been completed, and based on a state in which a first time has elapsed since the communication device started operating in the connection setting mode without the connection setting being executed; a second start step of causing the communication device to restart the operation in the connection setting mode based on completion of the predetermined process after the operation in the connection setting mode is stopped by the execution of the first control; A program characterized by executing the above.