Communication device, control method for communication device, and program
The communication device operates in appropriate modes to maintain functionality and enable firmware updates even during errors, addressing the challenge of external device specification changes and ensuring user convenience.
Patent Information
- Application Number
- JP2023069399
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
AI Technical Summary
Communication devices face challenges in operating appropriately when errors occur, such as changes in external device specifications, leading to potential unusability and the need for firmware updates, which existing technologies do not adequately address.
A communication device capable of operating in a first mode allowing predetermined communication and a second mode restricting communication, with automatic startup and firmware updates possible even in restricted modes, using Wi-Fi Easy Connect (WEC) for network setup and managing network settings to ensure functionality.
Enables the communication device to function with available functions even during errors, allowing firmware updates and preventing complete device unavailability, thus enhancing user convenience and reliability.
Smart Images

Figure 2024155033000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a technology relating to firmware updates. [Background technology]
[0002] Communication devices such as printers provide users with various services such as printing and scanning by communicating with external devices such as PCs (personal computers) or servers. These services are realized by the communication devices complying with standards established by the IT vendors that provide the PCs or servers.
[0003] Patent Document 1 discloses a technique in which, when a predetermined error occurs in an image forming device that communicates with an external device, the image forming device is restarted with the network port that communicates with the external device disabled. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2017-194833 A Summary of the Invention [Problem to be solved by the invention]
[0005] Incidentally, as communication devices capable of communicating with external devices become more widespread, there is a demand for technology that enables the communication devices to operate in an appropriate mode. [Means for solving the problem]
[0006] A communication device according to one aspect of the present disclosure is a communication device capable of operating in a first mode in which a specified communication with an external device can be performed, and operating in a second mode in which the specified communication is not performed, and is characterized in having a reception means for receiving a startup operation from a user to start up the communication device, a startup means for starting up the communication device in the first mode or the second mode based on the startup operation being accepted, and a communication means for automatically executing the specified communication without any user operation on the communication device after the startup operation is accepted based on the communication device being started in the first mode, but not executing the specified communication based on the communication device being started in the second mode. Effect of the Invention
[0007] According to the present disclosure, a communication device can be operated in an appropriate mode. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing an example of a communication system including an external device and a communication device. [Diagram 2] FIG. 11 is a sequence diagram showing an example of communication when transmitting log information. [Diagram 3] FIG. 11 is a sequence diagram illustrating an example of communication when a print process is executed. [Figure 4] 11 is a flowchart showing an example of a process at the time of startup. [Diagram 5] 11 is a flowchart showing an example of a process at the time of startup. [Figure 6] 10 is a flowchart illustrating a process when the communication device is operating in a restricted mode. [Figure 7] FIG. 11 is a diagram illustrating an example of a screen displayed on a display unit of the communication device. [Figure 8] FIG. 11 is a diagram illustrating an example of a screen displayed on a display unit of the communication device. [Figure 9] FIG. 11 is a diagram illustrating an example of a screen displayed on a display unit of the communication device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Preferred embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Note that the following embodiments do not limit the subject matter of the present disclosure, and not all combinations of features described in the following embodiments are necessarily essential to the solution of the present disclosure. Note that the same components will be described with the same reference numerals.
[0010] <<First embodiment>> In this embodiment, an example will be described in which a communication device can be used appropriately even when an error occurs. For example, an error may occur in the communication device due to a change in the operating specifications of an external device such as a PC or a server. In such a case, a problem may occur in which the communication device becomes unusable. Considering user convenience, it is preferable that even when an error occurs in the communication device, at least the minimum functions of the communication device can be used. In addition, when the error that occurs is a problem that should be solved on the communication device side, it is required to normally update the firmware of the communication device even under the circumstances in which the problem occurs.
[0011] In this embodiment, the convenience is improved when an unexpected problem occurs in the communication device. For example, even if an unexpected problem occurs in the communication device, the communication device can be operated in a state where some functions are available. Furthermore, even in a state where only some functions are available, the firmware of the communication device can be updated. This will be described in detail below.
[0012] <System configuration> The communication system in this embodiment includes an external device and a communication device. In this embodiment, a smartphone is described as an example of the external device, but is not limited to this. For example, various external devices such as a mobile terminal, a PC (personal computer), a tablet terminal, a server, a PDA (personal digital assistant), or a digital camera can be applied. That is, the external device may be any information processing device. In this embodiment, a printer is described as an example of the communication device, but is not limited to this, and various devices that can wirelessly communicate with the external device can be applied. For example, the printer can be applied to an inkjet printer, a full-color laser beam printer, or a monochrome printer. In addition, the communication device can be applied not only to a printer, but also to a copier, a facsimile machine, a mobile terminal, a smartphone, a notebook PC, a tablet terminal, a PDA, a digital camera, a music playback device, a television, or a smart speaker. In addition, the communication device can be applied to a multifunction device having multiple functions such as a copy function, a FAX function, and a print function. In this way, the communication device is also a type of information processing device.
[0013] In this embodiment, the information processing device can execute a function called Wi-Fi Easy Connect (hereinafter, WEC) (registered trademark) if the function is supported. WEC is a function that executes network setup of other devices using Device Provisioning Protocol (hereinafter, DPP) established by Wi-Fi Alliance. Specifically, the network setup of other devices is a process of connecting other devices to an access point that forms a network. In WEC, communication is performed between a device that operates in the role of "Configurator" (hereinafter, Configurator device) and a device that operates in the role of "Enrollee" (hereinafter, Enrollee device).
[0014] In this embodiment, the Configurator device is an Initiator in the DPP, and the Enrollee device is a Responder in the DPP. The Configurator device acquires Bootstrapping information from the Enrollee device. The Bootstrapping information includes, for example, the identification information (MAC address, etc.) of the Enrollee device, and public key information used for secure communication with the Enrollee device.
[0015] The Configurator device uses the acquired Bootstrapping information to perform wireless communication with the Enrollee device. Specifically, for example, the Configurator device communicates with the Enrollee device using a public key included in the Bootstrapping information. Furthermore, the Configurator device generates a common key based on the information acquired in the communication, and transmits information encrypted using the common key to the Enrollee device. The information transmitted here is, for example, connection information for connecting to an access point. The Enrollee device establishes a wireless connection with the access point using the connection information received from the Configurator device. In the network setup process using WEC in this embodiment, the following description will be given assuming that an information processing device compatible with WEC operates as a Configurator device, and a communication device compatible with WEC operates as an Enrollee device.
[0016] 1 is a block diagram showing an example of a communication system including an external device 101 and a communication device 151. In this embodiment, the following configuration is described as an example, but is not limited to the functions shown in FIG.
[0017] The external device 101 has an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, a communication unit 110, a short-range wireless communication unit 111, and an image capturing unit 112. In Fig. 1, the external device 101 is connected to a display unit 108 and a keyboard 109, but the external device 101 may have the display unit 108 and the keyboard 109. The CPU 103, the ROM 104, the RAM 105, etc. form a computer of the external device 101.
[0018] The input interface 102 is an interface for receiving data input and operation instructions from a user by operating an operation unit such as a keyboard 109. The operation unit may be a physical keyboard or physical buttons, or may be a soft keyboard or soft buttons displayed on the display unit 108. In other words, the input interface 102 may receive an input (operation) from the user via the display unit 108.
[0019] The CPU 103 is a system control unit, and controls the entire external device 101. The ROM 104 stores fixed data such as a control program executed by the CPU 103, a data table, or an embedded operating system (hereinafter, referred to as OS) program. 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.
[0020] The RAM 105 is composed of a static random access memory (SRAM) that requires a backup power source. The RAM 105 holds data using a primary battery (not shown) for data backup, so that important data such as program control variables can be stored without volatilization. The RAM 105 also includes a memory area for storing setting information and management data for the external device 101. The RAM 105 is also used as the main memory and work memory of the CPU 103.
[0021] The external storage device 106 stores an application program (hereinafter, referred to as a setting application) for executing network setup of the communication device 151, a print information generation program for generating print information that can be interpreted by the communication device 151, and the like. The setting application is an application program for setting an access point to which the communication device 151 is connected by a WEC or the like. The setting application may have functions other than the network setup function. For example, the setting application may have a function for causing the communication device 151 to execute printing, a function for causing a document set in the communication device 151 to be scanned, or a function for checking the status of the communication device 151. The setting application is stored in the external storage device 106 by being installed from an external server, for example, by Internet communication via the communication unit 110. The external storage device 106 also stores various programs, such as an information transmission / reception control program, transmitted / received between the communication device 151 connected via the communication unit 110, and various information used by these programs.
[0022] The output interface 107 is an interface that controls the display unit 108 to display data or notify the status of the external device 101. The display unit 108 is composed of an LED (light emitting diode) or an LCD (liquid crystal display) and the like, and displays data and notifies the status of the external device 101.
[0023] The communication unit 110 connects to a device such as the communication device 151 or the access point 131 to perform data communication. For example, the communication unit 110 can connect to an access point (not shown) in the communication device 151. By connecting the communication unit 110 to the access point (not shown) in the communication device 151, the external device 101 and the communication device 151 can communicate with each other. The communication unit 110 may directly communicate with the communication device 151 by wireless communication, or may communicate with the communication device 151 via an external device that exists outside the external device 101 or the communication device 151. The external device includes an external access point (such as the access point 131) that exists outside the external device 101 and outside the communication device 151, or a device that can relay communication other than an access point. In this embodiment, the wireless communication method used by the communication unit 110 is Wi-Fi (Wireless Fidelity) (registered trademark), which is a communication standard conforming to the IEEE802.11 series. The above-mentioned WEC is executed by communication by the communication unit 110. Examples of the access point 131 include devices such as a wireless LAN router. In this embodiment, a method in which the external device 101 and the communication device 151 are directly connected to each other without going through an external access point is called a direct connection method. Also, a method in which the external device 101 and the communication device 151 are connected to each other through an external access point is called an infrastructure connection method.
[0024] The short-range wireless communication unit 111 is configured to wirelessly connect to a device such as the communication device 151 at a short distance and execute data communication, and communicates by a communication method different from that of the communication unit 110. The short-range wireless communication unit 111 can be connected to a short-range wireless communication unit 157 in the communication device 151. Examples of the communication method include Near Field Communication (NFC), Bluetooth (registered trademark) Classic, Bluetooth Low Energy (BLE), and Wi-Fi Aware.
[0025] In this embodiment, the external device 101 executes the WEC using the OS of the external device 101 based on an instruction to execute a network setup process by the setting application.
[0026] Next, the configuration of the communication device 151 will be described. The communication device 151 has a ROM 152, a RAM 153, a CPU 154, a print engine 155, a scan engine 162, a communication unit 156, a short-range wireless communication unit 157, an input interface 158, and an output interface 160. In FIG. 1, an example in which the communication device 151 is connected to an operation unit 159 and a display unit 161 is shown, but the communication device 151 may have the operation unit 159 and the display unit 161. The ROM 152, the RAM 153, the CPU 154, etc. form a computer of the communication device 151.
[0027] The communication unit 156 has an access point for connecting to a device such as the external device 101 as an access point inside the communication device 151. The internal access point can be connected to the communication unit 110 of the external device 101. The communication unit 156 enables the internal access point, so that the communication device 151 operates as an access point. The communication unit 156 may wirelessly connect directly to the external device 101, or may wirelessly connect via the access point 131. In this embodiment, the wireless communication method used by the communication unit 156 is a communication standard conforming to the IEEE802.11 series. In the following description, Wi-Fi (Wireless Fidelity) (registered trademark) (Wi-Fi communication) is a communication standard conforming to the IEEE802.11 series. If the communication device 151 supports WEC, the above-mentioned WEC is executed by communication by the communication unit 156. Furthermore, the communication unit 156 may be provided with hardware that functions as an access point, or may operate as an access point using software for functioning as an access point.
[0028] The communication device 151 of this embodiment is capable of operating in infrastructure mode and P2P (Peer to Peer) mode (direct connection mode) as modes for performing communication using the communication unit 156.
[0029] The infrastructure mode is a mode in which the communication device 151 communicates with other devices such as the external device 101 via an external device (e.g., the access point 131) that forms a network. A connection with an external access point established by the communication device 151 operating in the infrastructure mode is called an infrastructure connection (hereinafter, infra connection). In this embodiment, in the infrastructure connection, the communication device 151 operates as a child station, and the external access point operates as a parent station. Note that in this embodiment, the parent station is a device that determines a communication channel to be used in the network to which the parent station belongs, and the child station is a device that does not determine a communication channel to be used in the network to which the child station belongs, but uses the communication channel determined by the parent station.
[0030] The P2P mode is a mode in which the communication device 151 directly communicates with other devices such as the external device 101 without going through an external device (e.g., the access point 131) that forms a network. In this embodiment, the P2P mode includes an AP mode in which the communication device 151 operates as an access point. The connection information (SSID and password) of the access point that is enabled in the communication device 151 in the AP mode can be arbitrarily set by the user. The P2P mode may include, for example, a WFD mode in which the communication device 151 communicates by Wi-Fi Direct (WFD). Which of a plurality of WFD-compatible devices operates as a parent station is determined, for example, according to a sequence called Group Owner Negotiation. The parent station may be determined without executing Group Owner Negotiation. A device that is a WFD-compatible device and plays the role of a parent station is called a Group Owner. A direct connection with another device established by the communication device 151 operating in the P2P mode is called a direct connection. In this embodiment, in a direct connection, the communication device 151 operates as a parent station, and the other device operates as a child station.
[0031] In the embodiment, the communication device 151 can operate in a network setup mode, which is a mode for executing network setup of the communication device 151, by accepting a predetermined operation from a user. When operating in the network setup mode, the communication device 151 operates as a setup access point that is valid during operation in the network setup mode by using the communication unit 156. The setup access point is an access point different from the access point that is enabled in the above-mentioned AP mode. The SSID of the setup access point includes a predetermined character string that can be recognized by the setting application of the external device 101. The setup access point is an access point that does not require a password for connection. The communication device 151 operating in the network setup mode uses a predetermined communication protocol (setup communication protocol) in communication with the external device 101 connected to the setup access point. Specifically, the setup communication protocol is, for example, Simple Network Management Protocol (SNMP) or Hypertext Transfer Protocol (HTTP). After starting operation in the network setup mode, when a predetermined time has elapsed, the communication device 151 stops operation in the network setup mode and disables the setup access point. This is because, since the setup access point is an access point that does not require a password as described above, if it is enabled for a long period of time, there is a high possibility that an inappropriate device may request connection. Note that the setup access point may be an access point that requires a password. In this case, the password used to connect to the setup access point is a fixed password (that cannot be changed by the user) that is known in advance by the setting application.
[0032] The short-range wireless communication unit 157 is a component for wirelessly connecting to a device such as the external device 101 at a short distance, and can be connected to, for example, the short-range wireless communication unit 111 in the external device 101. Examples of the communication method include NFC, Bluetooth Classic, BLE, and Wi-Fi Aware.
[0033] The RAM 153 is composed of an SRAM or the like that requires a backup power source. Since the RAM 153 holds data using a primary battery for data backup (not shown), important data such as program control variables can be stored without volatilization. The RAM 153 also has a memory area for storing setting information for the communication device 151 and management data for the communication device 151. The RAM 153 is also used as the main memory and work memory for the CPU 154, and stores a reception buffer for temporarily storing print information received from the external device 101, etc., and various types of information.
[0034] The ROM 152 stores fixed data such as a control program, a data table, and an OS program executed by the CPU 154. Firmware for the communication device 151, which will be described later, is also stored in the ROM 152. In this embodiment, each control program including the firmware stored in the ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of an embedded OS stored in the ROM 152.
[0035] The CPU 154 is a system control unit, and controls the entire communication device 151. The print engine 155 forms an image on a recording medium such as paper by applying a recording agent such as ink based on information stored in the RAM 153 or a print job received from the external device 101 or the like, and outputs the print result. In general, the amount of data of a print job transmitted from the external device 101 or the like is large, so that a communication method capable of high-speed communication is required to be used for communication of the print job. Therefore, the communication device 151 receives the print job via a communication unit 156 capable of communication at a higher speed than the short-range wireless communication unit 157.
[0036] The scan engine 162 reads image data and document data from a set document, etc., based on an input from the operation unit 159 or a scan job received from the external device 101, etc. The read data is stored in the RAM 153 as a scan result, or transmitted to the external device 101, etc. In general, the amount of scan result data transmitted from the communication device 151 to the external device 101, etc. is large, so that a communication method capable of high-speed communication is required for such communication. Therefore, the communication device 151 transmits the scan result via the communication unit 156, which is capable of high-speed communication than the short-range wireless communication unit 157.
[0037] Note that a memory such as an external HDD or an SD card may be attached to the communication device 151 as an optional device, and the information stored in the communication device 151 may be stored in the memory.
[0038] The input interface 158 is an interface for accepting data input and operation instructions from a user by operating an operation unit 159 such as a physical button. The operation unit may be a soft keyboard or soft buttons displayed on the display unit 161. That is, the input interface 158 may accept an input from the user via the display unit 161.
[0039] The output interface 160 is an interface that controls the display unit 161 to display data and notify the status of the communication device 151. The display unit 161 is composed of an LED (light emitting diode) or an LCD (liquid crystal display) and the like, and displays data and notifies the status of the communication device 151.
[0040] <Example of communication between the communication device 151 and the external device 101> 2 is a sequence diagram showing an example of communication when log information is transmitted between the communication device 151 and the external device 101. In the example of FIG. 2, the external device 101 operates as a server for collecting log information, and the communication device 151 transmits a user's usage status and an operation status of the communication device 151 to the external device 101 as log information. The log information is stored in the RAM 153 of the communication device 151. The log information is transmitted to the external device 101 operating as a server for collecting the log information, and the log information is used for analysis for improving the specifications of the communication device 151, etc.
[0041] The processing of the communication device 151 in the sequence shown in Fig. 2 is realized by the CPU 154 of the communication device 151 reading a program stored in the ROM 152 into the RAM 153, and the CPU 154 executing the program. The processing of the external device 101 in the sequence shown in Fig. 2 is realized by the CPU 103 of the external device 101 reading a program stored in the ROM 104 into the RAM 105, and the CPU 103 executing the program. The symbol "S" in the explanation of each process means a step in the sequence diagram (the same applies to sequence diagrams and flow charts in the following specification). The sequence shown in Fig. 2 is executed periodically or irregularly at a predetermined timing.
[0042] In S200, the communication device 151 checks whether it is time to transmit log information. The timing for transmitting log information is, for example, when the communication device 151 is powered on. When the communication device 151 determines that it is time to transmit log information, it automatically transmits an authentication ID acquisition request to the external device 101 in S201 regardless of whether a user operation has been performed. In this embodiment, the request for acquiring the authentication ID is transmitted using HTTP communication, and the authentication ID refers to Cookie information. The authentication ID is used for identifying a unique communication device 151 on the external device 101 side in an environment in which a plurality of communication devices 151 and the external device 101 are connected, for example. Therefore, in response to the request for acquiring the authentication ID, the external device 101 generates an authentication ID in S202 so that the authentication ID is a unique value for each communication device 151. When the external device 101 generates the authentication ID, it transmits the authentication ID to the communication device 151 in S203.
[0043] In S203, when the communication device 151 receives the authentication ID from the external device 101, the communication device 151 stores the authentication ID in the RAM 153 of the communication device 151. Then, in S204, the communication device 151 transmits log information to the external device 101. When transmitting the log information, the communication device 151 transmits data in which the authentication ID has been added to the log information to the external device 101. When the external device 101 has normally received the log information, in S205, the external device 101 transmits information indicating that the log information has been normally received to the communication device 151.
[0044] Next, a case where an error occurs in the communication device 151 will be described. In FIG. 2, for example, when the external device 101 transmits an authentication ID to the communication device 151 in S203, a case where the authentication ID transmitted exceeds a specified size is considered. The communication device 151 reserves an area of the upper limit size specified for the authentication ID in advance in order to store the authentication ID in the RAM 153. However, there is a case where an authentication ID exceeding the specified size is transmitted from the external device 101 to the communication device 151. In this case, if the authentication ID is stored by mistake exceeding the reserved area, the operation of the communication device 151 may become unstable or the communication device 151 may shut down. In this case, in this embodiment, the communication device 151 automatically starts acquiring the authentication ID just by the user turning on the power of the communication device 151, and therefore the communication device 151 may easily shut down.
[0045] In this embodiment, the timing of transmitting the log information is the timing when the communication device 151 is turned on, but this is not limited to the timing. For example, the timing may be when a certain time has elapsed since the previous transmission of the log information, or after the operation of each service such as printing is completed.
[0046] 3 is a sequence diagram showing an example of communication when a print process is executed between the communication device 151 and the external device 101. In the example of FIG. 3, the external device 101 operates as a server capable of registering a print job, and the communication device 151 can execute printing by receiving a print job from the external device 101. Note that the external device 101 shown in FIG. 2 and the external device 101 shown in FIG. 3 may be the same device or different devices. Furthermore, the registration of a print job in the external device 101 is performed by a device (not shown) different from the external device 101 operating as a PC. The sequence shown in FIG. 3 is started when the power of the communication device 151 is turned on.
[0047] In S300, the communication device 151 detects that the power of the communication device 151 has been turned on. When the power is turned on, the communication device 151 checks communication with the external device 101 in which a print job is registered. That is, the communication device 151 checks communication with the external device 101 in S301 as a preparation for checking whether a print job is registered. In this communication check, the communication device 151 transmits a request to a URL (Uniform Resource Locator) for accessing the external device 101, and checks whether a normal response is returned. This URL is a value defined by the external device 101. In S301, the communication device 151 executes the communication check with the external device 101, and if communication is normal, in S302, the external device 101 transmits a response indicating that communication is normal to the communication device 151.
[0048] When the communication device 151 has normally confirmed communication with the external device 101, in S303 the communication device 151 confirms whether a print job has been registered with the external device 101. The communication device 151 may automatically check whether a print job has been registered after confirming communication with the external device 101, or may check in response to some user operation. When a print job has been registered in the external device 101, in S304 the external device 101 transmits information to the communication device 151 indicating that a registered print job exists.
[0049] If it is confirmed in S304 that a registered print job exists, the communication device 151 transmits a request to transmit a print job (print data) to the external device 101 in S305. The external device 101 receives the request to transmit a print job from the communication device 151, and if the request is in a state in which transmission is possible without any problems, the external device 101 transmits information indicating that transmission is possible in S306. Thereafter, in S307, the external device 101 transmits a print job to the communication device 151. The print job includes not only data for printing, but also print setting information such as paper information, quality, single-sided or double-sided, or paper feed port. If the communication device 151 has normally received the print job, it transmits information indicating that reception was successful to the external device 101 in S308, and executes print processing.
[0050] Next, a case where an error occurs in the communication device 151 will be described. In S301 and S302 of FIG. 3, a case where a communication check is performed between the communication device 151 and the external device 101 will be taken as an example. In S301, the communication device 151 transmits a request to a URL specified by the external device 101. Here, for example, if the URL of the request destination has been changed due to a change in the operation specifications of the external device 101, the external device 101 transmits the URL of the new request destination to the communication device 151 in S302. The communication device 151 reserves an area in advance to store the received URL of the new request destination in the RAM 153. At this time, if the transmitted new URL has a value exceeding the prescribed size, and the communication device 151 stores the URL beyond the area size reserved in the RAM 153, memory corruption occurs. If memory corruption occurs, the operation of the communication device 151 may become unstable or the communication device 151 may be shut down. In this case, in this embodiment, when the user simply turns on the power of the communication device 151, the communication device 151 automatically checks the communication with the external device 101, and therefore the communication device 151 easily shuts down.
[0051] The following describes a process for enabling the communication device to be appropriately used even in the case where an error occurs, as described with reference to the examples of FIGS.
[0052] <Startup Flowchart> 4 and 5 are flowcharts showing an example of processing at the time of startup executed in communication device 151 of this embodiment. As described above, the flowcharts shown in Fig. 4 and 5 are realized by CPU 154 of communication device 151 reading a program stored in ROM 152 into RAM 153 and executing the program by CPU 154. Fig. 4 is executed when the power supply of communication device 151 is turned on by a user.
[0053] S400 is a process at the start of this flowchart. That is, in S400, CPU 154 detects that a startup operation for starting communication device 151 has been performed by the user on communication device 151. In S401, CPU 154 determines whether the startup operation performed by the user in S400 is an operation that triggers startup in normal mode. Here, normal mode is a mode in which all functions of communication device 151 are available. In other words, normal mode is a mode in which no functions are restricted. Modes other than normal mode include, for example, a restricted mode in which some functions of communication device 151 are restricted and operated, and an inspection mode used only at the production base of communication device 151.
[0054] If it is determined in S401 that the operation is not a trigger for starting up in the normal mode, the CPU 154 proceeds to S402. In S402, the process of Fig. 5, which will be described later, is performed. Thereafter, the CPU 154 ends the process of the flowchart shown in Fig. 4. On the other hand, if it is determined in S401 that the operation is a trigger for starting up in the normal mode, the CPU 154 proceeds to S403.
[0055] In S403, the CPU 154 starts startup processing in the normal mode. The startup processing in the normal mode is, for example, initialization processing of variables and areas in the software control of the communication device 151, and initialization processing related to hardware such as the print engine 155 of the communication device 151. In other words, it is processing necessary for the communication device 151 to operate normally.
[0056] In S404, the CPU 154 starts the network communication process of the communication device 151 based on the network setting set by the user. The network setting is, for example, an enable setting indicating whether to make a wireless infrastructure connection with the access point 131, or an enable setting indicating whether to make a P2P connection with the external device 101. When the communication device 151 is to make a wireless infrastructure connection with the access point 131, the SSID and password of the access point 131 to be connected must be set by the user. The SSID and password of the access point 131 to which the wireless infrastructure connection has been made once are stored inside the communication device 151. When making a wireless infrastructure connection to the access point 131 for the first time, the SSID and password are set by the user, and these SSID and password are stored inside the communication device 151.
[0057] For example, if the wireless infrastructure connection is enabled, in S404, CPU 154 searches for an access point with an SSID stored internally in the vicinity. On the other hand, if the wireless infrastructure connection is set to wireless, CPU 154 does not search for an access point with an SSID stored internally in S404. Also, if the wireless P2P connection is enabled, CPU 154 operates communication device 151 as a master station (i.e., an access point) in S404 and broadcasts Beacon information and the like to the vicinity. On the other hand, if the wireless P2P connection is disabled, communication device 151 does not operate as a master station.
[0058] When the processes required for starting up communication device 151 in S403 and S404 are completed, in S405 CPU 154 displays a menu screen on display unit 161. This enables the user to issue operational instructions to communication device 151 via operation unit 159. Details of the menu screen will be described later with reference to FIG. 7.
[0059] After displaying the menu screen on the display unit 161 in S405, the CPU 154 in S406 checks whether the network setting allows communication with an external server, regardless of whether or not the user operates the communication device 151 after the communication device 151 is started. In other words, the CPU 154 automatically checks whether or not the network setting allows communication with an external server, even without a user operation on the communication device 151 after the communication device 151 is started. The network setting allowing communication with an external server refers to a setting that allows infrastructure connection to the access point 131. If the CPU 154 determines in S406 that the network setting allows communication with the external server, the CPU 154 communicates with the external server in S407. In this embodiment, the communication with the external server executed in S407 includes, for example, the communication with the external device 101 described in FIG. 2 or FIG. 3. Note that the communication with the external server executed in S407 may be only a part of the communication with the external device 101 described in FIG. 2 or FIG. 3, rather than all of the communication. Specifically, for example, with respect to the communication described in FIG. 2, only S201 and S202 may be executed in S407, and S204 and S205 may be executed in another timing. Note that S201 and S202 may also be executed again in the other timing. For example, with respect to the communication described in FIG. 3, only S301 and S302 may be executed in S407, and S303 to S308 may be executed in the other timing. Note that S301 and S302 may also be executed again in the other timing. In addition, the communication with the external server executed in S407 may be a communication other than the communication with the external device 101 described in FIG. 2 or FIG. 3. In addition, the communication executed in S407 may be a communication with the external device 101 other than the external server, instead of the communication with the external server, or may be a communication with another device. The processing order of S405 and S406 may be reversed, or the processes may be performed simultaneously in parallel.
[0060] Next, the process of S402, i.e., the process when an operation that triggers activation in a mode other than the communication mode is performed, will be described with reference to Fig. 5. In Fig. 5, the operation flow when the communication device 151 is activated in the restricted mode will be mainly described.
[0061] In S501, the CPU 154 determines whether the startup operation performed by the user in S400 is an operation that triggers startup in the restricted mode. In this embodiment, the restricted mode refers to a mode in which the network communication function of the communication device 151 is restricted, but functions other than the network communication function may be restricted. Specifically, the network communication function restricted here is a communication function based on the IEEE802.11 series or a communication function based on a wired LAN. In this embodiment, the network communication function is restricted in the restricted mode, so that the communication device 151 operating in the restricted mode cannot receive a print job from the outside via the network and execute printing based on the print job. However, for example, the communication device 151 operating in the restricted mode can execute printing based on a print job that the communication device 151 has saved in advance, and printing based on image data saved in an external memory attached to the communication device 151. The operation that triggers startup in the restricted mode is a user operation that is different from the operation that triggers startup in the normal mode described in FIG. 4. For example, an operation that triggers startup in the normal mode is an operation in which the user presses a power button (not shown) arranged on the operation unit 159 of the communication device 151, and then releases an operator such as a finger from the power button. An operation that triggers startup in the restricted mode is, for example, the following operation. That is, after continuously pressing the power button for a predetermined time or more, a predetermined physical button (not shown) other than the power button or a predetermined area on the display unit 161 is pressed while the power button is still pressed, and then the operator is released from the power button. Of course, this is only an example, and other operations may be used. In addition, the operation that triggers startup in the restricted mode in the communication device 151 having a predetermined physical button may differ from the operation that triggers startup in the restricted mode in the communication device 151 not having a predetermined physical button.
[0062] If it is determined in S501 that the operation is not a trigger for starting in the restricted mode, the CPU 154 proceeds to S502. In S502, the CPU 154 starts a start-up process in a mode other than the restricted mode. That is, in S502, a start-up process in a mode other than the normal mode or the restricted mode (e.g., the inspection mode) is started. Next, in S503, the CPU 154 displays a menu screen on the display unit 161. Then, the CPU 154 ends the process shown in Fig. 5. Note that, in the case where the communication device 151 does not have any modes other than the normal mode and the restricted mode, this determination may be omitted in this flowchart and the process may start from S504.
[0063] On the other hand, if it is determined in S501 that the operation is a trigger for starting in the restricted mode, the CPU 154 proceeds to S504. In S504, the CPU 154 starts a start-up process for operating the communication device 151 in the restricted mode. In this embodiment, the restricted mode is a mode in which only network communication is restricted. For this reason, the start-up process in the restricted mode in S504 is the same as the start-up process in the normal mode in S403 of FIG. 4. However, this is not limited thereto, and for example, if the scanner function of the communication device 151 is restricted in the restricted mode, the initialization process for the scan engine 162 may not be performed in the start-up process in the restricted mode in S504. In other words, a start-up process different from the start-up process in the normal mode may be performed in S504.
[0064] After starting the startup process in the restricted mode in S504, the CPU 154 saves the network settings of the communication device 151 set by the user in a non-volatile memory (for example, the ROM 152, etc.) in S505. Here, the network settings refer to the enable / disable setting of the infrastructure connection and the enable / disable setting of the P2P connection. The enable / disable setting is a setting indicating whether it is enabled or disabled. The enable / disable setting of the infrastructure connection includes the enable / disable setting of the wireless infrastructure connection and the enable / disable setting of the wired infrastructure connection. The P2P connection is a wireless P2P connection. The enable / disable setting of the wireless infrastructure connection is, in other words, the enable / disable setting of the infrastructure mode. The enable / disable setting of the P2P connection is, in other words, the enable / disable setting of the direct connection mode. In S505, these current network settings are saved in the non-volatile memory. For example, a network setting such as the infrastructure connection being enabled and the P2P connection being disabled is saved in the non-volatile memory. As described above, the setting values required for network connection, such as SSID, password, or DNS, are set once and then stored in the non-volatile memory. The network setting stored in S504 is the enable / disable setting for each network connection. The network setting value stored in S504 is also called the first setting value (first value).
[0065] Next, in S506, the CPU 154 automatically changes the network setting to an invalid setting in order to restrict the network communication of the communication device 151. That is, the network setting that has already been set to an invalid setting is not changed, and the valid network setting is changed to an invalid setting. In the restricted mode of this embodiment, since only the network setting is invalidated, it is possible to communicate with the external device 101 by a connection method other than network communication such as USB (Universal Serial Bus). The setting value of the network setting that is invalidated in S506 and is changed from the first setting value is also referred to as a second setting value (second value). In addition, it is assumed that the communication device 151 has ended the operation in the restricted mode by turning off the power of the communication device 151, for example, after the communication device 151 has ended the operation in the restricted mode in this way, and that the communication device 151 has started up in the normal mode again by performing an operation on the communication device 151 to start up in the normal mode. In this case, the setting value of the network setting of the communication device 151 is changed again from the second setting value set in S506 to the first setting value saved in S505.
[0066] Next, in S507, CPU 154 displays a confirmation screen on display unit 161. In S506, communication device 151 automatically changes the network setting to an invalid setting. Therefore, in S507, a process is performed to display a confirmation screen on display unit 161 to confirm to the user whether communication device 151 is allowed to operate in the restricted mode. That is, a process is performed to display a confirmation screen on display unit 161 to ask whether communication device 151 is to be started in a state in which network communication is restricted. This confirmation screen is displayed assuming a case in which the user wishes communication device 151 to operate in the normal mode, but has mistakenly performed an operation to operate communication device 151 in the restricted mode. Details of the confirmation screen will be described later with reference to FIG. 9.
[0067] Next, in S508, the CPU 154 determines the operation selected by the user on the confirmation screen displayed in S507. That is, the CPU 154 determines whether the user has selected to start the communication device 151 in a network-restricted state. In other words, the CPU 154 determines whether the user has selected to operate the communication device 151 in a restricted mode. If it is determined that the user has not selected to start the communication device 151 in a network-restricted state, the CPU 154 proceeds to S509. In S509, the CPU 154 performs control to prevent the communication device 151 from operating in the restricted mode. Specifically, the CPU 154 performs processing to turn off the power of the communication device 151. That is, since the user has mistakenly performed an operation to operate the communication device 151 in the restricted mode, processing to turn off the power of the communication device 151 is performed. At this time, processing to turn off the power may be performed after displaying a notice for starting the communication device in the normal mode on the display unit 161. 4 is performed again, and if a user operation for starting up in the normal mode is performed at this time, the process proceeds to S403 and thereafter, and starting up in the normal mode is performed. Note that in S509, starting up in the normal mode may be performed without turning off the power of the communication device 151.
[0068] On the other hand, if it is determined that the user has selected to start communication device 151 in a network-restricted state, CPU 154 proceeds to S510. In S510, CPU 154 displays a menu screen on display unit 161. Details of this menu screen will be described later with reference to FIG. 7. CPU 154 then ends the processing of the flowchart shown in FIG. 5 (i.e., the processing of the flowchart in FIG. 4). Note that in this state, since the startup processing in the restricted mode has been completed, communication device 151 is operating in the restricted mode. During operation in the restricted mode, although some functions are restricted, communication device 151 can perform various operations using unrestricted functions.
[0069] <Flowchart when operating in restricted mode> Fig. 6 is a flowchart showing a process when communication device 151 is operating in the restricted mode. An operation flow when a setting change operation or a firmware update operation by a user is received while communication device 151 is operating in the restricted mode will be described with reference to Fig. 6.
[0070] First, as a premise, communication device 151 operates in the restricted mode as shown in S600. Specifically, in this embodiment, S600 corresponds to a state at a timing after operation in the restricted mode is started in S504 described in FIG. 5 and a menu screen is displayed on display unit 161 in S510. Since the menu screen is displayed on display unit 161, communication device 151 is in a state in which it can accept an operation from the user. In S601, CPU 154 accepts an operation instruction from the user. The operation instruction is accepted via operation unit 159 of communication device 151. From S602 onwards, different processes are performed depending on the contents of the operation instruction.
[0071] In S602, CPU 154 determines whether the operational instruction is an operational instruction for turning off communication device 151. If the user has performed an operation for turning off communication device 151, CPU 154 proceeds to S603. In S603, CPU 154 performs processing for turning off communication device 151. In response to this power-off processing, operation in the restricted mode also ends. Then, CPU 154 ends the processing of the flowchart in FIG. 6. If it is determined that the operational instruction is not an operation for turning off communication device 151, CPU 154 proceeds to S604.
[0072] In S604, the CPU 154 determines whether the operation instruction is an operation instruction for updating the firmware of the communication device 151. Details of the screen display for updating the firmware will be described later with reference to FIG. 8 and FIG. 9. When the operation instruction for updating the firmware of the communication device 151 by the user is accepted, the CPU 154 proceeds to S605. In S605, the CPU 154 shifts the communication device 151 to a firmware update mode. The firmware update mode is a mode in which network communication is performed with an external server in which the latest firmware is managed in order to update the firmware of the communication device 151, and a printing operation using the print engine 155 is not available. More specifically, in the firmware update mode, the network communication is merely communication with the external server in which the latest firmware is managed, and processing such as transmission of log information shown in FIG. 2 and transmission of communication confirmation shown in FIG. 3 is not performed. In other words, the firmware update mode can be said to be a mode performed only for updating the firmware.
[0073] When the communication device 151 is operating in the normal mode and receives an operation instruction for firmware update, the communication device 151 compares the current firmware version with the latest firmware version stored in the external server. Then, only when there is a difference between the versions, the CPU 154 shifts the communication device 151 to the firmware update mode. On the other hand, as described in the process of FIG. 6, when the communication device 151 is operating in the restricted mode and receives an operation instruction for firmware update, as described above, the network setting of the communication device 151 is set to indicate invalidity. Therefore, in S605, the CPU 154 shifts the communication device 151 to the firmware update mode without comparing the firmware versions. That is, in this embodiment, the CPU 154 can execute display of the screen for updating the firmware shown in FIG. 8(c) both when the communication device 151 is operating in the normal mode and when the communication device 151 is operating in the restricted mode. However, the CPU 154 controls the process executed when an operation instruction for firmware update is received so that it is partially different between when the communication device 151 is operating in the normal mode and when the communication device 151 is operating in the restricted mode. That is, the process executed when an operation instruction for firmware update is received while operating in the normal mode is partially different from the process executed when an operation instruction for firmware update is received while operating in the restricted mode. Note that the external server that manages the latest firmware and is the communication partner of the communication device 151 for firmware update is a different device from the communication partner in the process shown in FIG. 2 or FIG. 3, but may be the same device.
[0074] Here, when the mode is shifted to the firmware update mode in S605, the network setting of the communication device 151, which had been operating in the restricted mode until that time, remains set to the setting indicating invalid. Therefore, at this point, the communication device 151 is in a state in which network communication is not possible. Therefore, in S606, the CPU 154 changes the network setting of the communication device 151 so that the communication device 151 operates according to the past network setting (first setting value) stored in the non-volatile memory in S505 of FIG. 5. That is, the network setting is changed to the network setting stored in the non-volatile memory. That is, the network setting (e.g., the enable / disable setting of the wireless infrastructure connection) that was changed in S506 from the setting indicating valid to the setting indicating invalid is changed from invalid to valid. Next, in S606, the CPU 154 performs network communication with an external server that manages the latest firmware. Specifically, the CPU 154 acquires the latest firmware from the external server, and updates the firmware of the communication device 151 based on the acquired information. Then, the CPU 154 ends the process shown in FIG. 6. When the firmware is updated, the communication device 151 is restarted. That is, the communication device 151 is powered off once and then automatically starts up again. When restarting, the communication device 151 starts up in the same mode as the mode of the communication device 151 when the operation instruction for firmware update was received, out of the normal mode and the limited mode. However, the present invention is not limited to this mode, and when restarting, the communication device 151 may always start up in the normal mode.
[0075] If the CPU 154 determines in S604 that the operational instruction is not an operational instruction for updating the firmware of the communication device 151, the process proceeds to S607.
[0076] In S607, the CPU 154 judges whether the operation instruction is an operation instruction for changing the network settings of the communication device 151. If it is judged that the operation instruction by the user operation is not an instruction for changing the network settings, the CPU 154 proceeds to S608. In S608, the CPU 154 operates the communication device 151 based on the operation instructed by the user. Then, the CPU 154 returns to S601 and continues the processing shown in FIG. 6. On the other hand, if it is judged that the operation instruction by the user operation is an instruction for changing the network settings, the CPU 154 proceeds to S609. In S609, the CPU 154 displays a screen on the display unit 161 indicating that the setting cannot be changed because the use of the network is restricted. Details of this screen will be described later with reference to FIG. 8. Then, the CPU 154 returns to S601 and continues the processing of FIG. 6.
[0077] <Display screen> 7, 8, and 9 are diagrams showing examples of screens displayed on the display unit 161 of the communication device 151. In this embodiment, the display unit 161 is assumed to be a touch panel.
[0078] FIG. 7(a) shows a menu screen 700 that is displayed first when the communication device 151 is powered on and started normally. The menu screen 700 is also called a home screen. Note that a logo screen or the like may be displayed before the menu screen 700 of FIG. 7(a) is displayed. FIG. 7(a) shows an example of the first screen that can accept an operation instruction from a user. In this embodiment, when the communication device 151 is started in the normal mode in FIG. 4, the menu screen 700 is displayed in S405. Also, the menu screen displayed in S510 of FIG. 5 similarly displays the menu screen 700. That is, in this embodiment, the menu screen displayed when started in the normal mode and the menu screen displayed when started in the restricted mode are the same screen. Also, the sub-menu screen or the setting screen displayed hierarchically from the menu screen 700 are basically the same screen in the normal mode and the restricted mode. However, as described later, in the screen in which the function is restricted, a screen different from that in the normal mode is displayed in the restricted mode. Note that the menu screen displayed when started in the normal mode and the menu screen displayed when started in the restricted mode may be different. Specifically, for example, the menu screen displayed when started in the restricted mode may display an icon or a message to inform the user that the device is operating in the restricted mode. Also, the menu screen displayed in S503 in a mode other than the normal mode or the restricted mode (e.g., the inspection mode) may be the menu screen 700 or another screen not shown.
[0079] The menu screen 700 has an area where functions (e.g., copy, scan, and print) of the communication device 151 can be selected. When one of these functions is selected, the communication device 151 performs a process for executing the corresponding function or displays a screen for setting the corresponding function.
[0080] Areas 701 and 702 are displayed on the menu screen 700. Area 701 is an area that displays whether infrastructure connection or P2P connection is valid with an icon based on the network settings of communication device 151. In S405 of FIG. 4 and S503 of FIG. 5, communication device 151 operates in a mode that is not the restricted mode (for example, normal mode). For this reason, the icon displayed in area 701 may be an icon indicating a valid setting or an icon indicating an invalid setting. On the other hand, in S510 of FIG. 5, communication device 151 operates in the restricted mode. For this reason, the icon displayed in area 701 is an icon indicating an invalid setting. In area 702, icons for changing the settings of communication device 151 are displayed.
[0081] When it is detected that the area 702 of the menu screen 700 is pressed by the user, the communication device 151 displays a display screen 703 of FIG. 7(b). The display screen 703 displays items whose settings can be changed in the communication device 151. The area 704 displays a message for changing the network settings of the communication device 151. The area 705 displays a message for updating the firmware of the communication device 151. When it is detected that the area 704 is pressed by the user, the communication device 151 displays a display screen 800 of FIG. 8(a). The display screen 800 is a screen for setting the communication of the communication device 151, and the setting of the communication of the communication device 151 includes the setting of the communication based on the IEEE802.11 series and the setting of the communication based on the wired LAN. The display screen 800 displays an area 801, an area 802, and an area 803. In the area 801, a message for changing the settings of the wireless infrastructure connection of the communication device 151 is displayed. In the area 802, a message for changing the settings of the wireless P2P connection of the communication device 151 is displayed. In the area 803, a message for changing the settings of the wired infrastructure connection of the communication device 151 is displayed. Here, when it is detected that the area 801 is pressed by the user, the communication device 151 can change the enable / disable setting of the wireless infrastructure connection and the enable / disable setting of the communication protocol used for network communication in the wireless infrastructure connection. That is, it is possible to display a screen (not shown) for changing these network settings. However, in this embodiment, these network settings can be changed when the communication device 151 is operating in the normal mode. When it is detected that the area 801 is pressed by the user while the communication device 151 is operating in the restricted mode, the communication device 151 displays a screen different from that in the normal mode. That is, instead of the screen for changing the network settings described above, the display screen 810 shown in FIG. 8(b) is displayed. A message indicating that operations are restricted is displayed on the display screen 810. In other words, a message indicating that the network settings cannot be changed is displayed.When a certain time has elapsed while the display screen 810 is displayed, the display screen 800 of FIG. 8(a) is displayed again. Alternatively, when it is detected that the display screen 810 is pressed by the user or an OK button (not shown) is pressed, the display of the display unit 161 may be switched from the display screen 810 of FIG. 8(b) to the display screen 800 of FIG. 8(a). Note that this is not limited to the above-mentioned form, and for example, while the communication device 151 is operating in the restricted mode, the areas 801, 802, and 803 may be grayed out. As a result, even if the areas 801, 802, and 803 are pressed, a process based on the pressing may not be executed. Also, for example, while the communication device 151 is operating in the restricted mode, when the area 704 is pressed, the display screen 810 may be displayed without displaying the display screen 800. Also, for example, while the communication device 151 is operating in the restricted mode, the area 704 may be grayed out, so that even if the area 704 is pressed, no processing based on the pressing is executed.
[0082] When it is detected that the area 705 displayed on the display screen 703 in FIG. 7(b) is pressed by the user, the communication device 151 displays the display screen 820 in FIG. 8(c). The display screen 820 displays areas 821, 822, and 823. The area 821 displays a message indicating that the firmware of the communication device 151 will be updated. When it is detected that the area 821 is pressed by the user, the communication device 151 starts communication with an external server in which the firmware is stored if the communication device 151 is operating in normal mode. Specifically, the communication device 151 acquires information indicating the latest firmware version managed in the external server through the communication. Then, the communication device 151 compares the firmware version of the communication device 151 with the latest firmware version managed in the external server based on the acquired information. Then, when it is determined by the comparison that there is a difference between the versions, the communication device 151 transitions the communication device 151 to a firmware update mode. If the comparison identifies that the versions are the same, communication device 151 displays display screen 900 in Fig. 9(a) without transitioning to the firmware update mode. On the other hand, if communication device 151 detects that area 821 has been pressed by the user while operating in the restricted mode, communication device 151 does not execute communication to obtain information regarding the latest firmware version managed in the external server. Then, communication device 151 forcibly transitions to the firmware update mode without comparing the firmware version of communication device 151 with the latest firmware version managed in the external server.
[0083] In the area 822, the communication device 151 can set a proxy server when updating firmware. When the communication device 151 detects that the area 822 is pressed by the user, the communication device 151 transitions to a proxy server setting screen if it is operating in normal mode. On the other hand, when the communication device 151 is operating in restricted mode, the display screen 810 of FIG. 8(b) is displayed, and the setting cannot be changed. In the area 823, the communication device 151 can set a DNS server when updating firmware. When the communication device 151 detects that the area 823 is pressed by the user, the communication device 151 transitions to a DNS server setting screen if it is operating in normal mode. On the other hand, when the communication device 151 is operating in restricted mode, the display screen 810 of FIG. 8(b) is displayed, and the setting cannot be changed. Note that, when the setting is completed on the setting screen displayed when the area 822 or the area 823 is operated, the communication device 151 may execute a test communication process. That is, the communication device 151 may execute a test communication process that attempts to communicate with the external server that manages the latest firmware according to the setting on the setting screen. Furthermore, the process executed when communication device 151 is operating in the restricted mode is not limited to the above-mentioned form. For example, while communication device 151 is operating in the restricted mode, area 822 and area 823 may be grayed out. As a result, even if area 822 and area 823 are pressed, a process based on the press may not be executed.
[0084] FIG. 9B shows a screen for confirming with the user whether to start the communication device 151 in a state in which the network is restricted when the communication device 151 starts to operate in the restricted mode. In this embodiment, the display screen 910 in FIG. 9B is displayed in S507 in FIG. 5. The display screen 910 displays an area 911 and an area 912. The area 911 is an area for accepting a user instruction to permit operation in the restricted mode. The area 921 is an area for accepting a user instruction to refuse operation in the restricted mode. When it is detected that the area 911 is pressed by the user, the communication device 151 proceeds to the process of S510 in FIG. 5. On the other hand, when it is detected that the area 921 is pressed by the user, the communication device 151 proceeds to the process of S509 in FIG. 5 and performs a process for turning off the power of the communication device 151.
[0085] As described above, according to the present embodiment, the communication device can be operated in an appropriate mode. For example, even if an error occurs, the communication device can be used appropriately. That is, even if an error occurs in the communication device, the communication device can be operated in a state where some functions can be used, and the firmware of the communication device can be updated even in a state where only some functions can be used. For example, an error as described in FIG. 2 or FIG. 3 may occur in the communication device 151. Even in such a case, it is possible to prevent an event in which the user cannot use the communication device 151 at all by operating the communication device 151 in the restricted mode in which some functions are restricted as described in FIG. 5 and FIG. 6. In addition, an error may be caused by the firmware of the communication device 151. Even in such a case, as described in FIG. 6, by storing the network settings immediately before the transition to the restricted mode in a non-volatile memory, it is possible to update the firmware using network communication with an external server.
[0086] <<Other embodiments>> In the above-described embodiment, when the communication device 151 operates in the restricted mode, the settings of the wireless infrastructure connection and the wireless P2P connection are disabled and communication with the external device 101 using USB is possible, but the USB communication may also be disabled. Also, the device may operate in a state where only the infrastructure connection is disabled and the wireless P2P connection and the USB connection are enabled. In this case, the enable / disable setting of the network to be saved may be only the infrastructure connection setting. Also, in the restricted mode, the wired infrastructure connection may be disabled or enabled.
[0087] In the above-described embodiment, when the network communication is disabled and the USB communication is enabled, it is possible to change the settings of the communication device 151 from the external device 101 using USB communication. At this time, settings other than the network settings can be changed, but the network settings cannot be changed. Examples of settings other than the network settings include the resolution settings, paper feed port settings, and power saving settings when the communication device 151 performs printing.
[0088] In the above-described embodiment, an example was shown in which the user operation for starting the normal mode (the operation that triggers the start in the normal mode) is different from the user operation for starting the restricted mode (the operation that triggers the start in the restricted mode). Then, an example was shown in which the start in the normal mode or the start in the restricted mode is determined based on the content of the user operation. However, the user operation for starting the normal mode and the user operation for starting the restricted mode may be the same. That is, for example, the user operation for starting the normal mode and the user operation for starting the restricted mode may both be an operation of pressing the power button. In this case, the determination between the start in the normal mode and the start in the restricted mode may be performed based on error information, such as whether an error has occurred in the communication device 151 and the device has been shut down before the user operation for starting the communication device 151 is performed. That is, when an operation of pressing the power button is performed in a state in which error information indicating that an error has occurred in the communication device 151 and the device has been shut down immediately before is stored in the non-volatile memory, the communication device 151 may treat it as having received an instruction to start in the restricted mode. On the other hand, when the power button is pressed in a state where error information indicating that an error occurred in communication device 151 and was shut down immediately before is not stored in the non-volatile memory, communication device 151 may treat it as having received an instruction to start up in normal mode. Note that the above-mentioned error is, for example, a communication error, and more specifically, for example, an error that occurs in the process shown in FIG. 2 or FIG. 3.
[0089] In the above-described embodiment, when an instruction to start in the restricted mode is received, a process is performed in which a confirmation screen is displayed on the display unit 161 to confirm to the user whether the communication device 151 is allowed to operate in the restricted mode. However, the present invention is not limited to this form, and even if an instruction to start in the restricted mode is received, the start and operation in the restricted mode may be performed without displaying the confirmation screen. Here, for example, a case is assumed in which the user operation for starting in the normal mode and the user operation for starting in the restricted mode are the same, and the confirmation screen is not displayed. In such a case, the user may not easily determine whether the communication device 151 has started in the normal mode or the restricted mode. Therefore, for example, an icon or a message for indicating to the user that the communication device 151 is operating in the restricted mode may be displayed on the menu screen displayed when the communication device 151 is started in the restricted mode.
[0090] In the above-described embodiment, in S406 of FIG. 4, the process of determining whether the network setting is capable of communicating with the server has been described. Then, an example of such a network setting has been described as an infrastructure connection. However, the network setting capable of communicating with the server may be a P2P connection setting. In this case, the device at the other end of the P2P connection may be treated as the server. For example, in a P2P connection, it is possible to connect to a device equipped with an OS such as Windows (registered trademark) or MacOS (registered trademark). If the operation of these OSs changes due to version upgrades, an error may occur. Even in such a case, by performing the process of the above-described embodiment, it is possible to appropriately use the communication device 151 even if an error occurs in the communication device 151.
[0091] In the above-described embodiment, an example has been described in which a menu screen and a setting screen are displayed on the display unit 161 of the main body of the communication device 151. However, a configuration is also conceivable in which an external host PC or the like is remotely connected to the communication device 151 and the settings of the communication device 151 are changed by the external host PC. Even in such a configuration, as in the above-described embodiment, in the case of the restricted mode, it is possible to configure so that an operation to change the network settings cannot be accepted even from the operation on the host PC side.
[0092] In the above embodiment, an example has been described in which the communication device 151 in the restricted mode transitions to the firmware update mode without checking the firmware version, but this is not limiting. For example, when it is determined in S604 that a firmware update operation has been performed, the communication device 151 may display a screen including a predetermined message. The predetermined message may be, for example, a message indicating that the firmware may be the same version, or that the update will take time. Then, when an instruction of permission from the user is received, the communication device 151 may transition to the firmware update mode in S605.
[0093] In the above embodiment, the restricted mode is a mode in which the communication device 151 is not only prevented from executing the process of S407 by changing the network settings of the communication device 151, but also prevented from executing communication processes other than S407. However, the restricted mode is not limited to this mode, and may be a mode in which the communication device 151 is not allowed to execute the process of S407 but is allowed to execute communication processes other than S407. In this mode, the communication device 151 simply skips the process of S407 when started up in the restricted mode, so that the network settings of the communication device 151 do not need to be changed even when started up in the restricted mode. In addition, the communication device 151 does not need to execute a process of displaying the display screen 810 of FIG. 8(b) or graying out an item on the screen of FIG. 8(a) or (c) when an operation is performed on the screen of FIG. 8(a) or (c) even when started up in the restricted mode. That is, even if the communication device 151 is started in the restricted mode, the communication device 151 may execute the same processing as that executed in the normal mode as the processing for displaying the screen of Fig. 8(a) or (c) and the processing for accepting an operation on the screen. Note that the communication processing other than S407 is, for example, the processing for receiving a print job via the network and the test communication executed after the area 822 or the area 823 is selected.
[0094] Needless to say, the object of the present invention can also be achieved by supplying a recording medium on which is recorded the program code of software that realizes the functions of the above-mentioned embodiments to a system or device, and having the computer (or CPU or MPU) of the system or device read and execute the program code stored in the recording medium. In this case, the program code itself read from the storage medium realizes the functions of the above-mentioned embodiments, and the storage medium on which the program code is stored constitutes the present invention.
[0095] Examples of storage media for supplying the program code include flexible disks, hard disks, optical disks, magneto-optical disks, CD-ROMs, CD-Rs, magnetic tapes, non-volatile memory cards, ROMs, and DVDs.
[0096] Furthermore, it goes without saying that the functions of the above-mentioned embodiments are not only realized by the computer executing the program code it has read, but also that the functions of the above-mentioned embodiments are realized by an Operating System (OS) running on the computer performing some or all of the actual processing based on the instructions of the program code.
[0097] Furthermore, it goes without saying that this also includes cases where the program code read from the storage medium is written into a memory provided on a function expansion board inserted into a computer or a function expansion unit connected to the computer, and then a CPU or the like provided on the function expansion board or function expansion unit performs some or all of the actual processing based on the instructions of the program code, thereby realizing the functions of the above-mentioned embodiments.
[0098] The disclosure of the present embodiment includes configurations typified by the following communication device example, communication device control method example, and program example.
[0099] <Configuration 1> A communication device capable of operating in a first mode in which a predetermined communication with an external device can be performed, and operating in a second mode in which the predetermined communication is not performed, a receiving means for receiving a start-up operation for starting up the communication device from a user; a start-up means for starting up the communication device in the first mode or the second mode based on the acceptance of the start-up operation; a communication means for automatically executing the specified communication without any user operation on the communication device after the startup operation is accepted based on the communication device being started in the first mode, but not executing the specified communication based on the communication device being started in the second mode.
[0100] <Configuration 2> When the communication device is started in the first mode and the network setting of the communication device is a setting that allows the predetermined communication to be executed, the predetermined communication is automatically executed based on the fact that the communication device is started in the first mode, but when the communication device is started in the first mode and the network setting of the communication device is not a setting that allows the predetermined communication to be executed, the predetermined communication is not automatically executed based on the fact that the communication device is started in the first mode. 2. The communication device according to configuration 1.
[0101] <Configuration 3> The setting that enables execution of the predetermined communication is a setting that enables a connection between an external access point that is external to the communication device and the communication device. 3. The communication device according to configuration 2.
[0102] <Configuration 4> a display means for displaying a predetermined confirmation screen based on the start-up operation that triggers start-up of the communication device in the second mode; a control means for controlling the communication device to operate in the second mode when a first operation is performed while the predetermined confirmation screen is displayed, and for controlling the communication device not to operate in the second mode when a second operation is performed while the predetermined confirmation screen is displayed; The communication device according to any one of configurations 1 to 3, further comprising:
[0103] <Component 5> When the power supply of the communication device is turned off or the communication device is started in the first mode, the communication device is controlled so as not to operate in the second mode. 5. The communication device according to configuration 4.
[0104] <Component 6> The predetermined communication includes at least one of communication with the external device using communication based on the IEEE 802.11 series and communication with the external device using communication based on a wired LAN. 6. The communication device according to any one of configurations 1 to 5.
[0105] <Component 7> the predetermined communication includes communication with a server that is the external device and that collects log information of the communication device; 7. The communication device according to any one of configurations 1 to 6.
[0106] <Component 8> the predetermined communication includes communication with a server that is the external device and manages a print job executed in the communication device; 8. The communication device according to any one of configurations 1 to 7.
[0107] <Component 9> In a state where an operation in the second mode is being executed in the communication device, even if an operation for setting the predetermined communication is accepted, the communication device is controlled so that the setting for the predetermined communication is not executed, or the operation for setting the predetermined communication is controlled so that it is not accepted. 9. The communication device according to any one of configurations 1 to 8.
[0108] <Component 10> The setting related to the predetermined communication includes at least one of a setting related to communication based on the IEEE 802.11 series and a setting related to communication based on a wired LAN, 10. The communication device according to configuration 9.
[0109] <Component 11> a second communication means for performing communication for updating the firmware of the communication device when an operation for updating the firmware of the communication device is performed while the communication device is operating in the second mode; an update means for updating the firmware of the communication device based on communication for updating the firmware of the communication device; 11. The communication device according to any one of configurations 1 to 10, further comprising:
[0110] <Component 12> when an operation for updating firmware of the communication device is executed while the communication device is operating in the first mode, communication is executed to compare a version of the firmware of the communication device with a latest firmware version, and the firmware of the communication device is updated based on a difference between the version of the firmware of the communication device and the latest firmware version; When an operation for updating firmware of the communication device is executed while the communication device is operating in the second mode, the firmware of the communication device is updated without executing communication for comparing the version of the firmware of the communication device with a latest firmware version. 12. The communication device according to claim 11,
[0111] <Component 13> the communication for comparing the firmware version of the communication device with the latest firmware version is communication in which the communication device acquires information indicating the latest firmware version from an external server; 13. The communication device according to claim 12,
[0112] <Component 14> The communication for updating the firmware of the communication device is communication for acquiring the latest firmware from an external server. 14. The communication device according to any one of configurations 11 to 13.
[0113] <Component 15> a communication standard used for the predetermined communication and a communication standard used for communication for updating firmware of the communication device are the same predetermined communication standard; When the startup operation that triggers startup of the communication device in the second mode is accepted, a first setting value that was set before the startup operation was accepted in a setting related to the predetermined communication standard is stored; After the first setting value is stored, a value set in the setting related to the predetermined communication standard is changed to a second setting value corresponding to a setting in which the predetermined communication is not performed, When an operation for updating firmware of the communication device is executed while the communication device is operating in the second mode, the stored first setting value is used to execute communication for updating the firmware of the communication device. 15. A communication device according to any one of configurations 11 to 14.
[0114] <Component 16> when an operation for updating the firmware of the communication device is executed while the communication device is operating in the second mode, the firmware of the communication device is updated by the execution of the operation for updating the firmware of the communication device, the communication device is restarted, and the communication device is started up in the first mode during the restart. 16. A communication device according to any one of configurations 11 to 15.
[0115] <Component 17> The first mode is a mode in which communication with an external device via a network other than the predetermined communication is not performed. 17. A communication device according to any one of configurations 1 to 16.
[0116] <Component 18> The first mode is a mode in which settings related to communication based on the IEEE 802.11 series are disabled. 18. A communication device according to any one of configurations 1 to 17.
[0117] <Component 19> When the startup operation that triggers startup of the communication device in the second mode is accepted, a first setting value that was set before the startup operation was accepted in the setting related to the predetermined communication is stored; After the first setting value is stored, a value set in the setting related to the predetermined communication is changed to a second setting value corresponding to a setting in which the predetermined communication is not executed. 19. A communication device according to any one of configurations 1 to 18.
[0118] <Component 20> The communication device described in configuration 19, characterized in that when the communication device starts up in the first mode after the first setting value has been saved and operation of the communication device in the second mode has been terminated, the value set in the setting related to the specified communication is changed to the saved first setting value.
[0119] <Component 21> A communication device described in any one of configurations 1 to 20, characterized in that the startup operation that triggers the startup of the communication device in the first mode is different from the startup operation that triggers the startup of the communication device in the second mode.
[0120] <Component 22> the startup operation that triggers startup of the communication device in the first mode is the same as the startup operation that triggers startup of the communication device in the second mode; whether the communication device is started in the first mode or the second mode when a user operation for starting the communication device is accepted is controlled based on whether a communication error has occurred in the communication device before the user operation for starting the communication device is accepted. 21. The communication device according to any one of configurations 1 to 20.
[0121] <Component 23> When the communication device is started in the second mode, information indicating that the communication device has been started in the second mode is displayed on the communication device. 23. A communication device according to any one of configurations 1 to 22.
[0122] <Component 24> 24. The communication device according to any one of configurations 1 to 23, further comprising a printing means for executing printing.
[0123] <Component 25> A method for controlling a communication device capable of operating in a first mode in which a predetermined communication with an external device can be performed, and operating in a second mode in which the predetermined communication is not performed, comprising the steps of: a receiving step of receiving, from a user, a start-up operation for starting up the communication device; a startup step of starting up the communication device in the first mode or the second mode based on the acceptance of the startup operation; a communication step of automatically executing the specified communication without any user operation on the communication device after the startup operation is accepted based on the communication device being started in the first mode, but not executing the specified communication based on the communication device being started in the second mode.
[0124] <Component 26> A computer of a communication device capable of operating in a first mode in which a predetermined communication with an external device can be performed and operating in a second mode in which the predetermined communication is not performed, a receiving step of receiving, from a user, a start-up operation for starting up the communication device; a startup step of starting up the communication device in the first mode or the second mode based on the acceptance of the startup operation; A program characterized by executing a communication step in which, based on the communication device being started up in the first mode, the specified communication is automatically executed without any user operation on the communication device after the startup operation is accepted, but, based on the communication device being started up in the second mode, the specified communication is not executed. [Explanation of symbols]
[0125] 151 Communication equipment 154 CPU 156 Communications Department
Claims
1. A communication device capable of operating in a first mode in which a predetermined communication with an external device can be performed, and operating in a second mode in which the predetermined communication is not performed, a receiving means for receiving a start-up operation for starting up the communication device from a user; a start-up means for starting up the communication device in the first mode or the second mode based on the acceptance of the start-up operation; a communication means for automatically executing the specified communication without any user operation on the communication device after the startup operation is accepted based on the communication device being started in the first mode, but not executing the specified communication based on the communication device being started in the second mode.
2. When the communication device is started in the first mode and the network setting of the communication device is a setting that allows the predetermined communication to be executed, the predetermined communication is automatically executed based on the fact that the communication device is started in the first mode, but when the communication device is started in the first mode and the network setting of the communication device is not a setting that allows the predetermined communication to be executed, the predetermined communication is not automatically executed based on the fact that the communication device is started in the first mode.
2. The communication device according to claim 1 .
3. The setting that enables execution of the predetermined communication is a setting that enables a connection between an external access point that is external to the communication device and the communication device.
3. The communication device according to claim 2.
4. a display means for displaying a predetermined confirmation screen based on the start-up operation that triggers start-up of the communication device in the second mode; a control means for controlling the communication device to operate in the second mode when a first operation is performed while the predetermined confirmation screen is displayed, and for controlling the communication device not to operate in the second mode when a second operation is performed while the predetermined confirmation screen is displayed; The communication device of claim 1 further comprising:
5. The communication device is controlled so that an operation in the second mode is not performed in the communication device by turning off a power supply of the communication device or starting the communication device in the first mode.
5. The communication device according to claim 4.
6. The predetermined communication includes at least one of communication with the external device using communication based on the IEEE 802.11 series and communication with the external device using communication based on a wired LAN.
2. The communication device according to claim 1 .
7. the predetermined communication includes communication with a server that is the external device and that collects log information of the communication device; 2. The communication device according to claim 1 .
8. the predetermined communication includes communication with a server that is the external device and manages a print job executed in the communication device; 2. The communication device according to claim 1 .
9. In a state where an operation in the second mode is being executed in the communication device, even if an operation for setting the predetermined communication is accepted, the communication device is controlled so that the setting for the predetermined communication is not executed, or the operation for setting the predetermined communication is controlled so that it is not accepted.
2. The communication device according to claim 1 .
10. The setting related to the predetermined communication includes at least one of a setting related to communication based on the IEEE 802.11 series and a setting related to communication based on a wired LAN; 10. The communication device according to claim 9 .
11. a second communication means for performing communication for updating the firmware of the communication device when an operation for updating the firmware of the communication device is performed while the communication device is operating in the second mode; an update means for updating the firmware of the communication device based on communication for updating the firmware of the communication device; 2. The communication device of claim 1, further comprising:
12. when an operation for updating firmware of the communication device is executed while the communication device is operating in the first mode, communication is executed to compare a version of the firmware of the communication device with a latest firmware version, and the firmware of the communication device is updated based on a difference between the version of the firmware of the communication device and the latest firmware version; When an operation for updating firmware of the communication device is executed while the communication device is operating in the second mode, the firmware of the communication device is updated without executing communication for comparing the version of the firmware of the communication device with a latest firmware version.
12. The communication device according to claim 11 .
13. the communication for comparing the firmware version of the communication device with the latest firmware version is communication in which the communication device acquires information indicating the latest firmware version from an external server; 13. The communication device according to claim 12.
14. The communication for updating the firmware of the communication device is communication for acquiring the latest firmware from an external server.
12. The communication device according to claim 11 .
15. a communication standard used for the predetermined communication and a communication standard used for communication for updating firmware of the communication device are the same predetermined communication standard; When the startup operation that triggers startup of the communication device in the second mode is accepted, a first setting value that was set before the startup operation was accepted in a setting related to the predetermined communication standard is stored; After the first setting value is stored, a value set in the setting related to the predetermined communication standard is changed to a second setting value corresponding to a setting in which the predetermined communication is not performed, When an operation for updating firmware of the communication device is executed while the communication device is operating in the second mode, the stored first setting value is used to execute communication for updating the firmware of the communication device.
12. The communication device according to claim 11 .
16. when an operation for updating the firmware of the communication device is executed while the communication device is operating in the second mode, the firmware of the communication device is updated by the execution of the operation for updating the firmware of the communication device, the communication device is restarted, and the communication device is started up in the first mode during the restart.
12. The communication device according to claim 11 .
17. The first mode is a mode in which communication with an external device via a network other than the predetermined communication is not performed.
2. The communication device according to claim 1 .
18. The first mode is a mode in which settings related to communication based on the IEEE 802.11 series are disabled.
2. The communication device according to claim 1 .
19. When the start-up operation that triggers start-up of the communication device in the second mode is accepted, a first setting value that was set before the start-up operation was accepted in the setting related to the predetermined communication is saved; After the first setting value is stored, a value set in the setting related to the predetermined communication is changed to a second setting value corresponding to a setting in which the predetermined communication is not executed.
2. The communication device according to claim 1 .
20. The communication device of claim 19, characterized in that when the communication device starts up in the first mode after the first setting value has been saved and operation of the communication device in the second mode has been terminated, the value set in the setting related to the specified communication is changed to the saved first setting value.
21. The communication device according to claim 1 , wherein the startup operation that triggers startup of the communication device in the first mode is different from the startup operation that triggers startup of the communication device in the second mode.
22. the startup operation that triggers startup of the communication device in the first mode is the same as the startup operation that triggers startup of the communication device in the second mode; whether the communication device is started in the first mode or the second mode when a user operation for starting the communication device is accepted is controlled based on whether a communication error has occurred in the communication device before the user operation for starting the communication device is accepted.
2. The communication device according to claim 1 .
23. When the communication device is started in the second mode, information indicating that the communication device has been started in the second mode is displayed on the communication device.
2. The communication device according to claim 1 .
24. 2. The communication device according to claim 1, further comprising a printing means for executing printing.
25. A method for controlling a communication device capable of operating in a first mode in which a predetermined communication with an external device can be performed, and operating in a second mode in which the predetermined communication is not performed, comprising the steps of: a receiving step of receiving, from a user, a start-up operation for starting up the communication device; a startup step of starting up the communication device in the first mode or the second mode based on the acceptance of the startup operation; a communication step of automatically executing the specified communication without any user operation on the communication device after the startup operation is accepted based on the communication device being started in the first mode, but not executing the specified communication based on the communication device being started in the second mode.
26. A computer of a communication device capable of operating in a first mode in which a predetermined communication with an external device can be performed and operating in a second mode in which the predetermined communication is not performed, a receiving step of receiving, from a user, a start-up operation for starting up the communication device; a startup step of starting up the communication device in the first mode or the second mode based on the acceptance of the startup operation; A program characterized by executing a communication step in which, based on the communication device being started up in the first mode, the specified communication is automatically executed without any user operation on the communication device after the startup operation is accepted, but, based on the communication device being started up in the second mode, the specified communication is not executed.
Citation Information
Patent Citations
Image forming apparatus
JP2017194833A
