1. Field of the Invention
The present invention relates to an image forming apparatus, a wireless connection setting method, and a storage medium.
2. Description of the Related Art
In recent years, a wireless local-area-network (LAN) communication function has been provided on a large number of information apparatuses including printing apparatuses. There have been increasing printing apparatuses provided with a wireless LAN communication interface and wirelessly connectable to a host computer.
A user need to have some level of knowledge of wireless LAN in order to set the security of the wireless LAN communication. However, it has been very difficult for the uninitiated to set the security thereof. Thus, a protocol for automating a complicated security setting of the wireless LAN has been defined. A Wi-Fi Protected Setup (WPS) system, which is a representative protocol system, has been widely used.
In the WPS, there are two types of recognition systems for connecting a device to a wireless LAN access point such as a push button system and a personal identification number (PIN) code system. The PIN code system is the one that a four- or eight-digit number called a PIN code generated by the device is input to the access point of a connection destination so that a device authentication and a connection setting (security setting) with the access point can be performed.
Some printing apparatuses do not have displays such as a liquid crystal display (LCD) for displaying a character string in the main body to reduce cost. Such a printing apparatus without the display cannot display the generated PIN code in executing the WPS using the PIN code system, so that the printing apparatus employs a system discussed in Japanese Patent Application Laid-Open No. 2007-223222 in which information required for setting is printed on a sheet of paper to make the user recognize the information.
If the PIN code is not input to the access point within a predetermined time period after the execution of the WPS using the PIN code system, a time-out occurs to fail in setting. This is operational specifications to shorten the period during which security problems such as inadequate connection from the outside may occur. If the time-out occurs in executing the WPS using the PIN code system, the WPS using the PIN code system needs to be executed again in the printing apparatus to continue the connection setting of the wireless LAN. At this point, it is general that the previous PIN code is discarded to generate a new PIN code.
The present invention is directed to an image forming apparatus which improves usability in performing a wireless connection setting using connection information such as a PIN code.
According to an aspect of the present invention, an image forming apparatus includes a generation unit configured to generate connection information for setting wireless connection, a storing unit configured to store the connection information generated by the generation unit in a storage unit, a print control unit configured to control a printing unit to print the connection information generated by the generation unit on a recording medium, and a reuse unit configured to, if security information is not transmitted from a wireless access point within a predetermined period of time, reuse the connection information stored by the storing unit in authenticating the connection information in a next wireless connection setting and transmit the connection information to the wireless access point to authenticate the connection information.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the drawings.
Before the description of a first exemplary embodiment, the security information setting procedures for the wireless LAN with the WPS using the PIN code system are described below with reference to a sequence diagram in FIG. 1.
In M11 in
In M12, when the user executes the WPS using the PIN code system via the operation panel of a printer 200, then in M13, the access point 500, which supports the WPS, detects a new wireless LAN apparatus.
In M14, the access point 500 also causes the host computer 100 to recognize that the new wireless LAN apparatus is detected.
In M15, the printer 200 generates the PIN code and displays the PIN code on a display device of a panel such as an LCD.
In M16, the user inputs the PIN code via the set application in the host computer 100.
The access point 500 compares the PIN code input by the user (in M17) with the PIN code generated and transmitted by the printer 200 (in M19) to authenticate the PIN code (in M18). When the PIN code is authenticated (approval of apparatus), then in M110, security information (Service Set Identifier (SSID) and Wired Equivalent Privacy (WEP)/Wi-Fi Protected Access (WPA)) is transmitted from the access point 500 to the printer 200 and, in M111, the printer 200 sets the security information.
The wireless LAN security setting is automatically executed by the WPS using the PIN code system through the above procedures.
The internal configuration of a rotary-development laser beam printer to which the present exemplary embodiment is applied is described below with reference to
In
A development unit position sensor 742 detects the rotation position of the development unit 726. When a yellow toner image is formed, a yellow toner development processing is performed in the position illustrated in
In
A CPU 201 generally controls access with various devices connected to a system bus 204 based on control programs stored in a read only memory (ROM) 203. The CPU 201 outputs an image signal as output information to a printing mechanism unit 220 connected via a printing unit interface (I/F) 205. The ROM 203 stores the control programs of the CPU 201 illustrated in a flow chart of
A random access memory (RAM) 202 functions as the main memory and the work area of the CPU 201. The memory capacity of the printer 200 can be extended by an option RAM connected to an expansion port (not illustrated). The RAM 202 is used as a rendering memory for storing image data received from the host computer, a video signal ON/OFF information storage area, and other work areas. An operation panel 230 is provided with switches and a light emitting diode (LED) display for operating the printer. A memory controller (MC) 206 controls access with a hard disk 207 for storing print data received from the host computer. The RAM 202 is an example of a storage unit, for example.
The processing operation of the control unit in the printing apparatus with the above configuration according to the present exemplary embodiment is described below.
The software configuration illustrated in
As illustrated in
The printer 200 is functionally and roughly formed of the controller unit 210, an operation unit 230, and a printing mechanism unit 220.
The controller unit 210 includes the wireless LAN interface (I/F) 301 capable of transmitting and receiving control commands and print data from the host computer 100 via the access point 500. The print data received via the wireless LAN interface (I/F) 301 are sequentially stored in the reception buffer 302 as a storing unit and read and processed by the command analysis unit 306 or the image control unit 304 as required. If there are data to be replied to the host computer as a result of command analysis by the command analysis unit 306, replay data are stored in the transmission buffer 303 and transmitted to the host computer by the wireless LAN interface (I/F) 301.
The command analysis unit 306 performs control processing according to each print control command system and a print job control language. The command analysis unit 306 processes a rendering command by giving an instruction to the image control unit 304 and processes a command other than the rendering command such as paper feed selection or a reset command by giving an instruction to the printing control unit 307.
The image control unit 304 removes a command portion from the transferred image data command, performs expansion processing if the command is compressed image data, and stores the generated bit map data in the image buffer 305.
The output control unit 309 converts the bit map data stored in the image buffer 305 into a video signal based on the instruction of the printing control unit 307 and outputs the video signal to the printing mechanism unit 220. The printing mechanism unit 220 is a mechanism for forming the received video signal on a recording paper and is referred to as a printer engine.
The WPS control unit 308 is a processing unit for executing automatic setting of the wireless LAN security by the WPS using the PIN code system.
Processing procedures in executing the WPS using the wireless LAN PIN code system in the WPS control unit 308 are described below according to the flow chart in
In step S21, the WPS control unit 308 waits for the execution of the WPS using the PIN code system. The WPS control unit 308 determines whether the WPS using the PIN code system is executed based on a key operation on the operation panel of the printer. The determination is not limited to the above, but any method may be used.
If the WPS control unit 308 determines that the WPS using the PIN code system is executed (YES in step S21), the processing proceeds to step S22. In step S22, the WPS control unit 308 confirms the recorded result of the previous WPS execution using the PIN-code system. If the previous WPS using the PIN code system was successful (YES in step S22), the processing proceeds to step S23. In step S23, the WPS control unit 308 generates and uses a new PIN code.
In step S24, the WPS control unit 308 records the generated PIN code. The recorded PIN code is reused for the next WPS if the WPS using the PIN code system fails due to time-out.
In step S25, the WPS control unit 308 executes printing of the generated PIN code. In step S26, the WPS control unit 308 waits for the completion of printing.
An example of the printing result of the PIN code is illustrated in
On the other hand, if the previous WPS using the PIN code system failed (NO in step S22), the processing proceeds to step S27 and the WPS control unit 308 reuses the recorded, previously-used PIN code. When the value of the execution result of the previous WPS using the PIN code system is an initial value, i.e., when the WPS using the PIN code system is first executed, the previous WPS using the PIN code system is to be made successful.
In step S28, when the PIN code to be used is determined, the WPS control unit 308 starts the operation of the WPS using the PIN code system. More specifically, if the processing proceeds to step S28 through step S27, the WPS control unit 308 reuses the previous PIN code recorded (stored) in the RAM 202 to authenticate the PIN code and transmits the PIN code to the access point 500. When the WPS control unit 308 receives security information from the access point 500, the WPS control unit 308 sets the received security information.
In step S29, the WPS control unit 308 starts the measurement of time for time-out.
In step S210, the WPS control unit 308 waits for the transmission of the security parameter from the access point 500.
If the WPS control unit 308 receives the security parameter from the access point 500 in a predetermined period of time (YES in step S210), the processing proceeds to step S211. In step S211, the WPS control unit 308 sets the received security parameter to the printing apparatus. As a result, automatic setting with the WPS using the PIN code system become successful.
In step S212, the WPS control unit 308 records the result that the WPS using the PIN code system is successful. The security parameter of the wireless LAN refers to security setting parameters such as the SSID or the WEP/WPA key.
If the WPS control unit 308 does not receive the PIN code (NO in step S210), the processing proceeds to step S213. In step S213, the WPS control unit 308 determines whether time-out occurs. If the time-out is determined (YES in step S213), in step S214, the WPS control unit 308 records the result that the WPS using the PIN code system failed. Time for the time-out is not uniquely defined, but may be set by the user, for example.
According to the above description of the present exemplary embodiment, the WPS control unit 308 confirms the recorded result of the previous WPS execution using the PIN-code system when starting the execution of the WPS using the PIN code system. If the result of the previous execution indicates failure, the WPS control unit 308 reuses the recorded previously-used PIN code without generating a new PIN code and does not print the PIN code. Therefore, there is no need for re-printing a PIN code to execute the WPS again using the PIN code system, thereby achieving the effect of not consuming an additional sheet of paper.
Furthermore, since the PIN code is not changed only when the previous execution fails, the higher effect of improving the security can be obtained compared with an operation where the PIN code is set to a fixed value.
In the first exemplary embodiment, if the result of the previous execution of the WPS using the PIN code system indicates failure, the previously-used PIN code is reused. However, as long as failure continues, the same PIN code is repetitively used again and again. This is not appropriate in view of security. Even if the result thereof indicates failure one month ago, for example, the previous PIN code is reused. However, the paper on which the PIN code is printed is probably no longer kept. Thus, in a second exemplary embodiment, even if the result of the previous execution of the WPS using the PIN code system indicates failure, the previous PIN code is not reused, if a predetermined period of time elapses. In this case, a new PIN code is generated. The second exemplary embodiment is described below with reference to a flow chart illustrated in
In step S31, the WPS control unit 308 waits for the execution of the WPS using the PIN code system.
If the WPS using the PIN code system is executed (YES in step S31), then in step S32, the WPS control unit 308 confirms whether the previous WPS using the PIN code system failed and whether the time when the WPS using the PIN code system failed is recorded. If the previous WPS using the PIN code system was successful (NO in step S32), the processing proceeds to step S36, and then the WPS control unit 308 generates a new PIN code.
In step S37, the WPS control unit 308 records the generated PIN code.
In step S38, the WPS control unit 308 executes the printing of the generated PIN code.
In step S39, the WPS control unit 308 waits for the completion of printing.
On the other hand, if the previous WPS using the PIN code system failed (YES in step S32), the processing proceeds to step S33, and then the WPS control unit 308 calculates the difference between the recorded failure time and the current time.
In step S34, the WPS control unit 308 compares the calculated difference in time with a predetermined time.
If the difference in time exceeds the predetermined period of time (NO in step S34), the processing proceeds to step S36. The WPS control unit 308 generates a new PIN code without reusing the previous PIN code.
If the difference in time is within the predetermined period of time (YES in step S34), the processing proceeds to step S35. The WPS control unit 308 reuses the recorded previous PIN code.
When the WPS using the PIN code system is first executed, the failure time is regarded as being deleted.
When the PIN code to be used is determined, then in step S310, the WPS control unit 308 starts the operation of the WPS using the PIN code system.
In step S311, the WPS control unit 308 starts the measurement of time for time-out.
In step S312, the WPS control unit 308 waits for the transmission of the security parameter from the access point 500.
If the WPS control unit 308 receives the security parameter from the access point 500 in a predetermined period of time (YES in step S312), the processing proceeds to step S313. In step S313, the WPS control unit 308 sets the received security parameter to the printing apparatus. As a result, automatic setting with the WPS using the PIN code system become successful.
In step S314, the WPS control unit 308 deletes the recorded time when the WPS using the PIN code system failed (to be a state without the record).
On the other hand, if the PIN code is not input (NO in step S312), then in step S315, the WPS control unit 308 determines whether time-out occurs. If the time-out is determined (YES in step S315), then in step S316, the WPS control unit 308 determines that the WPS using the PIN code system failed and records the current time (failure time).
As described above, in the present exemplary embodiment, the recorded time when the previous WPS using the PIN code system failed is confirmed when starting the WPS execution using the PIN code system. If the failure time is recorded, the difference between the failure time and the current time is calculated. If the time difference is within a predetermined period of time, the previously-used PIN code is used, and the PIN code is not printed. For this reason, there is no need for re-printing the PIN code to execute the WPS again using the PIN code system, thereby achieving the effect of not consuming an additional sheet of paper.
If the difference exceeds the predetermined period of time, the PIN code is generated again even though the WPS using the previous PIN code system failed, thus achieving the effect of reducing an inappropriate connection in terms of security.
Embodiments of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions recorded on a storage medium (e.g., non-transitory computer-readable storage medium) to perform the functions of one or more of the above-described embodiment(s) of the present invention, 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). The computer may comprise one or more of a central processing unit (CPU), micro processing unit (MPU), or other circuitry, and may include a network of separate computers or separate computer processors. 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.
According to the above exemplary embodiments, usability in setting a wireless connection using connection information about the PIN code can be improved, while unnecessary use of paper can be prevented.
The exemplary embodiments of the present invention are described in detail above. However, the present invention is not limited to such specific exemplary embodiments, but various variations and modifications thereof may be performed within the scope of the gist of the present invention according to the claims.
According to exemplary embodiments of the present invention, usability in setting a wireless connection using connection information about a PIN code can be improved and unnecessary use of paper can be prevented.
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 modifications, equivalent structures, and functions.
This application claims priority from Japanese Patent Application No. 2012-148853 filed Jul. 2, 2012, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2012-148853 | Jul 2012 | JP | national |