COMMUNICATION DEVICE, CONTROL METHOD, AND PROGRAM
The communication device solution allows for notification of the participation status in a wireless LAN, addressing user convenience and resource efficiency by managing secure channel usage.
Patent Information
- Application Number
- JP2023084157
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-09-11
- Estimated Expiration
- 2038-12-28
AI Technical Summary
Users face difficulties in determining whether a communication device, such as a printer, has successfully joined a wireless LAN and confirming the completion of communication parameter transmission from a configurator device, like a smartphone, during the DPP setup process.
A communication device is equipped with first receiving and transmitting means for authentication and secure channel establishment, followed by attempting to connect to an access point and transmitting a trial result via a secure channel to notify the parameter providing side of the attempt status.
Enables the communication parameter providing side to be notified of the participation status of the receiving device, enhancing user convenience and resource efficiency by reducing unnecessary secure channel maintenance.
Smart Images

Figure 0007549702000001 
Figure 0007549702000009 
Figure 0007549702000010
Abstract
Description
[Technical field]
[0001] The present invention relates to wireless communication technology. [Background technology]
[0002] In order to participate in a wireless LAN (Local Area Network), it is necessary to set various communication parameters, and the DPP (Device Provisioning Protocol) standard has been established as a technology to facilitate the setting of such communication parameters. In the DPP, a communication device functioning as a configurator transmits (provides) communication parameters such as connectors to a communication device functioning as an enrollee (Patent Document 1). When the communication device functioning as an enrollee receives the communication parameters, it attempts to participate in a wireless LAN formed by an access point. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-42057 A Summary of the Invention [Problem to be solved by the invention]
[0004] Here, for example, consider a case where the communication device functioning as a configurator is a smartphone, and the communication device functioning as an enrollee is a printer. In this case, the smartphone transmits communication parameters to the printer in response to, for example, an operation by a user. The printer that has received the communication parameters attempts to join the wireless LAN, but at this time, it is difficult for the smartphone user to know whether the printer has succeeded in joining the wireless LAN. This also makes it difficult for the smartphone user to confirm whether the transmission of the communication parameters to the printer has been completed.
[0005] The present invention has been made in consideration of the above-mentioned problems, and aims to provide a technique for notifying a communication parameter providing device of the status of an attempt by a communication parameter receiving device to join a network. [Means for solving the problem]
[0006] As a means for achieving the above object, a communication device according to the present invention has the following configuration: A communication device, comprising: a first receiving means for receiving an authentication request from another communication device; a first transmitting means for transmitting an authentication response to the other communication device in response to the authentication request received by the first receiving means; a requesting means for requesting communication parameters for said another communication device to communicate with an access point; a second receiving means for receiving the communication parameters from the other communication device in response to the request through a secure channel established based on an authentication protocol; a trial means for attempting a connection to the access point using the communication parameters; a second transmission means for transmitting information indicating a result of the attempt by the attempt means to the other communication device via the secure channel; has. Effect of the Invention
[0007] It becomes possible to notify the communication parameter providing device of the status of an attempt by the communication parameter receiving device to join the network, thereby improving user convenience. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a schematic configuration diagram of a communication system 10. [Diagram 2] 1A is a diagram showing an example of the hardware configuration of a smartphone 100, and FIG. 1B is a diagram showing an example of the functional configuration of the smartphone 100. FIG. [Diagram 3] 1A is a diagram showing an example of the hardware configuration of a printer 101, and FIG. 1B is a diagram showing an example of the functional configuration of the printer 101. [Figure 4] 4 is a flowchart of processing of the printer 101 according to the first embodiment. [Diagram 5] FIG. 13 is a diagram showing an example of a screen for selecting any one of a plurality of access points. [Figure 6] FIG. 13 is a diagram showing an example of a screen including a message notifying the user that joining the wireless LAN has been successful. [Figure 7] 13 is a diagram showing an example of a screen including a message notifying a failure to join a wireless LAN. [Figure 8] 4 is a flowchart of processing of the printer 101 according to the first embodiment. [Figure 9] 10 is a flowchart of processing of the smartphone 100 according to the second embodiment. [Figure 10] 10 is a flowchart of processing of the printer 101 according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the present invention will be described in detail based on an example of an embodiment with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.
[0010] [First embodiment] (System Configuration) FIG. 1 shows a schematic configuration of a communication system 10 in the first embodiment. The communication system 10 includes a smartphone 100, a printer 101, and access points 102 to 104. The smartphone 100 functions as a DPP configurator, and the printer 101 functions as a DPP enrollee. The access points 102 to 104 are wireless LAN access points that comply with the IEEE802.11 series of standards. The smartphone 100, the printer 101, and the access points 102 to 104 may be other types of communication devices, such as a mobile phone, a digital camera, or a multifunction printer. Although the communication system 10 shown in FIG. 1 includes three access points, this is an example, and the communication system 10 may include four or more access points.
[0011] (Configuration of smartphone 100) FIG. 2 shows the configuration of the smartphone 100. FIG. 2(A) shows an example of the hardware configuration of the smartphone 100, and FIG. 2(B) shows an example of the functional configuration of the smartphone 100. First, the hardware configuration of the smartphone 100 will be described. In FIG. 2(A), the control unit 200 reads out and executes a program stored in the storage unit 201 to control each unit. The control unit 200 is composed of, for example, one or more CPUs (Central Processing Units) or one or more microprocessing units. The storage unit 201 stores the program executed by the control unit 200, information related to various settings used when the program is executed, and the like. The storage unit 201 is also used to temporarily store information when the control unit 200 executes a program. The storage unit 201 is composed of, for example, one or more of a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, and a hard disk.
[0012] The input unit 202 receives an operation / input from a user and transmits information corresponding to the operation / input to each unit. The input unit 202 is composed of, for example, a button and a microphone. The display unit 203 performs various displays. The display unit 203 may be configured to output not only visual information but also audio information. Therefore, the display unit 203 is composed of, for example, a display composed of a light emitting diode (LED) or the like, a speaker, or any combination thereof. Note that, like a display with a touch panel, the input unit 202 and the display unit 203 may function together to form a user interface (UI). The imaging unit 204 captures an image and digitizes the image acquired by the capture to generate image data. The imaging unit 204 is composed of, for example, a camera and an image sensor. The wireless communication unit 205 wirelessly communicates with other communication devices based on the IEEE802.11 series standards. The wireless communication unit 205 may wirelessly communicate based on other standards such as Bluetooth (registered trademark) and Near Field Communication (NFC). The wireless communication unit 205 is composed of, for example, a wireless communication module, a wireless communication integrated circuit, and an antenna.
[0013] Next, the functional configuration of the smartphone 100 will be described. In FIG. 2B, the transmission unit 210 and the reception unit 211 transmit and receive various frames (signals) via the wireless communication unit 205. The information analysis unit 212 analyzes the Bootstrap information (described later) acquired via the imaging unit 204 and the like. The display control unit 213 controls the display on the display unit 203. The authentication processing unit 214 performs authentication processing. The result determination unit 215 determines whether the result of the printer 101 attempting to join the wireless LAN formed by the access point is successful or not, based on the information received by the reception unit 211. The channel control unit 216 controls the transmission unit 210, the reception unit 211, and the storage unit 201, and performs control for establishing and disconnecting a secure channel with the printer 101.
[0014] (Printer 101 Configuration) FIG. 3 shows the configuration of the printer 101. FIG. 3(A) shows an example of the hardware configuration of the printer 101, and FIG. 3(B) shows an example of the functional configuration of the printer 101. First, the hardware configuration of the printer 101 will be described. In FIG. 3(A), the control unit 300, the storage unit 301, the input unit 302, the display unit 303, and the wireless communication unit 305 are the same as the control unit 200, the storage unit 201, the input unit 202, the display unit 203, and the wireless communication unit 205 of the smartphone 100 in FIG. 2(A), so the description will be omitted. The printing unit 304 has a function of converting digital information into a print image and printing it on a medium such as paper using ink, toner, etc.
[0015] Next, the functional configuration of the printer 101 will be described. In FIG. 3B, a transmission unit 310 and a reception unit 311 respectively transmit and receive various frames (signals) via a wireless communication unit 305. A display control unit 312 controls display on a display unit 303. An authentication processing unit 313 performs authentication processing. A network participation unit 314 attempts to participate in a network managed by a desired access point according to a predetermined procedure. A channel control unit 315 controls the transmission unit 310, the reception unit 311, and the storage unit 301, and performs control for establishing and disconnecting a secure channel with the smartphone 100.
[0016] (Processing flow) Next, the processing between the smartphone 100 and the printer 101 in this embodiment will be described. First, the processing of the smartphone 100 will be described. FIG. 4 is a flowchart of the processing of the smartphone 100 in this embodiment. The flowchart shown in FIG. 4 can be realized by the control unit 200 of the smartphone 100 executing a control program stored in the storage unit 201, and performing calculation and processing of information and control of each hardware. In addition, the processing of this flowchart is started, for example, when application software for connecting the printer 101 to a wireless LAN stored in the storage unit 201 is started. In addition, this application software can be started when a start instruction is input by the user to the input unit 202.
[0017] It is assumed that the storage unit 201 of the smartphone 100 stores in advance communication parameters for participating in a wireless LAN formed by at least the access point 102. The communication parameters in this embodiment are information for participating in a wireless LAN, such as a connector defined in the DPP standard. The communication parameters can be input in advance by a user via the input unit 202 or by any other means.
[0018] In step S400, the smartphone 100 executes DPP Bootstrapping and acquires Bootstrap information defined in the DPP. The Bootstrap information includes a public key and the like. In the present embodiment, a Quick Response (QR) code is used for DPP Bootstrapping, but any other image such as a two-dimensional code or a barcode may be used. As a specific processing example of step S400, first, the display control unit 213 displays on the display unit 203 a message instructing to capture an image of a QR code displayed on the display unit of the printer 101 to be joined to the wireless LAN. When the user inputs an image capture instruction via the input unit 202 based on the message, the control unit 200 starts the image capture unit 204, and in response to this, the image capture unit 204 captures an 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. As described above, in the present embodiment, a QR code is used for DPP Bootstrapping, but other methods defined in the DPP standard such as Bluetooth and NFC may be used. That is, the smartphone 100 may acquire the Bootstrap information by Bluetooth, NFC, etc. Next, the information analysis unit 212 analyzes the acquired Bootstrap information and passes to the transmission unit 210 the information included in the Bootstrap information.
[0019] In step S401, the transmitting unit 210 generates an authentication request frame (DPP Authentication Request frame) based on information included in the Bootstrap information and transmits it to the printer 101. After transmitting the authentication request frame, in step S402, the receiving unit 211 waits for a predetermined time to receive an authentication response frame (DPP Authentication Response frame) from the printer 101. The predetermined time is, for example, 5 seconds. If the receiving unit 211 receives the authentication response frame within the predetermined time (YES in S402), the authentication processing unit 214 executes authentication processing, and if this is successful, the process proceeds to step S403. On the other hand, if the receiving unit 211 does not receive the authentication response frame within the predetermined time (NO in S402), this flow ends. Note that this flow also ends if the authentication processing unit 214 fails in the authentication processing.
[0020] In step S403, the transmitting unit 210 generates an authentication completion frame (DPP Authentication Confirm frame) based on the authentication response frame received by the receiving unit 211, and transmits the generated frame to the printer 101. According to the DPP standard, the exchange of the authentication request frame, the authentication response frame, and the authentication completion frame is called the DPP authentication protocol. Upon completion of the exchange of these frames, 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 secure channel is established, the channel control unit 216 stores information about the established secure channel in the storage unit 201 and manages it.
[0021] After the secure channel is established, in step S404, the receiving unit 211 waits for a predetermined time to receive a configuration request frame (DPP Configuration Request frame) from the printer 101. The predetermined time is, for example, five seconds. If the receiving unit 211 receives the configuration request frame within the predetermined time (YES in S404), the process proceeds to step S405, and if the frame is not received within the predetermined time (NO in S404), the process proceeds to step S409.
[0022] In step S405, the transmission unit 210 reads out the communication parameters stored in the storage unit 201, generates a configuration response frame (DPP Configuration Response frame) based on the communication parameters, and transmits the frame to the printer 101. When communication parameters corresponding to each of a plurality of access points are stored in the storage unit 201 of the smartphone 100, the smartphone 100 may be configured to allow the user to select one of the plurality of access points. For example, the display control unit 213 may display, on the display unit 203, identification information for each of the plurality of access points and a message instructing the user to select one of the access points. The identification information is, for example, a media access control (MAC) address of each access point and an extended service set identifier (ESSID) of a wireless LAN managed by each access point. FIG. 5 shows an example of a screen for selecting one of the plurality of access points. In the example screen shown in FIG. 5, when the user inputs an instruction to select one of the access points via the input unit 202, the process of step S405 may be executed for the selected access point.
[0023] After transmitting the setting response frame, in step S406, the receiving unit 211 waits for a predetermined time to receive from the printer 101 a result (attempt result) of the printer 101 attempting to join (connect to) the wireless LAN formed (managed) by the access point 102. The predetermined time is, for example, 5 seconds. The attempt result may be transmitted in an action frame defined in the IEEE802.11 series of standards, similar to the frame used in DPP. Alternatively, the attempt result may be transmitted in a data frame or other frame. If the receiving unit 211 receives the attempt result within the predetermined time (YES in S406), the process proceeds to step S407, and if the attempt result is not received within the predetermined time (NO in S406), the process proceeds to step S410.
[0024] In step S407, the result determination unit 215 determines whether the trial result received by the receiving unit 211 is successful. If it is successful (YES in S407), the process proceeds to step S408, and if it is not successful (NO in S407), the process proceeds to step S410. In step S408, the display control unit 213 displays on the display unit 203 a message notifying that the printer 101 has successfully joined the wireless LAN formed by the access point 102. FIG. 6 shows an example of a screen including a message notifying that the printer 101 has successfully joined the wireless LAN managed by the access point 102. After that, in step S409, the channel control unit 216 performs control to disconnect the secure channel with the printer 101. For example, the channel control unit 216 deletes (invalidates) information about the secure channel stored in the storage unit 201. Then, this flow ends. At this time, the channel control unit 216 may store a common key and the like and release an area on the storage unit 201 that has been used to maintain the secure channel. Note that the disconnection process is not limited to this. For example, under the control of the channel control unit 216, the transmission unit 210 may transmit a disconnection frame (Disassociation frame) defined in the IEEE802.11 series of standards to the printer 101. Similarly, the transmission unit 210 may transmit a deauthentication frame, or may transmit an action frame, a data frame, or another frame with a notification of disconnection included therein. Also, the reception unit 211 may wait for these frames to be received from the printer 101. When the reception unit 211 receives these frames, or when a predetermined time (for example, one second) has elapsed without receiving any of the frames, the smartphone 100 may perform the disconnection process.
[0025] Note that by disconnecting the secure channel in step S409, wireless resources consumed by transmitting beacon frames, etc. can be reduced. Therefore, the bandwidth available for communication between the printer 101 and the access point 102, or the bandwidth available for other devices that use wireless resources, can be increased, and resources can be used more efficiently. In addition, the resources of the smartphone 100 and the printer 101 used to maintain the secure channel can be reduced. This makes it possible to reduce the power consumption of the printer 101 and the access point 102 and improve the performance of other processes, such as communication between the printer 101 and the access point 102.
[0026] On the other hand, in step S410, which is reached if the results are NO in steps S406 and S407, the display control unit 213 displays on the display unit 203 a message notifying the user that the printer 101 has failed to join the wireless LAN formed by the access point 102. Furthermore, the display control unit 213 may also display on the display unit 203 a message asking whether or not to retry. Fig. 7 shows an example of a screen including a message notifying the user that the printer 101 has failed to join the wireless LAN formed by the access point 102. In this example of the screen, a message asking whether or not to retry is also displayed.
[0027] In step S411, the input unit 202 determines whether an input instructing a retry has been received from the user. In the example screen shown in FIG. 7, it is determined whether "Yes" has been input. If an input instructing a retry has been received (YES in S411), the process returns to step S404, and the receiving unit 211 waits for a predetermined time to receive a setting request frame from the printer 101 again. If no input instructing a retry has been received (NO in S411), the process proceeds to step S409. The process of step S409 is as described above. After the process of step S409, this flow ends. Note that instead of S411, the processes of steps S404 to S407 may be performed within a predetermined time after the process of step S410.
[0028] Next, the processing of the printer 101 will be described. Fig. 8 is a flowchart of the processing of the printer 101 in this embodiment. The flowchart shown in Fig. 8 can be realized by the control unit 300 of the printer 101 executing a control program stored in the storage unit 301, and performing calculations and processing of information and control of each piece of hardware. The processing of this flowchart is started, for example, when application software for starting wireless LAN setting by DPP, which is stored in the storage unit 301, is started by a user's instruction.
[0029] In step S800, the printer 101 executes DPP Bootstrapping. As described above, in this embodiment, it is assumed that a QR code is used for DPP Bootstrapping. As a specific processing example of step S800, the display control unit 312 displays an image of a QR code including the Bootstrap information stored in the storage unit 301 on the display unit 303. It is assumed that a QR code is used for DPP Bootstrapping in this embodiment, but other methods defined in the DPP standard, such as Bluetooth and NFC, may also be used. That is, the printer 101 may provide the Bootstrap information to the smartphone 100 via Bluetooth, NFC, or the like.
[0030] In step S801, receiving unit 311 waits for a predetermined time to receive an authentication request frame (DPP Authentication Request frame) from smartphone 100. The predetermined time is, for example, five seconds. If receiving unit 311 receives the authentication request frame within the predetermined time (YES in S801), authentication processing unit 313 executes authentication processing, and if this is successful, the process proceeds to step S812. On the other hand, if receiving unit 311 does not receive an authentication request frame within the predetermined time (NO in S801), this flow ends. Note that this flow also ends if authentication processing unit 313 fails in authentication processing.
[0031] In step S802, the transmitting unit 310 generates an authentication response frame (DPP Authentication Response frame) based on the authentication request frame received by the receiving unit 311, and transmits it to the smartphone 100. After transmitting the authentication response frame, in step S803, the receiving unit 311 waits for a predetermined time to receive an authentication completion frame (DPP Authentication Confirm frame) from the smartphone 100. The predetermined time is, for example, 5 seconds. When the receiving unit 311 receives the authentication completion frame within the predetermined time (YES in S803), a secure channel is established between the printer 101 and the smartphone 100. As described above, the procedure for establishing a secure channel is based on the DPP authentication protocol, and in this embodiment, the 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 secure channel is established, the channel control unit 315 stores information about the established secure channel in the storage unit 301 and manages it. On the other hand, if the receiving unit 311 does not receive the authentication completion frame within the predetermined time (NO in S803), this flow ends.
[0032] After the secure channel is established, in step S804, the transmitting unit 310 generates a configuration request frame (DPP Configuration Request frame) and transmits it to the smartphone 100. After transmitting the configuration request frame, in step S805, the receiving unit 311 waits for a predetermined time to receive a configuration response frame (DPP Configuration Response frame) from the smartphone 100. The predetermined time is, for example, 5 seconds. When the receiving unit 311 receives the configuration response frame within the predetermined time (YES in S805), it stores the communication parameters included in the configuration response frame in the storage unit 301. Next, in step S806, the network participation unit 314 uses the communication parameters stored in the storage unit 301 to attempt to participate in a wireless LAN formed by the access point 102, which is a desired access point, within the predetermined time.
[0033] An attempt to join a wireless LAN is performed, for example, according to a procedure defined in the DPP standard. That is, the network joining unit 314 discovers an access point, transmits a peer discovery request frame, and receives a peer discovery response frame via the transmitting unit 310 and the receiving unit 311. After transmitting and receiving these frames, the network joining unit 314 performs a standard procedure defined in the IEEE802.11 series of standards. The standard procedure defined in the IEEE802.11 series of standards is composed of authentication and association. A 4-Way Handshake may be performed.
[0034] After attempting to join the wireless LAN for a predetermined period of time, in step S807, network participation unit 314 determines whether the result of the participation attempt (attempt result) is successful or not. If it is successful (YES in S807), the process proceeds to step S808. In step S808, transmission unit 310 transmits a frame to smartphone 100 notifying that the attempt result is successful. The attempt result may be transmitted in any frame, as described in the process of step S406 in FIG. 4. When transmission unit 310 transmits a frame notifying that the attempt result is successful, the process proceeds to step S809.
[0035] In step S809, the channel control unit 315 performs control to disconnect the secure channel with the smartphone 100. For example, the channel control unit 315 deletes (invalidates) information on the secure channel stored in the storage unit 301. Then, this flow ends. At this time, the channel control unit 315 may store a common key or the like and release an area on the storage unit 301 that has been used to maintain the secure channel. Note that the disconnection process is not limited to this. For example, under the control of the channel control unit 315, the transmission unit 310 may transmit a disconnection frame (Disassociation frame) defined in the IEEE802.11 series of standards to the smartphone 100. Similarly, the transmission unit 310 may transmit a deauthentication frame, or may transmit an action frame, a data frame, or another frame with a notification of disconnection included therein. In addition, the reception unit 311 may wait for reception of these frames from the smartphone 100. When the receiving unit 311 receives these frames, or when a predetermined time (for example, one second) has elapsed without receiving any of these frames, the printer 101 may perform a disconnection process.
[0036] Note that by disconnecting the secure channel in step S809, wireless resources consumed by transmitting beacon frames, etc. can be reduced. Therefore, the bandwidth available for communication between the printer 101 and the access point 102, or the bandwidth available for other devices that use wireless resources, can be increased, and resources can be used more efficiently. In addition, the resources of the smartphone 100 and the printer 101 used to maintain the secure channel can be reduced. This makes it possible to reduce the power consumption of the printer 101 and the access point 102 and improve the performance of other processes, such as communication between the printer 101 and the access point 102.
[0037] On the other hand, in step S810, which is reached if step S807 is NO, the transmission unit 310 transmits a frame to the smartphone 100 notifying that the attempt result is a failure. The attempt result may be transmitted in any frame, as in step S808. After the transmission unit 310 transmits the attempt result, the process returns to step S804, and the setting request frame is transmitted again. In response to this, in step S805, the reception unit 311 may receive a setting response frame again from the smartphone 100. Therefore, the printer 101 can quickly attempt to join the wireless LAN again using different communication parameters (or the same communication parameters), which may improve the convenience of the printer 101.
[0038] Thus, according to this embodiment, the printer 101 can promptly transmit the result of the attempt to join the wireless LAN formed by the access point 102 to the smartphone 100, and the smartphone that receives this can display the result based on the notification, resulting in improved user convenience. Also, while the printer 101 is attempting to join the wireless LAN, the secure channel established by the DPP authentication protocol between the smartphone 100 and the printer 101 is maintained. Therefore, the printer 101 can transmit the attempt result to the smartphone 100 in a safer and more reliable manner.
[0039] [Second embodiment] Next, a second embodiment will be described. Note that the second embodiment will be described with respect to the points that are different from the first embodiment.
[0040] (Processing flow) The process between the smartphone 100 and the printer 101 in this embodiment will be described. First, the process of the smartphone 100 will be described. FIG. 9 is a flowchart of the process of the smartphone 100 in this embodiment. The flowchart shown in FIG. 9 can be realized by the control unit 200 of the smartphone 100 executing a control program stored in the storage unit 201, and performing calculation and processing of information and control of each hardware. In addition, the process of this flowchart is started, for example, when application software for connecting the printer 101 to a wireless LAN stored in the storage unit 201 is started. In addition, this application software can be started when a start instruction is input by the user to the input unit 202.
[0041] In the steps having the same numbers as those in FIG. 4, the same processing as that described in FIG. 4 is executed. However, after step S400, the process proceeds to step S901, and after step S405, the process proceeds to step S950. In step S901, the receiving unit 211 waits for a predetermined time to receive an authentication request frame (DPP Authentication Request frame) from the printer 101. The predetermined time is, for example, 5 seconds. If the receiving unit 211 receives the authentication request frame within the predetermined time (YES in S901), the authentication processing unit 214 executes authentication processing, and if this is successful, the process proceeds to step S902. On the other hand, if the receiving unit 211 does not receive the authentication request frame within the predetermined time (NO in S901), this flow ends. Note that this flow also ends if the authentication processing unit 214 fails in the authentication processing.
[0042] In step S902, the transmitting unit 210 generates an authentication response frame (DPP Authentication Response frame) based on the authentication request frame received by the receiving unit 211, and transmits it to the printer 101. After transmitting the authentication response frame, in step 903, the receiving unit 211 waits for a predetermined time to receive an authentication completion frame (DPP Authentication Confirm frame) from the printer 101. The predetermined time is, for example, five seconds. If the receiving unit 211 receives the authentication completion frame within the predetermined time (YES in S903), a secure channel is established between the printer 101 and the smartphone 100. After the secure channel is established, the channel control unit 216 stores and manages information related to the established secure channel in the storage unit 201. On the other hand, if the receiving unit 211 does not receive the authentication completion frame within the predetermined time (NO in S903), this flow ends.
[0043] After the secure channel is established, the same processes as steps S404 and S405 in FIG. 4 are performed, and in the subsequent step S950, the channel control unit 216 performs control to disconnect the secure channel with the printer 101. The process of this step is similar to the process of step S409 in FIG. 4. In the subsequent steps S951, S952, and S953, the same processes as the above-mentioned steps S901, S902, and S903 are respectively performed. However, in step S953, when the receiving unit 211 receives an authentication completion frame from the printer 101 (YES in S953), a secure channel is established again, and the process proceeds to step S406. The subsequent processes are similar to the steps of the corresponding numbers in FIG. 4.
[0044] Next, the processing of the printer 101 will be described. Fig. 10 is a flowchart of the processing of the printer 101 in this embodiment. The flowchart shown in Fig. 10 can be realized by the control unit 300 of the printer 101 executing a control program stored in the storage unit 301, and performing calculations and processing of information and control of each piece of hardware. The processing of this flowchart is started, for example, when application software for starting wireless LAN setting by DPP, which is stored in the storage unit 301, is started by a user's instruction.
[0045] In the steps having the same numbers as those in FIG. 8, the same processing as that described in FIG. 8 is executed. However, after step S800, the process proceeds to step S1001, after step S805, the process proceeds to step S1050, and after step S806, the process proceeds to step S1051. In step 1001, the transmission unit 210 generates an authentication request frame (DPP Authentication Request frame) based on information included in the Bootstrap information stored in the storage unit 301, and transmits it to the smartphone 100. After transmitting the authentication request frame, in step S1002, the reception unit 311 waits for a predetermined time to receive an authentication response frame (DPP Authentication Response frame) from the smartphone 100. The predetermined time is, for example, 5 seconds. If the reception unit 211 receives the authentication response frame within the predetermined time (YES in S1002), the authentication processing unit 313 executes authentication processing, and if this is successful, the process proceeds to S1003. On the other hand, if the receiving unit 211 does not receive the authentication response frame within the predetermined time (NO in S1002), this flow ends. Note that this flow also ends if the authentication processing unit 313 fails in the authentication process.
[0046] In step S1003, the transmitting unit 310 creates an authentication completion frame (DPP Authentication Confirm) based on the authentication response frame received by the receiving unit 311, and transmits the authentication completion frame to the smartphone 100. This establishes a secure channel, and the channel control unit 216 stores information about the established secure channel in the storage unit 201 and manages it.
[0047] After the secure channel is established, the same processes as steps S803 and S804 in FIG. 8 are performed, and in the subsequent step S1050, the channel control unit 315 performs control to disconnect the secure channel with the smartphone 100. The process of this step is the same as the process of step S809 in FIG. 8. In the subsequent steps S1051, S1052, and S1053, the same processes as the above-mentioned steps S1001, S1002, and S1003 are respectively performed, and the secure channel is established again. However, after step S1053, the process proceeds to step S807. The subsequent processes are the same as the steps of the corresponding numbers in FIG. 8.
[0048] Thus, according to this embodiment, in addition to the effects described in the first embodiment, by not unnecessarily maintaining a secure channel, it is possible to further reduce the consumption of wireless resources and increase the resources (bandwidth) available to the system. Therefore, it is possible to further reduce the power consumption of the printer 101 and the access point 102, and further improve the performance of other processes such as communication between the printer 101 and the access point 102.
[0049] [Other embodiments] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]
[0050] 100 Smartphone, 101 Printer, 102-104 Access point
Claims
1. A communication device, comprising: a first receiving means for receiving an authentication request from another communication device; a first transmitting means for transmitting an authentication response to the other communication device in response to the authentication request received by the first receiving means; a requesting means for requesting communication parameters for said another communication device to communicate with an access point; a second receiving means for receiving the communication parameters from the other communication device in response to the request through a secure channel established based on an authentication protocol; a trial means for attempting a connection to the access point using the communication parameters; a second transmission means for transmitting information indicating a result of the attempt by the attempt means to the other communication device via the secure channel; A communication device comprising:
2. The communication device described in Claim 1, characterized in that the second transmitting means transmits information indicating success to the other communication device via the secure channel if the attempt result is successful, and transmits information indicating failure to the other communication device via the secure channel if the attempt result is failure.
3. A communication device as described in claim 1 or 2, characterized in that when the second transmitting means transmits information indicating success to the other communication device via the secure channel, the communication device performs control to disconnect the secure channel.
4. A communication device as described in any one of claims 1 to 3, characterized in that when the second transmitting means transmits information indicating a failure to the other communication device via the secure channel, the requesting means requests the communication parameters from the other communication device, and when the communication parameters are received by the second receiving means in response to the request, the attempting means retries connecting to the access point using the communication parameters.
5. A communication device as described in any one of claims 1 to 4, characterized in that the requesting means requests communication parameters via the secure channel.
6. A communication device described in any one of claims 1 to 5, characterized in that the secure channel is established based on information exchanged between the first receiving means and the first transmitting means.
7. A communication device, a first transmitting means for transmitting an authentication request to another communication device; a first receiving means for receiving an authentication response from the other communication device in response to the authentication request transmitted by the first transmitting means; a second receiving means for receiving, from the other communication device, a request for communication parameters for the other communication device to communicate with an access point; a second transmitting means for transmitting the communication parameters to the other communication device through a secure channel established based on an authentication protocol in response to the request received by the second receiving means; a second receiving means for receiving, via the secure channel, from the other communication device, a result of an attempt to connect to the access point using the communication parameters by the other communication device; A communication device comprising:
8. The communication device described in Claim 7, characterized in that the second receiving means receives information indicating success from the other communication device via the secure channel if the attempt result is successful, and receives information indicating failure from the other communication device via the secure channel if the attempt result is failure.
9. A communication device as described in claim 7 or 8, wherein when information indicating success is received from the other communication device via the secure channel by the second receiving means, the communication device performs control to disconnect the secure channel.
10. A communication device described in any one of claims 7 to 9, characterized in that the second receiving means receives the request via the secure channel.
11. A communication device described in any one of claims 7 to 10, characterized in that the secure channel is established based on information exchanged between the first receiving means and the first transmitting means.
12. A communication device as described in any one of claims 7 to 11, characterized in that it further has a first display control means for displaying a screen instructing a user to retry setting the communication parameters when information indicating a failure is received from the other communication device via the secure channel by the second receiving means.
13. A communication device described in any one of claims 7 to 12, characterized in that it further has a second display control means for displaying the trial result on a display unit.
14. A communication device described in any one of claims 7 to 13, characterized in that it further has a notification means for notifying of an error if the second receiving means does not receive the trial result within a predetermined time after the second transmitting means transmits the communication parameters.
15. The communication device according to claim 1, wherein the information indicating the trial result is communicated in an action frame defined in the IEEE 802.11 series of standards.
16. The communication device described in any one of claims 1 to 15, characterized in that the communication device is capable of performing Device Provisioing Protocol (DPP) processing, the authentication request is a DPP Authentication Request, and the authentication response is a DPP Authentication Response.
17. A communication device as described in any one of claims 1 to 16, characterized in that the communication device is a printer having a printing function.
18. A control method executed by a communication device, comprising: a first receiving step of receiving an authentication request from another communication device; a first transmission step of transmitting an authentication response to the other communication device in response to the authentication request received in the first reception step; a request step of requesting communication parameters from the other communication device for communication connection between the communication device and an access point; a second receiving step of receiving the communication parameters from the other communication device in response to the request through a secure channel established based on an authentication protocol; an attempt step of attempting a connection to the access point using the communication parameters; a second transmission step of transmitting information indicating a result of the attempt step to the other communication device via the secure channel; A control method comprising the steps of:
19. A control method executed by a communication device, comprising: a first transmission step of transmitting an authentication request to another communication device; a first receiving step of receiving an authentication response from the other communication device in response to the authentication request transmitted in the first transmitting step; a second receiving step of receiving, from the other communication device, a request for communication parameters for the other communication device to communicate with the access point; a second transmission step of transmitting the communication parameters to the other communication device in response to the request received in the second reception step through a secure channel established based on an authentication protocol; a second receiving step of receiving, via the secure channel, from the other communication device, a result of an attempt to connect to the access point using the communication parameters by the other communication device; A control method comprising the steps of:
20. A program for causing a computer to function as a communication device described in any one of claims 1 to 17.
Citation Information
Patent Citations
Communication apparatus, control method therefor, and program
JP2017034297A
Communication apparatus
JP2018026698A
Communication apparatus, control method for communication apparatus, and program
JP2018042057A
Distributed Configurator Entity
JP2018521566A
Communication device, communication device control method and program
WO2018047653A1
