The present invention relates to a communication technique by wireless communication.
To participate in a wireless LAN (Local Area Network), various communication parameters need to be set. As a technique of facilitating setting of such communication parameters, a DPP (Device Provisioning Protocol) standard has been formulated. In the DPP, a communication apparatus functioning as a configurator transmits (provides) communication parameters such as a connector to a communication apparatus functioning as an enrollee (PTL 1). Upon receiving the communication parameters, the communication apparatus functioning as an enrollee attempts to participate in a wireless LAN formed by an access point.
PTL 1: Japanese Patent Laid-Open No. 2018-42057
For example, assume a case in which the communication apparatus functioning as a configurator is a smartphone, and the communication apparatus functioning as an enrollee is a printer. In this case, the smartphone transmits the communication parameters to the printer in accordance with, for example, an operation by a user. The printer that has received the communication parameters attempts to participate in the wireless LAN. At this time, it is difficult for the user of the smartphone to know whether the printer has succeeded in participating in the wireless LAN. Also, it is therefore difficult for the user of the smartphone to confirm whether transmission of the communication parameter to the printer is completed.
In consideration of the above-described problem, the present disclosure provides a technique of notifying an apparatus on a communication parameter providing side of a situation of an attempt in participating in a network by an apparatus on a communication parameter receiving side.
According to one aspect of the present invention, there is provided a communication apparatus functioning as an enrollee defined by a Device Provisioning Protocol (DPP) standard, the apparatus comprising: a request unit configured to request a communication parameter to be used by the communication apparatus to participate in a network formed by an access point from another communication apparatus functioning as a configurator defined by the DPP standard, a reception unit configured to receive the communication parameter from the other communication apparatus in response to the request; a participation unit configured to attempt to participate in the network using the communication parameter; and a transmission unit configured to transmit an attempt result of the participation in the network by the participation unit to the other communication apparatus.
According to another aspect of the present invention, there is provided a communication apparatus functioning as a configurator defined by a Device Provisioning Protocol (DPP) standard, the apparatus comprising: a transmission unit configured to transmit, in response to a request, from another communication apparatus functioning as an enrollee defined by the DPP standard, for a communication parameter to be used by the other communication apparatus to participate in a network formed by an access point, the communication parameter to the other communication apparatus; and a reception unit configured to receive, from the other communication apparatus, an attempt result of the participation in the network by the other communication apparatus using the communication parameter.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain principles of the invention.
The present invention will now be described in detail based on an example of embodiments with reference to the accompanying drawings. Note that the arrangement shown in the following embodiments is merely an example, and the present invention is not limited to the illustrated arrangement.
(System Arrangement)
(Arrangement of Smartphone 100)
An input unit 202 accepts an operation/input from the user, and transmits information corresponding to the operation/input to the units. The input unit 202 is formed by, for example, a button or a microphone. A display unit 203 performs various kinds of display. The display unit 203 may be configured to output not only visual information but also audio information. Hence, the display unit 203 is configured as a display formed by a light emitting diode (LED) and the like, a speaker, or an arbitrary combination thereof. Note that like a display with a touch panel, the input unit 202 and the display unit 203 may be configured as a user interface (UI) by functioning together. An image capturing unit 204 performs image capturing and digitizes an image acquired by the image capturing, thereby generating image data. The image capturing unit 204 is formed by, for example, a camera or an image sensor. A wireless communication unit 205 wirelessly communicates with another communication apparatus based on the IEEE802.11 series standard. The wireless communication unit 205 may perform wireless communication based on another standard such as Bluetooth® or Near Field Communication (NFC). The wireless communication unit 205 is formed by, for example, a wireless communication module, a wireless communication integrated circuit, and an antenna.
The functional arrangement of the smartphone 100 will be described next. Referring to
(Arrangement of Printer 101)
The functional arrangement of the printer 101 will be described next. Referring to
(Procedure of Processing)
Processing between the smartphone 100 and the printer 101 according to this embodiment will be described next. Processing of the smartphone 100 will be described first.
Note that the storage unit 201 of the smartphone 100 is assumed to store at least, in advance, a communication parameter used to participate in a wireless LAN formed by the access point 102. The communication parameter in this embodiment is information used to participate in a wireless LAN, such as a connector defined by the DPP standard. The communication parameter can be input in advance by the user via the input unit 202 or by another arbitrary means.
In step S40, the smartphone 100 executes DPP Bootstrapping and acquires Bootstrap information defined by the DPP. The Bootstrap information includes a public key and the like. Note that in this embodiment, a description will be made assuming that a quick response (QR) code is used for DPP Bootstrapping. However, another arbitrary image such as a two-dimensional code or a barcode may be used. As a detailed processing example of step S400, first, the display control unit 213 displays, on the display unit 203, a message that instructs to capture a QR code displayed on the display unit of the printer 101 that is made to participate in the wireless LAN. When the user inputs an image capturing instruction via the input unit 202 based on the message, the control unit 200 activates the image capturing unit 204, and the image capturing unit 204 thus captures the image of the QR code displayed on the printer 101. Next, the information analysis unit 212 acquires Bootstrap information from the captured image of the QR code and stores it in the storage unit 201. Note that in this embodiment, a QR code is used for DPP Bootstrapping, as described above. Another method defined by the DPP standard, such as Bluetooth or NFC may be used. That is, the smartphone 100 may acquire Bootstrap information by Bluetooth, NFC, or the like. Next, the information analysis unit 212 analyzes the acquired Bootstrap information, and transfers information included in the Bootstrap information to the transmission unit 210.
In step S401, the transmission unit 210 generates an authentication request frame (DPP authentication request frame) based on the information included in the Bootstrap information, and transmits it to the printer 101. After the transmission of the authentication request frame, in step S402, the reception unit 211 waits for reception of an authentication response frame (DPP authentication response frame) from the printer 101 for a predetermined time. The predetermined time is, for example, 5 sec. If the reception unit 211 receives the authentication response frame within the predetermined time (YES in step S402), the authentication processing unit 214 executes authentication processing. If authentication succeeds, the process advances to step S403. On the other hand, if the reception unit 211 does not receive the authentication response frame within the predetermined time (NO in step S402), the procedure is ended. Note that even when the authentication processing unit 214 has failed in the authentication processing, the procedure is ended.
In step S403, the transmission unit 210 generates an authentication completion frame (DPP authentication confirm frame) based on the authentication response frame received by the reception unit 211, and transmits it to the printer 101. According to the DPP standard, exchange of the authentication request frame, the authentication response frame, and the authentication completion frame is called a DPP authentication protocol. When the exchange of these frames is completed, a secure channel is established between the smartphone 100 and the printer 101. Note that in this embodiment, the exchange of these frames is controlled by the channel control unit 216. After the establishment of the secure channel, the channel control unit 216 stores information concerning the established secure channel in the storage unit 201 and manages it.
After the establishment of the secure channel, in step S404, the reception unit 211 waits for reception of a configuration request frame (DPP configuration request frame) from the printer 101 for a predetermined time. The predetermined time is, for example, 5 sec. If the reception unit 211 receives the configuration request frame within the predetermined time (YES in step S404), the process advances to step S405. If the configuration request frame is not received within the predetermined time (NO in step S404), the process advances to step S409.
In step S405, the transmission unit 210 reads out the communication parameter stored in the storage unit 201, generates a configuration response frame (DPP configuration response frame) based on the communication parameter, and transmits it to the printer 101. Note that if a communication parameter corresponding to each of the plurality of access points is stored in the storage unit 201 of the smartphone 100, the smartphone 100 may be configured to cause the user to select one of the plurality of access points. For example, the display control unit 213 can display, on the display unit 203, identification information of each of the plurality of access points and a message that instructs the user to select one of them. The identification information includes, for example, the media access control (MAC) address of each access point, and the extended service set identifier (ESSID) of a wireless LAN managed by each access point.
After the transmission of the configuration response frame, in step S406, the reception unit 211 waits for reception of the result (attempt result) of the attempt of the printer 101 in participating in the wireless LAN formed (managed) by the access point 102 (connecting to the access point 102) from the printer 101 for a predetermined time. The predetermined time is, for example, 5 sec. The attempt result may be transmitted by an action frame defined by the IEEE802.11 series standard, like a frame used in the DPP. Alternatively, the attempt result may be transmitted by a data frame or another frame. If the reception unit 211 receives the attempt result within the predetermined time (YES in step S406), the process advances to step S407. If the reception unit 211 does not receive the attempt result within the predetermined time (NO in step S406), the process advances to step S410.
In step S407, the result determination unit 215 determines whether the trial result received by the reception unit 211 indicates a success. If the attempt result indicates a success (YES in step S407), the process advances to step S408. If the attempt result does not indicate a success (NO in step S407), the process advances to step S410. In step S408, the display control unit 213 displays, on the display unit 203, a message that notifies the user that the printer 101 has succeeded in participating in the wireless LAN formed by the access point 102.
Note that when the secure channel is disconnected in step S409, a radio resource consumed by beacon frame transmission and the like can be reduced. It is therefore possible to increase the band usable for the communication between the printer 101 and the access point 102 or the band used by another device that uses the radio resource and achieve efficient use of the resource. It is also possible to reduce the resources of the smartphone 100 and the printer 101 used to maintain the secure channel. This can implement reduction of power consumption of the printer 101 and the access point 102 and improvement of performance for another processing such as communication between the printer 101 and the access point 102.
On the other hand, in step S410 to which the process advances if NO in step S406 or S407, the display control unit 213 displays, on the display unit 203, a message that notifies the user that the printer 101 has failed in participating in the wireless LAN formed by the access point 102. Also, the display control unit 213 may display, on the display unit 203, a message that asks the user whether to perform a reattempt.
In step S411, the input unit 202 determines whether an input for instructing a reattempt is accepted from the user. In the example of the screen shown in
Processing of the printer 101 will be described next.
In step S800, the printer 101 executes DPP Bootstrapping. Note that in this embodiment, a description will be made assuming that a QR code is used for DPP Bootstrapping, as described above. As a detailed processing example of step S800, the display control unit 312 displays, on the display unit 303, an image of a QR code including Bootstrap information stored in the storage unit 301. Note that in this embodiment, a QR code is used for DPP Bootstrapping. Another method defined by the DPP standard, such as Bluetooth or NFC may be used. That is, the printer 101 may provide Bootstrap information to the smartphone 100 by Bluetooth, NFC, or the like.
In step S801, the reception unit 311 waits for reception of an authentication request frame (DPP authentication request frame) from the smartphone 100 for a predetermined time. The predetermined time is, for example, 5 sec. If the reception unit 311 receives the authentication request frame within the predetermined time (YES in step S801), the authentication processing unit 313 executes authentication processing. If authentication succeeds, the process advances to step S812. On the other hand, if the reception unit 311 does not receive the authentication request frame within the predetermined time (NO in step S801), the procedure is ended. Note that even when the authentication processing unit 313 has failed in the authentication processing, the procedure is ended.
In step S802, the transmission unit 310 generates an authentication response frame (DPP authentication response frame) based on the authentication request frame received by the reception unit 311, and transmits it to the smartphone 100. After the transmission of the authentication response frame, in step S803, the reception unit 311 waits for reception of an authentication completion frame (DPP authentication confirm frame) from the smartphone 100 for a predetermined time. The predetermined time is, for example, 5 sec. If the reception unit 311 receives the authentication completion frame within the predetermined time (YES in step S803), a secure channel is established between the printer 101 and the smartphone 100. As described above, the secure channel establishing procedure is based on the DPP authentication protocol, and in this embodiment, exchange of the authentication request frame, the authentication response frame, and the authentication completion frame is controlled by the channel control unit 315. After the establishment of the secure channel, the channel control unit 315 stores information concerning the established secure channel in the storage unit 301 and manages it. On the other hand, if the reception unit 311 does not receive the authentication completion frame within the predetermined time (NO in step S803), the procedure is ended.
After the establishment of the secure channel, in step S804, the transmission unit 310 generates a configuration request frame (DPP configuration request frame) and transmits it to the smartphone 100. After the transmission of the configuration request frame, in step S805, the reception unit 311 waits for reception of a configuration response frame (DPP configuration response frame) from the smartphone 100 for a predetermined time. The predetermined time is, for example, 5 sec. Upon receiving the configuration response frame within the predetermined time (YES in step S805), the reception unit 311 stores a communication parameter included in the configuration response frame in the storage unit 301. Next, in step S806, the network participation unit 314 attempts to participate in a wireless LAN formed by the access point 102 that is a desired access point within a predetermined time using the communication parameter stored in the storage unit 301.
The attempt of participating in the wireless LAN is executed in accordance with, for example, a procedure defined by the DPP standard. That is, the network participation unit 314 performs discovery of an access point, transmission of a peer discovery request frame, and reception of a peer discovery response frame via the transmission unit 310 and the reception unit 311. Next to the transmission/reception of these frames, the network participation unit 314 performs a standard procedure defined by the IEEE802.11 series standard. The standard procedure defined by the IEEE802.11 series standard is configured in association with authentication. Note that 4-way handshake may be executed.
After the attempt of participating in the wireless LAN is performed for a predetermined time, in step S807, the network participation unit 314 determines whether the result of the participation attempt (attempt result) indicates a success. If the attempt result indicates a success (YES in step S807), the process advances to step S808. In step S808, the transmission unit 310 transmits, to the smartphone 100, a frame that notifies the user that the attempt result indicates a success. The attempt result can be transmitted by any frame, as described concerning the processing of step S406 in
In step S809, the channel control unit 315 performs control for disconnecting the secure channel to/from the smartphone 100. For example, the channel control unit 315 deletes (invalidates) information concerning the secure channel, which is stored in the storage unit 301. This procedure is then ended. At this time, the channel control unit 315 may store a common key and the like and release the area on the storage unit 301 used to maintain the secure channel. Note that the disconnection processing is not limited to this. For example, the transmission unit 310 may transmit a disconnection frame (disassociation frame) defined by the IEEE802.11 series standard to the smartphone 100 under the control of the channel control unit 315. Similarly, the transmission unit 310 may transmit an authentication cancel frame (deauthentication frame), or may transmit a disconnection notification included in an action frame, a data frame, or another frame. In addition, the reception unit 311 may wait for reception of these frames from the smartphone 100. If the reception unit 311 receives these frames, or a predetermined time (for example, 1 sec) elapses without reception, the printer 101 may perform the disconnection processing.
Note that when the secure channel is disconnected in step S809, a radio resource consumed by beacon frame transmission and the like can be reduced. It is therefore possible to increase the band usable for the communication between the printer 101 and the access point 102 or the band used by another device that uses the radio resource and achieve efficient use of the resource. It is also possible to reduce the resources of the smartphone 100 and the printer 101 used to maintain the secure channel. This can implement reduction of power consumption of the printer 101 and the access point 102 and improvement of performance for another processing such as communication between the printer 101 and the access point 102.
On the other hand, in step S810 to which the process advances if NO in step S807, the transmission unit 310 transmits, to the smartphone 100, a frame that notifies the user that the attempt result indicates a failure. The attempt result can be transmitted by any frame, as in step S808. When the transmission unit 310 transmits the attempt result, the process returns to step S804 to transmit the configuration request frame again. According to this, in step S805, the reception unit 311 can receive the configuration response frame from the smartphone 100 again. Hence, the printer 101 can quickly reattempt to participate in the wireless LAN using a different communication parameter (or the same communication parameter), and the convenience of the printer 101 can improve.
As described above, according to this embodiment, the printer 101 can quickly transmit, to the smartphone 100, the attempt result of participating in the wireless LAN formed by the access point 102, and the smartphone that has received this can perform display based on the notification. As a result, the convenience for the user improves. In addition, even during the attempt of the printer 101 in participating in the wireless LAN, the secure channel established by the DPP authentication protocol between the smartphone 100 and the printer 101 is maintained. Hence, the printer 101 can transmit the attempt result to the smartphone 100 by a more safe and reliable method.
The second embodiment will be described next. Note that in this embodiment, points different from the first embodiment will be described.
(Procedure of Processing)
Processing between a smartphone 100 and a printer 101 according to this embodiment will be described. Processing of the smartphone 100 will be described first.
In each step denoted by the same number as in
In step S902, a transmission unit 210 generates an authentication response frame (DPP authentication response frame) based on the authentication request frame received by the reception unit 211, and transmits it to the printer 101. After the transmission of the authentication response frame, in step 903, the reception unit 211 waits for reception of an authentication completion frame (DPP authentication confirm frame) from the printer 101 for a predetermined time. The predetermined time is, for example, 5 sec. If the reception unit 211 receives the authentication completion frame within the predetermined time (YES in step S903), a secure channel is established between the printer 101 and the smartphone 100. After the establishment of the secure channel, a channel control unit 216 stores information concerning the established secure channel in the storage unit 201 and manages it. On the other hand, if the reception unit 211 does not receive the authentication completion frame within the predetermined time (NO in step S903), the procedure is ended.
After the establishment of the secure channel, processing similar to steps S404 and S405 shown in
Processing of the printer 101 will be described next.
In each step denoted by the same number as in
In step S1003, a transmission unit 310 creates an authentication completion frame (DPP authentication confirm frame) based on the authentication response frame received by the reception unit 311, and transmits it to the smartphone 100. A secure channel is thus established, and the channel control unit 315 stores information concerning the established secure channel in the storage unit 301 and manages it.
After the establishment of the secure channel, processing similar to steps S803 and S804 shown in
As described above, according to this embodiment, in addition to the effect described in the first embodiment, the secure channel is not unnecessarily maintained, thereby further reducing consumption of the radio resource and increasing the resource (band) usable as the system. It is therefore possible to implement further reduction of power consumption of the printer 101 and an access point 102 and further improvement of performance for another processing such as communication between the printer 101 and the access point 102.
according to the above embodiments, it is possible to notify the apparatus on the communication parameter providing side of the situation of an attempt in participating in the network by the apparatus on the communication parameter receiving side, thereby improving user convenience.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
Number | Date | Country | Kind |
---|---|---|---|
2018-248367 | Dec 2018 | JP | national |
This application is a Continuation of International Patent Application No. PCT/JP2019/046995, filed Dec. 2, 2019, which claims the benefit of Japanese Patent Application No. 2018-248367, filed Dec. 28, 2018, both of which are hereby incorporated by reference herein in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP2019/046995 | Dec 2019 | US |
Child | 17235973 | US |