COMMUNICATION DEVICE, CONTROL METHOD, AND PROGRAM

By maintaining parallel connections with different communication speeds and implementing exclusive control, the process of establishing device connections is optimized, addressing the need for improved connection execution in device communication.

JP7536843B2Active Publication Date: 2024-08-20CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2022182253
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-11-15
Publication Date
2024-08-20
Estimated Expiration
2038-07-31

AI Technical Summary

Technical Problem

There is a growing demand for more appropriate execution of the process of establishing a connection between a communication device and an external device by communicating connection information, particularly in the context of increasing device communication trends.

Method used

Maintain parallel connections using different communication methods with varying speeds, and implement exclusive control to manage the exchange of connection information through these connections, ensuring appropriate processing for establishing a connection.

Benefits of technology

This approach allows for the effective and efficient execution of connection processing between devices, ensuring that connection information is handled appropriately and prioritizing the completion of initial connection requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007536843000004
    Figure 0007536843000004
  • Figure 0007536843000003
    Figure 0007536843000003
  • Figure 0007536843000008
    Figure 0007536843000008
Patent Text Reader

Abstract

The object is to appropriately execute processing for establishing a connection between a communication device and an external device by communicating connection information. [Solution] The problem is solved by providing a communication device having a control means that causes the communication device to operate in a first exclusive state in which the connection information is not received via the first connection, or in a second exclusive state in which the communication device is not connected to the external device corresponding to the connection information received via the first connection, based on a specified command being received via the second connection.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication device, a control method, and a program. [Background technology]

[0002] One method for connecting an information processing device such as a smartphone to a network-compatible communication device such as a printer by a communication method such as wireless LAN communication is to connect via an external device such as a wireless LAN router. This connection method is called infrastructure connection. By establishing an infrastructure connection, the information processing device and the communication device can, for example, perform two-way communication or connect to the Internet to use services on the Internet. In order to establish a connection between such an information processing device and the communication device, a form is known in which the information processing device transmits connection information for connecting to the external device to the communication device, and the communication device executes connection settings for connecting to the external device based on the connection information.

[0003] Patent document 1 describes an information processing device that obtains from the communication device a list of access points to which the communication device can connect, transmits to the communication device information regarding an access point selected by a user from the list, and connects to the communication device via the access point. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2007-048211 A Summary of the Invention [Problem to be solved by the invention]

[0005] In recent years, the number of cases where communication between devices is utilized has been on the rise, and there is a greater demand than ever for more appropriately executing a process for establishing a connection between a communication device and an external device by communicating connection information.

[0006] An object of the present invention is to appropriately execute a process for establishing a connection between a communication device and an external device by communicating connection information. [Means for solving the problem]

[0007] Therefore, in order to achieve the above object, the present invention provides A communication device capable of operating in a state in which a first connection with a first terminal device by a first communication method and a second connection with a second terminal device by a second communication method having a communication speed faster than that of the first communication method are maintained in parallel, the first terminal device, and 2 A control method for a system including a terminal device, A process for transmitting connection information for connecting to an external device that is an external device outside the first terminal device, an external device outside the second terminal device, and an external device outside the communication device, via the first connection. The first terminal device a first sending step to be performed; The connection information is transmitted via the first connection. By the communication device A first receiving step of receiving; transmitting the connection information over the second connection; By the second terminal device a second sending step to be performed; The connection information is transmitted via the second connection. By the communication device a second receiving step of receiving; The connection information is provided via the first connection. By the communication device If received, over the first connection By the communication device The external device and the communication device corresponding to the received connection information are By the communication device and when the connection information is received via the second connection, the external device and the communication device corresponding to the connection information received via the second connection are connected to each other. By the communication device a connecting step for connecting; at least one of a first exclusive control and a second exclusive control based on predetermined information being received via the second connection while the first connection and the second connection are maintained in parallel; By the communication device The control steps to be performed; having The first exclusive control is a control for preventing the communication device from receiving the connection information via the first connection, and the second exclusive control is a control for preventing the communication device from connecting to the external device corresponding to the connection information received via the first connection. Effect of the Invention

[0008] According to the present invention, it is possible to appropriately execute a process for establishing a connection between a communication device and an external device by communicating connection information. [Brief description of the drawings]

[0009] [Figure 1] 1 is a diagram illustrating an example of a configuration of an information processing device and a communication device according to an embodiment of the present invention. [Diagram 2] FIG. 11 is a diagram showing an example of a setting screen displayed by a terminal device according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram for explaining BLE communication in an embodiment of the present invention. [Figure 4] 11 is a sequence diagram illustrating an example of a connection setup process executed by the communication system according to the embodiment of the present invention. [Diagram 5] 11 is a sequence diagram illustrating an example of a connection setup process executed by the communication system according to the embodiment of the present invention. [Figure 6] FIG. 11 is a diagram showing an example of a screen displayed by a communication device according to an embodiment of the present invention. [Figure 7] 5 is a flowchart showing a connection setting process executed by a terminal device according to an embodiment of the present invention. [Figure 8] 5 is a flowchart showing a connection setting process executed by the communication device according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Preferred embodiments of the present invention will be described below with reference to the drawings. However, it should be understood that the scope of the present invention includes any modifications and improvements to the embodiments described below that are made based on the ordinary knowledge of those skilled in the art without departing from the spirit of the present invention.

[0011] (First embodiment) An information processing device and a communication device included in the communication system of the present embodiment will be described. In the present embodiment, a smartphone is exemplified as the information processing device, but is not limited thereto, and various devices such as a mobile terminal, a notebook PC, a tablet terminal, a PDA (Personal Digital Assistant), and a digital camera can be applied. In addition, in the present embodiment, a printer is exemplified as the communication device, but is not limited thereto, and various devices that can perform wireless communication with the information processing device can be applied. For example, if it is a printer, it can be applied to an inkjet printer, a full-color laser beam printer, a monochrome printer, and the like. In addition to printers, it can also be applied to copiers, facsimile machines, mobile terminals, smartphones, notebook PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, smart speakers, and the like. In addition, it can also be applied to a multifunction machine having multiple functions such as a copy function, a FAX function, and a print function.

[0012] First, the configuration of an information processing device of this embodiment and a communication device capable of communicating with the information processing device of this embodiment will be described with reference to the block diagram of Fig. 1. In addition, the following configuration will be described as an example in this embodiment, but this embodiment is applicable to devices capable of communicating with the communication device, and the functions are not particularly limited to those shown in this figure.

[0013] The terminal device 101 is an information processing device of this embodiment. The terminal device 101 includes an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, a display unit 108, a communication unit 109, a short-range communication unit 110, and an image capture device 111. The terminal device 101 is assumed to be a device such as a smartphone, but is not limited to a smartphone.

[0014] The input interface 102 is an interface for receiving data input and operational instructions from a user, and is composed of a physical keyboard, buttons, a touch panel, etc. Note that the output interface 107 described below and the input interface 102 may be configured in the same manner, so that the screen output and the reception of operations from the user are performed by the same configuration.

[0015] The CPU 103 is a system control unit, and controls the entire terminal device 101 .

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

[0017] The RAM 105 is composed of a static random access memory (SRAM) that requires a backup power source. Since the RAM 105 holds data using a primary battery (not shown) for data backup, it can store important data such as program control variables without volatilizing the data. The RAM 105 also has a memory area for storing setting information for the terminal device 101, management data for the terminal device 101, and the like. The RAM 105 is also used as the main memory and work memory for the CPU 103.

[0018] The external storage device 106 includes an application (a connection setting application described later) that provides a connection setting function. The external storage device 106 also includes various programs such as a print information generation program that generates print information that can be interpreted by the communication device 151, and an information transmission / reception control program that transmits and receives information to and from the communication device 151 connected via the communication unit 109. The external storage device 106 also stores various information used by these programs, as well as image data obtained from other information processing devices and the Internet.

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

[0020] The display unit 108 is composed of an LED (light emitting diode) and an LCD (liquid crystal display), and displays data and notifies the status of the terminal device 101. Note that a soft keyboard equipped with keys such as numeric input keys, a mode setting key, a decision key, a cancel key, and a power key may be provided on the display unit 108 to accept input from the user via the display unit 108.

[0021] The communication unit 109 is a configuration for connecting to a device such as the communication device 151 and performing data communication. For example, the communication unit 109 may directly communicate with the communication device 151 by wireless communication, or may communicate via an external access point (access point 131 (hereinafter, AP131)) that exists outside the terminal device 101 or the communication device 151. The access point is a device that constructs a network and determines a communication channel to be used in communication within the constructed network. In this embodiment, Wi-Fi (Wireless Fidelity) (registered trademark) is used as the wireless communication method of the communication unit 109, but Bluetooth Classic (registered trademark) or the like may also be used. In addition, the AP131 may be, for example, a device such as a wireless LAN router. In this embodiment, a method in which the terminal device 101 and the communication device 151 are directly connected to each other without going through an external access point is called a direct connection method. In addition, a method in which the terminal device 101 and the communication device 151 are connected to each other through an external access point is called an infrastructure connection method.

[0022] The short-range communication unit 110 is configured to perform data communication by wirelessly connecting to a device such as the communication device 151 at a short distance, and performs communication by a communication method different from that of the communication unit 109. The short-range communication unit 110 can be connected to a short-range communication unit 157 in the communication device 151. Note that, in this embodiment, Bluetooth Low Energy (BLE) is used as the communication method of the short-range communication unit 110, but other communication methods such as Bluetooth Classic and Wi-Fi Aware may also be used.

[0023] In this embodiment, the communication method used by the communication unit 109 has a higher communication speed than the communication method used by the short-range communication unit 110. The short-range communication unit 110 is configured to be used to exchange communication information for communication by the communication unit 109 with a device such as the communication device 151.

[0024] The photographing device 111 is a device that converts an image photographed by an image sensor into digital data. The digital data is temporarily stored in the RAM 105. After that, the digital data is converted into a predetermined image format by a program executed by the CPU 103, and is stored in the external storage device 106 as image data.

[0025] The communication device 151 is the communication device of this embodiment and includes a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, a short-range communication unit 157, an input interface 158, an output interface 159, a function control unit 160, a display unit 161, and the like.

[0026] The communication unit 156 is configured to connect to a device such as the terminal device 101 and execute data communication. In this embodiment, Wi-Fi is used as the wireless communication method of the communication unit 156, but Bluetooth Classic or the like may also be used. The communication unit 156 has an access point 156-a for connecting to a device such as the terminal device 101 as an access point inside the communication device 151. The access point can be connected to the communication unit 109 of the terminal device 101. The communication unit 156 may directly communicate with the terminal device 101 via the access point 156-a, or may communicate with the terminal device 101 via the AP 131. The access point 156-a may be hardware that functions as an access point, or the communication unit 156 may operate as the access point 156-a by software that functions as an access point. The access point inside the communication device 151 may be configured of multiple access points with different SSIDs and passwords. In this embodiment, the access points inside the communication device 151 include at least a connection setting AP, which will be described later.

[0027] The RAM 153 is composed of a DRAM or the like that requires a backup power source. Since the RAM 153 holds data by being supplied with a data backup power source (not shown), it can store important data such as program control variables without volatilizing the data. The RAM 153 is also used as the main memory and work memory of the CPU 154, and stores a receiving buffer for temporarily storing print information received from the terminal device 101, etc., and various other information.

[0028] ROM 152 stores fixed data such as control programs, data tables, and OS programs executed by CPU 154. In this embodiment, each control program stored in ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of an embedded OS stored in ROM 152. ROM 152 also has a memory area for storing data that needs to be held even when power is not supplied, such as setting information for communication device 151 and management data for communication device 151.

[0029] The CPU 154 is a system control unit, and controls the entire communication device 151 .

[0030] Based on information stored in the print engine 155 and the RAM 153 and a print job received from the terminal device 101, etc., an image is formed on a recording medium such as paper using a recording agent such as ink, and the print result is output. At this time, the print job sent from the terminal device 101, etc., has a large amount of transmission data and requires high-speed communication, so it is received via the communication unit 156, which can communicate faster than the short-range communication unit 157.

[0031] The short-range communication unit 157 is configured to establish a short-range wireless connection with a device such as the terminal device 101. In this embodiment, BLE is used as the communication method of the short-range communication unit 157, but other communication methods such as Bluetooth Classic and Wi-Fi Aware may also be used.

[0032] The input interface 158 is an interface for receiving data input and operation instructions from the user, and is composed of a physical keyboard, buttons, a touch panel, etc. Note that the output interface 159 described later and the input interface 158 may have the same configuration, and the screen output and the reception of operations from the user may be performed in the same configuration. The output interface 159 is an interface for the display unit 161 to perform control for data display and notification of the state of the communication device 151.

[0033] The function control unit 160 manages the functional operations of whether the communication device 151 operates its functions simultaneously or not.

[0034] The display unit 161 is composed of an LED (light-emitting diode), an LCD (liquid crystal display), etc., and performs data display and notification of the state of the communication device 151. Note that by installing a soft keyboard having keys such as a numerical input key, a mode setting key, a decision key, a cancel key, a power key, etc. on the display unit 161, it is also possible to receive input from the user via the display unit 161.

[0035] <Regarding BLE communication> Here, with reference to FIG. 3, the processing of transmitting advertisement information and receiving a start request for GATT (Generic Attribute Profile) communication in the BLE standard will be described. In this embodiment, since the short-range communication unit 157 operates as a slave device, it is assumed that the short-range communication unit 157 performs the above processing.

[0036] The short-distance communication unit 157 performs communication by dividing the 2.4 GHz frequency band into 40 channels (0 to 39 ch). The short-distance communication unit 157 uses the 37th to 39th channels for transmitting advertising information and receiving a GATT communication start request, and the 0th to 36th channels for data communication after BLE connection. In FIG. 3(a), the vertical axis indicates the power consumption of the short-distance communication unit 157, the horizontal axis indicates time, and the power consumption when transmitting advertising information using one channel is shown for each process. Tx305 indicates the total power consumption in the transmission process, which is a process of broadcasting advertising information, and Rx306 indicates the total power consumption in the reception process, which is a process of enabling a receiver to receive a GATT communication start request. The GATT communication start request is transmitted to the short-distance communication unit 157 by the short-distance communication unit 110 that has received the advertising information.

[0037] The transmission power 302 indicates the instantaneous power consumption due to the transmission process. The reception power 303 indicates the instantaneous power consumption due to the reception process. The microcomputer operating power 301 indicates the instantaneous power consumption when the microcomputer in the short-range communication unit 157 is operating. The reason why the microcomputer operates before, after, and between Tx305 and Rx306 is that the microcomputer needs to be started beforehand in order to execute or stop the transmission and reception process. In addition, when the advertisement information is transmitted through multiple channels, the power consumption increases by the number of channels through which the advertisement information is transmitted. In addition, while the microcomputer is not operating and the short-range communication unit 157 is in a power saving state, the sleep power 304 becomes the instantaneous power consumption of the short-range communication unit 157. In this way, the short-range communication unit 157 performs a transmission process using a predetermined channel, and then performs a reception process for a certain period of time using the same channel, thereby waiting for a start request for GATT communication to be transmitted from the short-range communication unit 110. When the short-range communication unit 157 receives a request to start GATT communication from the short-range communication unit 110, the short-range communication unit 157 establishes a BLE connection with the short-range communication unit 110, and thereafter, GATT communication with the short-range communication unit 110 becomes possible. Note that the BLE communication described below may be communication using advertisement information or may be GATT communication.

[0038] As shown in FIG. 3(b), the short-distance communication unit 157 repeats the transmission and reception of advertising information three times for each channel, and then stops the operation of the microcomputer and enters a power-saving state for a certain period of time. Hereinafter, a combination of the transmission and reception of advertising information by a specific channel is referred to as advertising. Also, the time interval for transmitting advertising information by a specific channel is referred to as advertising interval. Note that the number of times advertising is repeated from the first advertising until entering the power-saving state can be changed arbitrarily as long as it is three or less.

[0039] In this embodiment, the short-range communication unit 157 starts operating as a slave device in BLE based on the start of operation in the connection setting mode, receiving a user operation to enable the BLE function, the power of the communication device 151 being turned on, and the like.

[0040] <Regarding Wi-Fi communication (P2P (Peer to Peer) mode)> In order to establish a P2P (Peer to Peer) connection (hereinafter referred to as P2P connection) in Wi-Fi communication, the communication device 151 of this embodiment is assumed to operate in the P2P mode (software AP mode or Wi-Fi Direct (WFD) mode). In this embodiment, the P2P connection refers to a form in which devices are directly wirelessly connected to each other without going through an external device such as the AP 131. The communication device 151 operating in the P2P mode operates as a master device within the network to which the communication device 151 belongs. The P2P mode includes the WFD mode and the software AP mode described below.

[0041] Note that WFD is a standard formulated by the WiFi Alliance. The terminal device 101 and the communication device 151, which are WFD-compatible devices, can be directly wirelessly connected to each other without going through other access points by WFD. A device that is a WFD-compatible device and serves as an access point (parent station) is particularly called a Group Owner. And the mode in which a P2P connection is executed by WFD is called the WFD mode.

[0042] In addition, the communication device 151 has a software access point (soft AP) function for operating as an access point. The communication device 151 activates (starts up) the soft AP inside the communication device 151, and the terminal device 101 connects to the soft AP via normal Wi-Fi rather than WFD. By connecting in this way, the terminal device 101 and the communication device 151 can directly wirelessly connect to each other without going through other access points. By activating and operating the soft AP inside the communication device 151, the mode of executing the P2P connection is called the software AP mode. Note that when the software AP mode stops, the communication device 151 deactivates the soft AP inside the communication device 151, and the P2P connection with other devices using the soft AP becomes unavailable.

[0043] In the P2P mode, since the communication device 151 operates as the master device, the communication device 151 can determine which communication channel to use for communication in the P2P mode. For example, when the communication device 151 operates in parallel in the infrastructure mode and the P2P mode, the communication device 151 controls to also use the communication channel used for communication in the infrastructure mode for communication in the P2P mode. Also, for example, the communication device 151 may preferentially select the communication channel used for connection to the AP 131 as the channel to be used for communication in the P2P mode over other channels.

[0044] In addition, the connection information (such as SSID and password) for connecting to the communication device 151 in the P2P mode may be arbitrarily changed by a user operation on the operation unit of the communication device 151 or the like.

[0045] <Regarding Wi-Fi communication (infrastructure mode)> In order to establish an infrastructure connection (hereinafter, infrastructure connection) in Wi-Fi communication, the communication device 151 of this embodiment operates in infrastructure mode. Note that, in this embodiment, infrastructure connection refers to a form in which an external device that manages a network, such as the AP 131, operates as a parent device, and devices connect wirelessly to each other via the parent device. The communication device 151 operating in infrastructure mode operates as a child device within the network to which the communication device 151 belongs.

[0046] In the infrastructure mode, the communication device 151 and the terminal device 101 are connected via the AP 131, and communication between the communication device 151 and the terminal device 101 is possible via the AP 131. Note that the channel used for communication in the infrastructure mode here may be a frequency band other than 2.4 GHz (such as the 5.0 GHz band).

[0047] In order for the terminal device 101 to communicate with the communication device 151 via the AP 131, the terminal device 101 needs to recognize that the communication device 151 belongs to a network formed by the AP 131 and to which the terminal device 101 belongs. Specifically, the terminal device 101 transmits a search signal via the AP 131 to the network to which the terminal device 101 belongs, and confirms communication with the communication device 151.

[0048] In this embodiment, a state in which the terminal device 101 and the communication device 151 are simply connected to the same AP is regarded as an infrastructure connection state. That is, in the infrastructure connection state, the terminal device 101 and the communication device 151 only need to be connected to the same AP, and do not need to recognize that the other device belongs to the network to which they belong.

[0049] <Connection setup process> In this embodiment, the terminal device 101 executes settings (connection settings) for operating the communication device 151 in at least one communication mode of the infrastructure mode and the P2P mode, using wireless communication with the communication device 151. The connection setting process in this embodiment is also called cable-less setup (CLS) because it is executed by wireless communication.

[0050] The communication device 151 executes the connection setup process while operating in a connection setup mode, which is a mode for executing the connection setup process. The connection setup mode will be described in detail later.

[0051] The terminal device 101 performs a connection setting process when a predetermined application stored in the ROM 104, the external storage device 106, or the like is activated. The predetermined application is an application for setting an access point to which the communication device 151 is connected and for causing the communication device 151 to print image data, document data, or the like in the terminal device 101, and is hereinafter referred to as a connection setting application. The connection setting application may have other functions in addition to a function for setting an access point to which the communication device 151 is connected and a printing function. For example, when the communication device 151 has a scanning function, the connection setting application may have a function for scanning a document set in the communication device 151, a function for making other settings of the communication device 151, a function for checking the status of the communication device 151, and the like.

[0052] When the terminal device 101 connects the AP 131 and the communication device 151 and operates the communication device 151 in the infrastructure mode, the terminal device 101 wirelessly transmits an infrastructure setting command for operating the communication device 151 in the infrastructure mode to the communication device 151. The infrastructure setting command is, for example, information related to the AP 131. The information related to the AP 131 is, for example, the SSID (Service Set Identifier) ​​of the AP 131, a password for connecting to the AP 131, and the like.

[0053] On the other hand, when the terminal device 101 operates the communication device 151 in the P2P mode, the terminal device 101 wirelessly transmits a P2P setting command for operating the communication device 151 in the P2P mode to the communication device 151. Furthermore, the terminal device 101 acquires information for P2P connection with the communication device 151 from the communication device 151. The information for P2P connection with the communication device 151 is, for example, the SSID of the communication device 151 and a password for connecting to the communication device 151. Note that, when the communication device 151 receives the P2P setting command, the communication device 151 may enable a WFD function and operate as a Group Owner, or may enable an access point inside the communication device 151.

[0054] In this embodiment, a P2P connection for connection setting between the terminal device 101 and the communication device 151 is used for transmitting an infrastructure setting command or a P2P setting command and for acquiring information for P2P connection with the communication device 151 in the connection setting process. In this embodiment, there are two types of P2P connection for connection setting: a connection by Wi-Fi (a connection by the communication unit 109 and the communication unit 156) and a connection by BLE (a connection by the short-range communication unit 110 and the short-range communication unit 157).

[0055] Therefore, the following describes two connection setup processes: one using a Wi-Fi connection and the other using a BLE connection.

[0056] Note that a communication method other than Wi-Fi or BLE, such as Classic Bluetooth, may be used as the P2P connection for connection setup.

[0057] After a Wi-Fi infrastructure connection or a P2P connection is established between the terminal device 101 and the communication device 151 by the connection setting process, communication becomes possible between the terminal device 101 and the communication device 151 via the established connection. Specifically, for example, the terminal device 101 can transmit, to the communication device 151, a print job for causing the communication device 151 to execute printing or a scan job for causing the communication device 151 to execute scanning, via the established connection.

[0058] <About connection setting mode> As described above, communication device 151 can operate in the connection setting mode. A trigger for communication device 151 to start operating in the connection setting mode may be, for example, a user pressing a connection setting mode button, or communication device 151 starting up (powering on) for the first time after arrival. The connection setting mode button may be a hard button provided in communication device 151, or may be a soft button displayed on display unit 161 by communication device 151.

[0059] When the communication device 151 starts operating in the connection setting mode, it enables both Wi-Fi communication and BLE communication. Specifically, the communication device 151 enables an internal AP (connection setting AP) of the communication device 151 that is dedicated to the connection setting mode as an enabling process of Wi-Fi communication. This allows the communication device 151 to be in a state in which it can establish a P2P connection with the terminal device 101 by Wi-Fi. It is assumed that connection information (SSID and password) for connecting to the connection setting AP is held in advance in a connection setting application installed in the terminal device 101, and that the terminal device 101 recognizes the connection information for connecting to the connection setting AP in advance. Therefore, unlike the connection information of the AP enabled in the P2P mode, it is assumed that the connection information for connecting to the connection setting AP cannot be arbitrarily changed by the user. Note that in the connection setting mode, the communication device 151 may connect to the terminal device 101 by Wi-Fi Direct (WFD) instead of normal Wi-Fi. That is, the communication device 151 may act as a Group Owner and receive a setting command from the terminal device 101 through communication using WFD.

[0060] Furthermore, the communication device 151 starts transmitting advertising information as a process of enabling BLE communication. This puts the communication device 151 in a state in which it can establish a connection with the terminal device 101 via BLE. Note that in this embodiment, the communication device 151 is in a state in which it can receive a pairing request via BLE for a predetermined period after the BLE communication is enabled. Then, when the communication device 151 receives a pairing request via BLE during the predetermined period, it performs pairing with the device that has transmitted the pairing request, and establishes a BLE connection. When a pairing request via BLE is not received during the predetermined period, the communication device 151 may disable the BLE communication.

[0061] When the communication device 151 enables both Wi-Fi communication and BLE communication in the connection setting mode, it receives setting commands via those communications and executes processing according to the received setting commands.

[0062] 6-a is a home screen displayed by the communication device 151. The home screen includes a connection setting mode button 601, a button 602 for causing the communication device 151 to execute a scan process, a button 603 for causing the communication device 151 to execute a copy process, and a button 604 for causing the communication device 151 to execute a print process.

[0063] 6-b is a screen for notifying the user that the communication device 151 has started operating in the connection setting mode. This screen is displayed on the display unit 161 when the communication device 151 has started operating in the connection setting mode as a result of pressing the connection setting mode button 601. When this screen is displayed, the communication device 151 executes a process of enabling Wi-Fi communication and a process of enabling BLE communication.

[0064] 6-c shows a screen for notifying the user that an operation is required on the terminal device 101 side because the communication device 151 has started operating in the connection setting mode. This screen is displayed on the display unit 161 after the activation process of the Wi-Fi communication or the activation process of the BLE communication is completed.

[0065] FIG. 6-d is a screen displayed in a state where the communication device 151 receives a setting command and executes processing according to the received setting command.

[0066] <Connection Setting Process Using Wi-Fi> FIG. 4 is a sequence diagram showing the processing executed by each device in the connection setting process using Wi-Fi. The processing shown in the sequence diagram of FIG. 4 is realized, for example, by the CPU of each device reading a program stored in the memory of each device into the RAM of each device and executing it.

[0067] First, at S401, the terminal device 101 connects to the AP 131 via Wi-Fi.

[0068] Next, at S402, the communication device 151 starts operating in the connection setting mode. The connection setting mode is a mode for executing the connection setting of the communication device 151.

[0069] When the communication device 151 starts operating in the connection setting mode, it activates an internal AP (connection setting AP) of the communication device 151 dedicated to the connection setting mode. As a result, the communication device 151 becomes in a state where it can establish a P2P connection with the terminal device 101 via Wi-Fi. Connection information (SSID and password) for connecting to the connection setting AP is pre-held in the connection setting application installed in the terminal device 101, and it is assumed that the terminal device 101 has recognized in advance the connection information for connecting to the connection setting AP. Therefore, unlike the connection information of the AP activated in the P2P mode, the connection information for connecting to the connection setting AP cannot be arbitrarily changed by the user.

[0070] Note that when the communication device 151 starts operating in the connection setting mode, it further activates the BLE function and starts transmitting advertisement information. As a result, the communication device 151 becomes in a state where it can establish a connection with the terminal device 101 via BLE.

[0071] Next, in S403, the terminal device 101 accepts an instruction to execute a connection setting process from the user via a screen displayed on the display unit 108 by the connection setting application.

[0072] Next, in S404, the terminal device 101 stores in memory information about the AP (AP131) to which the terminal device 101 is connected when the terminal device 101 receives the instruction to execute the connection setting process. The information about the AP 131 includes, for example, connection information (SSID and password) for connecting to the AP 131, and information about the frequency and channel used for connecting to the AP 131.

[0073] Next, in S405, the terminal device 101 disconnects the connection with the AP 131 via Wi-Fi.

[0074] Next, in S406, the terminal device 101 uses connection information for connecting to a connection setting AP recognized in advance to establish a connection via Wi-Fi with the connection setting AP inside the communication device 151. As a result, the terminal device 101 temporarily establishes a P2P connection with the communication device 151 via Wi-Fi.

[0075] Next, in S407, the terminal device 101 transmits a connection setting process start command to the communication device 151 via the Wi-Fi connection. Note that after the connection setting process start command is transmitted, an AP list, which will be described later, is received, and therefore the connection setting process start command can also be regarded as a request command for the AP list.

[0076] It is assumed that the communication device 151 has not started Wi-Fi exclusive processing when it receives a start command for the connection setup process. In this case, in S408, the communication device 151 starts BLE exclusive processing. Specifically, the communication device 151 executes processing for not accepting the connection setup process in BLE. Since the communication device 151 also enables the BLE function in the connection setup mode, it is possible to establish and maintain a connection with another device by BLE and a connection by Wi-Fi in parallel. Therefore, after receiving a start command for the connection setup process via a connection by Wi-Fi, the communication device 151 may receive a start command for the connection setup process or a setting command via a connection by BLE. When the communication device 151 starts BLE exclusive processing, even if the communication device 151 receives a start command for the connection setup process or a setting command via a connection by BLE, it does not execute processing based on those commands. That is, in a state where the communication device 151 is executing BLE exclusive processing (exclusive state), even if the communication device 151 receives each command via BLE, it does not transmit an AP list or connect to an access point based on a setting command. Instead, the communication device 151 may transmit, for example, error information (notification information) indicating that the connection setup process is being performed by Wi-Fi to the device that transmitted the command by BLE. This allows the communication device 151 to preferentially accept the connection setup process from the device that transmitted the start command first.

[0077] Next, in S409, the communication device 151 searches for an access point to which the communication device 151 can connect via Wi-Fi. Then, the communication device 151 transmits the search result, that is, a list of access points to which the communication device 151 can connect via Wi-Fi (AP list), to the terminal device 101 via a connection via Wi-Fi. That is, the terminal device 101 acquires the AP list via a connection via Wi-Fi. The timing of the access point search is not limited to this timing, and may be, for example, immediately after starting operation in the connection setting mode.

[0078] Next, in S410, the terminal device 101 transmits an infrastructure setting command to the communication device 151 via a Wi-Fi connection. The infrastructure setting command includes connection information for connecting to an access point to be connected to the communication device 151. For example, if the AP list includes the AP 131 stored in the memory in S404, the access point to be connected to the communication device 151 is the AP 131 stored in the memory in S404. Also, for example, if the AP list does not include the AP 131 stored in the memory in S404, the access point to be connected to the communication device 151 is an access point selected by the user from the AP list. Here, a case will be described where the access point to be connected to the communication device 151 is the AP 131 stored in the memory in S404. At this time, the terminal device 101 may accept input of additional connection information (such as a password) for connecting to the AP 131 from the user, and transmit the additional connection information to the communication device 151 as an infrastructure setting command.

[0079] Next, in S411, the terminal device 101 disconnects the P2P connection with the communication device 151 via Wi-Fi.

[0080] Next, in S412, the terminal device 101 reconnects to the AP 131 via Wi-Fi using the connection information for connecting to the AP 131 stored in the memory in S404.

[0081] Next, in S413, the communication device 151 connects to the AP 131 via Wi-Fi using the connection information for connecting to the AP 131 received in S410 based on the infrastructure setting command. As a result, an infrastructure connection via the AP 131 is established between the terminal device 101 and the communication device 151. Suppose the communication device 151 is connected to the terminal device 101 via Wi-Fi and is connected to a terminal device other than the terminal device 101 via BLE. And in that state, suppose a start command for connection setting processing is received in S407. After that, even if the communication device 151 connects to the AP 131 via Wi-Fi in S413, the BLE connection between the communication device 151 and the terminal device other than the terminal device 101 is maintained. The communication device 151 can execute processing other than connection setting (for example, processing for exchanging status information of the communication device 151, etc.) via BLE, and by maintaining the BLE connection, the state in which those processes can be executed is maintained.

[0082] Next, in S412, the communication device 151 stops the BLE exclusive processing. Therefore, if connection setting processing is performed via BLE hereafter, the setting is reflected in the communication device 151. Thereby, the connection setting processing is completed.

[0083] <Connection Setting Processing Using BLE> FIG. 5 is a sequence diagram showing the processing executed by each device in the connection setting processing using BLE. The processing shown in the sequence diagram of FIG. 5 is realized, for example, by the CPU of each device reading out a program stored in the memory of each device into the RAM of each device and executing it.

[0084] First, in S501, the terminal device 101 connects to the AP 131 via Wi-Fi.

[0085] Next, in S502, the communication device 151 starts operating in the connection setting mode. The BLE function is enabled, and the transmission of advertisement information is started. As a result, the communication device 151 becomes in a state where it can establish a connection with the terminal device 101 via BLE.

[0086] When the communication device 151 starts operating in the connection setting mode, the Wi-Fi function is also enabled; details regarding enabling the Wi-Fi function are as described above.

[0087] Next, in S503, the terminal device 101 accepts an instruction to execute a connection setting process from the user via a screen displayed on the display unit 108 by the connection setting application.

[0088] In S504, the terminal device 101 responds to the advertising information received from the communication device 151 and establishes a P2P connection with the communication device 151 by BLE. Thereafter, the terminal device 101 executes pairing with the communication device 151 by BLE. Specifically, the terminal device 101 exchanges authentication information with the communication device 151. Thereafter, the terminal device 101 performs BLE communication that requires pairing using the exchanged authentication information. Note that if the terminal device 101 has already executed pairing with the communication device 151 (has exchanged authentication information), it is not necessary to execute pairing here.

[0089] Next, in S505, the terminal apparatus 101 transmits a command to start a connection setup process to the communication apparatus 151 via the connection according to BLE.

[0090] It is assumed that the communication device 151 has not started BLE exclusion processing when it receives a start command for the connection setup processing. In this case, in S506, the communication device 151 starts Wi-Fi exclusion processing. Specifically, the communication device 151 executes processing for not accepting the connection setup processing by Wi-Fi. In the connection setup mode, the communication device 151 also enables the Wi-Fi function, and therefore can establish and maintain a connection with another device by BLE and a connection by Wi-Fi in parallel. Therefore, after receiving a start command for the connection setup processing via a connection by BLE, the communication device 151 may receive a start command for the connection setup processing or a setting command via a connection by Wi-Fi. When the communication device 151 starts Wi-Fi exclusion processing, even if it receives a start command for the connection setup processing or a setting command via a connection by Wi-Fi, it does not execute processing based on those commands. That is, in a state where the communication device 151 is executing Wi-Fi exclusion processing (exclusion state), even if it receives each command via Wi-Fi, it does not transmit an AP list or connect to an access point based on a setting command. Instead, the communication device 151 may transmit, for example, error information indicating that the connection setup process is being executed by BLE to the device that transmitted the command, by Wi-Fi, which allows the communication device 151 to preferentially accept the connection setup process from the device that transmitted the start command first.

[0091] Next, in S506, the communication device 151 searches for an access point to which the communication device 151 can connect via Wi-Fi. Then, the communication device 151 transmits the search result, that is, a list of access points to which the communication device 151 can connect via Wi-Fi (AP list), to the terminal device 101 via a connection via BLE. That is, the terminal device 101 acquires the AP list via a connection via BLE. The timing of the access point search is not limited to this timing, and may be, for example, immediately after starting operation in the connection setting mode.

[0092] Next, in S507, the terminal device 101 transmits an infrastructure setting command to the communication device 151 via a connection by BLE. The infrastructure setting command includes connection information for connecting to an access point to be connected to the communication device 151. For example, if the AP list includes the AP 131 to which the terminal device 101 is connected, the access point to be connected to the communication device 151 is the AP 131 to which the terminal device 101 is connected. Also, for example, if the AP list does not include the AP 131 to which the terminal device 101 is connected, the access point to be connected to the communication device 151 is an access point selected by the user from the AP list. Here, a case will be described in which the access point to be connected to the communication device 151 is the AP 131 to which the terminal device 101 is connected. At this time, the terminal device 101 may accept input of additional connection information (such as a password) for connecting to the AP 131 from the user, and transmit the additional connection information to the communication device 151 as an infrastructure setting command.

[0093] Next, in S508, the communication device 151 connects to the AP 131 via Wi-Fi based on the infrastructure setting command, using the connection information for connecting to the AP 131 received in S507. This establishes an infrastructure connection between the terminal device 101 and the communication device 151 via the AP 131. This completes the connection setting process.

[0094] Next, in S509, the communication device 151 stops the Wi-Fi exclusive process. Therefore, if a connection setting process is performed over Wi-Fi after this, the setting is reflected in the communication device 151.

[0095] In this manner, even after the connection setup process by BLE is completed, the BLE communication function of the communication device 151 remains enabled. That is, the terminal device 101 and the communication device 151 remain connected by BLE. This is because the terminal device 101 and the communication device 151 can execute processes other than the connection setup (for example, a process of exchanging state information of the communication device 151) by BLE.

[0096] 7 is a flowchart showing the CLS executed by the terminal device 101. The process shown in this flowchart is realized, for example, by the CPU 103 reading a program (such as a connection setting application) stored in a memory such as the ROM 104 into the RAM 105 and executing the program. The process shown in this flowchart is assumed to be started in a state in which the terminal device 101 is connected to the AP 131 via Wi-Fi. The process shown in this flowchart is executed in a state in which the connection setting application is running on the terminal device 101 and the terminal device 101 is connected to the AP 131 via Wi-Fi. The connection between the terminal device 101 and the AP 131 via Wi-Fi may be established in a state in which the connection setting application is not running on the terminal device 101.

[0097] In S701, the terminal device 101 accepts, from the user, pressing of a connection setting button displayed by a connection setting application. This process corresponds to the processes of S403 and S503.

[0098] In S702, the terminal device 101 searches for a device to be the target of the connection setting process. Specifically, the CPU 103 searches for a Wi-Fi beacon or a BLE advertising signal emitted by a device operating in the connection setting mode. Then, the CPU 103 displays a list of devices to be the target of the connection setting process according to the received beacon or advertising information. Note that, as in the case of the communication device 151 described above, one device operating in the connection setting mode may have both the Wi-Fi function and the BLE function enabled. In that case, both the communication device 151 displayed by the Wi-Fi beacon and the communication device 151 displayed by the BLE beacon are displayed in the list.

[0099] In S703, the terminal device 101 accepts the user's selection from the list and identifies from the list a device that is to be the target of the connection setup process. Here, it is assumed that the device that is to be the target of the connection setup process is the communication device 151. Furthermore, if the user selects the communication device 151 displayed by a Wi-Fi beacon, the connection setup process is executed by Wi-Fi. Furthermore, if the user selects the communication device 151 displayed by a BLE advertising signal, the connection setup process is executed by BLE.

[0100] In S704, the terminal device 101 determines whether to execute the connection setup process by Wi-Fi. That is, the terminal device 101 determines whether the communication device 151 displayed by the Wi-Fi beacon or the communication device 151 displayed by the BLE advertising signal is selected. If the terminal device 101 executes the connection setup process by Wi-Fi, the process proceeds to S705, and if the terminal device 101 executes the connection setup process by BLE, the process proceeds to S715.

[0101] The process after it is determined in S704 that the Wi-Fi connection setup process is to be executed will be described below. In S705, the terminal device 101 stores in memory connection information for connecting to the AP 131 connected via Wi-Fi. This process corresponds to the process of S404.

[0102] In S706, the terminal device 101 disconnects the Wi-Fi connection with the AP 131, and establishes a Wi-Fi P2P connection with the communication device 151. This process corresponds to the processes of S405 and S406.

[0103] In S707, the terminal apparatus 101 transmits a command to start a connection setup process to the communication apparatus 151 via a Wi-Fi connection. This process corresponds to the process of S407.

[0104] In S708, the terminal apparatus 101 receives a response to the command to start the connection setup process from the communication device 151 via the Wi-Fi connection.

[0105] In S709, the terminal device 101 determines whether the response received in S708 is an AP list. If the response received in S708 is an AP list, the terminal device 101 proceeds to S711, and if the response received in S708 is not an AP list (the response received in S708 is error information), the terminal device 101 proceeds to S710.

[0106] In S710, the terminal device 101 displays a screen indicating that the communication device 151 is performing a connection setup process by BLE on the display unit 108 based on the received error information. After that, the terminal device 101 ends the connection setup process.

[0107] In S711, the terminal apparatus 101 transmits an infrastructure setting command to the communication apparatus 151 via a Wi-Fi connection. This process corresponds to the process of S410.

[0108] In S712, the terminal apparatus 101 disconnects the P2P connection via Wi-Fi with the communication apparatus 151. This process corresponds to the process of S411.

[0109] In S713, the terminal apparatus 101 reconnects to the AP 131 via Wi-Fi using the connection information for connecting to the AP 131 stored in the memory in S705. This process corresponds to the process of S412.

[0110] In S714, the terminal device 101 communicates with the communication device 151 via the AP 131 and acquires the capabilities and the like of the communication device 151. As a result, the terminal device 101 registers the communication device 151 as a device with which it will communicate in the future.

[0111] The following describes the processing after it is determined in S704 that the connection setup processing using BLE is to be executed. In S715, the terminal device 101 establishes a P2P connection using BLE with the communication device 151. This processing corresponds to the processing of S504.

[0112] In S716, the terminal apparatus 101 transmits a command to start a connection setup process to the communication apparatus 151 via the connection using BLE. This process corresponds to the process of S505.

[0113] In S717, the terminal apparatus 101 receives a response to the command to start the connection setup process from the communication apparatus 151 via the connection using BLE.

[0114] In S718, the terminal device 101 determines whether the response received in S717 is an AP list. If the response received in S717 is an AP list, the terminal device 101 proceeds to S720, and if the response received in S717 is not an AP list (the response received in S717 is error information), the terminal device 101 proceeds to S719.

[0115] In S719, the terminal device 101 displays a screen indicating that the communication device 151 is performing connection setup processing via Wi-Fi on the display unit 108 based on the received error information. After that, the terminal device 101 ends the connection setup processing.

[0116] In S720, the terminal apparatus 101 transmits an infrastructure setting command to the communication apparatus 151 via a BLE connection. This process corresponds to the process of S508.

[0117] In S721, the terminal device 101 communicates with the communication device 151 via the AP 131 and acquires the capabilities and the like of the communication device 151. As a result, the terminal device 101 registers the communication device 151 as a device with which to communicate in the future.

[0118] This allows the terminal device 101 to perform a connection setup process for the communication device 151. Furthermore, if a connection setup process is being executed by another device using a communication method different from the communication method used by the terminal device 101, it is possible to notify the user that the connection setup process by the terminal device 101 cannot be executed.

[0119] 8 is a flowchart showing a connection setting process executed by the communication device 151. Note that the process shown in this flowchart is realized, for example, by the CPU 154 reading a program stored in a memory such as the ROM 152 into the RAM 153 and executing the program.

[0120] First, in S801, the communication device 151 starts operation in a connection setting mode. This process corresponds to the processes of S402 and S502.

[0121] Next, in S802, the communication device 151 searches for access points to which the communication device 151 can connect via Wi-Fi, and generates an AP list.

[0122] Next, in S803, the communication device 151 determines whether to execute CLS by Wi-Fi. Specifically, for example, the communication device 151 determines whether it has received a connection request by Wi-Fi from the terminal device 101 or a connection request by BLE from the terminal device 101. When the communication device 151 receives a connection request by Wi-Fi from the terminal device 101 and the result of this determination is YES, the process proceeds to S804 and executes a connection setup process by Wi-Fi. On the other hand, when the communication device 151 receives a connection request by BLE from the terminal device 101 and the result of this determination is NO, the process proceeds to S814 and executes a connection setup process by BLE.

[0123] The process after it is determined in S803 that the Wi-Fi connection setup process is to be executed will be described below. In S804, the communication device 151 establishes a P2P connection with the terminal device 101 via Wi-Fi based on receiving a Wi-Fi connection request from the terminal device 101. This process corresponds to the process of S406.

[0124] Next, in S805, the communication device 151 receives a command to start a connection setting process via Wi-Fi from the terminal device 101. This process corresponds to the process of S407.

[0125] Next, in S806, the communication device 151 starts BLE exclusion processing. This processing corresponds to the processing of S408.

[0126] Next, in S807, the communication device 151 transmits the AP list generated in S802 to the terminal device 101 via Wi-Fi. This process corresponds to the process of S409.

[0127] Next, in S808, the communication device 151 receives an infrastructure setting command from another device.

[0128] Next, in S809, the communication device 151 determines whether or not the infrastructure setting command has been received via Wi-Fi. If the infrastructure setting command has been received via Wi-Fi, the communication device 151 proceeds to S811, and if the infrastructure setting command has not been received via Wi-Fi (if the command has been received via BLE), the communication device 151 proceeds to S810.

[0129] In S810, the communication device 151 transmits, via BLE, to the device that transmitted the infrastructure setting command, error information indicating that a connection setting process is being performed via Wi-Fi. Thereafter, the communication device 151 waits until it receives an infrastructure setting command, and returns to S808.

[0130] In S811, the communication device 151 releases the P2P connection via Wi-Fi with the terminal device 101. This process corresponds to the process of S411.

[0131] Next, in S812, the communication device 151 connects to the AP 131 based on the infrastructure setting command. This process corresponds to the process of S413.

[0132] Next, in S813, the communication device 151 stops the BLE exclusion process. This process corresponds to the process of S414. After that, the communication device 151 ends the connection setting process.

[0133] The process after it is determined in S803 that the connection setup process using BLE is to be executed will be described below. In S814, the communication device 151 establishes a P2P connection with the terminal device 101 using BLE based on the reception of a connection request using BLE from the terminal device 101. This process corresponds to the process of S504.

[0134] Next, in S815, the communication device 151 receives a command to start a connection setup process by BLE from the terminal device 101. This process corresponds to the process of S505.

[0135] Next, in S816, the communication device 151 starts Wi-Fi exclusion processing. This processing corresponds to the processing of S506.

[0136] Next, in S817, the communication device 151 transmits the AP list generated in S802 to the terminal device 101 by BLE.

[0137] Next, in S818, the communication device 151 receives an infrastructure setting command from another device.

[0138] Next, in S819, the communication device 151 determines whether or not the infrastructure setting command has been received via BLE. If the infrastructure setting command has been received via BLE, the communication device 151 proceeds to S821, and if the infrastructure setting command has not been received via BLE (if the command has been received via Wi-Fi), the communication device 151 proceeds to S820.

[0139] In S820, the communication device 151 transmits error information indicating that the connection setting process is being performed by BLE to the device that transmitted the infrastructure setting command by Wi-Fi. After that, the communication device 151 waits until receiving the infrastructure setting command, and returns to S818.

[0140] Next, in S821, the communication device 151 connects to the AP 131 based on the infrastructure setting command. This process corresponds to the process of S509.

[0141] Next, in S822, the communication device 151 stops the BLE exclusion process. This process corresponds to the process of S510. After that, the communication device 151 ends the connection setting process.

[0142] This allows the communication device 151 to perform connection setup processing in response to an instruction from the terminal device 101. Furthermore, when the connection setup processing is being performed in response to an instruction received from another device in a communication method different from the communication method used by the communication device 151, it is possible to notify the user that the connection setup processing by the terminal device 101 cannot be performed.

[0143] Each pattern in which exclusive control is executed as described above will be described.

[0144] For example, it is assumed that the communication device 151 starts operation in a connection setting mode in response to an instruction from a user, and enables both the Wi-Fi function and the BLE function. Then, it is assumed that the terminal device A establishes a P2P connection with the communication device 151 by Wi-Fi, and the terminal device B establishes a P2P connection with the communication device 151 by BLE. Then, it is assumed that the terminal device B transmits an infrastructure setting command to the communication device 151 via the connection by BLE before the terminal device A does. In this case, the communication device 151 starts a Wi-Fi exclusive process, and does not apply a start command or a setting command transmitted from the terminal device A via Wi-Fi until the connection setting process by BLE is completed. Note that, as described above, when the communication device 151 receives a start command or a setting command from the terminal device A via Wi-Fi while performing the Wi-Fi exclusive process, the communication device 151 may transmit error information to the terminal device A to notify that the connection setting process is being performed.

[0145] Also, for example, it is assumed that the communication device 151 starts operation in a connection setting mode in response to an instruction from a user, and enables both the Wi-Fi function and the BLE function. Then, it is assumed that the terminal device A establishes a P2P connection with the communication device 151 via BLE, and the terminal device B establishes a P2P connection with the communication device 151 via Wi-Fi. Then, it is assumed that the terminal device B transmits an infrastructure setting command to the communication device 151 via a connection via Wi-Fi before the terminal device A does. In this case, the communication device 151 starts a BLE exclusion process, and does not apply a start command or a setting command transmitted from the terminal device A via BLE until the connection setting process via Wi-Fi is completed. Note that, as described above, when the communication device 151 receives a start command or a setting command from the terminal device A via BLE while performing the BLE exclusion process, the communication device 151 may transmit error information to the terminal device A to notify that the connection setting process is being performed.

[0146] In this manner, in the present embodiment, when the communication device 151 transitions to the connection setting mode in response to an instruction from the user, the communication device 151 enables both the Wi-Fi function and the BLE function, and is in a state in which the connection setting process can be executed in both communication methods. With this configuration, the user does not need to perform separate operations on the communication device 151 for executing the connection setting process with the Wi-Fi function and for executing the connection setting process with the BLE function. The user can enable both the Wi-Fi function and the BLE function of the communication device 151 with a single operation.

[0147] In addition, in this embodiment, after enabling both the Wi-Fi function and the BLE function, the communication device 151 executes the connection setup process by preferentially using the communication method used in the communication of the first received start command. That is, the communication method other than the communication method used in the communication of the first received start command is excluded, and the connection setup process by the other communication method is not accepted. By adopting such a form, the connection setup process executed first can be applied preferentially.

[0148] (Other embodiments) In the above, the embodiment in which the communication device 151 is operated in infrastructure mode by the connection setting process has been described, but the embodiment is not limited to this embodiment. The communication device 151 may be operated in P2P mode by the connection setting process. For example, the terminal device 101 displays a setting screen 200 shown in FIG. 2 on the display unit. When the infrastructure connection start button 202 is selected by the user, the terminal device 101 transmits an infrastructure setting command and preferentially sets the infrastructure mode to the communication device 151. On the other hand, when the P2P connection start button 203 is selected by the user, the terminal device 101 transmits a P2P mode setting instruction to the communication device 151 without transmitting an infrastructure setting command. That is, the terminal device 101 preferentially sets the P2P mode to the communication device 151. The communication device 151 that has received the P2P mode setting instruction operates in the P2P mode without connecting to the AP 131. Furthermore, when the automatic connection start button 209 is selected by the user, the terminal device 101 automatically selects whether to operate the communication device 151 in infrastructure mode or P2P mode by a connection setting process. Specifically, when the terminal device 101 is connected to any AP by Wi-Fi, it selects to operate the communication device 151 in infrastructure mode and transmits an infrastructure setting command to the communication device 151. On the other hand, when the terminal device 101 is not connected to any AP by Wi-Fi, it selects to operate the communication device 151 in P2P mode and transmits a P2P mode setting instruction to the communication device 151. Note that the setting screen 900 may include, for example, an area 901 that notifies the user that the communication device 151 will be switched to the CLS mode.

[0149] In the above, the communication device 151 is operated in an infrastructure mode using an AP to which the terminal device 101 is connected, but the present invention is not limited to this mode. For example, the communication device 151 may be operated in an infrastructure mode using an AP to which the terminal device 101 is not connected. For example, the terminal device 101 displays a list of APs to be connected to the communication device 151 on the display unit 108. Note that this list may be a list of APs searched for by the terminal device 101 itself via Wi-Fi, or may be a list of APs searched for by the communication device 151 via Wi-Fi. In the latter case, the terminal device 101 acquires information on the list of APs searched for by the communication device 151 via Wi-Fi through a BLE connection with the communication device 151. Then, the terminal device 101 accepts, from the user, the selection of an AP from the list and input of connection information (such as a password) for connecting to the AP selected by the user, and transmits an infrastructure setting command including the connection information to the communication device 151. This allows the terminal device 101 to operate the communication device 151 in infrastructure mode using an AP to which the terminal device 101 is not connected. Also, for example, when the terminal device 101 is connected to any AP, the terminal device 101 may preferentially connect the communication device 151 to the AP to which the terminal device 101 is connected. When the terminal device 101 is not connected to any AP, the terminal device 101 may preferentially connect the communication device 151 to an AP selected from the list as described above.

[0150] In the above embodiment, the communication device 151 is configured to control so that a setting instruction by the excluded communication method is not received while the exclusive process is being performed, but the present invention is not limited to this configuration. For example, the communication device 151 may disable communication by the excluded communication method while the exclusive process is being performed. That is, for example, the communication device 151 may disable the connection setting AP and disconnect Wi-Fi via the connection setting AP as the Wi-Fi exclusive process. Also, for example, the communication device 151 may disable the BLE function and disconnect BLE as the BLE exclusive process. Then, when the exclusive process is completed, the disabled communication function may be automatically enabled, and a connection with the terminal device by the enabled communication function may be automatically re-established. Note that the Wi-Fi connection by the connection setting AP is used only for the connection setting process, but the BLE connection can be used for other purposes besides the connection setting process. Therefore, for example, the communication device 151 may disable the connection setting AP as a Wi-Fi exclusion process, but may perform the exclusion process as described in the above embodiment without disabling the BLE function as a BLE exclusion process.

[0151] In the above embodiment, during the exclusion process, the communication device 151 notifies error information as a response to the start command of the connection setting process received by the excluded communication method. Therefore, during the exclusion process, the infrastructure setting command was not transmitted to the communication device 151 by the excluded communication method. That is, the state in which the communication device 151 is performing the exclusion process is a state in which the communication device 151 does not receive the infrastructure setting command. However, this is not limited to the above. For example, as long as the infrastructure setting command is transmitted to the communication device 151 even during the exclusion process, the communication device 151 may receive the infrastructure setting command but not apply it. That is, the state in which the communication device 151 is performing the exclusion process may be a state in which the communication device 151 receives the infrastructure setting command but does not connect to the access point corresponding to the received infrastructure setting command.

[0152] In the above embodiment, the trigger for the execution of the exclusion process is the reception of a start command for the connection setting process, but the present invention is not limited to this form. For example, the trigger for the execution of the exclusion process may be the reception of an infrastructure setting command (connection information for connecting to an AP). More specifically, in FIG. 4, the exclusion process of S408 is started between S407 and S409, but the exclusion process of S408 may be started between S410 and S411 based on the reception of an infrastructure setting command by Wi-Fi in S410. Also, in FIG. 5, the exclusion process of S506 is started between S505 and S507, but the exclusion process of S506 may be started between S508 and S509 based on the reception of an infrastructure setting command by Wi-Fi by BLE in S508. In addition, in such a form, the exclusion process is not executed until the infrastructure setting command is received, so that the AP list is acquired in both Wi-Fi and BLE as a response to the start command for the connection setting process.

[0153] The above-described embodiment can also be realized by supplying a program that realizes one or more functions of the above-described embodiment to a system or device via a network or a storage medium, and having one or more processors in a computer of the system or device execute the program. The above-described embodiment can also be realized by a circuit (e.g., ASIC) that realizes one or more functions. [Explanation of symbols]

[0154] 101 Terminal Equipment 151 Communication equipment

Claims

1. A method for controlling a system including a communication device capable of operating in a state in which a first connection with a first terminal device by a first communication method and a second connection with a second terminal device by a second communication method having a communication speed faster than that of the first communication method are maintained in parallel, the first terminal device, and the second terminal device, a first transmission step of executing, by the first terminal device, a process for transmitting connection information for connecting to an external device that is an external device outside the first terminal device, an external device outside the second terminal device, and an external device outside the communication device, via the first connection; a first receiving step of receiving the connection information by the communication device via the first connection; a second transmission step of executing, by the second terminal device, a process for transmitting the connection information via the second connection; a second receiving step of receiving the connection information by the communication device via the second connection; a connecting step of connecting, when the connection information is received by the communication device via the first connection, the external device corresponding to the connection information received by the communication device via the first connection to the communication device, and, when the connection information is received via the second connection, connecting, when the connection information is received by the communication device via the second connection, the external device corresponding to the connection information received via the second connection to the communication device; a control step of executing at least one of a first exclusive control and a second exclusive control by the communication device based on predetermined information being received via the second connection while the first connection and the second connection are maintained in parallel; having A control method characterized in that the first exclusive control is control to prevent the communication device from receiving the connection information via the first connection, and the second exclusive control is control to prevent the communication device from connecting to the external device corresponding to the connection information received via the first connection.

2. the communication device operates in either a first state in which the first connection and the second connection cannot be established, or a second state in which the first connection and the second connection can be established; The control method according to claim 1 , characterized in that the communication device operates in the second state based on a predetermined user operation being performed while the communication device is operating in the first state.

3. 3. The control method according to claim 2, wherein the predetermined user operation is pressing a predetermined button displayed on a display unit of the communication device.

4. 4. The control method according to claim 1, wherein at least one of the first exclusive control and the second exclusive control is executed for a predetermined period of time after the connection information is received via the second connection.

5. The control method described in claim 4, characterized in that at least one of the first exclusive control and the second exclusive control is executed from the time the connection information is received via the second connection until a connection is established between the external device and the communication device corresponding to the connection information received via the second connection.

6. 6. The control method according to claim 1, wherein the connection between the external device and the communication device corresponding to the connection information is a connection according to the second communication method.

7. A control method according to any one of claims 1 to 6, characterized in that when the connection information is received via the second connection and a connection between the external device and the communication device corresponding to the connection information received via the second connection is established, the second connection is disconnected.

8. A control method according to any one of claims 1 to 7, characterized in that the first connection is maintained even after a connection between the external device and the communication device corresponding to the connection information received via the first connection is established by receiving the connection information via the first connection.

9. The control method according to any one of claims 1 to 8, characterized in that when the specified information is received via the first connection while at least one of the first exclusive control and the second exclusive control is being executed, the control method further comprises a third transmission step of transmitting notification information regarding the status of the communication device to the first terminal device by the communication device.

10. The control method according to any one of claims 1 to 9, further comprising a second control step in which the communication device executes at least one of control to prevent the communication device from receiving the connection information via the second connection and control to prevent the communication device from connecting to the external device corresponding to the connection information received via the second connection based on specific information being received by the communication device via the first connection.

11. The method further includes an instruction receiving step of receiving, by the communication device via at least one of the first connection and the second connection, an instruction to transition to a state for connecting to another device without going through the external device; A control method according to any one of claims 1 to 10, characterized in that when the instruction is received, the first terminal device and the second terminal device that sent the instruction and the communication device are connected without going through the external device.

12. 12. The control method according to claim 1, wherein the predetermined information is information indicating the start of a process for setting a connection destination of the communication device.

13. 13. The control method according to claim 1, wherein the predetermined information includes the connection information.

14. 14. The control method according to claim 1, wherein the external device is an access point external to the first terminal device, external to the second terminal device, and external to the communication device.

15. 15. The control method according to claim 1, wherein the second connection is established by the communication device operating as a master station that configures a network.

16. 16. The control method according to claim 1, wherein the second connection is established via a predetermined access point included in the communication device.

17. 17. Method according to any one of the preceding claims, further comprising a fourth transmission step of transmitting, by the communication device via the first connection, information relating to a state of the communication device.

18. 18. The control method according to claim 1, wherein the first communication method is Bluetooth Low Energy.

19. 19. The control method according to claim 1, wherein the first communication method is Bluetooth Classic.

20. 20. The control method according to claim 1, wherein the second communication method is Wi-Fi.

21. 21. The control method according to claim 1, further comprising a printing step of printing an image on a recording medium by the communication device using a recording agent.

22. A control method according to any one of claims 1 to 21, characterized in that, when the first connection and the second connection are maintained in parallel, the connection information is received via the second connection, so that the first connection is maintained even after a connection corresponding to the connection information received via the second connection is established between the external device and the communication device, the first connection being maintained.

23. A system including: a communication device operable in a state in which a first connection with a first terminal device by a first communication method and a second connection with a second terminal device by a second communication method having a communication speed faster than that of the first communication method are maintained in parallel; the first terminal device; and the second terminal device, The first terminal device is a first transmission means for executing a process for transmitting connection information for connecting to an external device that is an external device outside the first terminal device, an external device outside the second terminal device, and an external device outside the communication device, via the first connection; having The communication device includes: a first receiving means for receiving the connection information via the first connection; having The second terminal device is a second transmitting means for performing a process for transmitting the connection information via the second connection; having The communication device further comprises: second receiving means for receiving the connection information via the second connection; a connection means for connecting the external device corresponding to the connection information received via the first connection to the communication device when the connection information is received via the first connection, and for connecting the external device corresponding to the connection information received via the second connection to the communication device when the connection information is received via the second connection; a control means for executing at least one of a first exclusive control and a second exclusive control based on predetermined information being received via the second connection in a state in which the first connection and the second connection are maintained in parallel; having A system characterized in that the first exclusive control is control to prevent the communication device from receiving the connection information via the first connection, and the second exclusive control is control to prevent the communication device from connecting to the external device corresponding to the connection information received via the first connection.

Citation Information

Patent Citations

  • Information processor, method, peripheral device, control program

    JP2007048211A

  • Communication device

    JP2013214801A

  • Radio communication apparatus and radio communication method

    JP2015154131A

  • Information processing device, control method, and program

    JP2017184169A

  • System, terminal device, device and program

    JP2019176451A