Communication device, control method, and program
The communication device optimizes wireless network connections by using QR codes and NFC to provide setting information and ensure efficient network operations based on device availability, reducing unnecessary connections.
Patent Information
- Application Number
- JP2023072670
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-11-08
AI Technical Summary
Existing wireless connection technologies require setting different connection parameters for each type of connection, leading to potential unnecessary connections and reduced operational efficiency.
A communication device that includes connection parameters and identification information for efficient network operation, using QR codes or NFC to provide setting information and enable selective network connections based on device availability.
Enhances operational efficiency by preventing unnecessary network connections and optimizing communication between devices.
Smart Images

Figure 2024157965000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a technology for processing a connection of a communication device to a wireless network. [Background technology]
[0002] The number of electronic devices with wireless communication functions, such as digital cameras, printers, mobile phones, smartphones, etc., is increasing. Such electronic devices can establish connections and communicate in various forms, such as direct connections between electronic devices and connections via access points or base stations.
[0003] For wireless connection of electronic devices, it is necessary to set connection parameters such as an encryption method, an encryption key, an authentication method, and an authentication key. Patent Document 1 describes a technique in which an access point encodes 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 describes a technique in which the QR code includes capability information and role information of the electronic device. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2006-261938 A [Patent Document 2] US Patent Application Publication No. 2014 / 0269646 Summary of the Invention [Problem to be solved by the invention]
[0005] As described above, since wireless connections can be established in various forms, electronic devices can connect to the same counterpart device in various forms. On the other hand, it is necessary to set connection parameters for each form. Therefore, if an unnecessary connection is established, unnecessary connection parameters may be set. For this reason, from the viewpoint of efficient network operation, it is important to prevent unnecessary connections from being established. [Means for solving the problem]
[0006] The present invention provides efficient control of communication device connections to a network.
[0007] A communication device according to one embodiment 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 discovery method after the connection is established, the identification information identifying a service provided by the communication device. Effect of the Invention
[0008] According to the present invention, it is possible to provide efficient control of connection of communication devices to a network. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a wireless communication system. [Diagram 2] FIG. 2 illustrates an example of the configuration of a printer. [Diagram 3] FIG. 1 is a diagram illustrating an example of the configuration of a smartphone. [Figure 4] FIG. 11 is a diagram illustrating an example of a flow of processing executed by a printer. [Diagram 5] FIG. 13 is a diagram showing an example of a screen that displays setting information. [Figure 6] FIG. 11 is a diagram illustrating an example of a flow of a process executed by a smartphone. [Figure 7]FIG. 11 is a diagram showing an example of information managed by a smartphone. [Figure 8] FIG. 11 is a diagram illustrating an example of a process flow when the printer is online. [Figure 9] 11 is a diagram illustrating an example of a processing flow when the printer is offline. [Figure 10] FIG. 4 is a diagram illustrating an example of the configuration of setting information. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0011] (System Configuration) FIG. 1 shows an example of the configuration of a wireless communication system according to the present embodiment. The wireless communication system includes a plurality of communication devices. FIG. 1 shows 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, and can also establish a connection without going through 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). Although FIG. 1 shows only a small number of communication devices for the sake of simplicity, a large number of communication devices may exist without loss of generality.
[0012] In order to enable communication between the communication devices, it is necessary to connect these communication devices to a wireless network. On the other hand, when a communication device connects to a wireless network, processing required for connection, such as setting connection parameters and determining a role, requires time and power. For this reason, connection to a wireless network that is not required may reduce the operational efficiency of the wireless communication system. For example, when data held by the smartphone 102 is printed on the printer 101, the smartphone 102 and the printer 101 can execute the printing by connecting to a wireless network via, for example, the access point 103. On the other hand, even if such a connection is established, the smartphone 102 and the printer 101 can establish a connection to an additional wireless network using Wi-Fi Direct (registered trademark) or the like. However, in this case, although it is sufficient to use the connection established via the access point 103, processing for connecting to a new wireless network occurs, which is assumed to 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. The present embodiment provides a method for achieving at least one of improving the operational efficiency of a wireless communication system and enabling selection of an appropriate network.
[0013] (Device configuration) 2 shows an example of the 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.
[0014] The power supply unit 201 includes, for example, a circuit that receives power from an AC power supply and a battery. The power supply unit 201 supplies, for example, power supplied from the AC power supply and power stored in a battery to each unit in 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 a user by, for example, performing an illumination pattern using an LED or a screen display using an LCD. The operation unit 203 includes, for example, buttons and the like, and accepts various operations from a user. Note that both the display unit 202 and the operation unit 203 may be configured by one 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) and a microprocessor unit (MPU). The storage unit 205 includes, for example, one or more memories, such as a read only memory (ROM) and a random access memory (RAM). For example, the storage unit 205 stores programs for performing various processes described later and various information. Furthermore, the control unit 204 executes a program stored in a storage unit 205 to control the entire printer 101 and to execute various processes described later.
[0015] The wireless LAN unit 206 executes transmission and reception of radio waves of wireless LAN compatible with the IEEE802.11 standard and the Wi-Fi standard, and various communication controls. 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. The wireless LAN unit 206 can connect to other terminal stations via an access point as a terminal station in the infrastructure mode of the IEEE802.11 standard and communicate with each other. The wireless LAN unit 206 can also directly connect to other wireless LAN terminal stations using Wi-Fi Direct without using an access point and communicate with each other. The NFC unit 207 executes transmission and reception of radio waves and various communication controls for short-distance wireless communication compatible with the NFC standard, such as ISO / IEC14443, ISO / IEC15693, and ISO / IEC18092. ISO stands for International Organization for Standardization, and IEC stands for International Electrotechnical Commission. The NFC unit 207 includes, for example, an NFC module, an antenna, etc. The printing unit 208 prints images, characters, etc. on a recording medium such as paper, etc. The printing unit 208 includes, for example, a printer head, a drive unit for the printer head, an ink tank, etc.
[0016] 3 shows an example of the configuration of the smartphone 102. The smartphone 102 has, 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.
[0017] 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 and an LCD. 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, a button and receives various operations from the user. Note that both the display unit 302 and the operation unit 303 may be configured by one 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 a RAM. For example, the storage unit 305 stores programs for performing various processes described later and various information. In addition, the control unit 304 executes the programs stored in the storage unit 305 to control the entire smartphone 102 and execute various processes described later.
[0018] The wireless LAN unit 306 includes a wireless LAN module, an antenna, and the like, and executes transmission and reception of wireless LAN radio waves and various communication controls in accordance with the IEEE802.11 standard and the Wi-Fi standard. The wireless LAN unit 306 can connect to other terminal stations via an access point as a terminal station in the infrastructure mode of the IEEE802.11 standard to communicate with each other. The wireless LAN unit 306 can also directly connect to other wireless LAN terminal stations using Wi-Fi Direct without using an access point to communicate with each other. The NFC unit 307 includes, for example, an NFC module, an antenna, and the like, and executes transmission and reception of radio waves and various communication controls for short-distance wireless communication in accordance with the NFC standard. The public wireless unit 308 includes, for example, a module, an antenna, and the like for communication in accordance with the Long Term Evolution (LTE) and 5th Generation (5G) standards of the Third Generation Partnership Project (3GPP (registered trademark)). The public wireless unit 308 executes transmission and reception of radio waves and various communication controls for communication in accordance with standards such as LTE and 5G.
[0019] The audio input / output unit 309 includes a microphone, a speaker, etc., and performs, for example, audio input for 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.
[0020] (Processing flow) Next, an example of the flow of processing executed by the printer 101 and the smartphone 102 will be described.
[0021] 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. Note that the printer 101 can be connected to the Internet, for example, via an access point 103.
[0022] When the process is started, the printer 101 first generates identification information related to the service that can be provided (S401) and stores the generated identification information (S402). This identification information is, for example, identification information that uniquely identifies the printer 101 and is used in service discovery. This identification information is, for example, a UUID used in service discovery such as DNS-SD defined in RFC6763. 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. Also, DNS is an acronym for Domain Name System. The printer 101 generates a UUID corresponding to, for example, a print service. Also, the printer 101 performs initialization processing so that it can respond to service discovery such as DNS-SD, and thereafter, when a service inquiry (query) is received via, for example, a network, it responds. This response to service discovery can be performed in parallel with the process of FIG. 4 (not shown). Note that this service discovery is a well-known technique, and will not be described here.
[0023] After generating and storing the identification information, the printer 101 waits for a user operation to be accepted (S403). When the printer 101 detects a user operation by 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 indicates a method of establishing a connection using, for example, Wi-Fi Direct. Note that wireless direct may indicate a method of establishing a direct connection by a method other than Wi-Fi Direct. When the printer 101 accepts an instruction to start wireless direct (YES in S404), it starts operating as, for example, a base station of Wi-Fi Direct and generates 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 (for example, the smartphone 102) and the identification information stored in S402 (S405). Note that the connection parameters may be set in advance or may be generated when an instruction to start wireless direct is accepted. The printer 101 displays the generated setting information on the screen using the display unit 202 in order to provide the setting information to the smartphone 102 (S406). By displaying this setting information, the printer 101 becomes capable of accepting both an infrastructure connection for communication via the access point 103 and a direct connection for communication not via the access point 103.
[0024] Here, the setting information displayed by the printer 101 will be described with reference to FIG. 5. Information 501 is information indicating that the setting information displayed on this screen is setting information related to Wi-Fi Direct. In the example of FIG. 5, a Service Set Identifier (SSID 502), a security method 503, an encryption method 504, and an encryption key 505 are displayed as items of the setting information. Note that these connection parameters do not necessarily need to be displayed, and only a part of them may be displayed, or, for example, other information such as other identification information indicating the printer 101 instead of the SSID may be displayed. In this embodiment, as described above, in addition to the connection parameters, setting information including the identification information 506 generated in S401 and stored in S402 is displayed. Also, in the example of FIG. 5, an image 507 obtained by encoding information including the connection parameters and the identification information 506 is displayed in order to provide the setting information from the printer 101 to the smartphone 102. Note that the image 507 is, in one example, a QR code (registered trademark).
[0025] Usually, when a communication device is able to communicate with a partner device after a connection is established, the communication device communicates with the partner device using a service detection method such as DNS-SD to obtain 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) obtains the UUID by capturing the image or the like. That is, before connecting to the printer 101 for communication, the smartphone 102 obtains a UUID related to the service provided by the printer 101. Then, the communication device can specify 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 obtained from the printer 101. This can reduce the time required for service search in the communication device. Note that, 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 be used.
[0026] 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 for instructing to connect using Wi-Fi Direct in order to perform printing is accepted via the operation unit 303. The smartphone 102 can connect to the Internet, for example, via the access point 103.
[0027] When processing is started, the smartphone 102 activates the imaging unit 310. Then, the smartphone 102 acquires setting information including the above-mentioned connection parameters and identification information for identifying service information by having the user capture an image of the QR code 507 displayed by the printer 101 (S601). This allows the smartphone 102 to acquire connection parameters including, for example, SSID 502, security 503, encryption 504, and encryption key 505, and identification information 506 of the printer 101. The smartphone 102 can store and manage the acquired information as management information.
[0028] Here, the configuration of management information managed by the smartphone 102 will be described with reference to FIG. 7. The smartphone 102 stores and manages various information as management information for each identification information of a printer acquired by service detection such as DNS-SD or from setting information of Wi-Fi Direct. This management information is used, for example, for connection control of a wireless network for printing. Naturally, information on services other than printing can be managed. Among the management information, identification information 701 is identification information (UUID) of a printer acquired by service detection such as DNS-SD or from setting information of Wi-Fi Direct. Model name 702 is a model name of a printer acquired by service detection. Connection form 703 indicates the type of wireless network when the smartphone 102 connects to each printer. Connection form 703 indicates, for example, whether Wi-Fi Direct (wireless direct) or infrastructure mode (wireless infrastructure) can be used to connect to each printer. Status 704 indicates whether the printer is online or offline. The online state here may indicate, for example, whether or not a connection to the Internet or the like via the access point 103 is possible, and whether or not a service can be detected by DNS-SD. That is, if a service can be detected by DNS-SD, the state may be online, and if a service cannot be detected by DNS-SD, the state may be offline. When the smartphone 102 acquires new identification information from the setting information of Wi-Fi Direct, the smartphone 102 may set the state 704 corresponding to the identification information to the offline state. Then, when the identification information is also detected by DNS-SD, the smartphone 102 may update the state 704 to the online state.
[0029] 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 of the management information, and checks whether information related to the identification information 506 is stored as the management information (S602). If the management information does not include information corresponding to the acquired identification information 506, the smartphone 102 determines that the identification information is new information (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 registers the model name of the printer 101 acquired based on the identification information 506 as the model name 702. Furthermore, since the identification information 506 is included in the setting information acquired for the connection of Wi-Fi Direct, the connection form 703 is set to wireless direct. Note that the smartphone 102 does not need to register any special information for the status 704. Thereafter, the smartphone 102 sets the connection parameters SSID 502, security 503, encryption 504, and encryption key 505 included in the acquired setting information, and connects to the printer 101 via wireless direct (S605).Then, the smartphone 102 executes printing using the established connection (S606).
[0030] On the other hand, when the smartphone 102 determines that the identification information 506 is not new information (NO in S603), it executes service detection using DNS-SD or the like before connecting via Wireless Direct (S607). Then, the smartphone 102 determines whether or not there is a response from the printer that matches the identification information 506 acquired in S601 by the service detection. That is, the smartphone 102 confirms, based on this determination, whether the printer 101 is in a state (online state) connected to, for example, the access point 103 (S608). Then, when the printer 101 is in an offline state (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, when the printer 101 is in an online state (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 communication 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 making the operation of the wireless communication system more efficient.
[0031] FIG. 8 shows an example of the flow of communication in the wireless communication system when the printer 101 is in an online state (i.e., the printer 101 is connected to the wireless network via the access point 103, for example). First, the printer 101 and the smartphone 102 are assumed to be connected to the wireless network via the access point 103 in response to, for example, 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 is also capable of detecting 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 is assumed to have performed service detection in order to perform printing (F802). Then, the smartphone 102 stores the identification information acquired by the service detection as management information (F803). In this case, the status 704 in the management information is set to "online" for the detected information. The service detection and storage of the management information may be performed, for example, at regular intervals. Then, based on the acquired identification information, the smartphone 102 may register information related to newly detected identification information or update information related to already registered identification information. For example, when identification information detected in the past is not detected, the status 704 related to the identification information may be updated to "offline". Furthermore, when identification information that was offline is detected again, the status 704 may be updated to "online". Moreover, 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.
[0032] Thereafter, it is assumed that the user operates the printer 101 and the smartphone 102 to connect via Wi-Fi Direct in order to perform printing. The printer 101 and the smartphone 102 start Wireless Direct processing by accepting this user operation (F804, F805). When this processing is started, the printer 101 provides the setting information by, for example, displaying a screen showing the setting information as shown in FIG. 5 (F806). Then, the smartphone 102 acquires the setting information by, for example, capturing an image of the QR code in FIG. 5 (F807). When acquiring the setting information, the smartphone 102 executes a matching process to check whether or not the identification information related to the service of the printer 101 included in the setting information matches the identification information 701 in the information 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 (can communicate with the smartphone 102 via the access point 103). Note that the check in F809 does not need to be performed, for example, if the process in F802 is performed at regular intervals and it is possible to recognize whether the printer 101 is online. When the smartphone 102 checks that the printer 101 is online, it can determine that it is possible to communicate with the printer 101 without establishing a Wireless Direct connection. For this reason, in this case, the smartphone 102 executes communication for printing with the printer 101 without establishing a Wireless Direct connection (F810).
[0033] Next, an example of the flow of communication in the wireless communication system when the printer 101 is offline will be described with reference to 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. 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, since 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. It is assumed that the smartphone 102 holds management information from when it was 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 it recognizes that the printer 101 is offline.
[0034] In FIG. 9, it is assumed that the user operates the printer 101 and the smartphone 102 to connect via Wi-Fi Direct in order to perform printing. The printer 101 and the smartphone 102 start Wireless Direct processing by accepting this user operation (F901, F902). When this processing is started, the printer 101 provides the setting information by, for example, displaying a screen showing the setting information as shown in FIG. 5 (F903). Then, the smartphone 102 acquires the setting information by, for example, capturing an image of the QR code in FIG. 5 (F904). When the smartphone 102 acquires the setting information, it executes a matching process to check whether or not the identification information related to the service of the printer 101 included in the setting information matches the identification information 701 in the information stored as management information (F905). Here, when the smartphone 102 has not acquired the identification information of the printer 101 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 printer 101 was online in the past or if the smartphone 102 has established a Wireless Direct connection, 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 a wireless network via the access point 103, and therefore the printer 101 does not respond to an inquiry from the smartphone 102. For this reason, 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).
[0035] 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 execute communication 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. That is, in this case, the smartphone 102 ends the process related to Wireless Direct by only acquiring information by capturing an image. That is, 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.
[0036] In the above example, the smartphone 102 captures a QR code to acquire the setting information, but the present invention is not limited to this. For example, the printer 101 and the smartphone 102 may transmit and receive the setting information using NFC or the like. In this case, the printer 101 may display a screen as shown in FIG. 10, for example, based on receiving a user operation to instruct execution of Wireless Direct. The screen in FIG. 10 does not display the QR code 507, as compared with the screen in FIG. 5, and instead displays information 1001 for enabling the user to understand that the setting information is provided using NFC. The other information is the same as that in FIG. 5. When the user brings the smartphone 102 into contact with the printer 101, communication is performed using the NFC unit 207 and the NFC unit 307. Then, the setting information including the connection parameters and the identification information corresponding to the service is transmitted from the printer 101 to the smartphone 102. This can also provide the same effect as the above embodiment. It is also possible to determine whether the method using the QR code or the method using short-range wireless communication such as NFC is to be used 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-distance wireless communication may be a method other than NFC, such as Bluetooth (registered trademark) Low Energy.
[0037] In the above example, the smartphone 102 does not perform a connection process by Wireless Direct when it is determined by service detection that the printer 101 is online. However, this is only an example, and for example, when it is determined by service detection that the printer 101 is online, it may determine whether or not to perform a connection process by Wireless Direct based on a predetermined criterion such as a communication speed or reliability. For example, the smartphone 102 may hold conditions related to a communication speed or reliability according to the type of communication or the type of application requesting communication. For example, the smartphone 102 may establish a connection by Wireless Direct when the communication speed via the access point 103 is lower than a predetermined speed or the reliability level (for example, wireless quality) is lower than a predetermined level. In addition, the smartphone 102 may determine to establish a connection by Wireless Direct when, for example, a communication delay via the access point 103 exceeds a predetermined value. In addition, the smartphone 102 may estimate a communication speed or a reliability level based on, for example, the strength of a wireless signal transmitted from the printer 101, and compare the estimated value with a communication speed or a reliability level obtained by communication via the access point 103. In this case, the connection via Wireless Direct may be established when an estimated value of a communication speed estimated for the connection via Wireless Direct exceeds a result of adding a predetermined offset value to a communication speed obtained by communication via the access point 103. Also, the connection via Wireless Direct may be established when an estimated value of a reliability level estimated for the connection via Wireless Direct exceeds a result of adding a predetermined offset value to a 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.
[0038] Furthermore, when it is determined by service detection that the printer 101 is online, the user may be inquired 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.
[0039] According to this, when the printer 101 is online, a Wireless Direct connection can be selectively established in response to communication performed by the smartphone 102 or a user request.
[0040] Furthermore, the printer 101 may not include the identification information in the setting information when connected to the wireless network via the access point 103. The smartphone 102 may determine not to establish a connection by Wireless Direct when the identification information is not included in the setting information. Here, the printer 101 may not include the identification information in the setting information when only printing via the access point 103 is accepted, and may include the 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 handle a print service via the access point 103 and a print service using a connection by Wireless Direct in a differentiated manner. For example, the printer 101 may temporarily stop the print service via the access point 103. Also, when the printer 101 cannot provide a service via a connection by Wireless Direct or when the service is stopped, the printer 101 may not include the identification information in the setting information.
[0041] 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. For this reason, even if the printer 101 is connected to a specific LAN via a wired connection and the smartphone 102 is connected to the specific LAN via the access point 103, the printer 101 can be determined to be online.
[0042] In the above example, an example of a process flow in which the smartphone 102 determines whether to connect to the printer 101 by wireless direct based on whether the printer 101 can communicate via the access point 103 is shown, but the present invention is not limited to this. That is, the above-mentioned method is not only applicable when the smartphone 102 directly connects 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. For example, if the printer 101 is connected to a network by a wired connection and the smartphone 102 can connect to the network using a wireless medium other than wireless LAN, there is no need to establish a connection via the access point 103. That is, the method according to the present embodiment may be generalized. For example, the communication device may obtain identification information corresponding to a service together with connection parameters for connecting to a first network from a partner device, and determine whether the identification information can be obtained via a second network different from the first network. If the communication device is unable to obtain the identification information via the second network, the communication device may use the obtained connection parameters to perform a connection process to the first network. In addition, when the communication device can acquire 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 a predetermined criterion such as communication speed or reliability. In addition, from the viewpoint of the other device, the communication device provides setting information including connection parameters for connecting to the first network and identification information of the service provided by the communication device. In addition, when the other device receives an inquiry via a second network different from the first network, the other device transmits the above-mentioned identification information via the second network. In addition, when the other device is not connected to the second network, it naturally does not receive an inquiry via the second network, so it does not transmit the identification information via the second network. In addition, when 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.In addition, when the other device transmits the identification information to the communication device via the second network, the other 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 other device via the first network. In this way, it is possible to perform an operation that enables an efficient network connection between the communication device and the other device.
[0043] 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.
[0044] (Summary of the embodiment) At least some of the above-described embodiments can be summarized as follows. (Item 1) A communication device, comprising: A communication device characterized by having 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. (Item 2) 2. The communication device according to item 1, wherein the first network is a network to which the communication device and the other device are directly connected. (Item 3) a means for receiving a user operation for enabling the communication device and the other device to communicate with each other via the first network; the providing means provides the setting information to the other device in response to the user operation being accepted by the communication device and the other device. 3. The communication device according to item 1 or 2. (Item 4) 4. The communication device according to any one of items 1 to 3, wherein the providing means includes a display means for displaying a QR code obtained by encoding the setting information. (Item 5) 5. The communication device according to any one of items 1 to 4, wherein the providing means includes a means for transmitting the setting information to the other device using short-range wireless communication. (Item 6) 6. The communication device according to any one of items 1 to 5, wherein the identification information is a Universally Unique Identifier (UUID) used in Domain Name System-Based Service Discovery (DNS-SD). (Item 7) a transmitting means for transmitting the identification information via a second network different from the first network when an inquiry via the second network is received; a communication means for communicating with the other device via the first network when the inquiry via the second network is not received from the other device; 7. The communication device according to any one of items 1 to 6, further comprising: (Item 8) The communication device described in item 7, characterized in that 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. (Item 9) The communication device described in item 7 or 8, characterized in that 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. (Item 10) A communication device, comprising: an acquisition means for acquiring, from the other device, setting information including connection parameters used for establishing a connection to a first network to enable the communication device to communicate with the other device and identification information for identifying a service provided by the other device; a transmitting means for transmitting the inquiry for the identification information via a second network different from the first network; a communication means for communicating with the other device via the first network when the identification information is not acquired from the other device via the second network in response to the inquiry; A communication device comprising: (Item 11) 11. The communication device according to item 10, wherein the first network is a network to which the communication device and the other device are directly connected. (Item 12) a means for receiving a user operation for enabling the communication device and the other device to communicate with each other via the first network; the acquiring means acquires the setting information from the other device in response to the user operation being accepted by the communication device and the other device. 12. The communication device according to item 10 or 11, (Item 13) The communication device according to any one of items 10 to 12, characterized in that the acquisition means acquires the setting information by reading a QR code when a QR code in which the setting information is encoded is displayed on the other device. (Item 14) 14. The communication device according to any one of items 10 to 13, wherein the acquisition means includes means for receiving the setting information from the other device using short-range wireless communication. (Item 15) 15. The communication device according to any one of items 10 to 14, wherein the identification information is a Universally Unique Identifier (UUID) used in Domain Name System-Based Service Discovery (DNS-SD). (Item 16) The communication device described in any one of items 10 to 15, characterized in that 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. (Item 17) 17. The communication device according to any one of items 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. (Item 18) A control method performed by a communication device, comprising: A control method comprising: 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. (Item 19) A control method performed by a communication device, comprising: acquiring, from the other device, 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 the inquiry for the identification information over a second network different from the first network; communicating with the other device via the first network when the identification information is not acquired from the other device via the second network in response to the inquiry; A control method comprising: (Item 20) A program for causing a computer to function as each of the means possessed by the communication device according to any one of items 1 to 17.
[0045] The invention is not limited to the above-described embodiments, and various modifications and variations are possible 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. [Explanation of symbols]
[0046] 202: display unit, 204: control unit, 206: wireless LAN unit, 207: NFC unit, 208: printing unit, 304: control unit, 305: storage unit, 306: wireless LAN unit, 307: NFC unit, 308: public wireless unit, 310: imaging unit
Claims
1. A communication device, comprising: A communication device characterized by having 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.
2. 2. The communication device according to claim 1, wherein the first network is a network in which the communication device and the other device are directly connected.
3. a means for receiving a user operation for enabling the communication device and the other device to communicate with each other via the first network; the providing means provides the setting information to the other device in response to the user operation being accepted by the communication device and the other device.
2. The communication device according to claim 1 .
4. 2. The communication device according to claim 1, wherein the providing means includes means for displaying a QR code obtained by encoding the setting information.
5. The communication device according to claim 1 , wherein the providing means includes means for transmitting the setting information to the other device by using short-range wireless communication.
6. 2. The communication device according to claim 1, wherein the identification information is a Universally Unique Identifier (UUID) used in Domain Name System-Based Service Discovery (DNS-SD).
7. a transmitting means for transmitting the identification information via a second network different from the first network when an inquiry via the second network is received; a communication means for communicating with the other device via the first network when the inquiry via the second network is not received from the other device; 2. The communication device of claim 1, further comprising:
8. The communication device according to claim 7, characterized in that 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. The communication device according to claim 7, characterized in that 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 communication device, comprising: an acquisition means for acquiring, from the other device, setting information including connection parameters used for establishing a connection to a first network to enable the communication device to communicate with the other device and identification information for identifying a service provided by the other device; a transmitting means for transmitting the inquiry for the identification information via a second network different from the first network; a communication means for communicating with the other device via the first network when the identification information is not acquired from the other device via the second network in response to the inquiry; A communication device comprising:
11. 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 means for receiving a user operation for enabling the communication device and the other device to communicate with each other via the first network; the acquiring means acquires the setting information from the other device in response to the user operation being accepted by the communication device and the other device; 11. The communication device according to claim 10.
13. The communication device according to claim 10, characterized in that, when a QR code in which the setting information is encoded is displayed on the other device, the acquisition means acquires the setting information by reading the QR code.
14. The communication device according to claim 10 , wherein the acquisition means includes means for receiving the setting information from the other device using short-range wireless communication.
15. 11. The communication device according to claim 10, wherein the identification information is a Universally Unique Identifier (UUID) used in Domain Name System-Based Service Discovery (DNS-SD).
16. The communication device according to claim 10, characterized in that 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. The communication device according to claim 10, characterized in that, when the identification information is obtained 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 performed by a communication device, comprising: A control method comprising 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.
19. A control method performed by a communication device, comprising: acquiring, from the other device, 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; transmitting the inquiry for the identification information over a second network different from the first network; communicating with the other device via the first network when the identification information is not acquired from the other device via the second network in response to the inquiry; A control method comprising:
20. A program for causing a computer to function as each of the means included in the communication device according to any one of claims 1 to 17.
Citation Information
Patent Citations
Communications system, communications apparatus and method, recording medium, and program
JP2006261938A
WiFi Direct Connection Using Machine-Readable Labels
US20140269646A1
