COMMUNICATION APPARATUS, CONTROL METHOD OF COMMUNICATION APPARATUS, AND STORAGE MEDIUM STORING PROGRAM
20220386121 · 2022-12-01
Inventors
Cpc classification
H04L41/0873
ELECTRICITY
H04L69/18
ELECTRICITY
International classification
Abstract
If an authentication type parameter included in a communication setting stored in a storage unit indicates that the WPA and WPA2 standards and the WPA3 standard upward compatible therewith are supported, a communication apparatus replaces the authentication type parameter with an authentication type parameter indicating that the WPA3 standard is not supported and the WPA and WPA2 standards are supported, and outputs the communication apparatus including the replaced authentication type parameter.
Claims
1. A communication apparatus that performs wireless communication with an external apparatus, the communication apparatus comprising: a storage unit configured to store a communication setting including an authentication type parameter for the wireless communication; a replacement unit configured to replace, in a case where the authentication type parameter included in the communication setting stored in the storage unit indicates that both a first authentication type and a second authentication type that is upward compatible with the first authentication type are supported, the authentication type parameter with an authentication type parameter indicating that the second authentication type is not supported and the first authentication type is supported; and an output unit configured to output the communication setting including the authentication type parameter replaced by the replacement unit.
2. The communication apparatus according to claim 1, further comprising a first determination unit configured to determine whether the authentication type parameter included in the communication setting stored in the storage unit indicates that both the first authentication type and the second authentication type are supported, wherein the output unit outputs the communication setting including the authentication type parameter replaced by the replacement unit, based on a result of the determination by the first determination unit.
3. The communication apparatus according to claim 2, wherein, in a case where the first determination unit determines that the authentication type parameter included in the communication setting stored in the storage unit does not support both the first authentication type and the second authentication type, the output unit outputs the communication setting including an authentication type parameter not replaced by the replacement unit.
4. The communication apparatus according to claim 1, further comprising a second determination unit configured to determine whether a format of a set password is a format usable for the first authentication type, wherein, in a case where the second determination unit determines that the format of the set password is a format usable for the first authentication type, the output unit outputs the communication setting including the authentication type parameter replaced by the replacement unit.
5. The communication apparatus according to claim 1, further comprising a third determination unit configured to determine whether a set password is a password usable for the first authentication type, wherein, in a case where the third determination unit determines that the set password is a password usable for the first authentication type, the output unit outputs the communication setting including the authentication type parameter replaced by the replacement unit.
6. The communication apparatus according to claim 5, wherein, in a case where the third determination unit determines that the set password is not a password usable for the first authentication type, the output unit outputs the communication setting including an authentication type parameter not replaced by the replacement unit.
7. The communication apparatus according to claim 1, wherein the output unit generates a file including the communication setting and outputs the generated file.
8. The communication apparatus according to claim 1, wherein the output unit transmits the communication setting via a network.
9. The communication apparatus according to claim 1, further comprising a determination unit configured to determine whether to output the communication setting including the authentication type parameter replaced by the replacement unit or to output the communication setting including an authentication type parameter not replaced by the replacement unit, based on an output destination of the communication setting.
10. The communication apparatus according to claim 1, wherein the first authentication type is Wi-Fi Protected Access (WPA) or WPA2, and the second authentication type is WPA3.
11. A control method of a communication apparatus that performs wireless communication with an external apparatus, the control method comprising: storing a communication setting including an authentication type parameter for the wireless communication in a storage unit; replacing, in a case where the authentication type parameter included in the communication setting stored in the storage unit indicates that both a first authentication type and a second authentication type that is upward compatible with the first authentication type are supported, the authentication type parameter with an authentication type parameter indicating that the second authentication type is not supported and the first authentication type is supported; and outputting the communication setting including the authentication type parameter replaced by the replacement process.
12. A storage medium that stores a program for causing a computer to function as the units of the communication apparatus according to claim 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
DESCRIPTION OF THE EMBODIMENTS
[0022] Hereinafter, an exemplary embodiment of the present invention will be described with reference to the accompanying drawings. The technical scope of the present invention is defined by the scope of claims and is not limited by the following individual exemplary embodiment.
System Configuration Example
[0023] A first exemplary embodiment will be described.
[0024] The present exemplary embodiment assumes that the digital cameras 101 and 102 each have a wireless communication function. The following description will be given assuming that the wireless communication function is a wireless local area network (LAN) function compliant with IEEE802.11 series. However, the wireless communication function is not limited thereto and may be a different wireless communication function such as Bluetooth®, Multi-band OFDM Alliance (MBOA), ultra wide band (UWB), ZigBee, or Near Field Communication (NFC). In addition, instead of wireless communication, wired communication based on a wired LAN, universal serial bus (USB) connection, or the like may be performed. Examples of UWB include a wireless USB, wireless 1394, and WINET.
[0025] The digital camera 101 has a function of generating the communication setting file 103, as one of its means for allowing the digital camera 102 to use a communication setting of the digital camera 101. The communication setting file 103 generated by this function is stored in a memory card attached to the digital camera 101. When the memory card is attached to the digital camera 102, the digital camera 102 reads the stored communication setting file 103. In this way, the communication setting file 103 is transferred between the digital camera 101 and the digital camera 102. Alternatively, the above-described wireless communication or wired communication may be used as means for outputting the communication setting to the outside via a network.
[0026] In the present system configuration, while the digital camera 102 will be described as an apparatus that reads the communication setting outputted by the digital camera 101 to the outside, more than one external apparatus may read the communication setting. That is, a plurality of digital cameras may import the communication setting by using the same communication setting file 103. In addition, a network may be established among apparatuses including the digital camera 102 by using the communication function described above, and the digital camera 101 may transmit the communication setting thereof to the plurality of other apparatuses via the network.
[0027] In the present exemplary embodiment, Wi-Fi Protected Access (WPA), WPA2, and WPA3 will be described as wireless security standards. The following description assumes an example in which the digital camera 101 supports not only the WPA and WPA2 standards, which correspond to a first encryption method, but also the WPA3 standard, which corresponds to a second encryption method, and the digital camera 102 only supports the WPA and WPA2 standards, not the WPA3 standard.
Configuration of Digital Camera
[0028]
[0029] A control unit 203 comprehensively controls the digital camera 101 by executing a control program stored in a read-only memory (ROM) 204. The ROM 204 stores the control program executed by the control unit 203. The control unit 203 performs various operations, which will be described below, by executing the control program stored in the ROM 204. A communication setting to be stored in a digital camera is stored in the ROM 204.
[0030] A random access memory (RAM) 205 is used as a work memory when the control unit 203 executes the control program and uses temporarily store data. A storage unit 206 stores various kinds of information such as parameters for communication and compressed and encoded image data in a recording medium (not illustrated). An operation unit 207 is for operating the digital camera 101.
[0031] A display unit 208 displays various kinds of information and has a function of outputting visually recognizable information as in a liquid crystal display (LCD) or a light-emitting diode (LED) or a function of outputting sound as in a speaker. The operation unit 207 and the display unit 208 may be integrated as a single unit like a touch panel. The digital camera 101 also includes a microphone 209.
[0032] A packet transmission/reception unit 210 transmits and receives packets related to various kinds of communication. An image capturing unit 211 captures an optical image of an object. An image processing unit 212 converts a captured image outputted from the image capturing unit 211 into image data in a predetermined format and performs various kinds of processing such as correction of the brightness and color of the image data.
[0033] An encoding/decoding unit 213 performs predetermined high-efficiency encoding (for example, variable-length encoding after discrete cosine transform and quantization) on the image data outputted from the image processing unit 212. A reproduction unit 214 reproduces compressed and encoded image data. A power supply unit 215 supplies power to the digital camera 101.
[0034]
[0035] A display control unit 253 controls the display unit 208 to perform various kinds of display processing. A transmission unit 254 transmits a request and data to the outside using the packet transmission/reception unit 210 and the wireless LAN control unit 201. A reception unit 255 receives a response and data from the outside using the packet transmission/reception unit 210 and the wireless LAN control unit 201. A setting output unit 256 outputs a communication setting stored in the ROM 204 to the outside.
[0036] All the functional blocks illustrated in
Communication Setting
[0037] Next, a communication setting stored in the ROM 204 will be described. A communication setting 301 illustrated in
[0038] These parameters include interface information used by a wired LAN and a wireless LAN, a connection destination IP address, and a network authentication type parameter relating to a wireless security standard. The present parameters also include information for performing communication with an external apparatus, and examples of the information include a password character string length parameter and a password character string.
[0039]
[0040] In the present exemplary embodiment, three types of wireless security standards, which are WPA, WPA2, and WPA3 standards, can be set in the network authentication type parameter, and the parameter values indicate usable or unusable standards in combination. The network authentication type parameters also specify an operation mode of a wireless security standard used when the digital camera 101 or 102 performs wireless LAN communication.
[0041] Specifically, the network authentication type parameters specify whether to use a personal mode or an enterprise mode of a WPA standard. The network authentication type parameters illustrated in a table 401 are parameter types indicating combinations of the WPA and WPA2 standards, which are compatible with a specific importing apparatus. In other words, the table 401 indicates that, while both the WPA and WPA2 standards are supported, the WPA3 standard is not supported.
[0042] The network authentication type parameters illustrated in a table 402 are parameter type that correspond to the WPA3 standard, which is incompatible with the specific importing apparatus but compatible with other specific importing apparatus. In other words, the table 402 indicates that, while the WPA3 standard is supported, the WPA and WPA2 standard are not supported.
[0043] The network authentication type parameters illustrated in a table 403 represent parameter types indicating combinations of the WPA3 standard, which is incompatible with the specific importing apparatus but compatible with the other specific importing apparatus, and the WPA and WPA2 standards, which are compatible with the specific importing apparatus. In other words, the table 403 indicates that all the WPA, WPA2, and WPA3 standards are supported.
[0044]
[0045] The password character string length parameters illustrated in a table 501 indicate password types that are usable in the WPA/WPA2 standard. A password character string length parameter illustrated in a table 502 indicates a password type usable in the WPA3 standard. One of the parameters illustrated in the tables 401 to 403 is selected as the network authentication type parameter and one of the parameters illustrated in the tables 501 and 502 as the password character string length parameter. The selected parameters constitute the communication setting 301.
Flow of Processing
[0046] Hereinafter, processing performed by the digital camera 101 according to the present exemplary embodiment will be described with reference to
[0047] First, in step S601, the control unit 203 determines whether the network authentication type parameter included in the communication setting subjected to the export processing is included in the table 403. As a result of the determination, if the parameter is included in the table 401 or the table 402 (NO in step S601), since the parameter is usable by the importing apparatus or unusable by the importing apparatus, the processing proceeds to step S602. In step S602, the control unit 203 performs the export processing of the communication setting directly (that is, without performing replacement processing, which will be described below).
[0048] The exported communication setting can be read by the digital camera 102. Specifically, if the export processing has been performed with a parameter included in the above table 401, which does not indicate the WPA3 as a usable standard, the digital camera 102 can read the communication setting. However, if the export processing has been performed with a parameter included in the table 402, which indicates the WPA3 as a usable standard, the digital camera 102 cannot read the communication setting.
[0049] In step S601, if the parameter is included in the table 403 (YES in step S601), the importing apparatus not supporting the WPA3 standard desires to use the exported parameter as a parameter for the WPA2 standard, so that the processing proceeds to step S603. In step S603, password character string length parameter determination processing is performed.
[0050] In step S603, the control unit 203 determines whether the password character string length parameter of the communication setting is included in the table 502. If the parameter is included in the table 501 (NO in step S603), since the password character string length parameter is compatible with the WPA2 standard, the importing apparatus can establish a connection based on the WPA2 standard. Thus, in step S604, the control unit 203 performs replacement processing on the currently set network authentication type parameter. Thereafter, the control unit 203 performs the export processing in step S602.
[0051]
[0052] The replaced network authentication type parameter value is applied only to the export processing, and the replacement processing is not performed on the parameter included in the communication setting stored in the ROM 204. In step S603, if the password character string length parameter is not included in the table 501 but included in the table 502 (YES in step S603), the processing proceeds to step S605. In step S605, the control unit 203 checks the password character string.
[0053] If the password character string length parameter is a parameter indicating “1 to 255 ASCII characters” as illustrated in the table 502 and if the actual password character string is 8 to 63 ASCII characters or 64 hexadecimal digit characters usable based on the WPA2 standard, a connection can be stablished based on the WPA2 standard. Thus, in step S605, the control unit 203 determines whether the password length is 8 to 63 ASCII characters or 64 hexadecimal digit characters.
[0054] If the password length is 8 to 63 ASCII characters or 64 hexadecimal digit characters (YES in step S605), the processing proceeds to step S604. In step S604, the replacement processing is performed on the currently set network authentication type parameter. Then in step S602, the export processing is performed. In step S605, if the password length is not 8 to 63 ASCII characters or 64 hexadecimal digit characters (NO in step S605), the processing proceeds to step S602. In step S602, the export processing of the communication setting is performed.
[0055] The present invention has thus been described in detail based on the above exemplary embodiment. However, the present invention is not limited to this specific exemplary embodiment, and various modifications obtained without departing from the scope of the present invention are also included in the present invention.
[0056] For example, in the above exemplary embodiment, the processing in
[0057]
[0058] The user interface 801 is displayed after the user selects the export processing of the communication setting, and the user is asked to select an apparatus as the export destination apparatus.
[0059] It is assumed here that an apparatus A is an apparatus of the same type as the digital camera 101 and does not need the parameter replacement processing and apparatuses B and C are apparatuses of a different type from the digital camera 101 and can be compatible with the communication setting of the digital camera 101 by performing the parameter replacement processing. When the user selects any of the displayed export destination apparatuses, then in step S901, the control unit 203 determines whether the parameter replacement determination processing is to be performed on the selected apparatus.
[0060] In step S901, if the apparatus A, which is the same type of the digital camera 101 and does not need the parameter replacement processing, is selected (NO in step S901), the processing proceeds to step S902, and then the processing in step S602 and subsequent steps is performed. On the other hand, in step S901, if the apparatus B or the apparatus C, which is a different type of apparatus and needs the parameter replacement processing, is selected (YES in step S901), the processing proceeds to step S903, and then the processing in step S601 and subsequent steps is performed. In this way, the parameter replacement determination processing can be omitted for an apparatus that does not need the determination processing. This modification is included in the scope of claims of the present invention.
[0061] In addition, in the above exemplary embodiment, in a case where the replacement of the parameter has been performed before the export processing, a configuration may be provided in which the user is notified that the replacement processing has been performed via the user interface or the like after the export processing in step S602. This modification is included in the scope of claims of the present invention.
[0062] Moreover, in the above exemplary embodiment, combinations of the WPA standard, the WPA2 standard and the WPA3 standard are described as examples of the network authentication type parameters used for the determination in step S601. However, the combinations in the present exemplary embodiment are not limited to these examples. For example, a standard that may be released in the future that is upward compatible with the existing WPA3 standard, or a wireless security standard that is not compatible with WPA3 standard or earlier versions of a security standard (i.e., WPA/WPA2 standard) can be considered to be included in the parameter combinations.
[0063] In such a case, for example, as illustrated in
[0064] In addition, if the password length is not 8 to 63 ASCII characters or 64 hexadecimal digit characters in step S605, the processing in step S602 is performed without performing the parameter replacement.
[0065] In this case, in a case where the communication setting is in an infrastructure mode, there is no need to change the password. This is because the password depends on an opposing apparatus such as an access point, and if the setting is changed, the exporting apparatus cannot connect to the opposing apparatus. In contrast, in a case where the communication setting is in an access point mode, the password is the password that the digital camera 101 has. Therefore, usability is improved by converting or resetting the password into a password supported by the WPA2.
[0066] As illustrated in
[0067] As described above, in a case where the communication setting is in the access point mode, the communication setting compatible with the importing apparatus can be exported by changing the password. In step S1103, the password may be automatically changed, and the user may be notified of the change of the password via the user interface. Further, a configuration may be provided in which the user is asked to directly enter a new password, and this modification is included in the scope of claims of the present invention.
[0068] 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.
[0069] 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 equivalent structures and functions.
[0070] This application claims the benefit of Japanese Patent Application No. 2021-088228, filed May 26, 2021, which is hereby incorporated by reference herein in its entirety.