Communication device, control method, and program

The communication device improves wireless communication system efficiency by providing setting information and connection parameters through QR codes or NFC, enabling efficient network selection and preventing unnecessary connections, thus optimizing network usage.

WO2024224959A1PCT designated stage expired Publication Date: 2024-10-31CANON KK
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/013705
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-26
Filing Date
2024-04-03
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing wireless communication systems face inefficiencies due to the need for setting connection parameters for each type of network connection, leading to unnecessary connections and reduced operational efficiency.

Method used

A communication device that provides setting information including identification information and connection parameters, allowing for efficient selection and control of network connections using QR codes or NFC for devices like printers and smartphones, enabling them to determine the appropriate network connection based on conditions such as communication speed and security.

Benefits of technology

This solution enhances the operational efficiency of wireless communication systems by preventing unnecessary connections and allowing selective network selection, reducing processing time and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024013705_31102024_PF_FP_ABST
    Figure JP2024013705_31102024_PF_FP_ABST
Patent Text Reader

Abstract

This communication device provides another device with configuration information including: connection parameters used to establish a connection to a first network for enabling the other device to communicate with the communication device; and identification information used in a service discovery method after the connection is established, the identification information identifying a service provided by the communication device.
Need to check novelty before this filing date? Find Prior Art

Description

Communication device, control method, and program

[0001] The present invention relates to a technology for processing connection of a communication device to a wireless network.

[0002] An increasing number of electronic devices have wireless communication capabilities, such as digital cameras, printers, mobile phones, and smartphones. These electronic devices can establish connections and communicate in various ways, such as direct connections between electronic devices or connections via access points or base stations.

[0003] For wireless connection of electronic devices, connection parameters such as an encryption method, an encryption key, an authentication method, and an authentication key need to be set. Patent Document 1 describes a technique in which an access point encodes the connection parameters into a QR code (registered trademark) and displays it on a screen, and the electronic device captures the screen and decodes the QR code to set the connection parameters. Patent Document 2 also describes a technique in which the QR code includes capability information and role information of the electronic device.

[0004] Patent Document 1: Japanese Patent Application Publication No. 2006-261938 Patent Document 2: U.S. Patent Application Publication No. 2014 / 0269646

[0005] As described above, wireless connections can be established in various forms, and therefore electronic devices can connect to the same remote device in various forms. However, connection parameters and the like must be set for each form. Therefore, if an unnecessary connection is established, unnecessary connection parameters may be set. Therefore, from the perspective of efficient network operation, it is important to prevent unnecessary connections from being established.

[0006] The present invention provides efficient control of communication device connections to a network.

[0007] A communication device according to one aspect of the present invention has a providing means for providing configuration information to another device, the configuration information including connection parameters used to establish a connection to a first network to enable the other device to communicate with the communication device, and identification information used in a service detection method after the connection is established, the identification information identifying a service provided by the communication device.

[0008] According to the present invention, it is possible to provide efficient control of connection of communication devices to a network.

[0009] Other features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings, in which the same or similar elements are designated by the same reference numerals.

[0010] The accompanying drawings are incorporated in and constitute a part of the specification, illustrate embodiments of the present invention, and together with the description are used to explain the principles of the present invention. FIG. 1 is a diagram showing an example of the configuration of a wireless communication system. FIG. 2 is a diagram showing an example of the configuration of a printer. FIG. 3 is a diagram showing an example of the configuration of a smartphone. FIG. 4 is a diagram showing an example of the flow of processing executed by the printer. FIG. 5 is a diagram showing an example of a screen displaying setting information. FIG. 6 is a diagram showing an example of the flow of processing executed by the smartphone. FIG. 7 is a diagram showing an example of information managed by the smartphone. FIG. 8 is a diagram showing an example of the flow of processing when the printer is online. FIG. 9 is a diagram showing an example of the flow of processing when the printer is offline. FIG. 10 is a diagram showing an example of the configuration of setting information.

[0011] Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the invention claimed. Although multiple features are described in the embodiments, not all of these multiple features are necessarily essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same reference numerals are used to designate the same or similar components, and redundant explanations will be omitted.

[0012] (System Configuration) FIG. 1 shows an example of the configuration of a wireless communication system according to this embodiment. The wireless communication system includes multiple communication devices. FIG. 1 illustrates a state in which a printer 101, a smartphone 102, and an access point 103 can be wirelessly connected to each other using a wireless local area network (wireless LAN). The printer 101 and the smartphone 102 can establish a connection via the access point 103, or can establish a connection without using the access point 103 by using a direct communication function of the wireless LAN. Furthermore, the printer 101 and the smartphone 102 can communicate with each other using a short-range wireless communication technology such as Near Field Communication (NFC). While FIG. 1 illustrates only a small number of communication devices for simplicity, a large number of communication devices may exist without loss of generality.

[0013] To enable communication between communication devices, these communication devices must connect to a wireless network. However, when a communication device connects to a wireless network, the processes required for connection, such as setting connection parameters and determining roles, require time and power. Therefore, connecting to a wireless network that is not required may reduce the operational efficiency of the wireless communication system. For example, when printing data stored on a smartphone 102 using a printer 101, the smartphone 102 and printer 101 can perform the printing by connecting to a wireless network via, for example, an access point 103. Even if such a connection is established, the smartphone 102 and printer 101 can establish a connection to an additional wireless network using Wi-Fi Direct (registered trademark) or the like. However, in this case, even though the connection established via the access point 103 would suffice, processing for connecting to a new wireless network is required, which may be inefficient. On the other hand, there are also situations in which it is necessary to selectively connect to an appropriate network depending on various conditions, such as the communication speed and security level of the wireless network. This embodiment provides a method for realizing at least one of improving the operational efficiency of a wireless communication system and enabling selection of an appropriate network.

[0014] 2 shows an example configuration of the printer 101. The printer 101 has, for example, a power supply unit 201, a display unit 202, an operation unit 203, a control unit 204, a storage unit 205, a wireless LAN unit 206, an NFC unit 207, and a printing unit 208. Note that this configuration is just an example, and some of these functional units may be omitted or replaced with other functional units, or other functional units may be added.

[0015] The power supply unit 201 includes, for example, a circuit that receives power from an AC power source and a battery. The power supply unit 201 supplies power from the AC power source and power stored in a battery to various components within the printer 101. The display unit 202 includes, for example, a light-emitting diode (LED) and a liquid crystal display (LCD). The display unit 202 presents information to the user by, for example, displaying an illumination pattern using an LED or displaying an image using an LCD. The operation unit 203 includes, for example, buttons and the like, and accepts various operations from the user. Note that both the display unit 202 and the operation unit 203 may be configured as a single module, such as a touch panel display. The control unit 204 includes, for example, one or more processors, such as a central processing unit (CPU) or a microprocessor unit (MPU). The storage unit 205 includes, for example, one or more memories, such as a read-only memory (ROM) or a random access memory (RAM). For example, the storage unit 205 stores programs for performing various processes, as described below, and various information. The control unit 204 also executes programs stored in the storage unit 205 to control the entire printer 101 and to perform various processes described below.

[0016] The wireless LAN unit 206 transmits and receives wireless LAN radio waves and performs various communication controls in accordance with the IEEE 802.11 standard and the Wi-Fi standard. IEEE is an acronym for Institute of Electrical and Electronics Engineers. The wireless LAN unit 206 includes a wireless LAN module, an antenna, and the like. As a terminal station in the infrastructure mode of the IEEE 802.11 standard, the wireless LAN unit 206 can connect to and communicate with other terminal stations via an access point. The wireless LAN unit 206 can also use Wi-Fi Direct to directly connect to and communicate with other wireless LAN terminal stations without using an access point. The NFC unit 207 transmits and receives radio waves and performs various communication controls for near-field wireless communication in accordance with NFC standards such as ISO / IEC 14443, ISO / IEC 15693, and ISO / IEC 18092. Note that ISO stands for International Organization for Standardization, and IEC stands for International Electrotechnical Commission. The NFC unit 207 includes, for example, an NFC module and an antenna. The printing unit 208 prints images, text, and the like on a recording medium such as paper. The printing unit 208 includes, for example, a printer head, a drive unit for the printer head, an ink tank, and the like.

[0017] 3 shows an example configuration of the smartphone 102. The smartphone 102 includes, for example, a power supply unit 301, a display unit 302, an operation unit 303, a control unit 304, a storage unit 305, a wireless LAN unit 306, an NFC unit 307, a public wireless unit 308, an audio input / output unit 309, and an imaging unit 310. Note that this configuration is just an example, and some of these functional units may be omitted or replaced with other functional units, or other functional units may be added.

[0018] The power supply unit 301 includes, for example, a battery. The power supply unit 301 supplies power to each unit of the smartphone 102 using, for example, power stored in the battery. The display unit 302 includes, for example, an LED, an LCD, etc. The display unit 302 presents information to the user by, for example, displaying an illumination pattern using an LED or a screen display using an LCD. The operation unit 303 includes, for example, buttons, etc., and accepts various operations from the user. Note that both the display unit 302 and the operation unit 303 may be configured as a single module, such as a touch panel display. The control unit 304 includes, for example, one or more processors, such as a CPU or an MPU. The storage unit 305 includes, for example, one or more memories, such as a ROM or RAM. For example, the storage unit 305 stores programs for performing various processes described below and various pieces of information. The control unit 304 also executes programs stored in the storage unit 305 to control the entire smartphone 102 and perform various processes described below.

[0019] The wireless LAN unit 306 includes a wireless LAN module, an antenna, and the like, and transmits and receives wireless LAN radio waves conforming to the IEEE 802.11 standard and the Wi-Fi standard, and performs various communication controls. The wireless LAN unit 306 can connect to other terminal stations via an access point and communicate with them as a terminal station in the infrastructure mode of the IEEE 802.11 standard. The wireless LAN unit 306 can also use Wi-Fi Direct to directly connect to other wireless LAN terminal stations without using an access point and communicate with them. The NFC unit 307 includes, for example, an NFC module, an antenna, and the like, and performs various communication controls and transmits and receives radio waves for short-range wireless communication conforming to the NFC standard. The public wireless unit 308 is configured to include, for example, a module and an antenna for communication conforming to the Long Term Evolution (LTE) or fifth generation (5G) standards of the Third Generation Partnership Project (3GPP (registered trademark)). The public wireless unit 308 transmits and receives radio waves and performs various communication controls for communication conforming to standards such as LTE and 5G.

[0020] The audio input / output unit 309 includes a microphone, a speaker, etc., and performs audio input for, for example, making calls or performing voice operations, and audio output for making calls, notifications, etc. The imaging unit 310 includes an image sensor and a lens, and captures still images and videos.

[0021] (Processing Flow) Next, an example of the processing flow executed by the printer 101 and the smartphone 102 will be described.

[0022] 4 shows an example of the flow of processing executed by the printer 101. This processing can be started, for example, when the printer 101 is started. The printer 101 can be connected to the Internet or the like, for example, via an access point 103.

[0023] When processing begins, the printer 101 first generates identification information related to the services it can provide (S401) and stores the generated identification information (S402). This identification information is, for example, identification information that uniquely identifies the printer 101 and is information used for service discovery. This identification information is, for example, a UUID used for service discovery such as DNS-SD defined in RFC 6763. Note that RFC is an acronym for Request for Comments, DNS-SD is an acronym for DNS-Based Service Discovery, and UUID is an acronym for Universally Unique Identifier. Furthermore, DNS is an acronym for Domain Name System. The printer 101 generates a UUID corresponding to, for example, a print service. The printer 101 also performs initialization processing so that it can respond to service detection such as DNS-SD, and then responds when it receives a service query via a network, for example. This response to service detection can be performed in parallel with the processing of FIG. 4 (not shown). Note that this service detection is a well-known technique, so it will not be described here.

[0024] After generating and storing the identification information, the printer 101 waits for a user operation to be received (S403). When the printer 101 detects a user operation via the operation unit 203 (YES in S403), it determines whether the user operation is an instruction to start Wireless Direct (S404). Note that Wireless Direct refers to a method of establishing a connection using, for example, Wi-Fi Direct. Note that Wireless Direct may also refer to a method of establishing a direct connection using a method other than Wi-Fi Direct. When the printer 101 receives an instruction to start Wireless Direct (YES in S404), it begins operating as a Wi-Fi Direct base station, for example, and creates a wireless network. In this case, the printer 101 generates setting information using connection parameters to be set in both the printer 101 and the other device (e.g., the smartphone 102) and the identification information stored in S402 (S405). The connection parameters may be set in advance or may be generated when an instruction to start Wireless Direct is accepted. In order to provide the generated setting information to the smartphone 102, the printer 101 displays the setting information on the screen using the display unit 202 (S406). By displaying this setting information, the printer 101 becomes able to accept both an infrastructure connection for communication via the access point 103 and a direct connection for communication not via the access point 103.

[0025] Here, the setting information displayed by the printer 101 will be described using FIG. 5 . Information 501 indicates that the setting information displayed on this screen is setting information related to Wi-Fi Direct. In the example of FIG. 5 , the setting information items displayed include a Service Set Identifier (SSID 502), a security method 503, an encryption method 504, and an encryption key 505. Note that these connection parameters do not necessarily need to be displayed; only a portion of them may be displayed. For example, other information, such as other identification information indicating the printer 101, may be displayed instead of the SSID. In this embodiment, as described above, setting information including the identification information 506 generated in S401 and stored in S402 in addition to the connection parameters is displayed. Furthermore, in the example of FIG. 5 , an image 507 is displayed in which information including the connection parameters and the identification information 506 is encoded in order to provide the setting information from the printer 101 to the smartphone 102. In one example, the image 507 is a QR code (registered trademark).

[0026] Typically, once a communication device establishes a connection with a partner device and communication becomes possible, the communication device communicates with the partner device using a service discovery method such as DNS-SD to acquire a UUID from the partner device. In contrast, in this embodiment, the partner device (printer 101) generates and presents an image (QR code) that can identify the UUID. Note that a UUID can be prepared for each service provided, for example. The communication device (smartphone 102) acquires the UUID by capturing the image, for example. That is, before establishing a communication connection with the printer 101, the smartphone 102 acquires a UUID related to the service provided by the printer 101. The communication device can then identify service information that the partner device can provide from the UUID. For example, the smartphone 102 can detect that the printer 101 provides services such as a print service and a scan service based on the UUID acquired from the printer 101. This reduces the time required for service searches in the communication device. In this embodiment, a case will be described in which a UUID is used as identification information for identifying a service or application, but other identification information having a similar function may also be used.

[0027] Next, an example of the flow of processing executed by the smartphone 102 will be described with reference to FIG. 6. The smartphone 102 starts the processing when, for example, a user operation instructing the smartphone 102 to establish a connection using Wi-Fi Direct for printing is received via the operation unit 303. The smartphone 102 can connect to the Internet, for example, via the access point 103.

[0028] When processing starts, the smartphone 102 activates the imaging unit 310. Then, the smartphone 102 acquires setting information including the above-described connection parameters and identification information that specifies service information by having the user capture an image of the QR code (image 507) displayed by the printer 101 (S601). This allows the smartphone 102 to acquire connection parameters including, for example, the SSID 502, security method 503, encryption method 504, and encryption key 505, as well as identification information 506 of the printer 101. The smartphone 102 can store and manage the acquired information as management information.

[0029] Here, the configuration of management information managed by the smartphone 102 will be described using FIG. 7 . The smartphone 102 stores and manages various pieces of information as management information for each printer's identification information acquired through service detection such as DNS-SD or from Wi-Fi Direct setting information. This management information is used, for example, to control wireless network connections for printing. Naturally, information related to services other than printing can also be managed. Among the management information, identification information 701 is the printer's identification information (UUID) acquired through service detection such as DNS-SD or from Wi-Fi Direct setting information. The model name 702 is the printer's model name acquired through service detection. The connection type 703 indicates the type of wireless network used when the smartphone 102 connects to each printer. The connection type 703 indicates, for example, whether Wi-Fi Direct (wireless direct) or infrastructure mode (wireless infrastructure) can be used to connect to each printer. The status 704 indicates whether the printer is online or offline. The online status here may indicate, for example, whether a connection to the Internet or the like via the access point 103 is possible, or whether service detection by DNS-SD is possible. In other words, if service detection by DNS-SD is possible, the printer is considered to be online, and if service detection by DNS-SD is not possible, the printer is considered to be offline. When the smartphone 102 acquires new identification information from the Wi-Fi Direct setting information, the smartphone 102 may set the status 704 corresponding to that identification information to offline. Then, when the identification information is also detected by DNS-SD, the smartphone 102 may update the status 704 to online.

[0030] The smartphone 102 compares the identification information 506 of the printer 101 included in the setting information acquired in S601 with the identification information 701 in the management information to determine whether information related to the identification information 506 is stored in the management information (S602). If information corresponding to the acquired identification information 506 is not included in the management information, the smartphone 102 determines that the identification information is new (YES in S603). In this case, the smartphone 102 registers information corresponding to the identification information 506 in the management information (S604). For example, the smartphone 102 registers the acquired identification information 506 as the identification information 701 and the model name of the printer 101 acquired based on the identification information 506 as the model name 702. Furthermore, because the identification information 506 is included in the setting information acquired for a Wi-Fi Direct connection, the smartphone 102 sets the connection type 703 to Wireless Direct. The smartphone 102 does not need to register any special information for the status 704. The smartphone 102 then sets the connection parameters, including the SSID 502, security method 503, encryption method 504, and encryption key 505, included in the acquired setting information, and establishes a Wireless Direct connection with the printer 101 (S605).The smartphone 102 then executes printing using the established connection (S606).

[0031] On the other hand, if the smartphone 102 determines that the identification information 506 is not new (NO in S603), it performs service discovery using DNS-SD or the like before establishing a connection via Wireless Direct (S607). The smartphone 102 then determines, through service discovery, whether or not a response has been received from a printer that matches the identification information 506 acquired in S601. That is, based on this determination, the smartphone 102 confirms whether the printer 101 is connected to, for example, the access point 103 (online state) (S608). If the printer 101 is offline (NO in S608), the smartphone 102 establishes a connection with the printer 101 using Wi-Fi Direct (S605) and executes printing (S606). On the other hand, if the printer 101 is online (YES in S608), the smartphone 102 executes printing without establishing a connection using Wi-Fi Direct (S606). That is, when the printer 101 is online, the smartphone 102 can determine that it can communicate with the printer 101 via the access point 103. Therefore, the smartphone 102 can execute printing by communicating via the access point 103, and does not establish a new connection. This prevents the smartphone 102 from establishing a connection to a wireless network that does not need to be connected, thereby improving the efficiency of operation of the wireless communication system.

[0032] FIG. 8 shows an example of the flow of communication in a wireless communication system when the printer 101 is online (i.e., connected to a wireless network via, for example, the access point 103). First, the printer 101 and the smartphone 102 are assumed to connect to the wireless network via the access point 103, for example, in response to a predetermined user operation (F801). The printer 101 transitions to an online state by connecting to the wireless network via the access point 103. The smartphone 102 can detect services provided by other communication devices connected to the wireless network by connecting to the wireless network via the access point 103. In this example, the smartphone 102 performs service detection to perform printing (F802). The smartphone 102 then stores the identification information acquired through the service detection as management information (F803). In this case, the status 704 in the management information for the detected information is set to “online.” Service detection and storage of management information may be performed, for example, periodically. Then, based on the acquired identification information, the smartphone 102 may register information about newly detected identification information or update information about already registered identification information. For example, if identification information that was previously detected is no longer detected, the status 704 related to that identification information may be updated to "offline." Furthermore, if identification information that was offline is detected again, the status 704 may be updated to "online." Furthermore, service detection and storage of management information may be performed only once, for example, when the smartphone 102 connects to the access point 103 or when a predetermined user operation is performed.

[0033] It is assumed that the user then operates the printer 101 and the smartphone 102 to establish a Wi-Fi Direct connection in order to perform printing. Upon receiving this user operation, the printer 101 and the smartphone 102 start Wireless Direct processing (F804, F805). When this processing starts, the printer 101 provides the setting information by, for example, displaying a screen showing the setting information as shown in FIG. 5 (F806). The smartphone 102 then acquires the setting information by, for example, capturing the QR code shown in FIG. 5 (F807). Upon acquiring the setting information, the smartphone 102 executes a matching process to determine whether the identification information related to the printer 101's services included in the setting information matches the identification information 701 stored as management information (F808). In this case, the smartphone 102 determines that the identification information detected in F802 matches the identification information acquired in F807. In this case, the smartphone 102 executes service detection again and checks whether a response including the identification information acquired in F807 has been received (F809). This check determines whether the printer 101 is online (a state in which communication with the smartphone 102 is possible via the access point 103). Note that the check in F809 does not need to be performed, for example, if the process of F802 is performed periodically and it is possible to determine whether the printer 101 is online. When the smartphone 102 confirms that the printer 101 is online, it can determine that it can communicate with the printer 101 without establishing a Wireless Direct connection. Therefore, in this case, the smartphone 102 executes communication for printing with the printer 101 without establishing a Wireless Direct connection (F810).

[0034] Next, an example of the flow of communication in the wireless communication system when the printer 101 is offline will be shown using FIG. 9 . In this processing example, it is assumed that the printer 101 and the smartphone 102 are not connected to the wireless network via the access point 103. Note that, for example, only the smartphone 102 may be connected to the wireless network via the access point 103. In this case, the smartphone 102 may execute a service detection process in response to establishing a connection. However, in this case, because the printer 101 is not connected to the wireless network, the smartphone 102 does not acquire management information related to the identification information provided by the printer 101. Note that it is possible that the smartphone 102 retains management information from when it previously connected to the printer 101. However, even in this case, when the smartphone 102 executes a service detection process via the access point 103, it does not acquire the identification information of the printer 101, and therefore recognizes that the printer 101 is offline.

[0035] In FIG. 9 , assume that a user operates the printer 101 and the smartphone 102 to establish a Wi-Fi Direct connection in order to perform printing. Upon receiving this user operation, the printer 101 and the smartphone 102 start Wireless Direct processing (F901, F902). When this processing starts, the printer 101 provides the setting information by, for example, displaying a screen showing the setting information as shown in FIG. 5 (F903). The smartphone 102 then acquires the setting information by, for example, capturing the QR code shown in FIG. 5 (F904). Upon acquiring the setting information, the smartphone 102 executes a matching process to determine whether the identification information related to the printer 101's services included in the setting information matches the identification information 701 stored as management information (F905). If the smartphone 102 has never acquired the printer 101's identification information via the access point 103, it newly registers and stores information related to the identification information as management information. On the other hand, if the smartphone 102 has previously found that the printer 101 was online or that a Wireless Direct connection has been established, the management information contains identification information that matches the identification information acquired in F904. In this case, the smartphone 102 executes a service detection process via the access point 103 (F906). However, in this case, the printer 101 is not connected to the wireless network via the access point 103, and therefore the printer 101 does not respond to the inquiry from the smartphone 102. Therefore, the smartphone 102 determines that the printer 101 is offline, establishes a Wireless Direct connection (F907), and executes communication for printing with the printer 101 (F908).

[0036] As described above, the smartphone 102 acquires information about the printer 101 by capturing an image displayed on the printer 101 for Wireless Direct. Then, when the smartphone 102 can communicate with the printer 101 via the access point 103, the smartphone 102 does not execute a process that requires communication for a Wireless Direct connection. In other words, in this case, the smartphone 102 ends the process related to Wireless Direct by only acquiring information by capturing an image. In other words, the smartphone 102 does not execute a process for connecting to an unnecessary network. This enables efficient connection and communication between the printer 101 and the smartphone 102.

[0037] Although the above example illustrates a case in which the smartphone 102 acquires setting information by capturing a QR code, this is not limiting. For example, the printer 101 and the smartphone 102 may transmit and receive setting information using NFC or the like. In this case, the printer 101 may display a screen such as that shown in FIG. 10 upon receiving a user operation instructing execution of Wireless Direct. Unlike the screen of FIG. 5 , the screen of FIG. 10 does not display a QR code (image 507). Instead, it displays information 1001 that enables the user to understand that setting information will be provided using NFC. The other information is the same as that of FIG. 5 . When the user touches the smartphone 102 to the printer 101, communication is performed using the NFC unit 207 and the NFC unit 307. Then, setting information including connection parameters and identification information corresponding to the service is transmitted from the printer 101 to the smartphone 102. This can also achieve the same effects as the above-described embodiment. The method of using a QR code or a method of using short-range wireless communication such as NFC may be determined by a user operation. That is, the printer 101 may display a screen for selecting which method to use to provide the setting information and accept the selection of the method by the user. Note that the short-range wireless communication may be a method other than NFC, such as Bluetooth (registered trademark) Low Energy.

[0038] In the above example, the smartphone 102 does not perform a Wireless Direct connection process when it determines that the printer 101 is online through service detection. However, this is merely an example. For example, when it determines that the printer 101 is online through service detection, it may determine whether to perform a Wireless Direct connection process based on predetermined criteria such as communication speed and reliability. For example, the smartphone 102 may store conditions related to communication speed and reliability depending on the type of communication or the type of application requesting communication. For example, the smartphone 102 may establish a Wireless Direct connection when the communication speed via the access point 103 is below a predetermined speed or the reliability level (e.g., wireless quality) is below a predetermined level. Furthermore, the smartphone 102 may determine to establish a Wireless Direct connection when, for example, the communication delay via the access point 103 exceeds a predetermined value. Furthermore, the smartphone 102 may estimate the communication speed and reliability level based on, for example, the strength of the wireless signal transmitted from the printer 101 and compare the estimated value with the communication speed and reliability level obtained through communication via the access point 103. In this case, the connection via Wireless Direct may be established when an estimated value of the communication speed estimated for the connection via Wireless Direct exceeds a result obtained by adding a predetermined offset value to the communication speed obtained by communication via the access point 103. Furthermore, the connection via Wireless Direct may be established when an estimated value of the reliability level estimated for the connection via Wireless Direct exceeds a result obtained by adding a predetermined offset value to the reliability level obtained by communication via the access point 103. In other words, when the benefit of establishing the connection via Wireless Direct is large, the connection may be established.

[0039] Furthermore, when it is determined by service detection that the printer 101 is online, the user may be queried as to whether or not to establish a Wireless Direct connection. Then, when a user operation instructing to establish a Wireless Direct connection is accepted, the Wireless Direct connection may be established.

[0040] According to this, when the printer 101 is online, a connection can be selectively established via Wireless Direct in response to communication performed by the smartphone 102 or a user request.

[0041] Furthermore, when the printer 101 is connected to a wireless network via the access point 103, the printer 101 may not include identification information in the setting information. If the setting information does not include identification information, the smartphone 102 may decide not to establish a Wireless Direct connection. Here, the printer 101 may not include identification information in the setting information when only accepting printing via the access point 103, and may include identification information in the setting information in other cases. Also, for example, temporarily valid identification information may be prepared for a temporary service. In this case, the printer 101 can distinguish between a print service via the access point 103 and a print service using a Wireless Direct connection. For example, the printer 101 may temporarily stop the print service via the access point 103. Furthermore, when the printer 101 cannot provide a service via a Wireless Direct connection or when the service is stopped, the printer 101 may not include identification information in the setting information.

[0042] In the above example, an example of determining whether the printer 101 and the smartphone 102 can connect via the access point 103 has been described, but the present invention is not limited to this. That is, it is sufficient to determine whether the printer 101 and the smartphone 102 can communicate via a connection other than a Wireless Direct connection. Therefore, even if the printer 101 is connected to a predetermined LAN via a wired connection and the smartphone 102 is connected to the predetermined LAN via the access point 103, the printer 101 can be determined to be online.

[0043] Furthermore, in the above example, an example of a process flow for determining whether the smartphone 102 connects to the printer 101 via Wireless Direct based on whether the printer 101 can communicate with the printer 101 via the access point 103 has been described. However, this is not limiting. That is, the above-described method is not limited to being applicable only when the smartphone 102 connects directly to the printer 101. For example, the printer 101 may provide the smartphone 102 with setting information including connection parameters for connecting to the access point 103 and identification information of the service of the printer 101. For example, if the printer 101 is connected to a network via a wired connection and the smartphone 102 can connect to the network using a wireless medium other than a wireless LAN, there is no need to establish a connection via the access point 103. That is, the method according to this embodiment may be more generalized. For example, a communication device may acquire, from a remote device, connection parameters for connecting to a first network and identification information corresponding to the service, and determine whether the identification information can be acquired via a second network different from the first network. If the communication device is unable to acquire the identification information via the second network, the communication device may use the acquired connection parameters to perform a connection process to the first network. If the communication device acquires the identification information via the second network, the communication device may decide not to connect to the first network, or may decide whether to connect to the first network based on predetermined criteria such as communication speed and reliability. From the perspective of the other device, the other device provides configuration information including connection parameters for connecting to the first network and identification information of the service provided by the communication device. Furthermore, if the other device receives an inquiry via a second network different from the first network, it transmits the above-mentioned identification information via the second network. If the other device is not connected to the second network, it naturally does not receive an inquiry via the second network, and therefore does not transmit the identification information via the second network. If the other device does not transmit the identification information to the communication device via the second network, it communicates with the communication device via the first network.Furthermore, when the counterpart device transmits identification information to the communication device via the second network, the counterpart device may communicate with the communication device via either the first network or the second network, depending on whether the communication device determines whether to connect to the counterpart device via the first network. In this way, an operation that enables efficient network connection between the communication device and the counterpart device can be performed.

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

[0045] The invention is not limited to the above-described embodiments, and various changes and modifications can be made without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention.

[0046] This application claims priority based on Japanese Patent Application No. 2023-072670, filed on April 26, 2023, the entire contents of which are incorporated herein by reference.

Claims

1. A communications device having a means for providing configuration information to another device, the configuration information including connection parameters used to establish a connection to a first network to enable the other device to communicate with the communications device, and identification information used in a service discovery method after the connection is established, the identification information identifying a service provided by the communications device.

2. The communication device according to claim 1, wherein the first network is a network to which the communication device and the other device are directly connected.

3. A communication device as described in claim 1 or 2, further comprising a means for accepting user operations to enable the communication device and the other device to communicate via the first network, and the providing means provides the setting information to the other device in response to the user operation being accepted in the communication device and the other device.

4. A communication device according to any one of claims 1 to 3, wherein the providing means includes means for displaying a QR code obtained by encoding the setting information.

5. A communication device according to any one of claims 1 to 4, wherein the providing means includes means for transmitting the setting information to the other device using short-range wireless communication.

6. The communication device according to any one of claims 1 to 5, wherein the identification information is a Universally Unique Identifier (UUID) used in Domain Name System-Based Service Discovery (DNS-SD).

7. A communication device as claimed in any one of claims 1 to 6, further comprising: a transmission means for transmitting the identification information via a second network different from the first network when an inquiry is received via the second network; and a communication means for communicating with the other device via the first network when the inquiry is not received from the other device via the second network.

8. A communication device as described in claim 7, wherein when the communication means receives the inquiry from the other device via the second network and transmits the identification information to the other device via the second network, a connection of the other device to the first network is not established, and the communication device communicates with the other device via the second network.

9. A communication device as described in claim 7 or 8, wherein the communication means receives the inquiry from the other device via the second network, and when the identification information is transmitted to the other device via the second network, communicates with the other device via either the first network or the second network, selected by the other device.

10. A communications device comprising: an acquisition means for acquiring from another device configuration information including connection parameters used to establish a connection to a first network to enable the communications device to communicate with the other device, and identification information identifying a service provided by the other device; a transmission means for transmitting an inquiry for the identification information via a second network different from the first network; and a communications means for communicating with the other device via the first network if the identification information is not acquired from the other device via the second network in response to the inquiry.

11. The communication device according to claim 10, wherein the first network is a network to which the communication device and the other device are directly connected.

12. A communication device as described in claim 10 or 11, further comprising a means for accepting a user operation to enable the communication device and the other device to communicate via the first network, and the acquisition means acquires the setting information from the other device in response to the user operation being accepted in the communication device and the other device.

13. A communication device according to any one of claims 10 to 12, wherein the acquisition means acquires the setting information by reading a QR code in which the setting information is encoded when the QR code is displayed on the other device.

14. The communication device according to any one of claims 10 to 13, wherein the acquisition means includes means for receiving the setting information from the other device using short-range wireless communication.

15. The communication device according to any one of claims 10 to 14, wherein the identification information is a Universally Unique Identifier (UUID) used in Domain Name System-Based Service Discovery (DNS-SD).

16. A communication device according to any one of claims 10 to 15, wherein when the identification information is obtained from the other device via the second network in response to the inquiry, the communication means communicates with the other device via the second network without connecting to the first network.

17. A communication device according to any one of claims 10 to 16, wherein when the identification information is acquired from the other device via the second network in response to the inquiry, the communication means selects either the first network or the second network using a predetermined criterion, and communicates with the other device via the selected network.

18. A control method executed by a communication device, comprising providing configuration information to the other device, the configuration information including connection parameters used to establish a connection to a first network to enable the other device to communicate with the communication device, and identification information used in a service discovery method after the connection is established, the identification information identifying a service provided by the communication device.

19. A control method executed by a communication device, comprising: acquiring configuration information from the other device, the configuration information including connection parameters used to establish a connection to a first network to enable the communication device to communicate with the other device, and identification information identifying a service provided by the other device; sending an inquiry for the identification information via a second network different from the first network; and communicating with the other device via the first network if the identification information is not acquired from the other device via the second network in response to the inquiry.

20. A program for causing a computer to function as each of the means possessed by the communication device according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Service providing system, server device to be used in service providing system, portable communication device and program for these devices

    JP2007257179A

  • Communication device, and communication parameter setting method

    JP2009038594A

  • Radio terminal device, server device and communication system

    JP2016171483A

  • Centralized control and management system for digital devices

    JP2017538997A

  • Information processor and position detection system

    JP2020197433A