KR950005530B1 - Automatic data recognition method of magnetic card and barcode and its control system - Google Patents

Automatic data recognition method of magnetic card and barcode and its control system Download PDF

Info

Publication number
KR950005530B1
KR950005530B1 KR1019930004801A KR930004801A KR950005530B1 KR 950005530 B1 KR950005530 B1 KR 950005530B1 KR 1019930004801 A KR1019930004801 A KR 1019930004801A KR 930004801 A KR930004801 A KR 930004801A KR 950005530 B1 KR950005530 B1 KR 950005530B1
Authority
KR
South Korea
Prior art keywords
data
input
microprocessor
output
keypad
Prior art date
Application number
KR1019930004801A
Other languages
Korean (ko)
Other versions
KR940022327A (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 KR1019930004801A priority Critical patent/KR950005530B1/en
Publication of KR940022327A publication Critical patent/KR940022327A/en
Application granted granted Critical
Publication of KR950005530B1 publication Critical patent/KR950005530B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Credit Cards Or The Like (AREA)
  • Burglar Alarm Systems (AREA)

Abstract

The system controls a hardware between systems using data recognized by a magnetic strip card and a barcode or processes data recognized by data communication between the system and a computer. It comprises : (i) means transmitting a data processed by a microprocessor(1) to a printer(8) through a buffer(21); (ii) means displaying a data processed by the microprocessor on LCD; (iii) a magnetic strip reader(10) transmitting it to microprocessor after reading and amplifying a data of a magnetic strip card. (iv) means displaying it with LED or buzzer through an input-output part(4) after the microprocessor judges a read data; (v) means displaying state of function on LCD; (vi) communication means(14) transmitting data between the computer and the system; (vii) means connecting a barcode scanner(15) with the microprocessor; and (viii) means sharing ports with a conversion switch(17).

Description

마그네틱카드와 바코드의 데이터 자동인식방법 및 그 제어장치Automatic data recognition method of magnetic card and bar code and control device

제1도는 본 발명의 메인부의 회로구성을 나타내는 블록도.1 is a block diagram showing a circuit configuration of a main part of the present invention.

제2도는 본 발명의 입출력부의 회로구성을 나타내는 블록도.2 is a block diagram showing a circuit configuration of an input / output unit according to the present invention.

제3도는 제1도와 제2도를 조합한 상태를 나타내는 블록도.3 is a block diagram showing a state in which the first and second views are combined.

제4도(a) (b) (c) (d) (e)는 본 발명의 전체적인 동작을 제어하는 흐름도.Figure 4 (a) (b) (c) (d) (e) is a flow chart for controlling the overall operation of the present invention.

* 도면의 주요 부분에 대한 부호의 설명* Explanation of symbols for the main parts of the drawings

1 : 마이크로 프로세서 2 : 디코더1: microprocessor 2: decoder

3 : 메모리 4 : 입출력단3: memory 4: input / output

5 : 클럭 6 : 리셋신호발생기5: clock 6: reset signal generator

7 : 통신드라이버 8 : 프린터7: Communication Driver 8: Printer

9 : 액정표시판 10 : 마그네틱 스트립 리이더9 liquid crystal panel 10 magnetic strip reader

11 : LED : 12 :부저11: LED: 12: Buzzer

13 : 키이패드 14 : 통신13: keypad 14: communication

15 : 바코드스캐너 16 : TTL신호입출력단15: Barcode scanner 16: TTL signal input / output terminal

17 : 변환스위치 18 : 입력장치17: conversion switch 18: input device

19 : 출력장치 20 : 백업전원19: output device 20: backup power

21 : 버퍼21: buffer

본 발명은 마그네틱 카드의 데이터와 바코드의 데이터를 동시에 처리할 수 있는 마그네틱 카드와 바코드의 데이터 자동인식방법 및 그 제어장치에 관한 것이다.The present invention relates to a method for automatically recognizing data of a magnetic card and a bar code and a control device capable of simultaneously processing data of a magnetic card and data of a bar code.

보다 구체적으로는 본 발명은 마그네틱 스트립 카드로부터 판독해낸 데이터와 바코드 스캐너를 통해서 들어온 바코드의 데이터를 인식하는 장치로써 그 인식된 데이터를 이용하며 기기간의 하드웨어를 제어하거나 컴퓨터와의 데이터 통신에 의해 인식된 데이터를 컴퓨터에서 처리할 수 있도록 한 것이다.More specifically, the present invention is a device for recognizing data read from a magnetic strip card and data of a barcode entered through a barcode scanner, using the recognized data and controlling the hardware between the devices or by data communication with a computer. The data can be processed on a computer.

종래의 마그네틱 카드 리더시스템은 단순 인식장치로써 데이터를 판독해내는 리이더와, 그 데이터를 받아서 보관하고 있다가 컴퓨터에 전송하는 제어장치가 둘로 나누어져 있기 때문에, 그 시스템의 운용 및 설치가 용이하지 못할 뿐만 아니라 상기 제어장치에 이상이 발생할 경우 그 제어장치에 연결되는 모든 리이더의 작동이 정지되어 버리는 결점이 있었다.The conventional magnetic card reader system is divided into a reader that reads data using a simple recognition device and a control device that receives and stores the data and transmits the data to a computer. Not only that, there was a drawback that when an abnormality occurred in the control device, all readers connected to the control device were stopped.

또한, 상기 시스템은 데이터를 판독해 내서 보관해 두었다가 그 데이터를 처리하는 기능과, 출입문을 제어하는 기능이 구분되어 있는 것이 대부분이며, 특히 제어장치와 리이더가 구분된 장치는 출입문 제어가 불가능하게 되어 있어 별도의 출입문 제어장치를 사용해야 하는 결점이 있었다.In addition, the system reads and stores data, processes the data, and controls a door. In particular, a system in which a control device and a reader are separated cannot control the door. There was a drawback to using separate door controls.

또한, 상기 데이터를 처리할 경우에 시각적인 효과를 나타내기 위하여 이 시스템에 LED 혹은 LCD을 부착하여 카드의 판독 상태를 나타내야 하는 등의 문제점이 있었다.In addition, there has been a problem in that, in order to have a visual effect when processing the data, an LED or an LCD is attached to the system to indicate the reading state of the card.

본 발명은 상기와 같은 제반 사항을 해소하기 위해 발명된 것으로써, 본 발명의 목적은 바코드 스캐너를 접속하여 바코드 데이터를 판독해낼 수 있으며 마그네틱 스트립 카드의 데이터와 병행하여 데이터 처리가 가능하도록 한 것이다.The present invention has been invented to solve the above-mentioned matters, and an object of the present invention is to connect a barcode scanner to read barcode data and to perform data processing in parallel with the data of the magnetic strip card.

본 발명의 다른 목적은 제어장치부와 리이더부가 일체형으로 되어 있어 온라인 통신시에 컴퓨터와 본 제어장치가 1 : 1로 대응하기 때문에 고장이 발생하여도 다른 장치에 전혀 영향을 주지 않도록 한 것이다.Another object of the present invention is that the control unit and the reader unit are integrated so that the computer and the control unit correspond to 1: 1 in online communication, so that even if a failure occurs, the other device is not affected at all.

본 발명의 또 다른 목적은 두개의 리이더를 부착하여 마그네틱 카드데이터와 바코드 데이터를 동시에 처리할 수 있도록 한 것이다.Still another object of the present invention is to attach two readers so that magnetic card data and barcode data can be processed simultaneously.

본 발명의 또다른 목적은 프린터 제어기능이 있기 때문에 본 제어장치로 읽어들인 데이터를 즉시 프린터로 직어낼 수 있도록 한 것이다.Still another object of the present invention is to provide a printer control function so that data read by the control device can be directly output to the printer.

본 발명의 또다른 목적은 출입문 등의 제어기능을 갖는 응용 범위가 넓고, 부품수가 적은 소형으로서 원가 절감과 운반설치 및 운용 조작이 용이하도록 한 것이다.Another object of the present invention is to provide a wide range of applications having a control function such as a door and the like, and a small number of parts, so as to reduce cost and facilitate transportation, installation and operation.

상기한 목적을 달성하기 위한 본 발명의 구성을 첨부도면에 의하여 상세히 설명한다.The configuration of the present invention for achieving the above object will be described in detail by the accompanying drawings.

제1도는 본 발명의 메인부의 회로구성을 나타내는 블록도로써 전체의 동작을 제어하는 마이크로 프로세서(1)와 마이크로 프로세서(1)에 의해 제어되는 신호를 출력하는 디코더(2)와, 그리고 그 디코더(2)에 의해 제어되는 신호를 출력하는 디코더(2)와, 그리고 그 디코더(2)에 의해서 메모리(3)와 입출력을 제어하기 위해 지정되는 입·출력단(4)을 선택한다.1 is a block diagram showing the circuit configuration of the main part of the present invention, a microprocessor 1 for controlling the overall operation, a decoder 2 for outputting a signal controlled by the microprocessor 1, and a decoder ( A decoder 2 for outputting a signal controlled by 2) and an input / output terminal 4 designated by the decoder 2 for controlling the memory 3 and input / output are selected.

상기 메모리(3)는 마이크로 프로세서(1)에 의해서 장치 전체를 제어하는 프로그램이 들어 있는 ROM(3A)과 마이크로 프로세서(1)에서 장치를 제어할 때의 초기값과 각종 파라미터 및 작업 영역을 설정하여 주는 RAM(3B)과, 그리고 마그네틱 스트립 리이터(10)에서 읽어들인 데이터를 일시적으로 보관하는 ROM(3C)로 구성 된다.The memory 3 sets a ROM 3A containing a program for controlling the entire apparatus by the microprocessor 1 and an initial value, various parameters and a work area when the microprocessor 1 controls the apparatus. The main memory is composed of a RAM 3B and a ROM 3C which temporarily stores data read from the magnetic strip writer 10.

상기 입·출력단(4)는 디코더(2)에서 제어되는 신호에 의해 외부이 주변장치 기능들을 제어할 수 있어서 프린터(8), 액정표시판(9), LED(11), 부저(12)등을 제어한다.The input / output terminal 4 can control peripheral device functions by a signal controlled by the decoder 2 to control the printer 8, the liquid crystal panel 9, the LED 11, the buzzer 12, and the like. do.

상기 입·출력단(4)는 마이크로 프로세서(1)에서 내보낸 명령을 디코더(2)가 분석하여 외부 장치에 명령을 보내거나 데이터를 받아들이는 부분으로써 예를들어 클럭(5)에서 발생한 시간을 입·출력단(4)을 통해서 액정표시판(9)에 표시할 경우 입·출력단(4)을 통해서 데이타를 내보낸다.The input / output stage 4 is a portion in which the decoder 2 analyzes a command exported from the microprocessor 1 to send a command to an external device or receive data, for example, inputting a time generated from the clock 5. When displaying on the liquid crystal panel 9 through the output terminal 4, data is sent out through the input / output terminal 4.

상기 클럭(5)은 시간 기능을 내장하고 있어서 년 월 일 시 분 초를 자동적으로 계산하여 주며 백업전원(20)을 연결하여 주면 마이크로 프로세서(1)의 도움이 없이도 자동적으로 시간을 계산한다.The clock 5 has a built-in time function to automatically calculate the year, month, day, hour, minute, and second. When the backup power source 20 is connected, the clock 5 automatically calculates the time without the help of the microprocessor 1.

리셋 신호 발생기(6)는 회로에 리셋 신호를 발생하여 제공하는 기능으로써 공급 전원이 불안정할 경우 순간적인 정전에 의해 장치의 작동이 멈춰버릴 수가 있는데 이때 장치에 리셋 신호를 제공하여 준다.The reset signal generator 6 generates and provides a reset signal to the circuit. When the power supply is unstable, the operation of the device may be stopped by a momentary power failure. In this case, the reset signal generator 6 provides a reset signal to the device.

종래의 장치들은 리셋 신호를 발생하여 주는 회로에 문제가 있어서 순간적인 정전으로 작동이 멈춰버리거나 이상 동작을 하는 경우가 종종 발생하는 일이 있는데 본 장치는 전원이 순간적으로 끊어지더라도 리셋신호를 발생시켜 주므로 장치의 작동이 멈추거나 오동작을 일으키지 않는다.Conventional devices have a problem in the circuit that generates the reset signal, the operation is often stopped or abnormal operation due to a momentary power failure, the device generates a reset signal even if the power is momentarily It does not stop the device or cause malfunction.

통신 드라이버(7)는 본 장치와 컴퓨터 사이에 통신을 할 경우 또는 바코드 스캐너로 인식한 데이터를 장치에 입력할 경우 통신 장치를 구동시켜 주는 기능이다.The communication driver 7 functions to drive the communication device when communicating between the device and a computer or when inputting data recognized by a barcode scanner into the device.

제2도는 본 발명의 입출력부의 회로 구성을 나타내는 블록도로써, 외부 주변장치들을 제어하는 기능을 나타내고 있다. 버퍼(21)는 프린터(8)와 액정표시판(9)에 DATA를 내보낼때 데이터의 안정성을 위해 부착하며 프린터(8)의 경우 데이터를 주고 받을 때 회로에 영향을 미치는 것을 막아주는 완충 역할을 한다.2 is a block diagram showing a circuit configuration of an input / output unit of the present invention, and shows a function of controlling external peripheral devices. The buffer 21 is attached to the printer 8 and the liquid crystal panel 9 for the stability of the data when the data is exported, and in the case of the printer 8, the buffer 8 prevents the influence on the circuit when exchanging data. .

상기 프린터(8)는 기존의 어떤 제품이라도 연결이 가능하며 본 장치에서는 마그네틱 스트립 리이더(10)로 읽어들인 데이터를 프린터(8)에 찍을 수 있으며 컴퓨터와 본 장치를 연결하여 컴퓨터에서 보내오는 데이터를 본 장치를 통해서 프린터(8)을 찍을 수 있다.The printer 8 can be connected to any existing product, and in this device, the data read by the magnetic strip reader 10 can be taken to the printer 8, and the data sent from the computer by connecting the computer and the device. The printer 8 can be photographed through the apparatus.

상기 액정표시판(9)은 마그네틱 스트립 리이터(10)의 데이터를 표시하며 클럭(5)에 보내오는 년 월 일 시 분 초를 표시하고 KEY PAD에서 KEY를 누름에 따라 기능의 상태 및 파라미터를 설정하고 표시하며 기타 마이크로 프로세서(1)에 의해 제어되는 장치의 상태를 표시한다.The liquid crystal panel 9 displays the data of the magnetic strip writer 10 and displays the year, month, day, hour, minute, and second sent to the clock 5, and sets the state and parameters of the function as the KEY is pressed on the KEY PAD. And display the status of the device controlled by the other microprocessor 1.

상기 마그네틱 스트립 리이더(10)는 마그네틱 스트립 카드의 데이터를 읽어서 마이크로 프로세서(1)로 보내는 역할을 하며 단순히 데이터를 입력하는 기능을 갖는다.The magnetic strip reader 10 reads data from the magnetic strip card and sends the data to the microprocessor 1 and has a function of simply inputting data.

상기 LED(11)는 마이크로 프로세서(1)에서 마그네틱 스트립 리이더(10)가 읽어들인 데이터의 정상, 에러를 판별하여 표시하며 키이패드의 눌림 상태에 따라 기능을 나타낼 때 LED(11)에 표시한다.The LED 11 determines the normal or error of the data read by the magnetic strip reader 10 from the microprocessor 1 and displays the function according to the pressed state of the keypad. .

상기 부저(12)는 LED(11)와 마찬가지로 데이터의 정상, 에러를 부저음으로 표현하여 카드가 정상적으로 읽혀졌는지 판단할 수 있으며, 키이패드(13)에서 KEY를 누를때 올바로 눌렀는지의 여부를 판단하여 부저음으로 표현한다.Like the LED 11, the buzzer 12 may express whether the data is normal or error with a buzzer sound to determine whether the card is normally read, and determine whether the key is pressed correctly when the key 13 is pressed on the keypad 13. Express it with a buzzer.

상기 키이패드(13)는 본 장치가 가지고 있는 각종 기능들을 설정할 경우 키이패드(13)를 이용하여 비밀번호, 통신속도, 장치의 번지, 출입문 제어시 제어모드 그룹(GROUP), 개인, 키이모드(KEY-MODE), 메모리의 현재 남아있는 용량 및 저장되어 있는 데이터의 건수 등 상태표시, 메모리에 저장되어 있는 데이터의 건수 등 상태표시, 메모리에 저장되어 있는 데이터 삭제, 액정표시판(9)에 표시하는 년 월 일 시 분 초의 변경을 할 수 있다.The keypad 13 uses the keypad 13 to set various functions possessed by the device. The password, communication speed, address of the device, and control mode group (GROUP), individual, and key mode (KEY) at the time of door control are used. -MODE), status display such as the current remaining capacity of memory and the number of data stored, status display such as the number of data stored in memory, erasure of data stored in memory, year displayed on LCD panel You can change the month day hour minute second.

통신(14)은 컴퓨터와 본 장치, 본 장치와 본 장치 사이의 데이터 전송시 필요한 부분으로써 본 장치의 통신 방식을 RS-422A 직렬 통신 방식이다.Communication 14 is a part necessary for data transmission between a computer and the device, and the device and the device, and the communication method of the device is an RS-422A serial communication method.

종래의 장치(RGC-900)는 STAND ALONE TYPE으로 장치 자체에에 제어장치 기능을 내장하고 있어서 컴퓨터와 장치 사이의 통신(14)은 RS-232R 통신 방식으로 하고 장치와 장치 사이의 통신(14)은 RS-422A방식을 채택하여 컴퓨터와 연결하는 장치를 제어장치로 설정하므로 다른 장치들이 이 제어장치를 경유하여 컴퓨터와 통신(14)을 하도록 되어 있다.The conventional device (RGC-900) is a STAND ALONE TYPE, which has a built-in control function in the device itself. Since RS-422A is used to set the device to be connected to the computer as a control device, other devices communicate with the computer 14 via this control device.

그러나, 이 장치의 단점은 제어장치가 고장을 일으킬 경우 컴퓨터와 타 장치들 사이의 통신이 두절되어 데이터 전송을 전혀할 수가 없게 된다.However, the disadvantage of this device is that if the control device fails, communication between the computer and other devices is lost and data transmission is not possible at all.

이런 단점을 보완하여 본 장치는 컴퓨터와 연결시 RS-422A로 통신을 하도록 하여 모든 장치가 MULTI-DROP 방식으로 연결되므로 장치 개개가 컴퓨터와 1 : 1로 대응하도록 하였다.To compensate for this drawback, the device communicates with RS-422A when connected to a computer, so that all devices are connected to the computer as 1: 1 by using MULTI-DROP method.

또한, 종래의 장치는 컴퓨터와 제어장치의 사이의 통신 거리가 수십미터밖에 되지 않았으나 본 장치는 1.5km까지 데이터를 전송할 수 있다.In addition, the conventional device has a communication distance of only a few tens of meters between the computer and the control device, but the device can transmit data up to 1.5 km.

바코드 스캐너(15)와 TTL신호 입·출력단(16)은 단일 포트를 공유하여 외부와 연결하며 용도에 따라 변환 스위치(17)을 조작하여 바코드 스캐너(15)도는 TTL신호 입·출력단(16)으로 이용한다. 바코드 스캐너(15)는 제1도에 나타나 있는 통신 드라이버(7)와 연결하여 RS-232C 통신을 수행하며, 바코드 스캐너(15)에서 읽어들인 데이터를 마이크로 프로세서(1)로 보낸다.The barcode scanner 15 and the TTL signal input / output terminal 16 share a single port and are connected to the outside, and the barcode scanner 15 or the TTL signal input / output terminal 16 is operated by operating the conversion switch 17 according to the purpose. I use it. The barcode scanner 15 connects to the communication driver 7 shown in FIG. 1 to perform RS-232C communication, and transmits data read from the barcode scanner 15 to the microprocessor 1.

신호 입·출력단(16)은 TTL 레벨 신호를 처리하는 장비와 연결할 때 이용한다.The signal input / output terminal 16 is used to connect with equipment that processes TTL level signals.

입력회로(18)는 출력회로(19)와의 조합에 의해 전기도어록을 제어하는 회로를 구성하여 출입문을 제어하는 부분이며 출력회로(19)의 남은 접점은 출입문 제어시 문의 열림 상태를 체크하여 알람을 울려주거나 외부에 벨이나 램프등을 달아서 마그네틱 스트립 카드를 읽을 때 데이터가 정상일 경우 벨을 울리거나 램프를 켜주는 역할을 하도록 한다.The input circuit 18 constitutes a circuit for controlling the electric door lock by a combination with the output circuit 19 to control the door. The remaining contact of the output circuit 19 checks the open state of the door to control the alarm. When you read the magnetic strip card by ringing or attaching a bell or lamp on the outside, it plays the role of ringing the bell or turning on the lamp when the data is normal.

백업전원(20)은 본 장치가 정전으로 인하여 작동을 멈출경우 내부에 저장되어 있는 DATA가 보존이 되어야 하므로 이 백업전원(20)을 부착하여 RAM(3B), (3C)에 저장된 데이터를 보존하고 클럭(5)에 들어있는 년 월 일 시 분 초의 데이터를 보존할 뿐 아니라 정상적인 시간을 개선할 수 있게 하여준다.The backup power source 20 should be preserved when the device stops working due to a power failure. Therefore, the backup power source 20 is attached to the backup power source 20 to preserve the data stored in the RAMs 3B and 3C. In addition to preserving the data of the year, month, day, hour, minute, and second contained in the clock (5), the normal time can be improved.

이와같이 구성된 본 발명의 작용 및 효과를 설명하면 다음과 같다.Referring to the operation and effects of the present invention configured as described above are as follows.

제3도는 제1도와 제2도를 조합한 상태를 나타내는 회로블록도로써, 먼저 전원 스위치를 켜면 리셋 신호 발생기(6)에서 리셋 신호를 발생하여 마이크로 프로세서(1) 및 주변회로의 I.C를 초기화한 뒤 본 장치가 정상적으로 작동할 수 있는 준비를 갖춘다 마그네틱 스트립 리이더(10)가 바코드 스캐너(15) 또는 TTL신호 입·출력단(16)에서 읽혀진 데이터가 각각 마이크로 프로세서(1)로 입력되거나 또는 동시에 읽혀진 데이터가 입력될 때 마이크로 프로세서(1)는 입력된 데이타를 판독하여 정상인지 아닌지를 구별하며 정상일 경우 먼저 디코더(4)를 통해서 메모리(3C)에 데이타를 저장하고, 입·출력단(6)을 경유하여 버퍼(21)를 통해서 액정표시판(9)에 데이타를 표시한다.FIG. 3 is a circuit block diagram showing a combination of FIG. 1 and FIG. 2. When the power switch is first turned on, the reset signal generator 6 generates a reset signal to initialize the IC of the microprocessor 1 and the peripheral circuit. The device is ready for normal operation. The data read from the barcode scanner 15 or the TTL signal input / output terminal 16 by the magnetic strip reader 10 is input to the microprocessor 1 or read simultaneously. When data is input, the microprocessor 1 reads the input data to distinguish whether or not it is normal. If the data is normal, the microprocessor 1 first stores the data in the memory 3C through the decoder 4 and passes through the input / output terminal 6. The data is displayed on the liquid crystal panel 9 through the buffer 21.

그리고 차례로 부저(12)를 한번 울린 뒤 LED(11)에 불을 켜 준다. 또한, 필요시에 버퍼(21)를 통해서 프린터(9)로 데이타를 찍어낸다.And turn on the buzzer (12) once and then light the LED (11). If necessary, data is taken out to the printer 9 through the buffer 21.

만일 입력된 데이타가 비 정상일 경우 입·출력단(4)을 통해 부저(12)를 네번 울린 뒤 비 정상을 의미하는 LED(11)에 불을 켜 준다. 클럭(5)은 시간 계산 기능이 내장되어 있어서 마이크로 프로세서(1)의 제어없이도 시간 계산을 하여 년 월 일 시 분 초를 생성하며 마그네틱 스트립 리이더(10)에서 데이터가 입력될 경우 시간을 발생하여 RAM(3C)에 데이터와 같이 저장하며 동시에 액정표시판(9)에 주기적으로 시간을 표시한다. 백업전원(20)은 전원이 끊어졌을 때 RAM(3B), (3C)에 보관되어 있는 데이타 및 초기 설정값들을 보존하며 클럭 (5)에도 백업전원(20)을 공급하여 전원이 없어도 시간 계산을 가능하게 하며 현재 시간을 생성시킨다.If the input data is abnormal, the buzzer 12 is sounded four times through the input / output stage 4 and then lights up the LED 11 which means abnormal. The clock 5 has a built-in time calculation function, so that the time calculation is performed without the control of the microprocessor 1 to generate the year, month, day, hour, minute, second, and generate time when data is input from the magnetic strip reader 10. The data is stored in the RAM 3C together with the data, and at the same time, the time is periodically displayed on the liquid crystal panel 9. The backup power supply 20 preserves the data and initial settings stored in the RAMs 3B and 3C when the power is turned off. The backup power supply 20 also supplies the backup power supply 20 to the clock 5 to calculate the time even when there is no power supply. To generate the current time.

키이패드(13)는 입·출력단(4)을 경유하여 키이 눌림 상태를 마이크로 프로세서(1)가 인식하게 되며 키이패드(13)에 있는 KEY 눌림에 따라 설정된 파라미터를 RAM(3B)에 보관하여 본 장치가 작동을 수행할 때 RAM(3B)에 보관된 파라미터에 의해 작동이 수행되도록한다. 키이패드(13)의 키이를 누를때 키이의 눌림상태를 마이크로 프로세서(1)가 인식하여 정상적으로 눌렸을 경우 부저(12)를 한번 울리고 키이눌림이 비정상적이거나 설정된 파라미터와 일치하지 않을 경우 부저(12)를 네번 울려준다.The keypad 13 recognizes the state in which the key is pressed via the input / output terminal 4, and the parameters set according to the key press on the keypad 13 are stored in the RAM 3B. When the device performs the operation, the operation is performed by the parameters stored in the RAM 3B. When the key of the keypad 13 is pressed, the microprocessor 1 recognizes the pressed state of the key and if the key is pressed normally, the buzzer 12 sounds once and if the key press is abnormal or does not match the set parameter, the buzzer 12 Ring four times.

RAM(3C)에 저장되어 있는 데이터를 필요시에 통신(14)으로 컴퓨터에 전송하여 일괄 처리하며 전송하는 방법은 두가지로 부류된다. 하나는 데이타를 RAM(3C)에 일정 기간 보관하여 두었다가 컴퓨터로 보내는 방법과 또 다른 하나는 마그네틱 스트립 리이더(10)에서 데이타를 읽은 뒤 마이크로 프로세서(1)가 데이타를 판정하여 정상일 경우에만 데이타를 통신(7)을 통해서 컴퓨터로 온라인(ON-LINE)송신하는 방법이 있다.There are two types of methods for transferring data stored in the RAM 3C to a computer 14 as necessary, for batch processing. One method is to store the data in RAM (3C) for a certain period of time and send it to a computer. The other method reads data from the magnetic strip reader 10, and then the microprocessor 1 determines the data and stores the data only when it is normal. There is a method of ON-LINE transmission to the computer through the communication (7).

이것은 본 장치의 가장 중요한 부분중의 하나이며 컴퓨터와 통신(14)을 수행할 경우 컴퓨터 한대 당 100대의 본 장치를 연결하여 통신(14)을 수행할 수 있다.This is one of the most important parts of the device, and when performing communication 14 with a computer, it is possible to connect 100 of the devices per computer to perform communication 14.

그리고 본 장치의 핵심적인 기능중의 하나가 본 장치를 이용하여 외부장치(출입문, 복사기, 벨, 램프)를 제어하는 것으로서 출입문을 제어할 경우 입력장치(18)와 출력장치(19)의 조합으로 전기도어록(ELEC-TRIC DOOR LOCK)을 제어하여 출입문의 개폐를 조작할 수 있으며, 작동 방법은 마그네틱 스트립 리이더(10)에서 읽어들인 데이타를 마이크로 프로세서(1)가 판독하여 정상일 경우 RELAY(RL1)의 접점을 붙여서 전기도어록에 전류를 흘려주어 출입문을 오픈(OPOEN)하며 비 정상적인 데이타일 경우 릴레이(RL2)의 접점을 붙여서 이곳에 벨 또는 램프를 부착하여 출입문이 열리지 않음을 알려준다.One of the essential functions of the device is to control an external device (entrance door, copier, bell, lamp) using the device. When controlling the door, the combination of the input device 18 and the output device 19 is used. It is possible to control the opening and closing of the door by controlling the electric door lock (ELEC-TRIC DOOR LOCK), and the operation method is RELAY (RL1) when the microprocessor 1 reads the data read from the magnetic strip reader 10 normally. The door is opened (OPOEN) by applying a current to the electric door lock, and in case of abnormal data, the contact of the relay (RL2) is attached to it and a bell or lamp is attached to indicate that the door is not opened.

또한, 출입문이 임의로 열려있을 경우 문이 열려 있음을 마이크로 프로세서(1)가 감지하여 부저(12)를 울려주므로서 확일할 수 있다.In addition, when the door is arbitrarily opened, the microprocessor 1 detects that the door is open and can be confirmed by ringing the buzzer 12.

또한 복사기를 제어하기 위해서는 부가적인 회로가 첨가되어야 하며 본 장치에는 들어있지 아니하다.In addition, additional circuitry must be added to control the copier and is not included in the device.

그러나, 외부에 회로를 부착하여 본 장치의 출력장치(19)와 연결을 할 경우 복사기의 내부에 본 장치의 접점을 연결하여 복사기의 작동을 제어할 수 있다. 마그네틱 스트립 카드를 마그네틱 스트립 리이더(10)에 읽어서 그 데이타가 정상인지 아닌지를 마이크로 프로세서(1)가 판별한후에 복사기가 작동하도록 한다.However, when the circuit is attached to the outside and connected to the output device 19 of the device, the operation of the copier can be controlled by connecting the contact of the device to the inside of the copier. The magnetic strip card is read into the magnetic strip reader 10 so that the copier operates after the microprocessor 1 determines whether or not the data is normal.

그리고, 본 장치를 단순 카드리더시스템이 아닌 타 장치와의 인터페이스에 의한 응용 제품으로 이용할 수가 있으며 홈 오토메이션 및 팩토링 오토메이션 에로의 접목을 시도할 수도 있다.In addition, the device can be used as an application product by interfacing with other devices rather than a simple card reader system, and can also be incorporated into home automation and factoring automation.

제4도는 본 발명의 전체적인 동작을 제어하는 흐름도로써, 상기 제3도와 연계시켜 설명한다.4 is a flowchart for controlling the overall operation of the present invention, which will be described in connection with FIG.

먼저 전원 스위치를 켜면 리셋 신호 발생기(6)에서 리셋 신호를 발생하여 마이크로 프로세서(1)가 ROM(3A)에서 프로그램을 읽어들여 동작이 시작된다.When the power switch is first turned on, the reset signal generator 6 generates a reset signal, and the microprocessor 1 reads a program from the ROM 3A to start operation.

흐름도,는 RAM(3C)의 여유 공간을 체크(CHECK)하여 여유공간이 있을 때는 액정표시판(9)에 스캐닝(SCANNING)이란 메시지(MESSAGE)를 표시하고 흐름도 ①로 간다.Flowchart, Checks the free space of the RAM 3C, displays a scanning message MESSAGE on the liquid crystal panel 9 when there is free space, and goes to the flowchart ①.

만약, 여유공간이 없을 때에는 액정표시판(9)에 풀(FULL)이란 메시지를 표시하고 마그네틱 스트립 리이더의 입력을 중지시킨후, 흐름도 ①로 간다.If there is no free space, a message “FULL” is displayed on the liquid crystal panel 9, the input of the magnetic strip reader is stopped, and the flow proceeds to the flowchart ①.

흐름도 ①은 키이패드(13)의 누름을 검출하는 부분으로 키이패드(13)의 눌림을 검출하지 못하였을 때에는 흐름도 ,로 간다.The flowchart ① is a part which detects the press of the keypad 13, and when the press of the keypad 13 is not detected, Go to

만약, 키이패드(13)의 누름이 검출되면 눌림상태(키이패드(13)의 번호)에 따라 가능처리 부분으로 분기한다.If the pressing of the keypad 13 is detected, it branches to the possible processing part according to the pressed state (the number of the keypad 13).

키이패드(13)의 "0"번이 눌려졌을 때에는 날짜, 시간, 요일을 변경하는 부분으로 키이패드(13)으로부터 암번호를 입력받아 저장암번호(RAM(3B))와 비교후 틀리면 암번호를 다시 입력받는다. 정상 암번호를 입력하였을 경우 새로운 날짜, 시간, 요일을 키이패드(13)로부터 입력 받는다.When "0" of the keypad 13 is pressed, the password is inputted from the keypad 13 as a part for changing the date, time, and day of the week, and compared with the storage password (RAM (3B)). Will be input again. When a normal password is entered, a new date, time, and day of the week are input from the keypad 13.

새로운 날짜, 시간, 요일을 입력 받은후 입력 날짜, 시간, 요일이 정상인가를 비교하여 비정상이면 다시 키이패드(13)로부터 입력을 받는다. 정상이면 새로운 날짜, 시간, 요일을 클럭(5)에 출력하여 변경시킨후 흐름도,로 간다.After inputting a new date, time, and day of the week, the input date, time, and day of the week are compared to be normal, and if it is abnormal, the input is received from the keypad 13 again. If normal, the new date, time, day of the week is outputted to the clock (5), changed, and then the flow chart, Go to

키이패드(13)의 "1"번이 눌려졌을 때에는 저장 암번호를 변경하는 부분으로 키이패드(13)으로부터 암번호를 입력받아 저장암번호(RAM(3B))와 비교후 틀리면 암번호를 다시 입력받는다.When "1" of the keypad 13 is pressed, it is a part for changing the storage password and receives the password from the keypad 13 and compares it with the storage password (RAM (3B)). Receive input.

정상 암번호를 입력하였을 경우 새로운 저장 암번호를 키이패드(13)로부터 입력받고 입력 완료후 새로운 저장 암번호를 RAM(3B)에 저장한 후 흐름도 ,로 간다.When the normal password is entered, a new storage password is input from the keypad 13 and after completion of the input, the new storage password is stored in the RAM 3B. Go to

키이패드(13)의 "2"번의 눌려졌을 때에는 장치의 변경하는 부분으로 키이패드(13)으로부터 암번호를 입력받아 저장 암번호(RAM(3B))와 비교후 틀리면 암번호를 다시 입력받는다.When the "2" times of the keypad 13 is pressed, a password is inputted from the keypad 13 as a part of changing the device, and the password is input again when the password is different from the storage password (RAM 3B).

정상 암번호를 입력하였을 경우 새로운 장치의 번지를 키이패드(13)로부터 입력 받고 입력 완료후 새로운 장치의 번지를 ROM(3B)에 저장한후 흐름도,로 간다.When the normal password is entered, the address of the new device is inputted from the keypad 13, and after completion of the input, the address of the new device is stored in the ROM 3B, and then the flowchart, Go to

키이패드(13)의 "3"번이 눌려졌을 때에는 통신(14)속도를 변경하는 부분으로 키이패드(13)으로부터 암번호를 입력받아 저장암번호(RAM(3B))와 비교후 틀리면 암번호를 다시 입력받는다.When "3" of the keypad 13 is pressed, it is a part for changing the communication 14 speed, receives the password from the keypad 13, compares it with the storage password (RAM (3B)), and then compares it with the password. Will be input again.

정상 암번호를 입력하였을 경우 새로운 통신(14)속도를 키이패드(13)로부터 입력받고 입력 완료후 새로운 통신(14) 속도를 RAM(3B)에 저장한 후 직렬통신 담당 IC(마이크로 프로세서 (1)에 내장)의 속도를 변경시킨 후 흐름도,로 간다.When the normal password is entered, the new communication 14 speed is input from the keypad 13, and after completion of input, the new communication 14 speed is stored in the RAM 3B, and the serial communication charge IC (microprocessor 1) is inputted. Flow chart, after changing the speed) Go to

키이패드(13)의 "4"번이 눌려졌을 때에는 통신(14)속도를 변경하는 부분으로 키이패드(13)으로부터 암번호를 입력받아 저장 암번호(RAM(3B))와 비교후 틀리면 암번호를 다시 입력받는다.When "4" of the keypad 13 is pressed, it is a part for changing the communication 14 speed and receives the password from the keypad 13 and compares it with the storage password (RAM (3B)). Will be input again.

정상 암번호를 입력하였을 경우 새로운 통신(14)속도를 키이패드(13)로부터 입력 받고 입력 완료후 새로운 통신(14)속도를 RAM(3B)에 저장한후 직렬통신 담당 IC(마이크로 프로세서 (1)에 내장)의 속도를 변경시킨 후 흐름도,로 간다.When the normal password is entered, the new communication 14 speed is input from the keypad 13 and after completion of the input, the new communication 14 speed is stored in the RAM 3B, and the serial communication charge IC (microprocessor 1) is inputted. After changing the speed of the built-in flow chart, Go to

키이패드(13)의 "5", "6", "7", "8", "9"번이 눌려졌을 때에는 출근, 퇴근, 외출, 귀사, 기타 모드(MODE)로 변경하는 부분으로 저장모드(RAM(3B))을 변경한후 흐름도,로 간다.When "5", "6", "7", "8", and "9" of the keypad 13 are pressed, it is the part to change to work, leave, go out, your company, and other modes. After changing (RAM (3B)), Go to

흐름도,에서는 RAM(3C)의 여유공간을 액정표시판(9)에 표시하고 프린터로 출력할 데이터가 있는지를 체크한다. 프린터로 출력할 데이터가 있으면 프린터(8)을 통여 출력한후 마그네틱 스트립 리이더(10)로부터 데이터 입력 여부를 비교한후 입력 데이터가 없을 때에는 흐름도,로 분기한다.Flowchart, In the above, the free space of the RAM 3C is displayed on the liquid crystal panel 9, and it is checked whether there is data to be output to the printer. If there is data to be output to the printer, it is output through the printer (8), and then the data is input from the magnetic strip reader (10). Branch to

입력 데이터가 있을 때에는 정상 데이터 인가를 비교하는데 만약 비정상적인 데이터일 경우는 LED(11), 부저(12)에 비정상임을 표시한후 흐름도 ,로 간다.If there is input data, compare normal data application. If abnormal data, LED 11 and buzzer 12 indicate abnormality, Go to

정상일 경우는 지금 설정되어 있는 상태가 제어모드인가 근태모드인가를 비교하여 제어상태일 경우 개시 그룹(GROUP), 키이(KEY)제어 인가를 비교하여 키이 제어일 경우는 흐름도,로 분기한다.If it is normal, compare the current mode with the control mode or time and attendance mode. If it is the control state, compare the start group (GROUP) and the key control. Branch to

그룹 제어일 경우는 마그네틱 스트립 리더(10)의 입력 데이터와 저장되어 있는 (RAM(3B))그룹코드와 설정되어 있는 길이 만큼 비교하여 비정상일 경우는 액정표시판(9)에 워링 (WARNING) 메시지를 표시하고 날짜, 시간, 요일, 상태, 입력 데이터를 조합하여 RAM(3C)에 저장한다. 저장후 LED(11), 부저(12)에 비정상임을 표시하고 흐름도,로 간다. 만약, 정상일 경우는 액정표시판(9)에 패스(PASS)메시지를 표시하고 LED(11)와 부저(12)에 정상임을 표시하고 흐름도,로 간다.In the case of group control, the input data of the magnetic strip reader 10 is compared with the stored (RAM (3B)) group code by the set length, and in case of abnormality, a warning message is displayed on the liquid crystal panel 9. The date, time, day of the week, status, and input data are combined and stored in the RAM 3C. After storing the LED (11), buzzer (12) indicates abnormality and flow chart, Go to If it is normal, a PASS message is displayed on the liquid crystal panel 9, and the LED 11 and the buzzer 12 are displayed normally. Go to

그러나, 키이 제어일 경우는 흐름도,로 분기하고 근태모드일 경우는 마그네틱 스트립 리더(10)의 입력 데이터를 RAM(3C)에 저장하고 액정표시판(9)에 표시한 후 프린터 출력을 위하여 RAM(3B)에 날짜, 시간, 입력 데이터 그리고 출근, 퇴근, 외출, 귀사, 기타 모드중 설정(RAM(3B))되어 있는 모드의 한글 그래픽 폰트를 조합하여 저장한다. 상기 작업이 완료된 후 정상 입력임을 LED(11)과 부저(12)에 표시한후 흐름도,로 간다.However, if the key is control, the flow chart, In the case of T & A mode, the input data of the magnetic strip reader 10 is stored in the RAM 3C, displayed on the LCD panel 9, and then the date, time, input data and the like in the RAM 3B for printer output. Stores a combination of Korean graphic fonts in the mode of going to work, leaving work, going out, your company, or other modes (RAM (3B)). After the operation is completed, the flow chart after indicating that the normal input to the LED (11) and the buzzer (12), Go to

흐름도,에서는 액정표시판에 엔터코드(ENTER CODE)메시지를 표시하고 키이패드(13)의 입력을 기다린다. 1초가 경과할 때까지 키이패드(13)의 입력이 없으면 흐름도,로 분기한다.Flowchart, Displays an enter code message on the liquid crystal panel and waits for input of the keypad 13. If there is no input of keypad 13 until 1 second has elapsed, Branch to

만약, 4초가 경과하기 전까지 키이패드(13)의 입력이 있으면 입력 데이터를 RAM(3B)에 저장하고 키이패드(13)으로부터 새로운 입력을 기다린다. 새로운 입력을 기다리는 대기시간은 4초이며 4초가 경과할 때까지 입력이 없으면 흐름도,로 분기한다.If there is an input of the keypad 13 before 4 seconds have elapsed, the input data is stored in the RAM 3B and a new input is waited from the keypad 13. Waiting time for new input is 4 seconds and if there is no input until 4 seconds elapse, flow chart, Branch to

상기 키이패드(13)의 입력작업은 엔터키이(ENTER KEY)가 입력될 때까지 반복되며 엔터키이가 입력되면 RAM(3B)에 저장되어 있는 키이패드(13)의 입력 데이터와 마그네틱 스트립 리이더의 입력 데이터를 설정 길이만큼 비교하여 비정상이면 흐름도,로 분기한다.The input operation of the keypad 13 is repeated until the enter key is input. When the enter key is input, the input data of the keypad 13 and the magnetic strip reader stored in the RAM 3B are input. If the input data is compared by the set length and abnormal, the flow chart, Branch to

정상이면 LED(11)에 정상임을 액정표시판(9)에 패스(RSAA) 메시지를 표시하고 흐르모,로 간다.If it is normal, the LED 11 shows normal and displays a pass (RSAA) message on the liquid crystal panel 9, Go to

흐름도,는 LED(11), 부저(12)에 비정상임을 액정표시판(9)에 워링(WARNING) 메시지를 표시한 후 날짜, 시간, 요일, 상태, 입력 데이터를 조합하여 RAM(3C)에 저장하고 흐름도,로 간다.Flowchart, Displays a warning message on the LCD panel 9 that the LED 11 and the buzzer 12 are abnormal, and stores the date, time, day of the week, state, and input data in the RAM 3C. Go to

흐름도,에서는 클럭(5)에서 날짜, 시간, 요일을 입력받아 액정표시판에 표시한후 다시한번 지금 설정되어 있는 상태가 제어모드인가 근태모드인가를 비교하고 근태모드일 경우는 흐름도,로 분기한다.Flowchart, In the clock (5) input the date, time, day of the week and display on the liquid crystal display and once again compares whether the current status is the control mode or time and attendance mode. Branch to

제어상태일 경우 다시 그룹, 키이 제어인가를 비교하여 키이 제어일 경우는 RAM(3B)에 저장되어 있는 키이패드(13)의 입력 데이터와 마그네틱 스트립 리이더의 입력 데이터를 그룹 제어일 경우는 마그네틱 스트립 리더(10)의 입력 데이터와 저장되어 있는(RAM(3B))그룹코드와 설정되어 있는 길이만큼 비교하여 비정상일 경우는 흐름도,로 분기하고 정상일 경우는 흐름도,로 분기한다. 흐름도,에서는 저장되어 있는 (RAM(35)출입문, 열림시간을 비교하여 열림시간이 제로(ZERO)인가를 판단한다.In the control state, the group and the key are controlled again. In the case of the key control, the input data of the keypad 13 stored in the RAM 3B and the input data of the magnetic strip reader are the group strip. When the input data of the reader 10 is compared with the stored group code (RAM (3B)) by the set length, and when it is abnormal, a flowchart, Branch to the normal flow, Branch to Flowchart, Compares the entry (RAM 35), the opening time, and determines whether the opening time is zero.

만약 열림 시간이 제로일 경우는 입력장치 X0(18) 입력부분으로 분기하고, 그렇지 않은 경우는 출력장치 Y0(19)를 연결하고 설정시간을 카운트한다. 설정 시간과 카운트한 시간이 같아지면 Y0(19)를 끊고 X0(18) 입력부분으로 간다.If the open time is zero, branch to the input device X0 (18) input part, otherwise connect the output device Y0 (19) and count the set time. If the set time is equal to the counted time, disconnect Y0 (19) and go to X0 (18) input part.

X0(18) 입력부분에서는 출입문의 열림상태를 감시하는데 만약 출입문이 설정시간이 경과하고도 출입문일 닫히지 않았을 경우에는 액정표시판(9)에 "CHK DOOR"메시지를 부저에 비정상임을 표시하고 마그네틱 스트립 리이더의 입력을 중지시키고 입력 데이터 저장부분으로 간다.X0 (18) input part monitors the door's open state. If the door is not closed even after the set time has elapsed, the LCD panel 9 shows the message "CHK DOOR" on the buzzer and the magnetic strip Stop input of the header and go to the input data storage section.

그러나, 정상적으로 출입문이 닫혀을 경우에는 액정표시판(9)에 스캐닝(SCANNING)메시지를 표시한후 입력 데이터 저장부분으로 간다. 입력 데이터 저장부분에서는 날짜, 시간, 요일, 상태, 입력 데이터를 조합하여 RAM(3C)에 저장한후 흐름도,로 간다.However, when the door is normally closed, the scanning message is displayed on the liquid crystal panel 9 and then the input data storage part is moved. In the input data storage section, a date, time, day of the week, status, and input data are stored in the RAM 3C, and then the flowchart, Go to

흐름도,에서는 마그네틱 스트립 리이더에서 입력된 데이터가 비정상적일때 즉 키이 제어일 경우는 RAM(3B)에 저장되어 있는 키이패드(13)의 입력 데이터와 마그네틱 스트립 리이더의 입력 데이터를 그룹 제어일 경우는 마그네틱 스트립 리더(10)의 입력데이터와 저장되어 있는(RAM(3B))그룹코드와 설정되어 있는 길이 만큼 비교하여 비정상일 경우에 처리하는 부분으로 저장되어 있는(RAM(3B))알람 시간을 비교하여 알람 시간이 제로인가를 판단한다.Flowchart, In the case where the data input from the magnetic strip reader is abnormal, that is, if the key control is performed, the input data of the keypad 13 stored in the RAM (3B) and the input data of the magnetic strip reader are the group control. It compares the input data of the reader 10 with the stored group code (RAM 3B) by the set length and compares the alarm time stored as a part to be processed in case of abnormality (RAM 3B). Determine if time is zero.

만약, 알람 시간에 제로일 경우는 흐름도,로 분기하고 그렇지 않을 경우는 출력장치 Y1(19)를 연결하고 설정시간을 카운트한다. 설정 시간과 카운트한 시간이 같아지면 Y1(19)를 끊고 액정표시판(9)에 스캐닝(SCANNING) 메시지를 표시한후 흐름도,로 간다.If the alarm time is zero, the flow chart, If not, connect the output device Y1 (19) and count the set time. If the set time and the counted time are the same, Y1 (19) is cut off and a scanning message is displayed on the liquid crystal panel (9). Go to

흐름도,에서는 바코드 스캐너(15)와 TTL신호 입·출력단(16)으로부터 입력된 데이터를 처리하는 부분으로 입력 데이터가 없을 때에는 통신(14) 입·출력부분으로 간다.Flowchart, In the process of processing the data input from the barcode scanner 15 and the TTL signal input / output terminal 16, if there is no input data, the communication 14 goes to the input / output portion.

만약, 입력 데이터가 있을 때에는 데이터를 분석하여 ASCII CODE인가 BAR IMAGE인가를 판단하여 BAR IMAGE 일때는 코드 변환 작업을 거쳐 ASCII CODE로 변환한다.If there is input data, the data is analyzed to determine whether it is an ASCII CODE or a BAR IMAGE, and when it is a BAR IMAGE, it is converted to an ASCII CODE after code conversion.

그다음 입력 데이터를 액정표시판(9)에 표시하고 날짜, 시간, 요일, 상태, 입력 데이터를 조합하여 RAM(3C)에 저장한후 통신(14) 입·출력부분으로 간다. 통신(14) 입··출력부분에서는 입력 데이터가 있는지를 비교하여 없을 때에는 흐름도(A)로 분기한다.Then, the input data is displayed on the liquid crystal panel 9, and the date, time, day of the week, state, and input data are combined and stored in the RAM 3C, and then the communication 14 goes to the input / output part. The communication 14 input / output section branches to the flow chart A when there is no input data compared.

만약, 입력 데이터가 있을 때에는 흐름도 ②로 분기하여 GR(CARRIGE-RETURN)데이터가 입력 될때까지 데이터를 RAM(3B)에 저장한다. 계속적인 데이터를 입력받아 GR(CARRIGE RETURN)인가를 비교하는데 GR(CARRIGE RETURN) 데이터가 검출되지 않았을 경우에는 상기 작업을 반복하고 검출되었을 경우에는 정상 입력인지를 판단하는 부분으로 분기한다. 정상 입력 판단부분에서는 입력 데이터와 RAM(3B)에 저장되어 있는 장치 번호가 같은지를 판단하고 명령 구성자체가 정상인가를 비교하여 상기 2가지 조건이 맞지 않았을 경우에는 흐름도(A)로 분기한다.If there is input data, it branches to the flowchart ② and stores the data in RAM 3B until GR (CARRIGE-RETURN) data is input. When continuous data is input, GR (CARRIGE RETURN) is compared, and when GR (CARRIGE RETURN) data is not detected, the operation is repeated, and when detected, branching is performed to determine whether it is a normal input. In the normal input determination section, it is determined whether the input data and the device number stored in the RAM 3B are the same, and whether the command structure itself is normal is compared. If the two conditions are not met, the flow branches to the flowchart A. FIG.

만약, 2가지 조건이 맞았을 경우에는 명령 해독 작업에 들어간다. 명령에는 15가지가 있으며, 각각의 명령은 크게 2가지 종류로 구분된다. 명령 00-03까지는 RAM(3C)에 저장된 데이터를 컴퓨터로 전송하라는 것이고 명령 04-14는 RAM(3B)에 저장된 각종 파라미터 및 클럭(5)을 변경하는 명령이다. 각각의 명령을 입력받은 후 마이크로 프로세서는 명령에 맞는 실행을 완료한후 컴퓨터로 응답을 전송하고 흐름도,로 간다.If the two conditions are met, the instruction is decoded. There are 15 types of commands, and each command is divided into two types. Commands 00-03 transmit data stored in the RAM 3C to the computer, and command 04-14 is a command for changing various parameters and the clock 5 stored in the RAM 3B. After receiving each command, the microprocessor completes the execution of the command and sends the response to the computer. Go to

이상 설명한 바와같이 본 발명에 의하면, 다른 제어장치에 접속됨이 없이 스스로 동작하며 장치 자체에 제어기능이 내장되어 있어서 읽어들인 데이터의 저장 및 보관이 가능하고 컴퓨터와 온라인 통신이 가능하며 출입문을 제어하는 기능이 있어서 제한 구역의 출입 통제를 할 수가 있다.As described above, according to the present invention, the device itself operates without being connected to another control device, and the device itself has a built-in control function to store and store the read data, to communicate online with a computer, and to control the door. It has the ability to control access to restricted areas.

그리고, 통신 기능이 있어 컴퓨터와 통신을 수행할때 최대 100대까지 MULTI-DROP으로 연결하여 통신이 가능하며 모델을 연결하여 장거리 통신을 할 수 있다.And with communication function, up to 100 MULTI-DROPs can be used to communicate with a computer, and models can be connected for long distance communication.

이 장치는 기기마다 번지를 가지고 있으며 00번지를 시작번지로 하여 00번지로는 제어장치 역할을 하여 컴퓨터와 RS-232C 통신을 히고, 01번지로부터 99번지까지는 제어장치와 RS-422A 통신을 하도록 되어있어, 기능의 다양화를 이룩할 수 있으며, 또 장치의 소형화로 장치의 운반 및 설치가 용이하고 부품수가 대폭 줄어들어서 가격의 저렴화를 꾀할 수 있는 것이다.This device has address for each device. 00 address is the starting address, and 00 address acts as a control device for RS-232C communication with computer, and 01-99 address for RS-422A communication with control device. Therefore, the function can be diversified, and the device can be made compact and the device can be easily transported and installed, and the number of parts can be greatly reduced, thereby reducing the price.

Claims (2)

마이크로 프로세서(1)에서 처리된 데이터를 버퍼(21)를 통해서 프린터(8)로 보내거나 컴퓨터에서 보내온 데이터를 마이크로 프로세서(1)를 경유하지 않고 직접 프린터(8)로 보내는 수단과, 상기 마이크로 프로세서(1)에서 처리된 데이터를 버퍼(21)를 통해서 액정표시판(9)에 표시하거나 컴퓨터에서 보내온 데이터를 마이크로 프로세서(1)를 경유하지 않고 직접 액정표시판(9)에 표시하는 수단과, 마그네틱 스트립 카드의 데이터를 읽어서 증폭한후 마이크로 프로세서(1)로 보내는 마그네틱 스트립 리이더(10)와, 그 읽어들인 데이터를 마이크로 프로세서(1)가 판정하여 그 데이터가 정상인지 아닌지를 판정한후 입·출력단(4)를 통해서 LED(11)와 부저(12)로 표시하는 수단과, 키이패드(13)를 눌러 기능의 상태를 액정표시판(9)에 표시하는 수단과, 컴퓨터와 장치 사이의 데이터를 전송하는 통신(14)수단과, 바코드 스캐너(15)를 RS-23C 통신방식으로 마이크로 프로세서(1)와 연결하는 수단과, TTL신호 입·출력단(16)를 통해서, 입·출력하는 신호를 마이크로 프로세서(1)와 연결하는 수단을 하나의 포트를 설정하여 변환스위치(17)로 포트를 공유할 수 있도록 하는 수단과, 입력회로(18)와 출력회로(19)를 조합하여 전기도어록을 제어하는 수단과, 상기 출력회로(19)의 남은 접점을 이용하여 출입문 제어시 출입문의 열림 상태를 체크하는 수단과, RAM(3B), (3C)와 클럭(5)의 데이터를 보존하는 백업수단(20)으로 이루어진 것을 특징으로 하는 마그네틱 카드와 바코드의 데이터 자동인식방법.Means for sending the data processed by the microprocessor 1 to the printer 8 through the buffer 21 or directly from the computer to the printer 8 without passing through the microprocessor 1; and the microprocessor Means for displaying the data processed in (1) on the liquid crystal panel 9 through the buffer 21 or displaying the data sent from the computer directly on the liquid crystal panel 9 without passing through the microprocessor 1; After reading and amplifying the data of the card, the magnetic strip reader 10 to be sent to the microprocessor 1 and the read data are judged by the microprocessor 1 to determine whether the data is normal or not. Means for displaying the LED 11 and the buzzer 12 through (4), means for pressing the keypad 13 to display the state of the function on the liquid crystal panel 9, between the computer and the apparatus. Means for transmitting data, means for connecting the barcode scanner 15 with the microprocessor 1 in the RS-23C communication method, and signals for input and output via the TTL signal input / output terminal 16; Means for connecting the microprocessor 1 with a means for setting one port so that the port can be shared by the conversion switch 17, and the input circuit 18 and the output circuit 19 are combined. Means for controlling, means for checking the open state of the door at the time of door control by using the remaining contacts of the output circuit 19, and backup means for storing data of the RAMs 3B, 3C, and the clock 5; Automatic data recognition method of the magnetic card and bar code, characterized in that consisting of (20). 마이크로 프로세서(1)와, 그 마이크로 프로세서(1)에 의해 메모리(3)과 입·출력단을 제어하는 디코더(2)와, 상기 디코더(2)를 통해서 나오는 제어신호를 받아서 명령을 실행할 수 있도록 하는 메모리(3)와, 외부장치와의 연결을 가능하게 하며, 데이터의 입·출력을 수행하는 입·출력단(4)와, 상기 입·출력단(3)은 입력장치인 키이패드(13)와 출력장치인 LED(11), 부저(12)와, 버퍼(21)를 통해 프린터(8) 및 액정표시판(9)과, 상기 마이크로 프로세서(1)가 직접 제어하는 클럭(5), 마그네틱 스트립 리이더(10), 통신(14)와, 통신 드라이버(7)를 통해서 바코드 스캐너(15)를 제어하면 TTL신호 입·출력단(16)과 연결되고, 상기 마이크로 프로세서(1)가 직접 제어하는 입력장치(18)과 출력장치(19)와 초기화를 걸어주는 리셋신호 발생기(6)로 구성된 것을 특징으로 하는 마그네틱 카드와 바코드의 제어장치.A microprocessor (1), a decoder (2) for controlling the memory (3) and input / output terminals by the microprocessor (1), and a control signal from the decoder (2) to receive and execute a command An input / output terminal 4 for connecting the memory 3 and an external device to perform input / output of data, and the input / output terminal 3 are an input device keypad 13 and an output device. A device (8), a buzzer (12), a buffer (21), a printer (8) and a liquid crystal panel (9), a clock (5) and a magnetic strip reader directly controlled by the microprocessor (1). (10) When the barcode scanner 15 is controlled through the communication 14 and the communication driver 7, an input device connected to the TTL signal input / output terminal 16 and directly controlled by the microprocessor 1 ( 18) and an output device 19 and a reset signal generator 6 which initializes the magnetic card. And bar code control device.
KR1019930004801A 1993-03-26 1993-03-26 Automatic data recognition method of magnetic card and barcode and its control system KR950005530B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930004801A KR950005530B1 (en) 1993-03-26 1993-03-26 Automatic data recognition method of magnetic card and barcode and its control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930004801A KR950005530B1 (en) 1993-03-26 1993-03-26 Automatic data recognition method of magnetic card and barcode and its control system

Publications (2)

Publication Number Publication Date
KR940022327A KR940022327A (en) 1994-10-20
KR950005530B1 true KR950005530B1 (en) 1995-05-25

Family

ID=19352833

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930004801A KR950005530B1 (en) 1993-03-26 1993-03-26 Automatic data recognition method of magnetic card and barcode and its control system

Country Status (1)

Country Link
KR (1) KR950005530B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9964553B2 (en) 2014-03-26 2018-05-08 Samsung Electronics Co., Ltd. Blood testing apparatus and blood testing method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990083751A (en) * 1999-07-20 1999-12-06 이언상 Production information automation management system using barcode scanner.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9964553B2 (en) 2014-03-26 2018-05-08 Samsung Electronics Co., Ltd. Blood testing apparatus and blood testing method thereof

Also Published As

Publication number Publication date
KR940022327A (en) 1994-10-20

Similar Documents

Publication Publication Date Title
EP0456012B1 (en) Display control device for reducing power consumption
AU600521B2 (en) Telelink monitoring and reporting system
US5811675A (en) Modular gas units
JP3105015B2 (en) Terminal device in CATV system
KR950005530B1 (en) Automatic data recognition method of magnetic card and barcode and its control system
US4204636A (en) Interface between data reading wand and cash register display
JPS6141985A (en) Ultrasonic proximity initiator
CN100358290C (en) Medical equipment use cost-control method and its control system
JPH09326871A (en) Transmission controller
JPS6322516B2 (en)
KR100261066B1 (en) Automatic house / counter
CN214475088U (en) Teaching information input system
JPS62217359A (en) Centralized managing system
JPH0793492A (en) Id plate system
JPS62284409A (en) Portable operator system
JPH04289906A (en) Power source stop control method by remote control
KR100191626B1 (en) A door open device and method to control thereof on emergency in automatic system
JP3106882B2 (en) Sending device for ID code of remote IO
KR100213999B1 (en) Equipment control apparatus
JP3022891B2 (en) Pager automatic notification device
JPH06282561A (en) Currency transaction device
KR20000012520U (en) Repeater used for automatic meter reading system
JPH0523478B2 (en)
JPH10145504A (en) Terminal network controller
JPH04145397A (en) Clock device also available to information processing

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080327

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee