KR20010039108A - Method for canceling of printing job - Google Patents

Method for canceling of printing job Download PDF

Info

Publication number
KR20010039108A
KR20010039108A KR1019990047349A KR19990047349A KR20010039108A KR 20010039108 A KR20010039108 A KR 20010039108A KR 1019990047349 A KR1019990047349 A KR 1019990047349A KR 19990047349 A KR19990047349 A KR 19990047349A KR 20010039108 A KR20010039108 A KR 20010039108A
Authority
KR
South Korea
Prior art keywords
data
printer
computer
transmitted
control signal
Prior art date
Application number
KR1019990047349A
Other languages
Korean (ko)
Other versions
KR100334111B1 (en
Inventor
박동채
Original Assignee
윤종용
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤종용, 삼성전자 주식회사 filed Critical 윤종용
Priority to KR1019990047349A priority Critical patent/KR100334111B1/en
Publication of KR20010039108A publication Critical patent/KR20010039108A/en
Application granted granted Critical
Publication of KR100334111B1 publication Critical patent/KR100334111B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1274Deleting of print job
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1293Printer information exchange with computer

Abstract

PURPOSE: A print task cancellation method is provided to make a host computer transmit a preset control signal to a printer via a printer driver and make the DMA type data receiving printer cancel the corresponding print task according to the control signal. CONSTITUTION: The method comprises steps of a printer CPU checks if data is transmitted via an interface(S301), a DMA controller storing the transmitted data at a memory(S302), the DMA controller detecting a data size in a header of the transmitted data(S303), the DAM controller checks if the data is transmitted as many as the detected data size(S304), the DMA controller drives a printer engine via an engine controller and prints the data stored in the memory in the case that the data is transmitted as many as the detected data size(S305), the DMA controller checks if a control signal of "Request Device ID" is transmitted in the case that the data is not transmitted as many as the detected data size(S306), the DMA controller determining if the current printer is in a DMA receiving mode in the case that the control signal of "Request Device ID" is transmitted(S307), the DMA controller stopping the data transmission in the case that the current printer is in the DMA receiving mode and deleting the print data stored in the memory(S308,S309), and the DMA controller transmitting a signal for forcefully discharging the paper in print(S310).

Description

인쇄작업 취소방법{METHOD FOR CANCELING OF PRINTING JOB}How to cancel a print job {METHOD FOR CANCELING OF PRINTING JOB}

본 발명은 인쇄작업 취소방법에 관한 것으로, 더욱 상세하게는 호스트 컴퓨터로부터 전송되는 데이터를 프린터에서 디엠에이(DMA: Direct Memory Access) 방식으로 수신하여 인쇄하는 경우, 데이터의 전송 도중에 사용자가 인쇄작업을 취소하면 호스트 컴퓨터에서 인쇄작업을 취소하는 기 설정된 제어신호를 송출함으로써 디엠에이 방식으로 데이터를 수신하는 프린터에서 신속하게 인쇄작업을 취소할 수 있는 인쇄작업 취소방법에 관한 것이다.The present invention relates to a method of canceling a print job, and more particularly, when a printer receives data transmitted from a host computer by a direct memory access (DMA) method in a printer and prints the data, the user may perform a print job during data transmission. When canceling, the present invention relates to a method of canceling a print job, which can quickly cancel a print job in a printer receiving data by a DM method by sending a preset control signal to cancel a print job from a host computer.

DMA는 Direct Memory Access의 약어로 직접 기억 장치 접근을 뜻하는 정보 전송 방법을 말한다. 일반적인 정보 전송 방법은 중앙처리장치에서 기억장치에 저장되어 있는 정보를 주변장치에 출력하여 전달하는 반면에 DMA 방식에서는 중앙처리장치의 개입없이 기억장치에 저장되어 있는 정보를 주변장치로 전달한다. DMA는 컨트롤러라고 불리는 장치가 직접 기억장치에서 정보를 읽어들여 주변장치에 전달하거나, 주변 장치로부터 정보를 읽어들여 기억장치에 저장하는 것이다.DMA stands for Direct Memory Access and refers to a method of information transfer that means direct memory access. In the general information transmission method, the central processing unit outputs information stored in the storage device to the peripheral device, while the DMA method transfers the information stored in the storage device to the peripheral device without the intervention of the central processing unit. In DMA, a device called a controller reads information directly from a memory device and transfers the information to a peripheral device, or stores information in a memory device.

이와 같은 DMA 방식은 중앙처리장치의 개입없이 데이터의 송수신을 수행하기 때문에 시스템의 처리속도를 향상시킬 수 있다.Such a DMA method can improve the processing speed of the system because data transmission and reception are performed without the intervention of the central processing unit.

여기서, 호스트 컴퓨터로부터 전송되는 데이터를 DMA 방식으로 수신하는 프린터의 동작을 간단히 살펴보기로 한다.Here, the operation of the printer for receiving data transmitted from the host computer in a DMA manner will be briefly described.

DMA 컨트롤러는 호스트 컴퓨터로부터 데이터가 수신되면, 수신되는 데이터를 기억장치에 저장하면서 데이터의 헤더(header)에서 전송되는 데이터의 크기를 검출한다. 데이터의 헤더에서 호스트 컴퓨터로부터 전송되는 데이터의 크기가 검출되면, DMA 컨트롤러는 데이터의 헤더에서 검출된 데이터의 크기에 대응하는 데이터의 수신이 완료될 때까지 대기한다. 즉, 검출된 데이터의 크기만큼 데이터를 수신해야만 하나의 프로세스(process) 과정을 종료하고 다음 프로세스 과정을 수행하는 것이다.When data is received from the host computer, the DMA controller detects the size of the data transmitted in the header of the data while storing the received data in the storage device. When the size of data transmitted from the host computer in the header of the data is detected, the DMA controller waits until reception of data corresponding to the size of the data detected in the header of the data is completed. That is, one process process is terminated and the next process process is performed only when data is received as much as the size of the detected data.

DMA 컨트롤러는 데이터의 헤더에서 정의된 크기만큼의 데이터가 수신 완료되면, 기억장치에 저장된 데이터를 인쇄장치로 전송하여 인쇄작업을 수행하는 다음 프로세스 과정을 수행한다.When the data of the size defined in the header of the data is received, the DMA controller transfers the data stored in the storage device to the printing device and performs the following process of performing a print job.

한편, DMA 방식으로 데이터를 수신하는 프린터와 인터페이스가 가능하고, 인쇄하고자 하는 데이터를 프린터로 전송하는 호스트 컴퓨터는, 사용자가 응용 프로그램에서 작성한 데이터를 프린터로 인쇄하기 위하여 인쇄명령을 선택하면, 데이터를 소정 크기로 분할하고, 데이터의 헤더에 분할된 데이터의 크기를 나타내어 프린터로 전송한다.On the other hand, it is possible to interface with a printer that receives data in a DMA manner, and the host computer that transmits data to be printed to the printer selects a print command in order to print data created by an application program to the printer. The data is divided into predetermined sizes, and the size of the divided data is indicated in the header of the data and transmitted to the printer.

여기서, 호스트 컴퓨터에서 프린터로 데이터를 전송하는 도중에 사용자가 호스트 컴퓨터의 프린터 드라이버를 통하여 인쇄명령을 취소하는 경우에는 호스트 컴퓨터는 임의 크기의 더미(dummy) 데이터를 추가하여 전송하도록 되어 있다.Here, when the user cancels a print command through the printer driver of the host computer while transferring data from the host computer to the printer, the host computer is configured to add and transmit dummy data of arbitrary size.

즉, DMA 방식으로 데이터를 수신하는 프린터는 호스트 컴퓨터로부터 데이터의 헤더에 정의된 크기만큼의 데이터가 수신될 때까지 하나의 프로세스를 종료하지 않기 때문에, 호스트 컴퓨터는 사용자에 의해 인쇄작업이 취소된 데이터에 더미 데이터를 추가로 전송하는 것이다.That is, since a printer receiving data in the DMA manner does not end one process until the data of the size defined in the header of the data is received from the host computer, the host computer does not terminate the print job by the user. Is to send additional dummy data.

이때, 호스트 컴퓨터는 데이터의 헤더에서 정의된 데이터의 크기에 대비하여 실제로 프린터로 전송된 데이터의 크기를 정확히 알 수 없기 때문에 최대의 블록크기 만큼 큰 값을 갖는 더미 데이터를 추가하게 된다. 따라서, 실제 프린터로 전송되는 데이터는 데이터의 헤더에서 정의한 크기보다 큰 경우가 발생하게 된다.In this case, the host computer adds dummy data having a value as large as the maximum block size because the host computer cannot exactly know the size of the data actually transmitted to the printer in comparison to the data size defined in the header of the data. Therefore, the data transmitted to the actual printer may be larger than the size defined in the header of the data.

DMA 컨트롤러는 호스트 컴퓨터로부터 전송되는 데이터의 크기가 데이터의 헤더에서 정의된 크기보다 클 경우에 호스트 컴퓨터로부터 전송되어 기억장치에 저장된 데이터를 유효하지 않은 데이터로 판정하여 삭제한다.When the size of data transmitted from the host computer is larger than the size defined in the header of the data, the DMA controller determines the data transmitted from the host computer and stored in the storage device as invalid data and deletes it.

이와 같이, 사용자가 호스트 컴퓨터에서 프린터로 전송중인 데이터의 인쇄작업을 취소하는 경우에, 호스트 컴퓨터에서 더미 데이터를 프린터로 전송하고, 프린터에서는 호스트 컴퓨터로부터 전송되는 데이터의 크기를 데이터 헤더에 정의된 크기와 비교하여 클 경우에 인쇄작업을 취소한다. 따라서, 사용자의 인쇄작업 취소명령에 따라 프린터에서 실제로 인쇄작업을 취소하는데는 상당한 시간이 소요되는 문제점이 발생한다.As such, when the user cancels a print job of data being transmitted from the host computer to the printer, the host computer transmits dummy data to the printer, and the printer sets the size of the data transmitted from the host computer to the size defined in the data header. Cancel the print job if it is larger than Therefore, a problem arises in that it takes a considerable time to actually cancel the print job in the printer according to the user's cancel job print command.

따라서, 본 발명은 이와 같은 문제점을 해결하기 위한 것으로서, 본 발명의 목적은 사용자의 인쇄작업 취소명령에 따라 DMA 방식으로 데이터를 수신하는 프린터에서 인쇄작업을 신속하게 취소할 수 있도록 호스트 컴퓨터의 프린터 드라이버를 통하여 사용자가 인쇄작업을 취소하는 경우에 호스트 컴퓨터에서 프린터로 기 설정된 제어신호를 송출하고, 기 설정된 제어신호에 따라 DMA 방식으로 데이터를 수신하는 프린터에서 인쇄작업을 취소하는데 있다.Accordingly, an object of the present invention is to solve such a problem, and an object of the present invention is to provide a printer driver of a host computer to quickly cancel a print job in a printer receiving data in a DMA manner according to a user's cancel job command. When a user cancels a print job through the host computer, a predetermined control signal is sent from the host computer to the printer, and the printer receives the data in a DMA manner according to the preset control signal.

도 1은 본 발명에 적용되는 컴퓨터와 프린터의 개략적인 블록도이고,1 is a schematic block diagram of a computer and a printer applied to the present invention,

도 2는 본 발명에 따라 인쇄작업을 취소하기 위한 컴퓨터의 동작흐름도이며,2 is an operation flowchart of a computer for canceling a print job according to the present invention,

도 3은 본 발명에 따라 인쇄작업을 취소하기 위한 프린터의 동작흐름도이다.3 is an operation flowchart of a printer for canceling a print job according to the present invention.

이와 같은 목적을 달성하기 위한 본 발명의 특징은, 컴퓨터로부터 전송되는 데이터를 디엠에이(Direct Memory Access) 방식으로 수신하여 인쇄하는 프린터의 인쇄작업 취소방법에 있어서: 컴퓨터의 응용 프로그램에서 작성된 데이터를 소정 크기로 분할하고, 분할된 데이터를 프린터로 전송하면서 인쇄작업을 취소하는 인쇄취소 명령이 선택되었는지 확인하는 단계와, 인쇄취소 명령이 선택되면 컴퓨터에서 분할된 데이터의 전송을 중지하고, 인쇄작업을 취소시키는 기 설정된 제어신호를 프린터로 전송하는 단계와, 프린터에서 컴퓨터로부터 전송되는 분할된 데이터를 디엠에이 방식으로 수신하여 인쇄하면서 컴퓨터로부터 기 설정된 제어신호가 수신되는지 확인하는 단계와, 컴퓨터로부터 기 설정된 제어신호가 수신되면 프린터에서 컴퓨터로부터 전송되는 분할된 데이터의 인쇄작업을 중지하는 단계를 포함한다.A feature of the present invention for achieving the above object is a method for canceling a print job of a printer that receives and prints data transmitted from a computer in a direct memory access method, wherein: Confirming that the cancel print command is selected for dividing by size, sending the divided data to the printer, and canceling the print job.If the cancel print command is selected, the computer stops sending the divided data and cancels the print job. Transmitting a predetermined control signal to a printer; checking whether a predetermined control signal is received from the computer while receiving and printing the divided data transmitted from the computer by the printer in a DM method; and preset control from the computer. When a signal is received, the printer sends it from the computer. Includes stopping the print job of the divided data.

바람직하게, 인쇄작업 중지단계는 컴퓨터로부터 기 설정된 제어신호가 수신되면 컴퓨터로부터 전송되는 분할된 데이터의 수신을 중지하는 단계와, 컴퓨터로부터 전송되는 분할된 데이터 중에서 프린터의 메모리에 저장된 데이터를 삭제하는 단계와, 컴퓨터로부터 수신된 데이터를 기록하는 인쇄용지를 강제 배출하는 단계를 포함한다.Preferably, the step of stopping a print job includes stopping receiving the divided data transmitted from the computer when a preset control signal is received from the computer, and deleting data stored in the memory of the printer among the divided data transmitted from the computer. And forcibly ejecting the print paper for recording the data received from the computer.

여기서, 기 설정된 제어신호는 국제 전기 전자 기술자 협회(IEEE: Institute of Electrical and Electronic Engineers)에서 규정한 IEEE 1284에 의거한 "Request Device ID"인 것이 바람직하다.Here, the preset control signal is preferably a "Request Device ID" based on IEEE 1284 defined by the Institute of Electrical and Electronic Engineers (IEEE).

이하, 본 발명의 바람직한 실시예에 대하여 첨부도면을 참조하여 상세히 설명한다. 우선 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 한해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호로 표기되었음에 유의하여야 한다. 또한, 하기의 설명에서는 구체적인 회로의 구성소자 등과 같은 많은 특정사항들이 도시되어 있는데, 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐 이러한 특정 사항들 없이도 본 발명이 실시될 수 있음은 이 기술분야에서 통상의 지식을 가진 자에게는 자명하다 할 것이다. 그리고, 본 발명을 설명함에 있어서, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. First, in adding reference numerals to the elements of each drawing, it should be noted that the same elements are denoted by the same reference numerals as much as possible even if they are displayed on different drawings. In addition, in the following description there are shown a number of specific details, such as components of the specific circuit, which are provided only to help a more general understanding of the present invention that the present invention may be practiced without these specific details. It is self-evident to those of ordinary knowledge in Esau. In describing the present invention, when it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.

도 1에는 본 발명에 적용되는 컴퓨터와 프린터의 개략적인 블록도가 도시되어 있고, 도 2에는 본 발명에 따라 인쇄작업을 취소하기 위한 컴퓨터의 동작흐름도가 도시되어 있으며, 도 3에는 본 발명에 따라 인쇄작업을 취소하기 위한 프린터의 동작흐름도가 도시되어 있다.1 is a schematic block diagram of a computer and a printer applied to the present invention, FIG. 2 is a flow chart of a computer for canceling a print job according to the present invention, and FIG. A flow chart of the printer for canceling a print job is shown.

도 1을 참조하면, 본 발명은 인쇄작업 취소방법을 수행하기 위한 컴퓨터와 프린터로 구분되는데, 먼저 컴퓨터 파트를 살펴보면, 컴퓨터용 중앙처리장치(10)는 설정된 동작 프로그램에 따라 시스템을 전반적으로 제어하며, 특히 본 발명의 바람직한 실시예에 따라 사용자의 인쇄취소 명령에 따라 기 설정된 제어신호를 프린터로 전송하도록 각 구성부를 제어한다.Referring to FIG. 1, the present invention is divided into a computer and a printer for performing a method of canceling a print job. Referring to the computer part, the central processing unit 10 for a computer generally controls the system according to a set operation program. In particular, according to a preferred embodiment of the present invention, each component is controlled to transmit a preset control signal to the printer according to the user's cancel command.

컴퓨터용 메모리(11)는 컴퓨터용 중앙처리장치(10)의 동작 프로그램과 일반적인 제어 프로그램 및 프로그램 수행에 따른 데이터가 저장된다.The computer memory 11 stores an operation program of the central processing unit 10 for a computer, general control programs, and data according to program execution.

응용 프로그램(12)은 사용자가 각종 문서를 작성할 수 있는 프로그램이다.The application program 12 is a program that a user can create various documents.

프린터 드라이버(13)는 응용 프로그램(12)에서 작성된 데이터를 프린터에서 해석 가능한 데이터로 변환하며, 응용 프로그램(12)에서 작성된 문서의 각종 인쇄정보를 선택할 수 있는 인쇄정보 선택화면을 디스플레이한다.The printer driver 13 converts the data created by the application program 12 into data that can be interpreted by the printer, and displays a print information selection screen for selecting various print information of the document created by the application program 12.

인터페이스부(14)는 컴퓨터와 프린터를 연결하는 부분으로, 응용 프로그램(12)에서 작성된 데이터 및 컴퓨터용 중앙처리장치(10)에서 출력되는 프린터를 제어하기 위한 제어신호를 전송하며, 호스트 컴퓨터의 제어신호에 대응하여 프린터로부터 전송되는 신호를 수신한다. 여기서, 컴퓨터와 프린터와의 사이에서 송수신되는 제어신호는 국제 전기 전자 기술자 협회(IEEE: Institute of Electrical and Electronic Engineers)에서 규정한 IEEE 1284에 의거한다.The interface unit 14 is a part connecting the computer and the printer, and transmits a control signal for controlling the data generated by the application program 12 and the printer output from the central processing unit 10 for the computer, and controlling the host computer. Receive a signal from the printer in response to the signal. Here, the control signal transmitted and received between the computer and the printer is based on IEEE 1284 defined by the Institute of Electrical and Electronic Engineers (IEEE).

한편, 컴퓨터와 인터페이스가 가능한 프린터 파트를 살펴보면, 프린터용 중앙처리장치(20)는 설정된 동작 프로그램에 따라 시스템을 전반적으로 제어한다.On the other hand, looking at the printer parts that can interface with the computer, the printer central processing unit 20 controls the system as a whole according to the set operation program.

프린터용 메모리(21)는 프린터용 중앙처리장치(20)의 동작 프로그램과 일반적인 제어 프로그램 및 프로그램 수행에 따른 데이터가 저장된다.The printer memory 21 stores an operation program of the central processing unit 20 for a printer, a general control program, and data according to program execution.

인터페이스부(22)는 프린터와 컴퓨터를 연결하는 부분으로, 컴퓨터로부터 데이터 및 제어신호를 수신한다.The interface unit 22 is a part connecting the printer and the computer, and receives data and control signals from the computer.

DMA 컨트롤러(23)는 인터페이스부(22)를 통하여 수신된 데이터를 프린터용 메모리(21)에 저장하고, 기 설정된 크기만큼의 데이터가 수신 완료되면 프린터용 메모리(21)에 저장된 데이터를 인쇄하도록 엔진 컨트롤러(24)를 제어한다.The DMA controller 23 stores the data received through the interface unit 22 in the printer memory 21, and prints the data stored in the printer memory 21 when data of a predetermined size is received. The controller 24 is controlled.

엔진 컨트롤러(24)는 DMA 컨트롤러(23)의 제어에 따라 프린터용 메모리(21)에 저장된 데이터를 인쇄하도록 프린터 엔진(25)을 구동시키고, 프린터 엔진(25)은 엔진 컨트롤러(24)의 제어에 따라 데이터를 기록용지에 인쇄하는 실제 인쇄작업을 담당한다.The engine controller 24 drives the printer engine 25 to print data stored in the printer memory 21 under the control of the DMA controller 23, and the printer engine 25 controls the control of the engine controller 24. Therefore, it is in charge of the actual printing work to print the data on the recording paper.

이와 같은 구성을 갖는 본 발명의 동작을 첨부도면 도 2 및 도 3을 참조하여 상세히 설명하기로 한다.An operation of the present invention having such a configuration will be described in detail with reference to FIGS. 2 and 3.

먼저, 도 2를 참조하여 컴퓨터의 동작을 살펴보면, 컴퓨터용 중앙처리장치(10)는 인쇄명령이 선택되면(S201), 응용 프로그램(12)에서 작성된 문서의 데이터를 인터페이스부(14)를 통하여 프린터로 전송한다(S202).First, referring to FIG. 2, when a computer command is selected, the central processing unit 10 for a computer may print data of a document created by an application program 12 through the interface unit 14 when a print command is selected. In step S202.

여기서, 응용 프로그램(12)에서 작성되어 컴퓨터용 메모리(11)에 저장된 문서의 데이터는 소정 크기로 분할되어 프린터로 전송되며, 데이터의 헤드에서 프린터로 전송되는 데이터의 크기를 나타낸다.Here, the data of the document created in the application program 12 and stored in the computer memory 11 is divided into predetermined sizes and transmitted to the printer, and represents the size of the data transmitted from the head of the data to the printer.

컴퓨터용 중앙처리장치(10)는 인터페이스부(14)를 통하여 프린터로 데이터를 전송한 후, 프린터로부터 데이터의 전송을 요청하는 신호가 수신되면 다음 데이터를 전송하면서 데이터의 전송이 완료되었는지 확인한다(S203).The central processing unit 10 for the computer transmits data to the printer through the interface unit 14, and when a signal for requesting data transmission is received from the printer, the central processing unit 10 transmits the next data and checks whether data transmission is completed ( S203).

확인결과, 데이터의 전송이 완료되었으면 작업을 종료하고, 데이터의 전송이 완료되지 않았으면 인쇄취소 명령이 선택되었는지 확인한다(S204).As a result of the check, if the data transfer is completed, the job is terminated. If the data transfer is not completed, it is checked whether a cancel print command is selected (S204).

여기서, 인쇄취소 명령은 사용자가 프린터 드라이버(13)를 통하여 선택할 수 있다. 즉, 사용자는 컴퓨터에서 프린터로 전송중인 데이터의 인쇄작업을 취소하고자 하는 경우 프린터 드라이버(13)를 구동시키고, 프린터 드라이버(13)에서 제공하는 인쇄정보 선택화면에서 인쇄작업을 취소하는 인쇄취소 버튼을 선택하는 것이다.Here, the print cancel command can be selected by the user through the printer driver 13. That is, when the user wants to cancel the print job of the data being transmitted from the computer to the printer, the user drives the printer driver 13 and presses the cancel print button to cancel the print job on the print information selection screen provided by the printer driver 13. To choose.

컴퓨터용 중앙처리장치(10)는 사용자가 프린터 드라이버(13)를 통하여 인쇄취소 명령을 선택하면, 인터페이스부(14)를 통하여 프린터로 전송중인 데이터의 전송을 중단하고(S205), IEEE 1284에 의거하여 "Request Device ID" 신호를 프린터로 전송한다(S206).When the user selects a cancel print command through the printer driver 13, the central processing unit 10 for the computer stops the transmission of data being transmitted to the printer through the interface unit 14 (S205), and according to IEEE 1284. By transmitting a "Request Device ID" signal to the printer (S206).

여기서, "Request Device ID" 제어신호는 컴퓨터의 인터페이스부(14)를 통하여 연결된 장치를 확인하기 위한 것으로, 인터페이스가 가능한 장치의 식별자(ID: identifier)를 요구하는 제어신호이다.Here, the "Request Device ID" control signal is for identifying a device connected through the interface unit 14 of the computer and is a control signal for requesting an identifier (ID) of a device that can be interfaced.

또한, 본 발명에서는, 컴퓨터에서 프린터로 데이터를 전송하는 도중에 사용자가 인쇄취소 명령을 선택한 경우, "Request Device ID" 제어신호를 프린터로 전송하기로 미리 설정되어 있다.Further, in the present invention, when the user selects a print cancel command while transmitting data from the computer to the printer, it is set in advance to transmit a "Request Device ID" control signal to the printer.

따라서, 본 발명에 적용되는 컴퓨터에서는 사용자가 인쇄취소 명령을 선택한 경우, 프린터로 전송되는 데이터에 소정 크기의 더미 데이터를 추가하는 것이 아니라 인쇄취소를 나타내는 기 설정된 제어신호, 즉 "Request Device ID" 제어신호를 프린터로 전송하는 것이다.Therefore, in the computer applied to the present invention, when the user selects the cancel printing command, instead of adding dummy data of a predetermined size to the data transmitted to the printer, a preset control signal indicating cancel printing, that is, "Request Device ID" control is performed. The signal is sent to the printer.

한편, 상기와 같은 컴퓨터와 인터페이스가 가능한 프린터의 동작을 도 3을 참조하여 살펴보기로 한다.Meanwhile, an operation of a printer that can interface with the computer as described above will be described with reference to FIG. 3.

프린터용 중앙처리장치(20)는 인터페이스부(22)를 통하여 데이터가 수신되는지 확인하고(S301), 컴퓨터로부터 데이터가 수신되면 DMA 컨트롤러(23)가 데이터의 입/출력을 제어하도록 사용허가를 신호를 출력한다.The central processing unit 20 for the printer checks whether data is received through the interface unit 22 (S301), and when data is received from the computer, the DMA controller 23 signals permission to control the input / output of the data. Outputs

이후, DMA 컨트롤러(23)는 프린터용 중앙처리장치(20)의 사용허가 신호에 따라 인터페이스부(22)를 통하여 컴퓨터로부터 수신되는 데이터를 프린터용 메모리(21)에 저장한다(S302).Thereafter, the DMA controller 23 stores the data received from the computer through the interface unit 22 in the printer memory 21 according to the permission signal of the central processing unit 20 for the printer (S302).

DMA 컨트롤러(23)는 컴퓨터로부터 수신되는 데이터의 헤더에서 데이터의 크기를 검출하고(S303), 검출된 데이터의 크기만큼 컴퓨터로부터 데이터가 수신되는지 비교한다(S304).The DMA controller 23 detects the size of the data in the header of the data received from the computer (S303), and compares whether the data is received from the computer by the size of the detected data (S304).

비교결과, 데이터 헤더에서 검출된 데이터의 크기만큼 컴퓨터로부터 데이터가 수신되면, DMA 컨트롤러(23)는 엔진 컨트롤러(24)를 제어하여 프린터 엔진(25)을 구동시키고, 프린터 엔진(25)은 엔진 컨트롤러(24)의 제어에 따라 프린터용 메모리(21)에 저장된 데이터를 기록용지에 인쇄하는 인쇄작업을 수행한다(S305).As a result of the comparison, when data is received from the computer by the amount of data detected in the data header, the DMA controller 23 controls the engine controller 24 to drive the printer engine 25, and the printer engine 25 controls the engine controller. According to the control of step 24, a print job for printing data stored in the printer memory 21 on a recording sheet is performed (S305).

비교결과, 데이터 헤더에서 검출된 데이터의 크기만큼 컴퓨터로부터 데이터가 수신되지 않으면, DMA 컨트롤러(23)는 컴퓨터로부터 "Request Device ID" 제어신호가 수신되는지 확인한다(S306).As a result of the comparison, if data is not received from the computer by the size of the data detected in the data header, the DMA controller 23 checks whether a "Request Device ID" control signal is received from the computer (S306).

확인결과 컴퓨터로부터 "Request Device ID" 제어신호가 수신되면, DMA 컨트롤러(23)는 현재 프린터가 DMA 수신 모드인지 판단한다(S307).As a result of the check, when the "Request Device ID" control signal is received from the computer, the DMA controller 23 determines whether the current printer is in the DMA reception mode (S307).

판단결과, 현재 프린터가 DMA 수신모드이면, DMA 컨트롤러(23)는 인터페이스부(22)를 통하여 컴퓨터로부터 전송되는 데이터의 수신을 중단하고(S308), 프린터용 메모리(21)에 저장된 데이터를 삭제한다(S309). 이후, DMA 컨트롤러(23)는 엔진 컨트롤러(24)로 인쇄중인 용지를 강제로 배출하도록 하는 소정의 제어신호를 송출한다. 엔진 컨트롤러(24)는 DMA 컨트롤러(23)의 제어에 따라 프린터 엔진(25)을 구동시켜 인쇄작업이 중지된 용지를 배출한다(S310).As a result of determination, if the current printer is in the DMA receiving mode, the DMA controller 23 stops receiving data transmitted from the computer via the interface unit 22 (S308), and deletes the data stored in the printer memory 21. (S309). Thereafter, the DMA controller 23 sends a predetermined control signal to the engine controller 24 to forcibly eject the paper being printed. The engine controller 24 drives the printer engine 25 under the control of the DMA controller 23 to discharge the paper on which the print job is stopped (S310).

즉, 프린터에서 DMA 방식으로 데이터를 수신하는 도중에 컴퓨터로부터 수신된 "Request Device ID" 제어신호는 사용자가 인쇄작업을 취소하고자 인쇄취소 명령을 선택한 것을 나타내므로, 프린터는 현재 진행중인 데이터의 수신을 중단하고 인쇄용지를 강제로 배출함으로써 인쇄작업을 취소한다.That is, the "Request Device ID" control signal received from the computer while the printer is receiving data in the DMA manner indicates that the user has selected a cancel print command to cancel the print job. Therefore, the printer stops receiving the current data. The print job is canceled by forcibly ejecting the print paper.

판단결과, 현재 프린터가 DMA 수신모드가 아니면, 프린터용 중앙처리장치(20)는 컴퓨터로부터 수신된 "Request Device ID" 제어신호에 대응하여 프린터의 ID를 컴퓨터로 전송한다(S311).As a result of the determination, if the current printer is not in the DMA receiving mode, the printer central processing unit 20 transmits the ID of the printer to the computer in response to the "Request Device ID" control signal received from the computer (S311).

한편, 컴퓨터로부터 "Request Device ID" 제어신호가 수신되는지 확인하는 단계 306(S306)에서의 확인결과 "Request Device ID" 제어신호가 수신되지 않으면, DMA 컨트롤러(23)는 컴퓨터로부터 수신되는 데이터를 프린터용 메모리(21)에 저장하는 단계 302(S302)로 복귀한다.On the other hand, if the "Request Device ID" control signal is not received as a result of the check in step 306 (S306) of confirming whether the "Request Device ID" control signal is received from the computer, the DMA controller 23 prints the data received from the computer. The process returns to step 302 (S302) for storing in the memory 21 for use.

따라서, DMA 방식으로 데이터를 수신하는 프린터는 컴퓨터로부터 "Request Device ID" 제어신호가 수신됨에 따라 현재 진행중인 데이터의 인쇄작업을 신속하게 취소할 수 있다.Therefore, the printer receiving the data by the DMA method can quickly cancel the print job of the data currently in progress as the "Request Device ID" control signal is received from the computer.

이와 같이, 본 발명의 상세한 설명에서는 구체적인 실시예에 관해 설명하였으나, 본 발명의 범주에서 벗어나지 않는 한도내에서 여러 가지 변형이 가능함은 물론이다. 그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 안되며 후술하는 특허청구범위 뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.As described above, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined by the claims below and equivalents thereof.

이상에서 살펴본 바와 같이, 본 발명에 의한 인쇄작업 취소방법에 따르면 사용자가 DMA 방식으로 데이터를 수신하는 프린터에서 진행중인 인쇄작업을 취소하는 명령을 선택하면, 컴퓨터에서 인쇄작업을 취소하는 기 설정된 제어신호를 프린터로 전송하고, 프린터는 기 설정된 제어신호에 따라 메모리에 저장된 데이터를 삭제하고 용지를 강제 배출함으로써, 인쇄작업을 신속하게 취소할 수 있는 이점이 있다.As described above, according to the method of canceling a print job according to the present invention, when a user selects a command for canceling a print job in progress in a printer receiving data by a DMA method, a preset control signal for canceling a print job from a computer is received. By transmitting to the printer, the printer deletes the data stored in the memory in accordance with a preset control signal and forcibly ejects the sheet, thereby advantageously canceling the print job.

Claims (3)

컴퓨터로부터 전송되는 데이터를 디엠에이(Direct Memory Access) 방식으로 수신하여 인쇄하는 프린터의 인쇄작업 취소방법에 있어서:In a method of canceling a print job of a printer that receives and prints data transmitted from a computer using a direct memory access method, the method includes: 상기 컴퓨터의 응용 프로그램에서 작성된 데이터를 소정 크기로 분할하고, 상기 분할된 데이터를 상기 프린터로 전송하면서 인쇄작업을 취소하는 인쇄취소 명령이 선택되었는지 확인하는 단계;Dividing the data created by the application program of the computer into a predetermined size and confirming that a cancel print command for canceling a print job while transmitting the divided data to the printer is selected; 상기 인쇄취소 명령이 선택되면, 상기 컴퓨터에서 상기 분할된 데이터의 전송을 중지하고, 인쇄작업을 취소시키는 기 설정된 제어신호를 상기 프린터로 전송하는 단계;If the print cancel command is selected, transmitting, by the computer, a predetermined control signal to the printer to stop transmission of the divided data and to cancel a print job; 상기 프린터에서 상기 컴퓨터로부터 전송되는 상기 분할된 데이터를 디엠에이 방식으로 수신하여 인쇄하면서 상기 컴퓨터로부터 상기 기 설정된 제어신호가 수신되는지 확인하는 단계;Confirming whether the predetermined control signal is received from the computer while receiving and printing the divided data transmitted from the computer by the printer in a DM method; 상기 컴퓨터로부터 상기 기 설정된 제어신호가 수신되면, 상기 프린터에서 상기 컴퓨터로부터 전송되는 상기 분할된 데이터의 인쇄작업을 중지하는 단계를 포함하는 것을 특징으로 하는 인쇄작업 취소방법.And stopping the print job of the divided data transmitted from the computer when the preset control signal is received from the computer. 제 1 항에 있어서, 상기 인쇄작업 중지단계는,The method of claim 1, wherein the stopping of the print job comprises: 상기 컴퓨터로부터 상기 기 설정된 제어신호가 수신되면, 상기 컴퓨터로부터 전송되는 상기 분할된 데이터의 수신을 중지하는 단계;Stopping reception of the divided data transmitted from the computer when the preset control signal is received from the computer; 상기 컴퓨터로부터 전송되는 상기 분할된 데이터 중에서 상기 프린터의 메모리에 저장된 데이터를 삭제하는 단계;Deleting data stored in a memory of the printer among the divided data transmitted from the computer; 상기 컴퓨터로부터 수신된 데이터를 기록하는 인쇄용지를 강제 배출하는 단계를 포함하는 것을 특징으로 하는 인쇄작업 취소방법.And forcibly discharging the print paper for recording the data received from the computer. 제 2 항에 있어서, 상기 기 설정된 제어신호는,The method of claim 2, wherein the preset control signal, 국제 전기 전자 기술자 협회(IEEE: Institute of Electrical and Electronic Engineers)에서 규정한 IEEE 1284에 의거한 "Request Device ID"인 것을 특징으로 하는 인쇄작업 취소방법.Method of canceling a print job, characterized in that the "Request Device ID" according to IEEE 1284 as defined by the Institute of Electrical and Electronic Engineers (IEEE).
KR1019990047349A 1999-10-29 1999-10-29 Method for canceling of printing job KR100334111B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990047349A KR100334111B1 (en) 1999-10-29 1999-10-29 Method for canceling of printing job

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990047349A KR100334111B1 (en) 1999-10-29 1999-10-29 Method for canceling of printing job

Publications (2)

Publication Number Publication Date
KR20010039108A true KR20010039108A (en) 2001-05-15
KR100334111B1 KR100334111B1 (en) 2002-05-02

Family

ID=19617541

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990047349A KR100334111B1 (en) 1999-10-29 1999-10-29 Method for canceling of printing job

Country Status (1)

Country Link
KR (1) KR100334111B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470008A (en) * 2018-01-23 2018-08-31 广州市中海达测绘仪器有限公司 Serial data reading/writing method, device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR950029987A (en) * 1994-04-23 1995-11-24 이헌조 Printing control method of laser printer
KR19980049565A (en) * 1996-12-19 1998-09-15 오상수 Disc brake
KR100242023B1 (en) * 1997-02-10 2000-02-01 윤종용 Printer
JP3783331B2 (en) * 1997-05-14 2006-06-07 ブラザー工業株式会社 Mail sending system, mail receiving system, and recording medium
KR20000032928A (en) * 1998-11-18 2000-06-15 윤종용 Method for cancelling print job

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470008A (en) * 2018-01-23 2018-08-31 广州市中海达测绘仪器有限公司 Serial data reading/writing method, device, computer equipment and storage medium
CN108470008B (en) * 2018-01-23 2020-08-14 广州市中海达测绘仪器有限公司 Serial port data read-write method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
KR100334111B1 (en) 2002-05-02

Similar Documents

Publication Publication Date Title
US7200685B2 (en) Communication apparatus for communicating data between separate toplogies, and related method, storage medium, and program
US6147765A (en) Printer system, printer, computer with printer, printing control method, and medium for recording printing control program
JP3020699B2 (en) Printing equipment
US10379597B2 (en) Processor, host device, power saving method of USB device, and computer program
JP5929431B2 (en) Image recording apparatus, control method for image recording apparatus, and control program
KR100334111B1 (en) Method for canceling of printing job
JP4174169B2 (en) Print control apparatus and print control method
US20040190048A1 (en) Image forming device and method
JP4529341B2 (en) Printing apparatus, printing method, and program
JP2021015332A (en) Controller, control method of controller, and program
JP3846089B2 (en) Interface device, control method thereof, and information recording medium
JP2007323363A (en) Printing system, printing apparatus, printing control method, program, and storage medium
JP3125997B2 (en) Print information output device and print system
JP2004181769A (en) Printing device
JPH04319467A (en) Printing device
JP2839334B2 (en) Printing control device
JPH08123639A (en) Information processing system and printer used for the same
EP1998546A1 (en) Method and system for forming image, and external device
JP2006056170A (en) Image forming device
JP3021023B2 (en) Print information output device and printing device
KR100675370B1 (en) Image forming apparatus for processing about cancelled to printing printing data and printing data processing method thereof
JP2011118597A (en) Printing control device, printing control method, storage medium storing computer readable program, and program
JP2006270639A (en) Packet communication system and apparatus
JP2001162869A (en) Color printer
JPH064229A (en) Information transmitting method by parallel interface

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070329

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee