Communication apparatus and control method
By designing a designated unit, a first control unit, a switching unit and a second control unit in the communication device, channel matching and switching are realized, and the problem of low concurrent operation efficiency of wireless communication devices in different modes in the prior art is solved, and the problem of improved concurrent operation efficiency of wireless communication devices in different modes is improved. Communication stability and efficiency.
Patent Information
- Application Number
- CN202410826869.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-30
- Filing Date
- 2024-06-25
- Publication Date
- 2024-12-31
AI Technical Summary
When existing wireless communication devices match and switch channels, it is difficult to operate efficiently in different modes concurrently, resulting in limited communication efficiency and stability.
A communication device is designed, including a designated unit, a first control unit, a switching unit and a second control unit. Through specific processing and control methods, channels are matched and switched, ensuring that in different modes (such as Wi-Fi Direct) and infrastructure connection mode) operate concurrently to prevent radio wave interference.
The matching and switching efficiency of the communication device in different modes is improved, radio wave interference is reduced, and communication stability and convenience are enhanced.
Smart Images

Figure CN119233350A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a communication device and a control method. Background Art
[0002] Japanese Patent Laid-Open No. 2013-157943 proposes a technology in which a wireless communication device matches a channel used for connecting to an access point with a channel used for connecting to a mobile terminal via Wi-Fi Direct (WFD).
[0003] As devices that can operate in a mode as a slave and in another mode as a master become increasingly popular, it becomes increasingly desirable to improve the availability of the devices. Summary of the invention
[0004] The present disclosure is proposed to solve the above-mentioned problems, etc., and provides a communication device that can operate in a first mode as a slave station that conforms to a predetermined wireless communication standard and in a second mode as a master station that conforms to the predetermined wireless communication standard. The communication device includes a designation unit, a first control unit, a switching unit, and a second control unit. The designation unit, when the communication device is operating in the second mode, performs a specific process for making the communication device operate in the first mode, and specifies (i) a channel different from the channel used by the communication device in the second mode when the specific process is performed and (ii) a channel to be used by the communication device in the second mode after the specific process is performed, based on a match between a channel used by the communication device in the second mode when the specific process is performed and a channel used by the communication device in the first mode started by the specific process. The first control unit controls the communication device so that when the communication device is operating in the second mode, the communication device concurrently operates in the first mode and the second mode, and operates in the second mode using the designated channel. The switching unit, when the communication device is operating in the first mode, switches the destination connected by the communication device in the first mode from the first network to the second network based on the reception of predetermined information by the communication device via the first network connected by the communication device in the first mode. The predetermined information is provided for switching a destination connected by the communication device in the first mode from the first network to the second network. The second control unit performs predetermined control to prevent switching of the destination connected by the communication device in the first mode from the first network to a network using a channel used by the communication device in the second mode based on the predetermined information in a state where the communication device operates in the first mode and the second mode concurrently.
[0005] Further features of the present disclosure will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Figure 1 is a diagram illustrating an example of a configuration of a communication system.
[0007] FIG. 2A to FIG. 2F is a diagram illustrating an example of a screen displayed by an operation display unit of a communication device.
[0008] Figure 3A and Figure 3B is a diagram illustrating an example of a wireless connection sequence in a direct connection mode.
[0009] Figure 4 is a diagram illustrating an example of a wireless connection sequence in an infrastructure connection mode.
[0010] Figure 5 is a sequence diagram illustrating a process to be performed by Wi-Fi Agile Multiband.
[0011] Figure 6 is a diagram illustrating the arrangement of channels for each frequency band.
[0012] Figure 7 is a flow chart illustrating a process to be performed by a communication device.
[0013] Figure 8 is a flow chart illustrating a process to be performed by a communication device.
[0014] Fig. 9 is a flow chart illustrating a process to be performed by a communication device.
[0015] Fig.10 is a flowchart illustrating a process to be performed by a communication device according to the second embodiment.
[0016] Fig.11 is a flow chart illustrating a process to be performed by a communication device.
[0017] Fig.12 is a flow chart illustrating a process to be performed by a communication device.
[0018] Fig.13 is a flow chart illustrating a process to be performed by a communication device.
[0019] Fig.14 is a flow chart illustrating a process to be performed by a communication device. DETAILED DESCRIPTION
[0020] Hereinafter, example embodiments of the present disclosure will be described. However, with respect to the present disclosure, it should be understood that, based on the common sense of those skilled in the art, modifications and improvements may be made to the following embodiments without departing from the spirit of the present disclosure, and such modified embodiments also fall within the scope of the present disclosure.
[0021] First embodiment
[0022] The information processing device and the communication device included in the communication system according to the present embodiment will be described. As the information processing device, a smart phone is exemplarily described in the present embodiment. However, the information processing device is not limited to this. As the information processing device, a mobile terminal, a laptop personal computer (PC), a tablet terminal, a personal digital assistant (PDA), a digital camera, etc. can be used. In addition, as a communication device, a printer is exemplarily described in the present embodiment. However, the communication device is not limited to this. Various devices can be used as communication devices as long as the device can perform wireless communication with the information processing device. For example, in the case of using a printer as a communication device, an inkjet printer, a full-color laser beam printer, a monochrome printer, etc. can be used as a communication device. In addition, not only printers, but also copiers, fax machines, mobile terminals, smart phones, laptop PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, smart speakers, etc. can also be used as communication devices. In addition, a multi-function peripheral having multiple functions including a copy function, a fax function, and a printing function can be used as a communication device.
[0023] First, refer to Figure 1 The block diagram of FIG. 1 describes the configuration of the information processing device included in the communication system according to the present embodiment and the communication device that can communicate with the information processing device. In this embodiment, the following configuration will be described as an example, but the function is not particularly limited to Figure 1 The functionality shown in .
[0024] The information processing apparatus 101 includes an input interface 102 , a CPU 103 , a ROM 104 , a RAM 105 , an external storage device 106 , an output interface 107 , an operation display unit 108 , a communication unit 109 , a short-range wireless communication unit 110 , and an image capturing device 111 .
[0025] The input interface 102 receives data input and operation instructions from the user, and includes a physical keyboard, buttons, a touch panel, etc. The output interface 107 described later and the input interface 102 may be included in the same configuration, and may perform output of a screen and reception of an operation from the user in the same configuration.
[0026] The CPU 103 is a system control unit and controls the entire information processing apparatus 101 .
[0027] The ROM 104 stores fixed data such as a control program, a data table, and an embedded operating system (hereinafter referred to as an OS) program to be executed by the CPU 103. In the present embodiment, the control program stored in the ROM 104 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS program stored in the ROM 104.
[0028] The RAM 105 includes a static random access memory (SRAM) that requires a backup power supply. Since data is retained in a primary battery (not shown) for data backup, important data such as program control variables can be stored in the RAM 105 without volatility. In addition, a memory area for storing setting information of the information processing device 101, management data of the information processing device 101, and the like is provided in the RAM 105. The RAM 105 is also used as a main memory and a working memory of the CPU 103.
[0029] The external storage device 106 includes an application that provides a print execution function (hereinafter referred to as a print application). In addition, the external storage device 106 includes various programs, including a print information generation program for generating print information that can be interpreted by the communication device 151, and an information transmission and reception control program for transmitting and receiving information to and from the communication device 151 connected to the information processing device 101 via the communication unit 109. The external storage device 106 stores various types of information used by these programs. The external storage device 106 also stores image data acquired from another information processing device and the Internet via the communication unit 109.
[0030] The output interface 107 controls display of data by the operation display unit 108 and notification of the status of the information processing apparatus 101 by the operation display unit 108 .
[0031] The operation display unit 108 includes a light emitting diode (LED) and a liquid crystal display (LCD). The operation display unit 108 displays data and notifies the status of the information processing apparatus 101. A software keyboard including keys including a numeric input key, a mode setting key, an OK key, a cancel key, and a power key may be provided on the operation display unit 108, and the information processing apparatus 101 may receive input from a user via the operation display unit 108.
[0032] The communication unit 109 is connected to a device such as the communication device 151 and is configured to perform data communication. For example, the communication unit 109 can be connected to an access point (not shown) within the communication device 151. In the case where the communication unit 109 is connected to the access point within the communication device 151, the information processing device 101 and the communication device 151 can communicate with each other. The access point is also referred to as AP hereinafter. The communication unit 109 can directly communicate wirelessly with the communication device 151, or can communicate with the communication device 151 via an access point 131 or the like existing outside the information processing device 101 and the communication device 151. In the present embodiment, it is assumed that the IEEE802.11 series of standards are used as the wireless communication method.
[0033] The IEEE802.11 series of standards is called Wireless Fidelity (Wi-Fi) (registered trademark). In this embodiment, it is assumed that the communication device 151 can communicate as a station that complies with the IEEE802.11 series of standards. In the following, the station is also referred to as STA. In addition, the station corresponds to a slave station (substation) for Wi-Fi. A slave station for Wi-Fi is a device that does not determine the channel to be used for Wi-Fi connection and uses the channel determined by the master station (parent station) as the channel to be used for Wi-Fi connection for Wi-Fi connection. In this embodiment, it is assumed that the communication device 151 supports the Wi-Fi Agile Multi-Band (registered trademark) feature and can perform communication as a STA that supports Wi-Fi Agile Multi-Band. In addition, it is assumed that the communication device 151 also supports the Wi-Fi 6 (registered trademark) feature that complies with the IEEEE802.11ax standard. Therefore, the communication device 151 can perform operations as a STA that supports orthogonal frequency division multiple access (OFDMA) and target wake-up time (TWT) as Wi-Fi 6 features. When the communication device 151 does not need to standby to receive a signal, the communication device 151 as a STA can suppress power consumption by moving the communication function to a sleep state. Specifically, the communication device 151 can support the Wi-Fi 6E (registered trademark) feature as a Wi-Fi 6 feature. That is, the communication device 151 may be able to perform communication in the 6GHz band (from 5.925GHz to 7.125GHz). Unlike the 5GHz band, the 6GHz band does not include a target band in which dynamic frequency selection (DFS) is performed. Therefore, in communications in the 6GHz band, communication interruptions caused by waiting time for DFS do not occur.
[0034] As described above, in this embodiment, the communication device 151 supports Wi-Fi Agile Multi-Band and Wi-Fi 6, but is not limited thereto. For example, the communication device 151 may support Wi-Fi Agile Multi-Band but not support Wi-Fi 6.
[0035] As the access point 131, for example, a device such as a wireless LAN router can be used. In the present embodiment, a method in which the information processing apparatus 101 and the communication apparatus 151 are directly connected to each other without an external access point is referred to as a direct connection method. In addition, a method in which the information processing apparatus 101 and the communication apparatus 151 are connected to each other via an external access point 131 or the like is referred to as an infrastructure connection method.
[0036] The short-range wireless communication unit 110 is wirelessly connected to a device such as the communication device 151 within a short distance, and performs communication using a communication method different from the communication method of the communication unit 109. The short-range wireless communication method used by the short-range wireless communication unit 110 is, for example, Bluetooth (registered trademark) or near field communication (NFC). As Bluetooth, classic Bluetooth or low-power Bluetooth can be used. The short-range wireless communication unit 110 can be connected to the short-range wireless communication unit 157 in the communication device 151.
[0037] The image capturing device 111 converts the image captured by the image capturing element into digital data. The digital data is temporarily stored in the RAM 105. Thereafter, the program executed by the CPU 103 converts the digital data into data in a predetermined image format and stores the converted data in the external storage device 106 as image data.
[0038] The ROM 152 stores fixed data such as a control program to be executed by the CPU 154 , a data table, and an OS program.
[0039] The communication device 151 includes a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, a short-range wireless communication unit 157, an input interface 158, an output interface 159, and an operation display unit 160. In the case where a connection mode (communication mode) is set in the communication device 151, the communication device 151 can operate in the set connection mode.
[0040] The communication unit 156 is configured to enable the communication device 151 to communicate with another device. In the present embodiment, it is assumed that the communication unit 156 performs communication according to the IEEE802.11 series of standards. The communication unit 156 includes an access point for connecting to a device such as the information processing device 101 as an access point within the communication device 151. The access point can be connected to the communication unit 109 of the information processing device 101. The communication unit 156 can directly communicate wirelessly with the information processing device 101, or can communicate wirelessly with the information processing device 101 via the access point 131. In addition, the communication unit 156 may include hardware used as an access point. Alternatively, the communication unit 156 can operate as an access point by using software for enabling the communication unit 156 to function as an access point. In the present embodiment, it is assumed that the communication unit 156 and the short-range wireless communication unit 157 are implemented by a single wireless chip. That is, in the present embodiment, it is assumed that a combination chip that supports both a communication function that conforms to the IEEE802.11 series of standards and a communication function that conforms to a short-range wireless communication method is used as a wireless chip. However, the wireless chip is not limited to this. The communication unit 156 and the short-range wireless communication unit 157 can be implemented by different wireless chips. In addition, in the present embodiment, it is assumed that a wireless chip supporting the dynamic fast channel switching (DRCS) function is used. When the communication via the infrastructure connection and the communication via the direct connection are performed in a time-division manner during the concurrent operation described later, the DRCS function is used. Specifically, the DRCS function is a function of switching the communication channel in use at high speed between the state of performing the communication via the infrastructure connection and the state of performing the communication via the direct connection. In the following, the communication channel is only referred to as the channel, so in the present embodiment, during the concurrent operation, the channel used for communication via the infrastructure connection can be different from the channel used for communication via the direct connection, but the present embodiment is not limited thereto, for example, the communication unit 156 can be implemented by two or more wireless chips, including a wireless chip for the infrastructure connection mode and a wireless chip for the direct connection mode. Therefore, during the concurrent operation, the channel used for communication via the infrastructure connection can be different from the channel used for communication via the direct connection.
[0041] The RAM 153 includes a DRAM or the like that requires a backup power supply. Data is saved in the RAM 153 by supplying power (not shown) to perform data backup. Therefore, important data such as program control variables can be stored in the RAM 153 without volatility. In addition, the RAM 153 is used as a main memory and a working memory of the CPU 154, and stores various types of information as a receiving buffer for temporarily storing print information received from the information processing apparatus 101 or the like.
[0042] The ROM 152 stores fixed data such as a control program, a data table, and an OS program to be executed by the CPU 154. In the present embodiment, the control program stored in the ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in the ROM 152. In addition, the ROM 152 includes a memory area for storing data that is setting information of the communication device 151, management data of the communication device 151, and the like and that is required to be retained even when power is not supplied.
[0043] The CPU 154 is a system control unit and controls the entire communication device 151 .
[0044] The print engine 155 forms an image on a recording medium such as paper using a recording material such as ink, and outputs a print result based on the information stored in the RAM 153 and a print job received from the information processing apparatus 101 etc. In this case, the print job transmitted from the information processing apparatus 101 etc. has a large amount of transmission data, requiring high-speed communication, and therefore the print job is received via the communication unit 156, which can perform higher-speed communication than the short-range wireless communication unit 157.
[0045] The short-range wireless communication unit 157 is wirelessly connected to a device such as the information processing device 101 within a short distance, and is configured to perform data communication. The short-range wireless communication unit 157 performs communication using a communication method different from the communication method of the communication unit 156. The short-range wireless communication method used by the short-range wireless communication unit 157 is Bluetooth (registered trademark) or NFC. As Bluetooth, classic Bluetooth or low-power Bluetooth can be used. The short-range wireless communication unit 157 can be connected to the short-range wireless communication unit 110.
[0046] The input interface 158 receives data input and operation instructions from the user, and includes a physical keyboard, buttons, a touch panel, etc. The output interface 159 described later and the input interface 158 can be included in the same configuration, and the output of the screen and the reception of the operation from the user can be performed in the same configuration. The output interface 159 controls the display of data by the operation display unit 160 and the notification of the state of the communication device 151 by the operation display unit 160.
[0047] The operation display unit 160 includes a light emitting diode (LED) and a liquid crystal display (LCD). The operation display unit 160 displays data and notifies the status of the communication device 151. A software keyboard including keys including a numeric input key, a mode setting key, an OK key, a cancel key, and a power key may be provided on the operation display unit 160, and the communication device 151 may receive input from the user via the operation display unit 160.
[0048] Example of a screen displayed by the operation display unit 160
[0049] FIG. 2A to FIG. 2F An example of a screen displayed by the operation display unit 160 of the communication device 151 is schematically illustrated. Figure 2A An example of a home screen displayed in a state where the communication device 151 is powered on and operations such as printing and scanning are not performed (idle state or standby state) is illustrated. Figure 2A In the menu for the copy function, the menu for the scan function and the menu for the cloud function are displayed. The communication device 151 can receive Figure 2A The display is displayed seamlessly by pressing the buttons on the screen shown in the figure or by receiving the scroll operation on the touch panel. Figure 2A The screen shown in the figure is different from the screen shown in the figure. Figure 2B The figure shows a portion of the home page screen. Figure 2B In the menu, the menu for the print function, the menu for the photo function, and the menu for the function for changing the communication settings are displayed. Figure 2A and Figure 2B In the state of the screen shown in , when the user selects any menu by key operation or touch panel operation, the communication device 151 can start executing the function corresponding to the selected menu.
[0050] Figure 2C The diagram shows Figure 2B An example of a communication selection screen displayed in the case where a menu for changing the function of the communication settings is selected on the screen shown in . This communication selection screen includes, for example, a menu for making settings for a wired LAN, a menu for making settings for a wireless LAN, a menu for making settings for a wireless direct connection, and a menu for making settings for Bluetooth. The communication device 151 can start operating in an infrastructure connection mode (described later) according to the settings performed when the menu for making settings for a wireless LAN is selected. In addition, the communication device 151 can start operating in a direct connection mode (described later) according to the settings performed when the menu for making settings for a wireless direct connection is selected. In the settings performed when the menu for making settings for Bluetooth is selected, settings for enabling and disabling the Bluetooth function and settings for Bluetooth pairing can be made.
[0051] In this embodiment, specifically, for example, when a menu for performing wireless direct connection settings is selected, the Figure 2DThe screen shown in . The "Change Network Name (SSID)" button is a button for the user to change the service set identifier (SSID) of the communication device 151 operating in the direct connection mode to any value. The "Change Password" button is a button for the user to change the password used to connect to the communication device 151 operating in the direct connection mode to any value. The "Enable / Disable Direct Connection Mode" button is a button for activating the direct connection mode (described later) and stopping the direct connection mode in a state where the direct connection mode is activated. In the present embodiment, it is assumed that the WFD mode (described later) is activated when the "Enable / Disable Direct Connection Mode" button is selected. However, the present embodiment is not limited to this. When the "Enable / Disable Direct Connection Mode" button is selected, the software AP mode (described later) or the WFD mode can be activated, or both the software AP mode and the WFD mode can be activated. The "Set Frequency Band" button is a button for the user to set the frequency band to be used by the communication device 151 operating in the direct connection mode to perform communications in the direct connection mode. When the "Set Frequency Band" button is selected, the display Figure 2E In this embodiment, Figure 2E The screen shown in FIG. 1 includes an area for selecting a 2.4 GHz band and an area for selecting a 5 GHz band. Figure 2E In the case where the communication device 151 also supports communication using the 6.0 GHz band, Figure 2E The screen shown in FIG. 1 may include an area for selecting the 6.0 GHz frequency band, and the user may be able to Figure 2E Select the 6.0 GHz band on the screen shown in .
[0052] In this embodiment, specifically, for example, when a menu for performing wireless LAN settings is selected, the Figure 2FThe screen shown in . The "Select access point to connect" button is a button for establishing an infrastructure connection (described later) by the first method according to the present embodiment. The first method is a method in which the communication device 151 establishes an infrastructure connection with an access point selected from a list of one or more access points found by the communication device 151 in the search. The first method will be described in detail later. The "Connect using PC / smartphone" button is a button for establishing an infrastructure connection of the communication device 151 by the second method according to the present embodiment. The second method is a method in which information for connecting to an access point is transmitted from an information processing device such as a PC or a smart phone to the communication device 151, and the communication device 151 establishes an infrastructure connection with the access point by using the information. In the case where the "Connect using PC / smartphone" button is selected, the communication device 151 operates as a software AP connected to the PC or smart phone. The "Connect using WPS / AOSS" button is a button for establishing an infrastructure connection of the communication device 151 by the third method according to the present embodiment.
[0053] The third method is a method in which the communication device 151 establishes an infrastructure connection with an access point through a known setup method such as Wi-Fi Protected Setup (WPS) or one-touch wireless easy setup system (AOSS).
[0054] The method by which the communication device 151 establishes an infrastructure connection is not limited to the above method. For example, in order to transmit connection information for connecting to the access point 131 or the like to the communication device 151, communication using a Wi-Fi Easy Connect feature or a short-range wireless communication method using a device provisioning protocol (DPP) may be used. Figure 2F The screen shown in shows buttons for establishing an infrastructure connection by these methods.
[0055] About the direct connection method
[0056] Direct connection indicates a mode in which devices are directly wirelessly connected to each other (i.e., in a peer-to-peer manner) without an external device such as the access point 131. The communication device 151 may operate in a mode in which communication is performed via a direct connection (direct connection mode). In Wi-Fi communication, there are a variety of modes for communicating via a direct connection, such as a software AP mode and a Wi-Fi Direct (WFD) mode.
[0057] WFD mode is a mode for performing direct connection using WFD. WFD is a standard defined by the Wi-Fi Alliance and included in the IEEE802.11 series of standards. In WFD mode, after finding a device as a communication partner using a device search command, the roles of the P2P group owner (GO) and the P2P client are determined and the remaining wireless connection processing is performed. The group owner corresponds to the Wi-Fi master station, and the client corresponds to the Wi-Fi slave station. The determination of the role corresponds to the P2P GO negotiation. In WFD mode, before the role is determined, the communication device 151 is neither a master station nor a slave station.
[0058] Specifically, first, one of the devices that will communicate with each other issues a device search command to search for other devices to be connected in WFD mode. When other devices as communication partners are found, the two devices check information about the services and functions that the devices can supply. The check of the information to be supplied by the device is optional and not necessarily required. The stage of checking the information to be supplied by the device corresponds to, for example, P2P supply discovery. Next, after the check of the information to be supplied by the device, the P2P client in the device and the P2P group owner in the device are determined as roles. After determining the client and the group owner, parameters for performing communication via WFD are exchanged between the devices. Based on the exchanged parameters, the P2P client and the P2P group owner perform the remaining wireless connection processing and IP connection processing. In WFD mode, it may be necessary for the communication device 151 to operate as a GO without performing the above-mentioned GO negotiation. That is, the communication device 151 can operate in WFD mode as an autonomous GO mode. Furthermore, the state in which the communication device 151 operates in the WFD mode is, for example, a state in which connection via WFD is not established but the communication device 151 operates as a GO, or a state in which connection via WFD is established and the communication device 151 operates as a GO.
[0059] In software AP mode, one of the devices that communicate with each other (e.g., information processing device 101 and communication device 151) (e.g., information processing device 101) acts as a client to request various services. The other device implements the function of an access point for Wi-Fi by setting up software. The software AP corresponds to the Wi-Fi master station, and the client corresponds to the Wi-Fi slave station. In software AP mode, the client searches for a device used as a software AP by using a device search command. When the software AP is found, the client and the software AP perform the remaining wireless connection processing (establishment of a wireless connection, etc.). Thereafter, the client and the software AP perform IP connection processing (assignment of an IP address, etc.). The commands and parameters transmitted and received to implement a wireless connection between a client and a software AP may be defined in the Wi-Fi standard and will not be described.
[0060] In the present embodiment, in the case where the communication device 151 establishes and maintains a direct connection, the communication device 151 operates as a master station in the network to which the communication device 151 belongs. The master station is a device that builds a wireless network and provides parameters for connecting to the wireless network to the slave station. The parameters for connecting to the wireless network are parameters about the channels used by the master station. The slave station receives the parameters and connects to the wireless network built by the master station using the channels used by the master station. In the direct connection mode, since the communication device 151 operates as a master station, the communication device 151 can determine which frequency band to use for communication in the direct connection mode, and determine which channel to use for communication in the direct connection mode. In the present embodiment, it is assumed that channels for the 2.4 GHz frequency band and channels for the 5 GHz frequency band can be used by the communication device 151 for communication in the direct connection mode. It is assumed that the user can connect to the wireless network in the direct connection mode. Figure 2E arbitrarily make settings on the screen shown in to set the frequency band to be used (that is, set the channel of the frequency band to be used). Figure 2E When the 2.4 GHz band is selected on the screen shown in , the communication device 151 performs communication using a channel for the 2.4 GHz band in the direct connection mode. Figure 2E In the case where the 5 GHz band is selected on the screen shown in , the communication device 151 communicates using a channel for the 5 GHz band in the direct connection mode. However, in the present embodiment, it is assumed that even if Figure 2E , the communication device 151 will not use the channels of the dynamic frequency selection (DFS) band included in the 5GHz band for communication in the direct connection mode. In other words, it is assumed that the communication device 151 uses only the channels of the frequency bands other than the DFS band included in the 5GHz band for communication in the direct connection mode. In the case where a radar wave of the DFS band corresponding to the channel of the DFS band is detected in the state of using the channel of the DFS band, it is necessary to switch the channel currently used. The DFS band is a band in which the channel may be switched due to the detection of radar waves. For example, in the case of using a wireless chip supporting the DFS function, the channels of the dynamic frequency selection (DFS) band included in the 5GHz band may be used for communication in the direct connection mode. The channel determined as the channel to be used in the direct connection mode is used for communication via direct connection. The channel is also used for transmission of beacon signals as a master station, transmission of responses to received commands, etc. That is, the channel is used not only for communication processing in the direct connection mode in a state where the direct connection is established, but also for communication processing in the direct connection mode in a state where the direct connection is not established.
[0061] Although the user can set whether to use a channel for the 2.4 GHz band or a channel for the 5 GHz band, the present embodiment is not limited thereto. The communication device 151 can receive a designation of a channel number from the user, and the user can set the channel number of the channel to be used in the direct connection mode. In addition, the channel to be used in the direct connection mode cannot be arbitrarily set by the user, but can be set in advance in the communication device 151.
[0062] As described above, the communication device 151 may be able to use another frequency band, such as the 6.0 GHz band. Therefore, in the present embodiment, in the process of using the 2.4 GHz band or the 5 GHz band, the other frequency band may be used.
[0063] Reference Figure 3A and Figure 3B Describes the wireless connection sequence in each mode.
[0064] Figure 3A is a diagram illustrating a wireless connection sequence in software AP mode. In this wireless connection sequence, the processing to be performed by each device is implemented by the CPU included in the device reading various programs stored in a memory (such as a ROM included in the device) into a RAM included in the device and executing these programs. It is assumed that the wireless connection sequence is started in a state where the information processing device 101 operates as a client and the communication device 151 operates as a software AP and transmits a beacon signal. In the case where the communication device 151 receives a predetermined operation from the user to cause the communication device 151 to operate as a software AP, the communication device 151 starts to operate as a software AP. The predetermined operation to cause the communication device 151 to operate as a software AP is, for example, an operation of selecting an "enable / disable direct connection mode" button. This operation corresponds to an operation to activate the direct connection mode.
[0065] First, in S301, the information processing device 101 transmits a device search command by sequentially using channels that the information processing device 101 can use, and searches for a device to be used as a software AP.
[0066] Subsequently, in S302, in the case where the communication device 151 receives a device search command transmitted from the information processing device 101, the communication device 151 transmits a device search response as a response to the device search command to the information processing device 101. The communication device 151 does not transmit a device search response for a device search command transmitted using a channel other than a channel available to the communication device 151. For example, in the case where the channel available to the communication device 151 is the fourth channel, the communication device 151 does not transmit a device search response for a device search command transmitted using the first channel. Therefore, in the case where the information processing device 101 transmits a device search command using the first channel and does not receive a response from the communication device 151 for a certain period of time or longer, the information processing device 101 transmits a device search command using the second channel. The information processing device 101 repeats the above operation while incrementing the channel number used. For example, in the case where the communication device 151 receives a device search command transmitted by the information processing device 101 using the fourth channel, the communication device 151 transmits a device search response to the information processing device 101. Therefore, the information processing device 101 finds the communication device 151. The channel used for transmission of the device search response is determined as the channel to be used for communication between the information processing device 101 and the communication device 151. That is, the channel to be used for communication between the information processing device 101 and the communication device 151 is determined by the communication device 151 operating as a software AP.
[0067] Subsequently, in S303, a known process of establishing a wireless connection between the information processing device 101 and the communication device 151 is performed. Specifically, a process including transmission of a connection request, authentication of the connection request, and assignment of an IP address is performed. Commands and parameters transmitted and received in the process of establishing a wireless connection between the information processing device 101 and the communication device 151 may be defined in the Wi-Fi standard and will not be described.
[0068] Figure 3B is a diagram illustrating a wireless connection sequence in WFD mode. In this wireless connection sequence, the processing to be performed by each device is implemented by the CPU included in the device reading various programs stored in a memory (such as a ROM included in the device) into a RAM included in the device and executing these programs. It is assumed that the wireless connection sequence is started when a predetermined operation for establishing a connection via WFD is received from a user in a state where each device activates a predetermined application for executing the WFD feature. The predetermined operation for establishing a connection via WFD is, for example, an operation of selecting an "enable / disable direct connection mode" button. This operation corresponds to an operation for activating the direct connection mode.
[0069] First, in S311 , the information processing device 101 transmits a device search command and searches for a device supporting the WFD feature as a communication partner device.
[0070] Subsequently, in S312, in the case where the received device search command is a command transmitted using the same channel as the channel currently used by the communication device 151 in the direct connection mode, the communication device 151 transmits a device search response as a response to the device search command to the information processing device 101. As a result, the information processing device 101 finds the communication device 151 as a device supporting the WFD feature. After the information processing device 101 finds the communication device 151, the information processing device 101 and the communication device 151 may perform a process of exchanging information related to services and functions that the information processing device 101 and the communication device 151 can provide.
[0071] Subsequently, in S313, GO negotiation is performed between the information processing device 101 and the communication device 151. After the client and the group owner are determined, parameters for performing communication via WFD are exchanged between the information processing device 101 and the communication device 151. Based on the exchanged parameters, the P2P client and the group owner perform the remaining wireless connection processing and IP connection processing. As described above, the communication device 151 can operate in an autonomous GO mode, the GO negotiation can be omitted, and the communication device 151 can be operated as a GO as necessary. In the case where the communication device 151 operates as a GO, the communication device 151 determines the frequency band and channel for communication via WFD as a master station. Therefore, the communication device 151 operating as a GO can choose which frequency band to use between the 5 GHz band and the 2.4 GHz band, and can choose which channel to use among the channels used for the determined frequency band.
[0072] Subsequently, in S314, the information processing device 101 and the communication device 151 perform a process of establishing a wireless connection using the channel determined by the GO based on the exchanged parameters.
[0073] About infrastructure connection methods
[0074] In the infrastructure connection, the devices that communicate with each other (e.g., the information processing device 101 and the communication device 151) are connected to an access point (e.g., the access point 131) of the network to which the control device belongs, and communicate with each other via the access point. In the present embodiment, the connection with the access point corresponds to the connection with the network formed with the access point. The communication device 151 can operate in a mode (infrastructure connection mode) of communicating via the infrastructure connection as one of the connection modes.
[0075] In the infrastructure connection, each device searches for an access point using a device search command. In the present embodiment, searching for an access point corresponds to searching for a network formed by the access point. When the access point is found, the device and the access point perform the remaining wireless connection processing (establishment of a wireless connection, etc.). Thereafter, the device and the access point perform an IP connection processing (assignment of an IP address, etc.). The commands and parameters transmitted and received to achieve a wireless connection between a device and an access point may be defined in the Wi-Fi standard and will not be described.
[0076] In the present embodiment, in the case where the communication device 151 operates in a state where the communication device 151 establishes an infrastructure connection, the access point 131 operates as a master station, and the communication device 151 operates as a slave station. That is, in the present embodiment, the infrastructure connection indicates a connection between the communication device 151 operating as a slave station and a device operating as a master station. In the case where the communication device 151 establishes an infrastructure connection with the access point 131 and the information processing device 101 establishes an infrastructure connection with the access point 131, the communication device 151 and the information processing device 101 can communicate with each other via the access point 131. Since the channel used for communication via the infrastructure connection is determined by the access point 131, the communication device 151 performs communication via the infrastructure connection using the channel determined by the access point 131. In the present embodiment, it is assumed that a channel for the 2.4 GHz band and a channel for the 5 GHz band can be used by the communication device 151 for communication via the infrastructure connection. A channel for the DFS band included in the 5 GHz band can be used by the communication device 151 for communication via the infrastructure connection. In order to communicate with the communication device 151 via the access point 131 , the information processing device 101 needs to recognize that the communication device 151 belongs to a network formed by the access point 131 and to which the information processing device 101 belongs.
[0077] In this embodiment, the communication device 151 can concurrently establish both a direct connection and an infrastructure connection. In other words, the communication device 151 can concurrently establish both a Wi-Fi connection in which the communication device 151 operates as a slave and a Wi-Fi connection in which the communication device 151 operates as a master. The operation of the communication device 151 in a state where the above two connections are concurrently established is referred to as concurrent operation.
[0078] Figure 41 is a diagram illustrating a wireless connection sequence in the infrastructure connection mode. In this wireless connection sequence, the processing to be performed by each device is realized by the CPU included in the device reading various programs stored in a memory (such as a ROM included in the device) into a RAM included in the device and executing these programs. In the case where the communication device 151 receives a predetermined operation from the user to cause the communication device 151 to operate in the infrastructure connection mode, the communication device 151 starts to operate in the infrastructure connection mode. The predetermined operation to cause the communication device 151 to operate in the infrastructure connection mode is, for example, an operation of selecting a "select access point to connect" button.
[0079] First, in S401 , the communication device 151 transmits a device search command by sequentially using channels that the communication device 151 can use, and searches for access points existing around the communication device 151 .
[0080] Subsequently, in S402, in the case where the access point 131 receives the device search command transmitted from the communication device 151, the access point 131 transmits a device search response as a response to the device search command to the communication device 151. The access point 131 transmits only a device search response to a device search command transmitted using a channel that the access point 131 can use.
[0081] Therefore, the communication device 151 can find the access point 131. The channel used for transmission of the device search response is determined as the channel to be used for communication between the communication device 151 and the access point 131. That is, the channel to be used for communication in the infrastructure connection mode is determined by the access point 131. Thereafter, the communication device 151 displays a list of one or more found access points and receives a selection from the user. In this case, it is assumed that the access point 131 is selected.
[0082] Thereafter, a known process of establishing a wireless connection between the communication device 151 and the access point 131 selected by the user is performed. Specifically, a process including transmission of a connection request, authentication of the connection request, and assignment of an IP address is performed. Similar to the P2P mode, commands and parameters transmitted and received in the process of establishing a wireless connection between the access point 131 and the communication device 151 may be defined in the Wi-Fi standard and will not be described.
[0083] In S403 and S404, the information processing device 101 and the access point 131 perform the same or similar processing as that in S401 and S402. In this case, the access point 131 transmits a device search response to the information processing device 101 using the channel used for communication with the communication device 151. That is, the access point 131 communicates with the communication device 151 and the information processing device 101 by using the same channel.
[0084] Therefore, the communication device 151 and the information processing device 101 are connected to each other via the access point 131 and can communicate with each other via the access point 131 .
[0085] The process to be performed by Wi-Fi Agile Multi-Band
[0086] As described above, the communication device 151 according to the present embodiment supports Wi-Fi Agile Multi-Band. Wi-Fi Agile Multi-Band is a feature that complies with the IEEE802.11v, IEEE802.11r, and IEEE802.11k standards, and controls the communication device 151 to connect to an appropriate network according to the state of the network existing around the communication device 151.
[0087] Figure 5 is a sequence diagram illustrating a process to be performed by Wi-Fi Agile Multi-Band. In this sequence, the processing to be performed by each device is realized by the CPU included in the device reading various programs stored in a memory (such as a ROM included in the device) into a RAM included in the device and executing the programs. Figure 5 In the description of , it is assumed that around the communication device 151 there are a first network to which the communication device 151 is currently connected and a second network to which the communication device 151 is currently not connected. The access point forming the first network is, for example, the access point 131. The access point forming the first network may be the same as or different from the access point forming the second network. In the case where the access point forming the first network is the same as the access point forming the second network, for example, the frequency band used in the first network is different from the frequency band used in the second network. It is assumed that the communication device 151 starts in a state where it is operating in the infrastructure connection mode and connected to the first network. Figure 5 The process shown in . In addition, in a state where the connection between the communication device 151 and the access point forming the first network is established, the access point forming the first network acquires information indicating whether the communication device 151 supports IEEE802.11v. Assuming that the access point forming the first network recognizes that the communication device 151 supports IEEE802.11v based on the acquired information, the following processing is performed. That is, in other words, the information indicating whether the communication device 151 supports IEEE802.11v indicates whether the communication device 151 supports Wi-Fi Agile Multi-Band. In addition, it is assumed that the process described below is implemented by the Wi-Fi Agile Multi-Band feature included in the access point forming the first network and the communication device 151.
[0088] In S501, an access point forming a first network transmits a measurement request to the communication device 151. The transmission of the measurement request uses a system defined in the IEEE 802.11k standard.
[0089] In S502, the communication device 151 starts measuring the value of one or more networks existing around the communication device 151 based on the measurement request received in S501. The value of one or more networks existing around the communication device 151 is specifically the strength of the radio wave of the information received by the communication device 151. Specifically, the information received by the communication device 151 corresponds to the one or more networks existing around the communication device 151, and is transmitted by the access point forming the one or more networks around the communication device 151. The information may be a beacon or a frame. In the case where there are multiple networks around the communication device 151, the strength of the radio wave of the information corresponding to the multiple networks is measured by the communication device 151. In this case, it is assumed that the strength of the radio wave of the information corresponding to the first network and transmitted from the access point forming the first network, and the strength of the radio wave of the information corresponding to the second network and transmitted from the access point forming the second network are measured by the communication device 151. In this process, the information acquired by the communication device 151 is not limited to the information related to the strength of the radio wave of the information received by the communication device 151. For example, the communication device 151 may obtain the SSID as identification information of one or more networks corresponding to the information received by the communication device 151, information related to the frequency bands used in one or more networks, information related to the number of devices connected to one or more networks, and the like.
[0090] In S503, the communication device 151 specifies and extracts information included in the information acquired in S502 and corresponding to a network having the same SSID as the SSID of the first network. The communication device 151 transmits the extracted information included in the information acquired in S502 to the access point forming the first network as a response to the request received in S501, and does not transmit the unextracted information included in the information acquired in S502 to the access point forming the first network. In this case, it is assumed that the SSID of the first network is the same as the SSID of the second network, and the information corresponding to the second network is transmitted to at least the access point forming the first network.
[0091] In S504, the access point forming the first network determines whether to switch (change) the destination to which the communication device 151 is connected from the first network to another network based on the information received from the communication device 151. This determination is a process of determining whether the communication between the another network and the communication device 151 is more stable than the communication between the first network and the communication device 151. In addition, the access point forming the first network performs the determination by comprehensively referring to the frequency band and radio wave strength specified based on the information received from the communication device 151, the number of devices connected to each network, and the like. In the determination, the access point forming the first network may refer to information other than the information received from the communication device 151. The information other than the information received from the communication device 151 is collected by the access point forming the first network, for example, and includes information on the number of devices connected to the access point forming the first network, the amount and speed of data transmitted on the first network, and the like.
[0092] In the case where the access point forming the first network determines that the destination to which the communication device 151 is connected is switched from the first network to another network, the access point forming the first network specifies the new destination to which the communication device 151 is to be connected. In this case, a network specified based on information received from the communication device 151 and being any network among the networks existing around the communication device 151 is specified as the new destination to which the communication device 151 is to be connected. The network specified as the new destination to which the communication device 151 is to be connected by the Wi-Fi Agile Multi-Band feature is referred to as the switching target network. In the description, it is assumed that the switching target network is the second network. Next, the access point forming the first network specifies information about the second network. Specifically, the information about the second network is, for example, the SSID of the second network, the frequency band used in the second network, and the channel used in the second network. The access point forming the first network can specify multiple networks as the new destination to which the communication device 151 is to be connected, and can specify information about each network.
[0093] In S505, the access point forming the first network transmits a request to switch the destination to which the communication device 151 is connected to, to the communication device 151. The request to switch the destination to which the communication device 151 is connected includes information about the network designated in S504 as a new destination to be connected by the communication device 151. The request to switch the destination to which the communication device 151 is connected is transmitted as a BSS Transition Management (BTM) request through a BTM frame defined in the IEEE802.11v standard.
[0094] In S506, in the case where the communication device 151 complies with the request to switch the connection destination received in S505, the communication device 151 transmits a response (acceptance response) indicating that the communication device 151 accepts switching the destination to which the communication device 151 is connected to, to the access point forming the first network. In the case where the communication device 151 does not comply with the request to switch the connection destination received in S505, the communication device 151 may transmit, to the access point forming the first network, a response indicating that the communication device 151 refuses to switch the destination to which the communication device 151 is connected. In the description, it is assumed that the communication device 151 transmits a response indicating that the communication device 151 accepts switching the destination to which the communication device 151 is connected. Each response is transmitted as a BTM response.
[0095] In S507 , the communication device 151 disconnects from the first network.
[0096] In S508, the communication device 151 transmits a request to connect to the second network to the access point forming the second network. It is assumed that the password used to connect the communication device 151 to the second network and transmitted from the communication device 151 to the access point forming the second network is the same as the password used to connect the communication device 151 to the first network. That is, after the communication device 151 is disconnected from the first network, the communication device 151 can recognize the password used to connect to the second network without receiving an input of the password used to connect to the second network from the user or receiving the password from another device.
[0097] In S509 , a connection between the communication device 151 and the second network is established.
[0098] As described above, the network as the destination to which the communication device 151 is connected can be appropriately controlled by the function as Wi-Fi Agile Multi-Band.
[0099] Arrangement of channels for Wi-Fi
[0100] Figure 6The arrangement of channels for the 2.4 GHz band and channels for the 5 GHz band is illustrated. For Wi-Fi, the 2.4 GHz band is used by dividing the 2.4 GHz band into 22 MHz bandwidths. Channels are assigned numbers. The channels for the 2.4 GHz band are channels 1 to 14. In addition, the 5 GHz band is used by dividing the 5 GHz band into 20 MHz bandwidths. The frequencies in the channels do not overlap. The channel for the band included in the 5 GHz band and not the DFS band is a channel called W52. Specifically, W52 corresponds to channels 36, 40, 44, and 48. The channel for the DFS band included in the 5 GHz band is a channel called W53 and W56. Specifically, W53 corresponds to channels 52, 56, 60, and 64. W56 corresponds to channels 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, and 140.
[0101] As described above, in the present embodiment, the communication device 151 can perform concurrent operation in which the communication device 151 operates in the infrastructure connection mode and the direct connection mode concurrently. In this case, in the case where the channel used in the infrastructure connection mode is the same as the channel used in the direct connection mode, radio wave interference may occur in the communication in each of the infrastructure connection mode and the direct connection mode. In addition, even in this case, for example, the DRCS function may control to suppress the occurrence of radio wave interference between the infrastructure connection and the direct connection established by the communication device 151. However, even in this case, the communication between the access point to which the communication device 151 is connected via the infrastructure connection and another device may interfere with the communication of the communication device 151 in the direct connection mode.
[0102] As described above, the destination to which the communication device 151 is connected may be switched by Wi-Fi Agile Multi-Band. In a case where the switching of the destination to which the communication device 151 is connected is performed by Wi-Fi Agile Multi-Band in a state where the communication device 151 is performing concurrent operations, and the channel used for the connection between the communication device 151 and the new destination to which the communication device 151 is connected is the channel used by the communication device 151 in the direct connection mode, the channel used by the communication device 151 in the infrastructure connection mode is the same as the channel used by the communication device 151 in the direct connection mode. That is, in a case where the destination to which the communication device 151 is connected is switched by Wi-Fi Agile Multi-Band, the communication device 151 may transition to a connection state in which radio wave interference may occur due to the switching of the destination to which the communication device 151 is connected.
[0103] Therefore, in the present embodiment, control for solving the above-mentioned problem is performed.
[0104] Controls when you want to newly activate direct connection mode
[0105] Figure 7 1 is a flowchart illustrating a process to be executed by the communication device 151 according to the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing these programs. Assume that in the case of executing a process as a trigger for activating the direct connection mode, for example, in the case where the communication device 151 receives the above-mentioned operation for activating the direct connection mode from the user, the process starts. Figure 7 The process shown in FIG. 1 is used as a trigger for activating the direct connection mode. Figure 2C The operation for activating the direct connection mode is received on the screen shown in , and is for example in Figure 8 , Fig. 9 and Fig.10 . Specifically, for example, the process is a process of stopping the direct connection mode by newly establishing an infrastructure connection in a state where the communication device 151 is operating in the direct connection mode. In addition, in the present embodiment, it is assumed that the communication device 151 has a function of restarting to operate in the communication mode that was operated immediately before the communication device 151 was powered off when the communication device 151 is powered on. Therefore, the process as a trigger for activating the direct connection mode is, for example, a process of receiving a power-on operation after the communication device 151 is powered off in a state where the communication device 151 is operating in the direct connection mode. In the present embodiment, in the case where the communication device 151 performs a concurrent operation immediately before the communication device 151 is powered off and the communication device 151 is powered off and powered on, the communication device 151 starts operating in the infrastructure connection mode and performs a process of reconnecting to the access point. The communication device 151 starts operating in the direct connection mode based on the start of the reconnection process. In this case, the communication device 151 may start operating in the direct connection mode based on the fact that a predetermined time has passed after the start of the reconnection process. Furthermore, the communication device 151 may start operating in the direct connection mode based on the fact that the communication device 151 is connected to the access point through the reconnection process or based on the fact that the connection of the communication device 151 with the access point through the reconnection process is not established and a timeout occurs.
[0106] In S701, the CPU 154 determines Figure 2E 154 proceeds to S705. In the case where the result of the determination in S701 is "Yes", the CPU 154 proceeds to S702. In the case where the 2.4 GHz band is set and the result of the determination in S701 is "No", the CPU 154 proceeds to S705.
[0107] In S702, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state.
[0108] In the case where the communication device 151 is in the infrastructure connection state, the CPU 154 specifies the channel used in the infrastructure connection mode, and determines whether the channel used in the infrastructure connection mode is channel 36. That is, in this process, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state, and determines whether the channel used in the infrastructure connection mode is channel 36. The infrastructure connection state is a state in which the communication device 151 operates in the infrastructure connection mode and is connected to the access point 131. The specified channel corresponds to the channel used in the infrastructure connection mode when the process as a trigger for activating the direct connection mode is performed. In the case where the result of the determination in S702 is "yes", the CPU 154 proceeds to S703. On the other hand, in the case where the communication device 151 is not connected to the access point 131 and is not in the infrastructure connection state, or in the case where the communication device 151 is in the infrastructure connection state but the channel used in the infrastructure connection mode is not channel 36, the CPU 154 proceeds to S704. The case where the communication device 151 is in the infrastructure connection mode corresponds to a case where the communication device 151 operates in the infrastructure connection mode (is in the infrastructure connection state) and an operation for activating the direct connection mode is performed on the communication device 151.
[0109] In S703, the CPU 154 sets the channel 40 as the channel to be used in the direct connection mode and activates the direct connection mode. Specifically, for example, the CPU 154 causes the communication device 151 to operate in the software AP mode using the channel 40 or in the WFD mode using the channel 40. Therefore, the communication device 151 operates in both the infrastructure connection mode using the channel 36 and the direct connection mode using the channel 40 concurrently. In the case where the communication device 151 starts to operate in the direct connection mode, the communication device 151 may perform a reference Figure 3A and Figure 3B The described sequence and establishes a direct connection with another device. After S703, the CPU 154 proceeds to S708.
[0110] In S704, the CPU 154 sets the channel 36 as the channel to be used in the direct connection mode and activates the direct connection mode. Specifically, for example, the CPU 154 causes the communication device 151 to operate in the software AP mode using the channel 36 or the WFD mode using the channel 36. Therefore, the communication device 151 operates concurrently in both the infrastructure connection mode using a channel other than the channel 36 and the direct connection mode using the channel 36. Alternatively, for example, the communication device 151 operates only in the direct connection mode using the channel 36. After S704, the CPU 154 proceeds to S708.
[0111] In S705, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state. In the case where the communication device 151 is in the infrastructure connection state, the CPU 154 specifies the channel used in the infrastructure connection mode and determines whether the channel used in the infrastructure connection mode is channel 3. That is, in this process, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state, and determines whether the channel used in the infrastructure connection mode is channel 3. The channel specified in this case corresponds to the channel used in the infrastructure connection mode when the process as a trigger for activating the direct connection mode is performed. In the case where the result of the determination in S705 is "yes", the CPU 154 proceeds to S706. On the other hand, in the case where the communication device 151 is not connected to the access point 131 and is not in the infrastructure connection state, or in the case where the communication device 151 is in the infrastructure connection state but the channel used in the infrastructure connection state is not channel 3, the CPU 154 proceeds to S707.
[0112] In S706, the CPU 154 sets channel 11 as a channel used in the direct connection mode and activates the direct connection mode. Specifically, for example, the CPU 154 causes the communication device 151 to operate in the software AP mode using channel 11 or the WFD mode using channel 11. Therefore, the communication device 151 operates concurrently in both the infrastructure connection mode using channel 3 and the direct connection mode using channel 11. After S706, the CPU 154 proceeds to S708.
[0113] In S707, the CPU 154 sets channel 3 as the channel to be used in the direct connection mode and activates the direct connection mode. Specifically, for example, the CPU 154 causes the communication device 151 to operate in the software AP mode using channel 3 or the WFD mode using channel 3. Therefore, for example, the communication device 151 concurrently operates in both the infrastructure connection mode using a channel other than channel 3 and the direct connection mode using channel 3. Alternatively, for example, the communication device 151 operates only in the direct connection mode using channel 3. After S707, the CPU 154 proceeds to S708.
[0114] In S708, the CPU 154 specifies the channel currently used in the direct connection mode, and stores information indicating the specified channel in a predetermined storage area in any memory included in the communication device 151. The specified channel is used as a non-preferred channel described later. Specifically, for example, in the case where the CPU 154 executes S708 after S703, the CPU 154 stores information indicating channel 40 in a predetermined storage area.
[0115] In S709, the CPU 154 determines whether the communication device 151 is in an infrastructure connection state. In the case where the result of the determination in S709 is "yes", the CPU 154 proceeds to S710. In the case where the result of the determination in S709 is "no", the CPU 154 ends the process. In the case where the result of the determination in S709 is "yes", the CPU 154 may determine whether the access point forming the network to which the communication device 151 is connected supports the Wi-Fi Agile Multi-Band feature before proceeding to S710.
[0116] In a case where the result of the determination in S709 is "Yes", the CPU 154 proceeds to S710. In a case where the result of the determination in S709 is "No", the CPU 154 ends the process.
[0117] In S710, the CPU 154 controls to prevent the network to which the communication device 151 is connected in the infrastructure connection mode from switching to a network using the channel currently used by the communication device 151 in the direct connection mode through Wi-Fi Agile Multi-Band. Specifically, the CPU 154 controls to prevent the network using the channel currently used by the communication device 151 in the direct connection mode from being designated as a switching target network in the access point forming the network to which the communication device 151 is connected. More specifically, the CPU 154 transmits information indicating the channel currently used by the communication device 151 in the direct connection mode to the access point forming the network to which the communication device 151 is connected. The information is, for example, a BSS transmission management (BTM) request frame defined in the IEEE802.11v standard, and includes the number of the channel currently used by the communication device 151 in the direct connection mode in the non-preferred channel designation field. The channel indicated by the transmitted information is a non-preferred channel. The access point that receives the information indicating the non-preferred channel controls to prevent the network using the non-preferred channel from being designated as the switching target network. Therefore, the CPU 154 controls the communication device 151 so that the network to which the communication device 151 is connected in the infrastructure connection mode is not switched to a network using a channel currently used by the communication device 151 in the direct connection mode through Wi-Fi Agile Multi-Band.
[0118] As a result of performing the above process, in the case where an operation for activating the direct connection mode is performed on the communication device 151 in a state where the communication device 151 operates in the infrastructure connection mode, the channel used in the infrastructure connection mode can be different from the channel used in the direct connection mode through the above process. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode.
[0119] In S703, S704, S706, and S707, the channels determined as the channels to be used are not limited to the above-mentioned channels. As long as the channels are determined so that the channels used in the infrastructure connection mode do not match the channels used in the direct connection mode, channels different from the above-mentioned channels may be determined as the channels to be used. Specifically, for example, in S703, channel 44 or channel 48 may be set as the channels to be used in the direct connection mode. In this case, it is preferable to set channels other than the channels of the DFS band.
[0120] In the above description, Figure 2E In the case where the frequency band set as the frequency band to be used in the direct connection mode on the screen shown in is the 5 GHz band, channel 36 is used preferentially rather than channel 40. Figure 2EIn the case where the frequency band set to be used in the direct connection mode on the screen shown in is the 2.4 GHz band, channel 3 is used preferentially rather than channel 11. However, the present embodiment is not limited thereto. The preferentially used channel may be another channel.
[0121] CPU 154 may perform processing that is partially different from the above processing so that the channel used in the infrastructure connection mode does not match the channel used in the direct connection mode. For example, instead of the processing in S702, CPU 154 may only determine whether the communication device 151 is in the infrastructure connection state. In the case where CPU 154 determines that the communication device 151 is in the infrastructure connection mode, CPU 154 may specify the channel used in the infrastructure connection mode, and specify any channel different from the channel used in the infrastructure connection mode among the multiple channels for the 5 GHz band that can be used by the communication device 151. Thereafter, CPU 154 may set the specified channel as the channel to be used in the direct connection mode and activate the direct connection mode. In this case, the channel to be specified with priority may be preset. Specifically, for example, channel 36 may be specified as the channel to be used in the direct connection mode with priority. Similarly, for example, instead of the processing in S705, CPU 154 may determine whether the communication device 151 is in the infrastructure connection state. In the case where the CPU 154 determines that the communication device 151 is in the infrastructure connection state, the CPU 154 can specify a channel used in the infrastructure connection mode, and specify any channel different from the channel used in the infrastructure connection mode among a plurality of channels for the 2.4G frequency band that can be used by the communication device 151. Thereafter, the CPU 154 can set the specified channel as a channel to be used in the direct connection mode and activate the direct connection mode. In this case, a channel that is preferentially specified can be set in advance. Specifically, for example, channel 11 can be preferentially specified as a channel to be used in the direct connection mode.
[0122] Although the case where the WFD mode is the autonomous GO mode is described above, in a mode where GO negotiation is performed instead of the autonomous GO mode, the processing may be performed at a different time from the time described above. That is, in the case where the processing as a trigger for activating the direct connection mode is performed, it may not be started. Figure 7 Specifically, the communication device 151 receives the WFD device search command from the information processing device 101 and performs GO negotiation, and in the case where it is determined that the communication device 151 operates as a GO, it can start Figure 7 The process shown in .
[0123] Control when infrastructure connection mode is newly activated
[0124] Figure 81 is a flowchart illustrating a process to be executed by the communication device 151 in the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing the programs. Assume that a process as a trigger for activating the infrastructure connection mode is executed and the communication device 151 attempts to establish a connection with the access point 131 (as shown in FIG. Figure 4 Start with the situation described) Figure 8 The process as a trigger for activating the infrastructure connection mode is, for example, a process in which the communication device 151 receives the above-mentioned operation for activating the infrastructure connection mode from the user. In addition, the process as a trigger for activating the infrastructure connection mode is, for example, a process in which the communication device 151 receives a power-on operation after the communication device 151 is powered off in a state in which the communication device 151 is operating in the infrastructure connection mode.
[0125] In S801, the CPU 154 determines whether the establishment of the infrastructure connection (i.e., the connection between the communication device 151 and the access point 131) by the communication device 151 has been completed. In the case where the result of the determination in S801 is "Yes", the CPU 154 proceeds to S802. In the case where the result of the determination in S801 is "No", the CPU 154 repeats S801 until the establishment of the infrastructure connection is completed.
[0126] In S802, the CPU 154 stores information indicating which channel is being used in the infrastructure connection mode in any one of the memories included in the communication device 151. As described above, since the channel used in the infrastructure connection is determined by the access point 131, the channel indicated by the information stored in this case is the channel determined by the access point 131.
[0127] In S803, the CPU 154 determines whether the communication device 151 is operating in the direct connection mode. The case where the result of the determination in S803 is "yes" corresponds to the case where the operation for activating the infrastructure connection mode is performed on the communication device 151 in the state where the communication device 151 is operating in the direct connection mode. The case where the result of the determination in S803 is "no" corresponds to the case where the operation for activating the infrastructure connection mode is performed on the communication device 151 in the state where the communication device 151 is not operating in the direct connection mode. The state where the communication device 151 is operating in the direct connection mode includes a state where the communication device 151 is operating in the direct connection mode but the direct connection of the communication device 151 is not established. The state where the communication device 151 is operating in the direct connection mode also includes a state where the communication device 151 is operating in the direct connection mode and the direct connection of the communication device 151 is established. The state where the communication device 151 is operating in the direct connection mode but the direct connection of the communication device 151 is not established is a state where the communication device 151 is operating as a GO or a software AP but a direct connection between the communication device 151 and another device is not established. In a case where the result of the determination in S803 is "Yes", the CPU 154 proceeds to S804. In a case where the result of the determination in S803 is "No", the CPU 154 ends the process while causing the communication device 151 to operate only in the infrastructure connection mode.
[0128] In S804, the CPU 154 determines whether the channel currently used in the infrastructure connection mode matches the channel currently used in the direct connection mode. The channel currently used in the infrastructure connection mode is indicated by the information stored in S802. In the case where the result of the determination in S804 is "yes", the CPU 154 proceeds to S805. In the case where the result of the determination in S804 is "no", the CPU 154 proceeds to S807 while causing the communication device 151 to operate in both the infrastructure connection mode and the direct connection mode concurrently without disconnecting the direct connection and stopping the direct connection mode.
[0129] In S805, the CPU 154 stops the operation of the communication device 151 in the direct connection mode. Therefore, in the case where the communication device 151 has established the direct connection, the direct connection is disconnected.
[0130] In S806, the CPU 154 reactivates the direct connection mode. That is, the CPU 154 executes Figure 7 Therefore, in a state where the communication device 151 operates in the infrastructure connection mode, the direct connection mode is newly activated. In this case, as shown in FIG. Figure 7As described, the CPU 154 controls the communication device 151 so that a channel different from the channel currently used in the infrastructure connection mode is used in the newly activated direct connection mode.
[0131] Since the processing in S801 to S806 is performed, in the case where the operation for activating the infrastructure connection mode is performed on the communication device 151 in the state where the communication device 151 operates in the direct connection mode, the channel used in the infrastructure connection mode may be different from the channel used in the direct connection mode. Thereafter, the CPU 154 ends the process. During the processing in S806 performed in this case, the processing in S710 may be performed.
[0132] In S807, the CPU 154 controls to prevent the network connected by the communication device 151 in the infrastructure connection mode from switching to a network using a channel currently used by the communication device 151 in the direct connection mode through Wi-Fi Agile Multi-Band. The processing in S807 is the same as or similar to the processing in S710.
[0133] Before proceeding to S807, the CPU 154 may determine whether the access point forming the network to which the communication device 151 is connected supports the Wi-Fi Agile Multi-Band feature. If the result of the determination is "yes", the CPU 154 may proceed to S807. If the result of the determination is "no", the CPU 154 may end the process.
[0134] As a result of performing the above process, communication can be continued while the channel used in the infrastructure connection mode is different from the channel used in the direct connection mode. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode.
[0135] In the above description, the processing in S802 to S807 is performed after the infrastructure connection is established. However, the present embodiment is not limited thereto. For example, the processing in S802 to S807 may be performed after specifying that the infrastructure connection is to be newly established and before the infrastructure connection is established. After specifying that the infrastructure connection is to be newly established and before the infrastructure connection is established is: after specifying that the infrastructure connection is to be newly established and before the connection request is transmitted to the access point. In this case, the information stored in S802 is not the information of the channel currently used for the infrastructure connection, but the information of the channel to be used for the newly established infrastructure connection. After the processing in S806 and S807 is completed, the infrastructure connection is newly established.
[0136] Control when switching channels used in infrastructure connection mode during concurrent operation
[0137] As described above, the channel to be used in the infrastructure connection mode is determined by the access point 131. Therefore, in the case where the channel used by the access point 131 is switched due to control to avoid congestion or by a user changing the settings for the access point 131, the communication device 151 needs to switch the channel used in the infrastructure connection mode. The control when the channel used in the infrastructure connection mode is switched during the concurrent operation will be described below.
[0138] Fig. 9 1 is a flowchart illustrating the process to be executed by the communication device 151 in the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing the programs. Fig. 9 This process shown in FIG. 1 is started in a state where the communication device 151 operates in the infrastructure connection mode and is connected to the access point 131 .
[0139] In S901, the CPU 154 determines whether the infrastructure connection has been disconnected. The disconnection of the infrastructure connection is the disconnection of the connection between the access point 131 and the communication device 151, and is also the disconnection of the connection between the network formed by the access point 131 and the communication device 151. In the case where the result of the determination in S901 is "yes", the CPU 154 proceeds to S902. In the case where the result of the determination in S901 is "no", the CPU 154 repeats S901 until the infrastructure connection is disconnected. In the case where the channel used by the access point 131 is switched, the infrastructure connection with the access point 131 is disconnected. Therefore, this process in S901 corresponds to the process of determining whether the channel used by the access point 131 has been switched. The access point 131 may have a function of notifying the communication device 151 of the switching of the channel used by the access point 131 before the infrastructure connection is disconnected due to the switching of the channel used by the access point 131. Therefore, in S901, the CPU 154 may determine whether it has been notified of the switching of the channel used by the access point 131.
[0140] In S902, the CPU 154 performs a process of reconnecting to the access point 131 that was previously connected and disconnected via the infrastructure connection. As the reconnection process, first, the CPU 154 sequentially searches for the access point 131 that was previously connected and disconnected via the infrastructure connection using the channels that the communication device 151 can use. The access point 131 that was previously connected and disconnected via the infrastructure connection can be specified based on the SSID. In the case of finding the access point 131, the CPU 154 establishes an infrastructure connection with the access point 131 using the channel used to find the access point 131. Therefore, the communication device 151 starts to operate in the infrastructure connection mode using the channel used to find the access point 131. The method of searching for the access point 131 that was previously connected and disconnected via the infrastructure connection is not limited to the above method. For example, first, the CPU 154 can search for the access point 131 by using only the channel used for the infrastructure connection that was previously connected and disconnected to the access point 131. Thereafter, in the case where the CPU 154 does not find the access point 131 through the search, the CPU 154 can search for the access point 131 using other channels.
[0141] In S903 , the CPU 154 stores information indicating which channel is being used for the infrastructure connection after the channel switching into any memory included in the communication device 151 .
[0142] In S904, the CPU 154 determines whether the communication device 151 is operating in the direct connection mode. The case where the result of the determination in S904 is "yes" corresponds to the case where the channel used in the infrastructure connection mode is switched in the state where the communication device 151 operates concurrent operation. The case where the result of the determination in S904 is "no" corresponds to the case where the channel used in the infrastructure connection mode is switched in the state where the communication device 151 does not operate concurrent operation and operates only in the infrastructure connection mode. In the case where the result of the determination in S904 is "yes", the CPU 154 proceeds to S905. In the case where the result of the determination in S904 is "no", the CPU 154 ends the process while causing the communication device 151 to operate only in the infrastructure connection mode.
[0143] In S905, the CPU 154 determines whether the channel currently used in the infrastructure connection mode (i.e., the channel after the channel switching) matches the channel currently used in the direct connection mode. The channel currently used in the infrastructure connection mode is indicated by the information stored in S903. In the case where the result of the determination in S905 is "yes", the CPU 154 proceeds to S906. In the case where the result of the determination in S905 is "no", the CPU 154 proceeds to S908, while causing the communication device 151 to operate in both the infrastructure connection mode and the direct connection mode concurrently.
[0144] In S906, the CPU 154 stops the operation of the communication device 151 in the direct connection mode. Therefore, in the case where the communication device 151 has established the direct connection, the direct connection is disconnected.
[0145] In S907, the CPU 154 reactivates the direct connection mode of the communication device 151. That is, the CPU 154 executes Figure 7 Therefore, the CPU 154 newly activates the direct connection mode in a state where the communication device 151 operates in the infrastructure connection mode. In this case, as shown in FIG. Figure 7 As described, the CPU 154 controls the communication device 151 so that a channel different from the channel currently used in the infrastructure connection mode is used in the newly activated direct connection mode.
[0146] S908 is the same as or similar to S807 and thus will not be described.
[0147] Although the operation of the communication device 151 in the direct connection mode is stopped after the reconnection process in S902 is executed, the present embodiment is not limited thereto. The CPU 154 may stop the operation of the communication device 151 in the direct connection mode after disconnecting the infrastructure connection in S901 and before executing the reconnection process in S902.
[0148] Control when the network to which the communication device is connected is to be switched by the Wi-Fi Agile Multi-Band feature
[0149] As described above, when the communication device 151 receives a request to switch the connection destination from the access point, the network connected to the communication device 151 can be switched by the Wi-Fi Agile Multi-Band feature. The control when the network connected to the communication device 151 is to be switched by the Wi-Fi Agile Multi-Band feature will be described.
[0150] Fig.14 1 is a flowchart illustrating the process to be executed by the communication device 151 in the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing the programs. Fig.14 The process shown in is started in a state where the communication device 151 operates in the infrastructure connection mode and is connected to the first network formed by the access point 131.
[0151] In S1401, the CPU 154 determines whether the communication device 151 has received a request to switch the connection destination by the Wi-Fi Agile Multi-Band feature from the access point 131. In the case where the result of the determination in S1401 is "Yes", the CPU 154 proceeds to S1402. In the case where the result of the determination in S1401 is "No", the CPU 154 repeats S1401 until the communication device 151 receives a request to switch the connection destination from the access point 131.
[0152] In S1402, the CPU 154 disconnects the first network from the communication device 151 and performs processing to establish a connection between the communication device 151 and a network corresponding to the information included in the request to switch the connection destination. The processing in S1402 corresponds to S507 to S509.
[0153] In S1403 , the CPU 154 stores information indicating which channel is being used for the infrastructure connection after the connection destination is switched, into any memory included in the communication device 151 .
[0154] In S1404, the CPU 154 determines whether the communication device 151 is operating in the direct connection mode. The case where the result of the determination in S1404 is "yes" corresponds to the case where the network as the connection destination is switched by the Wi-Fi Agile Multi-Band feature in a state where the communication device 151 performs concurrent operations. The case where the result of the determination in S1404 is "no" corresponds to the case where the network as the connection destination is switched by the Wi-Fi Agile Multi-Band feature in a state where the communication device 151 does not perform concurrent operations and operates only in the infrastructure connection mode. In the case where the result of the determination in S1404 is "yes", the CPU 154 proceeds to S1405. In the case where the result of the determination in S1404 is "no", the CPU 154 ends the process.
[0155] S1405 is the same as or similar to S807 and thus will not be described.
[0156] In this flowchart, the same or similar processing as S804 to S806 and S905 to S907 is not performed. This is due to the fact that according to the Wi-Fi Agile Multi-Band feature, a process of notifying a non-preferred channel is performed, thereby controlling the communication device 151 so that the channel used for infrastructure connection does not match the channel used for direct connection.
[0157] In the above-described embodiment, according to the Wi-Fi Agile Multi-Band feature, the communication device 151 is controlled so that the channel used for the infrastructure connection does not match the channel used for the direct connection.
[0158] Assume that in a state where the communication device 151 performs concurrent operations and notifies the access point to which the communication device 151 is connected of a non-preferred channel, the direct connection mode of the communication device 151 is stopped by a user operation performed on the communication device 151. In this case, control is released to prevent the network to which the communication device 151 is connected in the infrastructure connection mode from switching to a network using the channel currently used by the communication device 151 in the direct connection mode through Wi-Fi Agile Multi-Band. Specifically, the communication device 151 notifies the access point to which the communication device 151 is connected that the communication device 151 does not designate any channel as a non-preferred channel. More specifically, the communication device 151 transmits information that does not indicate a channel to the access point forming the network to which the communication device 151 is connected. The information is, for example, a BSS Transition Management (BTM) request frame defined in the IEEE802.11v standard and has no information in the non-preferred channel designation field. The access point to which the communication device 151 is connected can use the Wi-Fi Agile Multi-Band feature to designate a new destination to which the communication device 151 is to connect without being restricted by a channel.
[0159] Second embodiment
[0160] In the above description, in the case where the infrastructure connection mode is newly activated in a state where the communication device 151 operates in the direct connection mode, the channel used in the direct connection mode is switched regardless of whether the communication device 151 has established a direct connection.
[0161] In the present embodiment, a mode will be described in which, in the case where the infrastructure connection mode is newly activated in a state where the communication device 151 operates in the direct connection mode but direct connection is not established, the channel used in the direct connection mode is not switched.
[0162] The configuration of the communication system according to this embodiment is the same as or similar to the configuration described in the first embodiment, unless otherwise specified. Fig.10 The process shown in the flowchart of the first embodiment is not Fig. 9 The process shown in the flowchart of , but other processes are performed with the same contents as those shown in the above flowchart.
[0163] Control when infrastructure connection mode is to be newly activated
[0164] Fig.101 is a flowchart illustrating a process to be executed by the communication device 151 in the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing these programs. Assume that the communication device 151 receives the above-mentioned operation for activating the infrastructure connection mode from the user and attempts to establish a connection with the access point 131 (as shown in FIG. Figure 4 Start with the situation described) Fig.10 The process shown in .
[0165] S1001 to S1003 are the same as or similar to S801 to S803 , respectively, and thus will not be described.
[0166] In S1004, the CPU 154 determines whether the communication device 151 is establishing a direct connection. The case where the result of the determination in S1004 is "yes" corresponds to the case where the communication device 151 is operating in the direct connection mode and the direct connection is established by the communication device 151. On the other hand, the case where the result of the determination in S1004 is "no" corresponds to the case where the communication device 151 is operating in the direct connection mode but the communication device 151 does not establish a direct connection. In the case where the result of the determination is "yes", the CPU 154 proceeds to S1005. In the case where the result of the determination is "no", the CPU 154 proceeds to S1008.
[0167] S1005 to S1007 are the same as or similar to S804 to S806, respectively, and thus will not be described. In a case where the result of the determination in S1005 is "No", the CPU 154 proceeds to S1012.
[0168] In S1008, the CPU 154 determines whether the communication device 151 has completed the establishment of the direct connection. In the case where the result of the determination in S1008 is "yes", the CPU 154 proceeds to S1009. In the case where the result of the determination in S1008 is "no", the CPU 154 repeats S1008 until the establishment of the direct connection is completed. In the case where the infrastructure connection is disconnected before the establishment of the direct connection is completed, the CPU 154 ends the process.
[0169] S1009 to S1011 are the same as or similar to S804 to S806, respectively, and thus will not be described. In a case where the result of the determination in S1009 is "No", the CPU 154 proceeds to S1012.
[0170] S1012 is the same as or similar to S807 and thus will not be described.
[0171] Even the control described in this embodiment can make the channel used in the infrastructure connection mode different from the channel used in the direct connection mode. In addition, since the above process is performed, it is possible to continue communication while the channel used in the infrastructure connection mode is different from the channel used in the direct connection mode. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode.
[0172] Third embodiment
[0173] In the above embodiment, as a process of establishing an infrastructure connection, the communication device 151 sequentially searches for access points existing around the communication device 151 using the channels that the communication device 151 can use, and displays a list of one or more access points found by the search. The communication device 151 establishes an infrastructure connection with the access point selected from the list.
[0174] In this embodiment, a mode will be described in which the communication device 151 searches for access points existing around the communication device 151 by using a method different from the method described in the above embodiments, and makes the channel used in the infrastructure connection mode different from the channel used in the direct connection mode.
[0175] The configuration of the communication system according to the present embodiment is the same as or similar to the configuration of the communication system described in each of the first and second embodiments unless otherwise specified.
[0176] Control for searching for access points around the communication device 151
[0177] Fig.11 1 is a flowchart illustrating a process to be executed by the communication device 151 in the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing these programs. It is assumed that the communication device 151 starts when receiving the above-mentioned operation for activating the infrastructure connection mode from the user. Fig.11 The process shown in .
[0178] In S1101, the CPU 154 determines whether the communication device 151 is operating in the direct connection mode. In a case where the result of the determination in S1101 is "Yes", the CPU 154 proceeds to S1102. In a case where the result of the determination in S1101 is "No", the CPU 154 proceeds to S1103.
[0179] In S1102, the CPU 154 specifies a channel used by the communication device 151 in the direct connection mode. The communication device 151 searches for access points around the communication device 151 by sequentially using channels among all channels that the communication device 151 can use, excluding the channels that the communication device 151 uses in the direct connection mode. All channels that the communication device 151 can use are channels for the 2.4 GHz band and channels for the 5 GHz band including the DFS band. The search for access points that exist around the communication device 151 is called an AP search. After S1102, the CPU 154 proceeds to S1103.
[0180] In S1103 , the CPU 154 searches for access points existing around the communication device 151 by sequentially using all channels usable by the communication device 151 .
[0181] In S1104, the CPU 154 determines whether one or more access points are found by the AP search. In the case where the result of the determination in S1104 is "yes", the CPU 154 proceeds to S1105. In the case where the result of the determination in S1104 is "no", the CPU 154 returns to S1101. In the case where the AP search does not find any access point regardless of whether the processing in S1104 is repeated, and the timeout time has passed, the CPU 154 can end the AP search, end the process, and display a screen indicating that no access point has been found.
[0182] In S1105, the CPU 154 displays a list of one or more access points found by the AP search. Then, the communication device 151 receives a user's selection from the list. In the present embodiment, as described above, the communication device 151 is controlled to prevent the channel used by the communication device 151 in the direct connection mode from being used for the AP search. Therefore, as a result, the list does not include an access point using the channel used by the communication device 151 in the direct connection mode.
[0183] In S1106, the CPU 154 transmits a connection request to the selected access point and establishes an infrastructure connection with the selected access point. For the transmission of the connection request and the communication via the established infrastructure connection, the channel used to search and find the selected access point is used. After S1106, the CPU 154 proceeds to S1107.
[0184] In S1107, the CPU 154 determines whether the communication device 151 is operating in the direct connection mode. In a case where the result of the determination in S1107 is "Yes", the CPU 154 proceeds to S1108. In a case where the result of the determination in S1107 is "No", the CPU 154 ends the process.
[0185] S1108 is the same as or similar to S807 and thus will not be described.
[0186] In the mode of establishing the infrastructure connection by the first method, due to the control described in the present embodiment, the channel used in the direct connection mode is different from the channel used in the infrastructure connection mode. Therefore, the channel used in the direct connection mode can be different from the channel used in the infrastructure connection mode. In addition, since the above process is performed, communication can be continued while the channel used in the infrastructure connection mode is different from the channel used in the direct connection mode. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode.
[0187] In the case of applying this embodiment, Figure 8 In the process shown in the flowchart of FIG. 8 , S803 to S806 may not be performed. However, in the case where the infrastructure connection is established by the second method or the third method, Figure 8 S803 to S806 may be performed in the process shown in the flowchart of FIG. That is, based on the method for establishing an infrastructure connection, Figure 8 In the process shown in the flowchart, it is possible to control whether S803 to S806 are executed.
[0188] The control according to the present embodiment can be applied to AP searches other than the AP search started when the communication device 151 receives an operation for activating the infrastructure connection mode from the user. Specifically, for example, the control according to the present embodiment can be applied to Fig. 9 More specifically, in a state where the communication device 151 operates in the direct connection mode, the communication device 151 can search for the access point 131 by sequentially using channels among all channels that the communication device 151 can use, excluding the channel used by the communication device 151 in the direct connection mode.
[0189] Fourth embodiment
[0190] In the fourth embodiment, a mode will be described in which a search for access points existing around the communication device 151 is performed by a method different from the search described in the above embodiment, and a channel used in the infrastructure connection mode is different from a channel used in the direct connection mode.
[0191] Control for searching for access points around the communication device 151
[0192] Fig.121 is a flowchart illustrating a process to be executed by the communication device 151 in the present embodiment. In this flowchart, the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing these programs. It is assumed that the communication device 151 starts when it receives the above-mentioned operation for activating the infrastructure connection mode from the user. Fig.12 The process shown in .
[0193] The configuration of the communication system according to this embodiment is the same as or similar to the configuration in each of the above embodiments unless otherwise specified. Fig.12 The process shown in the flowchart of the third embodiment is not Fig.11 The process shown in the flowchart of , but other processes are performed with the same contents as those shown in the above flowchart.
[0194] S1201 to S1204 are the same as or similar to S1101 to S1104 , respectively, and thus will not be described.
[0195] In S1205, the CPU 154 determines whether one or more access points have been found by the AP search in S1202. In the case where the result of the determination in S1205 is "Yes", the CPU 154 proceeds to S1208. In the case where the result of the determination in S1205 is "No", the CPU 154 proceeds to S1206.
[0196] In S1206, the CPU 154 searches for access points existing around the communication device 151 by using the channel used by the communication device 151 in the direct connection mode. In this process, at least the channel used by the communication device 151 in the direct connection mode can be used. Therefore, for example, in this process, the CPU 154 can search for access points existing around the communication device 151 by sequentially using all channels that the communication device 151 can use.
[0197] In S1207, the CPU 154 determines whether one or more access points have been found by the AP search in S1206. In the case where the result of the determination in S1207 is "Yes", the CPU 154 proceeds to S1208. In the case where the result of the determination in S1207 is "No", the CPU 154 returns to S1201. In the case where no access point is found by the AP search regardless of whether the processing in S1207 is repeated, and the timeout time has passed, the CPU 154 may end the AP search, end the process, and display a screen indicating that no access point has been found.
[0198] S1208 to S1211 are the same as or similar to S1105 to S1108 , respectively, and thus will not be described.
[0199] The control according to the present embodiment can be performed to prevent the establishment of an infrastructure connection using a channel used in the direct connection mode as much as possible. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode. In addition, in the case where an access point is not found by an AP search using a channel used in the direct connection mode, the probability of finding an access point can be increased by performing an AP search using a channel used in the direct connection mode.
[0200] The control according to the present embodiment may be applied to AP searches other than the AP search initiated when the communication device 151 receives an operation for activating the infrastructure connection mode from the user. Specifically, for example, the control according to the present embodiment may be applied to Fig. 9 More specifically, in a state where the communication device 151 operates in the direct connection mode, the communication device 151 may search for the access point 131 by sequentially using channels excluding the channel used by the communication device 151 in the direct connection mode, among all channels that the communication device 151 may use. In a case where the access point 131 is not found through the AP search, the communication device 151 may search for the access point 131 by using the channel used by the communication device 151 in the direct connection mode.
[0201] Fifth embodiment
[0202] In the above embodiment, a mode in which a channel used in the infrastructure connection mode does not match a channel used in the direct connection mode is described above, but a frequency band used in the infrastructure connection mode may match a frequency band used in the direct connection mode.
[0203] In this embodiment, a mode will be described in which control is performed so that a channel used in the infrastructure connection mode does not match a channel used in the direct connection mode and a frequency band used in the infrastructure connection mode does not match a frequency band used in the direct connection mode.
[0204] Controls when you want to newly activate direct connection mode
[0205] Fig.13 is a flowchart illustrating a process to be performed by the communication device 151 in the present embodiment. Fig.13In the flowchart of FIG. 1 , the process to be executed by the communication device 151 is realized by the CPU 154 reading various programs stored in a memory such as the ROM 152 into the RAM 153 and executing these programs. Assume that in the case of executing a process as a trigger for activating the direct connection mode, for example, in the case where the communication device 151 receives the above-mentioned operation for activating the direct connection mode from the user, the process starts. Fig.13 The process shown in .
[0206] S1301 is the same as or similar to S701 and thus will not be described.
[0207] In S1302, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state. In the case where the communication device 151 is in the infrastructure connection state, the CPU 154 specifies the frequency band used in the infrastructure connection mode, and determines whether the frequency band used in the infrastructure connection mode is the 5 GHz band. That is, in the processing in S1302, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state, and determines whether the frequency band used in the infrastructure connection mode is the 5 GHz band. For example, the frequency band used in the infrastructure connection mode is specified based on the specification of the channel used in the infrastructure connection mode. The specified frequency band corresponds to the frequency band used in the infrastructure connection mode when the processing as a trigger for activating the direct connection mode is performed. The case where the frequency band used in the infrastructure connection mode is the 5 GHz band is the case where the channel used in the infrastructure connection mode is a channel for the 5 GHz band. In the case where the result of the determination in S1302 is "yes", the CPU 154 proceeds to S1303. In the case where the result of the determination in S1302 is "no", the CPU 154 proceeds to S1304.
[0208] In S1303, the CPU 154 sets any one of the channels for the 2.4 GHz band available to the communication device 151 as a channel to be used in the direct connection mode, and activates the direct connection mode. After S1303, the CPU 154 proceeds to S1304. In this case, a channel to be used preferentially among the channels for the 2.4 GHz band available to the communication device 151 may be pre-set. Specifically, for example, channel 11 may be preferentially set as a channel to be used in the direct connection mode. In this case, the CPU 154 may automatically set the channel 11 to be used preferentially. Figure 2E The frequency band set on the screen shown in is set to the 2.4 GHz band. In addition, in this case, the CPU 154 can display a screen for notifying the user that the 2.4 GHz band is to be used in the direct connection mode.
[0209] In S1304, the CPU 154 sets any one of the channels for the 5 GHz band that can be used by the communication device 151 as a channel to be used in the direct connection mode, and activates the direct connection mode. After S1304, the CPU 154 proceeds to S1308. In this case, the channel to be preferentially used among the channels for the 5 GHz band that can be used by the communication device 151 can be pre-set. Specifically, for example, channel 36 can be preferentially set as a channel to be used in the direct connection mode.
[0210] In S1305, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state. In the case where the communication device 151 is in the infrastructure connection state, the CPU 154 specifies the frequency band used in the infrastructure connection mode and determines whether the frequency band used in the infrastructure connection mode is the 2.4 GHz band. That is, in the processing in S1305, the CPU 154 determines whether the communication device 151 is in the infrastructure connection state, and determines whether the frequency band used in the infrastructure connection mode is the 2.4 GHz band. The specified frequency band corresponds to the frequency band used in the infrastructure connection mode in the case of performing the processing as a trigger for activating the direct connection mode. The frequency band used in the infrastructure connection mode is specified based on the specification of the channel used in the infrastructure connection mode. The case where the frequency band used in the infrastructure connection mode is the 2.4 GHz band is the case where the channel used in the infrastructure connection mode is a channel for the 2.4 GHz band. In the case where the result of the determination in S1305 is "yes", the CPU 154 proceeds to S1306. In the case where the result of the determination in S1305 is "no", the CPU 154 proceeds to S1307.
[0211] In S1306, the CPU 154 sets any one channel for the 5 GHz band available to the communication device 151 as a channel to be used in the direct connection mode, and activates the direct connection mode. After S1306, the CPU 154 proceeds to S1308. In this case, the CPU 154 may control to set any one channel among the channels for the 5 GHz band available to the communication device 151, excluding the channel for the DFS band. In this case, it is possible to determine the channel to be used preferentially among the channels for the 5 GHz band available to the communication device 151. Specifically, for example, channel 36 may be preferentially set as the channel to be used in the direct connection mode. In addition, in this case, the CPU 154 may automatically Figure 2E The frequency band set on the screen shown in is set to the 5 GHz band. In this case, the CPU 154 may display a screen for notifying the user that the 5 GHz band is to be used in the direct connection mode.
[0212] In S1307, the CPU 154 sets any one of the channels for the 2.4 GHz band that can be used by the communication device 151 as a channel to be used in the direct connection mode, and activates the direct connection mode. In this case, it is possible to determine the channel to be used preferentially among the channels for the 2.4 GHz band that can be used by the communication device 151. Specifically, for example, channel 11 can be preferentially set as the channel to be used in the direct connection mode. After S1307, the CPU 154 proceeds to S1308.
[0213] The processing in S1308 to S1310 is the same as or similar to the processing in S708 to S710 and thus will not be described.
[0214] Since the above-mentioned processing is performed, in the case where the operation for activating the direct connection mode is performed on the communication device 151 in a state where the communication device 151 operates in the infrastructure connection mode, the channel used in the infrastructure connection mode can be different from the channel used in the direct connection mode. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode. In the present embodiment, the 2.4 GHz band or the 5 GHz band is used as an example, but the 6 GHz band may be used.
[0215] In the above embodiment, control can be performed to prevent the frequency band used in the infrastructure connection mode from matching the frequency band used in the direct connection mode. Therefore, it is possible to suppress the occurrence of interference in the communication in the infrastructure connection mode and the communication in the direct connection mode.
[0216] Other embodiments
[0217] In the above description, as a predetermined control to prevent the channel used in the infrastructure connection mode from matching the channel used in the direct connection mode by the Wi-Fi Agile Multi-Band feature, control is performed so that the channel used in the direct connection mode is notified to the access point, and the network using the channel used in the direct connection mode is not specified as the switching target network. However, the embodiment is not limited to this. For example, a predetermined control may be performed so that the channel used in the direct connection mode is not notified to the access point. In the case where the network using the channel used in the direct connection mode is specified as the switching target network and the request for switching the connection destination received by the communication device 151 includes the SSID of the network using the channel used in the direct connection mode, a predetermined control may be performed so that the destination connected to the communication device 151 is not switched and the connection with the network to which the communication device 151 was originally connected is maintained. Even in this embodiment, in the case where a network using a channel different from the channel used in the direct connection mode is specified as the switching target network and the request for switching the connection destination received by the communication device 151 includes the SSID of the network using the channel different from the channel used in the direct connection mode, the destination connected to the communication device 151 is switched based on the request to switch the connection destination.
[0218] The purpose of various embodiments of the present disclosure can be achieved by supplying a recording medium (storing the program code of the software) for realizing the above-mentioned example functions to a system or device, and a computer (such as a CPU or an MPU) of the system or device reading and executing the program code stored in the recording medium. In this case, the program code read from the recording medium realizes the functions described above when executed, and the recording medium storing the program code is included in the scope of the present disclosure.
[0219] As a recording medium for storing the program code, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, a DVD, or the like can be used.
[0220] The computer reads and executes the program code to realize not only the functions described in the above embodiment description but also executes part or all of the processing performed by an operating system (OS) or the like on the computer, thereby realizing the above functions through these processing.
[0221] According to various embodiments of the present disclosure, it is possible to improve the convenience of a device that can operate in a mode as a slave and in a mode as a master.
[0222] The various embodiments (one or more) of the present disclosure may also be implemented by reading out 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 the functions of one or more of the above-mentioned (one or more) embodiments and / or a system or device including one or more circuits (e.g., application-specific integrated circuits (ASICs)) for performing the functions of one or more of the above-mentioned (one or more) embodiments, and by a computer of the system or device, for example, reading out and executing computer executable instructions from a storage medium to perform the functions of one or more of the above-mentioned (one or more) embodiments and / or controlling one or more circuits to perform the functions of one or more of the above-mentioned (one or more) embodiments and implementing a method executed. 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 out and execute computer executable instructions. Computer executable instructions may be provided to the computer, for example, from a network or a storage medium. The storage medium may include, for example, a hard disk, a random access memory (RAM), a read-only memory (ROM), a storage device of a distributed computing system, an optical disk (such as a compact disk (CD), a digital versatile disk (DVD), or a Blu-ray disk (BD)) TM ), one or more of a flash memory device, a memory card, etc.
[0223] The embodiments of the present disclosure may also be implemented by the following method, that is, software (program) that performs the functions of the above embodiments is provided to a system or device through 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.
[0224] Although exemplary embodiments have been described, it is to be understood that the present disclosure 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. A communication device capable of operating in a first mode as a slave station in accordance with a predetermined wireless communication standard and in a second mode as a master station in accordance with the predetermined wireless communication standard, the communication device comprising: a designation unit that, in a case where a specific process for causing the communication device to operate in the first mode is performed in a state where the communication device operates in the second mode, specifies a channel that is (i) different from the channel used by the communication device in the second mode when the specific process is performed and (ii) to be used by the communication device in the second mode after the specific process is performed, based on a match between a channel used by the communication device in the second mode when the specific process is performed and a channel used by the communication device in the first mode activated by the specific process; a first control unit that controls the communication device so that, in a case where the specific process is performed in a state where the communication device operates in the second mode, the communication device operates in the first mode and the second mode concurrently, and operates in the second mode using the designated channel; a switching unit that switches a destination connected by the communication device in the first mode from the first network to the second network based on reception of predetermined information by the communication device via the first network connected by the communication device in the first mode in a state where the communication device operates in the first mode, the predetermined information being provided for switching the destination connected by the communication device in the first mode from the first network to the second network; as well as The second control unit performs predetermined control to prevent a destination connected by the communication device in the first mode from being switched from the first network to a network using a channel used by the communication device in the second mode based on the predetermined information in a state where the communication device operates in the first mode and the second mode concurrently.
2. The communication device according to claim 1, wherein The predetermined information includes identification information of the second network, switching a destination to which the communication device is connected in the first mode from the first network to the second network based on the identification information of the second network, and The predetermined control is performed to prevent identification information of a network using a channel used by the communication device in the second mode from being included in the predetermined information received by the communication device as identification information of the second network.
3. The communication device according to claim 2, wherein The predetermined control is performed to notify the access point forming the first network of the channel used by the communication device in the second mode.
4. The communication device according to claim 3, wherein Based on the communication device starting to operate in the first mode and the second mode concurrently, the access point forming the first network is notified of a channel used by the communication device in the second mode.
5. The communication device according to claim 1, wherein The predetermined information includes identification information of the second network, switching a destination to which the communication device is connected in the first mode from the first network to the second network based on the identification information of the second network, and The predetermined control is performed to prevent a destination connected by the communication device in the first mode from being switched from the first network to the second network even if identification information of a network using a channel used by the communication device in the second mode is included as identification information of the second network in the predetermined information received by the communication device.
6. The communication device according to claim 1, wherein Based on the reception of the predetermined information, a destination to which the communication device is connected in the first mode is switched from the first network to the second network by using the password for connecting to the first network.
7. The communication device according to claim 1, wherein The SSID of the first network is the same as the SSID of the second network.
8. The communication device according to claim 1, further comprising: a transmission unit, which transmits network information indicating one or more networks existing around the communication device to an access point forming a first network, wherein The second network corresponding to the predetermined information is any one of the one or more networks indicated by the network information.
9. The communication device according to claim 8, wherein The network information indicating the one or more networks existing around the communication device indicates one or more networks having the same SSID as the SSID of the first network among the one or more networks existing around the communication device.
10. The communication device according to claim 1, wherein The switching of the destination to which the communication device is connected in the first mode based on the reception of the predetermined information is performed by Wi-Fi Agile Multi-Band.
11. The communication device according to claim 1, further comprising: a stopping unit that stops the operation of the communication device in the second mode in a case where the specific process is executed in a state where the communication device operates in the second mode; as well as a restarting unit that restarts the operation of the communication device in the second mode after the operation of the communication device in the second mode stops, wherein A channel different from the channel used by the communication device in the second mode when the specific process is executed is designated as a channel to be used by the communication device in the second mode in which the operation has been restarted.
12. The communication device according to claim 1, wherein The specific processing is at least one of the following processing: (i) processing of receiving, from a user, a selection of an access point from a list of one or more access points found by the communication device in a search, (ii) processing of receiving, from a user, an operation for performing a Wi-Fi protected setup or a one-touch wireless network simple setup system, and (iii) processing of reestablishing a connection between the communication device in the first mode and the access point due to a disconnection of the connection between the communication device in the first mode and the access point.
13. The communication device according to claim 1, wherein In the case where predetermined processing for causing the communication device to operate in a second mode is performed while the communication device is operating in a first mode, a channel different from a channel used by the communication device in the first mode when the predetermined processing is performed is designated as a channel to be used by the communication device in the second mode after the predetermined processing is performed.
14. The communication device according to claim 13, wherein In a case where the predetermined processing is performed while the communication device is operating in the first mode, based on a match between a predetermined channel set as a channel to be preferentially used by the communication device in the second mode and a channel used by the communication device in the first mode when the predetermined processing is performed, a channel different from the predetermined channel is designated as a channel to be used by the communication device in the second mode after the predetermined processing is performed.
15. The communication device according to claim 1, wherein The second mode is at least one of a mode in which the communication device operates as a software access point and a mode in which the communication device operates as a group owner of Wi-Fi Direct.
16. The communication device according to claim 1, wherein The predetermined wireless communication standard is included in the IEEE802.11 series of standards.
17. The communication device according to claim 1, further comprising: At least one of a printing unit that performs printing and a scanning unit that performs scanning.
18. The communication device according to claim 1, wherein The 2.4 GHz band and the 5 GHz band can be used for communication in the first mode, and The frequency band not switched through dynamic frequency selection included in the 5 GHz frequency band and the 2.4 GHz frequency band can be used for communication in the second mode, or the 2.4 GHz frequency band can be used for communication in the second mode and the 5 GHz frequency band cannot be used for communication in the second mode.
19. The communication device according to claim 1, wherein At least the 6 GHz frequency band can be used for communications in the first mode.
20. A method of controlling a communication device, the communication device being capable of operating in a first mode as a slave station conforming to a predetermined wireless communication standard and in a second mode as a master station conforming to the predetermined wireless communication standard, the method comprising: In a case where a specific process for causing the communication device to operate in the first mode is performed in a state where the communication device is operating in the second mode, specifying a channel that is (i) different from the channel used by the communication device in the second mode when the specific process is performed and (ii) to be used by the communication device in the second mode after the specific process is performed, based on a match between a channel used by the communication device in the second mode when the specific process is performed and a channel used by the communication device in the first mode activated by the specific process; controlling the communication device so that, in a case where the specific process is performed in a state where the communication device operates in the second mode, the communication device operates in the first mode and the second mode concurrently and operates in the second mode using the designated channel; switching a destination connected by the communication device in the first mode from the first network to the second network based on reception by the communication device via the first network connected by the communication device in the first mode in a state where the communication device is operating in the first mode, the predetermined information being provided for switching a destination connected by the communication device in the first mode from the first network to the second network; as well as In a state where the communication device operates in the first mode and the second mode concurrently, predetermined control is performed to prevent a destination connected by the communication device in the first mode from being switched from the first network to a network using a channel used by the communication device in the second mode based on the predetermined information.
