Electronic device and communication control method

The electronic device's self-repair reboot process, involving driver software uninstallation and power management, addresses the need for automated recovery from wireless connection errors, enhancing user convenience and reducing interference with other functions.

JP7552051B2Active Publication Date: 2024-09-18SEIKO EPSON CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2020055462
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-26
Publication Date
2024-09-18
Estimated Expiration
2040-03-26

AI Technical Summary

Technical Problem

Existing methods for recovering from wireless connection errors between electronic devices and access points require user intervention, which is cumbersome and can interfere with other device functions, and existing technologies do not provide effective automated recovery solutions.

Method used

The electronic device performs a self-repair reboot by uninstalling and reinstalling driver software for the wireless communication unit, and optionally cutting off and restarting power supply to the wireless communication unit, to automatically recover from connection errors.

Benefits of technology

This method allows for automatic recovery from wireless connection errors without user intervention, minimizing disruption to other device functions and improving user convenience by ensuring rapid and reliable reconnection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552051000005
    Figure 0007552051000005
  • Figure 0007552051000006
    Figure 0007552051000006
  • Figure 0007552051000011
    Figure 0007552051000011
Patent Text Reader

Abstract

To provide an electronic apparatus and the like that enable automatic recovery from an error state by eliminating problems with a wireless communication unit or the like when an error occurs in wireless connection.SOLUTION: An electronic apparatus 200 includes: a wireless communication unit 220 that performs wireless communication with an external access point; and a processing unit 210 that performs communication control of the wireless communication unit 220. When an error occurs in wireless connection with the external access point, the processing unit 210 uninstalls driver software that operates the wireless communication unit 220 and installs driver software after the uninstallation, as self-repair reboot.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an electronic device, a communication control method, and the like. [Background technology]

[0002] In wireless communication such as Wi-Fi (registered trademark), after an electronic device and an external access point are connected for communication, an error may occur in the wireless connection between the electronic device and the external access point for some reason, causing the wireless connection to be cut off. For example, Patent Document 1 discloses a printing device that can communicate with a terminal device, in which when a communication error occurs, the communication control unit sends an initialization signal to the communication unit to resolve the communication error. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-15997 A Summary of the Invention [Problem to be solved by the invention]

[0004] For example, when an error occurs in the wireless connection between an electronic device and an external access point, a method of recovering from the error state may involve a user's operation to reset the wireless settings. However, there is a problem in that resetting the wireless settings by the user's settings is troublesome for the user. Furthermore, the above-mentioned Patent Document 1 does not propose a method of recovering from the error state when an error occurs in the wireless connection between an electronic device and an external access point. [Means for solving the problem]

[0005] One aspect of the present disclosure relates to an electronic device that includes a wireless communication unit that performs wireless communication with an external access point and a processing unit that performs communication control of the wireless communication unit, wherein the processing unit performs a self-repair reboot when an error occurs in the wireless connection with the external access point, uninstalling driver software that operates the wireless communication unit and installing the driver software after the uninstallation.

[0006] One aspect of the present disclosure relates to a communication control method for performing wireless communication with an external access point via a wireless communication unit, the communication control method determining whether an error has occurred in a wireless connection with the external access point, and if an error has occurred in the wireless connection with the external access point, uninstalling driver software that operates the wireless communication unit and installing the driver software after the uninstallation as a self-repair reboot. [Brief description of the drawings]

[0007] [Figure 1] 1 shows an example of the configuration of a communication system in which an electronic device is wirelessly connected to an external access point. [Diagram 2] 2 shows an example of the configuration of an electronic device according to the present embodiment. [Diagram 3] 3 shows a detailed configuration example of a processing unit and a wireless communication unit. [Figure 4] 11 is a flowchart illustrating an example of a self-repair reboot process. [Diagram 5] 10 is a flowchart illustrating another example of a self-repair reboot process. [Figure 6] 10 is a flowchart illustrating another example of a self-repair reboot process. [Figure 7] 11 is a flowchart illustrating a reconnection process. [Figure 8] 10 is a flowchart illustrating details of a reconnection process. [Figure 9] 10 is a flowchart illustrating details of a reconnection process. [Figure 10]1 shows an example of the configuration of a communication system capable of wireless communication via an internal access point. [Figure 11] 11 is a flowchart for explaining a process of performing a self-repair reboot on condition that the internal access point is not activated. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] The present embodiment will be described below. Note that the present embodiment described below does not unduly limit the contents described in the claims. Furthermore, not all of the configurations described in the present embodiment are necessarily essential configurations.

[0009] 1. Communication systems, electronic devices FIG. 1 is a diagram showing a schematic configuration example of a communication system 10 according to the present embodiment. The communication system 10 is made up of an electronic device 200, an external access point AP, and a terminal device 100. As shown in FIG. 1, the electronic device 200 according to the present embodiment is connected to the external access point AP by performing wireless communication with the external access point AP. Specifically, the electronic device 200 is connected to the terminal device 100 via the external access point AP by performing wireless communication via the external access point AP. In this embodiment, the "connection by wireless communication" is appropriately described as a "wireless connection" or simply as a "connection". The external access point AP is, for example, a wireless router having a router function. In FIG. 1, the terminal device 100 is an information processing device such as a PC (Personal Computer), but may be a mobile terminal device such as a smartphone or a tablet terminal.

[0010] The electronic device 200 is, for example, a printer. Alternatively, the electronic device 200 may be a scanner, a facsimile machine, or a copier. The electronic device 200 may be a multifunction peripheral (MFP) having multiple functions, and a multifunction peripheral having a printing function is also an example of a printer. Alternatively, the electronic device 200 may be a projector, a head-mounted display device, a wearable device, a biometric measuring device, a robot, a video device, a mobile information terminal, a physical quantity measuring device, or the like. The biometric measuring device is a pulse meter, a pedometer, an activity meter, or the like. The video device is a camera, or the like. The mobile information terminal is a smartphone, a mobile game console, or the like.

[0011] The electronic device 200 communicates wirelessly with an external access point AP. The wireless communication here is communication by wireless LAN, specifically, for example, communication using the Wi-Fi (registered trademark) system. The Wi-Fi system is, for example, a wireless communication system based on the IEEE (Institute of Electrical and Electronics Engineers) 802.11 standard and standards equivalent thereto.

[0012] Fig. 2 is a block diagram showing an example of the configuration of the electronic device 200. Fig. 2 shows the electronic device 200 having a printing function, and in the following description, an example in which the electronic device 200 is a printer will be described as appropriate. However, as described above, the electronic device 200 can be expanded to include functions other than a printer. The electronic device 200 includes a processing unit 210, a wireless communication unit 220, a display unit 230, an operation unit 240, a printing unit 250, and a storage unit 260.

[0013] The processing unit 210 controls each unit of the electronic device 200. The units of the electronic device 200 are, for example, the wireless communication unit 220, the storage unit 260, the printing unit 250, and the like. Specifically, the processing unit 210 is a processor or a controller. For example, the processing unit 210 may include multiple CPUs, such as a main CPU and a sub-CPU. The main CPU controls each unit of the electronic device 200 and performs overall control. The sub-CPU is, for example, a CPU that performs communication control of the wireless communication unit 220. Alternatively, when the electronic device 200 is a printer, a CPU that performs various processes related to printing may be further provided.

[0014] The processing unit 210 of this embodiment can be configured by the following hardware. The hardware can include at least one of a circuit for processing digital signals and a circuit for processing analog signals. For example, the hardware can be configured by one or more circuit devices or one or more circuit elements mounted on a circuit board. The circuit device is, for example, an integrated circuit device. The circuit element is, for example, a resistor, a capacitor, etc.

[0015] The processing unit 210 can be realized by the following processor. For example, the electronic device 200 of the present embodiment includes a memory that stores information and a processor that operates based on the information stored in the memory. The information is, for example, a program and various data. The processor includes hardware. The processor can use various processors such as a central processing unit (CPU), a graphics processing unit (GPU), and a digital signal processor (DSP). The memory may be a semiconductor memory such as a static random access memory (SRAM) or a dynamic random access memory (DRAM), a register, a magnetic storage device such as a hard disk device, or an optical storage device such as an optical disk device. For example, the memory stores computer-readable instructions, and the processor executes the instructions to realize the function of the processing unit 210 as processing. The instructions here may be instructions of an instruction set constituting a program, or instructions that instruct the hardware circuitry of the processor to operate. Furthermore, all or a part of the processing unit 210 may be realized by cloud computing.

[0016] The wireless communication unit 220 performs wireless communication conforming to, for example, a predetermined wireless communication standard. For example, the wireless communication unit 220 performs wireless communication conforming to a predetermined wireless LAN standard. Specifically, the wireless communication unit 220 performs wireless communication conforming to, for example, the Wi-Fi (registered trademark) standard, which is one of the wireless LAN standards. For example, the wireless communication unit 220 is realized by a wireless communication module. The wireless communication module includes at least one IC (Integrated Circuit). The IC is a semiconductor chip. For example, the wireless communication module includes a wireless communication IC as at least one IC. The wireless communication module may also include an interface or memory IC in addition to the wireless communication IC. The wireless communication module may have a wireless communication IC conforming to a standard other than the wireless LAN standard as the wireless communication IC. For example, the wireless communication module may include a wireless communication IC conforming to a short-range wireless communication standard such as Bluetooth (registered trademark). Specifically, it may include a wireless communication IC conforming to the BLE (Bluetooth Low Energy) standard. Alternatively, the wireless LAN and short-range wireless communication may be realized by a single-chip wireless communication IC.

[0017] The display unit 230 is configured with a display that displays various information to the user, etc. The operation unit 240 is configured with buttons that accept input operations from the user, etc. The display unit 230 and the operation unit 240 may be integrated into one unit, for example, a touch panel.

[0018] The printing unit 250 includes a print engine. The print engine is a mechanical configuration that executes printing of an image on a print medium. The print engine includes, for example, a transport mechanism, an inkjet type ejection head, and a driving mechanism for a carriage including the ejection head. The print engine prints an image on the print medium by ejecting ink from the ejection head onto the print medium transported by the transport mechanism. The print medium may be paper, cloth, or another medium. Note that the specific configuration of the print engine is not limited to the one exemplified here, and it may be one that prints with toner using an electrophotographic method.

[0019] The storage unit 260 stores various types of information such as data and programs. The processing unit 210 and the wireless communication unit 220 operate, for example, using the storage unit 260 as a work area. The storage unit 260 may be a semiconductor memory such as an SRAM or a DRAM, a register, a magnetic storage device, or an optical storage device. The storage unit 260 may store data transmitted by wireless communication from an information processing device connected to an external access point AP. The data here is, for example, data used for printing by the printing unit 250.

[0020] FIG. 3 is a diagram showing a specific example of the configuration of the processing unit 210 and the wireless communication unit 220 in the electronic device 200. As shown in FIG.

[0021] The processing unit 210 includes a CPU 212 and an interface 214. The CPU 212 is a processor. The interface 214 is an interface for performing communication, for example, by wire, between internal devices of the electronic device 200. The interface 214 is, for example, a serial interface capable of high-speed serial transfer. Specifically, the interface 214 is, for example, an interface conforming to a communication standard of USB (Universal Serial Bus), but may be an interface conforming to another communication standard. The processing unit 210 is also connected to a RAM 262 and a ROM 264 constituting the storage unit 260 in FIG. 2. The RAM 262 is, for example, an SRAM or a DRAM, and is used, for example, as a work memory for the processing unit 210. The ROM 264 is a memory capable of retaining information even when the power supply is cut off. The ROM 264 may be, for example, a ROM called a non-volatile memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory) capable of electrically erasing data, or may be a mask ROM.

[0022] The wireless communication unit 220 includes a wireless communication IC 222, an interface 224, a RAM 226, and an antenna unit ANT. The wireless communication IC 222, the interface 224, the RAM 226, and the antenna unit ANT configure a wireless communication module. As described above, the wireless communication IC 222 may include multiple wireless communication ICs of different standards, such as wireless LAN and short-range wireless communication. The multiple wireless communication ICs are a wireless communication chip set.

[0023] The wireless communication IC 222 performs wireless communication with an external device using the antenna unit ANT. The wireless communication IC 222 may include, for example, a transceiver that is a circuit of the physical layer of wireless communication, and a communication processing circuit that performs processing of the link layer. The transceiver includes, for example, a transmitting circuit and a receiving circuit of wireless communication. The communication processing circuit may be realized by, for example, a processor such as a CPU. The interface 224 is, for example, a serial interface capable of high-speed serial transfer, and is an interface of the same communication standard as the interface 214 of the processing unit 210. For example, the interface 224 is an interface of the USB communication standard. The interface 214 of the processing unit 210 and the interface 224 of the wireless communication unit 220 are connected via a bus BS. The RAM 226 temporarily stores various data and programs. The communication processing circuit of the wireless communication IC 222 operates using the RAM 226 as a work area.

[0024] 2. Self-healing reboot 1, after the electronic device 200 and the external access point AP are wirelessly connected, an error may occur in the wireless connection for some reason, causing the wireless connection to be disconnected. When the wireless connection between the electronic device 200 and the external access point AP is disconnected in this way, even if the user sends a job to the electronic device 200 from the terminal device 100 via the external access point AP, the job is not executed, resulting in a loss of convenience for the user. For example, if the electronic device 200 is a printer, the print job cannot be executed.

[0025] When the wireless connection is thus disconnected, a recovery method may be considered in which the user manually operates the electronic device 200 to recover the disconnected state. For example, the user goes to the location of the electronic device 200 and resets the wireless connection or turns the power of the electronic device 200 off and on. However, this recovery method requires the user to perform cumbersome tasks, which is a hassle for the user. Furthermore, even if the wireless connection is reset randomly, it is highly likely that the following problems will occur, rather than the wireless connection being restored. For example, there is a problem that the user will be unable to operate the device during the resetting of the wireless connection. There is also a problem that the process for resetting the wireless connection will interfere with the processing of other functions of the electronic device 200. For example, if the electronic device 200 is a printer, the printing process will be interrupted. Furthermore, even if the wireless connection cannot be restored, the user will have to repeat the process uselessly, which will impair the user's convenience.

[0026] Therefore, in this embodiment, the processing unit 210 in Fig. 2 and Fig. 3 performs a self-repair reboot when an error occurs in the wireless connection with the external access point AP. For example, when an error occurs in the wireless connection with the external access point AP by the wireless communication unit 220 and the wireless connection is disconnected, the processing unit 210 executes the self-repair reboot. Specifically, as the self-repair reboot, the processing unit 210 uninstalls the driver software of the wireless communication unit 220 and installs the driver software after the uninstallation. The self-repair reboot is a process of performing a self-repair to recover from the wireless connection error and restarting.

[0027] The driver software is software that operates the wireless communication unit 220. Specifically, the driver software is software such as a program that controls the operation of the wireless communication IC 222 of the wireless communication unit 220. The driver software is stored in, for example, the ROM 264, and the driver software is installed by reading the driver software from the ROM 264. That is, the driver software is incorporated into the execution program of the CPU 212, which is the processing unit 210, and installation is performed to make the driver software executable. The driver software is incorporated as a part of the firmware of the processing unit 210. The processing unit 210 operates this driver software as an execution program to control the wireless communication IC 222 and the like. For example, the processing unit 210 operates based on the driver software and performs various settings for operating the wireless communication IC 222 in the registers and the like of the wireless communication IC 222. Then, in the self-repair reboot, the installed driver software is uninstalled. That is, uninstallation is performed to delete the driver software from the execution program of the processing unit 210. At this time, the processing unit 210 may perform negotiation processing with the wireless communication unit 220 and initialize various settings set in the registers and the like of the wireless communication IC 222. After this uninstallation, the processing unit 210 reinstalls the driver software from the ROM 264. As a result, even if there is a problem with the register settings of the wireless communication IC 222 controlled by the driver software, or if there is a problem with the driver software, these problems can be eliminated by reinstalling the driver software after uninstallation. For example, even if the register settings of the wireless communication IC 222 are lost or changed to an incorrect setting, the register settings of the wireless communication IC 222 can be restored to the correct setting by the driver software newly installed after uninstallation. Therefore, by performing such uninstallation and installation, it becomes possible to self-repair the settings of the wireless communication IC 222, and to recover from an error state of the wireless connection.

[0028] In addition, the processing unit 210 performs the self-repair reboot by cutting off the power supply to the wireless communication unit 220 and resuming the power supply after the power supply has been cut off. For example, when the bus BS in FIG. 3 is a USB, power is supplied to the wireless communication unit 220 by the VBUS of the USB. When the power supply is cut off, the power supply by this VBUS is not performed. When the power supply is resumed, the power supply by VBUS is resumed after the power supply is cut off. If the power supply is cut off and resumed in this manner, the register settings of the wireless communication IC 222 are initialized, so that it is possible to recover from an error state of the wireless connection. However, when the power supply is cut off and resumed, it takes a long time for the power supply voltage to stabilize and a long time for the analog circuit of the wireless communication IC 222 to operate normally. Therefore, the self-repair reboot by cutting off and resuming the power supply requires a longer waiting time than the self-repair reboot by uninstalling and installing the driver software. Therefore, in this embodiment, as described below, first a self-repair reboot is performed by uninstalling and installing the driver software, and if this self-repair reboot does not resolve the wireless connection error, a self-repair reboot is performed by cutting off and resuming the power supply.

[0029] Next, the operation of this embodiment will be described with reference to FIG. 4, FIG. 5, and FIG. 6. FIG. 4 is a flow chart showing an example of the process of the self-repair reboot. As shown in FIG. 4, the processing unit 210 judges whether an error has occurred in the wireless connection with the external access point (step S1). For example, it judges whether an error has occurred in the wireless connection and the wireless connection with the external access point has been disconnected. Then, when an error has occurred in the wireless connection, it judges whether to perform a self-repair reboot (step S2). For example, when an execution condition of the self-repair reboot as described later is established, it is judged to perform a self-repair reboot. Then, as the self-repair reboot, the driver software of the wireless communication unit 220 described above is uninstalled (step S3). That is, the driver software is deleted from among the execution programs of the processing unit 210. Then, after the uninstallation, the driver software of the wireless communication unit 220 is installed (step S4). For example, the driver software is reinstalled from the ROM 264 of FIG. 3 and incorporated as an execution program of the processing unit 210. In this way, the reinstalled driver software restores various settings of the wireless communication unit 220 to the correct settings, thereby enabling recovery from the error state of the wireless connection.

[0030] FIG. 5 is a flowchart showing another example of the self-repair reboot process. The processing unit 210 judges whether an error has occurred in the wireless connection with the external access point, and if an error has occurred, judges whether to perform a self-repair reboot (steps S11 and S12). When performing a self-repair reboot, the driver software of the wireless communication unit 220 is first uninstalled (step S13) as the self-repair reboot. After the uninstallation, the power supply to the wireless communication unit 220 is cut off, and the power supply is resumed after the power supply is cut off (steps S14 and S15). After the power supply is resumed, the driver software of the wireless communication unit 220 is installed (step S16). In this way, by cutting off and resuming the power supply to the wireless communication unit 220 after uninstalling the driver software, various settings of the wireless communication unit 220 are initialized. After that, the driver software is reinstalled and incorporated as an execution program of the processing unit 210. In this way, when various settings of the wireless communication unit 220 have been initialized due to the power supply being cut off and then restarted, the reinstalled driver software can restore the various settings of the wireless communication unit 220 to the correct settings, making it possible to recover from an error state in the wireless connection.

[0031] FIG. 6 is also a flowchart showing another example of the self-repair reboot process. The processing unit 210 judges whether an error has occurred in the wireless connection with the external access point, and if an error has occurred, judges whether to perform a self-repair reboot (steps S21 and S22). If a self-repair reboot is to be performed, the first self-repair reboot is performed by first uninstalling the driver software of the wireless communication unit 220, and installing the driver software after the uninstallation (steps S23 and S24). Then, the first self-repair reboot is performed to judge whether the error in the wireless connection has been resolved (step S25). If the error has not been resolved, the second self-repair reboot is performed (step S26). If it is judged that a second self-repair reboot is to be performed, the driver software of the wireless communication unit 220 is uninstalled, and after the uninstallation, the power supply to the wireless communication unit 220 is shut off and resumed (steps S27, S28, and S29). After the power supply is resumed, the driver software of the wireless communication unit 220 is installed (step S30). Thus, in Fig. 6, in the first self-repair reboot, the driver software is uninstalled and installed as in Fig. 4. Then, if the wireless connection error is not resolved by this first self-repair reboot, a second self-repair reboot is performed. That is, in the second self-repair reboot, as in Fig. 5, the driver software is uninstalled, then the power supply is cut off and restarted, and then the driver software is installed.

[0032] For example, a self-repair reboot by uninstalling and installing driver software can be completed in a short time compared to a self-repair reboot including power supply cutoff and restart. Therefore, in FIG. 6, a first self-repair reboot by uninstalling and installing driver software is performed first. Then, if the first self-repair reboot does not resolve the wireless connection error, a second self-repair reboot including power supply cutoff and restart is performed. A self-repair reboot including power supply cutoff and restart takes a long time compared to a self-repair reboot by uninstalling and installing, due to stabilization of the power supply voltage, but the settings of the wireless communication unit 220 can be initialized reliably, and the possibility of recovery from the error state is increased. Therefore, in FIG. 6, a first self-repair reboot by uninstalling and installing in a short time is performed first, and if the error state is still not resolved, a second self-repair reboot including power supply cutoff and restart, which has a high possibility of recovery from the error state, is performed. By performing a two-stage self-repair reboot in this way, it is possible to minimize the time required for the self-repair reboot while increasing the possibility of recovery from the wireless connection error state.

[0033] As described above, the electronic device 200 of the present embodiment includes the wireless communication unit 220 that performs wireless communication with an external access point, and the processing unit 210 that performs communication control of the wireless communication unit 220. As shown in FIG. 4, when an error occurs in the wireless connection with the external access point, the processing unit 210 uninstalls the driver software that operates the wireless communication unit 220 and installs the driver software after the uninstallation as a self-repair reboot. In this way, even when there is a problem with the wireless communication unit 220 controlled by the driver software, or when there is a problem with the driver software, the driver software is deleted by uninstallation. Then, the driver software is reinstalled, and the wireless communication unit 220 is controlled by the reinstalled driver software, so that the above-mentioned problem can be eliminated. That is, when the reinstalled driver software operates properly, the setting of the wireless communication unit 220 can be restored to the correct setting, the setting can be self-repaired, and recovery from an error state of the wireless connection is possible. And, since the self-repair reboot is automatically executed when an error occurs in the wireless connection with the external access point, recovery from an error state of the wireless connection is not troublesome for the user, and the convenience of the user can be improved. For example, it is possible to prevent a situation in which the user has to repeatedly perform unnecessary operations to recover from an error state. In addition, since the self-repair reboot caused by uninstallation and installation of driver software can be completed in a short time, it is possible to prevent a situation in which the self-repair reboot process interferes with other processes of the electronic device 200.

[0034] In the present embodiment, as shown in FIG. 5, the processing unit 210 performs the self-repair reboot by uninstalling the driver software, cutting off the power supply to the wireless communication unit 220 after the uninstallation, restarting the power supply after the power supply is cut off, and installing the driver software after the power supply is restarted. For example, the processing unit 210 performs not only the installation and uninstallation of the driver software, but also the cutting off and restarting of the power supply to the wireless communication unit 220 as the self-repair reboot. By cutting off and restarting the power supply in this way, the settings of the wireless communication unit 220 can be reliably initialized, so that the possibility of recovery from an error state of the wireless connection can be increased. Furthermore, by uninstalling the driver software before cutting off and restarting the power supply, and installing the driver software after cutting off and restarting the power supply, the wireless communication unit 220 can be properly controlled using the driver software without any defect. This can further increase the possibility of recovery from an error state of the wireless connection.

[0035] In this embodiment, as shown in FIG. 6, when the error is not resolved even after uninstallation and installation, the processing unit 210 performs a self-repair reboot by cutting off the power supply to the wireless communication unit 220 and restarting the power supply after the power supply is cut off. For example, when the wireless connection error is not resolved by the first self-repair reboot in which the driver software is uninstalled and installed, a second self-repair reboot including cutting off and restarting the power supply is performed. In this way, even if there is a problem with the wireless communication unit 220 or the driver software, the first self-repair reboot by uninstallation and installation can be performed first, so that the wireless communication unit 220 can be appropriately controlled by the reinstalled driver software to recover from the wireless connection error state. Since the first self-repair reboot by uninstallation and installation can be completed in a short time, the adverse effect of the first self-repair reboot on other processes can be minimized. When the first self-repair reboot by uninstallation and installation cannot recover from the wireless connection error state, a second self-repair reboot including cutting off and restarting the power supply is performed. The second self-repair reboot, which includes cutting off and restarting the power supply, takes longer than the first self-repair reboot by uninstallation and installation, but can reliably initialize the settings of the wireless communication unit 220, and therefore can increase the possibility of recovery from an error state. Therefore, it is possible to realize a self-repair reboot that can increase the possibility of recovery from an error state of the wireless connection while minimizing interference with other processes of the electronic device 200.

[0036] 3. Detailed Operation Next, a detailed operation example of this embodiment will be described with reference to Figs. 7, 8, and 9. Fig. 7 is a flow chart for explaining a process of periodically reconnecting. First, it is determined whether or not the wireless connection with the external access point has been disconnected due to an error (step S31). If it is determined that the connection has been disconnected, a reconnection process is performed (step S32). As will be described later, in this reconnection process, a self-repair reboot of this embodiment is performed. If the reconnection process is successful in reconnecting to the external access point, the process is terminated (step S33). On the other hand, if the reconnection to the external access point is not successful, the process waits for a predetermined period of time (step S34). For example, the process waits for a predetermined period of time, which may be one hour to several hours. After the predetermined period of time has elapsed, the reconnection process of step S32 is executed.

[0037] In this embodiment, the processing unit 210 performs a self-repair reboot in the reconnection process when the wireless connection with the external access point is disconnected, as shown in FIG. 7. That is, in the reconnection process of step S32 when it is determined in step S31 of FIG. 7 that the wireless connection with the external access point is disconnected, the processing unit 210 performs a self-repair reboot. This reconnection process is performed at predetermined intervals, which are long time intervals such as one hour to several hours, and the processing unit 210 performs a self-repair reboot when a predetermined execution condition is satisfied in the reconnection process performed at each predetermined interval. In this way, the self-repair reboot can be automatically performed in the reconnection process when the wireless connection is disconnected, thereby improving the convenience of the user. In addition, the self-repair reboot can be performed in the reconnection process that is periodically performed, thereby preventing the self-repair reboot from being frequently performed and interfering with other processes of the electronic device 200.

[0038] Figures 8 and 9 are flow charts for explaining the details of the reconnection process of step S32 in Figure 7. When reconnection with an external access point starts, the processing unit 210 performs a process of searching for the external access point by SSID scanning (steps S41 and S42). An SSID (Service Set Identifier) ​​is an identifier of an external access point in a wireless LAN, and an SSID scan is a process of searching for the identifier of this external access point.

[0039] Next, it is determined whether or not an external access point to be connected is found by SSID scanning (step S43). The external access point to be connected is an external access point to be the target of reconnection processing, for example, an external access point that was connected before the reconnection processing. If the external access point to be connected cannot be found, it is determined whether or not any other external access point other than the external access point to be connected can be found (step S44). If no other external access point can be found, a self-repair reboot is executed (step S45). On the other hand, if another external access point can be found, the reconnection processing is terminated without executing a self-repair reboot. For example, it is difficult to imagine a situation in which there are no other external access points around the electronic device 200 in addition to the external access point to be connected. Therefore, in such a situation, it is highly likely that an error has occurred in the wireless connection due to, for example, a malfunction of the wireless communication unit 220 or a malfunction of the driver software, and therefore a self-repair reboot is executed. In this way, the driver software is uninstalled and installed, or the power supply to the wireless communication unit 220 is cut off and resumed by the self-repair reboot. Therefore, even if there is a problem with the wireless communication unit 220 or the driver software, it is possible to eliminate the problem and recover from the wireless connection error state.

[0040] When the external access point to which the electronic device 200 wants to connect next is found, the processing unit 210 performs a process of transmitting an authentication request (step S46). The authentication request is an authentication request in a wireless LAN. The authentication process is realized by exchanging authentication information, which is authentication information, between the electronic device 200 and the external access point. After transmitting the authentication request, the processing unit 210 judges whether or not a response to the authentication request is received (step S47). If the response to the authentication request is not received, the processing unit 210 executes a self-repair reboot (step S48). That is, if the external access point to which the electronic device wants to connect is found by an SSID scan and an authentication request is sent to the external access point, but a response to the authentication request is not received, it is considered that some kind of malfunction has occurred in the wireless communication unit 220 or the driver software. Therefore, in this case, the self-repair reboot is executed. In this way, the driver software is uninstalled and installed, or the power supply to the wireless communication unit 220 is cut off and restarted by the self-repair reboot, so that the wireless connection can be restored from an error state.

[0041] When a response to the authentication request is received, the processing unit 210 judges whether the status of the response to the authentication request is "access" or not (step S49). If the status of the response to the authentication request is not "access", it is considered that the wireless connection to the external access point was normally established but the authentication failed, and therefore the reconnection process is terminated without executing a self-repair reboot.

[0042] If the status of the response to the authentication request is "access", the processing unit 210 performs processing to transmit a connection request (step S50). The connection request is an association request in a wireless LAN. That is, when the external access point determines that the electronic device 200 is a valid client through authentication, the processing unit 210 of the electronic device 200, which is the client, transmits a connection request to the external access point. After transmitting the connection request, the processing unit 210 determines whether or not a response to the connection request has been received (step S51). If the response to the connection request cannot be received, a self-repair reboot is executed (step S52). That is, if the external access point to which the user wishes to connect is found through an SSID scan, authentication is successful, and a connection request is transmitted, but a response to the connection request cannot be received, it is considered that some kind of malfunction has occurred in the wireless communication unit 220 or the driver software. Therefore, in this case, a self-repair reboot is executed. In this way, the self-repair reboot will uninstall and install driver software, or cut off and restart the power supply to the wireless communication unit 220, making it possible to recover from an error state in the wireless connection.

[0043] When a response to the connection request is received, the processing unit 210 judges whether the status of the response to the connection request is access (step S53). If the status of the response to the connection request is not access, it is considered that the wireless communication and authentication with the external access point were performed normally, but the connection failed, and therefore the reconnection process is terminated without executing a self-repair reboot.

[0044] On the other hand, if the response status to the connection request is success, the processing unit 210 executes a four-way handshake (step S54). The four-way handshake is a procedure for exchanging encryption keys between the electronic device 200, which is a client, and the external access point, and involves exchanging encryption keys of PTK (Pairwise Transient Key) and GTK (Group Temporal Key). If the four-way handshake is successful, it is determined that the reconnection is successful (steps S55, S56). On the other hand, if the four-way handshake is not successful, the reconnection process is terminated without executing a self-repair reboot.

[0045] As described above, in this embodiment, the processing unit 210 performs a search process for an external access point when an error occurs in a wireless connection with an external access point. That is, as shown in step S42 of FIG. 8, the processing unit 210 performs a search process for an external access point by SSID scanning. Then, as shown in steps S43, S44, and S45, when the processing unit 210 cannot find either the external access point in which the wireless connection error occurred or other external access points, it performs a self-repair reboot. For example, a situation in which not only the external access point to be reconnected but also other external access points cannot be found means a situation in which there are no external access points around the electronic device 200, which is a situation that is difficult to imagine. Therefore, in such a situation, it is considered that an error occurs in the wireless connection due to a malfunction of the wireless communication unit 220, and therefore a self-repair reboot is performed. As a result, the driver software is uninstalled and installed, or the power supply to the wireless communication unit 220 is cut off and restarted, making it possible to recover from the error state of the wireless connection.

[0046] In this embodiment, the processing unit 210 performs a search process for an external access point when an error occurs in a wireless connection with an external access point. Then, when the processing unit 210 can find an external access point as shown in step S43, but cannot receive a response to an authentication request to the external access point as shown in step S47, the processing unit 210 performs a self-repair reboot as shown in step S48. For example, when an external access point to be reconnected is found and an authentication request is sent to the external access point, but a response to the authentication request cannot be received, it is considered that some kind of malfunction has occurred in the wireless communication unit 220, etc. Therefore, in this case, it is considered that an error has occurred in the wireless connection due to the wireless communication unit 220, etc., and therefore a self-repair reboot is performed. This makes it possible to recover from an error state of the wireless connection.

[0047] In this embodiment, the processing unit 210 performs a search process for an external access point when an error occurs in a wireless connection with an external access point. Then, when the processing unit 210 can find an external access point as shown in step S43, but cannot receive a response to a connection request to the external access point as shown in step S51, the processing unit 210 performs a self-repair reboot as shown in step S52. Specifically, when an external access point can be found and authentication with the external access point is successful, but a response to a connection request to the external access point cannot be received, the processing unit 210 performs a self-repair reboot. For example, when an external access point to be reconnected is found and a connection request is sent to the external access point, but a response to the connection request cannot be received, it is considered that some kind of malfunction has occurred in the wireless communication unit 220 or the like. Therefore, in this case, it is considered that an error has occurred in the wireless connection due to the wireless communication unit 220 or the like, and therefore a self-repair reboot is performed. This makes it possible to recover from an error state of the wireless connection.

[0048] 8 and 9, the processing unit 210 does not always perform a self-repair reboot during the reconnection process, but performs the self-repair reboot when a predetermined execution condition is satisfied. For example, the processing unit 210 performs the self-repair reboot when the execution condition of step S44, step S47, or step S51 is satisfied. In this way, it is possible to prevent a situation in which a self-repair reboot is unconditionally performed during the reconnection process and other processing of the electronic device 200 is hindered. Therefore, it is possible to simultaneously achieve recovery from an error state of the wireless connection by the self-repair reboot and prevention of a decrease in the processing efficiency of the electronic device 200 by the unconditional self-repair reboot.

[0049] 4. Internal Access Points Fig. 10 shows another example of the configuration of the communication system 10. The communication system 10 in Fig. 10 is a system capable of wireless communication via an internal access point. Fig. 10 shows an example in which the electronic device 200 is a printer and the terminal device 100 is a mobile terminal device such as a smartphone.

[0050] For example, the terminal device 100 and the electronic device 200 can both operate as stations. The terminal device 100 and the electronic device 200 connect to an external access point AP, respectively, to perform communication between the terminal device 100 and the electronic device 200. The external access point AP is, for example, a wireless router having a router function. In FIG. 10, the communication between the terminal device 100 and the electronic device 200 via the external access point AP is represented as a first wireless communication CM1. As shown in FIG. 10, the first wireless communication CM1 is realized by a third wireless communication CM3 between the terminal device 100 and the external access point AP, and a fourth wireless communication CM4 between the electronic device 200 and the external access point AP.

[0051] Furthermore, the electronic device 200 can activate an internal access point (not shown). The internal access point can be expressed as a software access point. The terminal device 100 connects to the internal access point of the electronic device 200. In FIG. 10, the direct connection between the terminal device 100 and the electronic device 200 using the internal access point is expressed as a second wireless communication CM2.

[0052] In the case of the communication system 10 in Fig. 10, the wireless communication unit 220 in Fig. 2 can include a first wireless communication unit and a second wireless communication unit, not shown. The first wireless communication unit performs wireless communication when the electronic device 200 operates as a Wi-Fi station. For example, the first wireless communication unit performs a fourth wireless communication CM4, which is communication with an external access point AP. The second wireless communication unit performs wireless communication when the electronic device 200 operates as a Wi-Fi access point. The second wireless communication unit performs the second wireless communication CM2 by starting an internal access point and accepting a connection from the terminal device 100.

[0053] The wireless communication unit 220 performs wireless communication in accordance with the Wi-Fi standard. The wireless communication unit 220 supports the Wi-Fi Direct (registered trademark) method. The first wireless communication unit and the second wireless communication unit may be realized by different wireless communication ICs. Alternatively, the first wireless communication unit and the second wireless communication unit may be realized by a common wireless communication IC. For example, the first wireless communication unit and the second wireless communication unit may be realized by one wireless communication IC performing the first wireless communication CM1 and the second wireless communication CM2 in a time-division manner. The wireless communication unit 220 may be capable of performing wireless communication in accordance with a standard other than the Wi-Fi standard.

[0054] Thus, in this embodiment, the wireless communication unit 220 performs the first wireless communication via the external access point AP and the second wireless communication via the internal access point. The processing unit 210 performs the self-repair reboot on condition that the wireless communication unit 220 has not started the internal access point. For example, the processing unit 210 performs the self-repair reboot on condition that the second wireless communication CM2 of the direct connection via the internal access point has not been performed. That is, when the second wireless communication CM2 of the direct connection is being performed, the self-repair reboot is not performed even if the execution condition of the self-repair reboot is satisfied. For example, when the internal access point is started, the electronic device 200 becomes an access point and accepts jobs such as print jobs from the terminal device 100. If the self-repair reboot is performed without the user's consent while the user is directly connecting the terminal device 100 to the electronic device 200 via the second wireless communication CM2 and printing is being performed by the electronic device 200, a situation occurs in which the printing is interrupted against the user's will. Therefore, the processing unit 210 performs the self-repair reboot on condition that the internal access point has not been started. In this way, it is possible to prevent malfunctions such as an unintended self-repair reboot being executed while the second wireless communication CM2 is being performed via the internal access point, resulting in the interruption of a job using the internal access point.

[0055] FIG. 11 is a flowchart for explaining a process of performing a self-repair reboot on the condition that the internal access point is not activated. First, the processing unit 210 judges whether or not the internal access point of the wireless communication unit 220 is activated (step S61). For example, when the user of the terminal device 100 performs an operation to select a direct connection to the electronic device 200, the internal access point is activated. Then, when the processing unit 210 judges that the internal access point is not activated, it turns on the permission flag for the self-repair reboot (step S62). On the other hand, when it is judged that the internal access point is not activated, it turns off the permission flag for the self-repair reboot (step S63). Then, when the permission flag for the self-repair reboot is off, the processing unit 210 does not execute the self-repair reboot even if the execution conditions of step S44, step S47, or step S51 in FIG. 8 and FIG. 9 are satisfied. On the other hand, when the permission flag for the self-repair reboot is on, the processing unit 210 executes the self-repair reboot when the execution conditions of step S44, step S47, or step S51 are satisfied. This makes it possible to realize a process for performing a self-repair reboot on the condition that the internal access point is not activated.

[0056] As described above, the electronic device of the present embodiment includes a wireless communication unit that performs wireless communication with an external access point, and a processing unit that performs communication control of the wireless communication unit. When an error occurs in the wireless connection with the external access point, the processing unit uninstalls the driver software that operates the wireless communication unit and installs the driver software after the uninstallation as a self-repair reboot.

[0057] According to this embodiment, when an error occurs in the wireless connection with the external access point, the driver software of the wireless communication unit is uninstalled and installed as a self-repair reboot. As a result, even if there is a problem with the wireless communication unit controlled by the driver software or the driver software, the driver software is uninstalled and the driver software is reinstalled. Then, the wireless communication unit is controlled by the reinstalled driver software, so that the above-mentioned problem can be resolved. This enables self-repair of wireless communication via the external access point, and enables automatic recovery from an error state of the wireless connection.

[0058] In addition, in this embodiment, the processing unit may perform a self-repair reboot by uninstalling the driver software, cutting off the power supply to the wireless communication unit after the uninstallation, resuming the power supply after the power supply was cut off, and installing the driver software after the power supply was resumed.

[0059] By cutting off and restarting the power supply in this manner, it becomes possible to initialize the settings of the wireless communication unit, etc., thereby increasing the possibility of recovery from an error state in the wireless connection.

[0060] In addition, in this embodiment, if the error is not resolved even after uninstallation and installation, the processing unit may perform a self-repair reboot by cutting off the power supply to the wireless communication unit and resuming the power supply after the power supply was cut off.

[0061] In this way, even if the wireless connection error is not resolved by the self-repair reboot through uninstallation and installation, it is possible to increase the possibility of recovery from the wireless connection error state by performing the next self-repair reboot, which includes cutting off and resuming the power supply.

[0062] In addition, in this embodiment, the processing unit may perform a search process for an external access point when an error occurs in the wireless connection with an external access point, and may perform a self-repair reboot when neither the external access point in which the wireless connection error occurred nor other external access points can be found.

[0063] For example, a situation in which not only an external access point with a wireless connection error but also other external access points cannot be found is difficult to imagine, so in such a situation, performing a self-repair reboot makes it possible to properly recover from the wireless connection error state.

[0064] In addition, in this embodiment, when an error occurs in the wireless connection with an external access point, the processing unit performs a search process for the external access point, and when the external access point is discovered but a response to the authentication request to the external access point is not received, the processing unit may perform a self-repair reboot.

[0065] For example, if an external access point is discovered and an authentication request is sent to that external access point, but no response is received, it is likely that some malfunction has occurred in the wireless communication unit, and in this case, by performing a self-repair reboot, it becomes possible to properly recover from the error state of the wireless connection.

[0066] In addition, in this embodiment, when an error occurs in the wireless connection with an external access point, the processing unit performs a search process for an external access point, and if the external access point is discovered but a response to the connection request to the external access point is not received, the processing unit may perform a self-repair reboot.

[0067] For example, if an external access point is discovered and a connection request is sent to that external access point, but no response is received, it is likely that some kind of malfunction has occurred in the wireless communication unit, and in this case, by performing a self-repair reboot, it becomes possible to properly recover from the error state of the wireless connection.

[0068] In the present embodiment, the processing unit may perform a self-repair reboot in a reconnection process when a wireless connection with an external access point that was in a connected state is disconnected.

[0069] In this way, a self-repair reboot can be automatically executed during reconnection processing when a wireless connection is lost, thereby improving user convenience.

[0070] In addition, in this embodiment, the wireless communication unit performs a first wireless communication via an external access point and a second wireless communication via an internal access point, and the processing unit may perform a self-repair reboot on the condition that the wireless communication unit has not activated the internal access point.

[0071] This makes it possible to prevent problems such as an unintended self-repair reboot being performed while a second wireless communication is being performed via the internal access point, resulting in the interruption of a job using the internal access point.

[0072] This embodiment also relates to a communication control method for performing wireless communication with an external access point via a wireless communication unit, which determines whether or not an error has occurred in the wireless connection with the external access point, and if an error has occurred in the wireless connection with the external access point, uninstalls driver software that operates the wireless communication unit and installs the driver software after the uninstallation as a self-repair reboot.

[0073] Although the present embodiment has been described in detail as above, it will be easily understood by those skilled in the art that many modifications are possible that do not substantially deviate from the novel matters and effects of the present embodiment. Therefore, all such modifications are intended to be included in the scope of the present disclosure. For example, a term described at least once in the specification or drawings together with a different term having a broader meaning or synonymy can be replaced with that different term anywhere in the specification or drawings. In addition, all combinations of the present embodiment and modifications are also included in the scope of the present disclosure. In addition, the configuration and operation of electronic devices, etc. are not limited to those described in the present embodiment, and various modifications are possible. [Explanation of symbols]

[0074] 10: communication system, 100: terminal device, 200: electronic device, 210: processing unit, 212...CPU, 214...interface, 220... wireless communication unit, 222... wireless communication IC, 224: interface, 226: RAM, 230: display unit, 240...Operation unit, 250...Printing unit, 260...Storage unit, 262...RAM, 264...ROM, ANT...antenna section, AP...external access point, BS...bus, CM1: first wireless communication, CM2: second wireless communication, CM3: third wireless communication, CM4: Fourth wireless communication

Claims

1. a wireless communication unit that performs wireless communication with an external access point; A processing unit that performs communication control of the wireless communication unit; Including, The processing unit includes: When an error occurs in the wireless connection with the external access point, the electronic device performs a self-repair reboot by uninstalling driver software that operates the wireless communication unit, cutting off the power supply to the wireless communication unit after the uninstallation, resuming the power supply after the power supply has been cut off, and installing the driver software after the power supply has been resumed.

2. a wireless communication unit that performs wireless communication with an external access point; A processing unit that performs communication control of the wireless communication unit; Including, The processing unit includes: When an error occurs in the wireless connection with the external access point, uninstalling driver software that operates the wireless communication unit and installing the driver software after the uninstallation as a self-repair reboot; An electronic device characterized in that, if the error is not resolved even after performing the uninstallation and installation, the self-repair reboot is performed by cutting off the power supply to the wireless communication unit and resuming the power supply after the power supply was cut off.

3. In claim 1 or 2, The processing unit includes: An electronic device characterized in that, when an error occurs in the wireless connection with the external access point, a search process for the external access point is performed, and when the external access point is discovered but a response to an authentication request to the external access point is not received, the electronic device performs the self-repair reboot.

4. In any one of claims 1 to 3, The processing unit includes: An electronic device characterized in that, when an error occurs in the wireless connection with the external access point, a search process for the external access point is performed, and when the external access point is discovered but a response to a connection request to the external access point is not received, the electronic device performs the self-repair reboot.

5. In any one of claims 1 to 4, The processing unit includes:

13. An electronic device comprising: an electronic device that performs a self-repair reboot in a reconnection process when the wireless connection with the external access point that was in a connected state is disconnected.

6. a wireless communication unit that performs wireless communication with an external access point; A processing unit that performs communication control of the wireless communication unit; Including, The wireless communication unit includes: performing a first wireless communication via the external access point and a second wireless communication via an internal access point; The processing unit includes: An electronic device characterized in that when an error occurs in the wireless connection with the external access point, the electronic device performs a self-repair reboot by uninstalling driver software that operates the wireless communication unit and installing the driver software after the uninstallation, provided that the wireless communication unit has not started the internal access point.

7. In claim 1, The processing unit includes: An electronic device characterized in that, when an error occurs in the wireless connection with the external access point, a search process for the external access point is performed, and when neither the external access point in the wireless connection where the error occurred nor any other external access point is found, the electronic device performs the self-repair reboot.

8. A communication control method for wirelessly communicating with an external access point by a wireless communication unit, comprising: determining whether an error has occurred in a wireless connection with the external access point; A communication control method characterized in that, when an error occurs in the wireless connection with the external access point, a self-repair reboot is performed by uninstalling driver software that operates the wireless communication unit, cutting off the power supply to the wireless communication unit after the uninstallation, resuming the power supply after the power supply has been cut off, and installing the driver software after the power supply has been resumed.

9. A communication control method for wirelessly communicating with an external access point by a wireless communication unit, comprising: determining whether an error has occurred in a wireless connection with the external access point; When the error occurs in the wireless connection with the external access point, uninstalling driver software that operates the wireless communication unit and installing the driver software after the uninstallation as a self-repair reboot; A communication control method characterized in that, if the error is not resolved even after performing the uninstallation and installation, the self-repair reboot is performed by cutting off the power supply to the wireless communication unit and resuming the power supply after the power supply has been cut off.

10. A communication control method for wirelessly communicating with an external access point by a wireless communication unit, comprising: performing a first wireless communication via the external access point and a second wireless communication via an internal access point by the wireless communication unit; determining whether an error has occurred in a wireless connection with the external access point; A communication control method characterized by the fact that, when an error occurs in the wireless connection with the external access point, a self-repair reboot is performed by uninstalling driver software that operates the wireless communication unit, and installing the driver software after the uninstallation, provided that the wireless communication unit has not started up the internal access point.

Citation Information

Patent Citations

  • Exception recovery method and device for apparatus with network interface card and memory device

    CN101430669A

  • Method and system for automatically restoring wireless access point, switch and storage medium

    CN107995644A

  • Device management system

    JP2006048113A

  • Device information management system, computer and program

    JP2006236062A

  • Wireless base station device, wireless device, maintenance system, maintenance method, and program

    JP2012209797A