1. Field of the Invention
The present invention relates to an improved data processing system and more particularly to sensing low-paper conditions in a printer. Still more specifically, the present invention relates generally to a computer implemented method, data processing system, and computer usable program code for sensing low-paper conditions using rollers in a printer.
2. Description of the Related Art
Printers are currently found in many forms; however, all printers share common characteristics, such as a print head, a platen, and a control mechanism. The control mechanism controls the motion of the print head relative to the paper, selects a character to be printed, and advances and retracts the paper as necessary.
It is undesirable for a printer to operate without paper. Ink-based printers that are operated without paper will transfer the ink into the platen which may in turn stain the back sides of subsequent sheets of paper and possibly damage print writes in the print head. Thermal printers operated without paper may overheat because paper is used to absorb the heat generated by the print head during printing operations or cause excessive wear to the print head because it is running on the platen rather than the paper. Also, any printer that operates without paper will cause frustration when documents must be reprinted.
In order to avoid a printer operating without paper, printers often provide low-paper warnings. Low-paper sensing has become an important requirement as retailers move towards system management and require system notification that a printer is about to run out of paper. Current printer systems offer low-paper sensors that have poor accuracy. The low-paper sensors consist of a lever that rubs on one side edge of the paper roll. As the diameter of the roll decreases to a smaller diameter, the lever either drops over the top of the roll or into the core of the roll. This action trips a switch which signals that paper is low. The accuracy of these systems is poor because the paper roll jumps around as paper is fed. Also, the lever protrudes into the paper bucket cavity which can complicate loading paper and removing the nearly empty or empty core. Additionally, the lever can interfere with the paper as it is fed after the low-paper signal, which may cause paper jams.
The different illustrative embodiments provide a computer implemented method, data processing system, and computer usable program code for detecting a printer condition. The illustrative embodiments receive a set of signals from a sensor in a printer. The illustrative embodiments detect within the set of signals a current state of a paper roll containing paper within the printer. The illustrative embodiments send a response signal to the user of the printer in response to the current state indicating that the paper roll moved from a desired position between a set of devices.
Alternatively, the illustrative embodiments count a number of paper line feed commands that are issued in response to the current state indicating that the paper roll moved from the desired position between the set of devices. The illustrative embodiments determine if the number of paper line feed commands that are issued exceeds a predetermined value. The illustrative embodiments send the response signal to the user of the printer in response to the number of paper line feed commands exceeding the predetermined value.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
The illustrative embodiments provide sensing a low-paper condition using rollers. With reference now to the figures and in particular with reference to
Computer 100 may be any suitable computer, such as an IBM® eServer™ computer or IntelliStation® computer, which are products of International Business Machines Corporation, located in Armonk, N.Y. Computer 100 may also be a Point of Sale system with additional input devices such as optical scanner, magnetic card reader, special terminals, and printers. Although the depicted representation shows a personal computer, other embodiments may be implemented in other types of data processing systems. For example, other embodiments may be implemented in a network computer. Computer 100 also preferably includes a graphical user interface (GUI) that may be implemented by means of systems software residing in computer readable media in operation within computer 100.
Next,
In the depicted example, data processing system 200 employs a hub architecture including a north bridge and memory controller hub (MCH) 202 and a south bridge and input/output (I/O) controller hub (ICH) 204. Processing unit 206, main memory 208, and graphics processor 210 are coupled to north bridge and memory controller hub 202. Processing unit 206 may contain one or more processors and even may be implemented using one or more heterogeneous processor systems. Graphics processor 210 may be coupled to the MCH through an accelerated graphics port (AGP), for example.
In the depicted example, local area network (LAN) adapter 212 is coupled to south bridge and I/O controller hub 204, audio adapter 216, keyboard and mouse adapter 220, modem 222, read only memory (ROM) 224, universal serial bus (USB) ports, and other communications ports 232. PCI/PCIe devices 234 are coupled to south bridge and I/O controller hub 204 through bus 238. Hard disk drive (HDD) 226 and CD-ROM drive 230 are coupled to south bridge and I/O controller hub 204 through bus 240.
PCI/PCIe devices may include, for example, Ethernet adapters, add-in cards, and PC cards for notebook computers. PCI uses a card bus controller, while PCIe does not. ROM 224 may be, for example, a flash binary input/output system (BIOS). Hard disk drive 226 and CD-ROM drive 230 may use, for example, an integrated drive electronics (IDE) or serial advanced technology attachment (SATA) interface. A super I/O (SIO) device 236 may be coupled to south bridge and I/O controller hub 204.
An operating system runs on processing unit 206. This operating system coordinates and controls various components within data processing system 200 in
Instructions for the operating system, the object-oriented programming system, and applications or programs are located on storage devices, such as hard disk drive 226. These instructions and may be loaded into main memory 208 for execution by processing unit 206. The processes of the illustrative embodiments may be performed by processing unit 206 using computer implemented instructions, which may be located in a memory. An example of a memory is main memory 208, read only memory 224, or in one or more peripheral devices.
The hardware shown in
The systems and components shown in
Other components shown in
The depicted examples in
The illustrative embodiments provide for detecting states in a printer, such as, for example, cover open, paper out, and paper jam conditions using a single optical sensor in a printer. Using the optical sensor to perform detection of different states, provides improved reliability over existing single function sensors in which a separate sensor is used to detect a different state in the printer. In the illustrative embodiments, an optical sensor provides a single interface that allows firmware to distinguish between cover open, paper out, and paper jam conditions. Additionally, a single optical sensor may cost much less than using numerous switches to perform detection of states, such as cover open, paper out, and paper jam detection. Therefore, implementing a common optical sensor provides considerable printer product cost reduction.
Rollers 409 and 410 are set at a predetermined distance apart, which may be referred to as roller gap 430, such that paper 406 and paper roll 408 will move from a desired position or drop between rollers 409 and 410 when the diameter of paper roll 408 and paper 406 becomes less than the predetermined value determined by roller gap 430. While the illustrative embodiments depict rollers 409 and 410 set at a predetermined distance apart to provide roller gap 430, one of ordinary skill in the art would realize that any set of devices may be used to provide roller gap 430, such as a set of rectangular or squarely shaped gliding devices, as set of non-rolling cylindrical shaped surfaces, or even a set of ball-bearing raceways. Optical beam 432 is positioned below roller gap 430, a distance of at least half of roller gap 430 to ensure that the beam is not broken before paper roll 408 and paper 406 move from the desired position or drop. Once paper roll 408 and paper 406 drop between rollers 409 and 410, optical beam 432 between optical sensors 434 is broken and printer's 400 processing unit, such as processing unit 206 of
When the parameters of paper roll 408 and paper 406 changes, or the retailer's low-paper rules change, the predetermined number of line feeds could be reconfigured by downloading new parameters. If printer 400 is shut down or cover 404 is opened and the diameter of paper roll 408 and paper 406 is larger than roller gap 430, printer 400 operates normally when printer 400 resets. If printer 400 is shut down or cover 404 is opened and the diameter of paper roll 408 and paper 406 is smaller than the predetermined distance apart, non-volatile memory, such as main memory 208 of
If at step 610 there is a stored paper line feed value, then the paper line feed count starts from the stored value (step 612). If at step 610 there is no stored paper line feed value, then the paper line feed count starts from zero (step 614). From steps 612 or 614, paper is fed, and the paper line feed count is updated as the printer responds to print commands (step 616). Next, a determination is made as to whether the paper line feed count exceeds a predetermined maximum paper line feed value (step 618) and, if the paper feed count exceeds the maximum paper line feed value, a low-paper signal in issued (step 620), with the operation terminating thereafter. If the paper feed count does not exceed the maximum paper line feed count, the process returns to step 616.
If at step 706, the optical sensor does not indicate the paper roll and paper have dropped, then the operation returns to step 706 to wait until the optical sensor detects that the paper roll and paper have dropped. If at step 706, the optical sensor indicates that the paper roll and paper has dropped, then the processing unit issues a response signal, such as a low-paper signal (step 708), with the operation termination thereafter.
Thus, the illustrative embodiments provide for detecting a printer condition. A set of signals is received from a sensor in a printer. A current state of a paper roll containing paper within the printer is detected within the set of signals. Responsive to the current state indicating that the paper roll moved from a desired position between a set of devices, a response signal is sent to the user of the printer.
The invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer readable medium can be any tangible apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk—read only memory (CD-ROM), compact disk—read/write (CD-R/W) and DVD.
A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.