KR100484177B1 - Method and apparatus for automatic appointment of the port name of a printer driver - Google Patents

Method and apparatus for automatic appointment of the port name of a printer driver Download PDF

Info

Publication number
KR100484177B1
KR100484177B1 KR10-2002-0069423A KR20020069423A KR100484177B1 KR 100484177 B1 KR100484177 B1 KR 100484177B1 KR 20020069423 A KR20020069423 A KR 20020069423A KR 100484177 B1 KR100484177 B1 KR 100484177B1
Authority
KR
South Korea
Prior art keywords
port
printer
driver
name
computer
Prior art date
Application number
KR10-2002-0069423A
Other languages
Korean (ko)
Other versions
KR20040041251A (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 KR10-2002-0069423A priority Critical patent/KR100484177B1/en
Publication of KR20040041251A publication Critical patent/KR20040041251A/en
Application granted granted Critical
Publication of KR100484177B1 publication Critical patent/KR100484177B1/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/1236Connection management

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

프린터 드라이버의 포트 명칭 자동 지정방법 및 장치가 개시된다. 이 방법은 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장하는 단계, 프린터가 컴퓨터에 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사하는 단계, 프린터가 컴퓨터에 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되었다면, 저장된 범용 직렬버스 포트 드라이버를 등록하는 단계 및 프린터 드라이버 상에 이전에 설정된 포트 명칭을 소정 포트의 소정 포트명칭으로 지정하는 단계를 구비하는 것을 특징으로 한다. 그러므로, 본 발명은 범용직렬버스 케이블을 이용하여 프린터를 컴퓨터에 연결할 경우에, 사용자의 수동조작 없이도 포트 명칭을 자동으로 지정할 수 있도록 함으로써, 사용자가 포트 지정에 대한 정보를 잘 알지 못하더라도 프린터 드라이버의 소정 포트 명칭을 올바르게 지정할 수 있도록 한다. A method and apparatus for automatically designating a port name of a printer driver are disclosed. This method includes storing a fixed port driver having a fixed port name or an arbitrarily assigned port driver with a randomly assigned port name as a universal serial bus port driver, and whether the printer is connected to a predetermined port of the universal serial bus port driver stored in the computer. Checking, if the printer is connected to a predetermined port of the universal serial bus port driver stored in the computer, registering the stored universal serial bus port driver, and designating a port name previously set on the printer driver as the predetermined port name of the predetermined port. Characterized in that it comprises a step. Therefore, in the present invention, when the printer is connected to a computer using a universal serial bus cable, the port name can be automatically assigned without the user's manual operation, so that even if the user is not familiar with the port designation information, Allows the correct port name to be specified correctly.

Description

프린터 드라이버의 포트 명칭 자동 지정방법 및 장치{Method and apparatus for automatic appointment of the port name of a printer driver}Method and apparatus for automatic appointment of the port name of a printer driver

본 발명은 프린터 드라이버의 포트 명칭 지정에 관한 것으로, 보다 상세하게는 프린터 드라이버의 포트 명칭 자동 지정방법 및 장치에 관한 것이다. The present invention relates to port name designation of a printer driver, and more particularly, to a method and apparatus for automatically designating a port name of a printer driver.

종래 기술에서 범용 직렬버스(USB:Universal Serial Bus) 포트 드라이버(port driver)를 설치하고 포트 명칭을 변경하기 위해서는 다음과 같은 과정을 거친다. 제1 단계로, 프린터 드라이버를 LPT(line print terminal)포트나 파일(file)포트로 지정하여 설치한다. 제2 단계로, 범용 직렬버스 케이블로 프린터를 컴퓨터에 연결한다. 제3 단계로, 컴퓨터에 프린터가 연결되면, 컴퓨터의 운영체제에서는 새 하드웨어가 연결됨을 감지하여 자동적으로 '새 하드웨어 추가 마법사'가 동작하게 된다. 제4 단계로, 새 하드웨어 추가 마법사'가 컴퓨터 화면에 디스플레이 되면, 사용자는 범용 직렬버스 포트 드라이버가 있는 경로를 지정해 주고, '새 하드웨어 추가 마법사'의 진행 순서에 따라 범용 직렬버스 포트 드라이버를 설치한다. 제5 단계로, 범용 직렬버스 포트 드라이버의 설치가 완료되면, 사용자는 현재 사용할 포트에 대한 포트 명칭을 프린터 드라이버 상에서 수동으로 변경한다. 전술한 과정을 거치게 되면 컴퓨터는 비로소 프린터를 통해 인쇄 작업을 수행할 수 있게 된다.In the prior art, in order to install a universal serial bus (USB) port driver and change the port name, the following process is performed. In the first step, the printer driver is installed by specifying a LPT (line print terminal) port or a file port. In the second step, connect the printer to the computer with a universal serial bus cable. In the third step, when the printer is connected to the computer, the computer's operating system detects that the new hardware is connected and automatically activates the 'Add New Hardware Wizard'. In the fourth step, when the Add New Hardware Wizard is displayed on the computer screen, the user specifies the path where the universal serial bus port driver is located and installs the universal serial bus port driver according to the procedure of the 'Add New Hardware Wizard'. . In a fifth step, when the installation of the universal serial bus port driver is completed, the user manually changes the port name for the port to be used on the printer driver. After the above process, the computer can perform a print job through the printer.

그런데, 종래 기술은 제4 단계 및 제5 단계의 작업을 사용자가 직접 해주어야 하는 번거로움이 있으며, 특히 제5 단계의 경우에는 프린터 드라이버에 대한 지식이 많지 않은 일반 사용자의 경우 현재 사용할 수 있는 포트의 명칭을 프린터 등록정보에 표시되는 포트 리스트를 보고는 판별하기가 어렵다. 범용 직렬버스 포트 드라이버는 시스템 환경에 따라 포트 명칭이 임의로 할당되는 MS(Microsoft) 포트 드라이버와 프린터 등 하드웨어 생산업체가 제공하는 포트 명칭이 고정된 포트 드라이버로 대별될 수 있다. MS 포트 드라이버는 시스템 환경에 따라 범용 직렬버스 케이블이 연결되는 포트가 정해지기 때문에 포트 명칭을 USB001, USB002, USB003 및 USB004 등으로 표시한다. 따라서, 시스템 환경에 따라서 범용 직렬버스 케이블이 연결되는 포트가 달라질 수 있으므로, 포트 명칭은 범용 직렬버스 케이블이 연결되는 상황에 따라 달라질 수 있다. 포트 명칭이 고정된 포트 드라이버는 예를 들어, 프린터를 생산하는 업체가 삼성인 경우에 포트 명칭을 USB-Samsung_XXX, SSUSB 등으로 표시함으로써 포트 명칭이 고정된다. 전술한 바와 같이 범용 직렬버스 포트 드라이버라도 그 사양이 다양하고, 포트 명칭도 다양하기 때문에, 프린터 드라이버에 대한 풍부한 지식을 가지고 있지 아니한 일반 사용자는 포트 명칭을 지정하지 못하거나 잘못된 포트 명칭을 지정할 수 있다. 따라서, 포트 명칭을 지정하지 못하는 경우에는 인쇄작업을 할 수 없게 되고, 잘못된 포트 명칭을 지정한 후에 인쇄 작업을 지시하는 경우에는, 인쇄 실패의 오류는 물론 인쇄 작업의 삭제도 잘 이루어지지 않아 컴퓨터를 재부팅 해야하는 문제점이 있다.By the way, the prior art has a hassle that the user has to perform the operations of the fourth and fifth stages, especially in the case of the fifth stage of the port that is currently available for general users who do not have much knowledge about the printer driver. It is difficult to determine the name by looking at the port list displayed in the printer properties. The universal serial bus port driver can be roughly classified into a port driver with a fixed port name provided by a hardware manufacturer such as a Microsoft (MS) port driver and a printer, which are randomly assigned port names according to the system environment. The MS port driver displays the port names as USB001, USB002, USB003, and USB004, because the port to which the universal serial bus cable is connected depends on the system environment. Therefore, since the port to which the universal serial bus cable is connected may vary according to the system environment, the port name may vary depending on the situation in which the universal serial bus cable is connected. A port driver having a fixed port name is fixed by displaying the port name as USB-Samsung_XXX, SSUSB, etc., for example, when the company producing the printer is Samsung. As described above, even the general-purpose serial bus port driver has various specifications and various port names, so that an ordinary user who does not have abundant knowledge of the printer driver may not specify a port name or may specify an incorrect port name. . Therefore, if the port name is not specified, the print job cannot be performed. If the print job is instructed after the wrong port name is specified, not only the error of the print failure but also the deletion of the print job cannot be performed. There is a problem that must be done.

본 발명이 이루고자 하는 기술적 과제는, 사용자의 수동조작 없이도 포트 명칭을 자동으로 지정할 수 있도록 함으로써, 사용자가 포트 지정에 대한 정보를 잘 알지 못하더라도 프린터 드라이버의 소정 포트 명칭을 올바르게 지정할 수 있도록하는 프린터 드라이버의 포트 명칭 자동 지정방법을 제공하는데 있다.The technical problem to be achieved by the present invention is to enable the automatic designation of port names without the user's manual operation, so that the user can correctly specify the predetermined port name of the printer driver even if the user does not know the information about the port designation It is to provide automatic port name designation method.

본 발명이 이루고자 하는 다른 기술적 과제는, 전술한 프린터 드라이버의 포트 명칭 자동 지정방법을 수행하는 프린터 드라이버의 포트 명칭 자동 지정장치를 제공하는데 있다.Another object of the present invention is to provide an apparatus for automatically designating a port name of a printer driver which performs the method for automatically designating a port name of the printer driver described above.

상기의 과제를 이루기 위해, 본 발명에 따른 프린터 드라이버의 포트 명칭 자동 지정방법은 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장하는 단계, 프린터가 컴퓨터의 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사하는 단계, 프린터가 컴퓨터의 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되었다면, 저장된 범용 직렬버스 포트 드라이버를 등록하는 단계 및 프린터 드라이버 상에 이전에 설정된 포트 명칭을 소정 포트의 소정 포트명칭으로 지정하는 단계로 이루어짐이 바람직하다.In order to achieve the above object, a method for automatically designating a port name of a printer driver according to the present invention comprises the steps of: storing a fixed port driver having a fixed port name or an arbitrarily assigned port driver having a port name arbitrarily assigned as a universal serial bus port driver; Checking whether the printer is connected to a predetermined port of the stored universal serial bus port driver of the computer, if the printer is connected to a predetermined port of the stored universal serial bus port driver of the computer, registering the stored universal serial bus port driver and the printer Preferably, the port name previously set on the driver is designated as a predetermined port name of the predetermined port.

상기의 다른 과제를 이루기 위해, 본 발명에 따른 프린터 드라이버의 포트 명칭 자동 지정장치는 컴퓨터 상에 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장하는 포트 드라이버 저장부, 프린터가 범용 직렬버스 케이블에 의해 컴퓨터의 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사하고, 검사한 결과를 제1 검사신호로서 출력하는 프린터 연결 검사부, 제1 검사신호에 상응하여, 포트 드라이버 저장부에 저장된 범용 직렬버스 포트 드라이버를 등록하고, 등록한 결과를 출력하는 포트 드라이버 등록부 및 등록한 결과에 상응하여, 프린터 드라이버 상에 이전에 설정된 포트 명칭을 소정 포트의 소정 포트명칭으로 지정하고, 지정한 결과를 출력하는 포트 명칭 자동 지정부로 구성됨이 바람직하다.In order to achieve the above another object, the automatic port name designation apparatus of the printer driver according to the present invention is a fixed port driver having a fixed port name or a randomly assigned port driver to which a port name is arbitrarily assigned as a universal serial bus port driver. Port driver storage unit to store, a printer connection test unit which checks whether the printer is connected to a predetermined port of a stored universal serial bus port driver of a computer by a universal serial bus cable, and outputs the test result as a first test signal, the first Corresponding to the test signal, the general purpose serial bus port driver stored in the port driver storage unit is registered, and the port driver register for outputting the registered result and the port name previously set on the printer driver according to the registered result are determined as the predetermined port. Specify the port name and specify It is preferable that the port name is automatically configured by the automatic designation unit.

이하, 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정방법을 첨부된 도면을 참조하여 다음과 같이 설명한다.Hereinafter, a method of automatically designating a port name of a printer driver according to the present invention will be described with reference to the accompanying drawings.

도 1은 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정방법을 설명하기 위한 일 실시예의 플로우차트로서, 프린터가 컴퓨터에 연결되는가를 판단하여 범용 직렬버스 포트 드라이버를 등록하고 소정 포트에 상응하는 포트 명칭으로 지정하는 단계(제10 ~ 제16 단계들)로 이루어진다.1 is a flow chart of an embodiment for explaining a method of automatically designating a port name of a printer driver according to the present invention, which determines whether a printer is connected to a computer, registers a universal serial bus port driver, and corresponds to a port name corresponding to a predetermined port. It consists of a step (10th to 16th steps).

먼저, 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장한다(제10하는 단계). 포트 명칭이 고정된 고정 포트 드라이버라 함은, 프린터 등 하드웨어 생산업체가 제공하는 포트 명칭이 고정된 것을 말한다. 예를 들어, 하드웨어를 생산하는 업체가 삼성인 경우에 포트 명칭을 USB-Samsung_XXX, SSUSB 등으로 표시함으로써 포트 명칭이 고정되는데, 이러한 생산업체가 제공하는 포트 드라이버를 이하에서 고정 포트 드라이버라 한다. 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버라 함은, 예를 들어, 시스템 환경에 따라 포트 명칭이 임의로 할당되는 MS(Microsoft) 포트 드라이버를 말한다. MS 포트 드라이버는 시스템 환경에 따라 범용 직렬버스 케이블이 연결되는 포트가 정해지기 때문에 포트 명칭을 USB001, USB002, USB003 및 USB004 등으로 표시한다. 따라서, 시스템 환경에 따라서 범용 직렬버스 케이블이 연결되는 포트가 달라질 수 있으므로, 임의할당 포트 드라이버의 포트 명칭은 범용 직렬버스 케이블이 연결되는 상황에 따라 달라질 수 있다. First, a fixed port driver having a fixed port name or an arbitrarily assigned port driver having a randomly assigned port name is stored as a universal serial bus port driver (step 10). The fixed port driver with a fixed port name refers to a fixed port name provided by a hardware manufacturer such as a printer. For example, if a company that produces hardware is Samsung, the port name is fixed by displaying the port name as USB-Samsung_XXX, SSUSB, etc. The port driver provided by such a manufacturer is referred to as a fixed port driver hereinafter. An arbitrarily assigned port driver in which a port name is arbitrarily assigned refers to an MS (Microsoft) port driver in which a port name is arbitrarily assigned according to a system environment, for example. The MS port driver displays the port names as USB001, USB002, USB003, and USB004, because the port to which the universal serial bus cable is connected depends on the system environment. Therefore, since the port to which the universal serial bus cable is connected may vary according to the system environment, the port name of the randomly assigned port driver may vary depending on the situation where the universal serial bus cable is connected.

고정 포트 드라이버 또는 임의할당 포트 드라이버는 프린터 드라이버 설치시에 병행하여 저장할 수도 있고, 프린터 드라이버 설치와 상관없이 저장할 수도 있다. 고정 포트 드라이버 또는 임의할당 포트 드라이버에 대한 정보는 컴퓨터의 운영체제가 인지하거나 찾을 수 있는 위치에 저장한다. 컴퓨터에 자동으로 등록이 이루어질 수 있도록, 고정 포트 드라이버 또는 임의할당 포트 드라이버에 대한 정보에 특정 데이터를 부가하여 저장한다. 이렇게 함으로써, 운영체제에서 자동으로 특정 데이터를 인지하여 고정 포트 드라이버 또는 임의할당 포트 드라이버를 등록할 수 있도록 한다.The fixed port driver or the randomly assigned port driver may be stored in parallel when the printer driver is installed, or may be stored regardless of the printer driver installation. Information about fixed port drivers or random port drivers is stored in a location that the computer's operating system can recognize or find. In order to register automatically with a computer, specific data is added and stored in the information about the fixed port driver or the randomly assigned port driver. This allows the operating system to automatically recognize certain data and register a fixed port driver or a randomly assigned port driver.

고정 포트 드라이버는 프린터 모델명 및 고정 포트 명칭 등에 대한 포트 관련정보를 포함하며, 임의할당 포트 드라이버도 프린터 모델명 및 임의할당 포트 명칭 등에 대한 포트 관련정보를 포함하고 있다.The fixed port driver includes port related information about a printer model name and a fixed port name, and the randomly assigned port driver also includes port related information about a printer model name and a randomly assigned port name.

제10 단계 후에, 프린터가 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사한다(제12 단계). 연결되는 프린터가 고정 포트 드라이버에 해당하는 포트에 연결되어 인쇄를 수행하는 것일 경우에 소정 포트라 함은, 프린터의 고정 포트 명칭에 대응하는 포트를 말한다. 연결되는 프린터가 임의할당 포트 드라이버에 해당하는 포트에 연결되어 인쇄를 수행하는 것일 경우에 소정 포트라 함은, 프린터의 임의할당 포트 명칭에 대응하는 포트를 말한다. 만일, 범용 직렬버스 케이블에 의해 프린터가 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되지 않았다고 검사되면, 범용 직렬버스 케이블에 의해 프린터가 저장된 범용 직렬버스 포트 드라이버에 새로 연결될 경우에, 프린터가 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 다시 검사한다. After step 10, it is checked whether the printer is connected to a predetermined port of the universal serial bus port driver (step 12). When the connected printer is connected to a port corresponding to the fixed port driver to perform printing, the predetermined port refers to a port corresponding to the fixed port name of the printer. When the connected printer is connected to a port corresponding to a randomly assigned port driver to perform printing, the predetermined port refers to a port corresponding to the randomly assigned port name of the printer. If the printer is not connected to a predetermined port of the stored universal serial bus port driver by the universal serial bus cable, if the printer is newly connected to the stored universal serial bus port driver by the universal serial bus cable, the printer Check if it is connected to a specific port of the serial bus port driver.

그러나, 프린터가 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되었다면, 저장된 범용 직렬버스 포트 드라이버를 등록한다(제14 단계). 저장된 범용 직렬버스 포트 드라이버 즉, 고정 포트 드라이버 또는 임의할당 포트 드라이버에 부가된 특정 데이터를 인지하여 자동으로 등록을 수행한다. However, if the printer is connected to a predetermined port of the stored universal serial bus port driver, the stored universal serial bus port driver is registered (step 14). Registration is performed automatically by recognizing the specific data added to the stored universal serial bus port driver, that is, the fixed port driver or the randomly assigned port driver.

제14 단계 후에, 프린터 드라이버 상에 이전에 설정된 포트 명칭을 소정 포트의 소정 포트명칭으로 지정한다(제16 단계). 프린터 드라이버 상에 이전에 설정되는 포트 명칭은 일반적으로 LPT포트나 파일포트이다. 이렇게 설정된 포트 명칭을 범용 직렬버스 케이블이 연결된 현재의 포트로 포트 명칭을 변경하는 것이다. After the fourteenth step, the port name previously set on the printer driver is designated as the predetermined port name of the predetermined port (step 16). The port name previously set on the printer driver is usually an LPT port or a file port. Change the port name to the current port to which the universal serial bus cable is connected.

도 2는 도 1에 도시된 제16 단계에 대한 본 발명에 의한 일 실시예(16A)를 설명하기 위한 플로우차트로서, 소정 포트에 대응하는 포트 명칭을 검출하여 이전에 설정된 포트 명칭을 검출된 포트 명칭으로 지정하는 단계(제30 ~ 제38 단계들)로 이루어진다.FIG. 2 is a flowchart for describing an embodiment 16A according to the present invention for the sixteenth step shown in FIG. 1, wherein a port name corresponding to a predetermined port is detected to detect a previously set port name. Designation by name (steps 30 to 38).

제14 단계 후에, 등록된 범용 직렬버스 포트 드라이버에 마련된 포트 관련정보로부터 등록된 범용 직렬버스 포트 드라이버가 임의할당 포트 드라이버인가를 판단한다(제30 단계). 포트 관련정보에는 프린터 모델명과 포트 명칭에 대한 정보를 포함하고 있으므로, 이 포트 관련정보로부터 등록된 범용 직렬버스 포트 드라이버가 임의 할당 포트 드라이버인지 아니면 고정 포트 드라이버인지를 판단할 수 있다. 만일, 등록된 범용 직렬버스 포트 드라이버가 임의할당 포트 드라이버가 아니라고 판단되면, 이는 곧 고정 포트 드라이버라고 판단하여 제34 단계로 진행한다.After the fourteenth step, it is determined whether the registered universal serial bus port driver is an arbitrarily assigned port driver from the port related information provided in the registered universal serial bus port driver (step 30). Since the port related information includes information on the printer model name and the port name, it is possible to determine whether the registered universal serial bus port driver is a randomly assigned port driver or a fixed port driver. If it is determined that the registered universal serial bus port driver is not a randomly assigned port driver, it is determined that it is a fixed port driver and the flow proceeds to step 34.

그러나, 등록된 범용 직렬버스 포트 드라이버가 임의할당 포트 드라이버라고 판단되면, 범용 직렬버스 케이블에 의해 연결된 임의할당 포트 드라이버의 소정 포트에 대응하는 소정 포트명칭을 검출한다(제32 단계). 예를 들어, 범용 직렬버스 케이블에 의해 연결된 임의할당 포트 드라이버의 소정 포트가 MS 포트 드라이버의 'USB002'라면, 이 'USB002'를 소정 포트명칭으로서 검출한다.  However, if it is determined that the registered universal serial bus port driver is a random allocation port driver, a predetermined port name corresponding to the predetermined port of the random allocation port driver connected by the universal serial bus cable is detected (step 32). For example, if the predetermined port of the randomly assigned port driver connected by the universal serial bus cable is 'USB002' of the MS port driver, this 'USB002' is detected as the predetermined port name.

제32 단계 후에, 프린터 드라이버가 컴퓨터에 설치되어 있는가를 판단한다(제34 단계). 프린터 드라이버는 범용 직렬버스 포트 드라이버가 설치되기 전에 설치되는 것이 일반적이지만 그렇지 못한 경우를 감안하여 프린터 드라이버가 설치되었는가를 판단한다.After step 32, it is determined whether the printer driver is installed in the computer (step 34). The printer driver is generally installed before the universal serial bus port driver is installed. However, the printer driver is determined whether the printer driver is installed in consideration of the case where the printer driver is not installed.

만일, 프린터 드라이버가 컴퓨터에 설치되어 있다고 판단되면, 프린터 드라이버 상에 이전에 설정된 포트 명칭을 검출된 소정 포트 명칭 또는 고정 포트 드라이버에 포함되는 포트 관련정보에 의한 고정된 포트 명칭으로 지정한다(제36 단계). 일반적으로 프린터 드라이버 상에는 포트 명칭이 LPT포트나 파일포트로 설정되어 있다. 이렇게 설정된 포트 명칭에 대해 포트 드라이버가 임의할당 포트 드라이버인 경우에는 제32 단계에서 검출된 포트 명칭으로 지정하고, 포트 드라이버가 고정 포트 드라이버인 경우에는 이미 고정된 포트 명칭으로 지정한다. If it is determined that the printer driver is installed in the computer, the port name previously set on the printer driver is designated as the fixed port name based on the detected port name or the port related information included in the fixed port driver. step). Generally, the port name is set to LPT port or file port on the printer driver. For the port name set as described above, if the port driver is a randomly assigned port driver, the port name detected in step 32 is designated. If the port driver is a fixed port driver, it is designated as a fixed port name.

그러나, 프린터 드라이버가 컴퓨터에 설치되어 있지 않다고 판단되면, 프린터 드라이버를 설치한다(제38 단계). However, if it is determined that the printer driver is not installed in the computer, the printer driver is installed (step 38).

도 3은 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정방법을 설명하기 위한 또 다른 일 실시예의 플로우차트로서, 프린터들에 대한 등록정보들을 저장하고 있다가 프린터와 컴퓨터간의 연결상태를 판단하여 현재 연결된 포트로 소정 포트 명칭을 지정하거나, 연결상태가 해제된 경우에 기본 포트 명칭으로 지정하는 단계(제50 ~ 제60 단계들)로 이루어진다.3 is a flowchart of another embodiment for explaining a method of automatically designating a port name of a printer driver according to the present invention, which stores registration information about printers and determines a connection state between a printer and a computer. Designating a predetermined port name as a port, or specifying a default port name when the connection state is released (steps 50 through 60).

먼저, 이전에 프린터 드라이버가 설치되고 범용직렬버스 포트 드라이버가 등록된 컴퓨터 상에 여러 종류의 프린터들에 대한 등록정보들을 프린터 정보 파일로서 저장한다(제50 단계). 즉, 다수의 프린터들에 대한 등록정보들을 각각 구분하여 프린터 정보파일로서 컴퓨터에 미리 저장해 둔다. 등록정보에는 하드웨어 제조업체 ID(vender identification number) 또는 제품 ID(product identification number)를 포함하고 있으며, 이와 관련된 정보인 모델명, 기본 포트명칭, 포트 드라이버, 범용 직렬버스 포트 드라이버가 고정 포트 드라이버인 경우에는 고정된 포트명칭 등을 포함하고 있다. First, registration information of various types of printers is stored as a printer information file on a computer on which a printer driver has been previously installed and a universal serial bus port driver is registered (step 50). That is, the registration information for a plurality of printers are separately classified and stored in advance in a computer as a printer information file. The registration information includes the hardware manufacturer ID (product vendor identification number) or product identification number (IP), and the associated information is model name, default port name, port driver, fixed if the universal serial bus port driver is a fixed port driver. Port names, and the like.

제50 단계 후에, 저장된 프린터 정보파일의 등록정보들 중의 어느 하나에 대응하는 상기 프린터가 상기 컴퓨터에 연결되는가를 판단한다(제52 단계). 즉, 컴퓨터에 저장된 프린터 정보파일의 등록정보들 중의 어느 하나에 대응하는 프린터가 컴퓨터와 연결되어 있지 않았다가 범용 직렬버스 케이블에 의해 연결되었는가를 판단한다.After operation 50, it is determined whether the printer corresponding to any one of the registered information of the stored printer information file is connected to the computer (operation 52). That is, it is determined whether the printer corresponding to any of the registered information of the printer information file stored in the computer is not connected to the computer but is connected by the universal serial bus cable.

만일, 저장된 프린터 정보파일의 등록정보들 중의 어느 하나에 대응하는 프린터가 컴퓨터에 연결되었다고 판단되면, 컴퓨터에 연결된 프린터의 등록정보를 프린터로부터 전송받아서, 컴퓨터에 저장된 프린터 정보파일 중 프린터의 등록정보와 동일한 등록정보를 검출하여 프린터의 종류를 확인한다(제54 단계). 예를 들어, 하드웨어 제조업체 ID 또는 제품 ID를 비교하여 프린터의 종류를 확인할 수 있다.If it is determined that the printer corresponding to any one of the registered information of the stored printer information file is connected to the computer, the printer receives the registration information of the printer connected to the computer and prints the registered information of the printer among the printer information files stored in the computer. The same registration information is detected to confirm the type of the printer (step 54). For example, you can check the type of printer by comparing the hardware manufacturer ID or product ID.

제54 단계 후에, 설치된 프린터 드라이버 상에 이전에 설정된 포트 명칭을 제54 단계에서 종류가 확인된 프린터가 연결되어 있는 소정 포트에 대응하는 소정 포트명칭으로 지정한다(제56 단계). After step 54, the port name previously set on the installed printer driver is designated as the predetermined port name corresponding to the predetermined port to which the printer whose type is identified in step 54 is connected (step 56).

한편, 제52 단계에서 등록정보들 중의 어느 하나에 상응하는 프린터가 컴퓨터에 연결되지 않았다고 판단되면, 등록정보들 중의 어느 하나에 대응하는 프린터가 컴퓨터에 연결되어 있다가 연결상태가 해제되었는가를 판단한다(제58 단계). 즉, 프린터가 컴퓨터에 연결되어 있다가 연결상태가 끊어졌는가를 판단한다. 만일, 등록정보들 중의 어느 하나에 대응하는 프린터가 컴퓨터에 계속적으로 연결되어 있다면, 제52 단계로 진행한다.On the other hand, if it is determined in step 52 that the printer corresponding to any of the registered informations is not connected to the computer, it is determined whether the printer corresponding to any one of the registered informations is connected to the computer and the connection state is released. (Step 58). That is, it is determined whether the printer is connected to the computer and the connection state is lost. If the printer corresponding to any of the registered information is continuously connected to the computer, the flow proceeds to step 52.

그러나, 등록정보들 중의 어느 하나에 대응하는 프린터가 컴퓨터에 연결되어 있다가 연결상태가 해제되었다고 판단되면, 설치된 프린터 드라이버 상에서 연결이 해제될 때까지 지정되어 있던 포트명칭을 포트 드라이버 설치시에 일반적으로 할당되는 기본 포트명칭으로 지정한다(제60 단계). 프린터 드라이버 상에 일반적으로 지정되는 포트 명칭은 LPT포트나 파일포트이다. 이렇게 범용 직렬버스 케이블이 연결되어 있을 때까지의 포트에 대한 포트 명칭을 일반적으로 지정되는 포트 명칭인 LPT포트나 파일포트로 포트 명칭을 지정하는 것이다.However, if the printer corresponding to any one of the registered information is connected to the computer and it is determined that the connection is released, the port name designated until the connection is released on the installed printer driver is generally used when installing the port driver. The default port name to be assigned is specified (step 60). Commonly specified port names on the printer driver are LPT port or file port. In this way, the port name for the port until the universal serial bus cable is connected is designated as the port name, LPT port or file port.

이하, 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정장치를 첨부된 도면을 참조하여 다음과 같이 설명한다.Hereinafter, a port name automatic designation apparatus of a printer driver according to the present invention will be described with reference to the accompanying drawings.

도 4는 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정장치를 설명하기 위한 일 실시예의 블록도로서, 포트 드라이버 저장부(100), 프린터 연결 검사부(120), 포트 드라이버 등록부(140) 및 포트명칭 자동 지정부(160)로 구성된다.Figure 4 is a block diagram of an embodiment for explaining the automatic port name designation apparatus of the printer driver according to the present invention, the port driver storage unit 100, the printer connection inspection unit 120, the port driver registration unit 140 and the port name It is composed of an automatic designation unit 160.

제10 단계를 수행하기 위해, 포트 드라이버 저장부(100)는 컴퓨터 상에 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장한다. 고정 포트 드라이버는 프린터 모델명 및 고정 포트 명칭 등에 대한 포트 관련정보를 포함하며, 임의할당 포트 드라이버도 프린터 모델명 및 임의할당 포트 명칭 등에 대한 포트 관련정보를 더 포함하고 있다.In order to perform the tenth step, the port driver storage unit 100 stores, as a general-purpose serial bus port driver, a fixed port driver having a fixed port name or a randomly assigned port driver to which a port name is arbitrarily assigned on a computer. The fixed port driver includes port related information about a printer model name and a fixed port name, and the randomly assigned port driver further includes port related information about a printer model name and a randomly assigned port name.

제12 단계를 수행하기 위해, 프린터 연결 검사부(120)는 프린터가 범용 직렬버스 케이블에 의해 컴퓨터의 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사하고, 검사한 결과를 제1 검사신호로서 출력한다. 프린터 연결 검사부(120)는 프린터가 범용 직렬버스 케이블에 의해 컴퓨터에 연결되었다는 신호를 입력단자 IN1로부터 입력받아서, 포트 드라이버 저장부(100)에 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되었다는 신호를 검사하고, 검사 결과를 제1 검사신호로서 포트 드라이버 등록부(140)로 출력한다.In order to perform the twelfth step, the printer connection tester 120 checks whether the printer is connected to a predetermined port of the stored universal serial bus port driver of the computer by a universal serial bus cable, and uses the test result as the first test signal. Output The printer connection checker 120 receives a signal indicating that the printer is connected to the computer by a universal serial bus cable from the input terminal IN1 and receives a signal indicating that the printer is connected to a predetermined port of the universal serial bus port driver stored in the port driver storage unit 100. The test result is output to the port driver registration unit 140 as a first test signal.

제14 단계를 수행하기 위해, 포트 드라이버 등록부(140)는 제1 검사신호에 상응하여, 포트 드라이버 저장부(100)에 저장된 범용 직렬버스 포트 드라이버를 등록하고, 등록한 결과를 출력한다. 포트 드라이버 등록부(140)는 프린터 연결 검사부(120)로부터 전송받은 제1 검사신호에 상응하여, 포트 드라이버 저장부(100)에 저장된 범용 직렬버스 포트 드라이버에 대한 정보를 인출하여 등록하게 되는데, 이런 범용 직렬버스 포트 드라이버의 등록을 통해 컴퓨터와 프린터 간의 연결을 위한 포트가 마련된다. 등록된 포트 드라이버에 대한 결과는 포트 명칭 자동 지정부(160)로 출력된다.In order to perform the fourteenth step, the port driver registration unit 140 registers the universal serial bus port driver stored in the port driver storage unit 100 in correspondence with the first test signal and outputs the registered result. The port driver registration unit 140 extracts and registers information on the universal serial bus port driver stored in the port driver storage unit 100 in correspondence with the first test signal received from the printer connection inspection unit 120. Registration of the serial bus port driver provides a port for the connection between the computer and the printer. The result of the registered port driver is output to the port name automatic designation unit 160.

제16 단계를 수행하기 위해, 포트명칭 자동 지정부(160)는 등록된 결과에 상응하여, 프린터 드라이버 상에 이전에 설정된 포트 명칭을 소정 포트의 소정 포트명칭으로 지정하고, 지정한 결과를 출력한다.In order to perform the sixteenth step, the port name automatic designation unit 160 designates the port name previously set on the printer driver as the predetermined port name of the predetermined port, and outputs the designated result in correspondence with the registered result.

도 5는 도 4에 도시된 포트명칭 자동 지정부(160)에 대한 본 발명에 의한 일 실시예(160A)를 설명하기 위한 블록도로서, 포트 드라이버 종류 검사부(200), 포트명칭 검출부(210), 프린터 드라이버 설치검사부(220) 및 제1 포트명칭 지정부(230)로 구성된다.FIG. 5 is a block diagram illustrating an embodiment 160A according to the present invention for the port name automatic designation unit 160 shown in FIG. 4. The port driver type checking unit 200 and the port name detecting unit 210 are shown. , The printer driver installation inspection unit 220 and the first port name designation unit 230.

제30 단계를 수행하기 위해, 포트 드라이버 종류 검사부(200)는 등록된 범용 직렬버스 포트 드라이버에 마련된 포트 관련정보로부터 등록된 범용 직렬버스 포트 드라이버가 임의할당 포트 드라이버인가 또는 고정 포트 드라이버인가를 검사하고, 검사한 결과를 제2 검사신호로서 출력한다. 제2 검사신호는 검사한 결과가 임의 할당 포트 드라이버인 경우에는 포트명칭 검출부(210)로 출력되고, 검사한 결과가 고정 포트 드라이버인 경우에는 프린터 드라이버 설치검사부(220)로 출력된다. In order to perform the thirtieth step, the port driver type checking unit 200 checks whether the registered universal serial bus port driver is a randomly assigned port driver or a fixed port driver from the port related information provided in the registered universal serial bus port driver. The test result is output as the second test signal. The second test signal is output to the port name detection unit 210 when the test result is a randomly assigned port driver. The second test signal is output to the printer driver installation test unit 220 when the test result is a fixed port driver.

제32 단계를 수행하기 위해, 포트명칭 검출부(210)는 제2 검사신호에 상응하여, 임의할당 포트 드라이버의 소정 포트에 대응하는 소정 포트명칭을 검출하고, 검출된 결과를 검출신호로서 출력한다. 예를 들어, 범용 직렬버스 케이블에 의해 연결된 임의할당 포트 드라이버의 소정 포트가 MS 포트 드라이버의 'USB002'라면, 포트명칭 검출부(210)는 'USB002'를 소정 포트명칭으로서 검출하고, 검출한 결과를 검출신호로서 프린터 드라이버 설치검사부(220)로 출력한다. In order to perform the thirty-second step, the port name detection unit 210 detects the predetermined port name corresponding to the predetermined port of the randomly assigned port driver and outputs the detected result as a detection signal, corresponding to the second test signal. For example, if the predetermined port of the randomly assigned port driver connected by the universal serial bus cable is 'USB002' of the MS port driver, the port name detection unit 210 detects 'USB002' as the predetermined port name, and detects the detected result. The detection signal is output to the printer driver installation inspecting unit 220.

제34 단계를 수행하기 위해, 프린터 드라이버 설치검사부(220)는 제2 검사신호 또는 검출신호에 상응하여, 프린터 드라이버가 컴퓨터에 설치되어 있는가를 검사하고, 검사한 결과를 제3 검사신호로서 출력한다. 범용 직렬버스 포트 드라이버는 프린터 드라이버의 설치와는 별개로 설치될 수 있으므로, 만일 프린터 드라이버가 설치되지 아니하였다면 프린터 드라이버를 추가적으로 설치해야 한다. 따라서, 프린터 드라이버가 설치되어 있는가를 감지함으로써 포트 명칭을 지정할 프린터 드라이버의 설치를 확인할 수 있다. 프린터 드라이버가 존재한다고 검사한 경우에는 제3 검사신호는 제1 포트 명칭 지정부(230)로 출력되고, 프린터 드라이버가 존재하지 않는다고 검사한 경우에는 제3 검사신호는 출력단자 OUT3을 통해 출력된다. In order to perform the thirty-fourth step, the printer driver installation inspecting unit 220 checks whether the printer driver is installed in the computer corresponding to the second inspection signal or the detection signal, and outputs the inspection result as a third inspection signal. The universal serial bus port driver can be installed separately from the printer driver installation. If the printer driver is not installed, the printer driver must be additionally installed. Therefore, by detecting whether the printer driver is installed, the installation of the printer driver to designate the port name can be confirmed. If it is checked that the printer driver exists, the third test signal is output to the first port name designation unit 230. If it is checked that the printer driver does not exist, the third test signal is output through the output terminal OUT3.

제36 단계를 수행하기 위해, 포트명칭 제1 지정부(230)는 제3 검사신호에 상응하여, 프린터 드라이버 상에 이전에 설정된 포트 명칭을 검출된 포트 명칭 또는 고정 포트 드라이버에 포함되는 포트 관련정보에 의한 고정된 포트 명칭으로 지정하고, 지정한 결과를 출력한다. 이전에 프린터 드라이버 상에 설정된 포트 명칭이 LPT포트 또는 파일포트라면, 제1 포트명칭 지정부(230)는 범용 직렬버스 포트 드라이버가 임의할당 포트 드라이버인 경우에는 LPT포트 또는 파일포트의 포트 명칭을 제32 단계에서 검출된 포트 명칭으로 지정하고, 범용 직렬버스 포트 드라이버가 고정 포트 드라이버인 경우에는 LPT포트 또는 파일포트의 포트 명칭을 이미 고정된 포트 명칭으로 지정한다. 이렇게 지정된 포트 명칭에 대한 결과는 출력단자 OUT2를 통해 출력된다.In order to perform the thirty-sixth step, the port name first designation unit 230 corresponds to the third test signal, and the port related information included in the port name or the fixed port driver detected on the port name previously set on the printer driver. Specify a fixed port name by and output the specified result. If the port name previously set on the printer driver is an LPT port or a file port, the first port name designation unit 230 removes the port name of the LPT port or file port if the universal serial bus port driver is an arbitrarily assigned port driver. Specify the port name detected in step 32. If the universal serial bus port driver is a fixed port driver, specify the port name of the LPT port or file port as the fixed port name. The result of the designated port name is output through the output terminal OUT2.

도 6은 본 발명에 의한 프린터 드라이버의 포트명칭 자동 지정장치를 설명하기 위한 또 다른 일 실시예의 블록도로서, 프린터 정보파일 저장부(300), 프린터 연결 및 해제 검사부(310), 프린터 종류 확인부(320) 및 제2 포트 명칭 지정부(330)로 구성된다.Figure 6 is a block diagram of another embodiment for explaining the automatic designation of the port name of the printer driver according to the present invention, the printer information file storage unit 300, printer connection and disconnection inspection unit 310, printer type confirmation unit And a second port name designation unit 330.

제50 단계를 수행하기 위해, 프린터 정보파일 저장부(300)는 프린터 드라이버가 설치되고 범용 직렬버스 포트 드라이버가 등록된 컴퓨터 상에 여러 종류의 프린터들에 대한 등록정보들을 프린터 정보파일로서 저장한다. 프린터 정보파일 저장부(300)는 하드웨어 제조업체 ID 또는 제품 ID 등에 대한 정보를 저장하고 있으며, 이와 관련된 정보인 모델명, 기본 포트명칭, 포트 드라이버, 범용 직렬버스 포트 드라이버가 고정 포트 드라이버인 경우에는 고정된 포트명칭 등에 대한 정보도 저장하고 있다.In order to perform the fiftyth step, the printer information file storage unit 300 stores registration information of various types of printers as a printer information file on a computer on which a printer driver is installed and a universal serial bus port driver is registered. The printer information file storage unit 300 stores information about a hardware manufacturer ID or a product ID, and is fixed when the model information, the basic port name, the port driver, and the general serial bus port driver are fixed port drivers. It also stores information about the port name.

제52 단계 및 제58 단계를 수행하기 위해, 프린터 연결 및 해제 검사부(310)는 저장된 프린터 정보파일의 등록정보들 중의 어느 하나에 대응하는 프린터가 컴퓨터에 연결되는가를 검사하거나 컴퓨터에 연결되어 있다가 연결상태가 해제되는가를 검사하고, 검사한 결과를 제4 검사신호로서 출력한다. 프린터 연결 및 해제 검사부(310)는 입력단자 IN3을 통해 프린터가 범용 직렬버스 케이블에 의해 컴퓨터에 연결되었다는 신호를 입력받는 경우에는, 검사된 결과를 제4 검사신호로서 프린터 종류 확인부(320)로 출력한다. 또한, 프린터 연결 및 해제 검사부(310)는 범용 직렬버스 케이블에 의해 컴퓨터에 연결되어 있던 프린터가 연결이 해제되었다는 신호를 입력단자 IN3을 통해 입력받는 경우에는, 검사된 결과를 제4 검사신호로서 제2 포트 명칭 지정부(330)로 출력한다.In order to perform steps 52 and 58, the printer connection and disconnection inspection unit 310 checks whether the printer corresponding to any one of the registered information of the stored printer information file is connected to the computer or is connected to the computer. It is checked whether the connection state is released and the result of the inspection is output as a fourth inspection signal. When the printer connection and disconnection checker 310 receives a signal indicating that the printer is connected to the computer by a universal serial bus cable through the input terminal IN3, the printer connection checker 310 sends the checked result to the printer type checker 320 as a fourth test signal. Output In addition, the printer connection and disconnection inspection unit 310 receives a signal indicating that the printer connected to the computer by the universal serial bus cable is disconnected through the input terminal IN3. 2 outputs to the port name designation unit 330.

제54 단계를 수행하기 위해, 프린터 종류 확인부(320)는 제4 검사신호에 상응하여, 컴퓨터에 연결된 프린터의 등록정보를 프린터로부터 전송받아서 컴퓨터에 저장된 프린터 정보파일 중 프린터의 등록정보와 동일한 등록정보를 검출하여 프린터의 종류를 확인하고, 확인한 결과를 출력한다. 프린터 종류 확인부(320)는 제4 검사신호에 상응하여, 컴퓨터에 연결된 프린터의 등록정보 즉, 하드웨어 제조업체 ID 또는 제품 ID 등을 프린터로부터 전송 받는다. 또한, 프린터 종류 확인부(320)는 프린터 정보파일 저장부(300)에 프린터 정보파일을 요청하여 인출하고, 인출된 프린터 정보파일 중 전송된 프린터의 등록정보와 동일한 등록정보를 검출하여 컴퓨터에 연결된 프린터의 종류를 확인한다. 프린터 종류 확인부(330)는 확인한 결과를 제2 포트 명칭 지정부(330)로 출력한다.In order to perform step 54, the printer type checking unit 320 receives the registration information of the printer connected to the computer from the printer and registers the same as the registration information of the printer among the printer information files stored in the computer according to the fourth test signal. Detects the information, checks the type of printer, and outputs the confirmed result. The printer type checking unit 320 receives, from the printer, registration information of the printer connected to the computer, that is, a hardware manufacturer ID or a product ID, in response to the fourth test signal. In addition, the printer type checking unit 320 requests the printer information file from the printer information file storage unit 300, and withdraws the printer information file. Check the type of printer. The printer type checking unit 330 outputs the checked result to the second port name designating unit 330.

제56 단계 및 제60 단계를 수행하기 위해, 제2 포트명칭 지정부(330)는 확인한 결과에 상응하여, 설치된 프린터 드라이버 상에 이전에 설정된 포트 명칭을 종류가 확인된 프린터가 연결된 소정 포트에 대응하는 소정 포트명칭으로 지정하거나, 프린터 연결 및 해제 검사부(310)의 제4 검사신호에 상응하여, 설치된 프린터 드라이버 상에서 연결이 해제될 때까지 지정되어 있던 포트 명칭을 포트 드라이버 설치시에 일반적으로 할당되는 기본 포트명칭으로 지정하고, 지정한 결과를 출력한다. 예를 들어, 제2 포트명칭 지정부(330)는 프린터 종류 확인부(320)로부터 입력받은 프린터 종류의 확인한 결과에 상응하여, 일반적으로 프린터 드라이버 상에 이전에 설정된 LPT포트 또는 파일포트의 포트 명칭을 종류가 확인된 프린터가 연결된 소정 포트에 대응하는 소정 포트명칭으로 지정하고 지정한 결과를 출력단자 OUT4를 통해 출력한다. 또한, 제2 포트명칭 지정부(330)는 프린터 연결 및 해제 검사부(310)로부터 전송받은 제4 검사신호에 상응하여, 프린터 드라이버 상에서 프린터의 연결이 해제될 때까지 지정되어 있던 포트 명칭을 포트 드라이버 설치시에 일반적으로 할당되는 기본 포트명칭인 LPT포트 또는 파일포트의 포트 명칭으로 지정하고, 지정한 결과를 출력단자 OUT4를 통해 출력한다.In order to perform the 56th and 60th steps, the second port name designation unit 330 corresponds to the predetermined port to which the printer whose type is identified is connected to the port name previously set on the installed printer driver according to the checked result. Or a port name that is designated until the connection is released on the installed printer driver in response to the fourth test signal of the printer connection and disconnection inspection unit 310. Specify the default port name and print the specified result. For example, the second port name designation unit 330 generally corresponds to a check result of the printer type received from the printer type confirming unit 320, and is generally a port name of an LPT port or a file port previously set on the printer driver. Is designated as the predetermined port name corresponding to the predetermined port to which the identified printer is connected, and the specified result is output through the output terminal OUT4. In addition, the second port name designation unit 330 corresponds to the fourth test signal received from the printer connection and disconnection inspection unit 310, and assigns the port name designated until the printer is disconnected from the printer driver. Specify the port name of LPT port or file port, which is normally assigned at installation, and output the result through output terminal OUT4.

이상에서 설명한 바와 같이, 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정방법 및 장치는 범용직렬버스 케이블을 이용하여 프린터를 컴퓨터에 연결할 경우에, 사용자의 수동조작 없이도 포트 명칭을 자동으로 지정할 수 있도록 함으로써, 사용자가 포트 지정에 대한 정보를 잘 알지 못하더라도 프린터 드라이버의 소정 포트 명칭을 올바르게 지정할 수 있도록 하는 효과가 있다. As described above, the method and apparatus for automatically designating a port name of the printer driver according to the present invention allow the port name to be automatically assigned without a user manual operation when the printer is connected to a computer using a universal serial bus cable. Even if the user is not familiar with the information on the port designation, there is an effect of correctly designating a predetermined port name of the printer driver.

도 1은 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정방법을 설명하기 위한 일 실시예의 플로우차트이다.1 is a flowchart of an embodiment for explaining a method of automatically designating a port name of a printer driver according to the present invention.

도 2는 도 1에 도시된 제16 단계에 대한 본 발명에 의한 일 실시예를 설명하기 위한 플로우차트이다. FIG. 2 is a flowchart for explaining an embodiment of the present invention for the sixteenth step shown in FIG. 1.

도 3은 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정방법을 설명하기 위한 또 다른 일 실시예의 플로우차트이다. 3 is a flowchart of still another embodiment for explaining a method of automatically designating a port name of a printer driver according to the present invention.

도 4는 본 발명에 의한 프린터 드라이버의 포트 명칭 자동 지정장치를 설명하기 위한 일 실시예의 블록도이다.Figure 4 is a block diagram of an embodiment for explaining the automatic port name designation apparatus of the printer driver according to the present invention.

도 5는 도 4에 도시된 포트명칭 자동 지정부에 대한 본 발명에 의한 일 실시예를 설명하기 위한 블록도이다. FIG. 5 is a block diagram illustrating an exemplary embodiment of the present invention for the port name automatic designation unit shown in FIG. 4.

도 6은 본 발명에 의한 프린터 드라이버의 포트명칭 자동 지정장치를 설명하기 위한 또 다른 일 실시예의 블록도이다.Figure 6 is a block diagram of another embodiment for explaining the automatic port name designation apparatus of the printer driver according to the present invention.

〈도면의 주요 부호에 대한 간단한 설명〉<Brief description of the major symbols in the drawings>

100: 포트 드라이버 저장부 120: 프린터 연결 검사부100: port driver storage 120: printer connection checker

140: 포트 드라이버 등록부 160: 포트 명칭 자동 지정부140: port driver registration unit 160: port name automatic designation unit

200: 포트 드라이버 종류 검사부 210: 포트 명칭 검출부200: port driver type inspection unit 210: port name detection unit

220: 프린터 드라이버 설치검사부 230: 제1 포트명칭 지정부220: printer driver installation inspection unit 230: first port name designation unit

300: 프린터 정보파일 저장부 310: 프린터 연결 및 해제 검사부300: Printer information file storage unit 310: Printer connection and disconnection inspection unit

320: 프린터 종류 확인부 330: 제2 포트명칭 지정부320: printer type check unit 330: second port name designation unit

Claims (9)

프린터와 연결된 컴퓨터 상에서 프린터 드라이버의 포트 명칭 자동 지정방법에 있어서,In the method of automatically specifying the port name of the printer driver on the computer connected to the printer, (a) 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장하는 단계;(a) storing, as a universal serial bus port driver, a fixed port driver having a fixed port name or an arbitrarily assigned port driver with a randomly assigned port name; (b) 상기 프린터가 상기 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사하는 단계;(b) checking whether the printer is connected to a predetermined port of the stored universal serial bus port driver; (c) 상기 프린터가 상기 저장된 범용 직렬버스 포트 드라이버의 상기 소정 포트에 연결되었다면, 상기 저장된 범용 직렬버스 포트 드라이버를 등록하는 단계; 및(c) if the printer is connected to the predetermined port of the stored universal serial bus port driver, registering the stored universal serial bus port driver; And (d) 상기 프린터 드라이버 상에 이전에 설정된 포트 명칭을 상기 소정 포트의 소정 포트명칭으로 지정하는 단계를 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정방법.(d) designating a port name previously set on the printer driver as a predetermined port name of the predetermined port. 제1 항에 있어서, 상기 (a) 단계는The method of claim 1, wherein step (a) 상기 고정 포트 드라이버가 프린터 모델명 및 고정 포트 명칭에 대한 포트 관련정보를 포함하고, 상기 임의할당 포트 드라이버가 프린터 모델명 및 임의할당 포트 명칭 에 대한 포트 관련정보를 포함하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정방법. Wherein the fixed port driver includes port related information for the printer model name and the fixed port name, and the randomly assigned port driver includes port related information for the printer model name and the randomly assigned port name. Automatic assignment method. 제1 항에 있어서, 상기 (d) 단계는The method of claim 1, wherein step (d) (d1) 상기 등록된 범용 직렬버스 포트 드라이버에 마련된 포트 관련정보로부터 상기 등록된 범용 직렬버스 포트 드라이버가 상기 임의할당 포트 드라이버인가를 판단하는 단계;(d1) determining whether the registered universal serial bus port driver is the randomly assigned port driver from port related information provided in the registered universal serial bus port driver; (d2) 상기 등록된 범용 직렬버스 포트 드라이버가 상기 임의할당 포트 드라이버라고 판단되면, 상기 범용 직렬버스 케이블에 의해 연결된 상기 임의할당 포트 드라이버의 소정 포트에 대응하는 소정 포트명칭을 검출하는 단계;(d2) if it is determined that the registered universal serial bus port driver is the random allocation port driver, detecting a predetermined port name corresponding to a predetermined port of the random allocation port driver connected by the universal serial bus cable; (d3) 상기 등록된 범용 직렬버스 포트 드라이버가 상기 임의할당 포트 드라이버가 아니라고 판단되거나 상기 (b2) 단계 후에, 상기 프린터 드라이버 상에 상기 이전에 설정된 포트 명칭을 상기 검출된 소정 포트 명칭 또는 상기 고정 포트 드라이버에 포함되는 포트 관련정보에 의한 고정된 포트 명칭으로 지정하는 단계를 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정방법. (d3) It is determined that the registered universal serial bus port driver is not the random assignment port driver, or after step (b2), the previously set port name on the printer driver is detected by the detected port name or the fixed port. And assigning a fixed port name based on port related information included in the driver. 제3 항에 있어서, 상기 (d) 단계는The method of claim 3, wherein step (d) 상기 (d2) 단계 후에, 상기 프린터 드라이버가 상기 컴퓨터에 설치되어 있는가를 판단하는 단계를 더 구비하고,After the step (d2), further comprising determining whether the printer driver is installed in the computer, 상기 프린터 드라이버가 상기 컴퓨터에 설치되어 있다고 판단되면 상기 (d3) 단계로 진행하고, 상기 프린터 드라이버가 상기 컴퓨터에 설치되어 있지 않다고 판단되면 상기 프린터 드라이버를 설치하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정방법. If it is determined that the printer driver is installed in the computer, proceed to step (d3), and if it is determined that the printer driver is not installed in the computer, install the printer driver. How to specify. 프린터와 연결된 컴퓨터 상에서 프린터 드라이버의 포트 명칭 자동 지정방법에 있어서,In the method of automatically specifying the port name of the printer driver on the computer connected to the printer, (e) 상기 프린터 드라이버가 설치되고 상기 범용직렬버스 포트 드라이버가 등록된 상기 컴퓨터 상에 여러 종류의 프린터들에 대한 등록정보들을 프린터 정보 파일로서 저장하는 단계;(e) storing registration information of various types of printers as a printer information file on the computer on which the printer driver is installed and the universal serial bus port driver is registered; (f) 상기 저장된 프린터 정보파일의 상기 등록정보들 중의 어느 하나에 대응하는 상기 프린터가 상기 컴퓨터에 연결되는가를 판단하는 단계;(f) determining whether the printer corresponding to any of the registration information of the stored printer information file is connected to the computer; (h) 상기 저장된 프린터 정보파일의 상기 등록정보들 중의 어느 하나에 대응하는 상기 프린터가 상기 컴퓨터에 연결되었다고 판단되면, 상기 컴퓨터에 연결된 상기 프린터의 등록정보를 상기 프린터로부터 전송받아서 상기 컴퓨터에 저장된 상기 프린터 정보파일 중 상기 프린터 등록정보와 동일한 등록정보를 검출하여 상기 프린터의 종류를 확인하는 단계;(h) if it is determined that the printer corresponding to any one of the registration information of the stored printer information file is connected to the computer, the registration information of the printer connected to the computer is received from the printer and stored in the computer. Checking the type of the printer by detecting the same registration information as the printer registration information in the printer information file; (i) 상기 설치된 프린터 드라이버 상에 이전에 설정된 포트 명칭을 상기 종류가 확인된 프린터가 연결된 소정 포트에 대응하는 소정 포트명칭으로 지정하는 단계;(i) designating a port name previously set on the installed printer driver as a predetermined port name corresponding to a predetermined port to which the printer whose type has been identified is connected; (j) 상기 등록정보들 중의 어느 하나에 상응하는 상기 프린터가 상기 컴퓨터에 연결되지 않았다고 판단되면, 상기 등록정보들 중의 어느 하나에 대응하는 상기 프린터가 상기 컴퓨터에 연결되어 있다가 연결상태가 해제되었는가를 판단하고, 상기 프린터의 연결상태가 해제되지 않았다고 판단되면 상기 (f) 단계로 진행하는 단계; 및(j) If it is determined that the printer corresponding to any one of the registration information is not connected to the computer, is the printer corresponding to any one of the registration information connected to the computer and the connection state is released? Determining that the connection state of the printer has not been released, proceeding to step (f); And (k) 상기 등록정보들 중의 어느 하나에 대응하는 상기 프린터가 상기 컴퓨터에 연결되어 있다가 연결상태가 해제되었다고 판단되면, 상기 설치된 프린터 드라이버 상에서 연결이 해제될 때까지 지정되어 있던 포트명칭을 포트 드라이버 설치시에 일반적으로 할당되는 기본 포트명칭으로 지정하는 단계를 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정방법.(k) If the printer corresponding to any one of the registration information is connected to the computer, and it is determined that the connection state is released, the port name designated on the installed printer driver until the connection is released is port driver. And automatically assigning a default port name assigned during installation. 프린터와 연결된 컴퓨터 상에서 프린터 드라이버의 포트 명칭 자동 지정장치에 있어서,In the automatic designation of the port name of the printer driver on the computer connected to the printer, 상기 컴퓨터 상에 포트 명칭이 고정된 고정 포트 드라이버 또는 포트 명칭이 임의로 할당되는 임의할당 포트 드라이버를 범용 직렬버스 포트 드라이버로서 저장하는 포트 드라이버 저장부;A port driver storage unit for storing a fixed port driver having a fixed port name or an arbitrarily assigned port driver having a randomly assigned port name on the computer as a universal serial bus port driver; 상기 프린터가 상기 컴퓨터의 상기 저장된 범용 직렬버스 포트 드라이버의 소정 포트에 연결되는가를 검사하고, 검사한 결과를 제1 검사신호로서 출력하는 프린터 연결 검사부;A printer connection tester which checks whether the printer is connected to a predetermined port of the stored universal serial bus port driver of the computer, and outputs the test result as a first test signal; 상기 제1 검사신호에 상응하여, 상기 포트 드라이버 저장부에 저장된 범용 직렬버스 포트 드라이버를 등록하고, 등록한 결과를 출력하는 포트 드라이버 등록부; 및A port driver registration unit that registers a universal serial bus port driver stored in the port driver storage unit and outputs a registration result corresponding to the first test signal; And 상기 등록한 결과에 상응하여, 상기 프린터 드라이버 상에 이전에 설정된 포트 명칭을 상기 소정 포트의 소정 포트명칭으로 지정하고, 지정한 결과를 출력하는 포트 명칭 자동 지정부를 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정장치. In response to the registration result, the port name of the printer driver, characterized in that the port name previously set on the printer driver as a predetermined port name of the predetermined port, and having a port name automatic designation unit for outputting the specified result. Automatic designator. 제6 항에 있어서, 상기 포트 명칭 자동지정부는7. The method of claim 6, wherein the port name auto-routing unit is 상기 등록된 범용 직렬버스 포트 드라이버에 마련된 포트 관련정보로부터 상기 등록된 범용 직렬버스 포트 드라이버가 상기 임의할당 포트 드라이버인가 또는 상기 고정 포트 드라이버인가를 검사하고, 검사한 결과를 제2 검사신호로서 출력하는 포트 드라이버 종류 검사부;Checking whether the registered universal serial bus port driver is the randomly assigned port driver or the fixed port driver from the port related information provided in the registered universal serial bus port driver, and outputs the result of the inspection as a second test signal. Port driver type checking unit; 상기 제2 검사신호에 상응하여, 상기 임의할당 포트 드라이버의 소정 포트에 대응하는 소정 포트명칭을 검출하고, 검출된 결과를 검출신호로서 출력하는 포트 명칭 검출부; 및 A port name detector for detecting a predetermined port name corresponding to a predetermined port of the randomly assigned port driver and outputting the detected result as a detection signal corresponding to the second test signal; And 상기 검출신호에 상응하여, 상기 프린터 드라이버 상에 상기 이전에 설정된 포트 명칭을 검출된 포트 명칭 또는 상기 고정 포트 드라이버에 포함되는 포트 관련정보에 의한 고정된 포트 명칭으로 지정하고, 지정한 결과를 출력하는 제1 포트명칭 지정부를 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정장치. In response to the detection signal, the port name previously set on the printer driver is designated as a fixed port name based on a detected port name or port related information included in the fixed port driver, and outputs a specified result. A port name automatic designation apparatus for a printer driver, comprising: a port name designation section. 제7 항에 있어서, 상기 포트 명칭 자동지정부는8. The method of claim 7, wherein the port name auto-director is 상기 제2 검사신호 또는 상기 검출신호에 상응하여, 상기 프린터 드라이버가 상기 컴퓨터에 설치되어 있는가를 검사하고, 검사한 결과를 제3 검사신호로서 상기 제1 포트명칭 지정부로 출력하는 프린터 드라이버 설치검사부를 더 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정장치. A printer driver installation inspecting section for inspecting whether the printer driver is installed in the computer corresponding to the second inspection signal or the detection signal, and outputting the inspection result as the third inspection signal to the first port name designation section; A port name automatic designation apparatus for a printer driver, characterized in that it is provided. 프린터와 연결된 컴퓨터 상에서 프린터 드라이버의 포트 명칭 자동 지정장치에 있어서,In the automatic designation of the port name of the printer driver on the computer connected to the printer, 상기 프린터 드라이버가 설치되고 상기 범용 직렬버스 포트 드라이버가 등록된 상기 컴퓨터 상에 여러 종류의 프린터들에 대한 등록정보들을 프린터 정보파일로서 저장하는 프린터 정보파일 저장부;A printer information file storage unit for storing registration information of various types of printers as a printer information file on the computer on which the printer driver is installed and the universal serial bus port driver is registered; 상기 프린터가 상기 컴퓨터에 연결되는가를 감지하거나, 상기 프린터가 상기 컴퓨터에 연결되어 있다가 연결상태가 해제되는가를 검사하고, 검사한 결과를 제4 검사신호로서 출력하는 프린터 연결 및 해제 검사부;A printer connection and disconnection inspection unit which detects whether the printer is connected to the computer or examines whether the printer is connected to the computer and is disconnected, and outputs the result of the inspection as a fourth test signal; 상기 제4 검사신호에 상응하여, 상기 컴퓨터에 연결된 상기 프린터의 등록정보를 상기 프린터로부터 전송받아서 상기 컴퓨터에 저장된 상기 프린터 정보파일 중 상기 프린터의 등록정보와 동일한 등록정보를 검출하여 상기 프린터의 종류를 확인하고, 확인한 결과를 출력하는 프린터 종류 확인부; 및In response to the fourth inspection signal, the registration information of the printer connected to the computer is received from the printer and the same registration information as the registration information of the printer is detected from the printer information file stored in the computer to determine the type of the printer. A printer type checking unit for checking and outputting the checked result; And 상기 확인한 결과에 상응하여, 상기 설치된 프린터 드라이버 상에 이전에 설정된 포트 명칭을 상기 종류가 확인된 프린터가 연결된 소정 포트에 대응하는 소정 포트명칭으로 지정하거나, 상기 제4 검사신호에 상응하여, 상기 설치된 프린터 드라이버 상에서 연결이 해제될 때까지 지정되어 있던 포트 명칭을 상기 범용 직렬버스 포트 드라이버 설치시에 일반적으로 할당되는 기본 포트명칭으로 지정하고, 지정한 결과를 출력하는 제2 포트 명칭 지정부를 구비하는 것을 특징으로 하는 프린터 드라이버의 포트 명칭 자동 지정장치. In response to the checking result, the port name previously set on the installed printer driver is designated as a predetermined port name corresponding to a predetermined port to which the printer of the type is confirmed, or corresponding to the fourth test signal. And a second port name designation section for designating a port name designated until the connection is released on the printer driver as a default port name generally assigned when the universal serial bus port driver is installed, and outputting the specified result. The port name automatic designation device of the printer driver.
KR10-2002-0069423A 2002-11-09 2002-11-09 Method and apparatus for automatic appointment of the port name of a printer driver KR100484177B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2002-0069423A KR100484177B1 (en) 2002-11-09 2002-11-09 Method and apparatus for automatic appointment of the port name of a printer driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2002-0069423A KR100484177B1 (en) 2002-11-09 2002-11-09 Method and apparatus for automatic appointment of the port name of a printer driver

Publications (2)

Publication Number Publication Date
KR20040041251A KR20040041251A (en) 2004-05-17
KR100484177B1 true KR100484177B1 (en) 2005-04-20

Family

ID=37338352

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2002-0069423A KR100484177B1 (en) 2002-11-09 2002-11-09 Method and apparatus for automatic appointment of the port name of a printer driver

Country Status (1)

Country Link
KR (1) KR100484177B1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970016895A (en) * 1995-09-13 1997-04-28 구자홍 Interface communication standard automatic detection device and method
KR19980030352A (en) * 1996-10-29 1998-07-25 김광호 Computer and Peripheral Device with Automatic Detection by Analog Signal Level
KR19990038266A (en) * 1997-11-04 1999-06-05 아리다 노부오 Method for manufacturing card products and apparatus for manufacturing same
KR20000045783A (en) * 1998-12-30 2000-07-25 서평원 Interface automatic switching device
KR20010049221A (en) * 2000-03-02 2001-06-15 구자홍 Printer auto detecting device
KR20020037619A (en) * 2000-11-15 2002-05-22 윤종용 Method for automatically recognizing peripheral unit type in embedded system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970016895A (en) * 1995-09-13 1997-04-28 구자홍 Interface communication standard automatic detection device and method
KR0166919B1 (en) * 1995-09-13 1999-01-15 구자홍 Interface communication protocol automatic sensor device and method
KR19980030352A (en) * 1996-10-29 1998-07-25 김광호 Computer and Peripheral Device with Automatic Detection by Analog Signal Level
KR19990038266A (en) * 1997-11-04 1999-06-05 아리다 노부오 Method for manufacturing card products and apparatus for manufacturing same
KR20000045783A (en) * 1998-12-30 2000-07-25 서평원 Interface automatic switching device
KR20010049221A (en) * 2000-03-02 2001-06-15 구자홍 Printer auto detecting device
KR20020037619A (en) * 2000-11-15 2002-05-22 윤종용 Method for automatically recognizing peripheral unit type in embedded system

Also Published As

Publication number Publication date
KR20040041251A (en) 2004-05-17

Similar Documents

Publication Publication Date Title
US7584469B2 (en) Method, apparatus, and computer program product for installing device drivers for peripheral devices
CN102713843B (en) Method of USB device enumeration including detecting operating system type of USB host
US20060095924A1 (en) Method for installing driver software, information processing apparatus that employs the method, computer program for performing the method, and storage medium for storing the computer program
US9298483B2 (en) Medium, image processing apparatus, image forming system, and image forming apparatus
TWI476587B (en) Testing method and testing apparatus for testing function of electronic apparatus
CN113225232B (en) Hardware testing method and device, computer equipment and storage medium
US20200142756A1 (en) Adapter with instrument control function, instrument control system and instrument control method
CN112380078B (en) USB equipment communication test method and test device
KR100484177B1 (en) Method and apparatus for automatic appointment of the port name of a printer driver
US7036129B1 (en) Diagnostic system integrated with device drivers of an operating system
US7958405B1 (en) Automatic testing system and method for judging whether universal serial bus device is configured to computer
US6859749B2 (en) Device diagnostics
US9092231B2 (en) Terminal device and image forming apparatus to solve printing error and method of solving printing error thereof
CN1353835A (en) Protocol acknowledgment between homogeneous systems
TW201807583A (en) Automatic control system and the instrument automatically search method using the same
TW202236093A (en) Detect sequencing method for devices, configuration generating method and apparatus thereof for devices
CN108697025B (en) Assembly prompting method of rack-mounted server system
CN1987809A (en) Method for self detecting result of basic input and output system
CN111143262A (en) Switching device, instrument control system and instrument control method
JP3871004B2 (en) Printing device
CN110413459B (en) External PHY card identification method, device, equipment and readable storage medium
KR100854823B1 (en) Method and apparatus for detecting error of an image display device
KR100425329B1 (en) Method and apparatus for displaying the printer registration information selected
Hardware software Manual
CN115712533A (en) Host computer test system and method, CANoe host computer and storage medium

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: 20080328

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee