Program, information processing device and control method thereof

JP2023066227A5Active Publication Date: 2024-10-24CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021176825
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-10-24
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

The convenience of connecting communication devices to access points is limited by the inefficiencies in existing connection protocols, particularly when multiple access points are available, leading to failed connections and user inconvenience.

Method used

A system and method that involves an information processing device and a communication device capable of searching for and establishing connections with multiple access points, including retrying connections with different access points if the initial attempt fails, and utilizing protocols like Wi-Fi Easy Connect (WEC) and Device Provisioning Protocol (DPP) to facilitate secure and efficient network setup.

Benefits of technology

Enhances the convenience of connecting communication devices to access points by improving connection reliability and security through intelligent retry mechanisms and standardized protocols, ensuring seamless network setup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To improve the convenience of a function to connect a communication device and an access point to each other.SOLUTION: A communication device communicable with an information processing device and an access point searches for a communicable access point. The communication device transmits an access point search result to the information processing device which is communicable with the communication device and the access point as a first search result. The information processing device receives the first search result from the communication device, and tries to establish a connection with a first access point among a plurality of access points included in the first search result. If the connection establishment with the first access point fails, the information processing device tries to establish a connection with a second access point among the plurality of access points, to which connection establishment is not tried yet, and transmits connection information for the connection with the access point to which the connection is successfully established, to the communication device. The communication device then establishes a connection with the access point based on the connection information received from the information processing device.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an information processing apparatus, a communication apparatus, a communication system, a method for setting a communication apparatus, and a program.

Background Art

[0002] A technique is known in which an information processing apparatus such as a PC (personal computer) transmits information regarding an access point to a communication apparatus such as a printer having a communication function, and connects the communication apparatus and the access point.

Prior Art Documents

Patent Documents

[0003]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0004] By the way, as the function of transmitting connection information for connecting an access point to a communication apparatus and connecting the communication apparatus and the access point becomes widespread, it is required to improve the convenience of the function.

[0005] The present invention has been made in view of the above problems, and an object thereof is to improve the convenience of the function of connecting a communication apparatus and an access point.

Means for Solving the Problems

[0006] The present invention has the following configuration in order to achieve the above object. That is, according to one aspect of the present invention, there are provided communication means capable of communicating with each of a communication apparatus and an access point, control means, The control means, receives a first search result of an access point by the communication apparatus from the communication apparatus, An attempt is made to establish a connection with the first access point among the multiple access points included in the first search result, If the establishment of a connection with the first access point fails, the system will attempt to establish a connection with a second access point among the multiple access points that has not yet been attempted to establish a connection with. The communication device is sent connection information for connecting with the access point to which a connection has been established. An information processing device characterized by the above is provided.

[0007] According to another aspect of the present invention, a communication means capable of communicating with an information processing device and an access point, A search means for searching for an access point that can communicate using the aforementioned communication means, A transmission means for transmitting the search result obtained by the search means to the information processing device as a first search result, The system includes connection means that receive connection information for connecting to an access point from the information processing device and establish a connection with the access point based on the connection information. A communication device characterized by the above is provided.

[0008] Furthermore, according to yet another aspect of the present invention, the information processing device, the communication device, and at least one access point are included. The communication device establishes a connection to the access point selected by the information processing device. A communication system characterized by the above is provided.

[0009] According to yet another aspect of the present invention, a method for setting up a communication device that can communicate with a communication device and an access point, respectively, using an information processing device having communication means and control means, The aforementioned communication device searches for an access point with which it can communicate. The communication device transmits the access point search result as the first search result to the information processing device. The control means receives the first search result from the communication device, An attempt is made to establish a connection with the first access point among the multiple access points included in the first search result, If the establishment of a connection with the first access point fails, the system will attempt to establish a connection with a second access point among the multiple access points that has not yet been attempted to establish a connection with. The communication device transmits connection information for connecting with the access point to which a connection has been established. The communication device receives the connection information from the information processing device and establishes a connection with the access point based on the connection information. A method for configuring a communication device is provided, characterized by the following features. [Effects of the Invention]

[0010] According to the present invention, the convenience of the function for connecting a communication device and an access point can be improved. [Brief explanation of the drawing]

[0011] [Figure 1] This diagram shows the configuration of an information processing device and a communication device. [Figure 2] This is a flowchart showing the AP search process performed by the communication device. [Figure 3] This figure shows an example of the AP search results performed by a communication device. [Figure 4] This flowchart shows the processes performed by the information processing device. [Figure 5] This figure shows an example of the WEC start screen. [Figure 6] This is a sequence diagram showing the processes performed by the information processing device and the communication device. [Figure 7] This figure shows an example of a GATT database included in a communication device. [Figure 8] This sequence diagram illustrates the process for realizing WEC-related information via short-range wireless communication.

Best Mode for Carrying Out the Invention

[0012] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the invention according to the claims. Although a plurality of features are described in the embodiments, not all of these plurality of features are essential to the invention, and the plurality of features may be arbitrarily combined. Further, in the accompanying drawings, the same or similar configurations are denoted by the same reference numerals, and redundant descriptions are omitted.

[0013] (First Embodiment) The information processing apparatus and the communication apparatus included in the communication system of this embodiment will be described. As the information processing apparatus, a smartphone is exemplified in this embodiment, but it is not limited thereto. Any apparatus having the information processing function, the communication function, and the user interface function described in this embodiment may be used. For example, the communication function includes a near field communication (NFC) function or a Bluetooth (registered trademark) function for directly communicating (P2P) with a communication apparatus. For example, as the information processing apparatus, various apparatuses such as a mobile terminal, a PC (personal computer), a tablet terminal, a PDA (Personal Digital Assistant), and a digital camera can be applied.

[0014] Furthermore, while a printer is used as an example of a communication device in this embodiment, it is not limited to this, and various devices capable of wireless communication with an information processing device can be applied. This communication device does not need to have a user interface, but it must have a function to communicate directly with the information processing device, such as near-field communication (NFC) or Bluetooth® function. If the communication device is a printer, for example, there are no conditions on the image forming method, and it can be applied to inkjet printers, full-color laser beam printers, monochrome printers, etc. In addition to printers, it can also be applied to copiers, facsimile machines, mobile terminals, smartphones, notebook PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, smart speakers, etc. Furthermore, it can also be applied to multifunction devices that have multiple functions such as copying, faxing, and printing.

[0015] Furthermore, in this embodiment, if the information processing device supports a function called Wi-Fi® Easy Connect (hereinafter referred to as WEC), it can perform that function. WEC is a function that uses the Device Provisioning Protocol (hereinafter referred to as DPP), which was established by the Wi-Fi® Alliance, to perform network setup for other devices from the information processing device. The other devices are the communication devices mentioned above, and the network setup specifically refers to the process of connecting the other devices to the access points that form the network. In WEC, communication takes place between a device that operates in the role of "Configurator" (hereinafter referred to as the Configurator device) and a device that operates in the role of "Enrollee" (hereinafter referred to as the Enrollee device). The information processing device mentioned above corresponds to the Configurator device, and the communication device corresponds to the Enrollee device.

[0016] The Configurator device obtains Bootstrapping information from the Enrollee device. Bootstrapping information includes, for example, the identification information of the Enrollee device (such as its MAC address) and public key information used for secure communication with the Enrollee device. In this embodiment, Bootstrapping information is described as "WEC-related information." Other information may also be treated as WEC-related information. Bootstrapping information does not necessarily have to be obtained from the Enrollee device. For example, Bootstrapping information may be encoded on a label attached to the Enrollee device and read optically, or stored on a wireless tag and read electronically. Alternatively, it may be obtained from a server registered in association with the Enrollee device, or it may be manually entered.

[0017] The Configurator device then uses the acquired Bootstrapping information to perform wireless communication with the Enrollee device. Specifically, for example, the Configurator device encrypts the protocol key using the public key included in the Bootstrapping information and sends the encrypted protocol key to the Enrollee device. It then generates a shared key based on the encrypted protocol key. The Configurator device then sends encrypted information using this shared key to the Enrollee device. The information sent here is, for example, connection information for connecting to an access point. The Enrollee device then uses the connection information received from the Configurator device to establish a wireless connection with the access point. The above procedure outlines the procedure defined as WEC and DPP. In this embodiment, the network setup process using WEC is described as operating as a Configurator device for the information processing device that supports WEC, and as operating as an Enrollee device for the communication device that supports WEC.

[0018] First, the configuration of the information processing device of this embodiment and the communication device capable of communicating with the information processing device of this embodiment will be described with reference to the block diagram in Figure 1. In addition, the following configuration is described as an example in this embodiment, but this embodiment is applicable to devices that can communicate with a communication device and does not particularly limit the functions as shown in this figure.

[0019] ●Configuration of the information processing device The information processing device 101 is an information processing device of this embodiment. The information processing device 101 includes an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, a display unit 108, a communication unit 110, a short-range wireless communication unit 111, etc. The CPU 103, ROM 104, RAM 105, etc. form the computer of the information processing device 101.

[0020] The input interface 102 is an interface for receiving data input and operation instructions from the user when an operation unit such as a keyboard 109 is operated. The operation unit may be a physical keyboard or physical buttons, or a touch panel integrated with the display unit 108, or in particular a soft keyboard or soft buttons displayed on the display unit 108. In other words, the input interface 102 may also receive input from the user via the display unit 108.

[0021] The CPU 103 is the system control unit and controls the entire information processing device 101. The ROM 104 stores fixed data such as control programs executed by the CPU 103, data tables, and embedded operating system (hereinafter referred to as OS) programs. In this embodiment, each control program stored in the ROM 104 performs software execution control such as scheduling, task switching, and interrupt handling under the management of the embedded OS stored in the ROM 104.

[0022] RAM 105 consists of SRAM (Static Random Access Memory) and other components that require a backup power supply. Since RAM 105's data is held by a primary battery (not shown) for data backup, important data such as program control variables can be stored without being lost. RAM 105 also includes a memory area for storing configuration information and management data for the information processing device 101. Furthermore, RAM 105 is used as both the main memory and work memory for the CPU 103.

[0023] The external storage device 106 stores an application program (hereinafter referred to as the "configuration app") for performing network setup of the communication device 151, a print information generation program that generates print information that the communication device 151 can interpret, and the like. The configuration app is an application program for configuring the access point to which the communication device 151 is connected using WEC or the like. The configuration app may also have functions other than network setup. For example, the configuration app may have functions to cause the communication device 151 to print, functions to scan documents set in the communication device 151, and functions to check the status of the communication device 151. The configuration app is stored in the external storage device 106 after being installed from an external server, for example, via internet communication through the communication unit 110. The external storage device 106 also stores various programs, such as information transmission and reception control programs that are transmitted and received with the communication device 151 connected via the communication unit 110, and various information used by these programs.

[0024] The output interface 107 is an interface that controls the display unit 108 to display data and notify the status of the information processing device 101.

[0025] The display unit 108 consists of LEDs (light-emitting diodes) and LCDs (liquid crystal displays), and displays data and notifies the status of the information processing device 101. The display unit 108, together with the keyboard 109 and touch panel, constitutes the user interface.

[0026] The communication unit 110 is configured to connect to devices such as the communication device 151 and the access point 131 to perform data communication. For example, the communication unit 110 can connect to an access point (not shown) within the communication device 151. By connecting the communication unit 110 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 communication unit 110 may communicate directly with the communication device 151 via wireless communication, or it may communicate via an external device located outside the information processing device 101 and the communication device 151. External devices include external access points (such as access point 131) located outside the information processing device 101 and the communication device 151, as well as devices other than access points that can relay communication. In this embodiment, the wireless communication method used by the communication unit 110 is assumed to be Wi-Fi (WirelessFidelity) (registered trademark), a communication standard compliant with the IEEE 802.11 series. The aforementioned WEC is performed by communication via the communication unit 110. Furthermore, the access point 131 can be, for example, a wireless LAN router or a wireless LAN access point. In this embodiment, the method by which the information processing device 101 and the communication device 151 are directly connected without going through an external access point is called a direct connection or peer-to-peer (P2P) connection method. The method by which the information processing device 101 and the communication device 151 are connected via an external access point is called an infrastructure connection method. Each connection method is sometimes referred to as a mode.

[0027] The short-range wireless communication unit 111 is configured to wirelessly connect to devices such as the communication device 151 at short range and perform data communication, and communicates using a different communication method than the communication unit 110. The short-range wireless communication unit 111 can connect to, for example, the short-range wireless communication unit 157 within the communication device 151. Examples of communication methods include Near Field Communication (NFC), Bluetooth® Classic, Bluetooth Low Energy (BLE), and Wi-Fi Aware.

[0028] In this embodiment, the information processing device 101 executes WEC using its OS based on an instruction to execute network setup processing by a configuration application (configuration app). The OS of the information processing device 101 has means for storing connection information such as SSID and password for already connected communication devices, and the configuration app can obtain a list of communication device information for which connection information has been stored. The configuration app can instruct the OS to connect to a specific communication device, and the OS executes a connection to the device for which connection information has been stored, based on the stored information. If the connection to a device for which connection information has been stored fails, or if the OS is trying to connect to a device for which connection information has not been stored, the OS prompts the user to enter connection information such as a password and attempts to connect based on the entered information. If the OS does not accept direct connections to communication devices from the configuration app as a function of the OS, the configuration app presents the user with information such as the SSID of the connection destination, prompts the user to use the connection settings for the communication device provided by the OS, and establishes the desired connection.

[0029] ●Communication device configuration The communication device 151 is the communication device of this embodiment. The communication device 151 includes a ROM 152, RAM 153, CPU 154, print engine 155, communication unit 156, short-range wireless communication unit 157, etc. The computer of the communication device 151 is formed by the ROM 152, RAM 153, CPU 154, etc.

[0030] The communication unit 156 has an access point within the communication device 151 for connecting to devices such as the information processing device 101. This access point can be connected to the communication unit 110 of the information processing device 101. When the communication unit 156 activates this access point, the communication device 151 operates as an access point. The communication unit 156 may connect wirelessly to the information processing device 101 directly, or it may connect wirelessly via the access point 131. In this embodiment, the wireless communication method used by the communication unit 156 is a communication standard compliant with the IEEE 802.11 series. In the following description, Wi-Fi (WirelessFidelity) (registered trademark) refers to a communication standard compliant with the IEEE 802.11 series. If the communication device 151 supports WEC, the aforementioned WEC will be executed by communication via the communication unit 156. The communication unit 156 may have hardware that functions as an access point, or it may operate as an access point through software that enables it to function as an access point.

[0031] The communication device 151 of this embodiment can operate in infrastructure mode and P2P (Peer to Peer) mode as modes for performing communication using the communication unit 156.

[0032] Infrastructure mode is a configuration in which the communication device 151 communicates with other devices such as the information processing device 101 via external devices that form a network (for example, the access point 131). The connection with the external access point established by the communication device 151 operating in infrastructure mode is called an infrastructure connection (hereinafter referred to as an infrastructure connection). In this embodiment, in an infrastructure connection, the communication device 151 operates as a slave station, and the external access point operates as a master station. In this embodiment, the master station is a device that determines the communication channel used in the network to which the master station belongs, and the slave station is a device that does not determine the communication channel used in the network to which the slave station belongs, but uses the communication channel determined by the master station.

[0033] P2P mode is a configuration in which the communication device 151 communicates directly with other devices such as the information processing device 101 without going through external devices that form a network. In this embodiment, P2P mode includes AP mode in which the communication device 151 operates as an access point. The access point connection information (SSID and password) enabled within the communication device 151 in AP mode can be arbitrarily set by the user. P2P mode may also include, for example, a WFD mode for the communication device 151 to communicate using Wi-Fi Direct (WFD). Which of the multiple WFD-compatible devices will operate as the master station is determined according to a sequence such as Group Owner Negotiation. The master station may be determined without performing Group Owner Negotiation. A device that is WFD-compatible and also acts as the master station is specifically called the Group Owner. A direct connection with other devices established by the communication device 151 operating in P2P mode is called a direct connection. In this embodiment, in a direct connection, the communication device 151 operates as the master station, and the other devices operate as slave stations.

[0034] Furthermore, in this embodiment, the communication device 151 can operate in network setup mode, which is a mode for performing network setup of the communication device 151 by receiving a predetermined operation from the user. The effects of this embodiment can also be obtained by automatically activating network setup mode when the communication device 151 is powered on, even if the network settings of the communication device 151 have not been configured. When the communication device 151 operates in network setup mode, it operates as a setup access point that is valid during operation in network setup mode by using the communication unit 156. This setup access point is a different access point from the access point that is enabled in AP mode as described above. The SSID of this setup access point shall contain a predetermined string that can be recognized by the setting application of the information processing device 101. Furthermore, this setup access point shall be an access point that does not require a password for connection. In addition, the communication device 151 operating in network setup mode shall use a predetermined communication protocol (setup communication protocol) in communication with the information processing device 101 connected to the setup access point. Specifically, the setup communication protocol is, for example, SNMP (Simple Network Management Protocol).

[0035] After the communication device 151 starts operating in network setup mode, it stops operating in network setup mode and disables the setup access point after a predetermined time has elapsed. This is because, as mentioned above, the setup access point is an access point that does not require a password, and if it is enabled for a long time, the possibility of connection requests from inappropriate devices increases. The setup access point may be an access point that requires a password. In that case, the password used to connect to the setup access point shall be a fixed (user-unchangeable) password that the configuration application has known in advance.

[0036] The short-range wireless communication unit 157 is configured to wirelessly connect to devices such as the information processing device 101 at short range, and can, for example, connect to the short-range wireless communication unit 111 within the information processing device 101. Examples of communication methods include NFC, Bluetooth Classic, BLE, and Wi-Fi Aware.

[0037] RAM 153 is composed of SRAM and other components that require a backup power supply. Since RAM 153's data is maintained by a primary battery (not shown) for data backup, important data such as program control variables can be stored without being lost. RAM 153 also includes a memory area for storing setting information and management data for the communication device 151. Furthermore, RAM 153 is used as the main memory and work memory for the CPU 154, storing a receive buffer for temporarily saving print information received from the information processing device 101, and various other information.

[0038] ROM152 stores fixed data such as control programs, data tables, and OS programs executed by the CPU154. In this embodiment, each control program stored in ROM152 performs software execution control such as scheduling, task switching, and interrupt handling under the management of the embedded OS also stored in ROM152.

[0039] The CPU 154 is the system control unit and controls the entire communication device 151. The CPU 154 executes programs stored in the ROM 152 and RAM 153 to perform communication, data generation, processing, etc.

[0040] Based on information stored in the print engine 155 and RAM 153, and print jobs received from the information processing device 101, etc., an image is formed on the recording medium by adding a recording material such as ink to paper, and the print result is output. Generally, the amount of data for print jobs transmitted from the information processing device 101, etc. is large, so it is necessary to use a communication method that enables high-speed communication for the communication of print jobs. For this reason, the communication device 151 receives print jobs via a communication unit 156 that enables communication at a higher speed than the short-range wireless communication unit 157.

[0041] Furthermore, the communication device 151 may be equipped with an external HDD or SD card as an optional memory device, and the information stored in the communication device 151 may be stored in such memory.

[0042] ●Network setup process The following describes, with reference to the drawings, the process by which the information processing device 101 of this embodiment executes the network setup process for the communication device 151.

[0043] ● Access point discovery process Figure 2 is a flowchart showing the flow of access point search (hereinafter referred to as AP search) performed by the information processing device 101 and communication device 151 as timing or preparation for network setup processing. The process in Figure 2 may be performed periodically in advance, for example, but in this example it is also performed during the process shown in Figure 4, which will be described later.

[0044] When AP search begins, step S201 retrieves Beacon information periodically transmitted by surrounding access points in the 2.4GHz band and searches for nearby access points. The Beacon information includes information such as the SSID, authentication method, encryption method, MAC address, and signal strength measured from the received power of each access point. Next, step S202 searches for surrounding access points in the 5GHz band in the same way as step S201. Each communication terminal, such as the information processing device 101 and the communication device 151, has security policies set from the perspective of ensuring security and convenience for communication. Specifically, restrictions such as not connecting to devices that do not have authentication or have vulnerabilities in their encryption method, and not connecting to devices in the 2.4GHz band are set by the user using the terminal. In step S203, the information of the access points discovered in steps S201 and S202 is compared with the security policy and devices that are not to be connected are removed from the list. Next, in step S204, the signal strength of the remaining access points in the list is referenced and the sorting process is completed in descending order of strength.

[0045] Figure 3 shows an example of the results of the AP search performed by the communication device 151 as described in Figure 2. Figure 3(a) shows the AP search results after performing steps S201 and S202 in Figure 2, and reveals that 2.4GHz band access points 301, 302, and 303 and 5GHz band access points 304, 305, and 306 have been found. For example, suppose the communication device 151 has a security policy set not to connect to APs that specify WEP as the encryption method. Since access points 303 and 305 have WEP64 and WEP128 set as the encryption methods respectively, the security policy is checked in the process of step S203, and these access points are excluded from the list of connection targets. For example, access points that are determined to have vulnerabilities (i.e., are not secure) in security (safety) such as authentication methods or encryption methods are excluded from connection targets. The criteria for determining vulnerabilities may be, for example, pre-configured with vulnerable authentication methods or encryption methods, or conversely, pre-configured with authentication methods or encryption methods that are not vulnerable. Based on those criteria, it can be determined that it is vulnerable. Furthermore, in step S204, the remaining device list is sorted by signal strength, from highest to lowest value, to 304, 302, 301, and 306, and converted into the AP search results shown in Figure 3(b). By performing the AP search process described above using Figures 2 and 3, the communication terminal can search for the optimal access point that complies with its security policy and is expected to provide good communication.

[0046] ● Network setup processing using information processing equipment Figure 4 is a flowchart showing the processing flow executed by the information processing device 101 in the network setup process of this embodiment. The flowchart shown in Figure 4 is realized, for example, when the CPU 103 reads a setting application stored in the ROM 104 or external storage device 106 into the RAM 105 and executes it. Furthermore, the flowchart shown in Figure 4 is started when a predetermined operation for network setup is performed on the screen displayed by the setting application.

[0047] When the user operates the information processing device 101 and the configuration application is launched, step S401 performs the AP search shown in Figure 2 to search for nearby access points and saves the results. Next, in step S402, the communication device 151, which is in network setup mode as described above, i.e., the setup access point, is detected from the AP search results and an attempt is made to connect to the detected setup access point. In step S403, the success of the P2P communication connection with the communication device 151 is confirmed, and if the connection fails, step S413 displays that the configuration failed and terminates the process. If the connection with the communication device 151 is successful in step S403, WEC-related information of the communication device 151 is obtained via SNMP in step S404. Also, in step S405, AP search information of the communication device 151 is obtained via SNMP. The communication device 151 performs the AP search described in Figure 2 when the network setup mode is started and maintains a list of the optimal access points for its own device, as shown in Figure 3(b). The AP search process in the communication device 151 can be performed not when the network setup mode is started, but at the timing of the information request from the information processing device 101 in step S405, and the effects of this embodiment can still be obtained.

[0048] In step S405, after obtaining AP search information from the communication device 151, the process proceeds to step S406, where the connection candidate list shown in Figure 3(b) provided by the communication device 151 and the AP search results performed by the information processing device 101 in step S401 are merged. The merging process first compares the connection candidate list obtained from the communication device 151 with the AP search results performed by the information processing device 101. As a result of this comparison, any connections that do not match are removed from the connection candidate list in Figure 3(b). In other words, a connection candidate list is created consisting of access points from the connection candidate list obtained by the communication device 151 that are also included in the AP search results obtained by the information processing device 101. This process is referred to here as merging. By executing step S406, it becomes possible to narrow down the access points that can be connected to by at least one of the information processing device 101 and the communication device 151 to the access point 131 that both can connect to. Note that in the connection candidate list obtained in S406, the access points are sorted in order of signal strength on the communication device 151. This explanation describes the case where there are no access points to be deleted.

[0049] Next, the information processing device 101 creates a list of connection candidates through step S406, and in step S407 checks whether the access point 131 to be connected to exists. That is, it determines whether at least one access point is included in the connection candidate list. If the access point 131 to be connected to does not exist, the process ends in step S413 with a message indicating that the setup failed. If the AP to be connected to exists in step S407, the process proceeds to step S408 to confirm with the user whether to connect to the top access point 131 in the connection candidate list. If confirmation is received, the information processing device 101 attempts to establish a connection between the access point 131 and the information processing device 101. The method for confirming with the user about the access point 131 to be connected to will be described later using Figure 5. Next, in step S409, it is determined whether the connection with the access point 131 that was attempted to be connected to has been completed (whether the connection between the access point 131 and the information processing device 101 has been successfully established). The determination of connection completion is made based on the response from the access point. In some cases, a negative response may be received to the connection, or the response may time out. In such cases, depending on the reason for the connection failure (error state), such as an incorrect password, it may be possible to repeatedly retry and attempt to connect. If a connection failure is confirmed in step S409, the access point 131 that was being attempted to connect to is removed from the list of target access points (not shown), and the process returns to step S407, where an attempt is made to connect to the next target access point from the updated list.

[0050] In step S409, once the connection with the desired access point 131 is completed, the connection with the access point 131 is disconnected (not shown), and in step S410, a series of DPP sequences are executed based on the WEC-related information obtained from the communication device 151. The details of the DPP sequence will be described later, but the information processing device 101 makes a connection using the means specified by the communication device 151 in the WEC-related information and executes a process to convey the optimal method of connecting to the access point 131 confirmed in the previous steps.

[0051] After the DPP sequence in step S410 is completed, the information processing device 101 reconnects to the access point 131, which had previously been connected, in step S409 (not shown), and proceeds to step S411. There, it determines whether the infrastructure connection between the connected access point 131 and the communication device 151 has been completed. This connection completion can be confirmed by verifying the presence of the communication device 151 through the access point 131. If the connection between the communication device 151 and the access point 131 cannot be confirmed in step S411, the process ends in step S413 with a message indicating that the setup failed. If the connection with the communication device 151 through the access point 131 is confirmed in step S411, the process ends with a message indicating that the setup is complete.

[0052] The configuration application of the information processing device 101 can perform the optimal connection settings with the access point 131 as seen from the communication device 151 by executing the processes described above.

[0053] Figure 5 shows an example of a screen display on the display unit 108 of the information processing device 101, which requests permission from the user to connect to access point 131, when the connection candidate list described in step S408 of Figure 4 is as shown in Figure 3(b). The SSID and MAC address 501 of SSID "qrstu" 304, which is the optimal access point 131 in the connection candidate list of Figure 3(b), are displayed as the connection target 501, and the user is requested to grant permission to connect. If the user selects area 504 "Yes", the connection to the presented access point 131 will begin, and if they select area 503 "No", the connection process will not be performed. If the user selects area 502 "Select another access point", the next connection destination candidates will be displayed according to their priority in the connection candidate list and will be available for selection (not shown). For example, in the display of Figure 5, the SSIDs "fghijk" 302, "abcde" 301, and "aaaaa" 306, which are the second and subsequent candidates in the connection candidate list of Figure 3(b), will be displayed sequentially and will be available for selection. Through these screens, the access points 131 to be set on the communication device 151 can be presented to the user in the optimal order, allowing the user to select one. Here, "optimal" refers to the access point with the strongest signal strength in the communication device 151 among the access points that can also communicate with the information processing device 101.

[0054] ● Sequence of network setup processes in communication systems Figure 6 is a sequence diagram showing the processing flow in the information processing device 101, the communication unit 156 of the communication device 151, and access points AP304 and AP302 for the network setup process described in Figure 4. The access points surrounding the communication device 151 are assumed to be AP304 with the SSID "qrstu" and AP302 with the SSID "fghijk," as described in Figure 3. As a pre-processing step, the communication device 151 accepts a predetermined operation from the user and transitions to network setup mode, and is in operation (not shown). This transition to network setup mode can also be performed automatically, for example, when the power to the communication device 151 is turned on while network setup has not been performed, in addition to the predetermined user operation, and the same effect can be obtained.

[0055] When the network setup of the communication device 151 is initiated, step 601 performs an AP search, as described with reference to Figure 2, to detect surrounding access points. As a result of the AP search, access points AP304, AP302, and others present around the communication device 151 are found, and the search results, including priority, are obtained by sorting the search results (Figure 3(b)).

[0056] On the other hand, the information processing device 101 will be described assuming that it was previously connected to AP302 via infrastructure (not shown). When the user launches the configuration application for the information processing device 101, the connection with AP302, which is connected via infrastructure, is disconnected in step S602. Next, in step S603, an AP search is performed to detect nearby access points and communication devices 151 that have entered network setup mode. Then, in step S604, a P2P connection is established with the detected communication device 151, and communication via SNMP is started.

[0057] Next, in step S605, the information processing device 101 requests WEC-related information and obtains it from the communication device 151. Furthermore, in step S606, the information processing device 101 requests the AP search results from the communication device 151, and the communication device 151 responds with the AP search results obtained in step S601. After obtaining all the necessary information, the information processing device 101 disconnects the P2P connection with the communication device 151 in step S607.

[0058] Based on the WEC-related information transmitted in step S605, the communication device 151 switches to DPP waiting mode in step S608, making it ready for DPP network configuration. In step S606, the information processing device 101 merges the AP search result obtained from the communication device 151 (Figure 3(b)) with the AP search result it obtained in step S603 to determine the priority of the destination access point (not shown). The merging process is the same as the process described in step S406. By determining the destination access point based on the priority obtained from the communication device 151, it becomes possible to provide information on access points with good communication environments or conditions with the communication device 151. The communication environment may be, for example, the signal strength from the access point.

[0059] Next, in step S609, based on the merge results, the information processing device 101 establishes an infrastructure connection with the access point AP304, which has the highest priority, and confirms that it can connect to AP304. The establishment of the infrastructure connection is achieved using functions provided by the OS. The information processing device 101 presents the user with the access point for which connection settings are to be established using the screen described in Figure 5 on the display unit 108, and establishes an infrastructure connection based on the selected access point information. After the information processing device 101 confirms that it can establish an infrastructure connection with the desired access point, in step S610, the information processing device 101 disconnects the infrastructure connection with AP304 in order to realize DPP communication in the next step. If the communication unit 110 has a function that allows the infrastructure connection in step S609 and the DPP connection described in the next step S611 to be realized simultaneously, the disconnection process in step S610 is not necessarily required. After this, in S611-S614, the information processing device 101 executes a DPP sequence with the communication device 151.

[0060] In step S611, the information processing device 101 establishes a DPP connection with the communication device 151, which is in DPP waiting mode, based on the WEC-related information acquired in step S605. In this DPP connection, the information processing device 101 acts as the Configurator device and the communication device 151 acts as the Enrollee device. In step S612, DPP Authentication is performed to create a shared key using the public key included in the WEC-related information and its own private key, in accordance with the DPP architecture. Next, in step S613, the information processing device 101, acting as the Configurator device, performs DPP Configuration processing to send encrypted information using the shared key to the Enrollee device. The information sent here is connection information to the access point, including the SSID and password necessary for connecting to AP304, which is stored in the information processing device 101. Through the above procedure, the connection settings for the communication device 151 to connect to the access point are completed.

[0061] After completing the series of DPP sequences starting from step S611, the information processing device 101 disconnects the DPP connection in step S614. The communication device 151 establishes an infrastructure connection based on the connection information to AP304 received in step S615. The information processing device 101 also re-establishes an infrastructure connection with AP304 in step S616. With both the information processing device 101 and the communication device 151 connected to AP304, they can communicate with each other via the access point. The configuration application of the information processing device 101 confirms that the series of network settings have been completed by verifying communication with the communication device 151 (not shown). After confirmation, the information processing device 101 may disconnect from AP304. After this, the communication device 151 can communicate with devices connected to the communication network via AP304. For example, if the communication device 151 is a printer, devices on the network can recognize and use that printer.

[0062] If the infrastructure connection is not disconnected in S610, the infrastructure connection is maintained, and it is not necessary to re-establish the infrastructure connection in S616. Also, since the information processing device 101 searches for a communicationable access point in S601, it is not necessarily required to check the infrastructure connection in S609 and S610. Furthermore, the information processing device 101 does not have to acquire WEC-related information using the method described above. For example, the information processing device 101 may not execute S401 to S404, but instead acquire WEC-related information by reading a barcode or QR code (registered trademark) displayed by the communication device 151, or by performing NFC communication or Bluetooth communication with the communication device 151. This is also the case in the second embodiment. The form of acquiring WEC-related information by performing Bluetooth communication is described in the second embodiment. Furthermore, either checking the infrastructure connection in step S408 or merging the AP search results in step S406 may be performed by only one of these. This is also the case in the second embodiment.

[0063] As explained above, the configuration application of the information processing device 101 can implement network settings suitable for the communication device 151 by executing network settings for the communication device 151 based on the AP search results of the communication device 151. More specifically, the information processing device 101 can obtain a list of access points with good communication environments from the communication device 151. The information processing device 101 can then present the user with a list of potential access points to connect to and allow the user to select one. As a result, the information processing device 101 can transmit connection information for the selected access point to the communication device 151 according to DPP, and the communication device 151 can connect to the access point in infrastructure mode. The list of access points that the communication device 151 transmits to the information processing device 101 also indicates the order of the quality of the communication environment with the communication device 151. This allows the user to be presented with access points in order of quality, based on their communication environment with the communication device 151.

[0064] In the example above, the vulnerability of the access point is determined by the communication terminal, but the information processing device that receives the AP search results may also make the determination. For example, the communication terminal may send the results of an AP search, which associates the authentication method and encryption method with the access point, to the information processing terminal, and the information processing terminal may determine vulnerable access points in the manner described above. In that case, access points determined to be vulnerable will be excluded from the list of potential access points for the communication terminal to connect to.

[0065] (Second Embodiment) In the first embodiment, an example was described in which the information processing device 101 and the communication units 110 and 156 of the communication device 151 were used as means for P2P communication to pass WEC-related information. In this embodiment, however, a configuration using the short-range wireless communication units 111 and 157 will be described. In this embodiment, an example using Bluetooth Low Energy (BLE) as the communication means for the short-range wireless communication units 111 and 157 will be described, but the effects of this embodiment can be obtained even if other short-range wireless communication means are used. In the BLE standard formulated by the Bluetooth SIG, communication is performed using the Generic Attribute Profile (GATT). The GATT client receives advertisement information output by the GATT server via beacon, confirms the existence and status of the GATT server, and communicates by establishing a GATT connection. Once a GATT connection is established, the GATT client makes read and write requests to the GATT database provided by the GATT server, and exchanges information based on the GATT server's response. Each characteristic, which is the individual piece of information in the GATT database, is identifiable by its Universally Unique Identifier (UUID). For each characteristic, read and write attributes, as well as security attributes indicating whether or not the data is encrypted, can be set. In this embodiment, the communication device 151 acts as a GATT server and the information processing device 101 acts as a GATT client, thereby realizing P2P communication.

[0066] Figure 7 shows an example of characteristic information provided by the communication device 151 as a GATT database. WEC-related information 701 has a read attribute and is encrypted, and includes the aforementioned WEC-related information such as DPP connection information and public key. Station (STA) status 702 has a read attribute and is not encrypted, indicating the status of the communication unit 156, making it possible to determine whether the STA has transitioned to the DPP waiting state. DPP transition request 703 has a write attribute, and by writing a specific value to this characteristic, it is possible to request the communication device 151 to transition to the DPP state. Connection status 704 has a read attribute, making it possible to read the connection status between the communication unit 156 of the communication device 151 and the access point. AP search results 705 has a read attribute, making it possible to read the results of the AP search performed by the communication device 151, with priority assigned to each access point.

[0067] ●Sequence of network setup processing in a communication system (Second Embodiment) Figure 8 is a sequence diagram showing the processing flow in the information processing device 101, the communication device 151, and the access points AP304 and AP302. The communication device 151 communicates using the short-range wireless communication unit 157 and the communication unit 156, and although not shown, the information processing device 101 communicates using the short-range wireless communication unit 111 and the communication unit 110. The information processing device 101 is described assuming that it is already connected to AP302 via the infrastructure (step S801).

[0068] In the communication device 151, although not shown in the diagram, a network setup mode is activated, and the communication unit 156 performs an AP search. Assuming that the information shown in Figure 3(b) is obtained as an AP search result, this information is stored in the AP search result 705 of the GATT database. The short-range wireless communication unit 157 of the communication device 151 includes information indicating that network setup is possible in the advertisement information and outputs a beacon at a specific interval. If network setup is not possible, the availability status can be communicated to surrounding communication devices by changing the information included in the advertisement information. In addition to the above, another way to communicate the availability status of the communication device 151 is to use a Connectable mode that indicates the availability of GATT communication, and to use a Non Connectable mode when setup is not possible.

[0069] When the configuration application for the information processing device 101 is launched, in step S802, the short-range wireless communication unit 111 is used to acquire advertisement information transmitted by the communication device 151, establish a BLE connection, and enable GATT communication. This BLE connection uses the short-range wireless communication units 111 and 157, which are separate from the communication units 110 and 156 that perform network setup, and therefore communication is possible independently of the setup process. Next, in step S803, a read request is made to WEC-related information 701 via GATT communication, and the information is acquired by receiving a response. Furthermore, in step S804, the AP search result 705 is read via GATT communication.

[0070] The configuration application of the information processing device 101 extracts configurable access points by merging the AP search result 705 (Figure 3(b)) received from the communication device 151 with the AP search result it has performed. The extracted access points are then arranged for the communication device 151 in order of favorable communication conditions (i.e., communication environment). Here, merging is the process described in step S406. In this embodiment, an example is shown where the optimal access point is AP304, which is different from AP302 to which the information processing device 101 is already connected. In this case, in step S805, the infrastructure connection with AP302, which is currently connected, is disconnected. Next, in step S806, the information processing device 101 establishes an infrastructure connection with AP304 to confirm that it can connect to AP304, which is the optimal access point, and verifies that the connection information to the access point it holds is functioning correctly. After confirming that the connection information to the access point is correct, the infrastructure connection with AP304 is temporarily disconnected.

[0071] Next, in step S807, the information processing device 101 writes a specific value "Start" to the DPP transition request 703 in the GATT database of the communication device 151 via GATT communication. This causes the communication device 151 to transition to DPP waiting mode. Upon receiving the transition request, the communication device 151 requests the communication unit 156 to transition to DPP waiting mode in step S808. Once the communication unit 156 of the communication device 151 has completed the transition to DPP waiting mode, in step S809 it informs the short-range wireless communication unit 157 that the transition to DPP waiting mode is complete. This changes the value of the STA state 702 in the GATT database to reflect that the device has transitioned to the DPP waiting state.

[0072] In step S810, the information processing device 101 reads the value of the STA state 702 via GATT communication and determines whether the communication device 151 has entered the DPP waiting state. This reading process is performed multiple times after the transition request in step S807 until the completion of the transition to DPP waiting mode is confirmed, and to synchronize for the next DPP connection. The information processing device 101 confirms that the communication device 151 has entered DPP waiting mode and establishes a DPP connection in step S811 based on the received WEC-related information 701. Next, in step S812, the DPP Authentication process is performed to authenticate the device and encrypt the communication data. Next, in step S813, the DPP Configuration process is performed and connection information for connecting to the access point AP304 to be connected is sent to the communication device 151. After completing the series of DPP sequences starting from step S811, the information processing device 151 disconnects the DPP connection (not shown).

[0073] In step S813, the communication device 151 receives connection information and establishes an infrastructure connection with AP304 in step S815. This connection process is based on the received connection information and conforms to the IEEE 802.11 standard, so no further explanation is needed. Once the infrastructure connection is complete, the communication unit 156 of the communication device 151 notifies the short-range wireless communication unit 157 in step S816 that the infrastructure connection is complete and, upon receiving the notification, changes the value of connection status 704 in the GATT database to connected status.

[0074] The information processing device 101 reads the value of connection status 704 via GATT communication and confirms that the communication device 151 has completed infrastructure connection with AP304. This reading process is performed after the completion of a series of DPP sequences and is performed periodically multiple times until it is confirmed that the infrastructure connection of the communication device 151 has been completed. The configuration application of the information processing device 101 confirms that the infrastructure connection of the communication device 151 has been completed and disconnects the BLE connection in step S819. Furthermore, in step S820, it establishes an infrastructure connection with AP304 again, making it possible to communicate with the communication device 151 through the access point AP304.

[0075] As explained above, by performing bootstrapping and state management between the information processing device 101 and the communication device 151 using short-range wireless communication different from WLAN communication, a convenient network configuration process that takes security into consideration can be realized.

[0076] Furthermore, it also achieves the same effects as the first embodiment. That is, the information processing device 101 can obtain a list of access points with good communication environments from the communication device 151. The information processing device 101 can present the user with candidate access points from the list and allow them to select one. As a result, the information processing device 101 can transmit connection information for the selected access point to the communication device 151 according to DPP, and the communication device 151 can connect with the access point in infrastructure mode. The list of access points that the communication device 151 transmits to the information processing device 101 also indicates the order of the quality of the communication environment with the communication device 151. As a result, access points with good communication environments with the communication device 151 can be presented to the user in order of quality.

[0077] [Other examples] In the above embodiment, the first search result obtained by the communication device through AP discovery and the second search result obtained by the information processing device through AP discovery are merged, that is, narrowed down to a common AP. However, the AP candidate for connection may be determined based only on the first search result obtained by the communication device through AP discovery. Also, although the information processing device is pre-connected to the AP with the highest priority among the AP candidate for connection, this step may be omitted. Furthermore, although the information processing device connects to the AP after the communication device has established a connection with it, the AP to which the information processing device connects may be any other AP as long as it can communicate with the AP to which the communication device has connected. In addition, in the above embodiment, WEC and DPP are used as protocols for connecting the communication device to the AP, but other protocols may be used as long as the communication device can be connected to an AP selected from among the APs discovered by the communication device.

[0078] The present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions.

[0079] The invention is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, claims are attached to disclose the scope of the invention. [Explanation of Symbols]

[0080] 101 Information processing equipment, 131 Access points, 151 Communication equipment

Claims

1. A computer of an information processing device capable of communicating with the communication device and the access point, a first acquisition step of acquiring a first search result which is a result of a search for an access point executed by the communication device or the information processing device; a first attempt step of attempting to establish a connection between a first access point among a plurality of access points included in a first search result and the information processing device; a second attempt step of attempting to establish a connection between the information processing device and a second access point among the plurality of access points to which the information processing device has not yet attempted to establish a connection, if the establishment of the connection with the first access point fails; a second acquisition step of acquiring, from the communication device, predetermined information for executing communication in accordance with a Device Provisioning Protocol (DPP); a processing step of executing a process for transmitting connection information for a connection with an access point corresponding to the successfully established connection to the communication device by communication based on the predetermined information in accordance with DPP; A program characterized by executing the above.

2. The program according to claim 1, and displaying the first search result by a user interface means. The program, wherein the first access point is an access point selected by a user from the first search result displayed on a user interface.

3. 3. The program according to claim 1 or 2, determining a priority order corresponding to each of the plurality of access points; The program further comprising:

4. The program according to claim 3, Based on the fact that a priority corresponding to the first access point is higher than a priority corresponding to the second access point, establishment of a connection between the first access point and the information processing device is attempted prior to establishment of a connection between the second access point and the information processing device. A program characterized by:

5. The program according to claim 3 or 4, A program, comprising: a program for determining a priority level corresponding to each of the plurality of access points based on a signal strength of a signal received from each of the plurality of access points.

6. The program according to any one of claims 1 to 5, a third acquisition step of acquiring a second search result, the second search result being a result of a search for an access point executed by a device other than the device that executed the search for the first search result, among the information processing device and the communication device; a merging step of merging the first search result and the second search result; and selecting the first access point based on the merged first search result and the second search result. A program characterized by:

7. The program according to claim 6, A program, comprising: an attempt to establish a connection between the selected first access point and the information processing device before the connection information is transmitted to the communication device.

8. The program according to any one of claims 1 to 7, the first search result is a result of a search for an access point performed by the communication device; The first search result is received via direct communication between the communication device and the information processing device.

9. The program according to any one of claims 1 to 8, A program characterized by controlling so that the first search result does not include an access point using a predetermined encryption method.

10. The program according to claim 9, The program, wherein the predetermined encryption method is WEP.

11. The program according to any one of claims 1 to 10, A program characterized by controlling so that the first search result does not include an access point corresponding to a predetermined frequency band.

12. The program according to claim 11, The program, wherein the predetermined frequency band is a 2.4 GHz band.

13. 13. The program according to claim 1, A program, characterized in that control for preventing a specific access point from being included in the first search result is executed in accordance with a security policy set by a user who uses the communication device or the information processing device.

14. 14. The program according to claim 1, The program, wherein the predetermined information is Bootstrapping information.

15. 15. The program according to claim 1, The program characterized in that the specified information is obtained from the communication device via communication between the communication device and the information processing device via Bluetooth (registered trademark), or via communication between the communication device and the information processing device via Wi-Fi (registered trademark).

16. 15. The program according to claim 1, The program, characterized in that the specified information is obtained from the communication device by reading a QR code or a barcode displayed by the communication device.

17. The program according to any one of claims 1 to 10, The communication device is a printer.

18. A method for controlling an information processing device capable of communicating with both a communication device and an access point, comprising the steps of: a first acquisition step of acquiring a first search result which is a result of a search for an access point executed by the communication device or the information processing device; a first attempt step of attempting to establish a connection between a first access point among a plurality of access points included in a first search result and the information processing device; a second attempt step of attempting to establish a connection between the information processing device and a second access point among the plurality of access points to which the information processing device has not yet attempted to establish a connection, if the establishment of the connection with the first access point fails; a second acquisition step of acquiring, from the communication device, predetermined information for executing communication in accordance with a Device Provisioning Protocol (DPP); a processing step of executing a process for transmitting connection information for a connection with an access point corresponding to the successfully established connection to the communication device by communication based on the predetermined information in accordance with DPP; A control method comprising the steps of:

19. An information processing device capable of communicating with a communication device and an access point, a first acquisition means for acquiring a first search result which is a result of a search for an access point executed by the communication device or the information processing device; a first attempt means for attempting to establish a connection between a first access point among a plurality of access points included in a first search result and the information processing device; a second attempt means for attempting to establish a connection between the information processing device and a second access point among the plurality of access points, with which the information processing device has not yet attempted to establish a connection, when the establishment of a connection with the first access point has failed; A second acquisition means for acquiring, from the communication device, predetermined information for executing communication in accordance with a Device Provisioning Protocol (DPP); A processing means for executing a process for transmitting connection information for a connection with an access point corresponding to the successfully established connection to the communication device by communication based on the predetermined information in accordance with DPP; 13. An information processing device comprising: