Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberUS5031115 A
Publication typeGrant
Application numberUS 07/342,789
Publication dateJul 9, 1991
Filing dateApr 25, 1989
Priority dateApr 28, 1988
Fee statusLapsed
Publication number07342789, 342789, US 5031115 A, US 5031115A, US-A-5031115, US5031115 A, US5031115A
InventorsYasushi Hayashi
Original AssigneeKabushiki Kaisha Toshiba
Export CitationBiBTeX, EndNote, RefMan
External Links: USPTO, USPTO Assignment, Espacenet
Printer interface using printer response to determine printer type
US 5031115 A
Abstract
A Central Processing Unit (CPU) sends a parity command to each printer in a printing system including a plurality of printers and discriminates status data returned from the printers in response to the parity command to determine which printer is coupled to a printer interface and reads out a system program associated with the printer from a magnetic disk device. The CPU also causes a selector of the printer interface to select a dot clock signal for the printer presently coupled to the printer interface, reads out image data from a memory using this dot clock signal and sends the acquired data to the coupled printer.
Images(4)
Previous page
Next page
Claims(2)
What is claimed is:
1. An interface apparatus, comprising:
first and second printer means for printing image data and outputting mutually different status data in response to an input operation command;
connection means selectively coupled to one of said first and second printer means;
memory means for storing said image data;
readout means for reading out said image data stored in said memory means and supplying said image data to said one of said first and second printer means;
supply means for supplying an operation command to said one of said first and second printer means; and
selection means for selecting a read timing of said readout means in accordance with said status data output from said one of said first and second printer means in response to said operation command.
wherein said first printer means includes a first signal generator for generating a horizontal sync signal in synchronization with printing of said image data;
said second printer means includes a second signal generator for generating a first read signal for reading out said image data in synchronization with printing of said image data; and
said selection means includes a third signal generator for generating a second read signal in response to said horizontal sync signal from said first printer means, and a selection circuit for selecting said second read signal from said third signal generator when said first printer means is coupled to said connection means and for selecting said first read signal from said second signal generator when said second printer means is coupled to said connection means, in accordance with said status data from said one of said first and second printer means.
2. An interface apparatus, comprising:
first and second printer means for printing image data and outputting mutually different status data in response to an input operation command;
connection means selectively coupled to one of said first and second printer means;
first memory means for storing said image data;
first readout means for reading out said image data stored in said first memory means and supplying said image data to said one first and second printer means;
second memory means for storing first control data for controlling an operation of said first printer means and second control data for controlling an operation of said second printer means;
third memory means for storing one of said first and second control data stored in said second memory means;
supply means for supplying an operation command to said one of said first and second printer means;
selection means for selecting a read timing of said first readout means in accordance with said status data output from said one of said first and second printer means in response to said operation command; and
second readout means for reading out one of said first and second control data stored in said second memory means and for storage said read control data in said third memory means in accordance with said status data,
wherein said first printer means includes a first signal generator for generating a horizontal sync signal in synchronization with printing of said image data;
wherein said second printer means includes a second signal generator for generating a first read signal for reading out said image data in synchronization with printing of said image data; and
wherein said selection means includes a third signal generator for generating a second read signal in response to said horizontal sync signal from said first printer means, and a selection circuit for selecting said second read signal from said third signal generator when said first printer means is coupled to said connection means and selecting said first read signal from said second signal generator when said second printer means is coupled to said connection means, in accordance with said status data from said one of said first and second printer means.
Description
BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a printer interface which permits selective connection of printers of different specifications.

2. Description of the Related Art

An image processing apparatus which can print out image data scanned from an original document or read out from a memory is described in, for example, U.S. Pat. No. 4,661,988. Only one printer is coupled to the apparatus and different printers having different command data and status data cannot be coupled thereto.

There is a growing demand for an image processing apparatus of a type which allows printers having different command data and status data to be coupled thereto. In this case, the image processing apparatus should be provided with interface circuits and operating systems for the individual printers, and the interface circuits and operating systems should be properly and selectively switched in accordance with the types of printers coupled to the apparatus.

However, it is inconvenient and time consuming to manually switch the interface circuits and operating systems from one to another in accordance with the actual printer to be coupled to the image processing apparatus.

SUMMARY OF THE INVENTION

Accordingly, it is an object of this invention to provide an interface apparatus which can automatically and quickly set up a system in accordance with the operating characteristics of a printer to be coupled to an image processing apparatus.

To achieve this and other objects, there is provided an interface apparatus comprising a plurality of printer means for printing image data, and outputting mutually different status data in response to an input operation command; connection means selectively coupled to one of the plurality of printer means; first supply means for supplying print data through the connection means to the one printer means; second supply means for supplying an operation command to the one printer means; and selection means for selecting a timing at which the first supply means supplies the image data in accordance with the status data output from the one printer means.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating one embodiment of this invention;

FIG. 2 is a diagram illustrating a first section of FIG. 1;

FIGS. 3 and 4 are diagrams for explaining the structure of command data;

FIGS. 5 and 6 are diagrams for explaining the structure of status data; and

FIG. 7 is a flowchart for explaining the operation of the illustrated embodiment of this invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

A preferred embodiment of this invention will now be described referring to the accompanying drawings.

In FIG. 1, a control module CPM and a communication control module CCM are coupled to a system bus 11. A memory module MM and an image processing module IPM are coupled to the system bus 11 and an image bus 20. The control module CPM includes a CPU 12 and an interface 15 both coupled to the system bus 11. The CPU 12 controls the general control of the apparatus and can execute a multitask operation. CPU 12 is coupled to a keyboard 13 for entering various data including command data, and a mouse 14 serving as a pointing device. The mouse 14 moves a cursor on the screen of a CRT display 26 (which will be described below) and has first and second buttons (not shown) for specifying the position of the cursor on the screen.

The interface 15 is coupled to an optical disk device 17 and magnetic disk devices 18 and 19. The optical disk device 17 is loaded with an optical disk OD which stores image data. The magnetic disk device 18 comprises, for example, a floppy disk device and is loaded with a floppy disk FD. The magnetic disk device 19 comprises, for example, a hard disk device, and includes a hard disk HD. These magnetic disk devices 18 and 19 store retrieval data of the optical disk OD, display data (processing data) necessary for data retrieval, etc. The magnetic disk device 19 further stores a printer discrimination program and operating systems associated with a plurality of printers having different operating characteristics.

The memory module MM comprises a main memory 16 coupled to the system bus 11, a page memory 21, a buffer memory 21A, a display memory 22A, a working display memory 22B, and a display controller 25 coupled to the display memory 22A. The memories 21, 21A, 22A and 22B are coupled between the system bus 11 and the image bus 20.

The main memory 16 stores operation programs for CPU 12. The page memory 21 stores data scanned by a scanner 27 (which will be described below) and data enlarged or reduced by a zoom circuit 23. The buffer memory 21A, provided at part of the page memory 21, stores data read out from the optical disk device 17. The display memory 22A and working display memory 22B store display data. The display controller 25 is coupled to the CRT display 26 and displays the data stored in the display memory 22A on the CRT display 26.

The image processing module IPM comprises the zoom circuit 23, a vertical/horizontal converter 24, both coupled to the system bus 11 and image bus 20, a coder/decoder (CODEC) 31 coupled to the converter 24, a scanner interface 29, and a printer interface 30, both coupled to the CODEC 31. The scanner interface 29 is coupled to the scanner (two-dimensional scanner) 27, and the printer interface 30 is adapted to be selectively coupled to a printer 28A or a printer 28B. These printers 28A and 28B provide a hard copy of image data scanned by the scanner 27 or image data read out from the optical disk device 17 and have different operating characteristics including command data, status data and printing speeds, for example. The printer 28A has a horizontal sync signal generator (HSYNC GEN.) 28C for generating horizontal sync signals (HSYNC) synchronous with the printing operation of the printer 28A. Printer 28B has a dot clock signal generator (DOTC GEN.) 28D for generating dot clock signals synchronous with the printing operation of the printer 28B.

The zoom circuit 23 performs an enlarge/reduce process on image data supplied from the page memory 21. The vertical/horizontal converter 24 executes vertical/horizontal conversion of the image data from the page memory 21. The CODEC 31 converts, for example, the image data supplied through the scanner interface 29 from the scanner 27 into a predetermined code, converts a code from the page memory 21 into image data, and sends out the resultant, converted data to the printer 28A or 28B through the printer interface 30.

The scanner 27 scans an original image data bearing medium (for example, a document) with light to provide an electric signal corresponding to the image data of the original document. The scanner 27 is provided with an operation section 27A for setting various parameters, such as the size of an original document to be scanned, the density of the original document and the scanning density, a CPU 27B for controlling the scanner 27 and a memory 27C for storing the various parameters set by the operation section 27A.

The communication control module CCM comprises a UCP (universal communication processor) 32 coupled to the system bus 11, and a BCP (business communication processor) 33 coupled to the UCP 32. The UCP 32 is an interface for devices such as an RS-232C, a GPIB and a SCSI, while the BCP 33 is a LAN (local area network) interface.

FIG. 2 illustrates the printer interface 30, which has a common command protocol and different image protocols for the printers 28A and 28B.

A line buffer memory 30A is supplied with image data IMD read from, for example, the page memory 21, and stores four lines of image data, for example. The line buffer memory 30A is coupled to a parallel/serial (P/S) converter 30B. The parallel/serial converter 30B converts a 16-bit parallel signal from the line buffer memory 30A into a 1-bit serial signal and is coupled to a terminal 30D of a connector 30C.

The connector 30C is supplied at terminal 30E with a horizontal sync signal (HSYNC) from a printer. Terminal 30E is also coupled to a dot clock generator 30F. Dot clock generator 30F generates a first dot clock signal DOTCl in accordance with the horizontal sync signal (HSYNC) output from printer 28A, which is coupled to connector 30C. The dot clock generator 30F is coupled to selector 30G which is also coupled to a terminal 30H of the connector 30C. Printer 28B is coupled to the connector 30C, and terminal 30H is supplied with a second dot clock signal DOTC2 from the printer 28B.

In accordance with a switch command SW supplied from the CPU 12, the selector 30G selects either the first dot clock signal supplied from the dot clock generator 30F or the second dot clock signal supplied through the terminal 30H.

The selector 30G is coupled to a readout circuit 30I which is coupled to a read signal input terminal of the aforementioned line buffer memory 30A. This readout circuit 30I counts the dot clock signal from the selector 30G 16 times and generates a read signal for the line buffer memory 30A.

A command controller 30J is supplied with command data (CMD), a command write signal W and a status read signal R from the CPU 12 and is coupled to a terminal 30K of the connector 30C. The command controller 30J receives 1-byte command data CMD in synchronism with the command write signal W, sends the data CMD to the printer coupled to the connector 30C and sends status data STS, supplied from this printer in association with the command data CMD, to the CPU 12 in synchronism with the status read signal R.

FIGS. 3 and 4 illustrate the structures of command data used for two different types of printers 28A and 28B adapted to be coupled to the aforementioned printer interface 30, FIG. 3 corresponding to the printer 28A and FIG. 4 to the printer 28B.

FIGS. 5 and 6 illustrate the structures of status data associated with the command data; FIG. 5 corresponding to the printer 28A and FIG. 6 to the printer 28B. Both the command data and status data have a 1-byte structure.

The command data for the printer 28A as shown in FIG. 3 has bit 7 (MSB) serving as an odd parity bit and the remaining seven bits, 0 (LSB) to 6, representing the content of the command data. Table 1 below illustrates different command data for the printer 28A.

              TABLE 1______________________________________(MSB)      (LSB)   (HEX)______________________________________1 0 0 0 0 0 0 0    8 00 0 0 0 0 0 0 1    0 10 0 0 0 0 0 1 0    0 21 0 0 0 0 0 1 1    8 30 0 0 0 0 1 0 0    0 4.                  ..                  ..                  .0 1 1 1 1 1 1 1    E F______________________________________

The command data for the printer 28B as shown in FIG. 4 has the same structure as that shown in FIG. 3 except that bit 0 (LSB) instead of bit 7 serves as the odd parity bit. Table 2 below illustrates different command data for the printer 28B.

              TABLE 2______________________________________(MSB)      (LSB)   (HEX)______________________________________0 0 0 0 0 0 0 1    0 10 0 0 0 0 0 1 0    0 20 0 0 0 0 1 0 0    0 40 0 0 0 0 1 1 1    0 70 0 0 0 1 0 0 0    0 8.                  ..                  .1 1 1 1 1 1 1 0    F E______________________________________

The status data for the printer 28A as shown in FIG. 5 has bit 7 (MSB) serving as an odd parity bit. Bit 0 (LSB) is "0" in the normal status, and bits 1 to 6 represent the content of the normal status. For an error status, bit 0 becomes "1". Bit 1 is "1" in case of a parity error and is "0" in case of an improper command error. Bits 1 to 5 are unsettled. Table 3 illustrates the contents of an error status in the case a parity error has occurred.

              TABLE 3______________________________________(MSB)      (LSB)   (HEX)______________________________________1 0 0 0 0 0 1 1    8 30 0 0 0 0 1 1 1    0 71 0 0 0 1 1 1 1    8 F______________________________________

The status data for the printer 28B as shown in FIG. 6 has bit 0 (LSB) serving as an odd parity bit. Bit 7 (MSB) is "0" in the normal status, and bits 1 to 6 represent the content of the normal status. For an error status, bit 7 becomes "1" and is fixed to "80" in hexadecimal numbers. Table 4 below illustrates the content of an error status in the case a parity error has occurred.

              TABLE 4______________________________________(MSB)      (LSB)   (HEX)______________________________________1 0 0 0 0 0 0 0    8 0______________________________________

Comparing the status of the printer 28A with that of the printer 28B in the case where a parity error has occurred, it should be understood that the bits 0 and 1 are always "1" for the printer 28A whereas they are always "0" for the printer 28B.

According to this embodiment, the type of printer coupled to the printer interface 30 is discriminated using the difference in the status data associated with the command data, and connection of the printer interface circuit is switched to the proper destination printer and operating system in accordance with the discrimination result.

Referring to FIG. 7, the operation of the CPU 12 will be described below.

When power of the apparatus is turned ON, an IPL (initial program loader) stored in the magnetic disk device 19 is loaded in the main memory 16 by a bootstrap (not shown), and a printer discrimination program stored in the magnetic disk device 19 is loaded in the main memory 16 by this IPL (step ST1). Then, the printer discrimination program permits a parity command to be sent through the printer interface 30 to a printer (step ST2). The parity command may be "00" (Hex), "03" (Hex), etc.

Since the command controller 30J in the printer interface 30 has a common protocol for the printers 28A and 28B, it can send the parity command to either printer. The status data sent from the printer in response to the parity command has bits 0 and 1 set to "1" when the printer 28A is presently coupled and set to "80" (Hex) for the printer 28B.

Upon reception of the status data from the printer through the command controller 30J (step ST3), the CPU 12 discriminates, based on the received data, whether the printer 28A or 28B is presently coupled to the image processing apparatus (step ST4). If the printer 28A is coupled, the operating system for the printer 28A is loaded into the main memory 16 from the magnetic disk device 19, and a switch command SW is sent to the selector 30G of the printer interface 30. The selector 30G then selects the first dot clock signal DOTC1 from the dot clock generator 30F (step ST5). If the printer 28B is coupled in step ST4, the operating system for printer 28B is similarly loaded into the main memory from the magnetic disk device 19, and the switch command SW is sent to the selector 30G of the printer interface 30. Selector 30G then selects the second dot clock signal DOTC2 supplied from the printer 28B through the terminal 30H (step ST6).

According to this embodiment, since printers with different specifications have different status bit patterns with respect to a parity command, the type of printer presently coupled to the image processing apparatus is discriminated by checking the status bit pattern returned from the printer in response to the parity command. In accordance with the discrimination result, the operation system for the connected printer is loaded into the main memory 16 from the magnetic disk device 19, and the connection of the printer interface circuit is switched to the proper printer (selecting the proper dot clock signal for the printer). With the above design, system setting can be automatically performed when the apparatus is turned ON, thus making the set-up operation easier and significantly reducing the time required for the system set-up.

Although the above embodiment has been described with reference to two types of printers coupled to the image processing apparatus, more than two types of printers may be coupled to the image processing apparatus.

In addition, although the description of the above embodiment has been given with reference to printer devices, this invention is not limited to this case and can apply to other input/output devices as well.

Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
US4179732 *Jun 10, 1977Dec 18, 1979Dataproducts CorporationMicroprogrammable processor control printer system
US4394685 *Sep 4, 1980Jul 19, 1983Centronics Data Computer CorporationInterface for operating a dot matrix printer for printing a video image
US4486828 *Feb 18, 1982Dec 4, 1984Hitachi, Ltd.Data processing system providing data security through coded identification of accessing terminals
US4589063 *Aug 4, 1983May 13, 1986Fortune Systems CorporationData processing system having automatic configuration
US4661988 *Aug 20, 1984Apr 28, 1987Kabushiki Kaisha ToshibaImage information-filing apparatus
US4680732 *Jul 23, 1982Jul 14, 1987Ncr CorporationInterface circuit for connecting peripheral equipment to a computer terminal
US4713780 *Apr 15, 1985Dec 15, 1987Express Communications, Inc.Electronic mail
US4760406 *Mar 7, 1986Jul 26, 1988Ricoh Company, Ltd.Laser printer interface circuit
US4924320 *Feb 26, 1988May 8, 1990Ricoh Company, Ltd.Image system with connection to operational units
Referenced by
Citing PatentFiling datePublication dateApplicantTitle
US5101496 *Jan 19, 1989Mar 31, 1992Kabushiki Kaisha ToshibaPrinter interface system which selectively receives horizontal sync signal and dot clock signals from plural printing image data
US5182650 *Feb 7, 1991Jan 26, 1993Canon Kabushiki KaishaInformation processing apparatus capable of connecting printer
US5247623 *Aug 15, 1991Sep 21, 1993Primax Electronics Ltd.Automatic multiple personal computer/computer printer connecting system
US5274771 *Aug 20, 1992Dec 28, 1993Hewlett-Packard CompanySystem for configuring an input/output board in a computer
US5367640 *Jul 22, 1993Nov 22, 1994Hewlett-Packard CompanySystem for configuring an input/output board in a computer
US5461701 *Dec 18, 1992Oct 24, 1995Microsoft CorporationSystem and method for peripheral data transfer
US5524269 *Sep 7, 1994Jun 4, 1996Hewlett-Packard CompanySystem for activating and configuring an input/output board in a computer
US5528376 *Dec 27, 1994Jun 18, 1996Canon Kabushiki KaishaInformation processing apparatus capable of connecting one of a plurality of types of printers
US5537626 *Feb 13, 1995Jul 16, 1996Canon Kabushiki KaishaApparatus for coupling printer with LAN to control printer operation by transferring control parameters, printer status data and printer configuration data between printer and LAN
US5596169 *May 12, 1995Jan 21, 1997Iomega CorporationCombined SCSI/parallel port cable
US5619635 *Nov 7, 1995Apr 8, 1997F3 Software CorporationProgram controlled system for forms engineering
US5664222 *Nov 4, 1994Sep 2, 1997Seiko Epson CorporationSystem for automatically determining printer type using duration of timing signals of printer head traveling between first and second reference positions
US5832244 *Feb 20, 1996Nov 3, 1998Iomega CorporationMultiple interface input/output port for a peripheral device
US5862404 *Feb 12, 1997Jan 19, 1999Toshiba America Information Systems, Inc.Network device discovery and status information distribution using independent information distribution processes
US5864651 *Sep 19, 1996Jan 26, 1999Scitex Corporation Ltd.System and method for on-demand printing
US5864652 *Feb 28, 1995Jan 26, 1999Dataproducts CorporationImage storage and retrieval for a printer
US5867637 *Nov 2, 1994Feb 2, 1999Canon Kabushiki KaishaInformation processing apparatus
US5923897 *Apr 1, 1996Jul 13, 1999Microsoft CorporationSystem for adapter with status and command registers to provide status information to operating system and processor operative to write eject command to command register
US5940185 *May 5, 1997Aug 17, 1999Canon Kabushiki KaishaInformation processing apparatus for controlling ejection recovery of connected ink jet printer
US5953132 *Jul 17, 1996Sep 14, 1999Canon Kabushiki KaishaImage communication apparatus with enhanced utilization of CPU
US5978861 *Sep 30, 1997Nov 2, 1999Iomega CorporationDevice and method for continuously polling for communication bus type and termination
US5991846 *Nov 17, 1995Nov 23, 1999Canon Kabushiki KaishaInformation processing apparatus with output device selection based on device characteristics and priorities
US6205496May 18, 1999Mar 20, 2001Iomega CorporationDevice and method for continuously polling for communication bus type termination
US6246486 *Jan 13, 1997Jun 12, 2001Canon Kabushiki KaishaInformation processing apparatus, information processing method, and information processing system
US6249826Apr 14, 1997Jun 19, 2001Microsoft CorporationSystem and method for media status notification
US6608704Jan 26, 1999Aug 19, 2003Canon Kabushiki KaishaImage communication apparatus with enhanced utilization of CPU
US6667812Jun 15, 1993Dec 23, 2003Canon Kabushiki KaishaInformation processing apparatus with device control language based program selection
US6674535Jun 30, 1997Jan 6, 2004Samsung Electronics Co., Ltd.Technique for processing print data
US6750980Sep 4, 1997Jun 15, 2004Akihiro ShimuraInformation processing apparatus and output apparatus
US6816271Jun 22, 2000Nov 9, 2004Canon Kabushiki KaishaInformation processing apparatus, method, and system to facilitate control of multiple printers by displaying the printers' languages
US6866434 *Nov 9, 2001Mar 15, 2005Best GmbhMethod of monitoring at least one printing parameter of a printer, and printing system
US6912072May 2, 2003Jun 28, 2005Canon Kabushiki KaishaImage communication apparatus
US7057748Feb 14, 2000Jun 6, 2006Canon Kabushiki KaishaInformation processing apparatus and method that determines the presence or absence of a printer connected to a network, and storage medium storing program therefor
US7081970Sep 22, 2003Jul 25, 2006Canon Kabushiki KaishaInformation processing apparatus
US7444936Oct 30, 2007Nov 4, 2008Goss International Americas, Inc.Device and method for identifying modules in a graphics machine
US7533611 *Mar 9, 2004May 19, 2009Goss International America, Inc.Device and method for identifying modules in a graphics machine
US8191474Apr 30, 2009Jun 5, 2012Goss International Americas, Inc.Device and methods for identifying modules in a graphics machine
USRE40328 *Dec 15, 2000May 20, 2008Canon Kabushiki KaishaDocument processing with flexible resolution and output style
EP0575169A1 *Jun 17, 1993Dec 22, 1993Canon Kabushiki KaishaInformation processing apparatus and output apparatus
EP0575172A1Jun 17, 1993Dec 22, 1993Canon Kabushiki KaishaPrinter driver selection
EP0673156A2 *Mar 10, 1995Sep 20, 1995Canon Kabushiki KaishaColor image processing
Classifications
U.S. Classification358/1.1, 358/296
International ClassificationG06F3/12, G09G5/00, G06K15/00
Cooperative ClassificationG06F3/1204, G06K2215/0017, G06F3/1236, G06F3/1229, G06F3/1285, G06K15/00
European ClassificationG06F3/12T, G06K15/00, G06F3/12C1
Legal Events
DateCodeEventDescription
Sep 19, 1995FPExpired due to failure to pay maintenance fee
Effective date: 19950712
Jul 9, 1995LAPSLapse for failure to pay maintenance fees
Feb 14, 1995REMIMaintenance fee reminder mailed
May 4, 1993CCCertificate of correction
Jun 2, 1989ASAssignment
Owner name: KABUSHIKI KAISHA TOSHIBA, JAPAN
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST.;ASSIGNOR:HAYASHI, YASUSHI;REEL/FRAME:005094/0119
Effective date: 19890515