1. Technical Field
The present invention relates to a printing apparatus, a method of controlling the printing apparatus, a control program and a control apparatus for the printing apparatus.
2. Related Art
A user performs initialization (setup of a printer) for making a printer ready (print ready), for example, after purchasing the printer. In this case, the user installs predetermined software (a printer driver or the like) in a personal computer (PC). Then, according to a guide screen for setup that is caused to appear on a display of the PC, the user establishes a connection between the PC and the printer using a universal serial bus (USB) cable or the like, and performs operations such as pressing down a power button of the printer. Also, under conditions where the PC and the printer are connected with each other and both the PC and the printer are supplied with power, the connection in such a manner triggers automatic starting of predetermined communication processing required for performing setup between the PC and the printer, that is, so-called plug and play is realized.
Here, as a technique regarding plug and play, there is known an information processing apparatus in which, before a device driver running on an operating system (OS) is deleted, software related to a device corresponding to the device driver is removed from a device manager of the OS (see JP-A-2008-15912). This enables the device to be not detected by a plug-and-play function of the OS even if a user leaves the device connected to the computer after the device driver is deleted.
When the setup mentioned above is performed, no problem arises if a user follows the proper procedure. However, the user may not necessarily perform the setup in accordance with the proper procedure. For example, it could be that the user connects a printer in the powered state to a PC before installing the above-mentioned software. In this case, a plug-and-play function could occur at the time point of the connection. This sometimes makes it impossible to accomplish setup in accordance with the proper procedure (the setup does not come to a proper end). That is, in spite of efforts directed toward accomplishment of setup in such a manner as to be easy and reliable for any user, the plug-and-play function of a PC or a printer contrarily has sometimes prevented accomplishment of such setup.
An advantage of some aspects of the invention is that it provides a printing apparatus, a method of controlling the printing apparatus, a control program and a control apparatus for the printing apparatus that can properly perform predetermined setting for the printing apparatus, regardless of whether the procedure performed by a user is proper or not, to enable the load on the user to be reduced.
An aspect of the invention provides a printing apparatus, with a plug-and-play execution unit, that includes a plug-and-play control unit and a permission receiving unit. The plug-and-play execution unit can perform predetermined communication processing with an external control apparatus, and the predetermined communication processing is triggered by a connection with the control apparatus when the connection is established via a predetermined communication path. The plug-and-play control unit is configured to prohibit the plug-and-play execution unit from operating in a case where an instruction for activating the printing apparatus according to a specific operation mode is received from an outside source, so that the plug-and-play execution unit is prevented from performing the communication processing even with the control apparatus and the printing apparatus connected. The permission receiving unit is configured to receive permission for execution of plug and play via the communication path from the control apparatus. In a case where the permission for execution is received, the plug-and-play control unit cancels the prohibition of operation of the plug-and-play execution unit to cause the plug-and-play execution unit to perform the communication processing.
According to the aspect of the invention, in the case where the printing apparatus receives the instruction for activating the printing apparatus according to a specific operation mode from an outside source, initially, plug and play is prohibited. Then, when the permission for execution of plug and play is received from the control apparatus, the prohibition of plug and play is cancelled, so that processing corresponding to the plug and play (the predetermined communication processing mentioned above) is started between the control apparatus and the printing apparatus. Accordingly, the predetermined communication processing is started at an optimum timing regardless of whether the procedure performed by a user is proper or improper. As a result, predetermined setting for the printing apparatus is properly performed. It is to be noted that the above-mentioned communication processing may be communication required for the control apparatus to set the printing apparatus to a print ready state.
The printing apparatus may include a permission generating unit configured to generate permission for execution of plug and play. Further, the plug-and-play control unit may be configured to cancel the prohibition of operating of the plug-and-play execution unit in a case where the permission generating unit generates permission for execution. That is, it may be possible for the printing apparatus not only to cancel the prohibition of plug and play in response to execution permission transmitted from the control apparatus but also to itself issue execution permission to cancel the prohibition of plug and play.
One aspect of the invention is implemented not only as the printing apparatus but also as an apparatus (control apparatus) that is connected with the printing apparatus via a communication path and is configured to control the printing apparatus. In this case, the control apparatus may be configured as follows. The control apparatus with a plug-and-play execution unit includes a plug-and-play control unit and a permission generating unit. The plug-and-play execution unit can perform predetermined communication processing with an external printing apparatus, and the predetermined communication processing is triggered by a connection with the printing apparatus when the connection is established via a predetermined communication path. The plug-and-play control unit is configured to prohibit the plug-and-play execution unit from operating, when performing predetermined setting for the printing apparatus, so that, in a case where signal transmission as part of the communication processing is performed via the communication path from the printing apparatus, a response to the signal transmission is put on hold to prevent the communication processing from progressing. The permission generating unit is configured to generate permission for execution of plug and play at a predetermined timing. In a case where the permission generating unit generates permission for execution, the plug-and-play control unit cancels the prohibition of operation of the plug-and-play execution unit to cause the plug-and-play execution unit to advance the progress of the communication processing.
With this configuration, when performing predetermined setting for the printing apparatus, the control apparatus initially prohibits plug and play. Then, in the case where signal transmission is performed to the control apparatus from the printing apparatus connected via the communication path by a plug-and-play function of the printing apparatus, a response to the signal transmission on the control apparatus side is put on hold to prevent communication processing involved in plug and play from progressing. The control apparatus itself generates permission for execution of plug and play to cancel the prohibition of plug and play. Accordingly, the predetermined communication processing is started at an optimum timing regardless of whether the procedure performed by a user is proper or improper. As a result, predetermined setting for the printing apparatus is performed properly.
Also, in this case, the communication processing may be communication required for the control apparatus to set the printing apparatus to a print ready state. In addition, the permission generating unit may generate the permission for execution at a timing when the printing apparatus for which the predetermined setting is to be performed is specified via the communication path.
The technical idea of one aspect of the invention may be implemented as forms other than the printing apparatus and the control apparatus. For example, one aspect of the invention may provide a method (a control method for the printing apparatus) including processing processes performed by components of the foregoing printing apparatus, and a storage medium including stored thereon a program (a control program for the printing apparatus) that causes predetermined hardware (e.g., a computer incorporated in the printing apparatus) to execute functions of the components of the foregoing printing apparatus. Likewise, one aspect of the invention may also provide even a method including processing steps performed by components of the foregoing control apparatus, and a storage medium including stored thereon a program that causes a computer to execute functions of components of the foregoing control apparatus. Furthermore, a system including a control apparatus and a printing apparatus may be regarded as an embodiment of the invention.
The invention will be described with reference to the accompanying drawings, wherein like numbers reference like elements.
Embodiments of the invention are described below with reference to the accompanying drawings.
The printer 20 is a printing apparatus controlled by the PC 10. The PC 10 performs setup for causing the printer 20 to be in a print ready state. In the printer 20, an I/F 21, an operation panel 22, a printer control IC 26 and the like are connected via a bus 20a. The printer control IC 26 includes a CPU 23, a ROM 24, a RAM 25 and the like. The I/F 21 is a USB interface and can be connected via a USB cable 30 to the PC 10. The operation panel 22 is made up of a liquid crystal display, a touch panel, a light emitting diode (LED), various buttons and the like, and receives an input from the user and presents information to the user.
In the printer control IC 26, the CPU 23 controls the entire printer 20 by performing processing according to predetermined firmware stored in the ROM 24 using the RAM 25 as a work area as appropriate. The printer 20 includes a print mechanism section 27 whose drive is controlled by the printer control IC 26 at the time of print processing. In cases where the printer 20 is an ink jet printer, the print mechanism section 27 includes a print head configured to discharge ink droplets, a carriage configured to cause the print head to perform a main scan, a paper feed mechanism configured to feed sheets of paper, and the like. In the printer 20, an application specific integrated circuit (ASIC) configured to perform predetermined processing (e.g., image processing of image data representing an image to be printed) may be mounted separately from the printer control IC 26. It is to be noted that the printer 20 may be a page printer or a line head printer.
The PnP execution module 42 and the PnP execution module 52 are each functions as follows. When a connection between the PC 10 and the printer 20 is established with the USB cable 30 to allow the USB communication, with this connection acting as a trigger, the PnP execution module 42 and the PnP execution module 52 can automatically start predetermined communication processing required for performing setup. That is, the PnP execution module 42 and the PnP execution module 52 are each functions for executing PnP. The setup program 41 and the PnP control module 51 in the embodiments are functions for controlling prohibition on PnP and cancellation of the prohibition. The setup program 41 also has functions for providing guide screens to be described later to users, and the like. Hereinbelow, each of the embodiments at the stage of performing setup of the printer 20 will be described.
In step S100 (
In step S110 (
A user viewing the guide screen for connection form selection is allowed to select any connection form among a plurality of connection forms (e.g., USB connection, wired LAN connection and wireless LAN connection) proposed in the guide screen and to connect the PC 10 and the printer 20 in the selected connection form. The guide screen for connection form selection contains, for example, a message “In the case of USB connection, the PC and the printer are directly connected with a USB cable”. In this embodiment, the description is continued under the assumption that a user selects USB connection. Accordingly, ideally, at the timing (step S200 of
In step S120 (
At the timing when installation of the various required programs has been completed, the PC 10 displays a guide screen (activation guide screen) for prompting the user to activate the printer 20 on the display 16 in step S130 (
Accordingly, ideally, at the timing (step S210 of
The printer 20 may be provided with a dedicated button for starting the initial connection mode, in addition to the power button. When the dedicated button is pressed down, the printer 20 may be turned on and automatically enter the initial connection mode. Both the power button and the dedicated button are part of buttons that make up the operation panel 22. Alternatively, when the power button is pressed down to activate the printer 20, the printer 20 may be designed such that a predetermined menu is displayed on a liquid crystal display of the operation panel 22 to allow a user to select the initial connection mode. By providing the dedicated button and allowing selection of the initial connection mode through the menu display in such a manner, a user can set the printer to the initial connection mode not only when connecting the printer to a PC for the first time after purchasing the printer, but also when connecting the printer to a PC that is different from the previously used PC and performing setup operations, and the like.
In any case, in the first embodiment, as the processing in accordance with the setup program 41, in step S130 mentioned above, the PC 10 displays the aforementioned activation guide screen that is intended to guide a user so that, as a result, the printer 20 is activated and enters the initial connection mode. The initial connection mode corresponds to a specific operation mode in the invention. In the printer 20 that has been turned on and has become the initial connection mode by any one of pressing down of the power button, pressing down of the dedicated button, and selection of the initial connection mode from the aforementioned menu after pressing down of the power button, by a user, the PnP control module 51 prohibits the PnP execution module 52 from operating (step S220). As described above, the PnP execution module 52 can execute PnP when the PC 10 and the printer 20 are connected to each other with the USB cable 30 to allow USB communication between the PC 10 and the printer 20. However, the PnP control module 51, in the initial connection mode, disables the function of the PnP execution module 52 until the PnP control module 51 recognizes the occurrence of an “enabling trigger” to be described later.
As a result, it becomes impossible for the PnP execution module 52 to perform predetermined communication processing (transmission processing from the PnP execution module 52 itself, and responding to transmission from the side of the PC 10) required for performing setup of the printer 20 via the communication module 53, the USB cable 30 and the communication module 43. However, in such a state that the PC 10 and the printer 20 are connected to each other with the USB cable 30 and both the PC 10 and the printer 20 are turned on, the communication module 53 and the communication module 43 themselves work, and therefore basic USB communication between the PC 10 and the printer 20 is available except for the predetermined communication based on PnP.
In step S140 (
In step S150 (
In step S240, the PnP control module 51 cancels the prohibition of operation of the PnP execution module 52 (enabling the PnP execution module 52 to function). As a result, the PnP execution module 52 performs predetermined communication required for the setup with the PnP execution module 42 on the side of the printer 20 via the communication module 53, the USB cable 30 and the communication module 43 (step S250 of
As such, according to the first embodiment, when the printer 20 is activated and is in the initial connection mode, first, the function of the PnP execution module 52 is disabled to prevent PnP from working under conditions where USB communication between the printer 20 and the PC 10 can be made, and the function of the PnP execution module 52 is enabled if an enabling trigger is received from the side of the PC 10. In the foregoing description, an ideal procedure has been described in which, in step S110, a user connects the PC 10 and the printer 20 with the USB cable 30 in accordance with an instruction of a guide screen displayed by the PC 10, and, in step S130, the user activates the printer 20 in accordance with an instruction of a guide screen displayed by the PC 10. However, in actuality, a user does not always perform operations in such an ideal procedure in accordance with the instructions of the setup program 41. For example, there is a possibility that before the PC 10 installs various programs (such as a printer driver PD) in step S120, the user connects the printer 20 to the PC 10 and turns the printer 20 on.
According to the first embodiment, even if the printer 20 is connected to the PC 10 at a timing different from such an ideal timing, in the printer 20 in the initial connection mode, PnP is prevented from working until the above-mentioned installation on the side of the PC 10 and searching for the printer 20 by the PC 10 are completed (i.e., until an enabling trigger is transmitted). That is, by controlling the timing of occurrence of PnP, predetermined communication processing for setup to be realized by PnP can be performed at an ideal timing. Accordingly, the setup of the printer 20 is appropriately performed, as a matter of course, in cases where the procedure performed by a user is proper, and even in cases where the procedure performed by a user is improper. Therefore, the load on a user required for performing the setup is reduced.
It is to be noted that the printer 20 itself may generate the above-mentioned enabling trigger. In this case, the printer 20 has a configuration in which a trigger generation button is included as part of buttons that make up the operation panel 22. A user can press down the trigger generation button at an arbitrary timing for the printer 20 in the initial connection mode. Upon detecting the pressing down of the trigger generation button, the CPU 23 causes an enabling trigger to be generated inside the printer 20. With respect to being able to generate an enabling trigger, it can be said that the printer 20 functions as a permission generating unit of the invention. If, at the time when the PnP control module 51 detects generation of such an internal enabling trigger, the function of the PnP execution module 52 is disabled, the PnP control module 51 enables the function of the PnP execution module without waiting for transmission of an enabling trigger from the PC 10. With such a configuration, a user can enable the PnP function in the printer 20 at an arbitrary timing.
In step S300 (
Step S310 (
Accordingly, like in the first embodiment, ideally, at the timing (step S410 of
Accordingly, even when the communication module 43 receives the predetermined signal through the I/F 14c, the PnP execution module 42 puts a response to that predetermined signal on hold (cannot respond). In other words, due to the PC 10 in the PnP hold mode, the aforementioned predetermined communication processing required for performing setup is prevented from progressing. However, in such a state that the PC 10 and the printer 20 are connected to each other with the USB cable 30 and both the PC 10 and the printer 20 are turned on, the communication module 53 and the communication module 43 themselves work, and therefore basic USB communication between the PC 10 and the printer 20 is available except the predetermined communication based on PnP.
Step S340 (
As a result, the PnP execution module 42 performs the aforementioned predetermined communication processing required for performing the setup whose progress has been stopped. This processing is performed between the PnP execution module 42 and the PnP execution module 52 on the side of printer 20 via the communication module 43, the USB cable 30 and the communication module 53 (step S370 of
As such, according to the second embodiment, the PC 10 enters the PnP hold mode in step with the start of the setup program 41, and the PC 10 disables the function of the PnP execution module 42. Thus, even when PnP occurs on the side of the printer 20 whose USB communication with the PC 10 has become possible, the PC 10 puts a response to the PnP on hold and generates an enabling trigger at a predetermined timing to enable the PnP execution module 42 to function. As described above, in actuality, a user does not always perform operations in an ideal procedure in accordance with instructions of the setup program 41. For example, there is a possibility that before the PC 10 installs various programs (such as a printer driver PD) in step S320, or right at the beginning before the start of the setup program 41, the user connects the printer 20 to the PC 10 and turns the printer 20 on.
According to the second embodiment, even if the printer 20 is connected to the PC 10 at a timing different from such an ideal timing, the PC 10 enters the PnP hold mode immediately upon the start of the setup program 41, and stops the progress of operation of PnP at a point where the first response to occurrence of PnP from the side of the printer 20 is not yet performed until the aforementioned installation and searching for the printer 20 are completed (until an enabling trigger is generated). That is, by controlling the timing of occurrence of PnP, predetermined communication processing for setup to be realized by PnP can be performed at an ideal timing. Accordingly, the setup of the printer 20 is appropriately performed, as a matter of course, in cases where the procedure performed by a user is proper, and even in cases where the procedure performed by the user is improper. Therefore, the load on a user required for performing the setup is reduced.
The invention is not limited to the embodiments described above and can be implemented in various forms without departing from the scope and the spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2010-054095 | Mar 2010 | JP | national |