Information processing device, control method thereof, and storage medium
By using the first and second wireless communication units in the information processing device to connect to the communication device and the access point respectively, the problem of infrastructure connection complexity in the prior art is solved, and a simpler and more efficient connection process is achieved.
Patent Information
- Application Number
- CN202011138522.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2016-03-31
- Filing Date
- 2017-01-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2037-01-24
AI Technical Summary
In the prior art, the establishment of infrastructure connections in a wireless communication environment is relatively complex, making it difficult to achieve a simpler and more efficient connection between the information processing device and the communication device.
A method for controlling an information processing device is adopted to connect the communication device and the access point respectively through the first and second wireless communication units, and use signal interaction to establish infrastructure connections, simplifying user operations and improving connection convenience.
This realizes a simpler and more efficient establishment of infrastructure connection between the information processing device and the communication device in the wireless communication environment, and reduces the complexity of user operations and the connection time.
Smart Images

Figure CN112256212B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the application date of January 24, 2017, application number 201710061485.9, and invention name “Information processing device, control method thereof, and control method of communication system”. Technical Field
[0002] The present disclosure relates to an information processing device, a control method of the information processing device, and a control method of a communication system. Background Art
[0003] As a method for connecting an information processing device such as a smartphone to a communication device such as a printer available in a network through a communication method such as wireless local area network (LAN) communication, there is a method of connecting the information processing device and the communication device via an access point (such as a wireless LAN router) outside the communication device. This connection method is called an infrastructure connection. Establishment of the infrastructure connection enables the information processing device and the communication device to communicate with each other bidirectionally, for example, and to connect to the Internet to use services provided on the Internet.
[0004] Japanese Patent Laid-Open No. 2007-048211 discusses an apparatus that acquires a list of access points connectable from a communication apparatus, allows a user to select an access point from the list, and connects to the communication apparatus by using the selected access point as an infrastructure connection.
[0005] The method discussed in Japanese Patent Laid-Open No. 2007-048211 enables the establishment of an infrastructure connection. However, due to the trend that the configuration of communication between devices has become increasingly common in recent years, it has been required to make the establishment of an infrastructure connection further easier and simpler than before. The present invention is directed to an information processing device, a control method for the information processing device, and a control method for a communication system that enable the establishment of an infrastructure connection further easier and simpler. Summary of the invention
[0006] According to an aspect of the embodiment, a control method of an information processing device, the information processing device including a first communication unit and a second communication unit, the first communication unit being configured to connect to a communication device and communicate with the communication device through a first wireless communication method, and the second communication unit being configured to connect to an access point and communicate with the access point through a second wireless communication method different from the first wireless communication method, the control method including: receiving a signal including connection information for communicating with the communication device through the first wireless communication method from the communication device; sending a request for starting communication through the first wireless communication method to the communication device based on the signal, and establishing a connection between the first communication unit and the communication device through the first wireless communication method; and sending, by the first communication unit, information about an access point to which the second communication unit is connected to the communication device to which the first communication unit is connected, wherein, in the case of receiving the information about the access point to which the second communication unit is connected, the communication device connects to the access point to which the second communication unit is connected through the second wireless communication method and communicates with the access point, and wherein, in the case of the communication device connecting to the access point to which the second communication unit is connected through the second wireless communication method, the information processing device becomes able to perform communication with the communication device using the second communication unit via the access point to which the second communication unit is connected.
[0007] Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 is a block diagram illustrating an example of a configuration of an information processing device and a communication device according to an exemplary embodiment.
[0009] Figure 2 is a flowchart illustrating processing performed by the information processing apparatus according to the first exemplary embodiment.
[0010] Figure 3 is a flowchart illustrating processing performed by the communication device according to the first exemplary embodiment.
[0011] Figure 4 An example of a screen when an application for printing is started is illustrated.
[0012] Figure 5 An example of a password input screen is illustrated.
[0013] Figure 6 is a flowchart illustrating processing performed by the information processing apparatus according to the second exemplary embodiment.
[0014] Figure 7 (include Fig. 7A and Figure 7B) is a flowchart illustrating processing performed by the information processing apparatus according to the third exemplary embodiment.
[0015] Figure 8 A process for broadcasting advertisement information and receiving connection request information is illustrated.
[0016] Fig. 9 Bluetooth Low Energy Advertisements.
[0017] Fig.10 The structure of advertisement information is illustrated.
[0018] Fig.11 (include Fig.11A and Fig. 11B ) is a flowchart illustrating processing performed by the information processing apparatus according to the fourth exemplary embodiment.
[0019] Fig.12 is a flowchart illustrating processing performed by the communication device according to the fourth exemplary embodiment.
[0020] Fig.13 (include Fig.13A and Fig. 13B ) is a flowchart illustrating processing performed by the information processing apparatus according to the fifth exemplary embodiment.
[0021] Fig.14 is a flowchart illustrating processing performed by the information processing apparatus according to the fifth exemplary embodiment.
[0022] Fig.15 (include Fig.15A and Fig. 15B ) is a flowchart illustrating processing performed by a communication device according to the fifth exemplary embodiment.
[0023] Fig.16A and Fig. 16B An example of a screen regarding a personal identification number (PIN) code is illustrated.
[0024] Fig.17 (include Fig.17A , Fig. 17B and Fig. 17C ) is a flowchart illustrating processing performed by the information processing apparatus according to the sixth exemplary embodiment.
[0025] Fig.18 (include Fig.18A , Fig.18B and Fig.18C ) is a flowchart illustrating processing performed by a communication device according to the sixth exemplary embodiment.
[0026] Fig.19 (include Fig.19A , Fig.19B and Fig.19C ) is a flowchart illustrating processing performed by the information processing apparatus according to the seventh exemplary embodiment. DETAILED DESCRIPTION
[0027] In the following description, exemplary embodiments will be described by way of example with reference to the accompanying drawings, however, additional embodiments created by arbitrarily modifying or improving the exemplary embodiments to be described below based on the common knowledge of those skilled in the art without departing from the spirit of the present disclosure are applicable.
[0028] An information processing device and a communication device included in a communication system according to a first exemplary embodiment will be described. In this exemplary embodiment, a smartphone will be described as an information processing device by way of example, but the information processing device is not limited thereto. Various types of devices such as a mobile terminal, a notebook personal computer (PC), a tablet terminal, a personal digital assistant (PDA), and a digital camera can be used as the information processing device. In addition, in this exemplary embodiment, a printer will be described as a communication device by way of example, but the communication device is not limited thereto. Various types of devices capable of wirelessly communicating with the information processing device can be used as the communication device. For example, any printer such as an inkjet printer, a full-color laser beam printer, a monochrome printer, etc. can be used as the communication device. In addition, devices that can be used as communication devices include not only printers, but also copiers, fax devices, mobile terminals, smartphones, notebook PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, etc. In addition, a multi-function peripheral having multiple functions (such as a copy function, a fax (FAX) function, and a print function) can also be used as a communication device.
[0029] First, refer to Figure 1 The configuration of the information processing device according to the present exemplary embodiment and the communication device capable of communicating with the information processing device according to the present exemplary embodiment will be described with reference to the block diagram shown in . In addition, in the present exemplary embodiment, the information processing device and the communication device will be described by citing the following configuration as an example thereof, but the present exemplary embodiment is applicable to a device capable of communicating with the communication device, and its function is not particularly limited to the following configurations: Figure 1 as shown in .
[0030] The information processing device 101 is an information processing device according to the present exemplary embodiment. The information processing device 101 includes an input interface 102, a central processing unit (CPU) 103, a read-only memory (ROM) 104, a random access memory (RAM) 105, an external storage device 106, an output interface 107, a display unit 108, a communication unit 111, and a short-range wireless communication unit 112.
[0031] The input interface 102 is an interface for receiving data input and operation instructions from the user based on operations performed on the mouse 110 and the keyboard 109 .
[0032] The CPU 103 is a system control unit, and controls the entire information processing apparatus 101 .
[0033] ROM 104 stores fixed data such as control programs, data tables, and embedded operating system (hereinafter referred to as OS) programs to be executed by CPU 103. In the present exemplary embodiment, each control program stored in ROM 104 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in ROM 104.
[0034] The RAM 105 is implemented by using a static random access memory (SRAM) or the like, which requires a backup power supply. The RAM 105 retains data by using a primary battery for data backup, which is not illustrated, and is therefore capable of storing important data such as program control variables without volatilizing it. In addition, a memory area for storing setting information of the information processing device 101 and management data of the information processing device 101 is also provided in the RAM 105. In addition, the RAM 105 is also used as a main memory and a working memory of the CPU 103.
[0035] The external storage device 106 stores an application that provides a print execution function, a print information generation program that generates print information interpretable by the communication device 151, and the like. In addition, the external storage device 106 stores various types of programs (such as an information transmission / reception control program for transmission and reception between the information processing device 101 and the communication device 151 to which the information processing device 101 is connected via the communication unit 111), and various types of information to be used by these programs.
[0036] The output interface 107 is an interface for controlling the display unit 108 to display data and notifying the user of the status of the information processing apparatus 101 .
[0037] The display unit 108 is implemented by using a light emitting diode (LED), a liquid crystal display (LCD), etc., and displays data and notifies the user of the state of the information processing apparatus 101. The information processing apparatus 101 can receive an input from the user via the display unit 108 by including an operation unit such as a key for inputting a numerical value, a mode setting key, an enter key, a cancel key, and a power key provided on the display unit 108.
[0038] The communication unit 111 is a unit that enables the information processing device 101 to be connected to devices such as the communication device 151 and the access point 131, and to perform data communication. For example, the communication unit 111 is capable of connecting to an access point (not illustrated) in the communication device 151. When the communication unit 111 and the access point in the communication device 151 are connected to each other, the connection enables the information processing device 101 and the communication device 151 to communicate with each other. The communication unit 111 may communicate directly with the communication device 151 through wireless communication, or may communicate with the communication device 151 via an external device existing outside the information processing device 101 and the communication device 151. Devices that can serve as external devices include external access points (e.g., the access point 131) existing outside the information processing device 101 and the communication device 151, and devices other than access points that can relay communication. For this purpose, examples of wireless communication methods include wireless fidelity. and Bluetooth In addition, examples of the access point 131 include devices such as a wireless local area network (LAN) router, etc. In the present exemplary embodiment, a method in which the information processing device 101 and the communication device 151 are directly connected to each other without the intervention of an external access point will be referred to as a direct connection method. In addition, a method in which the information processing device 101 and the communication device 151 are connected to each other via an external access point will be referred to as an infrastructure connection method.
[0039] The short-range wireless communication unit 112 is a unit that enables the information processing device 101 to be wirelessly connected to a device such as the communication device 151 at a short distance and to perform data communication, and the short-range wireless communication unit 112 uses a communication method different from that of the communication unit 111 to perform communication. The short-range wireless communication unit 112 can be connected to, for example, the short-range wireless communication unit 157 in the communication device 151. For this purpose, examples of the communication method include low-energy Bluetooth and Perception.
[0040] In the present exemplary embodiment, it is assumed that the communication unit 111 is configured to enable faster communication than the short-range wireless communication unit 112. In addition, it is assumed that the short-range wireless communication unit 112 is configured to exchange communication information for performing communication through the communication unit 111 with a device such as the communication device 151.
[0041] The communication device 151 is a communication device according to the present exemplary embodiment. The communication device 151 includes a ROM 152 , a RAM 153 , a CPU 154 , a print engine 155 , a communication unit 156 , and a short-range wireless communication unit 157 .
[0042] The communication unit 156 includes an access point for connecting to a device such as the information processing device 101 as an access point inside the communication device 151. The access point can be connected to the communication unit 111 of the information processing device 101. The communication unit 156 can communicate directly with the information processing device 101 through wireless communication, or can communicate with the information processing device 101 via the access point 131. To this end, examples of the communication method include Furthermore, the communication unit 156 may include hardware that functions as an access point, or may operate as an access point by using software for causing the communication unit 156 to function as an access point.
[0043] The short-range wireless communication unit 157 is a unit that enables the communication device 151 to be wirelessly connected to a device such as the information processing device 101 at a short distance, and can be connected to, for example, the short-range wireless communication unit 112 in the information processing device 101. For this purpose, examples of communication methods include low-energy Bluetooth and Perception.
[0044] In the present exemplary embodiment, it is assumed that the communication unit 156 is configured to enable faster communication than the short-range wireless communication unit 157. In addition, it is assumed that the short-range wireless communication unit 157 is configured to exchange communication information for performing communication through the communication unit 156 with a device such as the information processing device 101.
[0045] The RAM 153 is implemented by using an SRAM or the like, which requires a backup power supply. The RAM 153 holds data by using a primary battery for data backup, which is not illustrated, and is therefore capable of storing important data such as program control variables without volatilizing it. In addition, a memory area for storing setting information of the communication device 151 and management data of the communication device 151 is also provided in the RAM 153. In addition, the RAM 153 is also used as a main memory and a working memory of the CPU 154, and stores a reception buffer for temporarily storing print information received from the information processing device 101 or the like and various types of information.
[0046] ROM 152 stores fixed data such as control programs, data tables, and OS programs to be executed by CPU 154. In the present exemplary embodiment, each control program stored in ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in ROM 152.
[0047] The CPU 154 is a system control unit, and controls the entire communication device 151 .
[0048] The communication device 151 applies a recording material such as ink to a recording medium such as paper based on information stored in the print engine 155 and the RAM 153 and a print job received from the information processing device 101, etc., thereby forming an image on the recording medium and outputting a print result. At this time, the print job sent from the information processing device 101, etc. has a large amount of transmission data, and thus high-speed communication is required, so the communication device 151 receives the print job via the communication unit 156 capable of faster communication than the short-range wireless communication unit 157.
[0049] A memory such as an external hard disk drive (HDD) and a secure digital (SD) card may be mounted on the communication device 151 as an optional device, and information stored in the communication device 151 may be stored in the memory.
[0050] Furthermore, the connection mode of the communication device 151 according to the present exemplary embodiment is set by the connection setting processing to be described below, and the communication device 151 communicates with the information processing device 101 while being connected to the information processing device 101 in a manner based on the set connection mode. For the communication device 151 according to the present exemplary embodiment, the infrastructure connection mode is set as the connection mode when communication is performed through the infrastructure connection, and the direct connection mode is set as the connection mode when communication is performed through the direct connection.
[0051] In the present example, how to divide the processing between the information processing device 101 and the communication device 151 has been indicated as described above by way of example, but it is not particularly limited to this division configuration, and the processing may be divided in a different manner.
[0052] The present exemplary embodiment includes a process in which, when the information processing device 101 and the communication device 151 are connected to each other as an infrastructure connection, the information processing device 101 registers an access point to be used for the infrastructure connection in the communication device 151 (connection setting process). The process will be described below. In the present exemplary embodiment, the connection setting process will be described assuming that the information processing device 101 is connected to the access point 131 and the access point 131 is registered in the communication device 151 as an access point to be used for the infrastructure connection. In addition, in the present exemplary embodiment, the connection setting process will be described assuming that the short-range wireless communication unit 112 and the short-range wireless communication unit 157 communicate with each other via low-energy Bluetooth. In the present exemplary embodiment, the short-range wireless communication unit 157 serves as an advertiser (or slave) that broadcasts advertisement information to be described below, and the short-range wireless communication unit 112 serves as a scanner (or host) that receives advertisement information. In addition, the connection setting process will be described assuming that the communication unit 111 and the communication unit 156 communicate with each other via a wireless LAN. Furthermore, the connection setting process will be described assuming that the connection setting process is started with the information processing device 101 connected to the access point 131 in advance and the communication device 151 not connected to the access point 131.
[0053] Now, refer to Figure 8 The process for transmitting advertisement information and receiving a low energy Bluetooth connection request defined in the low energy Bluetooth standard will be described. In the present exemplary embodiment, since the short distance wireless communication unit 157 operates as a slave device as described above, it is assumed that the short distance wireless communication unit 157 performs the above process.
[0054] The short-range wireless communication unit 157 performs communication while dividing the 2.4 GHz frequency band into 40 channels (0 to 39 channels (ch)) in the low-energy Bluetooth communication method. Among these channels, the short-range wireless communication unit 157 uses channels 37 to 39 for sending advertising information and receiving low-energy Bluetooth connection requests, and uses channels 0 to 36 for data communication after the low-energy Bluetooth connection (Generic Attribute Profile (GATT) communication, etc.). Figure 88, the vertical axis represents the power consumption of the short-range wireless communication unit 157, and the horizontal axis represents time, wherein the power consumption when the advertisement information is transmitted by using one channel is indicated for each process. The power Tx 805 represents the total power consumption in the transmission process as a process for broadcasting the advertisement information, and the power Rx 806 represents the total power consumption in the reception process as a process for keeping the receiver receiving the low-energy Bluetooth connection request valid. The transmission power 802 represents the instantaneous power consumption consumed by the transmission process. In addition, the reception power 803 represents the instantaneous power consumption consumed by the reception process. In addition, the microcomputer operation power 801 represents the instantaneous power consumption when the microcomputer in the short-range wireless communication unit 157 is in operation. Since the microcomputer should be started in advance to perform and stop the transmission process and the reception process, the microcomputer is in operation before and after Tx 805 and Rx 806 and even between Tx 805 and Rx 806. In addition, in the case of transmitting the advertisement information by using a plurality of channels, this leads to an increase in power consumption as much as the number of channels used to transmit the advertisement information. In addition, while the microcomputer is not operating and the short-distance wireless communication unit 157 is in the power saving state, the sleep power 804 corresponds to the instantaneous power consumption of the short-distance wireless communication unit 157. In this way, after performing a transmission process by using a predetermined channel, the short-distance wireless communication unit 157 performs a reception process within a predetermined period of time by using the same channel, waiting for a low-energy Bluetooth connection request to be sent from the information processing device 101. Upon receiving the low-energy Bluetooth connection request from the information processing device 101, the short-distance wireless communication unit 157 establishes a low-energy Bluetooth connection, and performs GATT communication with the information processing device 101.
[0055] In addition, if Fig. 9 As shown in , after the short-range wireless communication unit 157 repeats the transmission process and the reception process of the advertisement information for each channel 3 times, the operation of the microcomputer is stopped and maintained in the power saving state for a predetermined period of time. In the following description, the combination of the transmission process and the reception process of the advertisement information by using the predetermined channel will be referred to as an advertisement. In addition, the time interval for sending the advertisement information by using the predetermined channel will be referred to as an advertisement time interval. From the execution of the first advertisement to the transition to the power saving state, the number of times of repeating the advertisement can be changed arbitrarily as long as the number is 3 or less.
[0056] Fig.10 One example of a structure for broadcasting advertisement information of the short-range wireless communication unit 157 to the vicinity of the communication device 151 is illustrated.
[0057] At the start of power supply, the short-range wireless communication unit 157 performs initialization processing and enters an advertising state. When entering the advertising state, the short-range wireless communication unit 157 regularly broadcasts advertising information to the vicinity based on the advertising time interval. The advertising information is a signal containing basic header information (i.e., identification information for identifying the device that sends the advertising information), and includes a header 1001 and a payload 1002. The information processing device 101 can recognize the existence of the communication device 151 by receiving the advertising information. In addition, the information processing device 101 can connect to the communication device 151 as a low-energy Bluetooth connection by sending a low-energy Bluetooth connection request to the communication device 151. The header 1001 is an area for storing the type of advertising information, information indicating the size of the payload 1002, and the like. The payload 1002 stores a device name 1003 as identification information, information about an installed profile, connection information 1004 for connecting to the communication device 151 as a low-energy Bluetooth connection, and a transmission power (Tx power) 1005 when sending the advertising information. The identification information 1006 of the communication device 151 may be included in the advertising information. Examples of information used as identification information 1006 of the communication device 151 include a media access control (MAC) address of the communication device 151 , information indicating a service of the communication device 151 , and a service set identifier (SSID) and a password for an access point in the communication device 151 .
[0058] In addition, in the present exemplary embodiment, pairing processing is performed. Pairing processing is performed for performing authentication between the information processing device 101 and the communication device 151, and for reading and writing data between these devices through GATT communication. GATT is a profile responsible for reading and writing (receiving and sending) information in the low-energy Bluetooth standard. Then, GATT communication is a communication in which the information processing device 101 and the communication device 151 play the roles of a GATT client and a GATT server, respectively, and the information processing device 101 reads information from the communication device 151 and writes information to the communication device 151 according to a profile based on GATT. It is assumed that the communication device 151 is configured to prohibit the information processing device 101 from reading and writing information through GATT communication in a state in which the information processing device 101 and the communication device 151 are not paired with each other. This configuration can prevent or make it less likely that communication between the information processing device 101 and the communication device 151 that are not paired with each other is improperly established, and, for example, the information held in the communication device 151 is accidentally acquired by the information processing device 101 that is not paired with the communication device 151.
[0059] The details of the pairing process will be described. First, when the printing application to be described below is started and the initial screen (home screen) to be displayed by the printing application is displayed on the display unit 108, the information processing device 101 starts searching for advertising information with specific device information. The specific device information is, for example, a universal unique identifier (UUID) or a MAC address of a device corresponding to the printing application (e.g., a printer). Then, upon receiving the advertising information with the specific device information, the information processing device 101 sends a low-energy Bluetooth connection request (CONNECT_REQ) to the device (in this example, the communication device 151) that has sent the advertising information, and establishes a low-energy Bluetooth connection between these devices. Then, if the pairing with the communication device 151 is not completed, the information processing device 101 displays a screen on the display unit 108 for prompting the user to perform the pairing. Then, if the user is instructed to perform the pairing, the information processing device 101 sends a pairing request to the communication device 151 by communication according to the security manager protocol. It is assumed that the communication between the devices is performed according to the security manager protocol until the pairing is completed. Upon receiving the pairing request, the communication device 151 displays a message on a display unit (not shown) provided to the communication device 151 as if Fig.16A 16. The PIN code display screen 1600 is a personal identification number (PIN) code display screen 1600 of the example shown in FIG. 16. The PIN code display screen 1600 displays a PIN code 1601 and a cancel button 1602 for canceling the pairing process. Then, when the pairing request is sent, the information processing device 101 displays a message on the display unit 108 as if the pairing request was sent. Fig. 16B. A PIN code input screen 1610 of the example shown in . A PIN code input area 1611, an OK button 1613, and a cancel button 1612 are displayed on the PIN code input screen 1610. The PIN code input area 1611 is an area for receiving an input of a PIN code 1601 from a user. The OK button 1613 is a button for sending the input PIN code 1601 to the communication device 151. The cancel button 1612 is a button for canceling the pairing process. When the OK button 1613 is pressed while the PIN code 1601 is input in the PIN code input area 1611, the information processing device 101 sends information containing the input PIN code 1601 to the communication device 151. The communication device 151 determines whether the PIN code 1601 contained in the received information matches the PIN code 1601 displayed on the PIN code display screen 1600, and if it is determined that these PIN codes 1601 match each other, the information processing device 101 is permitted to pair with the communication device 151. More specifically, the communication device 151 transmits a link key generated by a predetermined method based on the PIN code 1601 to the information processing device 101 by using the security manager protocol (SMP) defined in the low energy Bluetooth standard. In this way, the link key is stored in each of a storage area (e.g., ROM 104) provided in the information processing device 101 and a storage area (e.g., ROM 152) provided to the communication device 151. Pairing is thereby completed, and execution of low energy Bluetooth communication is permitted between the devices thereafter. When pairing is completed, the information processing device 101 closes the PIN code display screen 1600 and displays the originally displayed screen again.
[0060] After pairing is completed, when a GATT communication request is sent to the communication device 151, the information processing device 101 notifies the communication device 151 of the link key stored in the storage area at the time of the pairing process. Upon receiving the GATT communication request, the communication device 151 compares the link key stored in the storage area at the time of the pairing process with the link key notified to the communication device 151, and confirms whether the device that issued the GATT communication request is an already paired device. Then, if it can be confirmed that the device is an already paired device, the communication device 151 starts reading and writing information through GATT communication with the information processing device 101. Due to this mechanism, once the process for pairing with the communication device 151 is completed, the information processing device 101 can perform GATT communication with the communication device 151 without requiring the user to input a PIN code thereafter. In the above example, it is assumed that the communication system is constructed so that the user can input the PIN code 1601 displayed on the PIN code display screen 1600 into the PIN code input area 1611 to describe the acquisition of the PIN code 1601, but it is not limited to this construction. For example, the communication system may be constructed in such a manner that the PIN code 1601 is prepared as fixed information (which cannot be arbitrarily changed by the user) and is stored in the information processing device 101 together with the installation of the printing application to be described below. By adopting this method, the communication system can be constructed in such a manner that the notification device 151 is notified of the PIN code 1601 without requiring user input. In addition, the timing of starting the pairing process is also not limited to the above-mentioned configuration, and may be, for example, the timing when the user issues a print instruction via the printing application or the timing before performing a low-energy Bluetooth (Bluetooth) connection in the connection setting process to be described below.
[0061] Now, a process for registering an access point as a connection destination of the communication device 151 (connection setting process) will be described. The information processing device 101 performs the connection setting process while a predetermined application stored in the ROM 104, the external storage device 106, etc. is started. The predetermined application is an application for setting an access point as a connection destination of the communication device 151 and causing the communication device 151 to print image data, document data, etc. in the information processing device 101, and will be referred to as an application for printing hereinafter. The application for printing may have other functions in addition to the function of setting an access point as a connection destination of the communication device 151 and the printing function. For example, in the case where the communication device 151 is equipped with a scanning function, the application for printing may have a function of causing the communication device 151 to scan a manuscript set on the communication device 151, a function of configuring other settings of the communication device 151, and / or a function of confirming the status of the communication device 151, etc.
[0062] Figure 4An example of a screen displayed on the display unit 108 when an application for printing is started is illustrated. The user can use functions provided in the communication device 151, such as printing a desired image and setting the communication device 151, via the startup screen 400. Upon detecting that the print button 401 is pressed, the information processing device 101 causes the communication device 151 to execute printing. Upon detecting that the scan button 402 is pressed, the information processing device 101 causes the communication device 151 to execute scanning. Upon detecting that the printer setting button 403 is pressed, the information processing device 101 starts a connection setting process. In the present exemplary embodiment, it is assumed that the transition of the communication device 151 to the connection setting mode requires the connection setting process to be performed on the communication device 151. The connection setting mode is a mode set to the communication device 151 when the connection mode is to be set to the communication device 151, and is set to the communication device 151, for example, when the user enters a predetermined input on an input interface (not illustrated) provided in the communication device 151. When in the connection setting mode, the communication device 151 starts to send advertising information via the short-range wireless communication unit 157. The timing at which the communication device 151 starts to send the advertisement information is not limited to the above configuration, and may be, for example, the timing at which the communication device 151 is powered on and the timing at which a predetermined operation is performed to enable the low energy Bluetooth function. In this case, in order to perform the connection setting process on the communication device 151, it is not necessary to set the connection setting mode to the communication device 151.
[0063] Figure 2 1 is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Figure 2 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Figure 2 Furthermore, it is assumed that the communication device 151 has already switched to the connection setting mode at this time.
[0064] First, in step S201 , the CPU 103 detects that the information processing apparatus 101 is instructed by the user to perform connection setting processing and enters a scanning state, which is a state capable of receiving advertisement information.
[0065] Next, in step S202, the CPU 103 determines whether the advertisement information transmitted from the short-range wireless communication unit 157 of the communication device 151 is received by the short-range wireless communication unit 112. More specifically, the CPU 103 determines whether the advertisement information is received by the short-range wireless communication unit 112, and whether the identification information indicating the communication device 151 is contained in the received advertisement information. If the CPU 103 determines that the advertisement information is received by the short-range wireless communication unit 112 ("Yes" in step S202), the process proceeds to step S205. On the other hand, if the CPU 103 determines that the advertisement information is not received by the short-range wireless communication unit 112 ("No" in step S202), the process proceeds to step S204. In step S204, the CPU 103 determines whether a predetermined period of time has passed since the start of the connection setting process (whether the reception of the advertisement information has timed out). If the CPU 103 determines that the reception of the advertisement information has not timed out ("No" in step S204), the process proceeds to step S202 again. On the other hand, if CPU 103 determines that the reception of the advertisement information has timed out (YES in step S204), the process ends. At this time, CPU 103 may display a screen on display unit 108 for notifying the user of the reception timeout of the advertisement information.
[0066] In step S205, the CPU 103 establishes a low-energy Bluetooth connection based on the received advertising information, and sends a request to start GATT communication to the communication device 151. When the request to start GATT communication is received by the communication device 151, GATT communication is started between the communication device 151 and the information processing device 101 through the reception. Now, in GATT communication defined in the low-energy Bluetooth standard, one of these devices is used as a host, and the other of these devices is used as a slave, which makes two-way communication between the devices possible. In the present exemplary embodiment, the communication device 151 is used as the slave side, and the information processing device 101 is used as the host side. Subsequently, in step S206, the CPU 103 obtains the SSID of the access point 131 to which the communication unit 111 is connected from the OS installed in the information processing device 101. Before the GATT communication starts, information about the access point 131 to which the communication unit 111 is connected has been obtained from the access point 131 by the OS. The information can be obtained by, for example, a signal sent from the access point 131 according to the SSID. A standard beacon is used to obtain information about the access point 131 to which the communication unit 111 is connected. Optionally, after obtaining the beacon and establishing After the connection, the information about the access point 131 is acquired by querying the access point 131. The acquisition of information about the access point 131 to which the communication unit 111 is connected is not limited to the configuration of acquisition from the OS. For example, the CPU 103 can acquire information about the access point 131 by querying the access point 131 in step S206.
[0067] Subsequently, in step S207, the CPU 103 displays the SSID acquired from the OS in step S206, and displays a screen for inputting a password to use the access point corresponding to the SSID (access point 131 in this example) on the display unit 108. At this time, for example, Figure 5 The screen 500 shown in FIG. 1 is used as a screen for inputting a password. In step S208, the information processing apparatus 101 receives input of a password for using the access point 131 from the user. At this time, the CPU 103 acquires the password information inputted to the input unit 501 by the user.
[0068] Subsequently, in step S209, the CPU 103 transmits connection setting information for registering the access point 131 as a connection destination of the communication device 151 to the communication device 151 through GATT communication. In this case, the connection setting information stores the SSID of the access point 131 acquired in step S206, the password acquired in step S208, and a command for setting the connection mode of the communication device 151, etc. In the present exemplary embodiment, the command for setting the connection mode of the communication device 151 is a command for setting the infrastructure connection mode to the communication device 151. Upon receiving the connection setting information, the communication device 151 connects to the access point 131. In this way, the information processing device 101 and the communication device 151 are connected to the same access point 131, which enables the information processing device 101 and the communication device 151 to be connected to each other as an infrastructure connection, thereby performing high-speed communication through a wireless LAN. Therefore, after this, when the information processing apparatus 101 is instructed by the user to perform processing for sending a print job, for example, wireless LAN communication is performed between the information processing apparatus 101 and the communication apparatus 151 by the instruction. Subsequently, in step S210, the CPU 103 ends the GATT communication between the communication apparatus 151 and the information processing apparatus 101, and then the connection setting processing ends. At this time, if the access point 131 has already been connected, the communication apparatus 151 does not have to re-perform the processing for connecting to the access point 131. In other words, if no access point is connected or an access point other than the access point 131 is connected, the communication apparatus 151 can perform the processing for connecting to the access point 131.
[0069] In this manner, in the present exemplary embodiment, the information processing apparatus 101 transmits information about the access point 131 to be registered as the connection destination of the communication apparatus 151 to the communication apparatus 151 by a communication method other than the communication method used for the connection to the access point 131. By configuring in this manner, the information processing apparatus 101 can establish an infrastructure connection with the communication apparatus 151 while maintaining the connection to the access point 131. As a result, the user does not have to be bothered by cumbersome processing such as changing the connection destination of the information processing apparatus 101 and setting the connection destination back to the original destination after the connection setting processing ends, so that the present exemplary embodiment can improve the convenience of the user at the time of the connection setting processing.
[0070] Furthermore, in the present exemplary embodiment, the information processing apparatus 101 transmits information about the access point 131 to which the communication unit 111 is connected to the communication apparatus 151, and causes the communication apparatus 151 to connect to the access point 131, thereby establishing an infrastructure connection. In this way, the access point 131 to which the information processing apparatus 101 has already been connected can be used for the infrastructure connection, whereby the information processing apparatus 101 can establish the infrastructure connection without switching the communication destination of the communication unit 111. Furthermore, generally, the user causes the information processing apparatus 101 to connect to the access point that the user usually uses, and also often uses the usually used access point for the infrastructure connection. In the present exemplary embodiment, the infrastructure connection is performed by using the access point to which the communication unit 111 is connected, and thus the infrastructure connection can be performed by using an appropriate access point (the access point that the user usually uses). Furthermore, in the present exemplary embodiment, the information processing apparatus 101 does not have to perform processing such as causing the user to select an access point to be used for the infrastructure connection. Therefore, the information processing apparatus 101 can prevent or make it less likely that the user inappropriately selects an access point that is not suitable for infrastructure connection, and can omit troublesome operations for selection, thereby improving usability for the user.
[0071] Next, we will refer to Figure 3 Description by Figure 2 The process performed by the communication device 151 which is the target of the connection setting process shown in . Figure 3 1 is a flowchart illustrating the flow of processing performed by the communication device 151 when the communication device 151 is subjected to connection setting processing from the information processing device 101. For example, the CPU 154 reads out a program stored in the ROM 152, an external storage device (not illustrated) provided in the communication device 151, etc., into the RAM 153, and executes the read program, thereby realizing Figure 3 In addition, it is assumed that when the pairing between the information processing device 101 and the communication device 151 is completed, the communication device 151 is switched to the connection setting mode, and the Figure 3 The process is shown in the flowchart.
[0072] In step S301, the CPU 154 enters an advertising state, which is a state in which advertising information is broadcast by the short-range wireless communication unit 157 every time a predetermined time period has passed. Broadcasting here means sending information within a predetermined range without specifying the destination of the information. In addition, at this time, the CPU 154 broadcasts the advertising information with a predetermined strength to limit the range where the advertising information can reach. Now, the low-energy Bluetooth standard is a technology for sending large and small information to nearby wireless devices, and the maximum distance that the information can reach is a range of about 30m to 100m roughly centered on the communication device 151. Therefore, if the communication device 151 does not limit the intensity of the radio wave when sending advertising information, the information processing device 101 may wastefully detect not only the advertising information of the communication device located close to it, but also the advertising information of the communication device located far away from it (the communication device that the user is unlikely to use). In addition, for example, the communication device 151 may unintentionally enable the advertising information to reach even the information processing device for which the communication device 151 does not want to permit the connection setting process. Therefore, the CPU 154 transmits the advertisement information at a predetermined strength to limit the reachable range, and thus can permit only the communication information processing device located close to the communication device 151 to detect the advertisement information.
[0073] Subsequently, in step S302, the CPU 154 determines whether a request to start GATT communication is received from the information processing device 101 by the short-range wireless communication unit 157. If the CPU 154 determines that a request to start GATT communication is received by the short-range wireless communication unit 157 ("Yes" in step S302), the process proceeds to step S304. On the other hand, if the CPU 154 determines that a request to start GATT communication is not received by the short-range wireless communication unit 157 ("No" in step S302), the process proceeds to step S303. In step S303, the CPU 154 determines whether the communication device 151 is to be powered off. More specifically, at this time, the CPU 154 determines whether a power button provided on the communication device 151 is pressed, and whether an instruction to start processing for powering off the communication device 151 is issued. If the CPU 154 determines that the communication device 151 is not to be powered off ("No" in step S303), the process proceeds to step S302 again. On the other hand, if the CPU 154 determines that the communication device 151 is to be powered off ("Yes" in step S303), the CPU 154 stops advertising and ends the process. In step S303, the CPU 154 may determine whether an instruction to end the connection setting mode is received, and if an instruction to end the connection setting mode is received, stop advertising and end the process.
[0074] In step S304, the CPU 154 temporarily stops sending the advertisement information to perform GATT communication.
[0075] Subsequently, in step S305, the CPU 154 starts GATT communication with the information processing device 101 through the short-range wireless communication unit 157. At this time, unlike when sending advertising information, the CPU 154 does not limit the range that the radio waves can reach when performing GATT communication. Therefore, the communicable range through GATT communication exceeds the range that the advertising information can reach. This is because GATT communication is started only with the following information processing devices that can be accessed within the range that the advertising information can reach, and the communication device 151 can permit itself to undergo connection setting processing, whereby the state in which GATT communication has been started means a state in which security is ensured. This extension of the communicable range enables the information processing device 101, which has started the connection setting processing by moving closer to the communication device 151 and receiving the advertising information, to continue the connection setting processing even when moving away from the communication device 151, as long as the information processing device 101 remains within the range that the radio waves can reach.
[0076] Subsequently, in step S306, the CPU 154 determines whether connection setting information (e.g., a command for setting the infrastructure connection mode) for registering the access point 131 as the connection destination of the communication device 151 is received via GATT communication. If the CPU 154 determines that the connection setting information is received ("Yes" in step S306), the process proceeds to step S307. On the other hand, if the CPU 154 determines that the connection setting information is not received ("No" in step S306), the process proceeds to step S308. In step S308, the CPU 154 determines whether a predetermined period of time has passed since the start of the GATT communication (whether the reception of the connection setting information has timed out). If the CPU 154 determines that the reception of the connection setting information has not timed out ("No" in step S308), the process proceeds to step S306 again. On the other hand, if the CPU 154 determines that the reception of the connection setting information has timed out ("Yes" in step S308), the process proceeds to step S309.
[0077] In step S307, the CPU 154 applies a command for setting the infrastructure connection mode contained in the received connection setting information, and switches to the infrastructure connection mode. At this time, the CPU 154 performs a process for registering the access point (in this example, the access point 131) represented by the SSID stored in the connection setting information as the connection destination of the communication device 151. More specifically, the CPU 154 sets the access point 131 into the RAM 153 as an access point to be used for the infrastructure connection via the communication unit 156. In addition, the CPU 154 registers the password required to use the access point 131. At this time, the CPU 154 can, for example, attempt a connection to the specified access point 131, and can notify the information processing device 101 of the result through GATT communication. In addition, the information processing device 101 can be configured to restart the connection setting process if it is notified from the communication device 151 that the attempt to connect to the access point 131 has failed. When the registration of the access point 131 is properly completed, the CPU 154 is connected to the access point 131 via the communication unit 156, and is set to be able to communicate with the access point 131 via the wireless LAN. As a result, an infrastructure connection is established between the information processing device 101 and the communication device 151 via the access point 131. Subsequently, in step S309, the CPU 154 ends the GATT communication between the information processing device 101 and the communication device 151. Then, in step S310, the CPU 154 restarts the transmission of the advertisement information.
[0078] In this way, the communication device 151 according to the present exemplary embodiment transmits advertising information with a predetermined strength to limit the reachable range. By being constructed in this way, the communication device 151 enables the information processing device 101 to detect only the communication device that is located close to the information processing device 101 and has a high possibility that the user uses it as a target for connection setting processing, thereby improving the convenience of the user. In addition, this construction can prevent or make it less likely that advertising information reaches an information processing device that is located far away from the communication device 151 and is not suitable for the communication device 151 to undergo connection setting processing, thereby enhancing the security of the communication device 151. In addition, the communication device 151 is constructed so as not to limit the range that the radio waves can reach when the information processing device 101 and the communication device 151 perform GATT communication between them, which enables communication to be maintained even when the distance between the devices changes.
[0079] Furthermore, in the present exemplary embodiment, the communication device 151 is configured to continue to send the advertisement information each time a predetermined time period has passed as long as the communication device 151 is powered on, but is not limited to this configuration. More specifically, the communication device 151 may be configured to include a button or the like that can be used by the user to issue an instruction to start sending the advertisement information, and may also be configured to set a timeout to a time period in which a request to start GATT communication can be received. By configuring in this manner, the communication device 151 can limit the time period in which the communication device 151 can undergo the connection setting process to only within a predetermined time period, thereby saving power consumption of the communication device 151.
[0080] The first exemplary embodiment has been described as an example in which the information processing apparatus 101 registers the access point 131 which is the connection destination of the communication apparatus 151 into the communication apparatus 151 .
[0081] For example, when the information processing apparatus 101 performs communication such as transmission of a print job to the communication apparatus 151 connected as the infrastructure connection, the communication apparatus 151 should be registered in the information processing apparatus 101 as a communication destination. This is because, for example, if a plurality of communication apparatuses are connected to the access point 131 for infrastructure connection, the information processing apparatus 101 must identify the communication apparatus 151 (the communication apparatus as the communication destination) with which the information processing apparatus 101 attempts to communicate. Figure 4 On the startup screen 400 of the print application shown in , the name and identification information of the communication device 151 registered as the communication destination are displayed on the communication destination selection button 404. Then, the information processing apparatus 101 can communicate with the communication device 151 displayed on the communication destination selection button 404.
[0082] Therefore, the second exemplary embodiment will be described as an example in which the information processing apparatus 101 registers the communication apparatus 151 which is a target of the connection setting processing as a communication destination when performing the connection setting processing.
[0083] Figure 6 1 is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101 according to the present exemplary embodiment. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Figure 6 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Figure 6 Furthermore, it is assumed that the communication device 151 has already switched to the connection setting mode at this time.
[0084] The processes in step S601 to step S610 are similar to those in step S201 to step S210 , respectively, and thus description thereof will be omitted here.
[0085] In step S611, the CPU 103 acquires network information from the communication device 151 to be the target of the connection setting process through the GATT communication established in step S605. The network information stores identification information (e.g., the MAC address of the communication device 151) for detecting the communication device 151 via the access point 131. In the present exemplary embodiment, the communication system is constructed in such a manner that the identification information is stored in the network information acquired in step S611, but may be constructed in such a manner that the identification information is stored in the advertisement information acquired in step S602. Alternatively, the communication system may be constructed in such a manner that the identification information is stored in, for example, response data transmitted from the communication device 151 in response to the request to start GATT communication transmitted in step S605.
[0086] In step S612, the CPU 103 detects the communication device 151 based on the identification information stored in the network information acquired in step S611, and registers the detected communication device 151 as the communication destination of the information processing device 101. More specifically, the CPU 103 broadcasts a request for a response for reporting identification information to the communication device existing in the connection network to which the information processing device 101 is connected, and detects the communication device that has issued a response corresponding to the identification information acquired in step S611. In the present exemplary embodiment, the information processing device 101 is connected to the access point 131, and thus the request is broadcast to the communication device connected via the access point 131. Due to the registration of the communication destination, the information processing device 101 can start communication with the communication device 151 thereafter.
[0087] In this manner, the information processing apparatus 101 according to the present exemplary embodiment also registers the communication apparatus 151 that is the target of the connection setting processing as its own communication destination along with performing the connection setting processing on the communication apparatus 151. The information processing apparatus 101 is constructed in this manner so that the information processing apparatus 101 can omit user operations such as detecting and selecting the communication apparatus 151 that becomes the communication destination of the information processing apparatus 101. Therefore, this configuration can simplify the processing required by the user operating the information processing apparatus 101, thereby improving the convenience of the user.
[0088] In the above-described exemplary embodiments, the process of setting the infrastructure connection mode to the communication device 151 and establishing an infrastructure connection between the communication device 151 and the information processing device 101 has been described.
[0089] However, for example, if there is no external access point such as a wireless LAN router around the device, an infrastructure connection cannot be established between the devices. In this case, by communicating with each other through a direct connection, the communication device 151 and the information processing device 101 can achieve communication between the devices even when there is no external access point such as a wireless LAN router.
[0090] Therefore, the third exemplary embodiment will be described as an example in which the information processing device 101 determines the network connection state of the information processing device 101 and sets either the infrastructure connection mode or the direct connection mode when performing connection setting processing on the communication device 151.
[0091] Figure 7 (include Fig. 7A and Figure 7B ) is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101 according to the present exemplary embodiment. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Figure 7 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Figure 7 Furthermore, it is assumed that the communication device 151 has already switched to the connection setting mode at this time.
[0092] The processes in step S701 to step S710 are similar to the processes in step S201 to step S210, respectively, and the processes in step S711 and step S712 are similar to the processes in step S611 and step S612, respectively. Therefore, the description thereof will be omitted here.
[0093] In step S711, the information processing device 101 acquires network information from the communication device 151, and in this example, it is assumed that the network information stores not only the above-mentioned identification information but also direct connection information for directly connecting to the communication device 151. More specifically, the direct connection information is, for example, the SSID of an access point for direct connection prepared in the communication device 151 and a password for connecting to the access point.
[0094] In step S713, the CPU 103 checks the network connection state of the information processing device 101, and determines whether the direct connection mode is set to the communication device 151. More specifically, first, in step S706, the CPU 103 determines whether the SSID of the access point to which the communication unit 111 is connected can be acquired from the OS installed in the information processing device 101. In step S706, if the communication unit 111 is connected to the access point, the CPU 103 can acquire the SSID name of the access point from the OS. On the other hand, if the communication unit 111 is not connected to the access point, the CPU 103 acquires information indicating that the communication unit 111 is not connected to the access point from the OS. Therefore, the CPU 103 can determine whether the communication unit 111 is connected to the access point based on the information acquired from the OS.
[0095] Then, if the communication unit 111 is connected to the network via an access point, it is expected that the communication device 151 is also connected to the same access point and an infrastructure connection is established between the devices. This is because, generally, Internet communication via a wireless LAN is possible in an infrastructure connection, while Internet communication via a wireless LAN is not possible in a direct connection. On the other hand, if the communication unit 111 is not connected to an access point, it is likely that there is no external access point around the device, so it is expected that a direct connection is established between the devices. Therefore, if the SSID name of the access point can be acquired from the OS, the CPU 103 determines that the infrastructure connection mode is set to the communication device 151 ("No" in step S713), and the processing proceeds to step S707. On the other hand, if the SSID name of the access point cannot be acquired from the OS, the CPU 103 determines that the direct connection mode is set to the communication device 151 ("Yes" in step S713), and the processing proceeds to step S715.
[0096] In step S714, the CPU 103 stores, in the connection setting information to be transmitted in step S709, information for setting the infrastructure connection mode to the communication device 151. More specifically, the CPU 103 stores the SSID and password of the access point to which the communication unit 111 is currently connected, a command for setting the infrastructure connection mode to the communication device 151 (for causing the communication device 151 to connect to the access point to which the communication unit 111 is currently connected), and the like.
[0097] In step S715, the CPU 103 stores information for setting the direct connection mode to the communication device 151, into the connection setting information to be transmitted in step S709. More specifically, the CPU 103 stores a command for setting the direct connection mode to the communication device 151 (for enabling the access point in the communication device 151) and the like.
[0098] In step S709, the CPU 103 transmits the connection setting information set in step S714 or step S715 to the communication device 151 through GATT communication. As a result, according to the content stored in the connection setting information, any one of the infrastructure connection mode and the direct connection mode is set to the communication device 151. More specifically, at this time, if the infrastructure connection mode is set, the processing described in the description of step S307 is performed, and if the direct connection mode is set, the access point in the communication device 151 is set to be valid.
[0099] In step S716, the CPU 103 determines whether the direct connection mode is set to the communication device 151. If the CPU 103 determines that the direct connection mode is not set (i.e., the infrastructure connection mode is set) ("No" in step S716), the process proceeds to step S712. On the other hand, if the CPU 103 determines that the direct connection mode is set to the communication device 151 ("Yes" in step S716), the process proceeds to step S717.
[0100] In step S717, the CPU 103 sets the access point in the communication device 151 as the connection destination of the information processing device 101 based on the SSID and password of the access point in the communication device 151 stored in the network information acquired in step S711. The connection is performed by the wireless LAN communication method via the communication unit 111. The connection enables the information processing device 101 and the communication device 151 to be connected to each other as a peer-to-peer connection, and thus enables communication between the devices even in an environment where no external access point exists around the information processing device 101 and the communication device 151. After the CPU 103 completes the registration of the communication destination of the information processing device 101, the process proceeds to step S712.
[0101] In this way, the information processing device 101 according to the present exemplary embodiment can set one of the infrastructure connection mode and the direct connection mode that is suitable for the network connection state of the information processing device 101 to the communication device 151. Therefore, the appropriate connection mode is automatically set without the user who uses the information processing device 101 being aware of the network connection state of the information processing device 101, which can simplify the processing required for the user to operate the information processing device 101, thereby improving the convenience of the user.
[0102] In the present exemplary embodiment, it is assumed that the direct connection is a connection in which the information processing device 101 is connected to the access point in the communication device 151, but it is not limited thereto, and the direct connection may be any connection as long as the information processing device 101 and the communication device 151 are connected to each other as a peer connection. In other words, the information processing device 101 may be connected as a peer connection by adopting, for example, a wireless local area network (WLAN) connection in an ad hoc mode or a connection via Bluetooth without the intervention of the access point in the communication device 151. Alternatively, Wi-Fi may be used. (Wi-Fi Direct) etc. as a communication method for direct connection.
[0103] In the above-described exemplary embodiment, the information processing device 101 establishes an infrastructure connection by presenting information about the access point 131 to which the communication unit 111 is connected to the communication device 151. However, for example, the access point 131 to which the communication unit 111 is connected may be located outside the communicable range of the communication device 151, or may be an access point designed for communication using a frequency that is not supported by the communication device 151. In this case, the information processing device 101 cannot establish an infrastructure connection with the communication device 151. Therefore, the fourth exemplary embodiment will be described as communication capable of establishing an infrastructure connection more reliably.
[0104] Fig.11 1 is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101 according to the present exemplary embodiment. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Fig.11 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Fig.11 Furthermore, it is assumed that the communication device 151 has already switched to the connection setting mode at this time.
[0105] The processing in step S1101 to step S1112 is similar to the processing in step S601 to step S612, respectively, and thus a description thereof will be omitted here.
[0106] In step S1113 , the CPU 103 acquires a list (information indicating a list) of access points to which the communication unit 156 can connect from the communication device 151 through the GATT communication established in step S1105 (list acquisition).
[0107] In step S1114, the CPU 103 determines whether the access point 131 to which the communication unit 111 is connected, acquired in step S1106, exists in the list of access points to which the communication unit 156 can connect, acquired in step S1113. If the CPU 103 determines that there is the access point 131 to which the communication unit 111 is connected ("Yes" in step S1114), the process proceeds to step S1107. In step S1107, the CPU 103 transmits information about the access point 131 to which the communication unit 111 is connected to the communication device 151. On the other hand, if the CPU 103 determines that there is no access point 131 to which the communication unit 111 is connected ("No" in step S1114), the process proceeds to step S1115.
[0108] In step S1115 , the CPU 103 displays, on the display unit 108 , the list of access points to which the communication unit 156 can connect, acquired from the communication device 151 in step S1113 , and receives a selection of any one of the access points in the list from the user.
[0109] In step S1116, the CPU 103 displays the SSID of the access point selected in step S1115 on the display unit 108, and displays a screen for inputting a password for using the access point corresponding to the SSID. Figure 5 A screen 500 shown in FIG. 1 is used as a screen for inputting a password.
[0110] In step S1117, the information processing apparatus 101 receives an input of a password for using the access point selected in step S1115 from the user. At this time, the CPU 103 acquires the password information input on the input unit 501 by the user.
[0111] In step S1118 , the CPU 103 transmits connection setting information for registering the access point selected in step S1115 as a connection destination of the communication device 151 to the communication device 151 through GATT communication.
[0112] In step S1119 , the GATT communication between the communication device 151 and the information processing device 101 is terminated.
[0113] In step S1120 , the CPU 103 switches the connection destination of the communication unit 111 to the access point selected in step S1115 .
[0114] In step S1121 , the CPU 103 detects the communication device 151 based on the identification information stored in the network information acquired in step S1111 , and registers the detected communication device 151 as the communication destination of the information processing device 101 .
[0115] In step S1107, the CPU 103 may display the SSID acquired from the OS in step S1106 on the display unit 108, and display a screen for confirming to the user whether to use the access point 131 corresponding to the SSID. Then, if the intention to use the access point 131 corresponding to the SSID is input on the confirmation screen, the CPU 103 may display a screen for inputting a password on the display unit 108. On the other hand, if the intention to use the access point 131 corresponding to the SSID is not input on the confirmation screen, the process may proceed to step S1115, and the CPU 103 may set the connection by using the access point selected by the user.
[0116] Next, we will refer to Fig.12 To describe the Fig.11 The process performed by the communication device 151 which is the target of the connection setting process shown in . Fig.12 1 is a flowchart illustrating the flow of processing performed by the communication device 151 when the communication device 151 is subjected to connection setting processing from the information processing device 101. For example, the CPU 154 reads out a program stored in the ROM 152, an external storage device (not illustrated) provided in the communication device 151, etc., into the RAM 153, and executes the read program, thereby realizing Fig.12 In addition, it is assumed that when the pairing between the information processing device 101 and the communication device 151 is completed, the communication device 151 is switched to the connection setting mode, and the Fig.12 The process is shown in the flowchart.
[0117] The processing in step S1201 to step S1210 is similar to the processing in step S301 to step S310, respectively, and thus description thereof will be omitted here.
[0118] In step S1211, the CPU 154 transmits a list of access points to which the communication unit 156 can connect to the information processing device 101 through the GATT communication established in step S1205. The list of access points to which the communication unit 156 can connect can be acquired by querying the OS in the communication device 151.
[0119] In this way, in the present exemplary embodiment, if the access point 131 to which the communication unit 111 is connected does not exist in the list of access points to which the communication unit 156 can connect, the information processing device 101 causes the user to select an access point from the list. Then, an infrastructure connection is established by using the selected access point. In the present exemplary embodiment, configuring the information processing device 101 in this way can prevent the access point to which the communication device 151 cannot connect from being unintentionally used for the infrastructure connection, thereby further reliably establishing the infrastructure connection. However, the present exemplary embodiment is not limited to this configuration. For example, if the access point 131 to which the communication unit 111 is connected does not exist in the list of access points to which the communication unit 156 can connect, the CPU 103 can set the direct setting mode to the communication device 151. Alternatively, the processing can be switched in response to a trigger of the connection setting process. In this case, in the case where the trigger of the connection setting process is a command to set the infrastructure connection mode received from the user, the CPU 103 sets the infrastructure connection mode even if the access point 131 to which the communication unit 111 is connected does not exist in the list. On the other hand, when the trigger of the connection setting process is an automatic setting instruction to set the connection mode according to the connection state of the information processing apparatus 101, if the access point 131 to which the communication unit 111 is connected does not exist in the list, the CPU 103 sets the direct connection mode.
[0120] In the fourth exemplary embodiment, the information processing apparatus 101 acquires a list of access points to which the communication unit 156 can connect, which is held in the communication apparatus 151. However, for example, if the acquired list is old information, some of the access points included in the list may have been powered off at the timing when the information processing apparatus 101 performs the connection setting process. In this case, for example, the CPU 103 may not correctly determine whether the access point 131 to which the communication unit 111 is connected exists in the list of access points to which the communication unit 156 can connect. Therefore, the fifth exemplary embodiment will be described as a communication system capable of establishing an infrastructure connection further reliably.
[0121] Fig.13 1 is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101 according to the fifth exemplary embodiment. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Fig.13 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Fig.13The processing shown in the flowchart of . In addition, it is assumed that the communication device 151 has already switched to the connection setting mode at this time. The processing in step S1301 to step S1321 is similar to the processing in step S1101 to step S1121, respectively, so the description thereof will be omitted here.
[0122] In step S1322, the CPU 103 establishes a low-energy Bluetooth connection based on the received advertisement information, and requests the communication device 151 for a list of external access points to which the communication unit 156 can connect through GATT communication via the short-range wireless communication unit 112. The list requested at this time is a list of information for identifying the external access points to which the communication unit 156 can connect, and the information for identifying the external access points is, for example, an SSID.
[0123] Now, refer to Fig.14 The contents of the processing in step S1322 will be described.
[0124] Fig.14 1322 is a flowchart illustrating the flow of the processing in step S1322. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Fig.14 The flowchart shown in .
[0125] In step S1401, CPU 103 transmits a request to start GATT communication based on the received advertisement information to communication device 151. When the request to start GATT communication is received by communication device 151, GATT communication starts between communication device 151 and information processing device 101 by the reception.
[0126] In step S1402, the CPU 103 sends an instruction (instruction transmission) to update the list of external access points that the communication unit 156 can connect to the communication device 151 through the GATT communication via the short-range wireless communication unit 112. Subsequently, in step S1403, the CPU 103 ends (disconnects) the low-energy Bluetooth connection between the communication device 151 and the information processing device 101, thereby ending the GATT communication. When the low-energy Bluetooth connection between the communication device 151 and the information processing device 101 ends, the short-range wireless communication unit 112 enters a scanning state, which is a state in which advertising information can be received.
[0127] If, in the communication device 151, the update of the list of external access points to which the communication unit 156 can connect has succeeded (completed), the advertisement information (signal) indicating the success is transmitted from the short-range wireless communication unit 157. Therefore, in step S1404, the CPU 103 determines whether the advertisement information (signal) indicating that the update of the list of external access points to which the communication unit 156 can connect has succeeded (completed) is received by the short-range wireless communication unit 112 (whether the signal is received). More specifically, the CPU 103 determines whether the advertisement information is received by the short-range wireless communication unit 112, and whether the received advertisement information contains the identification information indicating the communication device 151 and the information indicating that the update of the list has succeeded. If the CPU 103 determines that the advertisement information indicating that the update of the list of external access points to which the communication unit 156 can connect has succeeded is received by the short-range wireless communication unit 112 ("YES" in step 1404), the process proceeds to step S1406. On the other hand, if the CPU 103 determines that the advertisement information indicating that the update of the list of external access points to which the communication unit 156 can connect has been successfully received by the short-range wireless communication unit 112 ("No" in step S1404), the process proceeds to step S1405. In step S1405, the CPU 103 determines whether a predetermined period of time has passed since the transmission of the instruction to update the list of access points (whether the update instruction has timed out). If the CPU 103 determines that the update instruction has not timed out ("No" in step S1405), the process proceeds to step S1404 again. On the other hand, if the CPU 103 determines that the update instruction has timed out ("Yes" in step S1405), the process proceeds to step S1407, and the process ends. At this time, the CPU 103 may display a screen on the display unit 108 for notifying the user that the update instruction has timed out.
[0128] In step S1406, the CPU 103 stores determination information indicating that the update of the list of external access points to which the communication unit 156 can connect has succeeded, into the RAM 105. On the other hand, in step S1407, the CPU 103 stores determination information indicating that the update of the list of external access points to which the communication unit 156 can connect has failed, into the RAM 105. These determination information will be used in the determination processing described below.
[0129] Then, processing returns to Fig.13. In step S1323, the CPU 103 determines whether the request for the list of external access points to which the communication unit 156 can connect has succeeded. At this time, the CPU 103 makes a determination by reading out the determination information held in the RAM 105 in step S1322. If the CPU 103 determines that the update has succeeded ("Yes" in step S1323), the process proceeds to step 1305. At this time, the low-energy Bluetooth connection has been ended (disconnected) between the communication device 151 and the information processing device 101, which means that the CPU 103 re-establishes the low-energy Bluetooth connection (re-establishes) in step S1305. On the other hand, if the CPU 103 determines that the update has failed ("No" in step S1323), the process ends.
[0130] In step S1324 , the CPU 103 transmits an instruction to start connection setting to the communication device 151 through the GATT communication started in step S1305 .
[0131] Next, we will refer to Fig.15 To describe the Fig.13 The process performed by the communication device 151 which is the target of the connection setting process shown in . Fig.15 1 is a flowchart illustrating the flow of processing performed by the communication device 151 when the communication device 151 is subjected to connection setting processing from the information processing device 101. For example, the CPU 154 reads out a program stored in the ROM 152, an external storage device (not illustrated) provided in the communication device 151, etc., into the RAM 153, and executes the read program, thereby realizing Fig.15 In addition, it is assumed that when the pairing between the information processing device 101 and the communication device 151 is completed, the communication device 151 is switched to the connection setting mode, and the Fig.15 The processing shown in the flowchart of . The processing in step S1501 to step S1511 is similar to the processing in step S1201 to step S1211, respectively, and therefore the description thereof is omitted here.
[0132] In step S1512, the CPU 154 determines the content of the instruction received from the information processing device 101 through the GATT communication started in step S1505. In this example, it is assumed that the CPU 154 determines whether the received instruction is any one of an instruction to update the list of access points and an instruction to start connection setting. If the CPU 154 determines that the instruction to start connection setting is received ("Yes" in step S1512), the process proceeds to step S1511. On the other hand, if the CPU 154 determines that the instruction to update the list of access points is received ("No" in step S1512), the process proceeds to step S1513. In step S1513, the CPU 154 ends the low-energy Bluetooth connection between the communication device 151 and the information processing device 101, thereby ending the GATT communication. When the low-energy Bluetooth connection between the communication device 151 and the information processing device 101 ends, the short-range wireless communication unit 157 restarts the advertisement. By this restart, the short-range wireless communication unit 157 can enable devices other than the information processing device 101 to detect the advertisement information while the list of external access points to which the communication unit 156 can connect is updated. The communication device 151 can be configured to prohibit the establishment of a low-energy Bluetooth connection between the communication device 151 and the device other than the information processing device 101 in accordance with the advertisement information sent at this time, so that the communication device 151 does not receive an interruption of processing from the device other than the information processing device 101. More specifically, the communication device 151 can only enable the transmission of the advertisement information and disable the reception of the connection request. Alternatively, the communication device 151 can be configured not to restart the advertisement even after the low-energy Bluetooth connection is terminated between the communication device 151 and the information processing device 101. In this case, the communication device 151 cannot enable devices other than the information processing device 101 to detect the advertisement information while the list of access points is updated, but the power consumption of the short-range wireless communication unit 157 can be saved.
[0133] In step S1514, the CPU 154 detects an access point to which the communication unit 156 can connect. More specifically, at this time, the CPU 154 detects a beacon emitted from the access point by the communication unit 156. Upon detecting the beacon, the CPU 154 sequentially stores information that enables the access point to be identified, such as the device name and SSID of the access point contained in the beacon, into the RAM 153. By operating in this manner, the CPU 154 updates the list of access points to which the communication unit 156 can connect.
[0134] In step S1515, the CPU 154 determines whether the update of the list of access points in step S1514 has succeeded. For example, when there is no connectable access point around the communication device 151 and thus no beacon is detected, the CPU 154 determines that the update has failed ("No" in step S1515), and the process proceeds to step S1510. In step S1510, the CPU 154 may restart the transmission of the advertisement information storing the information indicating that the update of the list of external access points to which the communication unit 156 can connect has failed.
[0135] On the other hand, if the CPU 154 determines that the update has succeeded ("Yes" in step S1515), the process proceeds to step S1516. In step S1516, the CPU 154 sets the content of the advertisement information to be transmitted thereafter to the update success state. More specifically, the CPU 154 stores information indicating that the update of the list of external access points to which the communication unit 156 can connect has succeeded in the advertisement information to be transmitted thereafter. Then, in step S1510, the CPU 154 restarts the transmission of the advertisement information set to the update success state.
[0136] In this way, in the present exemplary embodiment, the list of access points to which the communication unit 156 can connect can be updated to the latest state at the timing when the information processing device 101 performs the connection setting process. Constructing the communication system in this way can prevent or make it less likely that an access point to which the communication unit 156 cannot connect is added to the list at the timing when the connection setting process is performed. Therefore, the information processing device 101 can further reliably establish an infrastructure connection with the communication device 151.
[0137] In the sixth exemplary embodiment, a configuration will be described in which information processing apparatus 101 receives a notification about success or failure of connection setting from communication apparatus 151 after transmitting connection setting information.
[0138] Fig.17 1 is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101 according to the present exemplary embodiment. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Fig.17 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Fig.17The processing shown in the flowchart of . In addition, it is assumed that the communication device 151 has already switched to the connection setting mode at this time. The processing in step S1701 to step S1724 is similar to the processing in step S1301 to step S1324, respectively, so the description thereof will be omitted here.
[0139] After the connection setting information is transmitted in step S1709, in step S1725, the CPU 103 determines whether the connection setting of the communication device 151 has succeeded by using the transmitted connection setting information. More specifically, at this time, the CPU 103 first waits for receiving a notification about the success or failure of the connection setting from the communication device 151. Then, if the notification is received (notified of success or failure), the CPU 103 analyzes the content of the notification and determines whether the connection setting of the communication device 151 has succeeded.
[0140] If the connection setting of the communication device 151 has failed ("No" in step S1725), the process proceeds to step S1726. In step S1726, the CPU 103 displays a screen for confirming to the user whether to retry the connection setting of the communication device 151 on the display unit 108. Then, the CPU 103 determines whether to retry the connection setting of the communication device 151 based on the user's input on the screen. If the CPU 103 determines to retry the connection setting of the communication device 151 ("Yes" in step S1727), the process proceeds to step S1707. In step S1707, the CPU 103 performs the processes in step S1707 and the steps subsequent thereto again. If the CPU 103 determines not to retry the connection setting of the communication device 151 ("No" in step S1727), the process ends.
[0141] On the other hand, if the connection setting of the communication device 151 has succeeded ("Yes" in step S1725), the process proceeds to step S1728. In step S1728, the CPU 103 displays a screen (registration screen) for registering any communication device as a communication destination of the information processing device 101 on the display unit 108. A list of communication devices including communication devices operating as access points and communication devices connected to the access point 131 to which the information processing device 101 is connected, which are detected by performing known discovery processing, is displayed on the registration screen. When any communication device is selected from the list (list of registrable communication devices) displayed on the registration screen, the selected communication device is registered as a communication destination of the information processing device 101 by the selection. In the present exemplary embodiment, the communication device 151 as a target of the connection setting is registered as a communication destination of the information processing device 101 without receiving the user's input. Therefore, first, in step S1729, the CPU 103 identifies the communication device 151 as the target of the connection setting from the list of registrable communication devices based on the identification information stored in the network information acquired in step S1711. Then, in step S1730, the CPU 103 registers the identified communication device (the communication device 151 in this example) as the communication destination of the information processing device 101. Each of the processes in step S1112, step S1121, step S1312, and step S1321 according to the above-described exemplary embodiment can be implemented by executing the processes in steps S1728 to S1730.
[0142] The processing in step S1731 to step S1736 is similar to the processing in step S1725 to step S1730, respectively. After the determination in step S1733, if it is determined to retry the connection setting, the CPU 103 may perform the processing from step S1715 again, or may perform the processing from step S1716 again.
[0143] Next, we will refer to Fig.18 To describe the Fig.17 The process performed by the communication device 151 which is the target of the connection setting process shown in . Fig.18 1 is a flowchart illustrating the flow of processing performed by the communication device 151 when the communication device 151 is subjected to connection setting processing from the information processing device 101. For example, the CPU 154 reads out a program stored in the ROM 152, an external storage device (not illustrated) provided in the communication device 151, etc., into the RAM 153, and executes the read program, thereby realizing Fig.18In addition, it is assumed that when the pairing between the information processing device 101 and the communication device 151 is completed, the communication device 151 is switched to the connection setting mode, and the Fig.18 The processing shown in the flowchart of . The processing in step S1801 to step S1816 is similar to the processing in step S1501 to step S1516, respectively, and therefore the description thereof is omitted here.
[0144] In step S1817, the CPU 154 determines whether application of the command for setting the infrastructure connection mode contained in the received connection setting information in step S1807 has succeeded. More specifically, the CPU 154 determines whether connection to the access point indicated by the SSID stored in the connection setting information has succeeded.
[0145] If the CPU 154 determines that the connection to the access point has failed (No in step S1817), the process proceeds to step S1818. In step S1818, the CPU 154 transmits a notification indicating that the connection setting of the communication device 151 has failed (the connection between the communication device 151 and the access point has failed) to the information processing device 101 through GATT communication. For example, when the password stored in the connection setting information is incorrect, the connection to the access point has failed. Thereafter, the CPU 154 performs the processing in step S1806 and subsequent steps again, and waits for receiving the connection setting information again.
[0146] On the other hand, if the CPU 154 determines that the connection to the access point has succeeded ("Yes" in step S1817), the process proceeds to step S1819. In step S1819, the CPU 154 sends a notification to the information processing device 101 through GATT communication indicating that the connection setting of the communication device 151 has succeeded (the connection between the communication device 151 and the access point has succeeded). After that, the CPU 154 performs the processing in step S1809 and subsequent steps. The CPU 154 may be configured to omit the processing in step S1809 and subsequent steps and maintain the low energy Bluetooth connection with the information processing device 101.
[0147] In this way, in the present exemplary embodiment, the information processing apparatus 101 can identify whether the application of the connection setting information has succeeded by exchanging a notification indicating whether the application of the connection setting information has succeeded through GATT communication. Then, based on this identification, if the application of the connection setting information has failed, the information processing apparatus 101 can retry the connection setting process.
[0148] The seventh exemplary embodiment will be described as a configuration that enables a user to select a communication device (target device) to be a target of a connection setting process.
[0149] Fig.19 1 is a flowchart illustrating the flow of connection setting processing performed by the information processing apparatus 101 according to the present exemplary embodiment. For example, the CPU 103 reads out a program stored in the ROM 104, the external storage device 106, etc., into the RAM 105, and executes the read program, thereby realizing Fig.19 In addition, it is assumed that when the printer setting button 403 is pressed when pairing is completed between the information processing device 101 and the communication device 151, the printer starts Fig.19 The processing shown in the flowchart of . In addition, it is assumed that the communication device 151 has already switched to the connection setting mode at this time. The processing in step S1901 to step S1936 is similar to the processing in step S1701 to step S1736, respectively, so the description thereof will be omitted here.
[0150] In step S1937, the CPU 103 discovers candidates for the communication device to be the target of the connection setting process, and displays a list of the discovered devices on the display unit 108. More specifically, the CPU 103 first adds the communication device 151 with which the low-energy Bluetooth connection has been established in step S1905 to the list. In addition, the CPU 103 adds the communication device set in the connection setting mode, which is discovered through a known discovery process, to the list. For example, some communication devices are capable of being subjected to a low-energy Bluetooth connection via a connection setting process. If such a communication device is set in the connection setting mode, for example, an internal access point that is enabled only when the communication device is in the connection setting mode is enabled. Therefore, the CPU 103 can detect the connection setting process that follows the low energy Bluetooth. The CPU 103 detects a beacon with a fixed SSID among the detected beacons, and adds the communication device including the internal access point that has emitted the identified beacon to the list. In other words, in the present exemplary embodiment, the communication device 151 to which the information processing device 101 is connected via low-energy Bluetooth and the communication device that is set in the connection setting mode and includes a valid specific internal access point are displayed in parallel in the list as the communication device to be the target of the connection setting process. The communication device added to the list is not limited to this configuration. For example, a communication device that is set in the connection setting mode and sends specific advertising information can be added to the list. In addition, the timing of performing the processing in step S1937 is not limited to this configuration. For example, the processing in step S1937 can be performed immediately after step S1902. In this case, the communication device 151 that sent the advertising information received in step S1902 is added to the list. In addition, for example, if only a single communication device is added to the list as a result of continuing to discover communication devices within a predetermined period of time, the process may proceed to step S1938 without the CPU 103 displaying the list, and the CPU 103 may specify the single communication device as the target device. In addition, for example, if no communication device is added to the list after the discovery process for the communication device for a predetermined period of time, the CPU 103 may display an error screen on the display unit 108 and end the connection setting process. In addition, the information contained in the list displayed on the display unit 108 may be any information as long as the list contains information corresponding to the communication device added to the list. The information corresponding to the communication device may be, for example, a MAC address or an Internet Protocol (IP) address of the communication device, or may be an SSID of an internal access point provided to the communication device.
[0151] In step S1938, the CPU 103 specifies a connection device (target device) to be a target of the connection setting process among the communication devices added to the list by receiving the user's selection. For example, if only a single communication device is added to the list as a result of continuing to discover communication devices within a predetermined period of time, the CPU 103 may automatically select the single communication device without receiving the user's selection. When the target device is specified, the CPU 103 performs the subsequent connection setting process on the specified target device.
[0152] This configuration enables the user to select a device that is a target of the connection setting process, for example, when there are a plurality of candidates for the device to be a target of the connection setting process around the information processing device 101 .
[0153] As described above, the timing of displaying a list of candidates for a communication device to be a target of a connection setting process and the timing of discovering a candidate for a communication device to be a target of a connection setting process are not limited to the above-described configurations. Other configurations will be described in detail.
[0154] For example, the CPU 103 may display a list of candidates for a communication device to be a target of a connection setting process and / or discover candidates for a communication device to be a target of a connection setting process before starting GATT communication with the communication device 151. In this case, a communication device set in a connection setting mode searched for by a known discovery process and a communication device operating as a transmission source of advertisement information received by the information processing device 101 are displayed in parallel with each other in a list.
[0155] At this time, the CPU 103 does not necessarily need to display all the communication devices each operating as a transmission source of the advertisement information received by the information processing device 101 .
[0156] For example, the advertisement information may store information about services that can be provided by the communication device operating as the transmission source of the advertisement information, and / or information about the model and / or manufacturer of the communication device. In this case, for example, if the received advertisement information contains information indicating that the communication device can provide a printing service, the CPU 103 displays the communication device operating as the transmission source of the advertisement information in a list. If the received advertisement information does not contain the information, the CPU 103 does not display the communication device operating as the transmission source of the advertisement information in the list. In addition or alternatively, for example, if the received advertisement information contains information about the model and / or manufacturer corresponding to the application for printing, the CPU 103 displays the communication device operating as the transmission source of the advertisement information in a list. If the received advertisement information does not contain the information, the CPU 103 does not display the communication device operating as the transmission source of the advertisement information in the list.
[0157] In addition or alternatively, for example, information about the state of the communication device operating as the transmission source of the advertisement information may be stored in the advertisement information. In this case, for example, if the received advertisement information does not include information indicating that the communication device is in a busy state or an error state, the CPU 103 displays the communication device operating as the transmission source of the advertisement information in the list. If the received advertisement information includes the information, the CPU 103 does not display the communication device operating as the transmission source of the advertisement information in the list. This is because if the communication device is in a busy state or in an error state, the communication device cannot perform connection setting processing. The busy state refers to, for example, a state in which the communication device is performing printing processing or scanning processing, and a state in which an operating unit included in the communication device is being operated.
[0158] Additionally or alternatively, for example, if the communication device operating as the transmission source of the received advertisement information is an already paired communication device, the CPU 103 displays the communication device operating as the transmission source of the advertisement information in the list. If the communication device operating as the transmission source of the received advertisement information is not an already paired communication device, the CPU 103 does not display the communication device operating as the transmission source of the advertisement information in the list.
[0159] In addition, for example, a communication device set in a connection setting mode searched by a known discovery process can send advertising information through low-energy Bluetooth. Therefore, after adding the communication device set in the connection setting mode to the list, the communication device operating as the transmission source of the advertising information is added to the construction of the list, and the same communication device may be redundantly displayed in the list. Therefore, the CPU 103 can control so as to prevent the same communication device from being redundantly displayed in the list. For example, the identification information of the communication device operating as the transmission source of the advertising information can be stored in the advertising information. In addition, if the communication device is discovered by a known discovery process, the CPU 103 can obtain the identification information of the discovered communication device. Therefore, if the identification information of the communication device operating as the transmission source of the advertising information matches the identification information of the communication device discovered by the known discovery process, the CPU 103 controls so as to prevent the same communication device from being redundantly displayed.
[0160] Furthermore, if a communication device for which a specific internal access point is valid is selected from the communication devices displayed in the list, the CPU 103 may perform communication via In this case, the CPU 103 sends connection information for connecting to a specific internal access point to the selected communication device.
[0161] The connection information includes, for example, the SSID of a specific internal access point and a password for connecting to the specific internal access point. The CPU 103 can obtain the password for connecting to the specific internal access point by receiving an input from the user, or can obtain the password by obtaining the password from an application for printing without receiving an input from the user.
[0162] When sending the connection information, the information processing device 101 and the selected communication device communicate via The communication methods are connected to each other via a specific internal access point. Then, CPU 103 The communication device transmits connection setting information for registering the access point 131 as a connection destination of the selected communication device to the selected communication device. As a result, the infrastructure connection mode is set to the selected communication device.
[0163] In this way, the CPU 103 can switch whether to perform the connection setting process via the low energy Bluetooth or via the wireless Bluetooth, depending on which communication device the user has selected via the list. In other words, if the selected communication device is a communication device operating as a transmission source of advertisement information received by the information processing device 101, or a communication device to which the information processing device 101 is connected via Bluetooth low energy, the CPU 103 performs connection setting processing via Bluetooth low energy. On the other hand, if the selected communication device is a communication device for which a specific internal access point is valid, the CPU 103 performs connection setting processing via Bluetooth low energy. Perform connection setup processing.
[0164] (Other Exemplary Embodiments)
[0165] In the above-described exemplary embodiment, the communication device 151 that is the target of the connection setting process is registered as the communication destination of the information processing device 101, but the registration of the communication device 151 is not limited to this configuration. For example, if it is detected that the communication device 151 that is the target of the connection setting process has been registered to the information processing device 101 as the communication destination based on the acquired identification information of the communication device 151 or the like, the information processing device 101 may stop the connection setting process and present a display indicating that fact on the display unit 108 of the information processing device 101.
[0166] In the above-described exemplary embodiment, the communication system is configured in such a manner that the information processing device 101 is connected to the access point in the communication device 151 by direct connection, but the direct connection is not limited thereto. For example, the communication system may be configured in such a manner that the communication device 151 is connected to the access point in the information processing device 101. In this case, the information processing device 101 transmits connection setting information in which the SSID and the password of the access point in the information processing device 101 are stored to the communication device 151. Then, the communication device 151 is connected to the access point 101 in the information processing device 101 by the wireless LAN communication method by using the SSID and the password of the access point in the information processing device 101 contained in the received connection setting information.
[0167] The above-described exemplary embodiments include a configuration in which GATT communication is terminated after the connection setup process is completed, but processing GATT communication is not limited to this configuration. More specifically, the communication system may be configured to maintain a state in which GATT communication can be performed, and to enable information to be acquired when required by GATT communication even after the connection setup process is completed. In this case, for example, as described in the description of the sixth exemplary embodiment, the communication system may be configured in the following manner: the information processing device 101 and the communication device 151 exchange notifications indicating whether the connection setup has succeeded through GATT communication, and perform processing (processing for retrying the connection setup), for example, based on the result thereof.
[0168] The above-described exemplary embodiment includes a configuration in which, if the connection setting process is performed to connect the communication device 151 to an access point other than the access point 131 to which the information processing device 101 is connected, the connection destination of the communication unit 111 is switched. However, switching the connection destination is not limited to this configuration. More specifically, the information processing device 101 may be configured in such a manner that the information processing device 101 does not automatically switch the connection destination of the communication unit 111, but the user manually switches the connection destination of the communication unit 111 appropriately, thereby making the communication device 151 and the information processing device 101 communicable with each other. However, in this case, for example, the communication device 151 as the target of the connection setting may be missing from the list of registrable communication devices immediately after the connection setting process. Therefore, the result of the process for identifying the communication device 151 as the target of the connection setting from the list of registrable communication devices may end up being erroneous. In this case, the user first manually switches the connection destination of the communication unit 111, and connects the information processing device 101 to the access point to which the communication device 151 is connected. This switching causes updating of the list of registrable communication devices, so that the user can make the communication device 151 and the information processing device 101 communicable with each other by selecting the communication device 151 as a target of connection setting from the updated list.
[0169] In the above-described exemplary embodiments, it is assumed that an instruction to perform a connection setup process is issued from a user when a low-energy Bluetooth connection is not established between the communication device 151 and the information processing device 101. However, the issuance of the instruction is not limited to this configuration. For example, an instruction to perform a connection setup process may be issued from a user when a low-energy Bluetooth connection is previously established between the communication device 151 and the information processing device 101. In this case, the process for establishing a low-energy Bluetooth connection (step S202, step S204, step S205, step S302, step S304, step S305, etc.) is omitted.
[0170] In the above-described exemplary embodiment, it is assumed that the connection setting process is started when the user presses the printer setting button 403. However, the start of the connection setting process is not limited to this configuration. For example, the communication system can be constructed in such a way that the connection setting process is automatically started after pairing is performed. In this case, a low-energy Bluetooth connection is established by pairing between the communication device 151 and the information processing device 101, so that the process for establishing a low-energy Bluetooth connection (step S202, step S204, step S205, step S302, step S304, step S305, etc.) is omitted. In addition, for example, in the case where this configuration is applied to the seventh exemplary embodiment, the processes (selection process) in steps S1937 and S1938 can be omitted in the connection setting process that automatically starts after pairing is performed. In other words, the communication system can be constructed in such a way that the selection process is omitted in the connection setting process that automatically starts after pairing is performed, and the selection process is performed in the connection setting process that starts when the user presses the printer setting button 403. This is because the communication device connected by pairing is likely to be a device to be a target of the connection setting process automatically started after pairing is performed, so that the target device can be determined even without receiving the user's selection.
[0171] The embodiments can also be implemented by providing a program capable of implementing one or more functions of the exemplary embodiments described above to a system or device via a network or storage medium, and causing one or more processors in a computer of the system or device to read out and execute the program. The embodiments can also be implemented by using a circuit capable of implementing one or more functions (e.g., an application specific integrated circuit (ASIC)).
[0172] According to the embodiments, infrastructure connections may further be easily and simply established.
[0173] The embodiments of the present invention 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 one or more functions in the above-mentioned embodiments, and / or a computer of a system or device including one or more circuits (e.g., an application-specific integrated circuit (ASIC)) for performing one or more functions in the above-mentioned embodiments, and the embodiments of the present invention may be implemented by a method in which, for example, a computer of a system or device reads out and executes computer executable instructions from a storage medium to perform one or more functions in the above-mentioned embodiments, and / or controls one or more circuits to perform one or more functions in the above-mentioned embodiments. The computer may include one or more processors (e.g., a central processing unit (CPU), a microprocessing unit (MPU)), and may include a network of separate computers or separate processors to read 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 memory of a distributed computing system, an optical disk (such as a compact disc (CD), a digital versatile disc (DVD), or a Blu-ray disc (BD)) TM ), a flash memory device, a memory card, and the like.
[0174] The embodiments of the present invention may also be implemented by providing software (program) for performing the functions of the above-described embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.
[0175] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments.The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Claims
1. An information processing device, which communicates with a communication device through a first wireless communication method or a second wireless communication method, and communicates with an external access point located outside the information processing device and the communication device through the second wireless communication method, wherein the first wireless communication method is The second wireless communication method is The information processing device comprises: an execution unit configured to execute a first discovery process for discovering a first communication device and a second discovery process for discovering a second communication device, wherein the first communication device is a communication device capable of communicating based on the first wireless communication method and the second communication device is a communication device capable of communicating based on the second wireless communication method, a display control unit configured to display one or more first communication devices discovered by the first discovery process and one or more second communication devices discovered by the second discovery process, a receiving unit configured to receive a user instruction, the user instruction being a selection operation for selecting a communication device from one or more communication devices discovered by at least one of the first discovery process and the second discovery process; an establishing unit configured to, in a case where a first communication device is selected by the user instruction, establish a connection between the information processing device and the first communication device by the first wireless communication method based on the user instruction, and in a case where a second communication device is selected by the user instruction, establish a connection between the information processing device and the second communication device by the second wireless communication method based on the user instruction; as well as a transmitting unit configured to, in a case where a connection between the information processing device and the first communication device by the first wireless communication method is established based on the user instruction, transmit connection information for connecting to the external access point by the second wireless communication method to the first communication device by the first wireless communication method, and in a case where a connection between the information processing device and the second communication device by the second wireless communication method is established based on the user instruction, transmit the connection information to the second communication device by the second wireless communication method; wherein, when the first communication device receives the connection information, a connection is established between the external access point and the first communication device using the second wireless communication method, and When the second communication device receives the connection information, a connection is established between the external access point and the second communication device using the second wireless communication method.
2. The information processing device according to claim 1, in, The connection information transmitted in the case of establishing a connection between the information processing apparatus and the first communication apparatus by the first wireless communication method based on the user instruction is connection information for connecting to the external access point by the second wireless communication method to which the information processing apparatus is connected.
3. The information processing device according to claim 1, in, The connection information is connection information for connecting to the external access point selected from a list of one or more external access points through the second wireless communication method.
4. The information processing device according to claim 3, further comprising: an acquiring unit, configured to acquire the list from the first communication device; Therein, any external access point is selected from the acquired list.
5. The information processing device according to claim 3, in, in a case where the list includes the external access point to which the information processing apparatus is connected by the second wireless communication method, transmitting connection information for connecting to the external access point by the second wireless communication method, the information processing apparatus being connected to the external access point by the second wireless communication method, and Wherein, when the list does not include the external access point to which the information processing device is connected via the second wireless communication method, connection information for connecting to the external access point selected by the user from the list via the second wireless communication method is transmitted.
6. The information processing device according to claim 1, wherein: receiving a signal including information for communicating with the first communication device from the first communication device by the first wireless communication method, and Based on the signal, sending a request to start communication to the first communication device by the first wireless communication method; After sending the request, a connection is established between the information processing device and the first communication device via the first wireless communication method.
7. The information processing device according to claim 1, in, The connection between the information processing device and the second communication device by the second wireless communication method is a connection between the information processing device and an internal access point located inside the second communication device by the second wireless communication method.
8. The information processing device according to claim 1, in, A connection between the information processing device and the second communication device by the second wireless communication method is established without receiving an input of a password for establishing the connection between the information processing device and the second communication device by the second wireless communication method from a user.
9. The information processing device according to claim 1, further comprising: a job receiving unit configured to receive an input of a password for connecting to the external access point by the second wireless communication method; and The connection information includes the input password.
10. The information processing device according to claim 1, further comprising: displaying in a list the first communication device discovered by the first discovery process and the second communication device discovered by the second discovery process, A control unit is configured to perform control so that if a communication device capable of communicating based on a first wireless communication method and communicating based on a second wireless communication method is found, repeated display of the communication device capable of communicating based on the first wireless communication method and communicating based on the second wireless communication method in the list is avoided.
11. The information processing device according to claim 1, in, When the information processing device is connected to the external access point by the second wireless communication method after receiving the user instruction, the connection information is transmitted to the first communication device, and when the information processing device is not connected to the external access point by the second wireless communication method after receiving the user instruction, information for connection between the first communication device and the information processing device not via the external access point is transmitted, and the connection information is not transmitted to the first communication device.
12. The information processing device according to claim 1, in, The first wireless communication method is low energy consumption 13. The information processing device according to claim 1, in, The connection between the information processing device and the second communication device by the second wireless communication method is via Wi-Fi The connection between the information processing device and the second communication device.
14. The information processing device according to claim 1, further comprising: A job transmission unit is configured to transmit a print job for causing the communication device to print to the first communication device via the external access point by the second wireless communication method.
15. The information processing device according to claim 1, in, One or more first communication devices that transmit predetermined information among the one or more first communication devices discovered through the first discovery process are displayed, and one or more first communication devices that do not transmit predetermined information among the one or more first communication devices discovered through the first discovery process are not displayed.
16. The information processing device according to claim 15, in, displaying one or more first communication devices discovered by the first discovery process through a predetermined application included in the information processing device, The predetermined information is information indicating a first communication device that is supported by the predetermined application to send the predetermined information.
17. The information processing device according to claim 15, in, The predetermined information does not include information indicating that the first communication device sending the predetermined information is in an error state or a busy state.
18. A method for controlling an information processing device, wherein the information processing device communicates with a communication device through a first wireless communication method or a second wireless communication method, and communicates with an external access point located outside the information processing device and the communication device through the second wireless communication method, wherein the first wireless communication method is The second wireless communication method is The control method comprises: performing a first discovery process for discovering a first communication device that is capable of communicating based on the first wireless communication method and a second discovery process for discovering a second communication device that is capable of communicating based on the second wireless communication method, displaying one or more first communication devices discovered by the first discovery process and one or more second communication devices discovered by the second discovery process, receiving a user instruction, the user instruction being a selection operation for selecting a communication device from one or more communication devices discovered by at least one of the first discovery process and the second discovery process; In a case where a first communication device is selected by the user instruction, a connection between the information processing device and the first communication device by the first wireless communication method is established based on the user instruction, and in a case where a second communication device is selected by the user instruction, a connection between the information processing device and the second communication device by the second wireless communication method is established based on the user instruction; as well as in a case where a connection between the information processing device and the first communication device by the first wireless communication method is established based on the user instruction, sending connection information for connecting to the external access point by the second wireless communication method to the first communication device by the first wireless communication method, and in a case where a connection between the information processing device and the second communication device by the second wireless communication method is established based on the user instruction, sending the connection information to the second communication device by the second wireless communication method; wherein, when the first communication device receives the connection information, a connection is established between the external access point and the first communication device using the second wireless communication method, and When the second communication device receives the connection information, a connection is established between the external access point and the second communication device using the second wireless communication method.
19. A non-volatile computer-readable storage medium storing a program, the program causing an information processing device to execute a control method, the information processing device communicating with a communication device by a first wireless communication method and communicating with an external access point located outside the information processing device and the communication device by a second wireless communication method, the first wireless communication method being The second wireless communication method is in, The control method comprises: performing a first discovery process for discovering a first communication device that is capable of communicating based on the first wireless communication method and a second discovery process for discovering a second communication device that is capable of communicating based on the second wireless communication method, displaying one or more first communication devices discovered by the first discovery process and one or more second communication devices discovered by the second discovery process, receiving a user instruction, the user instruction being a selection operation for selecting a communication device from one or more communication devices discovered by at least one of the first discovery process and the second discovery process; in a case where a first communication device is selected by the user instruction, establishing a connection between the information processing device and the first communication device by the first wireless communication method based on the user instruction, and in a case where a second communication device is selected by the user instruction, establishing a connection between the information processing device and the second communication device by the second wireless communication method based on the user instruction; and in a case where a connection between the information processing device and the first communication device by the first wireless communication method is established based on the user instruction, sending connection information for connecting to the external access point by the second wireless communication method to the first communication device by the first wireless communication method, and in a case where a connection between the information processing device and the second communication device by the second wireless communication method is established based on the user instruction, sending the connection information to the second communication device by the second wireless communication method; wherein, when the first communication device receives the connection information, a connection is established between the external access point and the first communication device using the second wireless communication method, and When the second communication device receives the connection information, a connection is established between the external access point and the second communication device using the second wireless communication method.
