Communication system, control method, and program

The control method allows uninterrupted communication between a terminal and communication device by establishing a secondary connection without the external device when privacy separator functions interfere, maintaining communication via the external device.

JP2024150633AActive Publication Date: 2024-10-23CANON KK

Patent Information

Application Number
JP2024117223
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-23
Estimated Expiration
2038-04-26

AI Technical Summary

Technical Problem

Communication between a terminal device and a communication device is hindered when connected to the same external device due to privacy separator functions, preventing relay via the external device, even if an infrastructure connection is established.

Method used

A control method that establishes a first connection with an external device and determines if communication is possible, then establishes a second connection without the external device if necessary, allowing communication to continue via the external device while maintaining the first connection.

Benefits of technology

Enables both communication with the external device and direct communication between the terminal and communication devices, ensuring uninterrupted communication even when privacy separator functions are activated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024150633000001_ABST
    Figure 2024150633000001_ABST
Patent Text Reader

Abstract

To enable both communication between a terminal device and a communication device and communication between a terminal other than the terminal device and the communication device when the terminal device and the communication device cannot communicate via an external device even though the terminal device and the communication device are connected to the same external device.SOLUTION: There is provided a communication system that establishes a second connection between a terminal device and a communication device without going through an external device while maintaining a first connection established in a first establishment step on the basis of the determination that communication via the external device is not executable between the communication device and the terminal device.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

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

[0002] One method for connecting a terminal device such as a smartphone to a network-compatible communication device such as a printer using a communication method such as wireless LAN communication is to connect via an external device such as an access point (AP). This connection method is called an infrastructure connection. By establishing an infrastructure connection and enabling the external device to relay communication, the terminal device and the communication device can, for example, perform two-way communication between the devices or connect to the Internet to use services on the Internet.

[0003] However, for example, due to the privacy separator function preventing the external device from relaying communications, the terminal device and the communication device may not be able to communicate via the external device even though they are connected to the same external device.

[0004] Patent Document 1 describes a communication device that, when a terminal device and a communication device are connected to the same external device but the terminal device and the communication device cannot communicate via the external device, disconnects the connection with the external device and establishes a connection with the terminal device not via the external device (ad-hoc connection). The method described in Patent Document 1 enables the terminal device and the communication device to communicate using an ad-hoc connection instead of an infrastructure connection. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2014-195215 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, even if a terminal device and a communication device are connected to the same external device, just because the terminal device and the communication device cannot communicate with each other via the external device does not necessarily mean that communication cannot be performed between the communication device and devices other than the terminal device via the external device.

[0007] However, as described above, in Patent Document 1, when the terminal device and the communication device cannot communicate with each other through the external device even though they are connected to the same external device, the communication device cuts off the connection with the external device. Therefore, Patent Document 1 has a problem that when the terminal device and the communication device cannot communicate with each other through the external device even though they are connected to the same external device, communication cannot be made between the communication device and devices other than the terminal device through the external device.

[0008] Therefore, the present invention aims to enable communication between a terminal device and a communication device, and communication between a device other than the terminal device and a communication device, when the terminal device and the communication device are connected to the same external device but cannot communicate via the external device. [Means for solving the problem]

[0009] In order to solve the above-mentioned problems, a control method of the present invention is a control method for a communication system including a terminal device and a communication device, a first establishing step of establishing a first connection between an external device external to the terminal device and the communication device and the communication device; a determination step of determining whether or not communication between the communication device and the terminal device via the external device can be performed in a state where the communication device and the terminal device are connected to the same external device by establishing the first connection; a second establishment step of establishing a second connection between the terminal device and the communication device not via the external device while maintaining the first connection established in the first establishment step, based on the determination that communication between the communication device and the terminal device via the external device is not executable; having The communication device is characterized in that, when the second connection is established, it is capable of communicating with the terminal device via the second connection, and even if the second connection is established based on determining that communication via the external device is not possible between the communication device and the terminal device, when the first connection is maintained, it is capable of communicating with devices other than the terminal device via the first connection. Effect of the Invention

[0010] According to the present invention, when a terminal device and a communication device are connected to the same external device but the terminal device and the communication device cannot communicate via the external device, it is possible to enable both communication between the terminal device and the communication device and communication between a device other than the terminal device and the communication device. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of a communication system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating an example of the configuration of a terminal device and a communication device according to an embodiment of the present invention. [Diagram 3] FIG. 4 is a sequence diagram illustrating an example of a cableless setup executed by the communication system according to the embodiment of the present invention. [Figure 4] FIG. 4 is a sequence diagram illustrating an example of a cableless setup executed by the communication system according to the embodiment of the present invention. [Diagram 5] FIG. 4 is a sequence diagram illustrating an example of a cableless setup executed by the communication system according to the embodiment of the present invention. [Figure 6] FIG. 4 is a sequence diagram illustrating an example of a cableless setup executed by the communication system according to the embodiment of the present invention. [Figure 7] 5 is a flowchart showing a cableless setup performed by a terminal device in an embodiment of the present invention. [Figure 8]5 is a flowchart illustrating a cableless setup performed by a communication device according to an embodiment of the present invention. [Figure 9] 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. [Figure 10] FIG. 2 is a diagram for explaining BLE communication in an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. However, the relative arrangement of the components, the display screen, and the like described in the present embodiment are not intended to limit the scope of the present invention unless otherwise specified. Furthermore, the components may be changed without departing from the gist of the embodiment.

[0013] (First embodiment) The terminal device and the communication device of this embodiment will be described. In this embodiment, a smartphone is exemplified as the terminal device. A smartphone is a multi-function mobile phone equipped with a camera, a web browser, an e-mail function, and the like in addition to the functions of a mobile phone. The terminal device to which the present invention can be applied is not limited to a smartphone, and may be any device capable of communicating with a communication device described later. For example, a digital camera, a mobile phone, a personal computer (PC), a tablet terminal, a PDA (Personal Digital Assistant), and the like can be applied as the terminal device. In addition, in this embodiment, a multifunction printer (hereinafter, MFP) capable of providing a copying service, a FAX service, and a printing service is exemplified as the communication device, but is not limited to this. As the communication device, various devices capable of communicating with the terminal device can be applied. For example, as a printer, an inkjet printer, a full-color laser beam printer, a monochrome printer, and the like can be applied. In addition, the present invention can be applied to devices capable of providing services other than printing, such as a copying machine, a facsimile machine, a smartphone, a mobile phone, a PC, a tablet terminal, a PDA, a digital camera, a music playback device, a storage, a projector, and a smart speaker. A smart speaker is a device that instructs devices on the same network to process information according to the voice of the user, and notifies the user of information acquired via the network in response to the voice of the user.Single-function printers (hereafter, SFPs) equipped with a single function can also be used.

[0014] <System configuration> First, a system configuration for implementing this embodiment will be described.

[0015] 1 is a diagram showing an example of the configuration of a communication system according to the present embodiment. This system includes a communication device 151, a terminal device 101, an access point (AP) 131, and an external server 161.

[0016] The terminal device 101 is a terminal device of this embodiment. The communication device 151 is a communication device of this embodiment. The AP 131 is an external device that exists outside the terminal device 101 and outside the communication device 151. The external server 161 is a server that can provide services to devices connected to the AP 131 via the Internet.

[0017] A LAN (Local Area Network) formed by the AP 131 includes the AP 131, a communication device 151, and a terminal device 101. On the other hand, a WAN (Wide Area Network) includes the AP 131 and an external server 161.

[0018] In this embodiment, when an infrastructure connection described below is established, the terminal device 101 can communicate with the communication device 151 via the AP 131. Furthermore, when a P2P connection described below is established, the terminal device 101 can communicate directly with the communication device 151 without going through the AP 131.

[0019] In this embodiment, the connection 141 between the terminal device 101 and the AP 131 and the connection 142 between the communication device 151 and the AP 131 are connections by a communication method based on the IEEE802.11 series of standards. Specifically, the communication method based on the IEEE802.11 series of standards is Wi-Fi (Wireless Fidelity) (registered trademark). In addition, the connection 143 between the terminal device 101 and the communication device 151 is Wi-Fi or Bluetooth (registered trademark) Low Energy (BLE). Note that the communication method used for each connection is not limited to this form, and may be, for example, Classic Bluetooth, Wi-Fi Aware, Near Field Communication (NFC), etc. The AP 131 and the external server 161 can communicate with each other via the Internet, and when the AP 131 is connected to the Internet, the devices connected to the AP 131 (the terminal device 101 and the communication device 151) can also use the Internet.

[0020] The configuration of the terminal device 101 and the communication device 151 will be described with reference to the block diagram of Fig. 2. In addition, the following configuration will be described as an example in this embodiment, but the functions are not particularly limited to those shown in this diagram.

[0021] 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 110, a short-range communication unit 111, and the like.

[0022] The input interface 102 is an interface for accepting data input and operational instructions from a user by operating a keyboard 109 .

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

[0024] 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.

[0025] 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.

[0026] The external storage device 106 stores therein an application for executing a cableless setup described below, an application for providing a print execution function, a print information generation program for generating print information that can be interpreted by the communication device 151, and the like. The external storage device 106 also stores various programs, such as an information transmission / reception control program, transmitted / received between the external storage device 106 and the communication device 151 connected via the communication unit 110, and various information used by these programs.

[0027] 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 .

[0028] 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 by providing operation units such as numeric input keys, mode setting keys, a decision key, a cancel key, and a power key on the display unit 108, the input interface 102 may receive input from the user via the display unit 108.

[0029] The communication unit 110 is configured to connect to devices such as the communication device 151 and the AP 131 to perform data communication. For example, the communication unit 110 can be connected to an access point (not shown) in the communication device 151. When the communication unit 110 is connected to the access point in the communication device 151, the terminal device 101 and the communication device 151 can communicate with each other. The communication unit 110 may directly communicate with the communication device 151 by wireless communication, or may communicate via an external device that is outside the terminal device 101 and outside the communication device 151. The external device includes an external access point (AP 131) and a device that can relay communication other than an access point. Examples of wireless communication methods include Wi-Fi. Examples of the AP 131 include devices 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 without going through an external access point is called a P2P connection method. Moreover, a method in which the terminal device 101 and the communication device 151 are connected via an external access point is called an infrastructure connection method.

[0030] The short-range communication unit 111 is a component for wirelessly connecting to a device such as the communication device 151 at a short distance to execute data communication, and performs communication by a communication method different from that of the communication unit 110. The short-range communication unit 111 can be connected to, for example, the short-range communication unit 157 in the communication device 151. Examples of the communication method include Classic Bluetooth, BLE, WiFiAware, and NFC.

[0031] In this embodiment, the communication method used by the communication unit 110 is configured to be a method capable of performing communication at a higher speed and over a longer distance than the communication method used by the short-range communication unit 111. The short-range communication unit 111 is configured to be used to exchange communication information for communication by the communication unit 110 with a device such as the communication device 151.

[0032] The communication device 151 is the communication device of this 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-distance communication unit 157. The CPU 154, the ROM 152, the RAM 153, and the like constitute a so-called computer.

[0033] The communication unit 156 has an access point for connecting to devices such as the terminal device 101 as an internal access point in the communication device 151. The access point can be connected to the communication unit 110 of the terminal device 101. The communication unit 156 may directly communicate with the terminal device 101 by wireless communication, or may communicate via the AP 131. An example of a communication method is Wi-Fi. The communication unit 156 may include hardware that functions as an access point, or may operate as an access point by software for functioning as an access point.

[0034] The short-range communication unit 157 is a component for wirelessly connecting to a device such as the terminal device 101 at a short distance, and can be connected to, for example, the short-range communication unit 111 in the terminal device 101. Examples of communication methods include Classic Bluetooth, BLE, WiFi Aware, and NFC.

[0035] In this embodiment, the communication method used by the communication unit 156 is configured to be a method capable of performing communication at a higher speed than the communication method used by the short-distance communication unit 157. The short-distance communication unit 157 is configured to be used to exchange communication information for communication by the communication unit 156 with devices such as the terminal device 101. The short-distance communication unit 157 functions as an advertiser (or a slave) that broadcasts advertising information described below, and the short-distance communication unit 111 functions as a scanner (or a master) that receives the advertising information.

[0036] The RAM 153 is composed of an SRAM or the like that requires a backup power source. Since the RAM 153 holds data using a primary battery for data backup (not shown), important data such as program control variables can be stored without volatilization. The RAM 153 also has a memory area for storing setting information for the communication device 151, management data for the communication device 151, and the like. The RAM 153 is also used as the main memory and work memory for the CPU 154, and stores a reception buffer for temporarily storing print information received from the terminal device 101, etc., and various types of information.

[0037] The ROM 152 stores fixed data such as control programs, data tables, and OS programs executed by the CPU 154. In this embodiment, each control program stored in the ROM 152 performs software execution control such as scheduling, task switching, and interrupt processing under the management of the embedded OS stored in the ROM 152.

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

[0039] 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 by applying a recording agent such as ink to the recording medium, 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 is capable of communication faster than the short-range communication unit 157.

[0040] Note that a memory such as an external HDD or an SD card may be attached to the communication device 151 as an optional device, and the information stored in the communication device 151 may be stored in the memory.

[0041] Here, the division of processing between the terminal device 101 and the communication device 151 is shown as an example above, but the division is not limited to this form and may be other forms.

[0042] <Regarding BLE Communication> Here, with reference to FIG. 10, 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 the present 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.

[0043] The short-range communication unit 157 divides the 2.4 GHz frequency band into 40 channels (0 to 39ch) for communication. Among them, the short-range communication unit 157 uses the 37th to 39th channels for transmitting advertisement information and receiving a start request for GATT communication, and uses the 0th to 36th channels for data communication after BLE connection. In FIG. 10(a), the vertical axis represents the power consumption of the short-range communication unit 157, and the horizontal axis represents time, and the power consumption when transmitting advertisement information using one channel is shown for each process. Tx1005 indicates the total power consumption in the transmission process, which is the process of broadcasting advertisement information, and Rx1006 indicates the total power consumption in the reception process, which is the process of enabling the receiver for receiving a start request for GATT communication. Note that the start request for GATT communication is transmitted to the short-range communication unit 157 by the short-range communication unit 111 that has received the advertisement information.

[0044] The transmission power 1002 indicates the instantaneous power consumption due to the transmission process. The reception power 1003 indicates the instantaneous power consumption due to the reception process. The microcomputer operating power 1001 indicates the instantaneous power consumption when the microcomputer in the short-range communication unit 157 is operating. The reason why the microcomputer operates before, during, and after Tx 1005 and Rx 1006 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 1004 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 111. When the short-distance communication unit 157 receives a request to start GATT communication from the short-distance communication unit 111, the short-distance communication unit 157 establishes a BLE connection with the short-distance communication unit 111, and thereafter, GATT communication with the short-distance communication unit 111 becomes possible. Note that the BLE communication described below may be communication using advertisement information or may be GATT communication.

[0045] As shown in Fig. 10(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.

[0046] 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 CLS mode described later, receiving a user operation for enabling the BLE function, the power of the communication device 151 being turned on, and the like.

[0047] <Regarding Wi-Fi communication (P2P (Peer to Peer) mode)> In order to establish a P2P (Peer to Peer) connection (hereinafter referred to as a 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.

[0048] 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 is particularly referred to as a Group Owner. And the mode in which a P2P connection is executed by WFD is referred to as the WFD mode.

[0049] 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 instead of WFD. By connecting in this way, the terminal device 101 and the communication device 151 can be directly wirelessly connected to each other without going through another access point. 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.

[0050] In the P2P mode, since the communication device 151 operates as a 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 used for communication in the P2P mode over other channels.

[0051] Also, 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.

[0052] <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.

[0053] 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 via the AP 131 is possible. 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). Note that, in order for the terminal device 101 to communicate with the communication device 151 via the AP 131, it is necessary for the terminal device 101 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 checks communication with the communication device 151.

[0054] 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.

[0055] <Simultaneous operations> The communication device 151 of this embodiment is capable of simultaneously (in parallel) executing operations in infrastructure mode and operations in P2P mode. Therefore, the communication device 151 can simultaneously (in parallel) maintain a connection for communication in infrastructure mode and a connection for communication in P2P mode. Hereinafter, the operation of simultaneously (in parallel) establishing an infrastructure connection and a P2P connection and operating to be able to communicate via the infrastructure connection and the P2P connection simultaneously (in parallel) is referred to as a simultaneous operation. In other words, a simultaneous operation is an operation in which the communication device 151 performs an operation as a parent device (Group Owner or access point) and an operation as a child device in parallel.

[0056] The communication in the infrastructure mode and the communication in the P2P mode are performed using a specific frequency band (specific channel). Therefore, in both the communication in the infrastructure mode and the communication in the P2P mode, before the communication is started, it is necessary to determine the channel to be used for the communication and connection between the devices. In addition, in a form in which multiple channels are assigned to one wireless IC chip at the same time for communication, the configuration of each device performing communication and the processing executed by each device become complicated. Therefore, for example, when the communication device 151 operates simultaneously, it is desirable to use a common channel in the communication in each mode. That is, it is desirable for the communication device 151 to use only one channel even when operating simultaneously. Therefore, in this embodiment, the communication unit 156 has only one wireless IC chip that realizes communication by a predetermined channel, and the communication device 151 does not communicate using multiple channels at the same time.

[0057] <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 called cable-less setup (CLS) because it is executed by wireless communication. The terminal device 101 executes CLS using an application for executing CLS (CLS application) installed in the terminal device 101. Note that the connection setting process may be executed using a wired connection instead of wirelessly.

[0058] 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.

[0059] 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.

[0060] In this embodiment, for transmitting infrastructure setting commands and P2P setting commands in CLS and acquiring information for P2P connection with the communication device 151, a P2P connection for CLS between the terminal device 101 and the communication device 151 is used. And in this embodiment, as the P2P connection for CLS, it is assumed that there are two types: a connection by Wi-Fi (connection by the communication unit 110 and the communication unit 156) and a connection by BLE (connection by the short-range communication unit 111 and the short-range communication unit 157).

[0061] Therefore, hereinafter, two types of CLS will be described: CLS using a Wi-Fi connection and CLS using a BLE connection.

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

[0063] After an infrastructure connection or a P2P connection by Wi-Fi is established between the terminal device 101 and the communication device 151 by CLS, 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 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 to the communication device 151 via the established connection.

[0064] <Regarding the function of AP131> The AP 131 has a privacy separator setting function. The privacy separator setting function is a function for setting ON / OFF of a privacy separator function that is a function for AP 131 not to relay communication within a LAN configured by the AP 131. When the privacy separator function of the AP 131 is set to ON (enabled), the AP 131 does not relay communication within a LAN configured by the AP 131. That is, when the privacy separator function of the AP 131 is set to ON and the terminal device 101 and the communication device 151 exist within the LAN configured by the AP 131, the AP 131 does not relay communication between the terminal device 101 and the communication device 151. On the other hand, when the privacy separator function of the AP 131 is set to OFF (disabled), the AP 131 relays communication within the LAN configured by the AP 131.

[0065] The setting of the privacy separator function of the AP 131 may be switched by, for example, a user operation executed directly on the AP 131. The setting of the privacy separator function of the AP 131 may also be switched by, for example, a command transmitted from a terminal device (not shown) connected to the AP 131 to the AP 131 by a user operating the terminal device.

[0066] Also, the AP 131 has a function of relaying communication between a device in a LAN configured by the AP 131 and a device in a WAN including the AP 131. As a result, when the device in the LAN configured by the AP 131 is connected to the AP 131, it becomes possible to receive services provided from the external server 161 using the Internet. Note that the relay of communication between the device in the LAN configured by the AP 131 and the device in the WAN including the AP 131 is executed whether the setting of the privacy separator function of the AP 131 is ON or OFF. In other words, even if the setting of the privacy separator function of the AP 131 is ON, the device in the LAN configured by the AP 131 becomes possible to receive services provided from the external server 161 using the Internet.

[0067] Incidentally, as described above, in this embodiment, the terminal device 101 can use CLS to connect the AP 131 to which the terminal device 101 is connected and the communication device 151, and establish an infrastructure connection between the terminal device 101 and the communication device 151 via the AP 131. However, when the privacy separator function of the AP 131 is ON, even if an infrastructure connection is established between the terminal device 101 and the communication device 151 via the AP 131, communication between the terminal device 101 and the communication device 151 is not performed.

[0068] Therefore, in this embodiment, a form will be described in which control is performed so that communication between the terminal device 101 and the communication device 151 is performed even when the privacy separator function of the AP 131 is ON.

[0069] <Control in this embodiment> 3 to 6 are sequence diagrams of the CLS executed by the communication system of this embodiment. Note that the process shown in each sequence diagram 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.

[0070] First, a description will be given of the sequence diagram shown in Fig. 3. Fig. 3 is a sequence diagram of the CLS executed by Wi-Fi communication between the terminal device 101 and the communication device 151. Fig. 3 is also a sequence diagram of the CLS for connecting the communication device 151 to the AP 131 in which the privacy separator function is turned off.

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

[0072] Next, in S302, communication device 151 starts operation in a cableless setup mode (CLS mode). CLS mode is a mode for executing connection settings of communication device 151 by CLS. Note that a trigger for communication device 151 to start operation in the CLS mode may be, for example, a user pressing a CLS mode button provided on communication device 151, or communication device 151 starting up (powering on) for the first time after arrival.

[0073] When the communication device 151 starts operating in the CLS mode, it activates an AP (CLS AP) inside the communication device 151 that is dedicated to the CLS mode. This puts the communication device 151 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 CLS AP is held in advance in a CLS application installed in the terminal device 101, and that the terminal device 101 recognizes the connection information for connecting to the CLS AP in advance. Therefore, unlike the connection information of the AP activated in the P2P mode, it is assumed that the connection information for connecting to the CLS AP cannot be arbitrarily changed by the user. Note that in the CLS mode, the communication device 151 may connect to the terminal device 101 by WFD instead of normal Wi-Fi.

[0074] In addition, in this embodiment, when the communication device 151 starts operating in the CLS mode, the communication device 151 further enables the BLE function and starts transmitting advertising information. As a result, the communication device 151 becomes capable of establishing a connection with the terminal device 101 by BLE.

[0075] Next, in S303, the terminal device 101 receives an instruction to execute the CLS from the user via a screen displayed on the display unit 108 by the CLS application.

[0076] Next, in S304, 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 CLS. 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.

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

[0078] Next, in S306, the terminal device 101 uses connection information for connecting to a pre-recognized CLS AP to establish a Wi-Fi connection with the CLS 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.

[0079] Next, in S307, the terminal device 101 transmits an infrastructure mode setting instruction to the communication device 151 via Wi-Fi (connection information transmission step). The infrastructure mode setting instruction includes, for example, connection information for connecting to the AP 131 stored in the memory in S304. Note that 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 mode setting instruction.

[0080] Next, in S308, the communication device 151 transmits P2P connection information, which is connection information for connecting to the communication device 151 operating in the P2P mode, to the terminal device 101 via Wi-Fi. That is, the terminal device 101 receives the P2P connection information via Wi-Fi (connection information receiving step).

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

[0082] Next, in S310, 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 S304.

[0083] Next, in S311, the communication device 151 connects to the AP 131 by Wi-Fi using the connection information for connecting to the AP 131 received in S307 based on the infrastructure mode setting instruction. As a result, an infrastructure connection is established between the terminal device 101 and the communication device 151 via the AP 131. Note that in this embodiment, when the communication device 151 receives the infrastructure mode setting instruction, it starts a simultaneous operation. Specifically, the communication device 151 starts an operation in the infrastructure mode, connects to the AP 131, and then starts an operation in the P2P mode. This is because the operation in the P2P mode is started after the communication channel used to connect to the AP 131 in the infrastructure mode is determined. The communication device 151 controls the connection in the P2P mode to use the same communication channel as the communication channel used to connect to the AP 131 in the infrastructure mode. Note that, if the communication channel synchronization control is not executed, for example, the operation in the infrastructure mode may be started before the operation in the P2P mode is started and the connection to the AP 131 is started.

[0084] Next, in S312, the terminal device 101 transmits a response request to the communication device 151 via the AP 131 by Wi-Fi (request transmission step). Specifically, the terminal device 101 transmits the response request to the AP 131, specifying the address of the communication device 151 as the address of the destination of the response request. At this time, since the privacy separator function of the AP 131 is turned off, when the AP 131 receives the response request from the terminal device 101, it relays the response request to the communication device 151.

[0085] Next, in S313, in response to receiving the response request, the communication device 151 transmits a response to the terminal device 101. Specifically, the communication device 151 transmits the response to the AP 131, specifying the address of the terminal device 101 as the address of the transmission destination of the response request. At this time, since the privacy separator function of the AP 131 is turned off, when the AP 131 receives a response from the communication device 151, it relays the response to the terminal device 101. The terminal device 101 that has received the response recognizes that communication with the communication device 151 via the AP 131 is possible, and therefore terminates the CLS.

[0086] Next, a description will be given of the sequence diagram shown in Fig. 4. Fig. 4 is a sequence diagram of the CLS executed by Wi-Fi communication between the terminal device 101 and the communication device 151. Fig. 4 is also a sequence diagram of the CLS for connecting the communication device 151 to the AP 131 in which the privacy separator function is ON.

[0087] The processes from S401 to S411 are similar to those from S301 to S311, and therefore the description thereof will be omitted.

[0088] In S412, the terminal device 101 transmits a response request to the communication device 151 via the AP 131 by Wi-Fi. Specifically, the terminal device 101 transmits the response request to the AP 131 by specifying the address of the communication device 151 as the address of the destination of the response request. However, at this time, since the privacy separator function of the AP 131 is ON, when the AP 131 receives the response request from the terminal device 101, the AP 131 does not relay the response request to the communication device 151, which is a device in the LAN. Therefore, the response request does not reach the communication device 151, and the communication device 151 does not return a response to the terminal device 101. When the terminal device 101 does not receive a response even after a predetermined time has elapsed since transmitting the response request, the terminal device 101 recognizes that communication with the communication device 151 via the AP 131 is not executable.

[0089] Therefore, in S413, the terminal device 101 disconnects the Wi-Fi connection with the AP 131.

[0090] Thereafter, in S414, the terminal device 101 establishes a P2P connection with the communication device 151 using the P2P connection information received in S408.

[0091] By adopting this configuration, even if an infrastructure connection is set up via an AP with the privacy separator function turned on by CLS, it is possible to set up so that the terminal device 101 and the communication device 151 can communicate via a P2P connection.

[0092] In this embodiment, the communication device 151 is in a form of simultaneous operation, and even if an infrastructure connection is set via an AP with a privacy separator function turned on, the communication device 151 maintains a connection with the AP 131. This allows the communication device 151 to use the Internet (communicate with the external server 161) via the connection with the AP 131, and to communicate with the terminal device 101 via a P2P connection with the terminal device 101.

[0093] In this embodiment, the communication device 151 communicates with the external server 161 via the Internet, and receives, for example, a social networking service (SNS) from the external server 161. This enables the communication device 151 to display an image uploaded to the SNS on the display unit 108, and to print an image selected by a user from the displayed image group. For example, the communication device 151 may receive information about an error that has occurred on the communication device 151 (the type of error and a method of clearing the error), and may receive, from the external server 161, a service for updating firmware of the communication device 151.

[0094] Next, a description will be given of a sequence diagram shown in Fig. 5. Fig. 5 is a sequence diagram of a CLS executed by BLE communication between the terminal device 101 and the communication device 151. Fig. 5 is also a sequence diagram of a CLS for connecting the communication device 151 to the AP 131 in which the privacy separator function is turned off.

[0095] The processes from S501 to S503 are similar to those from S301 to S303, and therefore the description thereof will be omitted.

[0096] In S504, the terminal device 101 establishes a P2P connection with the communication device 151 using BLE.

[0097] Next, in S505, the terminal device 101 transmits an infrastructure mode setting instruction to the communication device 151 by BLE. Unlike the CLS using Wi-Fi, in the CLS using BLE, the terminal device 101 can transmit the infrastructure mode setting instruction to the communication device 151 without disconnecting the connection with the AP 131. Note that 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 mode setting instruction.

[0098] Next, in S506, the communication device 151 transmits, to the terminal device 101 by BLE, P2P connection information, which is connection information for connecting to the communication device 151 operating in the P2P mode.

[0099] Next, in S507, the communication device 151 connects to the AP 131 by Wi-Fi using the connection information for connecting to the AP 131 received in S505. As a result, an infrastructure connection is established between the terminal device 101 and the communication device 151 via the AP 131. When the Wi-Fi connection with the AP 131 is established, the communication device 151 may transmit information indicating that the Wi-Fi connection with the AP 131 has been successful to the terminal device 101 by BLE. Also, when the Wi-Fi connection with the AP 131 has failed due to, for example, the connection information received in S505 being incorrect, the communication device 151 may transmit information indicating that the Wi-Fi connection with the AP 131 has failed to the terminal device 101 by BLE.

[0100] The processes in S508 and S509 are similar to those in S312 and S313, and therefore the description thereof will be omitted.

[0101] In this way, in the CLS using BLE, the terminal device 101 does not need to switch the Wi-Fi connection destination, and therefore the number of processes is smaller than that in the CLS using Wi-Fi. Therefore, the terminal device 101 can quickly complete the setup of the communication device 151 by the CLS using BLE.

[0102] Next, a description will be given of a sequence diagram shown in Fig. 6. Fig. 6 is a sequence diagram of a CLS executed by BLE communication between the terminal device 101 and the communication device 151. Fig. 6 is also a sequence diagram of a CLS for connecting the AP 131, in which the privacy separator function is ON, and the communication device 151.

[0103] The processes from S601 to S607 are similar to those from S501 to S507, and the processes from S608 to S610 are similar to those from S412 to S414, so the description thereof will be omitted.

[0104] In this way, in CLS using BLE, even if an infrastructure connection is set up via an AP with the privacy separator function turned on, it is possible to set up so that the terminal device 101 and the communication device 151 can communicate with each other.

[0105] 3 and 5, the privacy separator function of the AP 131 is OFF, so that the terminal device 101 and the communication device 151 can communicate with each other through an infrastructure connection. In this case, the communication device 151 does not need to operate in the P2P mode. Therefore, for example, when the terminal device 101 and the communication device 151 can communicate with each other through an infrastructure connection, the communication device 151 may cancel the simultaneous operation and stop the operation in the P2P mode.

[0106] 7 is a flowchart showing the CLS executed by the terminal device 101. The process shown in this flowchart is realized by, for example, the CPU 103 reading a program (such as an application for CLS) 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 application for CLS is running on the terminal device 101, but the connection between the terminal device 101 and the AP 131 via Wi-Fi may be established in a state in which the application for CLS is not running on the terminal device 101.

[0107] First, in S701, the terminal device 101 receives an instruction to execute CLS from a user. This process corresponds to the process of S303.

[0108] Next, in S702, the terminal device 101 accepts the selection of the setting target device from the user. Specifically, when the execution instruction is accepted in S701, the terminal device 101 first searches for a device operating in CLS mode. The device operating in CLS mode has the CLS AP enabled or the BLE function enabled. Therefore, the terminal device 101 searches for a device operating in CLS mode by acquiring a beacon corresponding to the CLS AP or advertising information corresponding to the CLS mode. Then, the terminal device 101 displays a list of the searched devices on the display unit 108 and allows the user to select the setting target device from the list. Note that the terminal device 101 may be connected to a device by BLE before S701, and the list may include a device to which the terminal device 101 is connected via BLE. Also, when only one device is searched, S702 may be omitted, and the searched device may be automatically specified as the setting target device, and the subsequent processing may be executed. In addition, when both the beacon corresponding to the AP for CLS and the advertising information corresponding to the CLS mode are acquired from the same device, the list may include two pieces of information corresponding to the same device. Note that, in the following, it is assumed that the communication device 151 is selected as the setting target device.

[0109] Next, in S703, the terminal device 101 determines whether or not to execute CLS by Wi-Fi. As described above, in this embodiment, the terminal device 101 can execute CLS by BLE in addition to CLS by Wi-Fi. The terminal device 101 executes this determination by determining which CLS the setting target device supports. For example, the terminal device 101 determines YES when the user selects in S702 a device displayed based on the acquisition of a beacon corresponding to the AP for CLS. Also, for example, the terminal device 101 determines NO when the user selects in S702 a device displayed based on the acquisition of advertising information corresponding to the CLS mode or a device displayed based on the BLE connection with the terminal device 101. When the result of this determination is YES, the terminal device 101 proceeds to S704 to execute CLS by Wi-Fi, and when the result of this determination is NO, the terminal device 101 proceeds to S714 to execute CLS by BLE.

[0110] The process after it is determined in S703 that CLS by Wi-Fi is to be executed will be described below. In S704, the terminal device 101 stores information about the currently connected AP (AP 131) in a memory. This process corresponds to the process of S304.

[0111] Next, in S705, the terminal device 101 disconnects from the AP 131, and then transmits a connection request via Wi-Fi to the AP for CLS inside the communication device 151, and establishes a P2P connection via Wi-Fi with the communication device 151. This process corresponds to the processes of S305 and S306.

[0112] Next, in S706, the terminal apparatus 101 transmits an infrastructure mode setting instruction to the communication apparatus 151 via Wi-Fi. This process corresponds to the process of S307.

[0113] Next, in S707, the terminal device 101 receives P2P connection information from the communication device 151 via Wi-Fi. This process corresponds to the process of S308.

[0114] Next, in S708, the terminal apparatus 101 disconnects the Wi-Fi connection with the communication apparatus 151, and then reconnects to the AP 131 via Wi-Fi. This process corresponds to the processes of S309 and S310.

[0115] Next, in S709, the terminal apparatus 101 transmits a response request to the communication apparatus 151 via the AP 131 over Wi-Fi. This process corresponds to the processes of S312 and S412.

[0116] Next, in S710, the terminal device 101 determines whether or not a response has been received from the communication device 151. Through this process, the terminal device 101 determines whether or not communication is possible with the communication device 151 via the AP 131. If the result of this determination is YES, the terminal device 101 proceeds to S713, and if the result of this determination is NO, the terminal device 101 proceeds to S711.

[0117] In S711, the terminal device 101 determines whether a predetermined time has elapsed (whether a timeout has occurred) since transmitting the response request. If the result of this determination is YES, the terminal device 101 proceeds to S712, and if the result of this determination is NO, the terminal device 101 proceeds to S710 again.

[0118] In S712, the terminal device 101 disconnects the Wi-Fi connection with the AP 131, and then establishes a P2P connection with the communication device 151 using the P2P connection information received in S707. This process corresponds to the processes of S413 and S414. At this time, the terminal device 101 may notify the user that communication with the communication device 151 cannot be performed via the AP 131, or that the privacy separator function of the AP 131 is ON. In addition, for example, the terminal device 101 may first accept an input from the user and have the user select whether or not to establish a P2P connection between the terminal device 101 and the communication device 151. Then, when the P2P connection is selected, the terminal device 101 may execute the process of S712, and when the P2P connection is not selected, the terminal device 101 may end the process without executing the process of S712.

[0119] In S713, the terminal device 101 acquires information about the communication device 151 from the communication device 151 via a Wi-Fi connection (infrastructure connection or P2P connection) with the communication device 151. The information about the communication device 151 is, for example, the MAC address of the communication device 151, information about an error state of the communication device 151, information about the remaining amount of recording agent or recording medium held by the communication device 151, and the like. As a result, the communication device 151 is registered in the CLS application, and thereafter, the terminal device 101 becomes able to transmit print jobs and scan jobs to the communication device 151. Thereafter, the terminal device 101 ends the process.

[0120] The process after it is determined in S703 that CLS by Wi-Fi is not to be executed (CLS by BLE is to be executed) will be described below. In S714, the terminal device 101 establishes a P2P connection by BLE with the communication device 151 in response to the received advertising information by transmitting a connection request by BLE to the communication device 151. Note that if the terminal device 101 has already been connected to the communication device 151 by BLE, the process of S714 is omitted.

[0121] Next, in S715, the terminal apparatus 101 transmits an infrastructure mode setting instruction to the communication apparatus 151 by BLE. This process corresponds to the process of S505.

[0122] Next, in S716, the terminal device 101 receives P2P connection information from the communication device 151 by BLE. This process corresponds to the process of S506.

[0123] Next, in S717, the terminal device 101 transmits a response request to the communication device 151 by Wi-Fi via the AP 131. This process corresponds to the processes of S508 and S608. Note that the terminal device 101 may execute this process based on acquiring information indicating that the Wi-Fi connection to the AP 131 has been successful from the communication device 151 by BLE. Furthermore, when the terminal device 101 acquires information indicating that the Wi-Fi connection to the AP 131 has failed from the communication device 151 by BLE, the terminal device 101 may display the information on the display unit 108 without executing S717, and return to S715. Then, the terminal device 101 may transmit the connection information again after accepting an input of the connection information from the user again.

[0124] Next, in S718, the terminal device 101 determines whether or not a response has been received from the communication device 151. Through this process, the terminal device 101 determines whether or not communication is possible with the communication device 151 via the AP 131. If the result of this determination is YES, the terminal device 101 proceeds to S721, and if the result of this determination is NO, the terminal device 101 proceeds to S719.

[0125] In S719, the terminal device 101 determines whether a predetermined time has elapsed (whether a timeout has occurred) since transmitting the response request. If the result of this determination is YES, the terminal device 101 proceeds to S720, and if the result of this determination is NO, the terminal device 101 proceeds to S718 again.

[0126] In S720, the terminal device 101 disconnects the Wi-Fi connection with the AP 131, and then establishes a P2P connection with the communication device 151 using the P2P connection information received in S707. This process corresponds to the processes of S609 and S610. At this time, the terminal device 101 may notify the user that communication with the communication device 151 cannot be established via the AP 131, or that the privacy separator function of the AP 131 is ON. In addition, for example, the terminal device 101 may first accept an input from the user and have the user select whether or not to establish a P2P connection between the terminal device 101 and the communication device 151. Then, when the P2P connection is selected, the terminal device 101 may execute the process of S720, and when the P2P connection is not selected, the terminal device 101 may end the process without executing the process of S720.

[0127] In S721, the terminal device 101 acquires information about the communication device 151 via a Wi-Fi connection (infrastructure connection or P2P connection) with the communication device 151. As a result, the communication device 151 is registered in the CLS application. After that, the terminal device 101 ends the process.

[0128] 8 is a flowchart showing the CLS 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.

[0129] First, in S801, the communication device 151 starts operation in the CLS mode. This process corresponds to the process of S302.

[0130] Next, in S802, 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 S803 and executes CLS 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 S813 and executes CLS by BLE.

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

[0132] Next, in S804, the communication device 151 receives an infrastructure mode setting instruction via Wi-Fi from the terminal device 101. This process corresponds to the process of S307.

[0133] Next, in S805, the communication device 151 transmits the P2P connection information to the terminal device 101 via Wi-Fi. This process corresponds to the process of S308.

[0134] Next, in S806, the communication device 151 starts simultaneous operation. Specifically, the communication device 151 first starts operation in infrastructure mode, and connects to the AP 131 via Wi-Fi based on an infrastructure mode setting instruction. Thereafter, the communication device 151 starts operation in P2P mode while maintaining operation in infrastructure mode. Note that the P2P mode activated at this time is a mode in which a P2P connection is performed using a communication channel (frequency band) used for connection with the AP 131. This process corresponds to the process of S311.

[0135] Next, in S807, the communication device 151 determines whether or not a response request has been received from the communication device 151. If the result of this determination is YES, the communication device 151 proceeds to S810, and if the result of this determination is NO, the communication device 151 proceeds to S808.

[0136] In S808, the communication device 151 determines whether or not a P2P connection has been established with the communication device 151. If the result of this determination is YES, the communication device 151 proceeds to S809, and if the result of this determination is NO, the communication device 151 proceeds again to S807.

[0137] In S809, the communication device 151 transmits information about the communication device 151 to the terminal device 101 via a Wi-Fi connection (P2P connection) with the terminal device 101. After that, the communication device 151 ends the process.

[0138] In S810, in response to receiving the response request, the communication device 151 transmits a response via Wi-Fi to the terminal device 101. This process corresponds to the process of S313.

[0139] Next, in S811, the communication device 151 transmits information about the communication device 151 to the terminal device 101 via a Wi-Fi connection (infrastructure connection) with the terminal device 101.

[0140] Next, in S812, the communication device 151 cancels the simultaneous operation and stops the operation in the P2P mode, after which the communication device 151 ends the process.

[0141] The process after it is determined in S802 that CLS by Wi-Fi is not to be executed (CLS by BLE is to be executed) will be described below. In S813, the communication device 151 establishes a P2P connection with the terminal device 101 by BLE based on the reception of a connection request by BLE from the terminal device 101. This process corresponds to the process of S504.

[0142] Next, in S814, the communication device 151 receives an infrastructure mode setting instruction by BLE from the terminal device 101. This process corresponds to the process of S505.

[0143] Next, in S815, the communication device 151 transmits the P2P connection information to the terminal device 101 by BLE. This process corresponds to the process of S506.

[0144] Next, in S816, the communication device 151 starts a simultaneous operation.

[0145] Next, in S817, the communication device 151 determines whether or not a response request has been received from the communication device 151. If the result of this determination is YES, the communication device 151 proceeds to S820, and if the result of this determination is NO, the communication device 151 proceeds to S818. Note that the communication device 151 may receive the response request, for example, via BLE.

[0146] In S818, the communication device 151 determines whether or not a P2P connection has been established with the communication device 151. If the result of this determination is YES, the communication device 151 proceeds to S819, and if the result of this determination is NO, the communication device 151 proceeds again to S817.

[0147] In S819, the communication device 151 transmits information about the communication device 151 to the terminal device 101 via a Wi-Fi connection (P2P connection) with the terminal device 101. Thereafter, the communication device 151 ends the process.

[0148] In S820, in response to receiving the response request, the communication device 151 transmits a response via Wi-Fi to the terminal device 101. This process corresponds to the process of S509.

[0149] Next, in S821, the communication device 151 transmits information about the communication device 151 to the terminal device 101 via a Wi-Fi connection (infrastructure connection) with the terminal device 101. Note that the communication device 151 may transmit the information about the communication device 151 by, for example, BLE.

[0150] Next, in S822, communication device 151 cancels the simultaneous operation and stops the operation in the P2P mode, after which communication device 151 ends the process.

[0151] By adopting this configuration, even if an infrastructure connection is set up via an AP with the privacy separator function turned on by CLS, it is possible to set up so that the terminal device 101 and the communication device 151 can communicate via a P2P connection.

[0152] In this embodiment, the communication device 151 is in a form of simultaneous operation, and even if an infrastructure connection is set via an AP with a privacy separator function turned on, the communication device 151 maintains a connection with the AP 131. This allows the communication device 151 to use the Internet (communicate with the external server 161) via the connection with the AP 131, and to communicate with the terminal device 101 via a P2P connection with the terminal device 101.

[0153] In addition, in this embodiment, the communication device 151 can execute both CLS using Wi-Fi and CLS using BLE. This allows the communication device 151 to execute CLS with a device that supports only Wi-Fi, and also to execute CLS with a device that supports both Wi-Fi and BLE. Furthermore, in the case of CLS with a device that supports both Wi-Fi and BLE, it is possible to quickly complete the setup.

[0154] (Other embodiments) In the above, a privacy separator function has been described to solve the problem that communication between the terminal device 101 and the communication device 151 is not relayed by the AP 131. For example, a function called an SSID separator function, which prevents the AP from relaying communication between devices having different SSIDs, may prevent communication between the devices from being relayed by the AP. In addition, functions such as "isolate", "AP isolation", "network separation function", "separation within SSID", and "segregation function" may prevent communication between the devices from being relayed by the AP. In this way, a function other than the privacy separator function may prevent communication between the terminal device 101 and the communication device 151 from being relayed by the AP 131. These functions may also solve the problem that the terminal device and the communication device cannot communicate via an external device by the control described in the above embodiment.

[0155] Note that even if the communication between the terminal device 101 and the communication device 151 is not relayed by the AP 131 due to the SSID separator function, it does not necessarily mean that the communication between the communication device 151 and a device other than the terminal device 101 is not relayed by the AP 131. For example, even if the communication between devices is not relayed by the AP 131 due to the SSID separator function, there are cases where the communication device 151 can communicate with a device that belongs to the same LAN as the communication device 151 and has the same SSID as the communication device 151. Therefore, even in cases where the communication between the terminal device 101 and the communication device 151 is not relayed by the AP 131 due to the SSID separator function, the communication device 151 is assumed to newly connect to the terminal device 101 while maintaining the connection with the AP.

[0156] That is, the control described in the above-described embodiment is intended to solve the problem that the terminal device 101 cannot execute communication with the communication device 151 via an infrastructure connection even though the terminal device 101 executes processing for connecting the AP 131 and the communication device 151. The reason why the terminal device 101 cannot execute communication with the communication device 151 via an infrastructure connection may be due to the privacy separator function or may be due to other reasons.

[0157] In the above, a form in which the communication device 151 is operated in infrastructure mode by the CLS when the privacy separator function of the AP 131 is OFF has been described, but the present invention is not limited to this form. Regardless of whether the privacy separator function of the AP 131 is OFF or not, the communication device 151 may be operated in P2P mode by the CLS. For example, the terminal device 101 displays a setting screen 900 shown in FIG. 9 on the display unit. When the infrastructure connection start button 902 is selected by the user, the terminal device 101 executes the process of FIG. 7 as described in the above embodiment, and sets the infrastructure mode to the communication device 151 with priority. On the other hand, when the P2P connection start button 903 is selected by the user, the terminal device 101 does not transmit an infrastructure mode setting instruction to the communication device 151, but transmits a P2P mode setting instruction. That is, the terminal device 101 sets the P2P mode to the communication device 151 with priority. 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 809 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 CLS. 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 executes the process of FIG. 7. 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 for notifying the user that the communication device 151 will be switched to the CLS mode.

[0158] 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 mode setting instruction 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.

[0159] In the above description, the terminal device 101 transmits a response request to the communication device 151 and executes a process of determining whether communication between the terminal device 101 and the communication device 151 is possible via the AP 131, but the present invention is not limited to this form. For example, the communication device 151 may transmit a response request to the terminal device 101 in order to execute the determination. In this form, if the communication device 151 receives a response from the terminal device 101 before a timeout occurs, the communication device 151 determines that communication between the terminal device 101 and the communication device 151 is possible via the AP 131. Also, if the communication device 151 does not receive a response from the terminal device 101 before a timeout occurs, the communication device 151 determines that communication between the terminal device 101 and the communication device 151 is not possible via the AP 131. Then, the communication device 151 transmits a determination result of the determination to the terminal device 101 via BLE communication or the like, and the terminal device 101 switches between maintaining an infrastructure connection or establishing a new P2P connection based on the received determination result.

[0160] In the above description, the communication device 151 always operates simultaneously when receiving an infrastructure mode setting instruction, but this is not limited to the above. For example, the communication device 151 may receive the result of the determination (S710 or S718) of whether or not communication is possible between the terminal device 101 and the communication device 151 via the AP 131 by BLE communication or the like. Then, the communication device 151 may start operating in the P2P mode when the result of the determination is NO, and may not start operating in the P2P mode when the result of the determination is YES. Note that, if the communication device 151 itself makes the determination, it may switch whether or not to start operating in the P2P mode based on the result of the determination made by itself.

[0161] 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]

[0162] 101 Terminal Equipment 151 Communication equipment

Claims

1. A method for controlling a communication system including a terminal device and a communication device, a first establishing step of establishing a first connection between an external device external to the terminal device and the communication device and the communication device; a determination step of determining whether or not communication between the communication device and the terminal device via the external device can be performed in a state where the communication device and the terminal device are connected to the same external device by establishing the first connection; a second establishment step of establishing a second connection between the terminal device and the communication device not via the external device while maintaining the first connection established in the first establishment step, based on the determination that communication between the communication device and the terminal device via the external device is not executable; having The communication device includes: When the second connection is established, communication with the terminal device is possible via the second connection; A control method characterized in that even if the second connection is established based on determining that communication between the communication device and the terminal device via the external device is not possible, as long as the first connection is maintained, communication with a device other than the terminal device is possible via the first connection.

2. The method further includes the step of enabling an internal access point in the communication device; The method according to claim 1 , wherein the second connection is a connection between the terminal device and the communication device via the enabled internal access point.

3. The control method described in claim 2, further comprising a disabling step of disabling the internal access point when the second connection is not established because it is determined that communication between the communication device and the terminal device via the external device is not possible.

4. 4. The method according to claim 2, wherein the internal access point is enabled after the first connection is established.

5. 5. The control method according to claim 1, further comprising a control step of controlling so that the communication channel used for the first connection and the communication channel used for the second connection are the same.

6. The method further includes a request transmission step of transmitting a response request to the communication device via the external device in a state in which the communication device and the terminal device are connected to the same external device by establishing the first connection, the determination of whether communication between the communication device and the terminal device via the external device is executable is executed by the terminal device; A control method according to any one of claims 1 to 5, characterized in that if the terminal device receives a response based on the response request from the communication device via the external device, it is determined that communication via the external device is possible between the communication device and the terminal device, and if the terminal device does not receive a response based on the response request from the communication device via the external device, it is determined that communication via the external device is not possible between the communication device and the terminal device.

7. a third establishing step of establishing a third connection between the terminal device and the communication device before the first connection is established; a connection information transmitting step of transmitting first connection information for establishing the first connection to the communication device via the third connection; a connection information receiving step of receiving second connection information for establishing the second connection from the communication device via the third connection, the first connection is established based on the first connection information received by the communication device; 7. The method according to claim 1, wherein the second connection is established based on the second connection information received by the terminal device.

8. The control method according to claim 7 , wherein a communication method used for the third connection is different from a communication method used for the first connection and a communication method used for the second connection.

9. 9. The control method according to claim 8, wherein the first connection is established in a state in which the third connection is established.

10. 10. The method according to claim 8, further comprising a receiving step of receiving information from the communication device via the third connection, the information relating to whether the establishment of the first connection was successful or not.

11. 11. The control method according to claim 8, wherein the communication method used for the third connection is any one of Classic Bluetooth, Bluetooth Low Energy, Wi-Fi Aware, and Near Field Communication.

12. 8. The control method according to claim 7, wherein the communication method used for the third connection is the same as the communication method used for the first connection and the communication method used for the second connection.

13. The method according to claim 12, characterized in that the first connection is established after the third connection is disconnected.

14. The method further includes a receiving step of receiving, by the terminal device, an instruction to establish the first connection from a user; The first connection information is transmitted to the communication device based on the reception of the instruction; A control method according to any one of claims 7 to 13, characterized in that the first connection information is information for establishing the first connection between the external device to which the terminal device is connected when the instruction is accepted and the communication device.

15. when the terminal device is connected to the external device when the instruction is accepted, information for establishing the first connection between the external device to which the terminal device is connected when the instruction is accepted and the communication device is transmitted to the communication device as the first connection information; The control method described in claim 14, characterized in that if the terminal device is not connected to the external device when the instruction is accepted, information for establishing the first connection between the external device to which the terminal device is not connected when the instruction is accepted and the communication device is transmitted to the communication device as the first connection information.

16. if the terminal device is connected to the external device when the instruction is accepted, the first connection information is transmitted to the communication device; if the terminal device is not connected to the external device when the instruction is accepted, the first connection information is not sent to the communication device, and a command for establishing the second connection is sent to the communication device; The method of claim 14, wherein when the command is sent to the communication device, the first connection is not established and the second connection is established.

17. The external device has a privacy separator function, When the first connection is established and the communication device and the terminal device are connected to each other via the external device, the terminal device and the communication device belong to the same Local Area Network, 17. The control method according to claim 1, wherein a device other than the terminal device that communicates with the communication device via the first connection does not belong to the same Local Area Network as the terminal device and the communication device.

18. A control method according to any one of claims 1 to 17, characterized in that a device other than the terminal device that communicates with the communication device via the first connection is a server for providing services to the communication device via the Internet.

19. 20. The control method according to claim 18, wherein the service provided to the communication device from a device other than the terminal device is a Social Networking Service.

20. receiving specific information from the communication device via the first connection when it is determined that communication between the communication device and the terminal device via the external device is possible; A control method according to any one of claims 1 to 19, characterized in that when it is determined that communication between the communication device and the terminal device via the external device is not possible, the specific information is received from the communication device via the second connection.

21. 21. The control method according to claim 20, wherein the specific information is a print job for causing the communication device to execute printing or a scan job for causing the communication device to execute scanning.

22. 22. The control method according to claim 1, further comprising a printing step of executing printing by the communication device.

23. 23. The control method according to claim 1, wherein the communication method used for the first connection and the communication method used for the second connection are communication methods based on the IEEE 802.11 series of standards.

24. A method for controlling a terminal device that communicates with a communication device, comprising: a transmitting step of transmitting, to the communication device, connection information for establishing a first connection between the communication device and an external device that is external to the terminal device and the communication device; a determination step of determining whether or not communication between the communication device and the terminal device via the external device is executable in a state in which the first connection is established based on the connection information and the communication device and the terminal device are connected via the external device; an establishing step of establishing a second connection between the terminal device and the communication device not via the external device based on the determination that communication between the communication device and the terminal device via the external device is not executable; having The second connection is established in a state in which the first connection is established, A control method characterized in that, when the second connection is established, the communication device is capable of communicating with the terminal device via the second connection, and, when the first connection is established, the communication device is capable of communicating with at least a device other than the terminal device via the first connection.

25. A method for controlling a communication device that communicates with a terminal device, comprising: a first establishing step of establishing a first connection between an external device external to the terminal device and the communication device and the communication device; a second establishment step of establishing a second connection between the terminal device and the communication device without going through the external device, in a state in which the first connection is established, based on the determination by the terminal device that communication between the communication device and the terminal device via the external device is not executable; having A control method characterized in that, when the second connection is established, the communication device is capable of communicating with the terminal device via the second connection, and, when the first connection is established, the communication device is capable of communicating with at least a device other than the terminal device via the first connection.

26. A program causing a computer to execute each step of the control method according to any one of claims 1 to 25.

27. A communication system including a terminal device and a communication device, a first establishing means for establishing a first connection between an external device external to the terminal device and the communication device and the communication device; a determination means for determining whether or not communication between the communication device and the terminal device via the external device can be performed in a state in which the communication device and the terminal device are connected to the same external device by establishing the first connection; a second establishing means for establishing a second connection between the terminal device and the communication device not via the external device while maintaining the first connection, based on the determination that communication between the communication device and the terminal device via the external device is not executable; having The communication device includes: When the second connection is established, communication with the terminal device is possible via the second connection; A communication system characterized in that even if the second connection is established based on determining that communication via the external device is not possible between the communication device and the terminal device, as long as the first connection is maintained, communication with a device other than the terminal device is possible via the first connection.

Citation Information

Patent Citations

  • Communication device and mobile terminal

    JP2014027384A

  • Communication device

    JP2014127871A

  • Radio communication equipment

    JP2014195215A

  • Information processing unit, method, program, and information processing system

    JP2015212893A

  • Communication device, control method therefor and program

    JP2017208776A

Cited By

  • Communication system, function execution device, and computer program for function execution device

    JP2026144009A

  • Terminal device, function execution device, and method

    JP2026144011A

  • Communication device, computer program for communication device, and communication system

    JP2026144062A