Electronic device, control method of electronic device, storage medium, and computer program product
By designing an electronic device for access point (AP) handover, the problem of difficulty in effectively controlling dynamic handover to connect to the destination AP in the prior art is solved, and a more stable and secure wireless connection handover is achieved.
Patent Information
- Application Number
- CN202411557622.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-06
- Filing Date
- 2024-11-04
- Publication Date
- 2025-05-06
AI Technical Summary
The prior art is difficult to effectively control when dynamically switching the connection destination access point (AP), to ensure the security and stability of the connection, especially when a request to change the connection destination is received.
An electronic device is designed, including a connecting unit, a change unit and a control unit. The connection unit is used to connect to an access point (AP), and the change unit switches the AP of the connection destination according to the received request to change the connection destination, and the control unit suppresses the switching of the candidate AP that cannot be connected in the current safe mode.
In this way, it is possible to more appropriately respond to received requests to change the connection destination, ensuring handover to an AP with a better communication environment while maintaining a secure connection with the AP.
Smart Images

Figure CN119946761A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an electronic device capable of changing an access point (AP) serving as a connection destination based on a request to change the connection destination received from the AP, a control method of the electronic device, a computer-readable storage medium storing a program, and a computer program product. Background Art
[0002] In an extended service set (ESS) composed of multiple access points (APs), there is a technology for dynamically switching the connection destination AP so that the AP and the station (STA) can efficiently exchange data. When it is determined that the connection destination AP should be switched based on the congestion situation of the AP to which the STA is connected, the availability of other APs, radio wave conditions, etc., the currently connected AP sends a connection AP change request to the STA. When the STA receives the AP change request, it can connect to the appropriate AP by switching the connection destination AP according to the request.
[0003] Japanese Patent Gazette No. 2021-175068 discloses the following processing of sending a request to change the connection destination to a currently connected wireless sub-device as a router with AP function. A mobile router (MR1) that can be connected to multiple wireless sub-devices confirms whether the wireless sub-device terminal supports IEEE802.11v. Whether the wireless sub-device terminal supports IEEE802.11v can be determined based on the association request frame sent when the wireless sub-device terminal is wirelessly connected to MR1. If the wireless sub-device terminal supports IEEE802.11v, a BSS transition management (BTM, BSS Transition Management) request frame is sent to the corresponding wireless sub-device terminal. The BSS transition candidate list entry field of the BTM request frame specifies the BSSID of the parent router RT2 as the connection destination. This prompts the sub-device terminal to switch the connection destination, and the wireless sub-device terminal switches the connection destination from MR1 to RT2 based on the received BTM request frame. Summary of the invention
[0004] The present invention provides an electronic device capable of performing more appropriate control in response to a request to change a connection destination received from an AP, a control method of the electronic device, a computer-readable storage medium storing a program, and a computer program product.
[0005] The present invention provides an electronic device in its first aspect, comprising: at least one memory and at least one processor, which functions as: a connection unit, which is configured to connect to a first access point (AP) based on a first security mode; a change unit, which is configured to change the AP used as a connection destination based on a change request of the AP used as a connection destination, the change request being received from a currently connected AP; and a control unit, which is configured to control to suppress the following processing: a change performed by the change unit on an AP that cannot be connected in a security mode that can be used by the connection unit among candidate APs to be changed by the change unit to the AP used as the connection destination.
[0006] In its second aspect, the present invention provides an electronic device, which includes: a connection unit, which is configured to connect to a first access point (AP) based on a first security mode; a change unit, which is configured to change the AP used as a connection destination based on a change request of the AP used as a connection destination, the change request being received from a currently connected AP; and a control unit, which is configured to suppress the change unit from changing to a second AP in at least one of the following cases: (i) a case where a second security mode used in a network formed by a second AP among candidate APs used as candidates to be changed to in the change request is a predetermined security mode restricted by the electronic device; (ii) a case where the electronic device does not support the second security mode.
[0007] In its third aspect, the present invention provides a control method for an electronic device, the method comprising: a connection step of connecting to a first access point (AP) based on a first security mode; a change step of changing the AP used as a connection destination based on a change request of the AP used as a connection destination, the change request being received from a currently connected AP; and a control step of controlling to suppress the following processing: in the change step, a change is made to an AP that cannot be connected in a security mode that can be used in the connection step among candidate APs used as candidates to be changed to in the change step, to the AP used as the connection destination.
[0008] In its fourth aspect, the present invention provides a computer-readable storage medium storing a program configured to cause a computer to perform the following steps: a connection step of connecting to a first access point (AP) based on a first security mode; a change step of changing the AP used as a connection destination based on a change request of the AP used as a connection destination, the change request being received from a currently connected AP; and a control step of controlling to suppress the following processing: a change of an AP used as a connection destination that cannot be connected in a security mode that can be used in the connection step among candidate APs to be changed to in the change step.
[0009] The present invention, in its fifth aspect, provides a computer program product, which is constructed to cause a computer to execute the following steps: a connection step of connecting to a first access point (AP) based on a first security mode; a change step of changing the AP used as a connection destination based on a change request of the AP used as a connection destination, the change request being received from the currently connected AP; and a control step of controlling to suppress the following processing: in the change step, a change is made to an AP that cannot be connected in a security mode that can be used in the connection step among candidate APs used as candidates to be changed to in the change step, and is used as the AP used as the connection destination.
[0010] According to the present invention, more appropriate control can be performed in response to a request to change a connection destination received from an AP.
[0011] Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a diagram showing a configuration example of a system.
[0013] Figure 2A and Figure 2B is a diagram showing a configuration example of an MFP.
[0014] Figure 3A , Figure 3B , Figure 3C and Figure 3D is a diagram showing an example of display performed in the console unit of the MFP.
[0015] Figure 4A and Figure 4B is a diagram showing the configuration of a mobile terminal device.
[0016] Figure 5 is a diagram showing the structure of an access point.
[0017] Figure 6 is a sequence diagram showing processing based on a request to change a connection destination.
[0018] Figure 7 is a flowchart illustrating an example of processing performed in response to a measurement request, a change request, and the like.
[0019] Figure 8 is a flowchart illustrating an example of a process of storing a security mode.
[0020] Fig. 9 is a flowchart showing an example of processing based on determination of a security mode.
[0021] Fig.10 is a diagram showing an example of a screen for setting security mode restrictions. DETAILED DESCRIPTION
[0022] Hereinafter, the embodiments will be described in detail with reference to the accompanying drawings. Please note that the following embodiments are not intended to limit the scope of the claimed invention. A plurality of features are described in the embodiments, but the invention is not limited to all of these features, and a plurality of these features may be appropriately combined. In addition, in the accompanying drawings, the same reference numerals are given to the same or similar configurations, and their repeated descriptions are omitted.
[0023] Incidentally, in the connection destination AP change request from the AP, APs as connection destination switching candidates may include APs that are not preferred as the connection destination of the STA. Therefore, it is necessary to devise a way to switch the STA to an appropriate AP.
[0024] System Configuration
[0025] Figure 1 An example of the configuration of a system according to the present embodiment is shown. In one example, the system is a wireless communication system in which a plurality of communication devices can wirelessly communicate with each other. Figure 1 In the example shown, a mobile terminal device 104 and an MFP 100 used as communication devices, APs 101 and 102 as access points, a DHCP server 103, a DNS server 105, and a network 110 are provided. Note that AP 101 and AP 102 may be referred to as "AP 1" and "AP2", respectively. The mobile terminal device 104 is a device having a wireless communication function using a wireless LAN or the like. "Wireless LAN" may be referred to as "WLAN" hereinafter. The mobile terminal device 104 may be a personal information terminal such as a personal digital assistant (PDA), a mobile phone (smartphone), a digital camera, a personal computer, or the like.
[0026] MFP 100 is an electronic device and an information processing apparatus. MFP 100 is also a printing device having a printing function, and may also have a reading function (scanner), a fax function, a telephone function, and the like. MFP 100 according to the present embodiment also has a communication function capable of wirelessly communicating with a mobile terminal device 104. Although the present embodiment describes the case where MFP 100 is used as an example, the construction is not limited thereto. For example, a scanner device, a projector, a mobile terminal, a smart phone, a laptop PC, a tablet terminal, a PDA, a digital camera, a music playback device, a television, a smart speaker, and the like having a communication function may be used instead of MFP 100. Please note that "MFP" is an acronym for "Multi Function Peripheral".
[0027] AP 101 is set separately from mobile terminal device 104 and MFP 100 (AP 101 is set outside mobile terminal device 104 and MFP 100), and is used as a WLAN base station device. A communication device with a WLAN communication function can communicate in WLAN infrastructure mode via AP 101. Please note that access point is sometimes referred to as "AP" hereinafter. Infrastructure mode may also be referred to as "wireless infrastructure mode". AP 101 communicates wirelessly with communication devices that are allowed (authenticated) to be connected to itself, and relays wireless communications between the communication device and other communication devices. AP 101 can be connected to a wired communication network, for example, and can relay communications between a communication device connected to the wired communication network and another communication device wirelessly connected to AP 101.
[0028] AP 102 has the same function as AP 101, and MFP 100 switches its connection from AP 101 to AP 102 as needed. The DHCP server is connected to MFP 100 via AP 101 and network 110, and provides services to MFP 100 by responding to requests from MFP 100. Figure 1 The configuration in which the DHCP server 103 is connected as a device separate from the AP 101 and the AP 102 is shown, but the configuration may be that the AP 101 and the AP 102 have a DHCP server function. The DNS server 105 is connected to the MFP 100, the mobile terminal device 104, etc. via the AP 101 and the network 110, and provides a name resolution service by responding to requests from the MFP 100, the mobile terminal device 104, etc. Here, the network 110 may be the Internet, or may be a private network within an enterprise, a mobile phone network, etc.
[0029] External structure of MFP
[0030] Figure 2AAn example of the external configuration of the MFP 100 is shown. The MFP 100 includes, for example, a manuscript table 201, a manuscript cover 202, a printing paper insertion port 203, a printing paper discharge port 204, and a console unit 205. The manuscript table 201 is a platform for placing a manuscript to be read. The manuscript cover 202 is a cover for fastening a manuscript placed on the manuscript table 201 and for ensuring that light from a light source that illuminates the manuscript does not escape to the outside when the manuscript is read. The printing paper insertion port 203 is an insertion port where various sizes of paper can be set. The printing paper discharge port 204 is a discharge port for discharging printed paper. The paper set in the printing paper insertion port 203 is conveyed to the printing unit of the printing paper one sheet at a time, and then discharged from the printing paper discharge port 204. The console unit 205 is configured to include keys such as a text input key, a cursor key, an OK key, a cancel key, etc., as well as an LED, an LCD, etc., and is configured so that the user can start various functions of the MFP, manipulate various settings, etc. The console unit 205 may also be configured to include a touch panel display. The MFP 100 has a WLAN wireless communication function and is therefore also configured to include a wireless communication antenna 206 for the wireless communication, but the antenna 206 is not necessarily visible from the outside. Like the mobile terminal device 104, the MFP 100 can perform wireless communication via WLAN on a frequency band such as the 2.4 GHz band, the 5 GHz band, or the like.
[0031] MFP structure
[0032] Figure 2B An example of the configuration of the MFP 100 is shown. The MFP 100 is configured to include a main unit 211 that performs main control of the device itself and a wireless unit 226, which is a single communication module that performs WLAN communication using at least one common antenna. For example, the MFP 100 is also configured to include a modem 229 for wired communication. The main unit 211 is simply a unit that includes functional blocks other than the wireless unit 226 and the modem 229. The main unit 211 is configured to include, for example, a CPU 212 (central processing unit), a ROM 213, a RAM 214, a nonvolatile memory 215, an image memory 216, a reading control unit 217, a data conversion unit 218, a reading unit 219, and an encoding / decoding processing unit 221. The main unit 211 also includes, for example, a printing unit 222, a sheet feeding unit 223, a printing control unit 224, and a console unit 220. The functional units in the main unit 211 are connected to each other through a system bus 230 managed by the CPU 212. In addition, the main unit 211 and the wireless unit 226 are connected through, for example, a dedicated bus 225 , and the main unit 211 and the modem 229 are connected through, for example, a bus 228 .
[0033] The CPU 212 is a system control unit including at least one processor, and controls the entire MFP 100. The processing of the MFP 100 described below is realized, for example, by the CPU 212 executing a program stored in the ROM 213. Note that dedicated hardware for each process may be provided. The ROM 213 stores a control program executed by the CPU 212, an embedded OS program, and the like. In the present embodiment, the CPU 212 performs software control such as scheduling, task switching, and the like by executing each control program stored in the ROM 213 under the management of the embedded OS, which is also stored in the ROM 213.
[0034] The RAM 214 is composed of an SRAM or the like. The RAM 214 stores data such as program control variables, data such as setting values registered by a user, and management data of the MFP 100. In addition, the RAM 214 can be used as various types of work buffers. The nonvolatile memory 215 is composed of a memory such as a flash memory, for example, and continues to store data even when the MFP 100 is powered off. The image memory 216 is composed of a memory such as a DRAM. The image memory 216 stores image data received through the wireless unit 226, image data processed by the encoding / decoding processing unit 221, and the like. Please note that the memory configuration of the MFP 100 is not limited to the above configuration. The data conversion unit 218 analyzes data in various formats, converts the image data into print data, and the like.
[0035] The reading control unit 217 controls the reading unit 219 (e.g., a contact image sensor (CIS)) to optically read the document placed on the document table 201. The reading control unit 217 converts the image obtained by optically reading the document into electrical image data (image signal) and outputs the image data. At this time, the reading control unit 217 may perform various types of image processing such as binarization, halftone processing, etc. before outputting the image data.
[0036] The console unit 220 is a reference Figure 2A The described console unit 205 displays items in the display under the display control of the CPU 212, generates signals in response to accepting user operations, and the like.
[0037] The encoding / decoding processing unit 221 performs encoding processing, decoding processing, scaling processing, and the like on image data (JPEG, PNG, and the like) processed by the MFP 100 .
[0038] The sheet feeding unit 223 accommodates sheets to be printed. The sheet feeding unit 223 can supply sheets placed therein under the control of the print control unit 224. The sheet feeding unit 223 may include a plurality of sheet feeding units to accommodate a plurality of types of sheets in a single device, and may control from which sheet feeding unit a sheet is fed under the control of the print control unit 224.
[0039] The print control unit 224 applies various types of image processing such as smoothing processing, print darkness correction processing, color correction, etc. to the image data to be printed, and outputs the processed image data to the print unit 222. The print unit 222 is configured to be able to perform inkjet printing processing, for example, so that the ink supplied from the ink cartridge is ejected from the print head and the image is recorded on a recording medium such as paper. Note that the print unit 222 may be configured to be able to perform other types of printing processing such as electrophotographic printing. The print control unit 224 may also periodically read out information on the print unit 222 and update the current status information stored in the RAM 214, including the remaining amount of the ink cartridge, the status of the print head, etc.
[0040] For example, the wireless unit 226 is a unit capable of providing a WLAN communication function, and is capable of providing a function equivalent to the WLAN unit 401 combination of the mobile terminal device 104. In other words, the wireless unit 226 converts data into data packets and sends the data packets to other devices according to the WLAN standard, and also restores data packets from other external devices to their original data and outputs the data to the CPU 212. The wireless unit 226 is capable of communicating as a station compliant with the IEEE802.11 standard series. The wireless unit 226 is particularly capable of communicating as a station compliant with IEEE802.11a / b / g / n / ac / ax. "Station" may be referred to as "STA" hereinafter. The wireless unit 226 is also capable of communicating as a STA supporting Wi-Fi Agile Multiband (registered trademark).
[0041] The wireless unit 226 supports IEEE802.11ax, i.e., Wi-Fi 6 (registered trademark), and is capable of processing in accordance with IEEE802.11ax. In other words, the MFP 100 is capable of processing as a STA that supports (complies with) OFDMA, and / or is capable of operating (processing) as a STA that supports (complies with) TWT. "OFDMA" is an acronym for "Orthogonal Frequency-Division Multiple Access". "TWT" is an acronym for "Target WakeTime". Supporting TWT means adjusting the time of data communication from the parent device to the STA. When there is no need to wait for signal reception, the wireless unit 226 (MFP 100) used as a STA switches the communication function to a sleep state. This makes it possible to suppress power consumption. The wireless unit 226 also supports Wi-Fi 6E (registered trademark). In other words, the wireless unit 226 is also capable of communicating in the 6GHz band (5.925GHz to 7.125GHz). Unlike the 5 GHz band, the 6 GHz band does not have a dynamic frequency selection (DFS) band. This will prevent communications in the 6 GHz band from being disconnected due to DFS standby time, which is expected to improve communications.
[0042] Note that the mobile terminal device 104 and the MFP 100 can perform P2P (WLAN) communication based on WFD, and the wireless unit 226 has a software access point (software AP) function or a group owner function. In other words, the wireless unit 226 can build a P2P communication network, set a channel used in P2P communication, etc.
[0043] MFP console unit
[0044] FIG. 3A to FIG. 3D An example of a screen displayed in the display (touch screen) included in the console unit 220 of the MFP 100 is schematically shown. Figure 3A An example of a home screen displayed when the MFP 100 is powered on and an operation such as printing, scanning, etc. is not in progress ("idle state" or "standby state") is shown. Figure 3A , display items indicating "Copy", "Scan", and "Cloud" (menu items) are displayed. "Cloud" is a menu item related to a cloud function using Internet communication. One of the menu items can be selected by operating a key, a touch panel, or the like to perform settings in MFP 100, start execution of a function, and the like. By accepting the Figure 3A By operating the keys, touch panel, etc. in the main screen shown in FIG. , the MFP 100 can seamlessly display the Figure 3A The screen shown in the figure is different from the screen shown in the figure.
[0045] Figure 3B is a display example of another part of the main screen, and is in response to Figure 3A In the state shown, another page of the main screen is displayed, and the screen is switched to by operating (swiping left or right). Figure 3B , display items (menu items) indicating "communication settings", "print" and "photo" are displayed. When one of these menu items is selected, a function corresponding to the selected menu item, ie, one of the print function, the photo function and the communication settings, is executed.
[0046] Figure 3C is when Figure 3B An example of a display of a menu screen for communication settings that is displayed when "Communication Settings" is selected in the screen shown. In the communication settings menu screen, "Wireless LAN", "Wired LAN", "Wireless Direct", "Bluetooth", and "General Settings" are displayed as menu items (options). "Wireless LAN", "Wired LAN", and "Wireless Direct" are menu items for LAN settings, and these items can be used to set settings such as wired connection settings, settings for enabling and disabling wireless infrastructure mode, settings for enabling and disabling P2P modes (such as WFD and software AP modes), etc. When the "Wireless LAN" item is selected and the wireless LAN is enabled by user operation, the wireless infrastructure mode will be enabled. When the "Wireless Direct" item is selected and the wireless direct connection is enabled by user operation, the P2P (WLAN) mode is enabled. A general settings menu for each connection format is also displayed in this screen. In addition, the user can set the frequency band, frequency channel, etc. of the wireless LAN from this screen.
[0047] Figure 3D is when Figure 3C An example of a display of a menu screen for wireless LAN settings that is displayed when "Wireless LAN" is selected in the screen shown. In the wireless LAN settings menu screen, "Enable / Disable Wireless LAN", "Wireless LAN Settings", "Wireless LAN Information Display", and "Wireless LAN Advanced Settings" are displayed as menu items (options). These items can be used to perform settings such as enabling / disabling wireless infrastructure mode, wireless LAN settings, displaying wireless LAN information, and wireless LAN advanced settings. These items are displayed as an interface that can accept selection instructions from the user.
[0048] External structure of mobile terminal equipment
[0049] Figure 4A4 is a diagram showing an example of the external configuration of the mobile terminal device 104. For example, the present embodiment will describe a case where the mobile terminal device 104 is a typical smart phone. Note that, for example, the mobile terminal device 104 is configured to include a display unit 402, an operation unit 403, and a power key 404. For example, the display unit 402 is a display having a display mechanism based on a liquid crystal display (LCD). Note that, for example, the display unit 402 can display information using a light emitting diode (LED) or the like. In addition to including the display unit 402 or replacing the display unit 402, the mobile terminal device 104 may also have a function of outputting information through audio. The operation unit 403 is configured to include a physical key (e.g., a key, a button, etc.), a touch panel, etc. for detecting a user operation. Note that in this example, a general touch panel display is used for information display in the display unit 402 and acceptance of user operations by the operation unit 403, so the display unit 402 and the operation unit 403 are implemented as a single device. In this case, for example, a button icon or a software keyboard is displayed using the display function of the display unit 402, and a user's touch on these positions is detected using the operation receiving function of the operation unit 403. Note that the display unit 402 and the operation unit 403 may be separate, and hardware for display and hardware for receiving operation may be provided separately. The power key 404 is a physical key for receiving a user operation for turning the mobile terminal device 104 on or off.
[0050] The mobile terminal device 104 includes a WLAN unit 401 that provides a WLAN communication function, but it is not necessarily visible from the outside. For example, the WLAN unit 401 is constructed to be able to perform data (data packet) communication in a WLAN system that complies with the IEEE802.11 standard series (IEEE802.11a / b / g / n / ac / ax, etc.). The WLAN unit 401 is also capable of communicating as an AP that supports Wi-Fi AgileMultiband (registered trademark). However, the construction is not limited to this, and the WLAN unit 401 may be able to communicate in a WLAN system that complies with another standard. This example assumes that the WLAN unit 401 is capable of communicating in both the 2.4 GHz band and the 5 GHz band. The WLAN unit 401 is also assumed to be able to communicate based on WFD, communicate using software AP mode, communicate using wireless infrastructure mode, etc. The operations performed in these modes will be described later.
[0051] The structure of mobile terminal equipment
[0052] Figure 4BAn example of the configuration of the mobile terminal device 104 is shown. For example, the mobile terminal device 104 includes a main unit 411 that performs main control of the device itself and a WLAN unit 429 that performs WLAN communication. The main unit 411 is simply a unit that includes functional blocks other than the WLAN unit 429. The main unit 411 includes, for example, a CPU 412, a ROM 413, a RAM 414, an image memory 415, a data conversion unit 416, a telephone unit 417, a GPS 419, a camera unit 421, a nonvolatile memory 422, a data storage unit 423, a speaker unit 424, and a power supply unit 425. Here, CPU is an acronym for "Central Processing Unit", ROM is an acronym for "Read Only Memory", RAM is an acronym for "Random Access Memory", and GPS is an acronym for "Global Positioning System". The mobile terminal device 104 also includes a display unit 420 and an operation unit 418. Functional units in the main unit 411 are connected to each other via a system bus 628 managed by the CPU 412. In addition, the main unit 411 and the WLAN unit 429 (the aforementioned WLAN unit 401) are connected via a dedicated bus 426, for example.
[0053] The CPU 412 is a system control unit including at least one processor, and controls the entire mobile terminal device 104. For example, the processing of the mobile terminal device 104 described below is realized by the CPU 412 executing the program stored in the ROM 413. Note that dedicated hardware for each process may be provided. The ROM 413 stores a control program executed by the CPU 412, an embedded operating system (OS) program, and the like. In the present embodiment, the CPU 412 performs software control such as scheduling, task switching, and the like by executing each control program stored in the ROM 413 under the management of the embedded OS, which is also stored in the ROM 413.
[0054] The RAM 414 is composed of a static RAM (SRAM) or the like. The RAM 414 stores data such as program control variables, data such as setting values registered by a user and management data of the mobile terminal device 104, etc. In addition, the RAM 414 can be used as various types of work buffers. The image memory 415 is composed of a memory such as a dynamic RAM (DRAM) or the like. The image memory 415 temporarily stores image data received through the WLAN unit 429, image data read out from the data storage unit 423, etc., for processing by the CPU 412. For example, the nonvolatile memory 422 is composed of a memory such as a flash memory, and continues to store data even if the mobile terminal device 104 is powered off. Please note that the memory configuration of the mobile terminal device 104 is not limited to the above configuration. For example, the image memory 415 and the RAM 414 can be implemented by the same memory, and data can be backed up using the data storage unit 423 or the like. In addition, although the present embodiment describes DRAM as an example of the image memory 415, other storage media such as a hard disk, a nonvolatile memory, etc. can also be used instead.
[0055] The data conversion unit 416 analyzes data in various formats, and performs data conversion such as color conversion, image conversion, etc. The telephone unit 417 controls a telephone line, and realizes telephone communication by processing audio data input and output through the speaker unit 424. The GPS 419 receives radio waves transmitted from a satellite, and obtains position information of the mobile terminal device 104 such as the current latitude, longitude, etc.
[0056] The camera unit 421 has a function of electronically recording and encoding an image input through a lens. The image data captured by the camera unit 421 is stored in the data storage unit 423. The speaker unit 424 controls to realize a function for inputting or outputting audio for a telephone function, other functions such as an alarm notification, and the like. The power supply unit 425 is, for example, a portable battery, and controls the supply of power to the inside of the device. The power supply state includes, for example, a "battery exhaustion state" in which there is no remaining power in the battery, a "power off state" in which the power key 404 is not pressed, an "operation state" in which the battery is operating normally, and a "power saving state" in which the battery is operating but in a power saving state.
[0057] The display unit 420 is a reference Figure 4A The display unit 402 described above displays various types of input operations, the operation status and present status of the MFP 100, etc. under the control of the CPU 412. The operation unit 418 is a reference Figure 4A The operating unit 403 described above performs control such as generating an electric signal corresponding to the operation, outputting the electric signal to the CPU 412, etc. when accepting a user operation.
[0058] The mobile terminal device 104 uses the WLAN unit 429 to perform wireless communication and data communication with other devices such as the MFP 100. The WLAN unit 429 converts data into data packets and sends the data packets to other devices. The WLAN unit 429 also restores data packets from other external devices to original data and outputs the data to the CPU 412. The WLAN unit 429 is a unit for implementing communications that conform to various WLAN standards. The WLAN unit 429 can operate in at least two communication modes including a wireless infrastructure mode and a P2P (WLAN) mode at the same time. Please note that the frequency bands used in these communication modes are limited by the functions and performance of the hardware.
[0059] Access point configuration
[0060] Figure 5 1 is a block diagram showing the construction of the AP 101 having a wireless LAN access point function. The main unit 510 controlling the AP 101 is constructed to include a wireless LAN unit 516, a wired LAN unit 518, and an operation button 520. The main unit 510 is only a unit including functional blocks other than the wireless LAN unit 516, the wired LAN unit 518, and the operation button 520.
[0061] The microprocessor type CPU 511 arranged on the main unit 510 operates according to the control program stored in the ROM type program memory 513 and the data in the RAM type data memory 514, and the ROM type program memory 513 and the RAM type data memory 514 are connected to the CPU 511 through the internal bus 512. The CPU 511 communicates with other communication terminal devices through the wireless LAN by controlling the wireless LAN unit 516 through the wireless LAN communication control unit 515. The CPU 511 also communicates with other communication terminal devices through the wired LAN by controlling the wired LAN unit 518 through the wired LAN communication control unit 517. The CPU 511 can accept the operation made by the user manipulating the operation button 520 by controlling the operation unit control circuit 519. The CPU 511 includes at least one processor.
[0062] The AP 101 further includes an interference wave detection unit 521 and a channel change unit 522. The interference wave detection unit 521 performs interference wave detection processing when wireless communication is performed in a frequency band implementing dynamic frequency selection (DFS). The channel change unit 522 performs processing for changing a channel used when an interference wave is detected, when an immediate change to an idle channel is required, etc. when wireless communication is performed in a frequency band implementing DFS.
[0063] Note that AP 102 has the same construction as AP 101 .
[0064] P2P communication method
[0065] Next, a P2P (WLAN) communication method will be outlined, which is used for wireless communication between devices directly without passing through an external access point in WLAN communication. P2P (WLAN) communication can be implemented by various methods, for example, a communication device can support multiple modes of P2P (WLAN) communication and selectively use one of the multiple modes to perform P2P communication (WLAN).
[0066] The following two modes are assumed to be P2P modes.
[0067] Software AP mode
[0068] Wi-Fi Direct (WFD) mode
[0069] A communication device capable of P2P communication may be configured to support at least one of these modes. However, even a communication device capable of P2P communication does not necessarily support all of these modes, but may be configured to support only some of the modes.
[0070] In a communication device having a WFD communication function (e.g., mobile terminal device 104), in response to a user operation accepted through an operation unit of the device, an application (in some cases, a dedicated application) for implementing the communication function is called. The communication device can then display a screen of a user interface (UI) provided by the application to prompt the user to perform an operation, and then perform WFD communication based on the user operation accepted in response thereto.
[0071] Software AP mode
[0072] In software AP mode, a communication device (e.g., mobile terminal device 104) operates in the role of a client requesting various types of services. Other communication devices (e.g., MFP 100) operate as software APs capable of performing WLAN AP functions through software settings. Please note that the commands, parameters, etc. sent and received when establishing a wireless connection between a client and a software AP can be any commands, parameters, etc. specified by the Wi-Fi (registered trademark) standard, and therefore will not be described. The MFP 100 operating in software AP mode also determines the frequency band and frequency channel as a parent station. Therefore, the MFP 100 can select which frequency band to use from 5 GHz and 2.4 GHz, and which frequency channel to use in the frequency band.
[0073] WFD mode
[0074] The MFP 100 can be started so as to be fixed as the parent station of the WFD mode (Autonomous Group Owner). In this case, the GO negotiation process for determining the role is not required. In addition, in this case, the MFP 100 also determines the frequency band and the frequency channel as the parent station. Therefore, the MFP 100 can select which frequency band to use from 5 GHz and 2.4 GHz, and which frequency channel to use in the frequency band.
[0075] Wireless Infrastructure Mode
[0076] In the wireless infrastructure mode, the communication devices (e.g., mobile terminal device 104 and MFP100) that communicate with each other are connected to an external AP (e.g., AP 101) that manages the network, and the communication devices communicate with each other through the AP. In other words, communication between the communication devices is performed through a network built by an external AP. Both the mobile terminal device 104 and the MFP 100 discover AP101, and these communication devices can communicate in the wireless infrastructure mode via AP 101 by sending a connection request and connecting to AP 101. Please note that multiple communication devices can be connected to individual APs. In this case, the communication devices can communicate by transmitting data between APs. The commands, parameters, etc. sent and received during communication between the communication devices via the access point can be any commands, parameters, etc. specified by the Wi-Fi standard, so they will not be described. In this case, AP 101 also determines the frequency band and frequency channel. Therefore, AP 101 can select which frequency band to use from 5GHz, 2.4GHz, and 6GHz, and which frequency channel to use in the frequency band.
[0077] Processing in response to a request from an AP to change the connection destination to a STA
[0078] The mobile terminal device 104 and the MFP 100 support a function disclosed as Wi-Fi Agile Multiband (registered trademark). Wi-Fi Agile Multiband is a function that can select an optimal environment in response to changing conditions of a Wi-Fi network. More specifically, STAs such as the mobile terminal device 104 and the MFP 100 and APs such as the AP 101 exchange information about the network environment using the IEEE802.11 series of communication standards. By exchanging information in this way, when the network is congested, the AP can guide the STA (change the connection destination) to another AP, frequency band, channel, or even another cellular service.
[0079] Figure 61 is a sequence diagram showing a case where the MFP 100 switches the connection destination AP from the AP 101 to the AP 102 according to a connection destination change request (a change request of the access point serving as the connection destination) from the AP 101. The processing performed by each device in accordance with the sequence is realized by the CPU of each device reading out various programs stored in a memory such as a ROM or the like provided in the device into the RAM and executing the programs.
[0080] exist Figure 6 In the initial state of the illustrated process, it is assumed that the MFP 100 has established a connection with the AP 101 in the wireless infrastructure mode. When the MFP 100 and the AP 101 are connected in the wireless infrastructure mode, the AP 101 obtains information about whether the MFP 100 supports IEEE802.11v. It is assumed that the following process is then performed when the AP 101 successfully obtains information indicating that the MFP 100 supports IEEE802.11v.
[0081] In step S601, AP 101 sends an inquiry (measurement request) to MFP 100 about the radio wave strength of APs around MFP 100. This inquiry is sent as, for example, a beacon frame request or a beacon report request. In other words, a mechanism defined in the IEEE802.11k standard can be used for this request.
[0082] In step S602, MFP 100 receives frames transmitted by surrounding APs and measures their radio wave strength in response to the request received in step S601. As a result, the radio wave strength of each of a plurality of APs including AP 101 and AP 102 is measured. This process is called "AP search".
[0083] In step S603, the MFP 100 transmits a list of radio wave strengths of the APs around the MFP 100 measured in step S602 as a response to the request received in step S601. In addition to or instead of the information measured in step S602, the radio wave strengths provided in the response may be information stored in the RAM 214, the nonvolatile memory 215, etc. of the MFP 100. The response is transmitted as, for example, a beacon report or a measurement report.
[0084] In step S604, the AP 101 determines whether the connection destination of the MFP 100 needs to be switched based on the network congestion state confirmed by the AP 101 and the radio wave strength received from the MFP 100 in step S603. The following are factors that cause the AP 101 to determine that the connection needs to be switched.
[0085] Many STAs are connected to AP 101 (at least a threshold)
[0086] The amount of communication between the STAs connected to the AP 101 and the AP 101 is high (at least the threshold)
[0087] Determine whether there is interference wave based on signal-to-noise ratio, etc.
[0088] AP function stopped
[0089] In addition, whether it is necessary to switch the connection destination can be determined based on the degree of congestion of each AP determined using communication between APs (number of STA connections, communication volume). When it is determined that the connection destination of MFP 100 needs to be switched, and the SSID, channel, and frequency band of another AP designated as the one to which MFP100 is to switch are determined, the sequence enters step S605. Note that in this embodiment, the extended service set identifier (ESSID) of another AP designated (recommended) as the switching destination is the same as the ESSID of the switching source AP (BSSID is different for each AP). However, it can be recommended that the switching destination is an AP with an ESSID different from that of the switching source AP. "BSSID" is an acronym for "Basic Service Set Identifier" and is equivalent to the MAC address of the AP (i.e., the identification information of the AP).
[0090] In step S605, AP 101 sends an AP change request (connection destination switching request) to MFP 100. The connection destination change request includes the BSSID, channel, and band information of another AP (hereinafter referred to as "recommended AP") determined in step S604 and designated as the switching destination of MFP 100. Note that multiple BSSIDs can be designated. In other words, multiple APs for switching destinations can be recommended as recommended APs. For example, the connection destination change request is sent as a BTM request. In other words, a BSS transition management (BTM) request frame defined in the IEEE802.11v standard is sent. Figure 6 The example shown in assuming that the AP 102 is specified as the switching destination (recommended AP) included in the connection destination change request.
[0091] In step S606, if the connection destination change request received in step S605 is to be followed, the MFP 100 sends a response indicating approval of the switching to the AP 101. If the connection destination change request is not to be followed, a switching rejection may be sent as a response. This response is sent as a BTM response. Figure 6 The examples in assume that a response indicating consent is sent.
[0092] In step S607, the AP 101 and the MFP 100 terminate the connection in the wireless infrastructure mode.
[0093] In step S608 , the MFP 100 transmits a connection request to the AP 101 to connect to the AP 102 specified in the connection destination change request received in step S605 .
[0094] As a result, in step S609, the connection between the MFP 100 and the AP 102 is established in the wireless infrastructure mode.
[0095] Using this mechanism, the MFP 100 as the STA can change the connection destination from the AP 101 to the AP 102 based on the connection destination change request from the AP 101 (the AP before the connection destination change) to which the MFP 100 originally connected. The AP 101 and the AP 102 may be APs installed at different locations. Figure 6 By the process shown in the figure, the MFP 100 can switch to another AP installed at a different location from the AP to which the MFP 100 was originally connected. There is also a case where the AP handles different frequency bands from each other among a plurality of frequency bands (two or three of the 2.4 GHz band, the 5 GHz band, or the 6 GHz band) provided by the same device. In other words, by Figure 6 By the process shown, the MFP 100 can switch to another frequency band provided by the same device as the AP to which the MFP 100 was originally connected. For example, the connection destination can be changed to an AP using the 6 GHz frequency band based on the connection destination change request.
[0096] Although the present embodiment describes an example in which a measurement request and a connection destination change request from an AP are sent using a mechanism compliant with Wi-Fi Agile Multiband and the STA responds to this, the configuration is not limited thereto. Even if the STA responds to a measurement request or a connection destination change request sent from an AP, changes the connection destination AP (switches, deletes, or adds an AP as a connection destination), etc. using a mechanism different from the above example, the present embodiment can be applied.
[0097] There are cases where changing the connection destination AP based on a change request for changing the connection destination AP sent from the currently connected AP does not cause a problem, and cases where it is not desirable to do so. In the case where it is not desirable to change the connection destination AP based on the change request, one or more of the following types of processing may be combined as processing for suppressing the change of the connection destination in response to the change request. The following processing is processing for preventing or making it difficult to change the connection destination AP based on the change request.
[0098] (Inhibition treatment 1)
[0099] Even if the change request described with reference to step S605 is received, the connection destination AP is not changed based on the received change request, and no response is made to the change request; or a response indicating that the change request has been rejected (the connection destination AP will not be changed) is sent to the currently connected AP. When a rejection response is sent, the priority of the connection destination change of another STA connected to the AP currently connected to the MFP 100 is increased, and the priority of the connection destination change of the MFP 100 that returns the rejection response is lowered. As a result, the connection with the connected AP can be maintained. If no response is returned (i.e., the request is ignored), it is considered that the currently connected AP will maintain the connection with the MFP 100 to wait for a response until the timeout after the response standby time. Therefore, in the case where the connection is terminated immediately according to a certain response to the change request from the MFP 100, the connection with the currently connected AP can be maintained longer by not responding instead of returning a certain response. Therefore, for example, based on information indicating the change reason contained in the change request, the processing can be changed according to the reason, for example, if the reason is weak, the request is rejected, or if the reason is strong, the request is ignored. The change reason may be determined based on information included in the request pattern in the BTM request, for example, which indicates which of several reasons applies. For example, if the Disassociation Imminent bit or the BSS Termination Included bit of the request pattern is 1, then the change request may be determined to be a request with a stronger change reason. Otherwise, the change request may be determined to be a request with a weaker change reason.
[0100] (Suppression treatment 2)
[0101] In response to the measurement request described with reference to step S601, information indicating that the radio wave reception condition (signal reception condition) of an unconnected AP other than the currently connected AP is different from the actually measured condition (low signal quality) is provided as a response (false response). In this case, the response may be made after the actual measurement is performed in response to the reception of the measurement request, or the response may be made without performing the actual measurement. Specifically, in the response (beacon report, etc.) described with reference to step S603, a value indicating a lower received signal strength and / or a value indicating a higher noise (signal-to-noise ratio) is provided as a response to the measured signal quality of the signal received from the unconnected AP. Alternatively, the response may be a response that does not include at least one piece of information about the unconnected AP. The following processing may also be performed in which, based on information measured in the past for the unconnected AP, a response is provided that sets the received signal strength to an extremely low value or sets the noise to an extremely high value. Even if a measurement request is received, a response indicating only a good received signal strength or noise condition for the currently connected AP may be provided without performing an actual measurement (AP search) and without including information about the unconnected AP. The response to the measurement request without including information about the unconnected AP in the response corresponds to content indicating that no other unconnected AP is found even after the AP search is performed. In other words, not including information about the unconnected AP in the response indicates that the signal quality from the unconnected AP is at least a result different from the result of the AP search actually performed.
[0102] By doing so, it can be expected that a connection destination change request is suppressed from being sent from the currently connected AP to other APs. Thus, the connection destination is suppressed from being changed in response to the connection destination change request.
[0103] (Suppression treatment 3)
[0104] The currently connected AP is temporarily disconnected, information indicating that the change request is not supported is provided, and then the same AP is reconnected. Specifically, the wireless connection with the currently connected AP is temporarily terminated, and data of an association request frame including information indicating that IEEE802.11v is not supported is generated as a preparation for reestablishing the wireless connection. The generated association request frame data is then used to perform a process of connecting to the AP. As a result, if an association request frame including information indicating that IEEE802.11v is not supported is generated, the AP is connected to the MFP 100, which is an electronic device that does not support the Agile Multiband function. As a result, the currently connected AP recognizes that the MFP 100 does not support IEEE802.11v, and does not send a wireless connection destination change request to the MFP 100. As a result, a request to change the wireless connection is no longer issued to the MFP 100, so that the wireless connection between the MFP 100 and the currently connected AP is easier to maintain. In addition, if the currently connected AP recognizes that the MFP 100 does not support IEEE802.11v, the measurement request (refer to the request described in step S601) sent from the AP currently connected to the MFP 100 is also stopped. Therefore, in the MFP 100, the measurement (AP search) in response to the measurement request and the response to the measurement request (processing of step S603) can also be suppressed. The processing load and power consumption can be reduced by that amount. Resources can also be allocated to other processing.
[0105] For example, receiving print data corresponds to a state in which the connection destination AP is not desired to be changed based on the change request. The MFP 100 receiving print data corresponds to a state in which some print data of the image to be printed has been received by the mobile terminal device 104 as a partner device, but the remaining print data has not been received. The MFP 100 prints by repeating the following operation after receiving some print data equivalent to printing on a single page: receiving some print data and then printing (for example, receiving one line of print data in printing), and then receiving subsequent data and then printing. If the connection destination AP is changed based on the connection destination change request while the print data is being received, the process of switching the connection destination will generate a time lag, which may cause a decrease in print quality such as by generating uneven printing. In addition, after switching the connection destination, the communication quality with the mobile terminal device 104 as a partner device may be degraded, so that the subsequent data cannot be received and printing fails. Therefore, it is preferable to perform at least one of the above-mentioned processes (suppression process 1 and suppression process 2) as a process for suppressing the change of the connection destination in response to the change request when receiving print data, or to perform the above-mentioned process (suppression process 3) before starting to receive print data.
[0106] Incidentally, in the connection destination change request from the currently connected AP, APs as connection destination switching candidates may include an AP that is not preferred as the connection destination AP of the STA.
[0107] For example, it is conceivable that the APs that are candidates for connection destination switching include an AP whose security strength is lower than that of the currently connected AP. In this case, if the connection destination AP is switched based on a request to change the connection destination from the currently connected AP, the security strength of the connection with the AP may decrease. Therefore, it is necessary to design a way to switch the STA to an appropriate connection destination AP.
[0108] Therefore, in the present embodiment, the MFP 100 is connected to the AP based on the security mode used as the standard. Specifically, control is performed to suppress connection to an AP that uses a security mode with a lower security strength than the security mode used as the standard among the candidate APs used as the change destination candidate in the change request. Such a configuration makes it possible to switch the STA to an appropriate connection destination AP.
[0109] There is also a case where, for example, the APs used as connection destination switching candidates include APs that use a security mode that is not supported by the MFP 100, a security mode that is restricted according to the settings of the MFP 100, or the like. In this case, there is a case where, when the MFP 100 switches the connection destination AP to the switching candidate AP based on the connection destination change request, the connection with the switching destination AP fails. Therefore, it is necessary to devise a way to switch the STA to an appropriate connection destination AP.
[0110] Therefore, in the present embodiment, the MFP 100 performs control to suppress processing of changing the connection destination AP to an AP that cannot be connected using the security mode usable by the MFP 100 among the candidate APs used as the change destination candidates in the change request.
[0111] There is also a case where, for example, APs that are candidates for connection destination switching include APs having an authentication mode different from the authentication mode used before switching. Specifically, when the authentication mode of the currently connected AP is personal mode, an AP in enterprise mode may be included in the recommended APs. On the contrary, if the authentication mode of the currently connected AP is enterprise mode (authentication mode using an authentication server), an AP having an authentication mode different from the enterprise mode (such as an AP in personal mode) may be included in the recommended APs. In this case, there is a case where, when the MFP 100 switches the connection destination AP to a switching candidate AP based on a connection destination change request, the security conditions expected by the user cannot be maintained, or the connection with the switching destination AP fails. Therefore, it is necessary to design a way to switch the STA to an appropriate connection destination AP. Therefore, in the present embodiment, control is performed to suppress the case where the connection destination is changed to an AP having an authentication mode different from that of the currently connected AP.
[0112] Note that the connection destination AP change request received by the MFP 100 from the currently connected AP may be referred to as a "connection destination change request," "change request," etc. Furthermore, in this specification, the connection destination AP change request may also be referred to as a "request to change the connection destination AP."
[0113] (Processing based on request from currently connected AP)
[0114] Figure 7 2 is a flowchart showing an example of processing corresponding to an AP search request, a connection destination change request, etc. performed by the MFP 100. In the flowchart, the processing performed by the MFP 100 is realized by the CPU 212 reading out various programs stored in a memory such as the ROM 213 into the RAM 214 and executing the programs.
[0115] In step S701, the CPU 212 starts wireless LAN settings. Specifically, the CPU 212 receives an instruction to start wireless infrastructure mode settings. The instruction to start wireless infrastructure mode settings may be based on, for example, Figure 3D The instruction of the user operation performed in the wireless LAN setting menu screen shown in . The user operation may be, for example, the user selecting "Wireless LAN Setting" in the wireless LAN setting menu screen. The instruction to start the wireless infrastructure mode setting may also be, for example, receiving a specific signal from an external device such as the mobile terminal device 104.
[0116] In step S702, CPU 212 obtains AP information required for wireless infrastructure mode setting. Specifically, for example, CPU 212 obtains AP information through AP search. For example, in step S702, CPU 212 starts AP search by sending a device search request (Probe Request). Then, CPU 212 searches and finds AP by receiving wireless signals such as device search response (Probe Response), beacon (information actively sent by AP periodically), etc. sent from AP. The AP information obtained from AP through such AP search includes information indicating at least one of the SSID, radio wave strength, frequency band, MAC address, authentication mode, encryption mode, etc. of AP. The content of AP information varies according to AP model, model number, settings, etc.
[0117] For example, if the security mode (authentication mode, encryption mode) used by the AP is not a security mode supported by the MFP 100, the CPU 212 can exclude the AP information from the AP search results. Even if the security mode used by the AP is only a security mode that is not supported and / or restricted by the MFP 100, the CPU 212 can exclude such AP information from the AP search results.
[0118] In step S702, after the AP search is completed, the CPU 212 displays the AP list found in the AP search in the console unit 220 of the MFP 100. The AP list is a content indicating the AP search results. The AP list is displayed, for example, as an interface capable of accepting a selection instruction made by a user. For example, the CPU 212 can display a list of AP identification information obtained through the AP search in the console unit 220 as an AP list. The AP identification information can be, for example, an SSID, a device name, etc. For example, if the AP selected by the user uses a security mode that requires authentication information such as a password, the CPU 212 accepts the password input of the AP selected by the user. In this way, the CPU 212 can obtain the password of the AP selected by the user by accepting the password of the AP input by the user. If the security mode of the AP selected by the user does not require a password, the CPU 212 does not accept the input of the password in step S702. The OPEN mode, EAP mode, etc., which will be described later, can be used as examples of modes that do not require a password.
[0119] Although the present embodiment is described by taking the example that the CPU 212 displays the AP search result in the console unit 220 of the MFP 100 and accepts the password input of the AP selected by the user, the configuration is not limited thereto. For example, the AP information in step S702 can be obtained from the AP using a function called Wi-Fi Protected Setup (hereinafter referred to as "WPS") (registered trademark). Alternatively, the AP information in step S702 can be obtained from an external device such as the mobile terminal device 104 using a function called Wi-Fi Easy Connect (hereinafter referred to as "WEC") (registered trademark). In addition, the AP information in step S702, an instruction from the user to select an AP, and the like can be obtained by receiving a specific signal from an external device such as the mobile terminal device 104.
[0120] In step S703, the CPU 212 controls to record the AP information required for wireless infrastructure mode setting in the RAM 214 and / or the nonvolatile memory 215 based on the AP information obtained in step S702 (recording control). Figure 8 The process is described in detail. When the AP information is stored in the process, the information indicating the authentication mode and encryption mode of the AP is also stored together as the "security mode". The AP information required for the wireless infrastructure mode setting stored in step S703 includes, for example, at least one of the SSID, password, security mode (authentication mode and / or encryption mode), frequency band, channel, communication standard, certificate information, and user name. The SSID is one or both of the ESSID and the BSSID. The information is stored based on the operation made by the user in the console unit 220 of the MFP100, a specific signal received from an external device such as an AP or a mobile terminal device 104, and the like.
[0121] In step S704, the CPU 212 performs connection processing to connect to an AP according to the IEEE802.11 standard using the AP information obtained in step S702. The AP connected to in step S704 is the AP selected by the selection instruction made by the user in step S702.
[0122] In step S705, the CPU 212 determines whether a measurement request has been received from the currently connected AP. If it is determined that a measurement request has been received, the sequence proceeds to step S706, and if a measurement request has not been received, the sequence proceeds to step S713. Here, the measurement request is the same as the radio wave strength inquiry described above with reference to step S601. In other words, the measurement request is a request for the AP search result, and is also a request for the measurement result of the radio wave condition (signal quality) of the AP around the MFP 100.
[0123] In step S706, the CPU 212 performs the AP search as described above with reference to step S602 and step S702. The CPU 212 stores in the RAM 214 a list of AP information found by the AP search.
[0124] The processing of steps S707 to S711 described below is performed for each AP found by the AP search. The AP found by the AP search can be included in the change request received from the currently connected AP as an AP recommended as a connection destination AP. In other words, the AP found by the AP search can also be called a candidate AP, which is a candidate for the connection destination AP of the MFP 100. The processing of steps S708 and S709 is a processing for determining whether the AP found by the AP search is an AP suitable as a candidate for the connection destination of the MFP 100. At the same time, the processing of step S710 is a processing for suppressing the following situation: a connection destination change request including an unsuitable connection destination AP is sent by making a false response to the information of the AP that is not suitable as the connection destination (as described in the suppression processing 2 above). In other words, the processing of steps S707 to S711 is a processing for suppressing the connection with the AP that is not favorable as the connection destination of the MFP 100. In other words, the processing of steps S707 to S711 can be said to be a processing for changing the MFP 100 to a suitable connection destination AP. Note that the CPU 212 may perform the processing of steps S707 to S712 using AP information searched out and stored in the past, instead of performing the AP search in step S706.
[0125] In step S707 , the CPU 212 starts a loop of the processing of steps S708 to S710 for each AP found by the AP search performed in step S706 .
[0126] In step S708, the CPU 212 determines whether the AP found by the AP search satisfies a predetermined condition, and stores the determination result. The predetermined condition is a target condition for determining whether the AP is a favorable AP as a target for connection destination change. In other words, in step S708, the CPU 212 determines whether the AP found by the AP search is a favorable AP as a target for connection destination change. This will be referred to later. Fig. 9 This process is described in detail.
[0127] In step S709, the CPU 212 determines whether the AP satisfies the target condition of the AP after the connection destination AP is changed based on the determination result in step S708. If it is determined that the target condition is satisfied, the sequence proceeds to step S711. However, if it is determined that the target condition is not satisfied, the sequence proceeds to step S710. Specifically, the CPU 212 makes a determination based on the information (determination result) stored in step S905 or step S906 (described later). In other words, if the determination is made as shown in step S905 (described later), the sequence proceeds to step S711, and if the determination is made as shown in step S906 (described later), the sequence proceeds to step S710.
[0128] In step S710, the CPU 212 generates a list having contents different from the list of AP information stored in step S706. For example, the CPU 212 excludes (deletes) information of APs that do not meet the target condition from the list of AP information. Alternatively, the CPU 212 sets the information of APs that do not meet the target condition to information different from the actual measurement condition in the list of AP information stored in step S706. The "different information" is information indicating that the signal quality is lower than the signal quality actually measured in the AP search. This processing is the processing described above in the suppression processing 2. The "signal quality" refers to the radio wave condition, and is the radio wave strength, etc.
[0129] In this way, if the AP found by the AP search is an AP that does not satisfy the AP connection destination condition, the CPU 212 excludes the AP that does not satisfy the condition from the result of the AP search. Alternatively, the CPU 212 sets information different from the actual measurement result to the AP that does not satisfy the condition. This makes it possible to suppress a situation where an AP that does not satisfy the target condition is included as a recommended AP in a connection destination change request sent from the AP currently connected to the MFP 100. In other words, it is possible to suppress a situation where the connection destination of the MFP 100 is changed to an AP that does not satisfy the condition of the security mode.
[0130] In step S711, the CPU 212 repeats the processing of steps S708 to S709 or the processing of steps S708 to S710 for other APs found by the AP search performed in step S706. However, if the processing for all APs found by the AP search performed in step S706 has ended, the sequence proceeds to step S712.
[0131] In step S712, the CPU 212 sends a response to the measurement request to the currently connected AP, as shown in FIG. Figure 6For example, if the processing of step S710 has been performed, the content is different from the result of the AP search, so in step S712, the AP information list is sent as a false response.
[0132] In step S713, the CPU 212 determines whether a connection destination change request is received from the currently connected AP. The change request corresponds to Figure 6 The CPU 212 receives the change request sent by the AP 101 in step S605. If it is determined that the change request is received, the CPU 212 advances the sequence to step S714, and if the change request is not received, to step S718.
[0133] In steps S714 to S716, the CPU 212 determines whether the connection destination should be changed to the recommended AP included in the change request, and if such a change is not preferred, the CPU 212 performs processing for suppressing a change of the connection destination in response to the change request. This processing corresponds to the suppression processing 1 described above.
[0134] In step S714, the CPU 212 determines whether the recommended AP included in the received change request satisfies a predetermined condition. The predetermined condition is a target condition for determining whether the AP is a favorable (suitable) AP as a connection destination change target. In other words, in step S714, the CPU 212 determines whether the recommended AP is a favorable AP as a connection destination change target. This will be referred to later. Fig. 9 This process is described in detail.
[0135] In step S715, the CPU 212 determines whether the recommended AP included in the change request satisfies the target condition of the AP after the connection destination AP is changed based on the determination result in step S714. If the target condition is satisfied, the sequence proceeds to step S716, and if the target condition is not satisfied, the sequence proceeds to step S718. Specifically, if the determination is made as shown in step S905 (described later), the sequence proceeds to step S716, and if the determination is made as shown in step S906 (described later), the sequence proceeds to step S718.
[0136] If it is determined in step S715 that the target condition is not satisfied ("No" in step S715), the CPU 212 may send a response indicating rejection to the currently connected AP without connecting to the recommended AP, as described in the above suppression process 1. In other words, the indication of "rejection" is an indication that the connection destination AP will not be changed. In addition, if it is determined that the target condition is not satisfied, the CPU 212 may ignore the change request and skip returning a response.
[0137] In step S716, the CPU 212 sends a response indicating that the received connection destination change request is to be followed to the currently connected AP, and advances the sequence to step S717. This processing corresponds to Figure 6 The processing is performed in step S606.
[0138] In step S717, the CPU 212 terminates the connection with the currently connected AP and performs processing for connecting to the recommended AP included in the connection destination change request (the recommended AP determined to satisfy the target condition in step S714). This processing corresponds to Figure 6 The processing is performed in steps S607 and S608.
[0139] In this way, if the recommended AP is an AP that does not satisfy the connection destination AP condition, the CPU 212 performs control of sending a response of rejecting the change request to the AP currently connected to the MFP 100, control of ignoring the change request, and the like ("No" in step S715). This makes it possible to suppress a situation in which the connection destination AP is changed to an AP that uses a security mode that is unfavorable to the MFP 100 among the recommended APs used as candidates for the AP to be changed to. On the other hand, if the recommended AP is an AP that satisfies the connection destination AP condition, a response indicating that the change request is to be followed is sent, and processing for connecting to the recommended AP is performed ("Yes" in step S715, step S716, and step S717). Such control by the CPU 212 enables the MFP 100 to connect to an appropriate AP.
[0140] In step S718, the CPU 212 determines whether to terminate the connection with the currently connected AP. If it is determined that the connection is to be terminated, Figure 7 The sequence shown in is ended. However, if it is determined that the connection is not to be terminated, the sequence proceeds to step S705. Specifically, for example, the CPU 212 determines whether an instruction to power off the MFP 100 has been received. The instruction to power off the MFP 100 may be an instruction based on that the console unit 220 of the MFP 100, etc. has not been operated within a predetermined time, an instruction based on that a power button (not shown) of the MFP 100 has been operated, etc.
[0141] although Figure 7 An example is shown in which the processing of steps S707 to S711 (suppression processing 2) and the processing of steps S714 to S716 (suppression processing 1) are performed, but the configuration is not limited thereto. For example, one of the processing of steps S707 to S711 (suppression processing 2) and the processing of steps S714 to S716 (suppression processing 1) may be performed, and the other may not be performed.
[0142] Processing of storing the security mode used when connecting to an AP
[0143] Figure 8 2 is a flowchart showing an example of a process of storing information indicating an authentication mode and an encryption mode of an AP together as a security mode to be used when connecting to an AP when the wireless infrastructure mode is set for the MFP 100. In the flowchart, the process performed by the MFP 100 is realized by the CPU 212 reading out various programs stored in a memory such as the ROM 213 into the RAM 214 and executing the programs. The process is performed in step S703 based on the AP information obtained in step S702.
[0144] The security mode will be described here. For wireless communication using a wireless LAN based on the IEEE802.11 series of standards, the following security mode has been used.
[0145] Authentication Mode
[0146] The following are examples of the types of authentication modes supported by wireless APs.
[0147] (1) PSK mode using pre-shared key
[0148] (2) SAE mode using simultaneous authentication of peer entities (SAE)
[0149] (3) EAP mode that uses an authentication server that supports IEEE802.1X / EAP to authenticate communication devices connected to the network
[0150] Among them, (1) the security mode using PSK includes, for example, the following modes.
[0151] (1-1) WPA (Wi-Fi Protected Access)-PSK
[0152] (1-2)WPA2-PSK
[0153] The PSK mode is a personal mode, and the authentication mode (authentication type, authentication system, security type) is different from the enterprise mode.
[0154] Furthermore, (2) the safety mode using SAE includes, for example, the following modes.
[0155] (2-1)WPA3-SAE
[0156] In addition, (3) the security mode using the authentication server includes the following modes, for example.
[0157] (3-1)WPA-EAP
[0158] (3-2)WPA2-EAP
[0159] (3-3)WPA3-EAP
[0160] The security mode using the authentication server is an authentication mode in the enterprise mode, and the authentication mode (authentication type, authentication system, security type) is different from that in the personal mode.
[0161] Encryption Mode
[0162] The encryption mode includes the following modes, for example.
[0163] CCMP (Counter Mode with CBC-MAC protocol) using AES (Advanced Encryption Standard)
[0164] Temporal Key Integrity Protocol (TKIP) using RC4
[0165] WEP
[0166] Please note that "EAP" in this manual stands for "Extensible Authentication Protocol." "WEP" stands for "Wired Equivalent Privacy."
[0167] For example, (2-1) WPA3-SAE and (3-1) to (3-3) WPA / WPA2 / WPA3-EAP in the above security modes (authentication mode and encryption mode) are relatively secure security modes. The next modes according to security are (1-1) and (1-2) (WPA / WPA2-PSK). WEP is a relatively insecure security mode. OPEN (no authentication) is a mode that does not provide security. Regarding encryption modes, a mode using AES is a relatively secure mode, TKIP is a relatively insecure mode, and no encryption is a mode that does not provide security.
[0168] The security modes supported by the MFP 100 vary depending on the model, model number, settings, etc. of the MFP 100. The security modes supported by the MFP 100 according to the present embodiment are assumed to be WPA-PSK, WPA2-PSK, WPA3-SAE, WPA-EAP, WPA2-EAP, WPA3-EAP, and OPEN (no authentication and no encryption). The security mode not supported by the MFP 100 is assumed to be a mode for encryption using TKIP or WEP, for example.
[0169] In step S801, the CPU 212 determines whether the authentication mode used to connect to the AP is the WPA3-SAE method. For example, the CPU 212 determines based on the AP information obtained in step S702: accept the authentication mode used by the AP for which the selection instruction made by the user is directed. If it is determined that the mode is WPA3-SAE, the sequence proceeds to step S802. However, if it is determined that the mode is not WPA3-SAE, the sequence proceeds to step S803.
[0170] In step S802 , the CPU 212 stores the relatively secure mode (WPA3-SAE) as the security mode in the RAM 214 and / or the nonvolatile memory 215 .
[0171] In step S803, the CPU 212 determines whether the authentication mode used to connect to the AP is at least one of WPA-EAP, WPA2-EAP, and WPA3-EAP. For example, the CPU 212 determines based on the AP information obtained in step S702: accept the authentication mode used by the AP for which the selection instruction made by the user is directed. If it is determined that the authentication mode used to connect to the AP is at least one of WPA-EAP, WPA2-EAP, and WPA3-EAP, the sequence proceeds to step S804. On the other hand, if it is determined that the authentication mode used to connect to the AP is neither WPA-EAP, WPA2-EAP nor WPA3-EAP, the sequence proceeds to step S805.
[0172] In step S804 , the CPU 212 stores “relatively secure mode (WPA / WPA2 / WPA3-EAP)” as the security mode in the RAM 214 and / or the nonvolatile memory 215 .
[0173] In step S805, the CPU 212 determines whether the authentication mode used to connect to the AP is at least one of WPA-PSK and WPA2-PSK. For example, the CPU 212 determines based on the AP information obtained in step S702: accept the authentication mode used by the AP for which the selection instruction made by the user is directed. If it is determined that the mode is at least one of WPA-PSK and WPA2-PSK, the sequence proceeds to step S806. On the other hand, if it is determined that neither the WPA-PSK method nor the WPA2-PSK method is used, the process proceeds to S807.
[0174] In step S806 , the CPU 212 stores “Medium security mode (WPA / WPA2-PSK)” as the security mode in the RAM 214 and / or the nonvolatile memory 215 .
[0175] In step S807, the CPU 212 determines whether the authentication mode for connecting to the AP is OPEN (no encryption). For example, the CPU 212 determines that the authentication mode used by the AP for which the selection instruction is made by the user is accepted based on the AP information obtained in step S702. If the CPU 212 determines that the mode is OPEN mode, the sequence proceeds to step S808. However, if the CPU 212 determines that the mode is not OPEN mode, the sequence proceeds to step S809.
[0176] In step S808 , the CPU 212 stores the “unsafe mode (OPEN mode)” as the safe mode in the RAM 214 and / or the nonvolatile memory 215 .
[0177] In step S809, the CPU 212 records other setting information (setting details) of the wireless infrastructure mode in the RAM 214 and / or the non-volatile memory 215. The setting information is, for example, AP information required for the wireless infrastructure mode setting. In this process, the security mode is stored together with the authentication mode type of the AP. As a result, if the security strength of the security mode of the recommended AP is the same as the security strength of the security mode of the MFP 100, it is possible to connect to the same AP using settings such as ESSID, password, etc.
[0178] Note that the security mode used by the MFP 100 for connecting to an AP may be limited by the user operating the console unit 220 of the MFP 100 , receiving a specific signal from an external device such as the mobile terminal device 104 , or the like.
[0179] Fig. 9 : is a flowchart showing an example of processing for determining whether an AP to be determined as a connection destination AP satisfies a predetermined condition. Fig. 9 An example of processing for determining whether the AP to be determined is an AP suitable as a connection destination AP after the connection destination is changed is shown. In this flowchart, the processing performed by MFP 100 is realized by CPU 212 reading various programs stored in a memory such as ROM 213 into RAM 214 and executing these programs.
[0180] Please note, Fig. 9 The processing in Figure 7 In other words, this processing is performed for APs found by AP search based on measurement request, recommended APs included in change request, etc. That is, this processing is performed when determining whether to change the connection destination AP.
[0181] In step S901, the CPU 212 determines whether the security mode of the AP to be determined and as a connection destination switching candidate (hereinafter referred to as a "candidate AP") is a mode that can be used by the MFP 100. If it is determined that the mode is an available mode, the sequence proceeds to step S902. However, if it is determined that the mode is not an available mode, the sequence proceeds to step S906. Specifically, for example, if the security mode used on the network formed by the candidate AP is supported by the MFP 100 and is not restricted from being used by the MFP 100, the CPU 212 determines that the mode is an available mode. If the security mode used by the candidate AP is at least one of a mode that is not supported by the MFP 100 and a mode that is restricted from being used by the MFP 100, the CPU 212 also determines that the mode is not an available mode. As described above, the security mode supported by the MFP 100 varies depending on the model, model number, settings, etc. of the MFP 100. In addition, for example, the security mode supported by the MFP 100 is pre-stored in the non-volatile memory 215. In addition, for example, the security mode that can be used by the MFP 100 may be limited by settings based on user operations, as will be described later. Fig.10 described.
[0182] In this way, when, in addition to the condition of whether or not the MFP 100 is supported, even if the MFP 100 is supported, use is restricted due to settings or the like, step S901 is processed as a determination of "No." In this way, when the MFP 100 receives a change request from the currently connected AP, if the security mode of the candidate AP is not a mode that the MFP 100 can use, it is possible to suppress a situation where the connection destination AP is changed.
[0183] Although the present embodiment describes an example in which the determination in step S901 is performed based on whether the MFP 100 supports the mode and further whether the use of the mode is restricted in the MFP 100, the determination is not limited thereto. For example, in step S901, the CPU 212 may determine whether the MFP 100 supports the mode without determining whether the use by the MFP 100 is restricted. For example, if it is determined that the security mode of the AP to be determined is a mode supported by the MFP, the CPU 212 may advance the sequence to step S902, and if it is not a mode supported by the MFP, advance the sequence to step S906.
[0184] In step S902, the CPU 212 determines whether the security strength of the security mode of the candidate AP is at least Figure 7 The security strength of the security mode stored in step S703 (see Figure 8 ). If it is determined that the security strength is at least the security strength of the stored security mode, the sequence proceeds to step S903. However, otherwise, the sequence proceeds to step S906.
[0185] A specific example of step S902 will be described. For example, if Figure 7 If "WPA1 / 2-PSK" is stored as the security mode in step S703 of the candidate AP and the security strength of the security mode of the candidate AP is "WPA3-SAE" or "WPA1 / 2-PSK", the CPU 212 will sequence to step S903. If "WPA1 / 2-PSK" is stored in step S703 and the security strength of the security mode of the candidate AP is "OPEN", the CPU 212 will sequence to step S906. If "WPA3-SAE" is recorded in step S703 and the security strength of the security mode of the candidate AP is "WPA3-SAE", the CPU 212 will sequence to step S903. If "WPA3-SAE" is recorded in step S703 and the security strength of the security mode of the candidate AP is "WPA1 / 2-PSK", the CPU 212 will sequence to step S906.
[0186] In this way, if the candidate AP is an AP using a security mode with a lower security strength than that of the currently connected AP, it is determined that the AP does not satisfy the condition of the connection destination AP. This makes it possible to suppress a situation in which the connection destination AP is changed to an AP with a lower security strength than that of the currently connected AP when the MFP 100 receives a change request from the currently connected AP. On the other hand, if the candidate AP is an AP using a security mode with a security strength at least equal to that of the security mode of the currently connected AP, it is determined that the AP satisfies the condition of the connection destination AP.
[0187] In step S903, the CPU 212 determines whether the authentication mode type (e.g., PSK, SAE, EAP, or OPEN) of the candidate AP is the same as the stored authentication mode type. If the authentication mode is the same type, the CPU 212 proceeds to step S905, and if not, proceeds to step S904.
[0188] For example, suppose Figure 8 The security mode stored in the process (the security mode set when the wireless infrastructure mode is set) is the (1-1) WPA-PSK or (1-2) WPA2-PSK. In this case, if the security mode of the candidate AP is (1-1) WPA-PSK or (1-2) WPA2-PSK, the type of authentication mode is the same, that is, PSK, so it is determined as "yes" in step S903. In other words, if, for example Figure 8 If the security mode stored in the process is the (1-1) WPA-PSK, and the security mode of the candidate AP is (1-2) WPA2-PSK, it is determined as "Yes" in step S903.
[0189] At the same time, assuming that Figure 8 The security mode stored in is the (1-1) WPA-PSK or (1-2) WPA2-PSK. In this case, if the security mode of the candidate AP is (2-1) WPA3-SAE, the authentication mode type is PSK and SAE, so it is determined as "No" in step S903. Similarly, if, for example Figure 8 If the mode stored in the process is (1-1) WPA-PSK or (1-2) WPA2-PSK, and the mode of the candidate AP is (3-1) WPA-EAP or (3-2) WPA2-EAP, then it is determined as "No" in step S903. Figure 8 The security mode stored in the process corresponds to one of the personal mode and the enterprise mode, and the type of the security mode of the candidate AP corresponds to the other of the personal mode and the enterprise mode, then the types of authentication modes are different.
[0190] In step S904, the CPU 212 determines whether a setting value corresponding to the authentication mode (e.g., SAE, PSK, EAP, or OPEN) of the candidate AP is recorded. If it is determined that the value is not stored, the sequence proceeds to step S905. However, if it is determined that the value is stored, the sequence proceeds to step S906.
[0191] Next, the setting values corresponding to the authentication mode will be described. The setting values required for SAE are, for example, a password. The setting values required for PSK are, for example, a password and a PSK (pre-shared key). The setting values required for EAP are, for example, a user name, a login name, a certificate, etc. EAP is an enterprise mode. In other words, the setting values are information required when the MFP 100 is connected to the AP according to the type of authentication mode. For example, the setting values corresponding to the authentication mode are stored in the processing of step S703. For example, in the processing executed as step S703, Figure 8 In step S809, the setting value is stored. In this way, even if the type of authentication mode used by the MFP 100 and the currently connected AP is different from the type of authentication mode of the candidate AP, if information required for connection using a different type of mode is obtained, it is assumed that the AP to which the connection destination is to be changed satisfies the target condition despite the different types.
[0192] For example, if the security mode of the currently connected AP is "WPA1 / 2-PSK", but the security mode of the candidate AP is "WPA1 / 2-EAP", it is determined in step S903 that the types of authentication modes are different. Meanwhile, if it is determined in step S904 that the EAP setting value (user name, login name, certificate, etc. required for EAP authentication) is stored, the candidate AP is not excluded from the target of connection destination change. In other words, changing the connection destination based on the change request of the candidate AP is not suppressed.
[0193] Although the present embodiment describes an example in which the sequence proceeds to step S904 when it is determined as "No" in step S903, the configuration is not limited thereto. For example, when it is determined as "No" in step S903, the processing of step S904 may be skipped, and the sequence may proceed to step S905. In other words, when the type of authentication mode of the currently connected AP and the type of authentication mode of the candidate AP are different, the CPU 212 may uniformly determine that the target condition is not satisfied.
[0194] In step S905, the CPU 212 determines that the AP meets the connection destination change condition based on the change request. In other words, it determines that the candidate AP meets the target condition of the AP after the connection destination change. The CPU 212 stores the determination result in the RAM 214 and / or the nonvolatile memory 215.
[0195] In step S906, the CPU 212 determines that the AP does not meet the connection destination change condition based on the change request. In other words, it determines that the candidate AP does not meet the target condition of the AP after the connection destination change. The CPU 212 stores the determination result in the RAM 214 and / or the nonvolatile memory 215.
[0196] Setting screen for limiting the security mode used when connecting to an AP
[0197] Fig.10 is an example of a setting screen for limiting the security mode used when the MFP 100 is connected to the AP in the wireless infrastructure mode. Figure 3D When “Wireless LAN Advanced Settings” is selected in the screen shown in FIG. 1 , the CPU 212 displays a Fig.10 Although the setting screen displayed in the console unit 220 of the MFP 100 is described as an example, the configuration is not limited thereto. Fig.10 The setting screen shown may be displayed in, for example, an external device such as the mobile terminal device 104 by an application capable of performing settings in the MFP 100 , a Web browser, or the like.
[0198] The setting items (options) 1001 to 1004 of the security mode used when connecting to an AP in wireless infrastructure mode are displayed in the setting screen. For example, the setting items 1001 to 1004 may be displayed as an interface capable of accepting an instruction to set a lower limit for the security mode. In other words, the setting screen is a screen that can set a lower limit for the security mode used when the MFP 100 is connected to the AP. The setting screen may also be referred to as a screen that can set the security mode that can be used when the MFP 100 is connected to the AP. In other words, the setting screen may be referred to as a "security setting screen." In other words, the "lower limit" of the security mode is the standard used for the security mode when the MFP 100 is connected to the AP. Setting the standard for the security mode in the setting screen in this way can suppress the situation where the connection destination of the MFP 100 is changed to an AP that uses a security mode that does not meet the standard.
[0199] A relatively secure security mode is displayed in the setting item 1001 , for example, WPA3-SAE (AES) and WPA1 / 2 / 3-EAP (AES) are relatively secure modes.
[0200] The medium security mode is displayed in the setting item 1002 , for example, WPA1 / 2-PSK (AES) is the medium security mode.
[0201] A less secure security mode is displayed in the setting item 1003. For example, WPA-PSK (TKIP) is a less secure mode.
[0202] An unsafe security mode is displayed in the setting item 1004. For example, a mode that does not require authentication when connecting to an AP is an unsafe mode. For example, an OPEN mode is a mode that does not require authentication.
[0203] When one of the security mode setting items 1001 to 1004 is selected in the setting screen by a user operation, the CPU 212 stores the security mode corresponding to the selected setting item in the RAM 214 and / or the nonvolatile memory 215. In other words, the security mode corresponding to the setting item selected by the user is set to the lower limit of the security mode used when the MFP 100 is connected to the AP. As a result, when connected to the AP in the wireless infrastructure mode, the MFP 100 is restricted from connecting to the AP in a mode that is less secure than the security mode selected by the user. This makes it possible to suppress a situation where the MFP 100 is connected to the AP in a security mode that is not intended by the user.
[0204] Specifically, for example, if the setting item 1001 is selected, when the MFP 100 is connected to the AP in the wireless infrastructure mode, the security mode corresponding to the setting item 1001 can be used. On the other hand, the use of the security modes corresponding to the setting items 1002 to 1004 is restricted. Meanwhile, if, for example, the setting item 1002 is selected, when the MFP 100 is connected to the AP in the wireless infrastructure mode, the security modes corresponding to the setting items 1001 and 1002 can be used. On the other hand, the use of the security modes corresponding to the setting items 1003 and 1004 is restricted.
[0205] The security mode setting items 1001 to 1004 selected by the user in the setting screen can be used to determine whether to perform the security mode setting based on the steps S708 and S714 ( Fig. 9 The connection destination AP is changed based on the change request made in step S902), and whether to limit the security mode used when connecting to the AP.
[0206] If in Figure 7 If the security modes used by the APs obtained through the AP search in steps S702, S706, etc. are only the restricted modes in the setting screen, these modes can be excluded from the results of the AP search to limit the security modes used when connecting to the AP.
[0207] Meanwhile, for example, items with higher security strength among the setting items 1001 to 1004 may be preferentially displayed in the setting screen. For example, in the setting screen, items with higher security strength may be displayed at a higher position, or may be highlighted.
[0208] Although the present embodiment describes an example in which the security modes corresponding to the setting items 1000 to 1004 selected by the user through the console unit 220 of the MFP 100 are stored, the configuration is not limited thereto. Fig.10 If the setting screen shown in is displayed in an external device such as the mobile terminal device 104 described above, the security mode setting may be stored based on a specific signal transmitted from the external device.
[0209] Therefore, as described above, according to the step S708 of this embodiment, Fig. 9 In the process of step S902, when a measurement request is received from the currently connected AP, the MFP 100 performs an AP search. Then, the MFP 100 performs control so that, in accordance with the above-mentioned suppression process 2, a false response is provided for information of an AP whose security strength is lower than that of the currently connected AP among the APs found by the AP search. This suppresses the situation where a change request requesting to change the connection destination to an AP with a lower security mode is sent from the currently connected AP.
[0210] In addition, according to the step S714 of this embodiment, Fig. 9 In the processing of step S902, when a connection destination AP change request is received from the currently connected AP, the MFP 100 performs control based on the security strength of the security mode of the recommended AP. If the recommended AP is an AP that uses a security mode with a security strength lower than the security strength of the currently connected AP, the MFP 100 performs control in accordance with suppression processing 1 so that the connection destination AP is not changed to the recommended AP. In other words, the MFP 100 does not change the connection destination to the recommended AP, and does not respond to the change request or make a response indicating that the connection destination AP will not change. This suppresses a situation in which the security strength of the connection to the AP decreases due to a change in the connection destination based on the connection destination change request. In other words, it is possible to more easily connect to an AP with a better communication environment while maintaining a secure connection with the AP.
[0211] According to the step S708 of this embodiment, Fig. 9 In the processing of step S901 of , when the APs found as a result of the AP search include an AP not supported by the MFP 100 or an AP whose use is restricted, the MFP 100 performs the following control. Control is performed in accordance with the above-mentioned suppression processing 2 so that information of the AP not supported by the MFP 100 or the AP whose use is restricted is provided as a false response in the beacon report (response to the measurement request). This suppresses the sending of a change request to change the connection destination to an AP using a security mode not supported by the MFP 100, an AP using a security mode restricted by the MFP, or the like.
[0212] In addition, according to the step S714 of this embodiment, Fig. 9 In the processing of step S901, when a connection destination AP change request is received, the MFP 100 performs the following control. If the security mode of the recommended AP is a security mode that the MFP 100 does not support or a security mode whose use is restricted, control is performed according to suppression processing 1 so that the connection destination is not changed to the recommended AP. In other words, the MFP 100 does not respond to the change request or makes a response indicating that the connection destination AP will not be changed. This makes it possible to suppress the occurrence of a situation in which the MFP 100 attempts to change the connection destination according to the connection destination change request and terminates the connection with the currently connected AP, but cannot connect to the recommended AP (connection with the recommended AP fails).
[0213] Assume that the MFP 100 does not perform the processing of step S901 as in the present embodiment, but terminates the connection with the currently connected AP according to the connection destination change request, and attempts to connect to the recommended AP using a security mode that the MFP 100 does not support or using a restricted security mode. If the MFP 100 cannot connect to the recommended AP, problems such as the following will occur.
[0214] The first problem is that the AP before switching is disconnected, resulting in a period of time when the MFP 100 cannot communicate with the AP. In addition, processing time is required to connect to the recommended AP, and processing time is required to connect to another AP after the connection with the recommended AP fails. This prolongs the period of time during which communication is impossible. As a result, stable communication is hindered. The second problem is that if the MFP 100 terminates the connection with the AP before switching based on the connection destination AP change request and does not store the information required to connect to the AP before switching, it will not be possible to reconnect to the AP before switching. The information required for the connection is connection information including at least one of the SSID and the password, other setting information, etc. In order to prevent such problems from occurring, in the present embodiment, more stable communication can be performed while reducing unnecessary disconnections with the AP, while also controlling to connect to an AP with a better communication environment based on the change request.
[0215] According to the step S708 of this embodiment, Fig. 9 In the process of step S903, when a measurement request is received from the currently connected AP, the MFP 100 performs an AP search. Then, according to the above-mentioned suppression process 2, the MFP 100 makes a false response in the beacon report (response to the measurement request) for information of an AP of a security mode type different from that of the currently connected AP among the APs found by the AP search. This suppresses the situation where a change request is sent requesting to change the connection destination to an AP with a different security mode type.
[0216] In addition, according to the step S714 of this embodiment, Fig. 9In the processing of step S903, when a connection destination AP change request is received from the currently connected AP, the MFP 100 performs control based on the type of authentication mode of the recommended AP. If the type of authentication mode of the recommended AP is different from the authentication mode of the currently connected AP, the MFP 100 performs control so that the connection destination is not changed to the recommended AP in accordance with suppression processing 1. In other words, the MFP 100 does not respond to the change request of the currently connected AP, or makes a response indicating that the connection destination AP will not change. In this way, it is possible to more easily connect to an AP with a better communication environment while maintaining the same authentication mode type for connecting to the AP as the authentication mode type used in the wireless infrastructure mode setting. In other words, it is possible to more easily connect to an AP with a better communication environment based on a change request while suppressing problems such as a decrease in security or security becoming too strong due to an unintentional change in the type of authentication mode with the AP.
[0217] In addition, by performing the processing of step S904 of the present embodiment, if a setting value corresponding to the type of authentication mode of the recommended AP is stored, the connection destination AP is changed based on the change request even if the type of authentication mode is different. In this way, it is easier to connect to an AP with a better communication environment while maintaining the connection with the currently connected AP as long as possible.
[0218] Although it has been described that the security mode of the candidate AP is compared with the security mode of the AP stored when the wireless infrastructure mode is set and started in the determination of step S902 ( Figure 7 The method of step S703 in the example above is used, but the configuration is not limited thereto. For example, the security mode may be compared with a predetermined security mode. Specifically, the security mode may be compared with a security mode stored as a result of a user operating the console unit 220 of the MFP 100 as described in reference to FIG. Fig.10 The security mode may also be compared with a security mode stored in response to receiving a specific signal from an external device such as the mobile terminal device 104. In addition, if the security mode is compared with a pre-specified security mode in the process of step S902, the security mode may be specifically compared with available security modes stored in one or more of the ROM 213, the RAM 214, and the non-volatile memory 215 of the MFP 100.
[0219] In addition, although the method of determining whether the security mode of the candidate AP is supported or restricted by the MFP 100 in the determination of step S901 has been described, the configuration is not limited thereto. In the determination of step S901, the CPU 212 may determine whether the MFP 100 and the candidate AP are connectable based on the information obtained from the candidate AP and the capability information of the MFP 100. For example, the determination may be made based on at least one of the security mode (authentication mode and / or encryption mode), the frequency band, the channel, and the communication standard.
[0220] According to the present embodiment described so far, more appropriate control can be performed in response to a connection destination change request received from an AP. In other words, the MFP 100 as a STA can be switched to an appropriate AP.
[0221] The above-described various controls performed by the CPU 212 may be performed by a single hardware, or control of the entire apparatus may be performed by dividing the processing between a plurality of hardware (eg, a plurality of processors or circuits).
[0222] Although the preferred embodiments of the present invention are described above, the present invention is not limited to the above specific embodiments, and all changes that do not deviate from the essential spirit of the present invention should be included in the scope of the present invention. In addition, the above embodiments are only embodiments of the present invention, and different embodiments can be appropriately combined.
[0223] In addition, although the above embodiment is described by taking the case where the present invention is applied to an MFP as an example, the present invention is not limited to this example, but can be applied to any wireless device used as a STA that can process in response to a request to change the connection destination from an AP. In other words, the present invention can be applied to personal computers, PDAs, tablet terminals, mobile phone terminals such as smartphones, music players, game consoles, e-book readers, smart watches, various measuring devices (sensor devices) such as thermometers and hygrometers, etc. The present invention can also be applied to digital cameras (including still cameras, video cameras, web cameras, and security cameras), printers, scanners, and drones. The present invention can also be applied to video output devices, audio output devices (e.g., smart speakers), streaming media players, wireless LAN client devices (adapters) that can be connected to USB terminals, LAN cable terminals, etc. The video output device includes, for example, a device such as a set-top box that obtains (downloads) a moving image or a still image specified by a URL provided by an electronic device from the Internet, and outputs the moving image or the still image to a display device connected via a video output terminal such as an HDMI (registered trademark) terminal. In this way, streaming playback, mirroring display (the content displayed in the electronic device is also displayed on the display device), etc. are realized on the display device. Video output devices also include media players such as televisions, hard disk recorders, blue-ray recorders, DVD recorders, etc., as well as head-mounted displays, projectors, display devices (monitors), signage devices, etc. The present invention can also be applied to devices that can be connected via Wi-Fi, or so-called "smart home appliances", such as air conditioners, refrigerators, washing machines, vacuum cleaners, ovens, microwave ovens, lighting appliances, heating appliances, cooling appliances, etc.
[0224] Other embodiments
[0225] The embodiments of the present invention may also be implemented by reading and executing computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be more completely referred to as a "non-transitory computer-readable storage medium") to perform one or more functions in the above-mentioned embodiments, and / or a computer of a system or device including one or more circuits (e.g., an application-specific integrated circuit (ASIC)) for performing one or more functions in the above-mentioned embodiments, and the embodiments of the present invention may be implemented by, for example, reading and executing the computer executable instructions from the storage medium by the computer of the system or device to perform one or more functions in the above-mentioned embodiments, and / or controlling the one or more circuits to perform one or more functions in the above-mentioned embodiments. The computer may include one or more processors (e.g., a central processing unit (CPU), a microprocessing unit (MPU)), and may include a network of separate computers or separate processors to read and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, a hard disk, a random access memory (RAM), a read-only memory (ROM), a memory of a distributed computing system, an optical disk (such as a compact disc (CD), a digital versatile disc (DVD), or a Blu-ray disc (BD) TM ), flash memory devices, memory cards, and the like.
[0226] The embodiments of the present invention may also be implemented by providing software (program) for performing the functions of the above-described embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.
[0227] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims
1. An electronic device, comprising: a connecting unit configured to connect to a first access point (AP) based on a first security mode; a changing unit configured to change the AP serving as the connection destination based on a change request of the AP serving as the connection destination, the change request being received from the currently connected AP; as well as A control unit configured to control to suppress a process of changing, by the changing unit, an AP that cannot be connected in a security mode that can be used by the connecting unit among candidate APs serving as candidates to be changed by the changing unit to an AP serving as a connection destination.
2. An electronic device, comprising: a connecting unit configured to connect to a first access point (AP) based on a first security mode; a changing unit configured to change the AP serving as the connection destination based on a change request of the AP serving as the connection destination, the change request being received from the currently connected AP; as well as a control unit configured to suppress the change to the second AP by the change unit in at least one of the following cases: (i) a case where a second security mode used in a network formed by a second AP among the candidate APs used as candidates to be changed to in the change request is a predetermined security mode restricted by the electronic device; (ii) The electronic device does not support the second security mode.
3. The electronic device according to claim 1, in, The control unit controls to suppress a situation in which a currently connected first AP is disconnected because an AP that cannot be connected in a security mode that can be used by the connection unit among the candidate APs is an AP serving as a connection destination after the change.
4. The electronic device according to claim 1, further comprising: a receiving unit configured to receive a measurement request sent from a first AP, the measurement request requesting a measurement result of a signal quality of an AP near the electronic device; a measuring unit configured to measure signal qualities of nearby APs upon receiving a measurement request; as well as a sending unit configured to send a response based on a measurement result measured by the measuring unit to the first AP, In which, when the measurement result from the measuring unit includes the signal quality of a second AP that cannot be connected in a security mode that the connecting unit can use, the control unit controls the sending unit to send the response as content with a signal quality lower than the signal quality of the second AP or content that does not include the signal quality of the second AP.
5. The electronic device according to claim 1, in, When the recommended AP included in the change request as one of the candidate APs and recommended as the AP to be changed to is a third AP connectable in a security mode that can be used by the connection unit, the control unit controls the change unit to change the connection destination so that the third AP becomes the changed connection destination, and When the recommended AP is a second AP that cannot be connected in a security mode that can be used by the connection unit, the control unit controls the change unit not to change the connection destination so that the second AP becomes the changed connection destination.
6. The electronic device according to claim 5, in, When the recommended AP is the second AP, the control unit controls the changing unit not to change the AP serving as the connection destination, and controls to transmit a response indicating rejection of changing the connection destination based on the change request to the first AP as a response to the change request.
7. The electronic device according to claim 5, in, When the recommended AP is the second AP, the control unit controls the changing unit not to change the AP serving as the connection destination, and controls not to transmit a response to the change request to the first AP.
8. The electronic device according to claim 1, in, The security mode that can be used by the connection unit is determined based on at least one of an authentication mode and an encryption mode that can be used in connection with the AP and included in the capability information of the electronic device.
9. The electronic device according to claim 1, further comprising: a setting unit configured to set at least one of a safety mode restricted by the electronic device and a safety mode not restricted by the electronic device, and The AP that cannot be connected in the security mode that can be used by the connection unit includes an AP that uses a security mode restricted by the electronic device based on the content set by the setting unit.
10. The electronic device according to claim 9, in, The setting unit performs setting based on content received from the external device.
11. The electronic device according to claim 1, in, The first safety mode is any one of a plurality of modes, the plurality of modes comprising: Use the Simultaneous Authentication of Equivalent Entities (SAE) mode; Mode using an authentication server that supports IEEE 802.1X / Extensible Authentication Protocol (EAP); Mode using Advanced Encryption Standard (AES); Mode using pre-shared key (PSK); Modes that use the Temporal Key Integrity Protocol (TKIP); and OPEN mode without authentication and encryption, and The security mode that the connection unit cannot use is at least one mode among the plurality of modes that is different from the first security mode.
12. The electronic device according to claim 1, in, The control unit is further configured to perform control to suppress a situation in which an AP using a security mode having a weaker security mode than the first security mode is connected due to the change of the AP serving as the connection destination by the change unit.
13. The electronic device according to claim 1, in, The control unit also controls to suppress a situation in which the changing unit changes the AP serving as the connection destination so that an AP connected using a second authentication mode different from the first authentication mode used to connect to the first AP is the changed connection destination.
14. The electronic device according to claim 1, in, The electronic device is connected to the AP and performs processing according to the IEEE802.11ax standard.
15. The electronic device according to claim 1, in, The electronic device is capable of performing at least one of an Orthogonal Frequency Division Multiple Access (OFDMA) compliant process and a Target Wake Time (TWT) compliant process.
16. The electronic device according to claim 1, in, The electronic device is able to change the connection destination to an AP using a 6 GHz frequency band by changing the connection destination based on the change request.
17. The electronic device according to claim 1, further comprising: A printing unit is configured to be capable of executing a printing process based on the printing data received via the AP.
18. The electronic device according to claim 1, in, The control unit performs control so that suppression is performed based on the security mode of the candidate AP.
19. A control method for an electronic device, the control method comprising: A connecting step of connecting to a first access point (AP) based on a first security mode; a changing step of changing the AP serving as the connection destination based on a change request of the AP serving as the connection destination, the change request being received from the currently connected AP; as well as A control step of controlling to suppress the following processing: in the changing step, an AP that cannot be connected in the security mode that can be used in the connecting step among the candidate APs to be changed in the changing step is changed to an AP used as a connection destination.
20. A computer-readable storage medium storing a program configured to cause a computer to execute the following steps: A connecting step of connecting to a first access point (AP) based on a first security mode; a changing step of changing the AP serving as the connection destination based on a change request of the AP serving as the connection destination, the change request being received from the currently connected AP; and A control step of controlling to suppress the following processing: in the changing step, an AP that cannot be connected in the security mode that can be used in the connecting step among the candidate APs to be changed in the changing step is changed to an AP used as a connection destination.
21. A computer program product configured to cause a computer to execute the following steps: A connecting step of connecting to a first access point (AP) based on a first security mode; a changing step of changing the AP serving as the connection destination based on a change request of the AP serving as the connection destination, the change request being received from the currently connected AP; and A control step of controlling to suppress the following processing: in the changing step, an AP that cannot be connected in the security mode that can be used in the connecting step among the candidate APs to be changed in the changing step is changed to an AP used as a connection destination.
Citation Information
Patent Citations
Mobile router, mobile router control method and mobile router control program
JP2021175068A