Communication Systems

The program optimizes antenna usage in information processing devices by controlling the number of antennas based on power consumption and detection needs, addressing the inefficiency of multiple antennas in Bluetooth Low Energy communication.

JP7566457B2Active Publication Date: 2024-10-15CANON KK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2019111367
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-06-14
Publication Date
2024-10-15
Estimated Expiration
2039-06-14

AI Technical Summary

Technical Problem

Information processing devices using multiple antennas for Bluetooth Low Energy communication face higher power consumption, necessitating a control mechanism to manage antenna usage effectively.

Method used

A program that controls the number of antennas used based on the direction detection requirements and power consumption needs, switching between states with different numbers of antennas to optimize power usage while maintaining communication functionality.

Benefits of technology

The solution allows for appropriate control of antenna usage, reducing power consumption when direction detection is not necessary and ensuring efficient communication when direction detection is required.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566457000001
    Figure 0007566457000001
  • Figure 0007566457000002
    Figure 0007566457000002
  • Figure 0007566457000003
    Figure 0007566457000003
Patent Text Reader

Abstract

To properly control the number of antennas used.SOLUTION: The problem is solved by providing a program that executes a control step for operating an information processing device in a state among a plurality of states based on at least one of the information received from a communication device capable of performing communication by a predetermined communication method and a state of the information processing 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, and more particularly to a communication system that connects an information processing device equipped with a short-range wireless communication unit and a communication device. [Background technology]

[0002] 2. Description of the Related Art There is known an information processing device that communicates with a communication device using a communication method such as Bluetooth Low Energy (see Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2017-188869 Summary of the Invention [Problem to be solved by the invention]

[0004] Incidentally, an information processing device may have multiple antennas for communication by a communication method such as Bluetooth Low Energy. Such an information processing device can detect the direction of the communication device relative to the information processing device by using the multiple antennas. However, a state in which a large number of antennas are used consumes more power than a state in which a small number of antennas are used.

[0005] Therefore, an object of the present invention is to appropriately control the number of antennas to be used. [Means for solving the problem]

[0006] The present invention has been made to solve the above problems, and is a program comprising: a plurality of antennas for communicating by a predetermined communication method; a computer of an information processing device operable in any one of a plurality of states including a first state in which communication is performed by the predetermined communication method using a first number of antennas among the plurality of antennas, and a second state in which communication is performed by the predetermined communication method using a second number of antennas among the plurality of antennas, the second number being less than the first number; Based on one or more of a state of the information processing device that is different from the first state and the second state, information received from a communication device capable of performing communication by the predetermined communication method, and a state of the communication device. I a control step of operating the information processing device in either the first state or the second state; a step of determining a direction of the communication device relative to the information processing device based on communication in the predetermined communication method performed using the first number of antennas when the information processing device is operating in the first state by the control step; a display step of displaying, on a display unit, a screen indicating the direction of the communication device with respect to the information processing device when the direction of the communication device with respect to the information processing device is identified by the information processing device operating in the first state by the control step; The present invention is characterized in that the above-mentioned is executed. Effect of the Invention

[0007] The number of antennas used can be appropriately controlled. [Brief description of the drawings]

[0008] [Figure 1] 1 is a diagram illustrating an example of a configuration of an information processing device and a communication device according to an embodiment of the present invention. [Diagram 2] 11 is a diagram for explaining the process of broadcasting advertising information and receiving connection request information. FIG. [Diagram 3] FIG. 1 is a diagram for explaining advertising in BLE. [Figure 4] FIG. 13 is a diagram showing a screen relating to pairing processing. [Diagram 5] A diagram showing the structure of advertisement information used for direction detection in BLE. [Figure 6] FIG. 1 is a diagram for explaining direction detection in BLE. [Figure 7] FIG. 1 is a diagram for explaining direction detection in BLE. [Figure 8] FIG. 1 is a diagram for explaining direction detection in BLE. [Figure 9] A diagram showing the structure of advertisement information. [Figure 10] 1 is a sequence diagram showing a process in which an information processing device and a communication device establish a network connection by a BLE communication method. [Figure 11] FIG. 2 is a diagram showing the data format of GATT. [Figure 12] 1 is a table showing an example of a configuration of GATT data. [Figure 13] 1 is a sequence diagram showing a process in which an information processing device and a communication device connect to each other by a BLE communication method. [Figure 14] 11 is a flowchart showing a process of controlling the number of BLE antennas to be used, which is executed by the information processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

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

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

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

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

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

[0014] The CPU 103 is a system control unit, and controls the entire information processing device 101 .

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

[0016] 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 information processing device 101, management data for the information processing device 101, and the like. The RAM 105 is also used as the main memory and work memory for the CPU 103.

[0017] The external storage device 106 stores an application that provides a print execution function, a print information generation program that generates 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 that is transmitted to and received from the communication device 151 connected via the communication unit 109, and various information used by these programs.

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

[0019] 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 information processing device 101. Note that a soft keyboard having keys such as numeric input keys, a mode setting key, a decision key, a cancel key, and a power key may be provided on the display unit 108 to accept input from the user via the display unit 108.

[0020] The communication unit 109 is a component for connecting to a device such as the communication device 151 and executing data communication. For example, the communication unit 109 can be connected to an access point (not shown) in the communication device 151. By connecting the communication unit 109 to the access point in the communication device 151, the information processing device 101 and the communication device 151 can communicate with each other. The communication unit 109 may directly communicate with the communication device 151 by wireless communication, or may communicate via an external access point (access point 131) that exists outside the information processing device 101 or the communication device 151. Examples of the wireless communication method include Wi-Fi (Wireless Fidelity) (registered trademark) and Bluetooth (registered trademark). Examples of the access point 131 include devices such as a wireless LAN router. In this embodiment, a method in which the information processing device 101 and the communication device 151 are directly connected without going through an external access point is called a direct connection method. Moreover, a method in which the information processing device 101 and the communication device 151 are connected via an external access point is called an infrastructure connection method.

[0021] The short-range wireless communication unit 110 is configured to perform data communication by wirelessly connecting to a device such as the communication device 151 at a short distance, and performs communication by a communication method different from that of the communication unit 109. The short-range wireless communication unit 110 can be connected to a short-range wireless communication unit 157 in the communication device 151. In this embodiment, Bluetooth 5.1 is used as the communication method of the short-range wireless communication unit 110. Note that Bluetooth 5.1 includes both standards, Classic Bluetooth and Bluetooth Low Energy (BLE), but in this embodiment, BLE is used as the communication method of the short-range wireless communication unit 157.

[0022] The communication device 151 is the communication device of this embodiment and includes a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, a short-range wireless communication unit 157, and the like.

[0023] The communication unit 156 has an access point for connecting to a device such as the information processing device 101 as an access point inside the communication device 151. The access point can be connected to the communication unit 109 of the information processing device 101. The communication unit 156 may directly communicate with the information processing device 101 by wireless communication, or may communicate via the access point 131. Examples of the communication method include Wi-Fi (registered trademark) and Bluetooth (registered trademark). 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.

[0024] The short-range wireless communication unit 157 is configured to establish a short-range wireless connection with a device such as the information processing device 101. In this embodiment, Bluetooth 5.1 is used as the communication method of the short-range wireless communication unit 157. More specifically, in this embodiment, BLE is used as the communication method of the short-range wireless communication unit 157.

[0025] 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 information processing device 101, etc., and various types of information.

[0026] 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. The CPU 154 is a system control unit, and controls the entire communication device 151 .

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

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

[0029] In addition, the communication device of the present embodiment has a connection mode set by a connection setting process, and communicates with the information processing device in a connection form based on the set connection mode. When communicating via infrastructure connection, the communication device of the present embodiment sets the infrastructure connection mode as the connection mode, and when communicating via direct connection, the communication device sets the direct connection mode as the connection mode.

[0030] Here, the division of processing between the information processing device 101 and the communication device 151 is shown as above as an example, but the division is not limited to this and may be in another form.

[0031] In this embodiment, the information processing device 101 stores a predetermined application in the ROM 104, the external storage device 106, or the like. The predetermined application is, for example, an application program for transmitting a print job to the communication device 151 to print image data, document data, or the like in the information processing device 101. An application having such a function is hereinafter referred to as a print application. The print application may have other functions in addition to the print function. For example, when the communication device 151 has a scan function, the print application may have a function for scanning a document set in the communication device 151, a function for making other settings of the communication device 151, a function for checking the status of the communication device 151, and the like. That is, the print application may have a function for transmitting a scan job or a setting job to the communication device 151 in addition to a print job. The predetermined application is not limited to a print application, and may be an application program having a function other than printing.

[0032] In addition, in this embodiment, the short-range wireless communication unit 110 and the short-range wireless communication unit 157 are described as performing communication by BLE. In this embodiment, the short-range wireless communication unit 157 functions as an advertiser (or slave) that broadcasts advertising information described below, and the short-range wireless communication unit 110 functions as a scanner (or master) that receives the advertising information. In addition, the communication unit 109 and the communication unit 156 are described as performing communication by wireless LAN (Wi-Fi). Here, the process of transmitting advertising information and receiving a BLE connection request in the BLE standard will be described. In this embodiment, since the short-range wireless communication unit 157 operates as a slave device as described above, it is assumed that the short-range wireless communication unit 157 performs the above process. The short-range wireless communication unit 157 performs communication by dividing the 2.4 GHz frequency band into 40 channels (0 to 39 ch). The short-range wireless communication unit 157 uses the 37th to 39th channels for transmitting advertising information and receiving a BLE connection request, and the 0th to 36th channels for data communication after BLE connection. In FIG. 2, the vertical axis indicates the power consumption of the short-range wireless communication unit 157, the horizontal axis indicates time, and the power consumption when transmitting advertising information using one channel is shown for each process. Tx205 indicates the total power consumption in the transmission process, which is a process for broadcasting advertising information, and Rx206 indicates the total power consumption in the reception process, which is a process for enabling a receiver for receiving a BLE connection request. Transmission power 202 indicates the instantaneous power consumption due to the transmission process. Also, reception power 203 indicates the instantaneous power consumption due to the reception process. Also, microcomputer operating power 201 indicates the instantaneous power consumption when the microcomputer in the short-range wireless communication unit 157 is operating. The reason why the microcomputer is operating before, during, and after Tx205 and Rx206 is that the microcomputer needs to be started in advance to execute or stop the transmission and reception processes. In addition, when advertising information is transmitted through multiple channels, the power consumption increases by the number of channels through which the advertising information is transmitted. In addition, while the microcomputer is not operating and the short-range wireless communication unit 157 is in a power saving state, the sleep power 204 is the instantaneous power consumption of the short-range wireless communication unit 157.In this way, the short-range wireless 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 BLE connection request to be transmitted from the information processing device 101.

[0033] As shown in FIG. 3, the short-distance wireless 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 called advertising. Also, the time interval for transmitting advertising information by a specific channel is called advertising interval. Note that the number of times advertising is repeated from the first advertising until entering a power-saving state can be changed arbitrarily as long as it is three or less. Also, in FIG. 3, the channels used during advertising are 37, 38, and 39 in that order, but this order may be random, and the order may be different for the first advertising, the second advertising, and the third and subsequent advertising.

[0034] FIG. 9 shows an example of the structure of advertising information that the short-range wireless communication unit 157 broadcasts to the vicinity of the communication device 151.

[0035] When the supply of power starts, the short-distance wireless communication unit 157 performs an initialization process and enters an advertising state. When the short-distance wireless communication unit 157 enters an advertising state, it periodically broadcasts advertising information to the periphery based on an advertising interval. The advertising information is a signal including basic header information (identification information for identifying a device that transmits the advertising information, etc.), and is composed of a header 901 and a payload 902. By receiving this advertising information, the information processing device 101 can recognize the presence of the communication device 151. Furthermore, the information processing device 101 can BLE connect to the communication device 151 by transmitting a BLE connection request to the communication device 151. The header 901 is an area for storing information such as the type of advertising information and the size of the payload 902. The payload 902 stores information such as a device name 903 as identification information, installed profile information, connection information 904 for BLE connection to the communication device 151, and transmission power (Tx Power) 905 of the advertising information. The advertisement information may include communication device identification information 906. The communication device identification information 906 may include the MAC address of the communication device, service information of the communication device, the SSID of an access point in the communication device, a password, and the like.

[0036] In this embodiment, the short-range wireless communication unit 157 is set to an advertising state and starts transmitting advertising information when the power supply of the communication device 151 is turned on. However, the timing when the short-range wireless communication unit 157 starts transmitting the advertising information is not limited to the above-mentioned form, and may be, for example, the timing when a predetermined operation is performed to enable the BLE function.

[0037] For example, the short-range wireless communication unit 157 may transmit first advertising information, and when receiving a scan response to the first advertising information from the information processing device 101, transmit second advertising information whose content is different from that of the first advertising information. For example, the first advertising information includes information on the transmission power of the advertising information and identification information of the short-range wireless communication unit 157. The second advertising information includes identification information of the communication device 151 and information on the functions and hardware of the communication device 151. In such a case, for example, a printing application is designed to handle the second advertising information. Therefore, in the following description, the advertising information handled by the printing application is the second advertising information.

[0038] Here, we will explain the overview of GATT (Generic Attribute Profile) communication in the BLE standard. GATT is a profile that controls the reading and writing (sending and receiving) of information in the BLE standard.

[0039] In GATT communication, two roles are defined: GATT client and GATT server, based on the data source and destination.

[0040] The GATT client transmits a request to the GATT server and receives a response from the GATT server. In this embodiment, the information processing device 101 serves as the GATT client. The GATT client can read information stored in a storage area in the short-range wireless communication unit of the GATT server and write information to the storage area.

[0041] When the GATT server receives a request from the GATT client, it returns a response to the GATT client. In this embodiment, the communication device 151 serves as the GATT server, and the information processing device 101 serves as the GATT client. The GATT server operates as a device that stores information such as status information of the GATT server.

[0042] Next, the data format of GATT will be described. GATT data has a hierarchical structure as shown in FIG. 11 and is composed of three elements called services, characteristics, and descriptors. However, the descriptor does not have to exist, and in this embodiment, the GATT data composed by the short-range wireless communication unit 157 does not have a descriptor. The services, characteristics, and descriptors can be identified by a UUID (Universally Unique Identifier) ​​expressed in 32 digits. The UUID is used as an identifier for uniquely identifying an object on software. The UUID is a 128-bit number, but is usually expressed in hexadecimal as 550e8400-e29b-41d4-a716-446655440000. The services, characteristics, and descriptors include those defined by the Bluetooth SIG standard and those unique to the vendor. The vendor-specific UUID is expressed as 32 digits as described above, but the UUID defined by the Bluetooth SIG standard is expressed as 4 digits. For example, the UUID defined by the Bluetooth SIG standard is expressed as 2A49.

[0043] A service is a grouping of attributes in GATT data according to common categories, and each service includes one or more characteristics. A single value is set for each characteristic. A descriptor is set with an attribute value that is used when additional information is required for a characteristic. A service, characteristic, and descriptor can each be set with a read / write attribute, which is a setting value that indicates whether or not the GATT client is allowed to read or write.

[0044] A GATT client can read and write the values ​​set in a specified characteristic by specifying the UUID of each service and characteristic. However, whether or not read and write can be performed depends on the read and write attributes set in each service and characteristic.

[0045] FIG. 12 shows an example of GATT data constructed by the short-range wireless communication unit 157. In the GATT data in FIG. 12, "Service UUID" indicates a UUID assigned to each service. "Service name" indicates the name of each service. "Charactaristic UUID" indicates a UUID assigned to each characteristic. "Characteristic name" indicates the name of each characteristic. "Service readable" indicates whether the information processing device 101 can read (read) values ​​related to each service. "Service writeable" indicates whether the information processing device 101 can write (write) values ​​related to each service. "Characteristic readable" indicates whether the information processing device 101 can read values ​​related to each characteristic. "Characteristic writeable" indicates whether the information processing device 101 can write (write) values ​​related to each characteristic. "Characteristic Indicateable" indicates whether or not a value related to each characteristic can be indicated (notified) to the information processing device 101 when the communication device 151 updates the value related to each characteristic. "Pairing Required" indicates whether or not the information processing device 101 is permitted to write or read a value related to each characteristic unless pairing has been completed. When "Service Readable" indicates readable (○) and "Characteristic Readable" indicates readable (○), the information processing device 101 can read a value related to the corresponding characteristic. When "Service Readable" indicates readable (○) and "Characteristic Readable" indicates unreadable (blank), the information processing device 101 cannot read a value related to the corresponding characteristic. "Value" indicates a value set for each characteristic. When "Pairing Required" indicates pairing not required (blank), the information processing device 101 can read and write a value related to the corresponding characteristic even when not paired with the communication device 151.On the other hand, when "Pairing Required" indicates that pairing is required (◯), the information processing device 101 cannot read or write values ​​related to the corresponding characteristic unless it is in a state of being paired with the communication device 151.

[0046] In this embodiment, authentication is performed between the information processing device 101 and the communication device 151, and pairing processing is performed to read and write data between the devices through GATT communication. In a state where pairing is not performed between the information processing device 101 and the communication device 151, the communication device 151 is configured not to permit reading and writing of information through GATT communication. In this manner, it is possible to prevent the information processing device 101 and the communication device 151 that are not paired from communicating with each other, and for example, to prevent information held by the communication device 151 from being inadvertently acquired by the information processing device 101 that is not paired. Note that in this embodiment, there is GATT communication that is permitted in a state where pairing is not performed, and GATT communication that is not permitted in a state where pairing is not performed. By allowing low confidentiality information to be communicated through GATT communication that is permitted in a state where pairing is not performed, the convenience of communication can be improved. On the other hand, by allowing high confidentiality information to be communicated only through GATT communication that is not permitted in a state where pairing is not performed, the security of communication can be improved.

[0047] The pairing process will be described in detail. First, when the above-mentioned print application is started and an instruction to execute the pairing process is received from a user via the print application, the information processing device 101 starts searching for advertising information having specific device information. The specific device information is, for example, a UUID or a MAC address of a device (printer, etc.) corresponding to the print application. Then, when the information processing device 101 receives the advertising information having the specific device information, it displays a list of devices that are the senders of the advertising information having the specific device information on the display unit, and receives a selection of a device to be paired from the user. Here, the description will be given assuming that the communication device 151 is selected.

[0048] Then, when the information processing device 101 accepts the selection of the device to be paired, it transmits a pairing request to the communication device 151 by communication according to the security manager protocol. Note that until the pairing is completed, communication between the devices is performed according to the security manager protocol. When the communication device 151 receives the pairing request, it displays a PIN code display screen 400 as shown in FIG. 4(a) on the display unit 160. The PIN code display screen 400 displays a PIN code 401 and a Cancel button 402 for canceling the pairing process. Then, when the information processing device 101 transmits the pairing request, it displays a PIN code input screen 410 as shown in FIG. 4(b) on the display unit 108. The PIN code input screen 410 displays a PIN code input area 411 for accepting input of the PIN code 401 by the user. In addition, an OK button 413 for transmitting the input PIN code 401 to the communication device 151 and a Cancel button 412 for canceling the pairing process are displayed. When the OK button 413 is pressed with the PIN code 401 input in the PIN code input area 411, the information processing device 101 transmits information including the input PIN code 401 to the communication device 151. The communication device 151 determines whether the PIN code 401 included in the received information matches the PIN code 401 displayed on the PIN code display screen 400, and permits pairing with the information processing device 101 if it determines that they match. Specifically, the communication device 151 exchanges a link key (authentication information) created by a predetermined method based on the PIN code 401 with the information processing device 101 by using the SMP (Security Manager Protocol) of the BLE standard. The exchanged link key is stored in a storage area (ROM 104, etc.) of the information processing device 101 and a storage area (ROM 152, etc.) of the communication device 151, respectively. This completes pairing, and thereafter, BLE communication is permitted to be performed between the devices. When pairing is completed, the information processing device 101 hides the PIN code display screen 400 and displays the original screen again.

[0049] After the pairing is completed, when the information processing device 101 transmits a GATT communication request to the communication device 151, the information processing device 101 notifies the communication device 151 of the link key stored in the storage area during the pairing process. When the communication device 151 receives a GATT communication request, the communication device 151 compares the link key stored in the storage area during the pairing process with the notified link key to confirm whether the device transmitting the GATT communication request is a paired device. Then, when the communication device 151 confirms that the device is a paired device, it starts reading and writing information through GATT communication with the information processing device 101. As a result, once the information processing device 101 has completed the pairing process with the communication device 151, it can thereafter execute GATT communication with the communication device 151 without the user having to enter a PIN code. Note that in the above description, a PIN code input screen is displayed in the PIN code input area 411. 400 In the above embodiment, the user is prompted to input the PIN code 401 displayed on the screen, but the present invention is not limited to this embodiment. For example, the PIN code 401 may be fixed information (which the user cannot change at will) and stored in the information processing device 101 together with the installation of a print application, so that the PIN code 401 is notified to the communication device 151 without a user input. In addition, the timing at which the pairing process is started is not limited to the above embodiment, and may be, for example, the timing at which the user issues a print instruction via a print application, or the timing before a BLE connection is established in a connection setting process.

[0050] Furthermore, the PIN code input screen 410 displayed by the information processing device 101 does not have to be displayed by the print app. For example, the information processing device 101 may have a setting application (hereinafter, the setting app). The setting app is an application program for making settings related to functions executed by the OS. The setting app is, for example, an application program that is installed together with the OS in a series of processes in which the OS is installed in the information processing device 101, or that is installed in advance together with the OS in the information processing device 101 when the information processing device 101 arrives. When pairing with the communication device 151, the information processing device 101 may start the setting app, transition the print app to the background, and accept an input for pairing from the user on a Bluetooth setting screen displayed by the setting app.

[0051] Although the PIN code input type pairing method has been described above, the pairing method is not limited to the above-mentioned method. Below, a pairing method other than the PIN code input type will be described. The information processing device 101 acquires information called a key seed, which is information held by the communication device 151, from the communication device 151 via a BLE connection. Then, the information processing device 101 and the communication device 151 generate a link key from the key seed according to a rule that each of them recognizes in advance. The generated link key is stored in a storage area (ROM 104, etc.) held by the information processing device 101 and a storage area (ROM 152, etc.) held by the communication device 151, respectively. That is, the information processing device 101 and the communication device 151 each hold the same link key. In this way, the link key is generated, and GATT communication using the link key is enabled, whereby authentication between the communication device 151 and the information processing device 101 is performed, and the pairing process is completed. After the pairing process is completed, information encrypted based on the link key is communicated in the communication between the information processing device 101 and the communication device 151. When the information processing device 101 and the communication device 151 receive information encrypted based on a link key, they can recognize the information before it was encrypted by decrypting it using the link key they hold.

[0052] 13 is a sequence diagram for explaining BLE communication between the information processing device 101 and the communication device 151. Note that the processing of the communication device 151 shown in this processing sequence is realized by the CPU 154 loading a control program stored in the ROM 152 or a HDD (not shown) included in the communication device 151 into the RAM 153 and executing the control program. Also, the processing of the information processing device 101 shown in this processing sequence is realized by the CPU 103 loading a control program stored in the ROM 104 or a HDD (not shown) included in the information processing device 101 into the RAM 105 and executing the control program.

[0053] In the following description, it is assumed that the communication device 151 is an advertiser that transmits advertising information at a predetermined interval. It is also assumed that the information processing device 101 is a scanner that waits for advertising information transmitted from a nearby advertiser. First, the short-range wireless communication unit 157 in the communication device 151 transmits advertising information (S1301 to S1303). The information processing device 101 can recognize the presence of the communication device 151 by the short-range wireless communication unit 110 receiving the advertising information transmitted from the short-range wireless communication unit 157.

[0054] When the information processing device 101 recognizes the communication device 151 and decides to connect to the communication device 151, the information processing device 101 transmits connection request information to the communication device 151. Specifically, the short-range wireless communication unit 110 transmits CONNECT_REQ which is a request for transitioning to a connection event for establishing a network connection by BLE (S1304). When the short-range wireless communication unit 157 receives CONNECT_REQ, the information processing device 101 and the communication device 151 prepare to transition to a connection event. Specifically, the short-range wireless communication unit 110 and the short-range wireless communication unit 157 notify the CPU 103 and the CPU 154, respectively, that connection processing for GATT communication has been completed.

[0055] Thereafter, the information processing device 101 and the communication device 151 transition from a scanner and an advertiser to a master and a slave, respectively, and the information processing device 101 as the master and the communication device 151 as the slave establish a connection (BLE connection) for GATT communication. Note that in the BLE standard, the master can form a "1:many" star topology with the slaves. After the information processing device 101 and the communication device 151 establish the BLE connection, they can perform data communication by the GATT communication method thereafter.

[0056] Now, before accessing the GATT data of the communication device 151 through GATT communication, the information processing device 101 needs to acquire what kind of configuration the GATT data of the communication device 151 has. The configuration of the GATT data is, for example, the number of services in the GATT data, the number of characteristics, the value of each UUID, an attribute indicating whether or not it can be read, etc. The means by which the information processing device 101 acquires the configuration of the GATT data is called discovery.

[0057] Therefore, after the BLE connection is established in S1304, the information processing device 101 starts discovery in S1305. Specifically, the information processing device 101 transmits a discovery request to the communication device 151 to request information indicating the configuration of the GATT data of the communication device 151. As a result, the communication device 151 transmits information indicating the configuration of the GATT data to the information processing device 101 as a response to the discovery request. The information processing device 101 that has received the information indicating the configuration of the GATT data identifies an area in the GATT data of the communication device 151 where a hash value is stored, and reads the hash value. The hash value is a value stored in the Database Hash characteristic whose Characteristic UUID in FIG. 12 is 0x2B2A. The communication device 151 stores a hash value calculated in advance by the communication device 151 from the configuration of the GATT data as a value of the Database Hash characteristic. In other words, the hash value is a value that is uniquely determined according to the configuration of the GATT data of the communication device 151.

[0058] Note that the information processing device 101 stores hash values ​​read from terminals to which the information processing device 101 has previously connected via BLE in a memory (such as the ROM 104) provided in the information processing device 101. In S1306, the information processing device 101 compares whether the hash value read in S1305 matches any of the hash values ​​read in the past (hash values ​​stored in the memory provided in the information processing device 101). That is, the information processing device 101 determines whether the communication device 151 is a terminal to which the information processing device 101 has previously connected via BLE. At this time, the information processing device 101 may add other information, such as individual identification information such as the MAC address of the communication device 151, in addition to the hash value, to the determination conditions.

[0059] If NO is determined in S1306, the information processing device 101 continues discovery to grasp the remaining configuration of the GATT data of the communication device 151. Therefore, in S1307, the information processing device 101 transmits a discovery request to the communication device 151 to request information indicating the configuration of the GATT data of the communication device 151. The communication device 151 that has accepted the request transmits information indicating the configuration of the GATT data to the information processing device 101 in S1308. Note that the transmission and reception of the discovery request and the information indicating the configuration of the GATT data are repeated by the number of services, characteristics, and descriptors in the GATT data. Therefore, in S1309, the transmission and reception of the discovery request and the information indicating the configuration of the GATT data are repeated until the transmission of all the information indicating the configuration of the GATT data is completed.

[0060] When the transmission of all information indicating the configuration of the GATT data is completed, in S1310, the information processing device 101 stores the configuration of the GATT data of the communication device 151 as a cache in a memory provided in the information processing device 101. At this time, the information processing device 101 stores in the memory the cache of the configuration of the GATT data of the communication device 151 in association with the hash value obtained from the communication device 151. Note that the information processing device 101 may further store in the memory other information such as individual identification information such as a MAC address of the communication device 151 in association with each other.

[0061] If the determination in S1306 is YES, this means that the information processing device 101 has already cached the configuration of the GATT data of the communication device 151, and therefore the processes in S1307 to S1310 may be omitted.

[0062] By acquiring the configuration of the GATT data of the communication device 151, the information processing device 101 can thereafter execute any GATT communication with the communication device 151. Therefore, the information processing device 101 executes any GATT communication with the communication device 151 in S1311.

[0063] After the GATT communication is completed, the information processing device 101 transmits a release request in S1312. The communication device 151 that has received the release request transmits a release response in S1313 and terminates the BLE connection between the devices. When the BLE connection between the devices is terminated, the information processing device 101 and the communication device 151 return to being a scanner and an advertiser, respectively, and the communication device 151 resumes transmitting advertisement information.

[0064] In this embodiment, the information processing device 101 supports the Bluetooth 5.1 standard and therefore has a function (direction detection function) of detecting the direction of another BLE-compatible device relative to the information processing device 101. The direction detection function will be described below.

[0065] FIG. 6 is a block diagram for explaining a function of the information processing device 101 detecting the direction of the communication device 151 by using advertising information transmitted by the short-range wireless communication unit 157 in the communication device 151. The short-range wireless communication unit 110 in the information processing device 101 includes an antenna 601, an antenna 602, and an antenna 603, and the short-range wireless communication unit 157 in the communication device 151 includes an antenna 604, an antenna 605, and an antenna 606. Note that the number of antennas included in the short-range wireless communication unit 110 and the short-range wireless communication unit 157 is not limited to this. The number of antennas may be one or two, or four or more. Also, the number of antennas included in the short-range wireless communication unit 110 and the short-range wireless communication unit 157 may differ from each other. Also, in FIG. 6, the antennas included in the short-range wireless communication unit 110 and the short-range wireless communication unit 157 are described as being arranged on a straight line, but the arrangement of the antennas is not limited to this.

[0066] FIG. 5 shows an example of the structure of advertising information transmitted by the short-range wireless communication unit 157 in the communication device 151 to allow the information processing device 101 to detect the distance from the communication device 151 and the direction of the position of the communication device 151. Constant Tone Extension (CTE) is data used to detect the direction of the communication device 151 relative to the information processing device 101. Preamble 501 is data for clock synchronization when the information processing device 101 receives advertising information of the communication device 151. Access-Address 502 is data for frame synchronization when the information processing device 101 receives advertising information of the communication device 151. PDU 503 is an actual data portion in the advertising information transmitted by the communication device 151. Note that the header 901 and payload 902, which are advertising information shown in FIG. 9, are information included in the PDU 503. CRC 504 is an error detection code value during communication of the PDU 503.

[0067] There are two methods by which the information processing device 101 detects the direction of the communication device 151: a method in which the short-range wireless communication unit 110 is equipped with multiple antennas, and a method in which the short-range wireless communication unit 157 is equipped with multiple antennas.

[0068] A method for the information processing device 101 to detect the direction of the communication device 151, which is realized by the short-range wireless communication unit 110 having multiple antennas, will be described with reference to FIG. 7. The short-range wireless communication unit 157 transmits an AoA Radio Signal 703, which is advertising information including a CTE 505, from an antenna 604. The short-range wireless communication unit 110 receives the AoA Radio Signal 703 with multiple antennas (both the antenna 601 and the antenna 602). Here, the phase difference of the AoA Radio Signal 703 received by the antenna 601 and the antenna 602 is set to ψ, and the wavelength is set to λ. Angle of Arrival θ702, which is the direction of the communication device 151 from the information processing device 101, is calculated using the AoA antenna distance d701, which is the distance between the antenna 601 and the antenna 602, and equation (1). θ=arccos((ψλ) / (2πd))...Equation (1)

[0069] In this way, the information processing device 101 that receives advertising information from the communication device 151 can detect the direction of the communication device 151 by calculating the Angle of Arrival θ702.

[0070] A method for the information processing device 101 to detect the direction of the communication device 151, which is realized by providing the short-range wireless communication unit 157 with multiple antennas, will be described with reference to Fig. 8. The short-range wireless communication unit 157 transmits an AoD Radio Signal 803, which is advertising information including a CTE 505, from multiple antennas (both antennas 604 and 605). The short-range wireless communication unit 110 receives the AoD Radio Signal 803 at the antenna 601. The phase difference between the AoD Radio Signal 803 transmitted from the antenna 604 and the antenna 605 is ψ, and the wavelength is λ.

[0071] For example, as shown in (A) of FIG. 8, it is assumed that a transmission period of the AoD Radio Signal 803 by the antenna 604 is set, and immediately thereafter, a transmission period of the AoD Radio Signal 803 by the antenna 605 is set. In this case, in the short-range wireless communication unit 157, no signal-free interval occurs between the transmission of the AoD Radio Signal 803 by the antenna 604 and the transmission of the AoD Radio Signal 803 by the antenna 605. Meanwhile, the short-range wireless communication unit 110 may receive these wireless signals in a format as shown in (B) of FIG. 8. That is, the signal transmitted from the antenna 605 arrives at the short-range wireless communication unit 110 later after passing through a longer path than the signal transmitted from the antenna 604, and therefore a signal-free interval occurs between these signals. Also, if the antenna 605 transmits a signal first, the signal transmitted from the antenna 604 will arrive at the short-range wireless communication unit 110 before all of the signals transmitted from the antenna 605 arrive at the short-range wireless communication unit 110. Furthermore, when a no-signal section of a predetermined length is set after the completion of the signal transmission period of the antenna 604, and a signal transmission period from the antenna 605 is set, the no-signal section is observed to be longer than the predetermined length in the wireless signal received by the short-range wireless communication unit 110. Similarly, when a no-signal section of a predetermined length is set after the completion of the signal transmission period of the antenna 605, and a signal transmission period from the antenna 604 is set, the no-signal section is observed to be shorter than the predetermined length in the wireless signal received by the short-range wireless communication unit 110. In this way, the signals transmitted from the multiple antennas are observed as timing deviations according to the respective path lengths in the short-range wireless communication unit 110. Note that, in order to observe the timing deviations, scheduling information on which antennas transmit signals at what timing is notified to the short-range wireless communication unit 110 in advance (for example, from the short-range wireless communication unit 157 or another device).

[0072] The difference in reception timing corresponds to a phase difference in the received signal. For example, in the example of Fig. 8, the signal transmitted from antenna 605 arrives at short-range wireless communication unit 110 via a path that is d2 x cos(φ) longer than the signal transmitted from antenna 604. Here, d2 is the inter-antenna distance 801 between antennas 604 and 605. Due to this difference in path length, a reception timing difference of d2 x cos(φ) / c seconds occurs, assuming that the propagation speed of light is c. ψ2=2π×d2×cos(φ) / λ...Equation (2) A phase difference of only ψ2 occurs. As described above, λ is the wavelength of the radio wave (advertisement information). φ is the angle between the line connecting the short-range wireless communication unit 157 and the short-range wireless communication unit 110 and the line connecting the antenna 604 and the antenna 605. This angle is called the Angle of Departure, and will be represented as AoD802 below. The short-range wireless communication unit 110 can specify the phase difference ψ2 by performing correlation detection using the first received signal of the multiple signals transmitted from the short-range wireless communication unit 157 as a reference, for example. Then, the short-range wireless communication unit 110 calculates AoD802 using the phase difference ψ2 from equation (3). φ=arccos((ψ2×λ) / (2π×d2))...Equation (3) It should be noted that the short-range wireless communication unit 110 acquires information on the antenna distance d2 from the short-range wireless communication unit 157 or another device in advance. The short-range wireless communication unit 110 can specify the direction of the short-range wireless communication unit 110 as seen from the short-range wireless communication unit 157 by calculating AoD802 as shown in formula (4). Furthermore, the short-range wireless communication unit 110 can detect the direction from which the radio wave arrives based on AoD802 by knowing how the antennas 604 and 605 are arranged. That is, when the antenna 604 is arranged on the west side of the antenna 605 and AoD802 is detected as 45 degrees, the short-range wireless communication unit 110 can detect that the radio wave arrives from the southeast direction. Furthermore, the short-range wireless communication unit 110 can detect not only the direction of the position of the short-range wireless communication unit 157 relative to the short-range wireless communication unit 110 but also the distance between the short-range wireless communication unit 110 and the short-range wireless communication unit 157 by BLE. In detecting the distance, the short-range wireless communication unit 110 specifies the strength (reception strength) of the advertising information received by the short-range wireless communication unit 110 and the transmission power used when the radio wave was transmitted from the short-range wireless communication unit 157. The reception strength is a value called RSSI (Received Signal Strength Indication) and is expressed in dbm. The information indicating the transmission power corresponds to Tx Power 905 included in the advertising information received by the short-range wireless communication unit 110. The transmission power is expressed in dbm, the same as the reception strength. Then, the short-range wireless communication unit 110 detects the distance between the short-range wireless communication unit 110 and the short-range wireless communication unit 157 based on the difference between the specified reception strength and transmission power.

[0073] Specifically, the distance d between the short-range wireless communication unit 110 and the short-range wireless communication unit 157 (in other words, the distance between the information processing device 101 and the communication device 151) is calculated by the following formula. d=10^((Tx Power-RSSI) / 20)

[0074] In the description of the method realized by providing the short-range wireless communication unit 110 with multiple antennas, the form in which two antennas, antenna 601 and antenna 602, are used as the multiple antennas has been described, but the number of antennas used is not limited to this. For example, the information processing device 101 may use three or more antennas and obtain the Angle of Arrival θ702 by calculating the average of the Angle of Arrival θ obtained from each antenna. Similarly, in the method realized by providing the short-range wireless communication unit 157 with multiple antennas, the number of antennas used as the multiple antennas is not limited to the above. For example, the communication device 151 may use three or more antennas and obtain the Angle of Departure θ802 by calculating the average of the Angle of Departure θ obtained from each antenna.

[0075] In the above embodiment, either the information processing device 101 or the communication device 151 uses multiple antennas, but this is not limited to the embodiment. Both devices may use multiple antennas.

[0076] In the above description, the information processing device 101 detects the direction of one communication device 151, but this is not limiting. The information processing device 101 may detect the directions of two or more communication devices 151. By detecting the directions of two or more communication devices 151 and referring to the detection data of each, the information processing device 101 can detect the distance, direction, and position between the devices with higher accuracy than in the case of detecting the direction of one communication device 151.

[0077] The above-mentioned BLE direction detection function may be used for any function. For example, a function using the BLE direction detection function is a function that guides a user to the position of communication device 151 by displaying a screen including information indicating a direction detected by the direction detection function on display unit 108. Another example is a function that receives a swipe operation from a user on display unit 108, and transmits a print job to communication device 151 located in the direction corresponding to the swipe operation when the direction corresponding to the swipe operation corresponds to the direction detected by BLE.

[0078] For example, a print job transmission process executed when it is determined by the above-mentioned function to transmit a print job to the communication device 151 will be described. FIG. 10 is a sequence diagram when the information processing device 101 and the communication device 151 establish a network connection by the BLE communication method. Here, a case where a job is transmitted and received by handover will be described as an example. Note that handover is a technology in which each device that communicates first exchanges connection information for communication by a high-speed communication method by a short-distance communication method, and then switches to the high-speed communication method to transmit and receive data. In this embodiment, BLE is used as the short-distance communication method, and Wi-Fi is used as the high-speed communication method. The communication speed of GATT communication (two-way communication made possible by establishing a BLE connection between devices) is slower than that of Wi-Fi communication. Therefore, in GATT communication, authentication between devices and exchange of connection information for Wi-Fi communication are performed, and large-capacity data (here, a job) is transferred by Wi-Fi communication with a high communication speed, thereby enabling efficient data transfer. Note that the communication method used in handover is not limited to the above-mentioned form, and various communication methods may be used as the short-distance communication method and the high-speed communication method. For example, a configuration may be adopted in which connection information for Wi-Fi communication is exchanged via NFC communication or Wi-Fi Aware communication, and then data is exchanged via Wi-Fi communication.

[0079] The processing of the communication device 151 shown in this processing sequence is realized by the CPU 154 loading a control program stored in the ROM 152 or a HDD (not shown) included in the communication device 151 into the RAM 153 and executing the control program. The processing of the information processing device 101 shown in this processing sequence is realized by the CPU 103 loading a control program stored in the ROM 104 or a HDD (not shown) included in the information processing device 101 into the RAM 105 and executing the control program.

[0080] In the following description, it is assumed that the communication device 151 is an advertiser that transmits advertising information at a predetermined interval. It is also assumed that the information processing device 101 is a scanner that waits for advertising information transmitted from nearby advertisers. First, the short-range wireless communication unit 157 transmits advertising information (S1001 to S1003). The information processing device 101 can recognize the presence of the communication device 151 by the short-range wireless communication unit 110 receiving the advertising information transmitted from the short-range wireless communication unit 157.

[0081] When the information processing device 101 recognizes the communication device 151 and decides to connect to the communication device 151, the information processing device 101 transmits connection request information to the communication device 151. Specifically, the short-range wireless communication unit 110 transmits CONNECT_REQ, which is a request for transitioning to a connection event that establishes a network connection by BLE (S1004). When the short-range wireless communication unit 157 receives CONNECT_REQ, the information processing device 101 and the communication device 151 prepare to transition to a connection event. Specifically, the short-range wireless communication unit 110 and the short-range wireless communication unit 157 notify the CPU 103 and the CPU 154, respectively, that the connection process for GATT communication has been completed. Thereafter, the information processing device 101 and the communication device 151 transition from a scanner and an advertiser to a master and a slave, respectively, and the information processing device 101 as the master and the communication device 151 as the slave establish a connection (BLE connection) for GATT communication. Note that in the BLE standard, the master can form a star-shaped topology of "1:multiple" with the slave. After the information processing device 101 and the communication device 151 establish a BLE connection, they can perform data communication by the GATT communication method. Note that the GATT communication is communication that is performed using a GATT profile after the BLE connection is established, and is communication that is performed via a short-range wireless processing unit of each device. In addition, when the communication device 151 establishes a BLE connection, the communication device 151 may stop advertising or may switch the content of the advertising information to be transmitted. Specifically, the communication device 151 may switch from advertising information (ADV_IND) that the received device can transmit a connection request to advertising information (ADV_SCAN_IND or ADV_NONCONN_IND) that the received device cannot transmit a connection request.

[0082] Thereafter, in S1005, the short-range wireless communication unit 110 requests the short-range wireless communication unit 157 for information on a communication protocol that the communication device 151 can use.

[0083] This request includes information about a communication protocol that the information processing device 101 can use, and by receiving this request, the short-range wireless communication unit 157 can recognize that the information processing device 101 can use a communication method such as Wi-Fi. In S1006, the short-range wireless communication unit 157 responds with information about its own usable communication protocol in response to the request received in S1005. This allows each device to know the other's usable communication protocols other than BLE.

[0084] Here, it is assumed that the information processing device 101 has determined that the communication between the devices is to be switched to Wi-Fi communication by grasping a communication protocol other than BLE that can be used by both devices. At this time, the communication device 151 may determine whether or not to switch the communication method. If the communication method is determined to be switched, in S1007 and S1008, the devices exchange communication information necessary for communication by Wi-Fi, such as address information and SSID information that identify the communication partner. After that, in S1009, the short-range wireless communication unit 110 transmits a request (communication switching request) to switch the communication method between the devices from GATT communication to Wi-Fi communication. When the short-range wireless communication unit 157 receives the request to switch, it responds in S1010.

[0085] When the request for switching and the response are correctly made, in S1011, the information processing device 101 switches the communication unit used for communication with the communication device 151 from the short-range wireless communication unit 110 to the communication unit 109. Furthermore, in S1012, the communication device 151 switches the communication unit used for communication with the information processing device 101 from the short-range wireless communication unit 157 to the communication unit 156. After the switching, in S1013, the short-range wireless communication unit 110 transmits a release request. The short-range wireless communication unit 157 that has received the release request transmits a release response in S1014 and terminates the BLE connection between the devices. When the BLE connection between the devices is terminated, the information processing device 101 and the communication device 151 return to being a scanner and an advertiser, respectively, and the short-range wireless communication unit 157 resumes transmitting advertisement information.

[0086] Thereafter, each device performs Wi-Fi communication using the information necessary for performing Wi-Fi communication exchanged in S1007 and S1008. First, in S1015, the communication unit 109 checks with the communication unit 156 whether the communication device 151 can acquire a job. Here, for example, information on the free space for temporarily storing images to be transferred to the communication device 151 is checked. After receiving the request for confirmation, the communication unit 156 transmits a response to the confirmation in S1016.

[0087] If a correct response is obtained and the communication device 151 determines that the job can be acquired, the communication unit 156 requests the job in S1017. After that, the communication unit 109 that has received the job request transmits a job including image data and the like present in the information processing device 101 to the communication unit 156 in S1018. Note that the selection of the job to be transmitted at this time is performed, for example, before the BLE connection is established, after the BLE connection is established, after the Wi-Fi connection is established, or the like. The transmitted job is not limited to a print job, and may be, for example, a scan job for instructing the communication device 151 to perform a scan, or a job for the information processing device 101 to acquire information on the state of the communication device 151. In addition, the transmitted job may be, for example, a command for executing various operations on the communication device 151, such as changing the settings of the communication device 151. Note that, when the transmission of the job is completed, the information processing device 101 disconnects the Wi-Fi connection with the communication device 151 and returns to the network state immediately before the handover. Specifically, for example, if the information processing device 101 was connected to a mobile communication network such as 3G or LTE or an access point such as a router before executing the handover, the information processing device 101 re-establishes a connection to the mobile communication network or the access point. Therefore, before executing the handover, the information processing device 101 holds information on the network state immediately before the handover and communication information required to establish the network information.

[0088] In this way, by using handover technology, connection information for communication using a high-speed communication method can be exchanged using a communication method with high usability (short-range communication method), and then large amounts of data can be exchanged at high speed using the high-speed communication method. When the communication method is switched from GATT communication to Wi-Fi communication by handover, the BLE connection between the devices is disconnected, and the short-range wireless communication unit 157 resumes transmission of advertising information.

[0089] As described above, in order for the information processing device 101 to detect the direction of the communication device 151 relative to the information processing device 101 by BLE, at least one of the information processing device 101 and the communication device 151 needs to drive a plurality of antennas included in a short-range wireless communication unit. However, the more antennas that are driven, the greater the power consumption. Therefore, in a situation where the information processing device 101 does not need to detect the direction of the communication device 151 relative to the information processing device 101, it is preferable to reduce the number of antennas to be driven. Therefore, in this embodiment, a form in which the information processing device 101 appropriately controls the number of antennas to be driven will be described.

[0090] 14 is a flowchart showing a process of controlling the number of BLE antennas to be used, executed by the information processing device 101. This process is realized by the CPU 103 loading a control program and a printing application stored in the ROM 104 or an HDD (not shown) included in the information processing device 101 into the RAM 105 and executing those programs. This process is started in a state where the printing application is running in the information processing device 101.

[0091] First, in step S1401, the CPU 103 receives advertisement information from BLE-compatible devices present in the vicinity of the information processing device 101.

[0092] Next, in S1402, the CPU 103 displays a list of BLE compatible devices present around the information processing device 101 on the display unit 108 based on the advertising information received in S1401.

[0093] Next, in S1403, the CPU 103 accepts a selection from the list displayed in S1402 from the user. Then, the CPU 103 specifies the selected device as a device to which the BLE connection will be established. Here, it is assumed that the communication device 151 is specified as the device to which the BLE connection will be established.

[0094] Next, in S1404, the CPU 103 performs a determination for controlling the number of antennas to be used. In this determination, specifically, for example, the CPU 103 determines whether or not the distance d between the communication device 151 and the information processing device 101 identified in S1403 is equal to or less than a threshold value. Note that the distance d between the communication device 151 and the information processing device 101 identified in S1403 is detected by BLE as described above. Then, when the CPU 103 determines that the distance d between the communication device 151 and the information processing device 101 identified in S1403 is equal to or less than the threshold value, the CPU 103 proceeds to S1405 and operates the information processing device 101 in the first state. The first state is a state in which a plurality of BLE antennas are used and the direction of the communication device 151 can be detected. Note that the information processing device 101 in the first state may not always use a plurality of BLE antennas. For example, the information processing device 101 in the first state may or may not use a plurality of BLE antennas during transmission of advertising information unrelated to detection of the direction of the communication device 151 or during GATT communication. Furthermore, in S1405, CPU 103 may execute a process of controlling whether communication device 151 operates in a first state or in a second state described below, based on the state of communication device 151. For example, CPU 103 operates communication device 151 in the first state when the remaining battery level of communication device 151 is not equal to or lower than a threshold, and operates communication device 151 in the second state when the remaining battery level of communication device 151 is equal to or lower than the threshold. This is because information processing device 101 operates in the first state, and therefore CPU 103 can execute the direction detection function even if communication device 151 operates in the second state.

[0095] On the other hand, when the CPU 103 determines that the distance d between the communication device 151 and the information processing device 101 specified in S1403 is not equal to or less than the threshold, the process proceeds to S1406, and the information processing device 101 is operated in the second state. The second state is a state in which BLE communication with less power consumption than the BLE communication in the first state can be performed by using fewer antennas than the number of antennas used in the first state. In this embodiment, the information processing device 101 in the second state has only one antenna, but is not limited to this form, and may use multiple antennas. In this embodiment, the direction detection function cannot be performed (the direction of the communication device 151 cannot be detected), but is not limited to this form, and may use fewer antennas than the number of antennas used in the first state to perform the direction detection function. The direction detection function performed in the second state has lower accuracy than the direction detection function performed in the first state because the number of antennas used is fewer. In S1406, the CPU 103 may transmit information to the communication device 151 for transitioning the communication device 151 to a state in which multiple BLE antennas are not used. In this manner, in the present embodiment, the number of BLE antennas to be used is switched depending on the distance between the communication device 151 and the information processing device 101. This is because, for example, the greater the distance between the communication device 151 and the information processing device 101, the lower the accuracy of detection of the direction of the communication device 151. In addition, for example, when the distance between the communication device 151 and the information processing device 101 is great, the possibility of using a function that uses a direction detection function as described below is low. Note that, since the value of Tx Power-RSSI calculated in the process of calculating (obtaining) the distance d correlates with the value of the distance d, the CPU 103 may compare the value of Tx Power-RSSI with a threshold in the above-mentioned determination, rather than comparing the value of the distance d with a threshold.

[0096] Note that the CPU 103 may perform other determinations in the determination of S1404. For example, the CPU 103 may determine whether or not the BLE function used by the communication device 151 supports the direction detection function, and if the determination is YES, proceed to S1405, and if the determination is NO, proceed to S1406. An example of a case in which the BLE function used by the communication device 151 does not support the direction detection function is when the version of the BLE function used by the communication device 151 is older than Bluetooth 5.1. Note that the CPU 103 performs this determination based on information indicating the version of the BLE function used by the communication device 151, which is included in the advertising information received from the communication device 151.

[0097] Also, for example, CPU 103 may determine whether communication device 151 supports a function using a direction detection function, and if the determination is YES, proceed to S1405, and if the determination is NO, proceed to S1406. Note that CPU 103 makes this determination based on information included in advertising information received from communication device 151 for identifying whether the function using the direction detection function is supported.

[0098] Also, for example, the CPU 103 determines whether the remaining battery power of the information processing device 101 is equal to or less than a threshold value, and if the determination is YES, the CPU 103 6 If the result is NO, proceed to S140. 5 This is because, when the remaining battery power is low, it is preferable for the information processing device 101 to operate with as little power consumption as possible.

[0099] Also, for example, the CPU 103 may determine whether the radio wave intensity of the advertising information received from the communication device 151 is equal to or greater than a threshold, and if the determination is YES, proceed to S1405, and if the determination is NO, proceed to S1406. This is because, when the radio wave intensity of the advertising information received from the communication device 151 is high, it is highly likely that the communication device 151 is located near the information processing device 101. Also, when the radio wave intensity of the advertising information received from the communication device 151 is low, it is low that the communication device 151 is located near the information processing device 101.

[0100] Also, for example, the information processing device 101 may not be a type of device (hereinafter, a mobile device) whose location is changed as needed by the user carrying it, but may be a type of device (hereinafter, a fixed device) whose location does not change often. The mobile device may be, for example, a mobile phone or a smartphone, and the fixed device may be, for example, a printer or a desktop PC. In this case, if the communication device 151 is also a fixed device, the locations of both devices will not change, so once the direction of the communication device 151 has been detected once, there is no need to detect the direction of the communication device 151 again. Therefore, for example, the CPU 103 may determine whether or not the advertising information received from the communication device 151 includes information indicating that the communication device 151 is a fixed device. If the advertising information received from the communication device 151 includes information indicating that the communication device 151 is a fixed device, the CPU 103 may determine whether or not the direction of the communication device 151 has already been detected. If the determination is YES, the CPU 103 returns to step S140. 5 If the result is NO, proceed to S140. 6 This determination may be made based on flag information indicating whether communication device 151 is a fixed device or not, or may be made based on identification information of communication device 151 such as model information or a model name of communication device 151. Also, this determination may be made based on information such as the name of a service provided by communication device 151.

[0101] Also, the CPU 103 may perform multiple determinations in the determination of S1404, and may finally determine whether or not to use multiple BLE antennas based on the multiple determination results. Specifically, if all of the above-mentioned multiple determination results are YES, the process may proceed to S1405, and if any one of the results is NO, the process may proceed to S1406.

[0102] In S1407, the CPU 103 responds to the advertising information received from the communication device 151 identified in S1403, and establishes a BLE connection between the communication device 151 identified in S1403 and the information processing device 101. Note that the establishment of the BLE connection may be performed, for example, before the determination in S1404. Also, although the determination in S1404 is performed based on the advertising information, this is not limited to this form. By establishing the BLE connection before S1404, the CPU 103 may obtain information necessary for the determination in S1404 by GATT communication, and may perform the determination in S1404 based on the information thus obtained.

[0103] By adopting such a configuration, it is possible to appropriately control the number of BLE antennas used by the information processing device 101. Furthermore, in a state in which the direction of the communication device 151 needs to be detected, the information processing device 101 can operate in a state in which the direction of the communication device 151 can be detected, while in a state in which the direction of the communication device 151 does not need to be detected, the information processing device 101 can operate in a power-saving manner.

[0104] The timing of making the determination to control the number of antennas to be used is not limited to the above timing. For example, the determination may be made when the screen is switched or the function to be executed is switched on the application that makes the determination. Then, for example, whether or not to use multiple BLE antennas may be controlled depending on a newly displayed screen or a newly executed function. Specifically, for example, when a screen for selecting a device to which data is to be transmitted is displayed, the CPU 103 may operate the information processing device 101 in the first state, and when another screen is displayed, the CPU 103 may operate the information processing device 101 in the second state.

[0105] In the above description, the process of detecting the direction of the communication device 151 using multiple antennas is performed by BLE, which is included in the Bluetooth 5.1 standard, but is not limited to this. It may be performed by other communication methods, such as Wi-Fi Aware.

[0106] In the above description, after the device to which the connection is made by BLE is specified, a determination is made to control the number of antennas to be used. However, the present invention is not limited to this form. For example, a determination to control the number of antennas to be used may be made before the device to which the connection is made by BLE is specified. In this case, for example, a determination to control the number of antennas to be used is made based on each piece of advertising information to be received. Then, if it is determined that the information processing device 101 should be operated in the first state even once, the information processing device 101 is operated in the first state. Then, if it is not determined that the information processing device 101 should be operated in the first state even once, the information processing device 101 is operated in the second state.

[0107] In the above description, the number of antennas to be used is controlled by a printing application, but the invention is not limited to this. For example, the number of antennas to be used may be controlled by an application having a function other than printing, or may be controlled by the OS of the information processing device 101.

[0108] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]

[0109] 101 Information processing device 151 Communication equipment

Claims

1. a plurality of antennas for communicating by a predetermined communication method; a computer of an information processing device operable in any one of a plurality of states including a first state in which communication is performed by the predetermined communication method using a first number of antennas among the plurality of antennas, and a second state in which communication is performed by the predetermined communication method using a second number of antennas among the plurality of antennas, the second number being smaller than the first number; a control step of operating the information processing device in either the first state or the second state based on one or more of a state of the information processing device that is different from the first state and the second state, information received from a communication device capable of performing communication by the predetermined communication method, and a state of the communication device; a step of determining a direction of the communication device relative to the information processing device based on communication in the predetermined communication method performed using the first number of antennas when the information processing device is operating in the first state by the control step; a display step of displaying, on a display unit, a screen indicating the direction of the communication device with respect to the information processing device when a direction of the communication device with respect to the information processing device is identified by the information processing device operating in the first state by the control step; A program characterized by executing the above.

2. information relating to a distance between the information processing device and the communication device is obtained based on information received from the communication device; 2. The program according to claim 1, wherein the information processing device is operated in a state based on the acquired information about a distance between the information processing device and the communication device, out of the plurality of states.

3. 3. The program according to claim 2, wherein the information processing device is operated in the second state when a distance between the information processing device and the communication device is not equal to or less than a predetermined threshold.

4. the information received from the communication device is information regarding a version of the predetermined communication method executed by the communication device; When the version of the predetermined communication method executed by the communication device is not older than a predetermined version, the information processing device is operated in the first state; 4. The program according to claim 1, wherein the information processing device is operated in the second state when a version of the specified communication method executed by the communication device is older than a specified version.

5. the predetermined communication method is Bluetooth, 5. The program of claim 4, wherein the predetermined version is version 5.

1.

6. the state of the information processing device is a state of a remaining battery charge of the information processing device, When the remaining battery charge of the information processing device is not equal to or less than a threshold, the information processing device is operated in the first state; 6. The program according to claim 1, wherein the information processing device is operated in the second state when a remaining battery charge of the information processing device is equal to or lower than a threshold.

7. the information received from the communication device is information indicating a type of the communication device; if the communication device is a predetermined type of device and the orientation of the communication device has not yet been detected, the information processing device is operated in the first state; The program according to any one of claims 1 to 6, characterized in that when the communication device is a device of the specified type and the direction of the communication device has already been detected, the information processing device is operated in the second state.

8. 8. The program of claim 7, wherein the predetermined type of device is at least one of a printer and a desktop personal computer.

9. The program of claim 8, characterized in that the information processing device is operated in the first state when the communication device is a device of the specified type and the direction of the communication device relative to the information processing device has already been identified.

10. the communication device has a plurality of antennas for communicating by the predetermined communication method; The program according to any one of claims 1 to 9, characterized in that the communication device is capable of operating in any one of a plurality of states including a third state in which communication is performed according to the predetermined communication method using the first number of antennas among the plurality of antennas possessed by the communication device, and a fourth state in which communication is performed according to the predetermined communication method using the second number of antennas among the plurality of antennas possessed by the communication device.

11. 11. The program according to claim 10, further comprising a processing step of executing a process for operating the communication device in the fourth state when the information processing device is operated in the first state.

12. 12. The program according to claim 1, wherein, when the information processing device is operating in the second state by the control step, the direction of the communication device relative to the information processing device is not specified.

13. A program as described in any one of claims 1 to 11, characterized in that when the information processing device is operating in the second state by the control step, the direction of the communication device relative to the information processing device is determined based on communication using the specified communication method performed using the second number of antennas.

14. 14. The program according to claim 1, wherein the predetermined communication method is Bluetooth Low Energy.

15. 15. The program according to claim 14, wherein the predetermined communication method is Bluetooth Low Energy, which is included in the Bluetooth 5.1 standard.

16. 16. The program according to claim 1, further comprising a transmitting step of transmitting a print job to the communication device for executing printing.

17. 17. The program according to claim 1, wherein the direction of the communication device relative to the information processing device is specified by an application program.

18. 17. The program according to claim 1, wherein the control of the number of antennas used for communication in the predetermined communication method is executed by an application program or an operating system.

19. a plurality of antennas for communicating by a predetermined communication method; An information processing device operable in any one of a plurality of states including a first state in which communication is performed by the predetermined communication method using a first number of antennas among the plurality of antennas, and a second state in which communication is performed by the predetermined communication method using a second number of antennas among the plurality of antennas, the second number being less than the first number, a control means for operating the information processing device in either the first state or the second state based on one or more of a state of the information processing device that is different from the first state and the second state, information received from a communication device capable of performing communication by the predetermined communication method, and a state of the communication device; an identification means for identifying a direction of the communication device with respect to the information processing device based on communication in the predetermined communication method that is executed using the first number of antennas when the information processing device is operated in the first state by the control means; a display means for displaying, on a display unit, a screen indicating the direction of the communication device with respect to the information processing device when the direction of the communication device with respect to the information processing device is specified by the control means operating the information processing device in the first state; 13. An information processing device comprising:

20. a plurality of antennas for communicating by a predetermined communication method; A method for controlling an information processing device capable of operating in any one of a plurality of states including a first state in which communication is performed by the predetermined communication method using a first number of antennas among the plurality of antennas, and a second state in which communication is performed by the predetermined communication method using a second number of antennas among the plurality of antennas, the second number being smaller than the first number, a control step of operating the information processing device in either the first state or the second state based on one or more of a state of the information processing device that is different from the first state and the second state, information received from a communication device capable of performing communication by the predetermined communication method, and a state of the communication device; a step of determining a direction of the communication device relative to the information processing device based on communication in the predetermined communication method performed using the first number of antennas when the information processing device is operating in the first state by the control step; a display step of displaying, on a display unit, a screen indicating the direction of the communication device with respect to the information processing device when a direction of the communication device with respect to the information processing device is identified by the information processing device operating in the first state by the control step; A control method comprising the steps of:

Citation Information

Patent Citations

  • Program of application operating in information processing device for receiving short-range radio communication, information processing device, and information processing system

    JP2017184127A

  • Information processing apparatus, control method, and program

    JP2017188869A

  • Radio wave arrival direction estimation device and radio wave arrival direction estimation method

    JP2018054386A

  • Wireless communication for angle of arrival determination

    WO2017184271A1