KR101054307B1 - How to process print devices and real-time commands from print devices - Google Patents
How to process print devices and real-time commands from print devices Download PDFInfo
- Publication number
- KR101054307B1 KR101054307B1 KR1020080079067A KR20080079067A KR101054307B1 KR 101054307 B1 KR101054307 B1 KR 101054307B1 KR 1020080079067 A KR1020080079067 A KR 1020080079067A KR 20080079067 A KR20080079067 A KR 20080079067A KR 101054307 B1 KR101054307 B1 KR 101054307B1
- Authority
- KR
- South Korea
- Prior art keywords
- command
- real
- time command
- data
- real time
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1211—Improving printing performance
- G06F3/1212—Improving printing performance achieving reduced delay between job submission and print start
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1293—Printer information exchange with computer
- G06F3/1295—Buffering means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
본 발명은 호스트 컴퓨터로부터 전달되는 데이터 중에서 실시간 명령을 탐지하고 이를 실시간 명령 버퍼에 별도로 저장하여 다른 데이터에 우선하여 처리하도록 함으로써, 실시간 명령의 해석 및 처리가 수신 인터럽트 루틴 내에서 바로 처리되는 경우에 발생하는 프린트 장치의 성능 저하와 같은 문제를 발생하지 않으면서 안정적인 동작을 수행할 수 있는 프린트 장치 및 프린트 장치의 실시간 명령을 처리하는 방법에 관한 것이다.
프린터, 실시간 명령, 호스트 컴퓨터, 버퍼
The present invention detects a real-time command from the data transmitted from the host computer and stores it separately in the real-time command buffer to process other data first, so that the interpretation and processing of the real-time command occurs immediately in the receiving interrupt routine. The present invention relates to a printing apparatus capable of performing a stable operation without causing a problem such as deterioration of a printing apparatus and a method of processing a real-time command of the printing apparatus.
Printer, real-time command, host computer, buffer
Description
본 발명은 호스트 컴퓨터로부터 전달되는 실시간 명령에 따라 동작을 수행하는 프린트 장치 및 프린트 장치의 실시간 명령을 처리하는 방법에 관한 것이다. 더욱 구체적으로, 호스트 컴퓨터로부터 전달되는 데이터 중에서 실시간 명령을 탐지하고 이를 별도로 저장하여 다른 데이터에 우선하여 처리하도록 함으로써, 실시간 명령의 해석 및 처리가 수신 인터럽트 루틴 내에서 바로 처리되는 경우에 발생하는 프린트 장치의 성능 저하와 같은 문제가 발생하지 않으면서 안정적인 동작을 수행할 수 있는 프린트 장치 및 프린트 장치의 실시간 명령을 처리하는 방법에 관한 것이다. The present invention relates to a printing apparatus that performs an operation in accordance with a real time instruction transmitted from a host computer, and a method of processing a real time instruction of the printing apparatus. More specifically, by detecting a real-time command from the data transmitted from the host computer and storing it separately so as to process other data first, the printing device that occurs when the interpretation and processing of the real-time command is processed directly in the reception interrupt routine. The present invention relates to a printing apparatus capable of performing a stable operation without causing a problem such as a decrease in performance and a method of processing a real-time command of the printing apparatus.
일반적으로 퍼스널 컴퓨터에 연결되어 문서 혹은 사진을 인쇄하는 프린트 장치 혹은 상점에서 금전거래에 사용되는 POS단말기, 금전등록기 등과 같은 데이터 처리 장치에 구비되어 영수증 등을 인쇄하는 프린트 장치들은 호스트 컴퓨터로부터 전송되는 프린트 데이터 및 명령 데이터에 따라서 프린트 동작을 수행한다. Generally, a printing device connected to a personal computer to print a document or photo, or a data processing device such as a POS terminal or a cash register used for money transactions in a store, and a printing device that prints a receipt, are printed from a host computer. The print operation is performed in accordance with the data and command data.
하지만, 프린트 장치를 사용하는 경우에 프린터 용지가 떨어지거나 용지가 끼이고 프린트 장치의 커버가 열리는 현상 등과 같이 여러 가지 에러가 발생할 수 있다. 이러한 에러 발생한 경우에 기존의 프린트 장치는 동작을 정지하고 호스트 컴퓨터와 연결된 인터페이스를 오프라인 상태로 전환시켜 호스트 컴퓨터에서 계속 데이터를 보낼 수 없게 했다. 이에 따라 프린트 장치의 내부 제어동작도 정지하고 이미 수신된 데이터에 대한 어떠한 처리도 이루어지지 않고 호스트 컴퓨터의 어떠한 명령에 대해서도 동작을 하지 못하게 된다. However, when using the printing apparatus, various errors may occur, such as a phenomenon in which the printer paper runs out, paper is jammed, and the cover of the printing apparatus is opened. In the event of such an error, the existing print device stops operation and takes the interface connected with the host computer offline so that the host computer cannot continue to send data. As a result, the internal control operation of the printing apparatus is stopped, no processing is performed on the data already received, and no operation can be performed on any command of the host computer.
이 경우, 호스트 컴퓨터는 프린트에 문제가 발생하였음을 표시하고 동작을 중단하며, 사용자가 수작업으로 문제를 해결하여 해당 프린트 장치를 온라인 상태로 전환될 때까지 정지상태를 계속 유지한다. In this case, the host computer indicates that a problem has occurred in the printing, stops the operation, and keeps the stopped state until the user manually solves the problem to bring the print apparatus online.
따라서, 종래에는 프린트에 에러가 발생하면 에러 문제를 해결하기 위해 많은 불편함이 있었을 뿐만 아니라 발생한 문제를 해결하기 전까지 어떠한 작업도 수행할 수 없었다. 특히 금전등록기나 POS단말의 경우 프린트 동작이 금전등록기나 POS단말기의 전체 동작과 연계되어 있으므로 상점 고객의 불편까지 초래할 수 있다. Therefore, conventionally, when an error occurs in a print, there are many inconveniences to solve the error problem, and no operation can be performed until the problem is solved. In particular, in the case of a cash register or a POS terminal, the printing operation is associated with the entire operation of the cash register or the POS terminal, which may cause inconvenience to shop customers.
이러한 문제들을 해결하기 위해 실시간으로 처리할 필요가 있는 명령어를 실시간 명령으로 구분하여 일반 명령어에 우선하여 처리될 수 있도록 하는 기술이 소개되었다. 구체적으로 호스트 컴퓨터로부터 수신된 데이터를 실시간 명령과 일반 데이터로 구분하여 일반 데이터는 수신 버퍼에 저장하고 실시간 명령은 수신과 동시에 실시간 명령을 해석하여 처리하도록 하였다. In order to solve these problems, a technique for classifying a command that needs to be processed in real time into a real time command and processing the general command has been introduced. Specifically, the data received from the host computer is divided into real-time commands and general data, and the general data is stored in the reception buffer and the real-time commands are interpreted and processed at the same time as the reception.
하지만, 이러한 방법으로 실시간 명령을 처리하는 경우, 예를 들어, 호스트 컴퓨터로부터 실시간 명령을 수신하여 실시간으로 프린트 장치의 상태 정보를 전송하거나, 실시간으로 프린트 장치의 메커니즘 또는 외부장치들을 제어하는 경우 데이터 수신수단에 의해 호스트로부터 데이터를 수신함과 동시에 데이터를 해석하고 처리하는 동작이 데이터 수신 인터럽트 루틴 내에서 이루어진다. 이와 같이, 데이터 수신 인터럽트 루틴 내에서 데이터 수신과 동시에 해석 및 처리가 이루어지면, 이전에 수신된 데이터에 대한 해석 및 처리가 완료되지 않으면 다음에 수신되는 실시간 명령의 처리에 문제가 발생한다. However, when processing a real-time command in this way, for example, to receive a real-time command from the host computer to transmit the status information of the print device in real time, or to control the mechanism or external devices of the print device in real time, data reception Receiving data from the host by the means and simultaneously interpreting and processing the data is performed in the data receiving interrupt routine. As described above, when the analysis and processing are performed simultaneously with the data reception in the data receiving interrupt routine, a problem occurs in the processing of the next received real-time instruction if the analysis and processing on the previously received data are not completed.
구체적으로, 호스트 컴퓨터가 실시간으로 프린트 장치의 상태 정보를 요청한 경우에 호스트 컴퓨터와 프린트 장치의 인터페이스상에 발생한 문제로 실시간으로 프린트 장치의 상태 정보를 늦게 전송하는 경우가 발생한다. 이러한 전송지연은 수신 인터럽트로 다음에 수신되는 실시간 명령을 실행하기 하기 위해서는 전송 지연이 발생한 상태 정보 전송이 완료될 때까지 대기하거나 혹은 전송지연이 발생한 상태 정보 전송을 포기해야 하는 문제가 발생한다. 만일, 상태 정보 전송이 완료될 때까지 대기하는 경우에는 데이터 수신 속도가 늦어져 프린터 장치의 성능 저하가 발생하고, 전송 지연이 발생한 상태 정보 전송을 포기하면 잘못된 정보 전송이 이루어지는 문제가 발생한다. Specifically, when the host computer requests the status information of the print apparatus in real time, a problem occurs on the interface between the host computer and the print apparatus, so that the status information of the print apparatus is transmitted in real time. In order to execute the next real-time command received as a reception interrupt, such a transmission delay has a problem of waiting until the transmission of the status information with a transmission delay is completed or giving up the status information with a transmission delay. If waiting until the status information transmission is completed, the data reception speed is slowed down, the performance of the printer apparatus is degraded, and if the abandonment of the status information transmission with the transmission delay occurs, incorrect information transmission occurs.
또한, 프린트 장치의 메커니즘 또는 주변 장치들을 실시간으로 제어하고자 하는 실시간 제어 명령을 호스트 컴퓨터로부터 수신하여 실행하는 과정에서 프린트 메커니즘 또는 주변 장치들의 동작에 지연이 발생하면 다음에 수신되는 실시간 명 령은 기존 동작이 완료될 때까지 대기하거나 기존의 동작을 취소해야 하는 문제가 발생한다. 이러한 경우에 기존 동작이 완료될 때까지 대기한다면 데이터 수신 속도가 늦어져 프린터 장치의 성능 저하가 발생하고, 기존의 동작을 취소하면 원하지 않는 동작이 발생할 수 있다. 프린트 메커니즘 또는 주변 장치들의 동작 지연은 프린트 메커니즘 또는 주변 장치들의 동작 완료 시까지 일정 시간이 필요하거나 동작에 오류가 발생한 경우에 나타난다. In addition, if a delay occurs in the operation of the print mechanism or the peripheral devices in the process of receiving and executing a real-time control command to control the mechanism or the peripheral devices in real time from the host computer, the next received real-time command is an existing operation. There is a problem that must wait until this is completed or cancel the existing operation. In this case, if waiting until the existing operation is completed, the data reception speed is slowed, the performance of the printer device is degraded, and if the existing operation is canceled, unwanted operation may occur. The operation delay of the print mechanism or the peripheral devices occurs when a certain time is required until the operation of the print mechanism or the peripheral devices is completed or an error occurs in the operation.
본 발명은 상기와 같은 문제를 해결하기 위해, 호스트 컴퓨터로부터 수신되는 실시간 명령을 수신함과 동시에 해석 및 실행하는 대신에 실시간 명령을 별도의 버퍼에 저장한 후 일반 데이터에 우선하여 처리하도록 함으로써 이전에 수신된 명령의 처리 과정에서 발생하는 전송 지연, 작동 지연 또는 다른 에러 등에 의해 프린트 장치의 성능 저하가 발생하지 않고 안정적으로 프린트 장치가 동작할 수 있도록 하는 프린트 장치 및 프린트 장치의 실시간 명령 처리 방법을 제공하는 것을 목적으로 한다. In order to solve the above problems, instead of interpreting and executing a real-time command received from a host computer, the present invention stores the real-time command in a separate buffer and processes it prior to general data. To provide a print device and a real-time command processing method of the print device to ensure that the print device can operate stably without the performance degradation of the print device due to transmission delay, operation delay or other errors that occur during the processing of the command For the purpose of
또한, 본 발명은 호스트 컴퓨터와 프린트 장치의 인터페이스 문제에 의해 데이터 수신이 지연되어 프린트 장치의 성능이 저하되는 것을 막기 위해 실시간 명령을 수신 과정과 별도로 해석 및 실행과정을 수행하도록 하여 실시간 명령의 해석 및 수행과정이 데이터 수신에 영향을 주지 않는 프린트 장치 및 프린트 장치의 실시간 명령 처리 방법을 제공하는 것을 목적으로 한다. In addition, the present invention is to interpret and execute the real-time command to perform the interpretation and execution process of the real-time command separately from the receiving process in order to prevent the data reception is delayed due to the interface problem between the host computer and the print device to reduce the performance of the print device. It is an object of the present invention to provide a printing apparatus and a method for processing a real-time command of the printing apparatus in which the execution process does not affect data reception.
상기한 목적을 달성하기 위한 본 발명의 제 1 측면에 의한 호스트 컴퓨터로부터 데이터를 수신하여 동작하는 프린트 장치는 상기 호스트 컴퓨터로부터 데이터를 수신하는 데이터 수신부, 상기 수신된 데이터로부터 실시간 명령을 탐지하여 실시간 명령 버퍼에 저장하고, 나머지 데이터는 수신 버퍼에 저장하는 실시간 명령 탐지부, 상기 실시간 명령 버퍼에 저장된 실시간 명령을 상기 수신 버퍼에 저장된 데이터에 우선하여 해석하는 명령 해석부 및 상기 명령 해석부에 의한 해석 결과를 실행하는 명령 실행부를 포함하는 것을 특징으로 한다. A print apparatus operating by receiving data from a host computer according to the first aspect of the present invention for achieving the above object is a data receiving unit for receiving data from the host computer, real-time command by detecting a real-time command from the received data A real-time command detector for storing the remaining data in a buffer and storing the remaining data in a reception buffer, a command interpreter for interpreting the real-time command stored in the real-time command buffer in preference to the data stored in the receive buffer, and an analysis result of the command interpreter Characterized in that it comprises a command execution unit for executing.
상기 호스트 컴퓨터로부터 수신되는 데이터는 실시간 명령, 일반 명령 및 프린트 데이터를 포함하고, 여기서, 실시간 명령은 일반 명령보다 우선적으로 처리되고, 실시간 명령 혹은 일반 명령은 프린터의 기능 및 동작을 규정하는 명령 코드와 상기 기능 및 동작의 세부사항을 지정하는 인자로 구성되는 것을 특징으로 한다. The data received from the host computer includes a real time command, a general command and print data, wherein the real time command is processed in preference to the general command, and the real time command or the general command includes command codes that define the function and operation of the printer. Characterized in that it comprises a factor specifying the details of the function and operation.
이때, 상기 실시간 명령 탐지부는 상기 수신된 명령의 인자수와 이에 대응되는 미리 지정된 실시간 명령의 인자수를 비교하여 실시간 명령을 탐지하거나 혹은 상기 수신된 명령의 인자와 미리 지정된 실시간 명령의 인자를 비교하여 실시간 명령을 탐지하는 것을 특징으로 한다. In this case, the real-time command detection unit detects a real-time command by comparing the number of arguments of the received command and the number of the predetermined real-time command corresponding thereto or by comparing the arguments of the received command and the argument of the predetermined real-time command It is characterized by detecting a real-time command.
한편, 상기 명령 해석부는 상기 실시간 명령 버퍼에 실시간 명령이 저장되어 있는 경우에는 실시간 버퍼를 먼저 해석하고, 상기 실시간 명령 버퍼에 실시간 명령이 없는 경우에 상기 수신 버퍼에 저장된 데이터를 해석하는 것을 특징으로 한다. On the other hand, when the real-time command is stored in the real-time command buffer, the command interpreter interprets the real-time buffer first, and if there is no real-time command in the real-time command buffer, it characterized in that the data stored in the receiving buffer .
또한, 상기 명령 해석부는 상기 수신 버퍼에 저장된 데이터가 실시간 명령인 경우에는 이를 해석하지 않고 다음 데이터를 해석하는 것을 특징으로 한다. In addition, when the data stored in the reception buffer is a real-time command, the command interpreter interprets the next data without interpreting it.
또한, 상기 호스트 컴퓨터로부터 수신되는 데이터가 프린터의 상태 정보를 요청하는 실시간 명령인 경우에, 명령 실행부는 상기 프린트 장치의 상태 정보를 요청하는 실시간 명령의 해석 결과에 따라 프린터의 상태 정보를 상기 호스트 컴퓨 터로 전송하는 것을 특징으로 한다. In addition, when the data received from the host computer is a real-time command for requesting the status information of the printer, the command execution unit is configured to receive the status information of the printer according to the analysis result of the real-time command for requesting the status information of the printer device. Characterized in that the transmission to the receiver.
또한, 상기 호스트 컴퓨터로부터 수신되는 데이터가 상기 프린트 장치에 설치된 오토커터를 동작하기 위한 실시간 명령인 경우에, 상기 명령 실행부는 상기 오토커터를 동작하기 위한 실시간 명령의 해석결과에 따라 상기 프린트 장치에 설치된 오토커터를 동작시켜 용지를 절단하는 것을 특징으로 하고, 상기 호스트 컴퓨터로부터 수신되는 데이터가 상기 프린트 장치에 연결된 주변기기를 제어하기 위한 실시간 명령인 경우에, 상기 명령 실행부는 상기 주변기기를 제어하기 위한 실시간 명령의 해석결과에 따라 상기 프린트 장치의 주변기기를 제어하는 것을 특징으로 한다. Further, when the data received from the host computer is a real time command for operating the auto cutter installed in the print apparatus, the command execution unit is installed in the print apparatus according to the result of interpretation of the real time command for operating the auto cutter. And cutting a sheet of paper by operating an auto cutter, and when the data received from the host computer is a real time command for controlling a peripheral device connected to the printing device, the command execution unit executes a real time command for controlling the peripheral device. The peripheral device of the printing device is controlled according to the analysis result.
상기 목적을 달성하기 위한 본 발명의 제 2 측면에 의한 호스트 컴퓨터로부터 데이터를 수신하여 동작하는 프린트 장치는 상기 호스트 컴퓨터로부터 데이터를 수신하는 데이터 수신부, 상기 수신된 데이터를 수신 버퍼에 저장하고, 상기 수신된 데이터로부터 실시간 명령을 탐지하여 탐지된 실시간 명령은 실시간 명령 버퍼에 별도로 저장하는 실시간 명령 탐지부, 상기 실시간 명령 버퍼에 저장된 실시간 명령을 상기 수신 버퍼에 저장된 데이터에 우선하여 해석하는 명령 해석부 및 상기 명령 해석부에 의한 해석 결과를 실행하는 명령 실행부를 포함하는 것을 특징으로 한다. A printing apparatus operating by receiving data from a host computer according to a second aspect of the present invention for achieving the above object comprises a data receiving unit for receiving data from the host computer, storing the received data in a reception buffer, and receiving the data. The real-time command detected by detecting the real-time command from the received data is a real-time command detection unit for storing separately in the real-time command buffer, a command interpreter for interpreting the real-time command stored in the real-time command buffer prior to the data stored in the receiving buffer and the And a command execution unit that executes an analysis result by the command analysis unit.
상기한 목적을 달성하기 위한 본 발명의 제 3 측면에 의한 실시간 명령 처리 방법은 호스트 컴퓨터로부터 데이터를 수신하여 동작하는 프린트 장치에 있어서, 상기 호스트 컴퓨터로부터 데이터를 수신하는 단계, 상기 호스트 컴퓨터로부터 수 신된 데이터로부터 실시간 명령을 탐지하여 실시간 명령은 실시간 명령 버퍼에 저장하고, 나머지 데이터는 수신 버퍼에 저장하는 단계, 상기 실시간 명령 버퍼에 저장된 실시간 명령을 상기 수신 버퍼에 저장된 데이터에 우선하여 해석하고, 상기 실시간 명령 버퍼에 실시간 명령이 존재하지 않는 경우에 상기 수신 버퍼에 저장된 데이터를 해석하는 단계 및 상기 실시간 명령 또는 상기 수신 버퍼에 저장된 데이터의 해석 결과를 실행하는 단계를 포함하는 것을 특징으로 한다. A real time command processing method according to a third aspect of the present invention for achieving the above object is a printing apparatus for receiving and operating data from a host computer, the method comprising: receiving data from the host computer, received from the host computer; Detecting a real-time command from the data and storing the real-time command in the real-time command buffer, storing the remaining data in the receive buffer, interpreting the real-time command stored in the real-time command buffer in preference to the data stored in the receive buffer, And analyzing the data stored in the reception buffer when the real time command does not exist in the command buffer and executing the analysis result of the real time command or the data stored in the reception buffer.
이때, 상기 수신 버퍼에 저장된 데이터를 해석하는 단계는 상기 수신 버퍼에 저장된 데이터 중에서 실시간 명령이 탐지되는 경우에 이를 실행하지 않고 다음 데이터를 해석하는 것을 특징으로 한다. In this case, the step of interpreting the data stored in the reception buffer is characterized in that if the real-time command is detected from the data stored in the reception buffer, the next data is not executed.
한편, 상기 해석 결과를 실행하는 단계는 상기 호스트 컴퓨터로부터 수신되는 데이터가 프린터의 상태 정보를 요청하는 실시간 명령인 경우, 상기 프린트 장치의 상태 정보를 요청하는 실시간 명령의 해석 결과에 따라 프린터의 상태 정보를 상기 호스트 컴퓨터로 전송하는 것을 특징으로 하고, On the other hand, the step of executing the analysis result, if the data received from the host computer is a real time command for requesting the status information of the printer, the status information of the printer according to the analysis result of the real time command requesting the status information of the printer To transmit to the host computer,
상기 호스트 컴퓨터로부터 수신되는 데이터가 상기 프린트 장치에 설치된 오토커터를 동작하기 위한 실시간 명령인 경우, 상기 오토커터를 동작하기 위한 실시간 명령의 해석결과에 따라 상기 프린트 장치에 설치된 오토커터를 동작시켜 용지를 절단하는 것을 특징으로 하고, If the data received from the host computer is a real time command for operating the auto cutter installed in the printing apparatus, the auto cutter installed in the printing apparatus is operated according to a result of interpretation of the real time command for operating the auto cutter. Characterized by cutting,
상기 호스트 컴퓨터로부터 수신되는 데이터가 상기 프린트 장치에 연결된 주변기기를 제어하기 위한 실시간 명령인 경우, 상기 주변기기를 제어하기 위한 실시간 명령의 해석결과에 따라 상기 프린트 장치의 주변기기를 제어하는 것을 특징으 로 한다. When the data received from the host computer is a real-time command for controlling the peripheral device connected to the print device, it characterized in that for controlling the peripheral device of the printing device according to the analysis result of the real-time command for controlling the peripheral device.
상기한 목적을 달성하기 위한 본 발명의 제 4 측면에 의한 실시간 명령 처리 방법은 호스트 컴퓨터로부터 데이터를 수신하여 동작하는 프린트 장치에 있어서, 상기 호스트 컴퓨터로부터 데이터를 수신하는 데이터 수신부, 상기 수신된 데이터로부터 실시간 명령을 탐지하여 실시간 명령 버퍼에 저장하고, 상기 수신된 데이터는 수신 버퍼에 저장하는 실시간 명령 탐지부, 상기 실시간 명령 버퍼에 저장된 실시간 명령을 상기 수신 버퍼에 저장된 데이터에 우선하여 해석하는 명령 해석부 및 상기 명령 해석부에 의한 해석 결과를 실행하는 명령 실행부를 포함하는 것을 특징으로 한다. A real-time command processing method according to a fourth aspect of the present invention for achieving the above object is a printing apparatus for receiving and operating data from a host computer, comprising: a data receiving unit for receiving data from the host computer, from the received data A real time command detection unit for detecting a real time command and storing the received data in a real time command buffer, and a command interpreter for interpreting the real time command stored in the real time command buffer in preference to the data stored in the reception buffer And a command execution unit that executes an analysis result by the command analysis unit.
상술한 바와 같이 본 발명에 의한, 프린트 장치 및 프린트 장치의 실시간 명령 처리 방법은 호스트 컴퓨터로부터 전달된 실시간 명령을 별도의 버퍼에 저장한 후 다른 일반 데이터에 우선하여 처리하도록 하여 수신 인터럽트에 의해 실시간 명령을 수신함과 동시에 해석 및 처리하는 과정에 의해 발생하는 프린트 장치의 성능 저하를 막을 수 있는 효과가 있다. As described above, according to the present invention, the print apparatus and the real time command processing method of the print apparatus store the real time command transmitted from the host computer in a separate buffer and then process it in preference to other general data so as to receive the real time command by receiving interrupts. It is possible to prevent the deterioration of the performance of the print apparatus generated by the process of receiving and simultaneously interpreting and processing.
또한, 본 발명에 의한 프린트 장치 및 프린트 장치의 실시간 명령 처리 방법은 호스트로 전달할 상태 정보의 전송시에 발생하는 전송 지연, 프린트 메커니즘 및 주변 장치들의 작동 지연과는 별도로 호스트로부터 데이터를 수신할 수 있으므로 프린트의 정확한 작동을 수행할 수 있는 효과가 있다. In addition, the print apparatus and the real-time command processing method of the print apparatus according to the present invention can receive data from the host separately from the transmission delay, the print mechanism, and the operation delay of the peripheral apparatuses generated when the status information to be transmitted to the host is transmitted. This has the effect of performing the correct operation of the print.
이하, 본 발명의 바람직한 실시 예를 첨부한 도면을 참조하여 상세히 설명한다. 본 발명을 설명함에 있어, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In describing the present invention, if it is determined that detailed descriptions of related known functions or configurations may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.
도 1 은 본 발명에 의한 프린트 장치의 구성을 나타내는 도면이다. 도 1에 있어서, 프린트 장치는 본 발명과 관련된 구성에 대하여 나타낸 것으로 그 외의 다른 구성들은 기존의 프린트 장치와 동일하게 구현된다. BRIEF DESCRIPTION OF THE DRAWINGS It is a figure which shows the structure of the printing apparatus by this invention. In Fig. 1, the printing apparatus is shown for the configuration related to the present invention, and other configurations are implemented in the same manner as the existing printing apparatus.
도 1 에 도시된 바와 같이, 본 발명에 의한 프린트 장치는 프린트 장치에 대하여 실시간 명령이 필요한지 여부에 대하여 판단하여 프린트를 위한 일반 데이터는 물론 실시간 명령을 전달하는 호스트 컴퓨터(100)와 유무선 통신으로 연결된다. 여기서, 실시간 명령은 아주 다양할 수 있고, 예를 들어, 프린트의 상태 정보를 실시간으로 요청하는 명령, 프린터 용지를 실시간으로 절단하고자 하는 명령 또는 프린터 주변장치를 실시간으로 제어하고자 하는 명령 등이 있다. 본 발명에서 사용되는 "실시간 명령"은 시간적으로 동시에 처리되는 명령이라는 의미보다 다른 데이터에 우선하여 처리되는 명령이라는 상대적인 개념으로 이해될 수 있다. As shown in FIG. 1, the printing apparatus according to the present invention determines whether a real-time command is required for the printing apparatus, and connects the wired / wireless communication with a
호스트 컴퓨터(100)로부터 전달된 데이터를 이용해 동작을 수행하는 프린트 장치는 호스트 컴퓨터(100)로부터 데이터를 수신하는 데이터 수신수단(210), 수신된 데이터로부터 실시간 명령을 탐지하여 실시간 명령 버퍼(230)에 저장하는 실시 간 명령 탐지수단(220), 수신된 데이터를 저장하는 수신 버퍼(240), 실시간 명령 버퍼(230)와 수신 버퍼(240)에 저장된 데이터를 해석하는 명령 해석 수단(250), 수신된 데이터가 프린트 데이터인 경우에 이를 저장하는 프린트 버퍼(260), 명령 해석 수단에 의해 해석된 결과에 따라 필요한 동작을 수행하는 처리 해석 수단(270), 데이터를 호스트 컴퓨터에 전송하기 위한 데이터 송신 수단(280), 처리 해석 수단에 의해 해석된 결과에 따라 프린터 메커니즘 및 주변장치(300)를 제어하는 제어 수단(290)을 포함한다. 이하, 각각의 구성요소에 대하여 구체적으로 설명한다. The printing apparatus performing an operation using the data transmitted from the
데이터 수신 수단(210)은 호스트 컴퓨터(100)로부터 데이터를 수신한다. 여기서, 호스트로부터 수신되는 데이터에는 인쇄를 위한 프린트 데이터, 프린트 장치에 특정 동작을 요청하는 일반 명령 및 실시간 처리를 위한 실시간 명령을 포함한다. 따라서, 데이터 수신 수단(210)은 호스트 컴퓨터(100)로부터 프린트 데이터, 일반 명령 및 실시간 명령을 수신한다. The
실시간 명령 탐지 수단(220)은 데이터 수신 수단(210)을 통해 수신된 데이터 중에서 실시간 명령이 있는지 여부를 판단하고, 실시간 명령이 탐지되면 실시간 명령을 실시간 명령 버퍼(230)에 저장한다. 또한, 실시간 명령 탐지 수단(220)은 데이터 수신 수단(210)을 통해 수신된 데이터 중 실시간 명령을 제외한 데이터를 수신 버퍼(240)에 저장한다. 다만, 경우에 따라서 실시간 명령 탐지 수단(220)은 실시간 명령을 수신 버퍼(240)에 저장할 수 있다. The real-time
실시간 명령을 데이터 수신과 동시에 해석하고 처리하는 대신에 실시간 명령 탐지 수단(220)을 이용해 실시간 명령을 탐지하고 탐지된 실시간 명령은 실시간 명 령 버퍼(230)에 저장한다. 즉, 실시간 명령 탐지 수단(220) 및 실시간 명령 버퍼(230)를 이용해 실시간 명령의 수신과 실시간 명령의 해석 및 처리 과정을 분리함으로써 실시간 명령을 해석하고 처리하는 과정에서 발생하는 다양한 문제에도 불구하고 프린트 장치는 데이터를 수신할 수 있어 프린트 성능이 저하되는 것을 막을 수 있다. Instead of interpreting and processing a real time command at the same time as receiving data, the real time command detection means 220 detects a real time command and stores the detected real time command in the real
실시간 명령 탐지 수단(220)을 이용해 실시간 명령을 탐지하는 방법은 다양하게 적용가능하다. 예를 들어, 다음과 같은 두 가지 방법을 이용할 수 있다. The method of detecting a real time command using the real time command detecting means 220 may be variously applied. For example, two methods can be used.
먼저, 실시간 명령의 길이와 수신 데이터의 양을 이용해 실시간 명령을 탐지하는 방법이 있다. 구체적으로, 실시간 명령 탐지 수단(220)은 데이터 수신 수단(210)으로부터 데이터를 받아 실시간 명령 코드 수신에 의해 실시간 명령 시작 플래그가 세트 되어 있으면 대응되는 실시간 명령의 인자 길이(N)와 비교하여 그 길이가 같으면 실시간 명령 시작 플래그를 리셋하고 임시 실시간 버퍼(미도시)에 저장된 내용을 실시간 명령 버퍼로 이동하여 저장하고 임시 실시간 버퍼의 내용을 지운다. 만일, 인자가 대응되는 실시간 명령의 인자 길이(N) 보다 짧으면 그동안 임시 실시간 버퍼 내에 저장된 데이터를 지우며 실시간 버퍼에 저장하지 않는다. 따라서 실시간 명령만 실시간 명령 버퍼에 저장된다. First, there is a method of detecting a real time command using the length of the real time command and the amount of received data. Specifically, the real-time
실시간 명령 탐지 수단(220)은 데이터 수신 수단(210)으로부터 데이터를 받아 실시간 명령 시작 플래그가 세트 되어 있지 않고 일반 커맨드 코드 수신에 의해 일반 명령 시작 플래그가 세트된 경우에는 수신된 일반 명령의 인자 길이가 대응되는 일반 명령의 인자 길이(n)와 같을 때까지 수신 버퍼(240)에 저장하고 같은 경우 일반 명령 시작 플래그를 리셋한다. 이때 일반 커맨드 내에 포함된 실시간 커맨드는 수신 버퍼(240)에 저장된다. 이후 수신되는 명령 코드에 따라 실시간 명령 시작 플래그 또는 일반 명령 시작 플래그가 세트된다. If the real time command detection means 220 receives data from the data receiving means 210 and the real time command start flag is not set and the general command start flag is set by normal command code reception, the argument length of the received general command is In the receiving
다음으로, 실시간 명령을 구성하는 데이터 혹은 파라미터를 비교하여 실시간 명령을 탐지하는 방법이 있다. 수신된 데이터를 미리 정해진 실시간 명령의 명령 코드 및 인자와 비교하여 명령의 시작과 종료 탐지하여 하나의 명령을 탐지하여 실시간 명령 버퍼(230)에 저장하고 그 외의 데이터는 수신 버퍼(240)에 저장한다. 이때 일반 커맨드 내에 포함된 실시간 커맨드는 실시간 명령 버퍼에 저장하지 않고 수신 버퍼(240)에 저장할 수 있다.Next, there is a method of detecting a real time command by comparing data or parameters constituting the real time command. Compare the received data with the command codes and arguments of the predetermined real-time command to detect the start and end of the command, detect one command, store it in the real-
호스트 컴퓨터(100)로부터 전달된 데이터를 수신한 후 실시간 명령 탐지 수단(220)에 의해 실시간 명령 버퍼(230)와 수신 버퍼(240)에 저장되는 과정은 수신 인터럽트 서비스 루틴에서 이루어지고, 실시간 명령을 해석하고 처리하는 과정은 데이터 수신과 관계없이 실시간 명령 버퍼(230) 및 수신 버퍼(240)에 저장된 데이터를 이용해 이루어진다. After receiving the data transmitted from the
구체적으로, 명령 해석 수단(250)은 실시간 명령 버퍼(230)에 저장된 실시간 명령과 수신 버퍼(240)에 저장된 일반 명령 혹은 프린트 데이터를 해석하여 프린트 데이터는 프린트 버퍼(260)에 저장하고, 실시간 명령 및 일반 명령의 해석 결과는 처리 실행 수단을 전달한다. Specifically, the
명령 해석 수단(250)은 먼저 실시간 명령 버퍼(230)를 검색하여 실시간 명령이 존재하는 경우에는 수신 버퍼(240)에 저장된 데이터에 관계없이 우선적으로 해 석하여 해석 결과를 처리 실행 수단(270)에 전달한다. 다만, 실시간 명령 버퍼(230)에 복수의 실시간 명령이 존재하는 경우에는 First-In-First-Out(FIFO) 방식에 따라 실시간 명령을 해석한다. The command interpreting means 250 first searches the real
명령 해석 수단(250)은 실시간 명령 버퍼(230)에 실시간 명령이 존재하지 않는 경우 수신 버퍼(240)를 검색하여 저장된 일반 명령 혹은 프린트 데이터를 FIFO 방식에 따라 해석한 후, 프린트 데이터는 프린트 버퍼(260)에 저장하고 일반 명령의 해석 결과는 처리 실행 수단(270)에 전달한다. If there is no real time command in the real
명령 해석 수단(250)은 먼저 실시간 명령 버퍼(230)를 검색한 후 실시간 명령이 존재하지 않으면 수신 버퍼(240)의 일반 명령 혹은 프린트 데이터를 검색, 해석 및 실행한 후, 다시 실시간 명령 버퍼(230)를 검색한다. 이러한 방법을 통해 실시간 명령이 존재하는지 계속적으로 체크하여 실시간 명령이 다른 일반 명령 혹은 프린트 데이터에 우선적으로 처리할 수 있도록 한다. The
명령 해석 수단(250)은 또한 수신 버퍼(240)내의 실시간 명령 혹은 일반 명령 내에 존재하는 실시간 명령을 분류하여, 일반 명령 내에 존재하는 실시간 명령이 실행되는 것을 방지하는 역할을 한다. 실시간 명령 버퍼(230)는 오직 실시간 명령만을 저장하지만, 수신 버퍼(240)는 경우에 따라서 실시간 명령, 일반 명령 및 프린트 데이터를 저장할 수 있다. 이 경우에 수신 버퍼(240)에 저장된 실시간 명령이 실행되면 불필요한 응답이 발생할 수 있다. 따라서, 명령 해석 수단(250)은 수신 버퍼(240)에 저장된 데이터를 해석하고자 하는 경우에 우선 실시간 명령인지 여부를 판단하고, 실시간 명령인 경우에는 이를 해석하지 않고 다음 데이터를 읽어 들여 같은 과정을 수행한다. 만일 실시간 명령이 아닌 경우에는 계속적으로 해석과정을 수행한다. The command interpreting means 250 also serves to classify the real time command in the receive
처리 실행 수단(270)은 명령 해석 수단(250)에 의해 해석된 결과를 실행하는 기능을 수행한다. 즉, 명령 해석 수단(250)에 의해 실시간 명령 및 일반 명령이 해석되면 그 해석 결과는 처리 실행 수단(270)에 전달되어 처리된다. 이하에서, 실시간 명령의 구체적인 예를 통해 처리 실행 수단(270)의 동작을 설명한다. The processing execution means 270 performs a function of executing the result interpreted by the instruction interpretation means 250. That is, when the real time command and the general command are interpreted by the
예를 들어, 호스트 컴퓨터(100)로부터 전송된 실시간 명령이 프린트 장치의 상태 정보의 전송에 관한 것인 경우, 처리 실행 수단(270)은 프린트 장치의 상태 메모리(미도시)를 통해 프린트의 상태에 관한 정보를 데이터 송신 수단(280)을 통해 호스트 컴퓨터(100)에 전송할 수 있다. 이를 통해, 프린트 장치의 에러 발생시 호스트 컴퓨터는 더 이상의 데이터 전송을 하지 않고 에러가 해결될 때까지 기다려 프린터 에러에 의한 부정확한 출력을 방지할 수 있다. 또한, 작업자는 호스트 컴퓨터(100)로부터 프린트 장치의 상태를 체크하여 대응방안을 마련할 수 있다. For example, if the real-time command sent from the
다른 예로, 호스트 컴퓨터(100)로부터 전송된 실시간 명령이 프린트 장치에 설치된 오토커터를 이용해 실시간으로 프린터 용지의 불필요한 부분을 절단하고자 하는 명령인 경우, 처리 실행 수단(270)은 명령 해석 수단(250)으로부터 오토커터 작동 실시간 명령의 해석 결과에 따라 제어수단(290)을 통해 오토커터를 제어하여 프린터 용지를 절단할 수 있다. As another example, when the real time command transmitted from the
또 다른 예로, 호스트 컴퓨터(100)로부터 전송된 실시간 명령이 프린트 장치에 연결된 주변 장치를 제어하는 명령인 경우, 구체적으로 프린트 장치에 연결된 캐시 드로어(cash drawer)를 실시간으로 작동하는 명령이 호스트 컴퓨터(100)로부터 전송된 경우에는, 처리 실행 수단(270)은 명령 해석 수단(250)의 해석 결과에 따라 제어 수단(290)을 통해 캐시 드로어(cash drawer)의 동작을 제어한다. 이를 통해 필요한 경우 캐시 드로어(cash drawer)를 작동시켜 사용의 편의를 증대시키고, 또한, 프린트 중간에도 캐시 드로어(cash drawer)를 작동시켜 더욱 빠른 서비스를 제공할 수 있다. As another example, when the real-time command transmitted from the
그 외, 데이터 송신 수단(280)은 호스트 컴퓨터(100)로 데이터 송신이 필요한 경우에 데이터를 송신하는 기능을 수행하고, 프린터 메커니즘 및 주변 장치(300)는 제어수단(290)의 제어에 따라 필요한 동작을 수행하는 역할을 한다. In addition, the data transmission means 280 performs a function of transmitting data when data transmission is necessary to the
도 2 는 본 발명에 의한 프린트 장치의 실시간 명령 처리 방법에 대한 흐름도이다.2 is a flowchart illustrating a real-time command processing method of the print apparatus according to the present invention.
구체적으로, 프린트 장치의 실시간 명령 처리 방법은 호스트 컴퓨터로부터 데이터를 수신하는 단계(S210), 상기 호스트 컴퓨터로부터 수신된 데이터를 탐지(S220, S230))하여 실시간 명령은 실시간 명령 버퍼에 저장하고(S240), 나머지 데이터는 수신 버퍼에 저장하는(S250) 단계, 실시간 명령 버퍼에 저장된 실시간 명령을 상기 수신 버퍼에 저장된 데이터에 우선하여 해석하고, 상기 실시간 명령 버퍼에 실시간 명령이 존재하지 않는 경우에 상기 수신 버퍼에 저장된 데이터를 해석하는 단계(S260) 및 상기 실시간 명령 또는 상기 수신 버퍼에 저장된 데이터의 해석 결과를 실행하는 단계(S270, S280, S290)를 포함한다. In detail, the method for processing a real time command of the print apparatus may include receiving data from a host computer (S210), detecting data received from the host computer (S220 and S230), and storing the real time command in a real time command buffer (S240). Storing the remaining data in the reception buffer (S250), interpreting the real time command stored in the real time command buffer in preference to the data stored in the reception buffer, and receiving the real time command if the real time command does not exist in the real time command buffer. Interpreting the data stored in the buffer (S260) and executing the analysis result of the real-time command or the data stored in the reception buffer (S270, S280, S290).
데이터 수신 단계(210)는 호스트 컴퓨터(100)로부터 전송된 데이터를 데이터 수신수단(210)을 통해 수신하는 과정이다. 호스트 컴퓨터(100)로부터 전송되는 데이터에는 실시간 명령, 일반 명령 및 프린트 데이터 등이 있다. The
실시간 명령 탐지 단계(S220)는 수신된 데이터로부터 실시간 명령을 탐지하는 기능을 한다. 수신된 데이터에 대한 탐지 결과(S230), 실시간 명령은 실시간 명령 버퍼에 저장되고(S240), 나머지 데이터는 수신 버퍼에 저장된다(S250). 실시간 명령 버퍼(230)와 수신 버퍼(240)를 별도로 구비함으로써, 명령을 해석하고 실행하고자 하는 경우에 항상 실시간 명령 버퍼(230)를 먼저 검색하여 실시간 명령이 존재하면 이를 먼저 해석하여 실행하고, 실시간 명령이 존재하지 않은 경우에 수신 버퍼(240)를 검색하여 데이터를 처리하도록 할 수 있다. 이를 통해, 실시간 명령은 다른 일반 명령 또는 프린트 데이터보다 우선해서 해석 및 실행될 수 있도록 하면서, 명령을 실행하는 과정에서 지연문제가 발생하는 경우에도 호스트로부터의 데이터 수신은 별도로 이루어질 수 있어 프린트의 성능 저하는 발생하지 않는다. The real time command detection step S220 serves to detect a real time command from the received data. The detection result of the received data (S230), the real-time command is stored in the real-time command buffer (S240), the remaining data is stored in the receive buffer (S250). By providing the real
명령을 해석하는 단계(S260)는 상기에서 설명한 바와 같이 실시간 명령 버퍼(230)를 먼저 검색하여 실시간 명령이 존재하면 수신 버퍼(240)의 다른 데이터에 비해 우선적으로 해석하여 처리한다. 명령 해석 단계(S260)에서는 실시간 명령 버퍼(230)를 우선 해석하는 기능 외에도, 수신 버퍼(240)에 존재하는 실시간 명령을 탐지하여 이것이 해석되어 실행되는 것을 방지하는 기능을 수행한다. In the step S260 of interpreting the command, as described above, the real
명령 실행 단계(S270)는 명령 해석 단계(S260)에서 해석된 결과에 따라 이를 실행하는 기능을 수행한다. 실시간 명령이 호스트에 상태 정보를 전송하는 것에 관 한 것이면, 호스트에 정보를 전송하는 과정(S280)을 수행하고, 실시간 명령이 프린트 장치의 메커니즘 또는 주변 장치를 제어하는 것에 관한 것이면, 명령 해석 결과에 따라 프린트 장치의 메커니즘 또는 주변 장치를 제어하는 과정을 수행한다. The command execution step S270 performs a function of executing this according to the result interpreted in the command interpretation step S260. If the real-time command is about sending status information to the host, the process of transmitting information to the host (S280) is performed, and if the real-time command is about controlling the mechanism or peripheral device of the print device, Accordingly, a process of controlling the mechanism or the peripheral device of the print apparatus is performed.
도 3 은 호스트로부터 상태 정보를 요청하는 실시간 명령을 수신한 경우 프린트 장치의 동작을 나타내는 도면이다. 3 is a diagram illustrating an operation of a printing apparatus when receiving a real time command for requesting status information from a host.
기존 프린트 장치는 호스트로부터 실시간 명령이 수신되면 수신과 동시에 이를 해석하여 처리하도록 하였다. 하지만, 실시간 명령이 호스트 컴퓨터로 실시간 정보를 전송하는 것에 관한 것인 경우에 호스트 컴퓨터와의 인터페이스상의 문제로 정보 전송이 늦어지는 경우가 발생할 수 있다. 이때, 새로운 실시간 명령이 수신되면 이를 실행하기 위해 실행수단은 기존에 호스트 컴퓨터로 전송하고자 하는 응답 데이터를 포기하고 새로운 정보 데이터를 호스트 컴퓨터로 전송하거나 혹은 기존의 정보 데이터의 전송이 완료될 때까지 대기해야 하는 문제가 발생한다. 그 결과 기존의 응답 데이터를 포기하는 경우에는 호스트 컴퓨터로 정확하지 못한 정보가 전송될 수 있고, 기존의 정보 데이터의 전송완료까지 대기한다면 데이터 수신 속도가 늦어져 프린트 장치의 성능 저하가 발생할 수 있다. 하지만, 이러한 문제는 도 3과 같은 본 발명의 기술적 구성에 의해 극복될 수 있다. Existing printers interpret and process real-time commands when they are received from the host. However, when the real time command is about transmitting real time information to the host computer, the information transmission may be delayed due to an interface problem with the host computer. At this time, if a new real-time command is received, the execution means gives up the response data to be transmitted to the host computer and transmits the new information data to the host computer or waits until the transmission of the existing information data is completed. The problem arises. As a result, in the case of abandoning the existing response data, inaccurate information may be transmitted to the host computer. If waiting until the completion of the transmission of the existing information data, the data reception speed may be slowed, which may cause a decrease in the performance of the printing apparatus. However, this problem can be overcome by the technical configuration of the present invention as shown in FIG.
구체적으로 데이터 수신 수단(310)을 통해 수신된 데이터는 실시간 명령 탐지 수단(320)에 의해 실시간 명령은 실시간 명령 버퍼(330)에 저장되고, 나머지 데이터는 수신 버퍼(340)에 저장된다. 즉, 기존의 방법과는 달리 실시간 명령이 수신 되는 경우에도 수신과 동시에 해석하고 실행하는 것이 아니라 실시간 명령 버퍼(330)에 먼저 저장한다. 이러한 저장 방법을 통해 실시간 명령을 해석하고 실행하는 과정에서 발생하는 문제가 데이터 수신에 영향을 주는 것을 막을 수 있다. In more detail, the data received through the data receiving means 310 is stored by the real time command detecting means 320 in the real
명령 해석 수단(350)은 실시간 명령 버퍼(330)에 저장된 실시간 명령을 수신 버퍼(340)의 다른 데이터에 우선하여 해석한다. 즉, 호스트 컴퓨터로 프린트 장치의 상태 정보를 실시간으로 전송하는 것에 관한 실시간 명령을 해석하여 해석 결과를 처리 실행 수단(360)에 전달한다. 처리 실행 수단(360)은 프린트 장치의 상태 정보를 읽어와 이를 송신 버퍼(361)에 저장하고 이를 데이터 송신 수단(370)을 통해 호스트 컴퓨터로 전송한다. 하지만, 전송 과정에서 호스트 컴퓨터와 프린트 장치의 인터페이스 등에 문제가 발생하여 전송 지연이 발생할 수 있다. 이러한 전송 지연이 발생하는 경우에 연속하여 실시간 명령이 수신되는 경우에도 새롭게 수신된 실시간 명령은 실시간 명령 버퍼(330)에 차례로 저장되므로 전송 지연이 데이터 수신에 영향을 주지 않아 프린트 장치의 성능 저하를 막을 수 있다. The
도 4 는 호스트로부터 프린트 장치의 메커니즘 또는 주변장치의 작동을 요청하는 실시간 명령을 수신한 경우 프린트 장치의 동작을 나타내는 도면이다. 4 is a diagram illustrating the operation of the printing apparatus when a real time command is received from the host requesting the operation of the mechanism or the peripheral apparatus of the printing apparatus.
기존 프린트 장치에서 호스트로부터 실시간 명령이 수신되면 수신과 동시에 이를 해석하여 처리하는 경우에 있어서, 도 4와 같이 실시간 명령이 프린트 장치의 메커니즘 또는 주변 장치의 작동을 요청에 관한 것인 경우, 프린트 장치의 메커니즘 또는 주변장치의 작동 지연이 발생하는 경우에는 이전 작동을 중단하거나 작동 이 완료되는 시점까지 이후 실시간 명령의 실행을 중단해야 하는 문제가 발생한다. 이 경우 프린트 장치의 성능 저하뿐만 아니라 정확하지 못한 작동이 이루어질 수 있다. In the case of receiving a real-time command from the host in the conventional print device and receiving and interpreting the same, the real-time command is related to requesting the operation of the printing device mechanism or the peripheral device as shown in FIG. 4. In the event of a delay in the operation of the mechanism or peripheral, there is a problem that the execution of the real-time command must be stopped after the previous operation is stopped or until the operation is completed. In this case, not only the performance degradation of the printing apparatus but also an incorrect operation may be performed.
하지만, 도 4에서와 같이 모든 수신 데이터를 실시간 명령만을 저장하는 실시간 명령 버퍼와 나머지 수신 데이터를 저장하는 수신 버퍼를 별도로 구성하여, 메커니즘 및 주변 장치(470)에서 작동 지연이 발생하는 경우에도 이와 별도로 새로운 실시간 명령은 데이터 수신 수단(410)을 통해 수신되어 실시간 명령 버퍼(430)에 저장될 수 있으므로 프린트 장치의 성능이 저하되거나 부정확한 작동이 이루어지는 경우는 발생하지 않는다. However, as shown in FIG. 4, a separate real time command buffer for storing only the real time command and a receive buffer for storing the remaining received data are separately configured, so that even when an operation delay occurs in the mechanism and the
한편, 본 발명의 상세한 설명에서는 구체적인 실시 예에 관하여 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되어 정해져서는 않되며 후술하는 발명청구의 범위뿐만 아니라 이 발명청구의 범위와 균등한 것들에 의해 정해져야 한다. Meanwhile, 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 not only by the scope of the following claims, but also by those equivalent to the scope of the claims.
도 1 은 본 발명에 의한 프린트 장치의 구성을 나타내는 도면이다. BRIEF DESCRIPTION OF THE DRAWINGS It is a figure which shows the structure of the printing apparatus by this invention.
도 2 는 본 발명에 의한 프린트 장치의 실시간 명령 처리 방법에 대한 흐름도이다. 2 is a flowchart illustrating a real-time command processing method of the print apparatus according to the present invention.
도 3 은 호스트로부터 상태 정보를 요청하는 실시간 명령을 수신한 경우 프린트 장치의 동작을 나타내는 도면이다. 3 is a diagram illustrating an operation of a printing apparatus when receiving a real time command for requesting status information from a host.
도 4 는 호스트로부터 프린트 장치의 메커니즘 또는 주변장치의 작동을 요청하는 실시간 명령을 수신한 경우 프린트 장치의 동작을 나타내는 도면이다. 4 is a diagram illustrating the operation of the printing apparatus when a real time command is received from the host requesting the operation of the mechanism or the peripheral apparatus of the printing apparatus.
Claims (21)
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US12/467,403 US8279475B2 (en) | 2008-05-27 | 2009-05-18 | Printing apparatus and method for processing real-time command using the printing apparatus |
EP09251390.2A EP2128799A3 (en) | 2008-05-27 | 2009-05-26 | Printing apparatus and method for processing real-time command using the printing apparatus |
CN2009101456326A CN101593090B (en) | 2008-05-27 | 2009-05-27 | Printing apparatus and method for processing real-time command using the printing apparatus |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020080049025 | 2008-05-27 | ||
KR20080049025 | 2008-05-27 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20090123745A KR20090123745A (en) | 2009-12-02 |
KR101054307B1 true KR101054307B1 (en) | 2011-08-08 |
Family
ID=41407762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020080079067A KR101054307B1 (en) | 2008-05-27 | 2008-08-12 | How to process print devices and real-time commands from print devices |
Country Status (2)
Country | Link |
---|---|
KR (1) | KR101054307B1 (en) |
CN (1) | CN101593090B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200009224A (en) * | 2018-07-18 | 2020-01-30 | 박노성 | Images Auto Placement-Printing-Cutting Method |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101486171B1 (en) * | 2013-12-02 | 2015-01-27 | 주식회사 빅솔론 | Printing apparatus and method for controlling the same |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1078856A (en) * | 1996-09-05 | 1998-03-24 | Nec Commun Syst Ltd | Interruption by priority printing method and system therefor |
KR20000076610A (en) * | 1999-02-08 | 2000-12-26 | 야스카와 히데아키 | An interface apparatus, method for controlling the same and information recording medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040001215A1 (en) * | 2002-06-26 | 2004-01-01 | Canon Kabushiki Kaisha | Print control apparatus, print control method, program product, and print system |
JP2005271425A (en) * | 2004-03-25 | 2005-10-06 | Murata Mach Ltd | Recorder |
-
2008
- 2008-08-12 KR KR1020080079067A patent/KR101054307B1/en not_active IP Right Cessation
-
2009
- 2009-05-27 CN CN2009101456326A patent/CN101593090B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1078856A (en) * | 1996-09-05 | 1998-03-24 | Nec Commun Syst Ltd | Interruption by priority printing method and system therefor |
KR20000076610A (en) * | 1999-02-08 | 2000-12-26 | 야스카와 히데아키 | An interface apparatus, method for controlling the same and information recording medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200009224A (en) * | 2018-07-18 | 2020-01-30 | 박노성 | Images Auto Placement-Printing-Cutting Method |
KR102143985B1 (en) | 2018-07-18 | 2020-08-12 | 박노성 | Images Auto Placement-Printing-Cutting Method |
Also Published As
Publication number | Publication date |
---|---|
CN101593090B (en) | 2012-10-17 |
CN101593090A (en) | 2009-12-02 |
KR20090123745A (en) | 2009-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9235788B2 (en) | Image forming apparatus, image forming method, and print system | |
US20070103703A1 (en) | Printer, printing control apparatus and printing system using unique job identifiers, and control method therefor | |
US20050286078A1 (en) | Print control device and method for automatically resuming a printing operation of remaining pages | |
JPH09323463A (en) | Communication terminal and control method thereof | |
US20110255126A1 (en) | Printing apparatus, print processing method, and program | |
US8498000B1 (en) | Spool control device and non-transitory computer readable medium | |
US20150269461A1 (en) | Printing apparatus, printing control apparatus, printing system, control method of printing apparatus, and storage medium | |
US8860975B2 (en) | Printing apparatus, method for controlling the printing apparatus, and storage medium | |
KR101054307B1 (en) | How to process print devices and real-time commands from print devices | |
US10650292B2 (en) | Printing apparatus and method of controlling printing apparatus | |
US20120293816A1 (en) | Printing apparatus, printing method, printing system, and computer readable medium | |
US20170243089A1 (en) | Printing apparatus having interpreters interpreting print data, printing method, and storage medium | |
JPH09164730A (en) | Printing control device and printing control of printing control device | |
US8279475B2 (en) | Printing apparatus and method for processing real-time command using the printing apparatus | |
US8587822B2 (en) | Printing apparatus, method and storage medium for executing a job combining double-sided and single-sided pages | |
KR100550713B1 (en) | Terminal printing apparatus, method of processing received data therein, and computer program product for achieving the method | |
US8537391B2 (en) | Image forming apparatus, method of controlling the same and program of the same | |
EP2728514A2 (en) | Method of controlling speed of ethernet connection in power save mode and image forming apparatus performing the same | |
US10275694B2 (en) | Image forming apparatus and image forming system having binding unit capable of performing binding, and control method for the binding unit | |
KR100973021B1 (en) | Printing apparatus for establishing a prior-processing identifier | |
US10628093B2 (en) | Printing systems and methods for monitoring print jobs | |
JP3992022B2 (en) | Printer control method | |
JP3938123B2 (en) | Data processing terminal and control method thereof | |
JP2008293303A (en) | Data processor, image processing system and computer program | |
US9892347B2 (en) | Printer and control method of a printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
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: 20131223 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |